cleek 2.6.94 → 2.6.95

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
@@ -3547,7 +3547,9 @@ const cleekOptions = {
3547
3547
  gap: 0
3548
3548
  },
3549
3549
  img: {
3550
- basePath: ""
3550
+ basePath: "",
3551
+ basePathStatic: "",
3552
+ basePathDynamic: ""
3551
3553
  },
3552
3554
  popup: {
3553
3555
  textColor: "",
@@ -81612,7 +81614,7 @@ var _export_sfc = (sfc, props) => {
81612
81614
  }
81613
81615
  return target;
81614
81616
  };
81615
- const _hoisted_1$o = {
81617
+ const _hoisted_1$p = {
81616
81618
  key: 0,
81617
81619
  class: "help-text"
81618
81620
  };
@@ -81649,7 +81651,7 @@ const _sfc_main$x = defineComponent$2({
81649
81651
  });
81650
81652
  return (_ctx, _cache) => {
81651
81653
  const _directive_tooltip = resolveDirective("tooltip");
81652
- return !computedDate.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_1$o, toDisplayString$1(_ctx.noDateMsg), 1)) : _ctx.split || _ctx.date ? (openBlock$2(), createElementBlock$2("div", {
81654
+ return !computedDate.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_1$p, toDisplayString$1(_ctx.noDateMsg), 1)) : _ctx.split || _ctx.date ? (openBlock$2(), createElementBlock$2("div", {
81653
81655
  key: 1,
81654
81656
  class: "ck-datetime-shower--split",
81655
81657
  onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
@@ -81671,7 +81673,7 @@ const _sfc_main$x = defineComponent$2({
81671
81673
  var ckDatetimeShower = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-4dcd4d84"]]);
81672
81674
  var ckTimeShower_vue_vue_type_style_index_0_scoped_true_lang = "";
81673
81675
  const _withScopeId$5 = (n2) => (pushScopeId$2("data-v-4d15db47"), n2 = n2(), popScopeId$2(), n2);
81674
- const _hoisted_1$n = { class: "ck-time-shower" };
81676
+ const _hoisted_1$o = { class: "ck-time-shower" };
81675
81677
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", { class: "hs-text" }, " hs ", -1));
81676
81678
  const _sfc_main$w = defineComponent$2({
81677
81679
  __name: "ck-time-shower",
@@ -81681,7 +81683,7 @@ const _sfc_main$w = defineComponent$2({
81681
81683
  },
81682
81684
  setup(__props) {
81683
81685
  return (_ctx, _cache) => {
81684
- return openBlock$2(), createElementBlock$2("span", _hoisted_1$n, [
81686
+ return openBlock$2(), createElementBlock$2("span", _hoisted_1$o, [
81685
81687
  _ctx.minutes ? (openBlock$2(), createElementBlock$2(Fragment$2, { key: 0 }, [
81686
81688
  createTextVNode$2(toDisplayString$1(unref$3(qmDate).minToHour(_ctx.minutes)), 1)
81687
81689
  ], 64)) : (openBlock$2(), createElementBlock$2(Fragment$2, { key: 1 }, [
@@ -81763,7 +81765,7 @@ var hooks9 = {
81763
81765
  }
81764
81766
  };
81765
81767
  var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
81766
- const _hoisted_1$m = { class: "ck-dropdown__popper-container" };
81768
+ const _hoisted_1$n = { class: "ck-dropdown__popper-container" };
81767
81769
  const _sfc_main$v = defineComponent$2({
81768
81770
  __name: "ck-dropdown",
81769
81771
  props: {
@@ -81818,7 +81820,7 @@ const _sfc_main$v = defineComponent$2({
81818
81820
  }, [
81819
81821
  renderSlot$2(_ctx.$slots, "trigger", {}, void 0, true)
81820
81822
  ]),
81821
- createElementVNode("div", _hoisted_1$m, [
81823
+ createElementVNode("div", _hoisted_1$n, [
81822
81824
  isOpen.value ? (openBlock$2(), createElementBlock$2("section", {
81823
81825
  key: 0,
81824
81826
  ref_key: "popperRef",
@@ -82500,9 +82502,9 @@ const _sfc_main$t = defineComponent$2({
82500
82502
  var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-3fac81ed"]]);
82501
82503
  var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
82502
82504
  const _sfc_main$s = {};
82503
- const _hoisted_1$l = { class: "ck-tr" };
82505
+ const _hoisted_1$m = { class: "ck-tr" };
82504
82506
  function _sfc_render(_ctx, _cache) {
82505
- return openBlock$2(), createElementBlock$2("tr", _hoisted_1$l, [
82507
+ return openBlock$2(), createElementBlock$2("tr", _hoisted_1$m, [
82506
82508
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82507
82509
  ]);
82508
82510
  }
@@ -82596,7 +82598,7 @@ const _sfc_main$r = defineComponent$2({
82596
82598
  });
82597
82599
  var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-90fa19a8"]]);
82598
82600
  var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
82599
- const _hoisted_1$k = { class: "ck-th" };
82601
+ const _hoisted_1$l = { class: "ck-th" };
82600
82602
  const defaultAlign$1 = "left";
82601
82603
  const _sfc_main$q = defineComponent$2({
82602
82604
  __name: "ck-th",
@@ -82632,7 +82634,7 @@ const _sfc_main$q = defineComponent$2({
82632
82634
  return list;
82633
82635
  });
82634
82636
  return (_ctx, _cache) => {
82635
- return openBlock$2(), createElementBlock$2("th", _hoisted_1$k, [
82637
+ return openBlock$2(), createElementBlock$2("th", _hoisted_1$l, [
82636
82638
  createElementVNode("span", {
82637
82639
  class: normalizeClass$2(computedSpanClass.value),
82638
82640
  style: normalizeStyle$2(computedStyle.value)
@@ -82686,7 +82688,7 @@ function useWindowWidth() {
82686
82688
  };
82687
82689
  }
82688
82690
  var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
82689
- const _hoisted_1$j = ["title", "aria-label", "disabled"];
82691
+ const _hoisted_1$k = ["title", "aria-label", "disabled"];
82690
82692
  const defaultButtonType = "outlined";
82691
82693
  const defaultColor$1 = "primary";
82692
82694
  const defaultBackgroundColor = "transparent";
@@ -82809,13 +82811,13 @@ const _sfc_main$o = defineComponent$2({
82809
82811
  "icon-pack": _ctx.iconPack
82810
82812
  }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
82811
82813
  ], 64))
82812
- ], 14, _hoisted_1$j);
82814
+ ], 14, _hoisted_1$k);
82813
82815
  };
82814
82816
  }
82815
82817
  });
82816
82818
  var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-91767c62"]]);
82817
82819
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
82818
- const _hoisted_1$i = ["for"];
82820
+ const _hoisted_1$j = ["for"];
82819
82821
  const defaultSize$2 = "m";
82820
82822
  const _sfc_main$n = defineComponent$2({
82821
82823
  __name: "ck-label",
@@ -82841,13 +82843,13 @@ const _sfc_main$n = defineComponent$2({
82841
82843
  for: props.for
82842
82844
  }, [
82843
82845
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82844
- ], 10, _hoisted_1$i);
82846
+ ], 10, _hoisted_1$j);
82845
82847
  };
82846
82848
  }
82847
82849
  });
82848
82850
  var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-b85f16e0"]]);
82849
82851
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
82850
- const _hoisted_1$h = ["autocomplete", "placeholder", "disabled"];
82852
+ const _hoisted_1$i = ["autocomplete", "placeholder", "disabled"];
82851
82853
  const _hoisted_2$c = ["autocomplete", "type", "placeholder", "disabled"];
82852
82854
  const defaultType = "text";
82853
82855
  const defaultDelayChangeTime = 300;
@@ -83030,7 +83032,7 @@ const _sfc_main$m = defineComponent$2({
83030
83032
  onClick: _cache[3] || (_cache[3] = ($event) => onClick($event)),
83031
83033
  onFocus: _cache[4] || (_cache[4] = ($event) => emits("focus", $event)),
83032
83034
  onBlur: _cache[5] || (_cache[5] = ($event) => emits("blur", $event))
83033
- }, null, 46, _hoisted_1$h)), [
83035
+ }, null, 46, _hoisted_1$i)), [
83034
83036
  [vModelText, value.value]
83035
83037
  ]) : withDirectives$1((openBlock$2(), createElementBlock$2("input", {
83036
83038
  key: 3,
@@ -83198,7 +83200,7 @@ const _sfc_main$l = defineComponent$2({
83198
83200
  var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-4362a796"]]);
83199
83201
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
83200
83202
  const _withScopeId$4 = (n2) => (pushScopeId$2("data-v-27c654d0"), n2 = n2(), popScopeId$2(), n2);
83201
- const _hoisted_1$g = { class: "ck-table__pagination" };
83203
+ const _hoisted_1$h = { class: "ck-table__pagination" };
83202
83204
  const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
83203
83205
  const _hoisted_3$9 = ["onClick"];
83204
83206
  const _hoisted_4$7 = { class: "ck-table__pagination-input-container" };
@@ -83307,7 +83309,7 @@ const _sfc_main$k = defineComponent$2({
83307
83309
  key: 0,
83308
83310
  class: normalizeClass$2(["ck-table__pagination-container", computedClass.value])
83309
83311
  }, [
83310
- createElementVNode("div", _hoisted_1$g, [
83312
+ createElementVNode("div", _hoisted_1$h, [
83311
83313
  createElementVNode("div", {
83312
83314
  class: normalizeClass$2(["ck-table__pagination--arrow-left", { disabled: !hasArrowLeft.value }]),
83313
83315
  onClick: _cache[0] || (_cache[0] = ($event) => currentPageLocal.value = _ctx.currentPage - 1)
@@ -83612,7 +83614,7 @@ const computed = (getterOrOptions, debugOptions) => {
83612
83614
  };
83613
83615
  var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
83614
83616
  const _withScopeId$3 = (n2) => (pushScopeId$2("data-v-1fffee96"), n2 = n2(), popScopeId$2(), n2);
83615
- const _hoisted_1$f = ["disabled", "checked"];
83617
+ const _hoisted_1$g = ["disabled", "checked"];
83616
83618
  const _hoisted_2$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
83617
83619
  const _hoisted_3$8 = {
83618
83620
  key: 0,
@@ -83669,7 +83671,7 @@ const _sfc_main$j = defineComponent$2({
83669
83671
  value.value = $event.target.checked;
83670
83672
  onChange2($event);
83671
83673
  })
83672
- }, null, 40, _hoisted_1$f),
83674
+ }, null, 40, _hoisted_1$g),
83673
83675
  _hoisted_2$a,
83674
83676
  _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_3$8, [
83675
83677
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
@@ -83680,7 +83682,7 @@ const _sfc_main$j = defineComponent$2({
83680
83682
  });
83681
83683
  var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-1fffee96"]]);
83682
83684
  var ckPopup_vue_vue_type_style_index_0_lang = "";
83683
- const _hoisted_1$e = { class: "ck-popup" };
83685
+ const _hoisted_1$f = { class: "ck-popup" };
83684
83686
  const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
83685
83687
  const _hoisted_3$7 = {
83686
83688
  key: 0,
@@ -83867,7 +83869,7 @@ const _sfc_main$i = defineComponent$2({
83867
83869
  key: 0,
83868
83870
  to: "body"
83869
83871
  }, [
83870
- createElementVNode("div", _hoisted_1$e, [
83872
+ createElementVNode("div", _hoisted_1$f, [
83871
83873
  _hoisted_2$9,
83872
83874
  createElementVNode("div", {
83873
83875
  class: "popup-container",
@@ -83931,7 +83933,7 @@ const _sfc_main$i = defineComponent$2({
83931
83933
  }
83932
83934
  });
83933
83935
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
83934
- const _hoisted_1$d = { class: "columns-manger-container" };
83936
+ const _hoisted_1$e = { class: "columns-manger-container" };
83935
83937
  const _sfc_main$h = defineComponent$2({
83936
83938
  __name: "ck-table__columns-manager",
83937
83939
  props: {
@@ -83991,7 +83993,7 @@ const _sfc_main$h = defineComponent$2({
83991
83993
  title: "Administrador de columnas"
83992
83994
  }, {
83993
83995
  default: withCtx$2(() => [
83994
- createElementVNode("div", _hoisted_1$d, [
83996
+ createElementVNode("div", _hoisted_1$e, [
83995
83997
  (openBlock$2(true), createElementBlock$2(Fragment$2, null, renderList$1(unref$3(columnsCheckable), (col, colIndex) => {
83996
83998
  return openBlock$2(), createElementBlock$2("div", {
83997
83999
  class: "columns-manger__item",
@@ -84019,7 +84021,7 @@ const _sfc_main$h = defineComponent$2({
84019
84021
  var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4ef6b518"]]);
84020
84022
  var ckTable_vue_vue_type_style_index_0_lang = "";
84021
84023
  var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
84022
- const _hoisted_1$c = { class: "ck-table" };
84024
+ const _hoisted_1$d = { class: "ck-table" };
84023
84025
  const _hoisted_2$8 = {
84024
84026
  key: 0,
84025
84027
  class: "ck-table__header"
@@ -84187,7 +84189,7 @@ const _sfc_main$g = defineComponent$2({
84187
84189
  columnsArray: columnsArray.value,
84188
84190
  columns: _ctx.columns || []
84189
84191
  }, null, 8, ["modelValue", "isLoading", "columnsArray", "columns"])) : createCommentVNode$2("", true),
84190
- createElementVNode("div", _hoisted_1$c, [
84192
+ createElementVNode("div", _hoisted_1$d, [
84191
84193
  _ctx.$slots.header || !_ctx.hideHeaderActions ? (openBlock$2(), createElementBlock$2("div", _hoisted_2$8, [
84192
84194
  createVNode$2(TableHeaderItems, {
84193
84195
  search: searchLocal.value,
@@ -89440,6 +89442,7 @@ function Dt(e4, t4, r, l, o, p2) {
89440
89442
  }
89441
89443
  const Lt = /* @__PURE__ */ T4(vt, [["render", Dt]]);
89442
89444
  var ckInputDate_vue_vue_type_style_index_0_scoped_true_lang = "";
89445
+ const _hoisted_1$c = { class: "ck-picker-container" };
89443
89446
  const _sfc_main$e = defineComponent$2({
89444
89447
  __name: "ck-input-date",
89445
89448
  props: {
@@ -89468,9 +89471,13 @@ const _sfc_main$e = defineComponent$2({
89468
89471
  emits("update:modelValue", dateToString(val));
89469
89472
  }
89470
89473
  });
89474
+ const isOnPopup = ref$1(false);
89471
89475
  const computedClass = computed$3(() => {
89472
89476
  const classes = [];
89473
89477
  classes.push(hooks9.getGroupClass(props, windowWidth.value));
89478
+ isOnPopup.value = document.querySelector(".ck-popup__content") ? true : false;
89479
+ if (isOnPopup.value)
89480
+ classes.push("ck-picker-popup");
89474
89481
  return classes;
89475
89482
  });
89476
89483
  function convertToDate() {
@@ -89504,12 +89511,14 @@ const _sfc_main$e = defineComponent$2({
89504
89511
  ]),
89505
89512
  _: 1
89506
89513
  }),
89507
- createVNode$2(unref$3(Lt), {
89508
- modelValue: inputValue.value,
89509
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
89510
- inputFormat: "dd-MM-yyyy",
89511
- onChange: _cache[1] || (_cache[1] = ($event) => emits("change", inputValue.value))
89512
- }, null, 8, ["modelValue"])
89514
+ createElementVNode("div", _hoisted_1$c, [
89515
+ createVNode$2(unref$3(Lt), {
89516
+ modelValue: inputValue.value,
89517
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
89518
+ onChange: _cache[1] || (_cache[1] = ($event) => emits("change", inputValue.value)),
89519
+ inputFormat: "dd-MM-yyyy"
89520
+ }, null, 8, ["modelValue"])
89521
+ ])
89513
89522
  ], 2)
89514
89523
  ]),
89515
89524
  _: 1
@@ -89517,7 +89526,7 @@ const _sfc_main$e = defineComponent$2({
89517
89526
  };
89518
89527
  }
89519
89528
  });
89520
- var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cf9c80c8"]]);
89529
+ var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e41c6ac4"]]);
89521
89530
  const _sfc_main$d = defineComponent$2({
89522
89531
  __name: "ck-input-time",
89523
89532
  props: {
@@ -89770,7 +89779,9 @@ const _sfc_main$9 = defineComponent$2({
89770
89779
  hasBorder: { type: Boolean },
89771
89780
  borderColor: {},
89772
89781
  rounded: { type: Boolean },
89773
- radius: {}
89782
+ radius: {},
89783
+ static: { type: Boolean },
89784
+ dynamic: { type: Boolean }
89774
89785
  },
89775
89786
  setup(__props) {
89776
89787
  const props = __props;
@@ -89843,9 +89854,15 @@ const _sfc_main$9 = defineComponent$2({
89843
89854
  ;
89844
89855
  }
89845
89856
  function getImg(src) {
89846
- var _a;
89847
- let path = ((_a = cleekOptions2.value) == null ? void 0 : _a.img.basePath) || "";
89848
- return `${path}${src}`;
89857
+ var _a, _b, _c, _d, _e2;
89858
+ let basePath = (_a = cleekOptions2.value) == null ? void 0 : _a.img.basePath;
89859
+ if ((_b = cleekOptions2.value) == null ? void 0 : _b.img.basePath)
89860
+ basePath = (_c = cleekOptions2.value) == null ? void 0 : _c.img.basePath;
89861
+ if (!basePath)
89862
+ basePath = (_d = cleekOptions2.value) == null ? void 0 : _d.img.basePathStatic;
89863
+ if (props.dynamic)
89864
+ basePath = (_e2 = cleekOptions2.value) == null ? void 0 : _e2.img.basePathDynamic;
89865
+ return `${basePath}${src}`;
89849
89866
  }
89850
89867
  onMounted$1(() => {
89851
89868
  cleekOptions2.value = hooks9.getCleekOptions(getCurrentInstance$1);
@@ -89867,7 +89884,7 @@ const _sfc_main$9 = defineComponent$2({
89867
89884
  };
89868
89885
  }
89869
89886
  });
89870
- var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-2b623506"]]);
89887
+ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-24eb46e8"]]);
89871
89888
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
89872
89889
  const _withScopeId$2 = (n2) => (pushScopeId$2("data-v-494ed67e"), n2 = n2(), popScopeId$2(), n2);
89873
89890
  const _hoisted_1$8 = ["onKeyup"];