cleek 2.4.38 → 2.4.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
@@ -2630,7 +2630,7 @@ const _sfc_main$r = defineComponent({
2630
2630
  }
2631
2631
  });
2632
2632
  const _hoisted_1$l = ["innerHTML"];
2633
- const _hoisted_2$b = ["textContent"];
2633
+ const _hoisted_2$c = ["textContent"];
2634
2634
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2635
2635
  const _component_PopperContent = resolveComponent("PopperContent");
2636
2636
  const _component_Popper = resolveComponent("Popper");
@@ -2676,7 +2676,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2676
2676
  }, null, 8, _hoisted_1$l)) : (openBlock(), createElementBlock("div", {
2677
2677
  key: 1,
2678
2678
  textContent: toDisplayString(_ctx.finalContent)
2679
- }, null, 8, _hoisted_2$b))
2679
+ }, null, 8, _hoisted_2$c))
2680
2680
  ]),
2681
2681
  _: 2
2682
2682
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
@@ -2890,6 +2890,7 @@ const plugin = {
2890
2890
  options: config$2
2891
2891
  };
2892
2892
  const cleekOptions = {
2893
+ lang: "en",
2893
2894
  colors: {
2894
2895
  primary: "#559933",
2895
2896
  secondary: "#559933"
@@ -18839,7 +18840,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
18839
18840
  };
18840
18841
  }
18841
18842
  });
18842
- var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-53ec1f50"]]);
18843
+ var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-62129388"]]);
18843
18844
  var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
18844
18845
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
18845
18846
  props: {
@@ -18878,7 +18879,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18878
18879
  };
18879
18880
  }
18880
18881
  });
18881
- var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e0fbc7aa"]]);
18882
+ var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-66dc4f95"]]);
18882
18883
  const _hoisted_1$j = { class: "ck-tr" };
18883
18884
  function render2(_ctx, _cache) {
18884
18885
  return openBlock(), createElementBlock("tr", _hoisted_1$j, [
@@ -18978,7 +18979,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18978
18979
  };
18979
18980
  }
18980
18981
  });
18981
- var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6dd2ca6a"]]);
18982
+ var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-7f4cf041"]]);
18982
18983
  var axios$2 = { exports: {} };
18983
18984
  var bind$2 = function bind2(fn, thisArg) {
18984
18985
  return function wrap() {
@@ -20803,17 +20804,14 @@ var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
20803
20804
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
20804
20805
  props: {
20805
20806
  icon: null,
20806
- color: null,
20807
20807
  iconPack: null,
20808
+ color: null,
20808
20809
  size: null,
20809
- rotation: null,
20810
20810
  flip: null,
20811
- pull: null,
20811
+ fixedWidth: null,
20812
+ rotation: null,
20812
20813
  spin: { type: Boolean },
20813
- pulse: { type: Boolean },
20814
- inverse: { type: Boolean },
20815
- fixedWidth: { type: Boolean },
20816
- swapOpacity: { type: Boolean }
20814
+ pulse: { type: Boolean }
20817
20815
  },
20818
20816
  emits: ["click"],
20819
20817
  setup(__props, { emit: emits }) {
@@ -20859,18 +20857,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
20859
20857
  size: __props.size,
20860
20858
  rotation: __props.rotation,
20861
20859
  flip: __props.flip,
20862
- pull: __props.pull,
20863
20860
  spin: __props.spin,
20864
20861
  pulse: __props.pulse,
20865
- inverse: __props.inverse,
20866
- "fixed-width": __props.fixedWidth,
20867
- "swap-opacity": __props.swapOpacity
20868
- }, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
20862
+ "fixed-width": __props.fixedWidth
20863
+ }, null, 8, ["icon", "size", "rotation", "flip", "spin", "pulse", "fixed-width"])) : createCommentVNode("", true)
20869
20864
  ], 6);
20870
20865
  };
20871
20866
  }
20872
20867
  });
20873
- var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4221e90d"]]);
20868
+ var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a8333ef4"]]);
20874
20869
  function useWindowWidth() {
20875
20870
  const windowWidth = ref(0);
20876
20871
  function handleWindowResize(event) {
@@ -21001,7 +20996,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
21001
20996
  };
21002
20997
  }
21003
20998
  });
21004
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-1eb38e96"]]);
20999
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-3a844574"]]);
21005
21000
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
21006
21001
  const _hoisted_1$g = ["for"];
21007
21002
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21032,7 +21027,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21032
21027
  };
21033
21028
  }
21034
21029
  });
21035
- var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-43625692"]]);
21030
+ var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-a4566770"]]);
21036
21031
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
21037
21032
  const _hoisted_1$f = ["autocomplete", "type", "placeholder", "disabled"];
21038
21033
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -21215,7 +21210,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21215
21210
  };
21216
21211
  }
21217
21212
  });
21218
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4eeecd7d"]]);
21213
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4a21992c"]]);
21219
21214
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21220
21215
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
21221
21216
  props: {
@@ -21331,7 +21326,7 @@ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "
21331
21326
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
21332
21327
  const _withScopeId$4 = (n) => (pushScopeId("data-v-78fe58de"), n = n(), popScopeId(), n);
21333
21328
  const _hoisted_1$e = { class: "ck-table__pagination" };
21334
- const _hoisted_2$a = { class: "ck-table__pagination--numbers-container" };
21329
+ const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
21335
21330
  const _hoisted_3$7 = ["onClick"];
21336
21331
  const _hoisted_4$6 = { class: "ck-table__pagination-input-container" };
21337
21332
  const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
@@ -21437,7 +21432,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21437
21432
  icon: unref$1(hasArrowLeft) ? "angle-left" : "grip-lines-vertical"
21438
21433
  }, null, 8, ["icon"])
21439
21434
  ], 2),
21440
- createElementVNode("div", _hoisted_2$a, [
21435
+ createElementVNode("div", _hoisted_2$b, [
21441
21436
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listLeft), (num) => {
21442
21437
  return openBlock(), createElementBlock("div", {
21443
21438
  class: "ck-table__pagination-item--left",
@@ -22250,7 +22245,7 @@ const computed = (getterOrOptions, debugOptions) => {
22250
22245
  var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
22251
22246
  const _withScopeId$3 = (n) => (pushScopeId("data-v-113ac83f"), n = n(), popScopeId(), n);
22252
22247
  const _hoisted_1$d = ["disabled", "checked"];
22253
- const _hoisted_2$9 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
22248
+ const _hoisted_2$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
22254
22249
  const _hoisted_3$6 = {
22255
22250
  key: 0,
22256
22251
  class: "c-Checkbox__label"
@@ -22304,7 +22299,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22304
22299
  onChange2($event);
22305
22300
  })
22306
22301
  }, null, 40, _hoisted_1$d),
22307
- _hoisted_2$9,
22302
+ _hoisted_2$a,
22308
22303
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$6, [
22309
22304
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
22310
22305
  ])) : createCommentVNode("", true)
@@ -22318,7 +22313,7 @@ const _hoisted_1$c = {
22318
22313
  key: 0,
22319
22314
  class: "ck-popup"
22320
22315
  };
22321
- const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22316
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22322
22317
  const _hoisted_3$5 = {
22323
22318
  key: 0,
22324
22319
  class: "ck-popup__title"
@@ -22340,12 +22335,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22340
22335
  acceptButton: { type: Boolean },
22341
22336
  acceptBtnText: null,
22342
22337
  acceptBtnType: null,
22343
- cancelButton: { type: Boolean },
22344
22338
  cancelBtnText: null,
22345
22339
  cancelBtnType: null,
22346
- notClose: { type: Boolean },
22347
22340
  notCloseBtn: { type: Boolean },
22348
22341
  notCloseByBg: { type: Boolean },
22342
+ notClose: { type: Boolean },
22349
22343
  preventCloseOnCancel: { type: Boolean },
22350
22344
  width: null,
22351
22345
  maxWidth: null,
@@ -22416,6 +22410,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22416
22410
  if (headerColor && hooks8.isColorTemplateVariable(headerColor)) {
22417
22411
  list.push(`ck-component__bg-color--${headerColor}`);
22418
22412
  }
22413
+ if (!isCloseBtnVisible.value)
22414
+ list.push("close-btn-hidden");
22419
22415
  return list;
22420
22416
  });
22421
22417
  const realAcceptBtnType = computed$2(() => {
@@ -22434,6 +22430,29 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22434
22430
  return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
22435
22431
  return "flat";
22436
22432
  });
22433
+ const isCloseBtnVisible = computed$2(() => {
22434
+ if (props.notCloseBtn)
22435
+ return false;
22436
+ if (props.notClose)
22437
+ return false;
22438
+ return true;
22439
+ });
22440
+ const realAcceptBtnText = computed$2(() => {
22441
+ var _a;
22442
+ if (props.acceptBtnText)
22443
+ return props.acceptBtnText;
22444
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
22445
+ return "Aceptar";
22446
+ return "Accept";
22447
+ });
22448
+ const realCancelBtnText = computed$2(() => {
22449
+ var _a;
22450
+ if (props.cancelBtnText)
22451
+ return props.cancelBtnText;
22452
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
22453
+ return "Cancelar";
22454
+ return "Cancel";
22455
+ });
22437
22456
  function onCancel() {
22438
22457
  emits("cancel");
22439
22458
  if (!props.preventCloseOnCancel)
@@ -22452,7 +22471,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22452
22471
  });
22453
22472
  return (_ctx, _cache) => {
22454
22473
  return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
22455
- _hoisted_2$8,
22474
+ _hoisted_2$9,
22456
22475
  createElementVNode("div", {
22457
22476
  class: "popup-container",
22458
22477
  onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
@@ -22469,7 +22488,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22469
22488
  }, [
22470
22489
  __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
22471
22490
  renderSlot(_ctx.$slots, "header"),
22472
- !(__props.notCloseBtn || __props.notClose) ? (openBlock(), createBlock(CkIcon, {
22491
+ unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
22473
22492
  key: 1,
22474
22493
  class: "icon-close",
22475
22494
  icon: "times",
@@ -22479,29 +22498,31 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22479
22498
  createElementVNode("div", _hoisted_4$5, [
22480
22499
  renderSlot(_ctx.$slots, "default")
22481
22500
  ]),
22482
- _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
22501
+ _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || _ctx.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
22483
22502
  renderSlot(_ctx.$slots, "footer"),
22484
- __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
22485
- createVNode(CkButton, {
22503
+ __props.confirmButtons || __props.acceptButton || _ctx.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
22504
+ __props.confirmButtons || _ctx.cancelButton ? (openBlock(), createBlock(CkButton, {
22505
+ key: 0,
22486
22506
  class: "cancel-button",
22487
- onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
22488
22507
  color: "danger",
22489
- type: unref$1(realCancelBtnType)
22508
+ type: unref$1(realCancelBtnType),
22509
+ onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
22490
22510
  }, {
22491
22511
  default: withCtx(() => [
22492
- createTextVNode(toDisplayString(__props.cancelBtnText || "Cancelar"), 1)
22512
+ createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
22493
22513
  ]),
22494
22514
  _: 1
22495
- }, 8, ["type"]),
22496
- createVNode(CkButton, {
22497
- onClick: _cache[2] || (_cache[2] = ($event) => onAccept()),
22498
- type: unref$1(realAcceptBtnType)
22515
+ }, 8, ["type"])) : createCommentVNode("", true),
22516
+ __props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
22517
+ key: 1,
22518
+ type: unref$1(realAcceptBtnType),
22519
+ onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
22499
22520
  }, {
22500
22521
  default: withCtx(() => [
22501
- createTextVNode(toDisplayString(__props.acceptBtnText || "Aceptar"), 1)
22522
+ createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
22502
22523
  ]),
22503
22524
  _: 1
22504
- }, 8, ["type"])
22525
+ }, 8, ["type"])) : createCommentVNode("", true)
22505
22526
  ])) : createCommentVNode("", true)
22506
22527
  ])) : createCommentVNode("", true)
22507
22528
  ], 6)
@@ -22512,7 +22533,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22512
22533
  });
22513
22534
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
22514
22535
  const _hoisted_1$b = { class: "columns-manger-container" };
22515
- const _hoisted_2$7 = { class: "columns-manger__item" };
22536
+ const _hoisted_2$8 = { class: "columns-manger__item" };
22516
22537
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
22517
22538
  props: {
22518
22539
  modelValue: { type: Boolean },
@@ -22561,7 +22582,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22561
22582
  default: withCtx(() => [
22562
22583
  createElementVNode("div", _hoisted_1$b, [
22563
22584
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(columnsCheckable), (col) => {
22564
- return openBlock(), createElementBlock("div", _hoisted_2$7, [
22585
+ return openBlock(), createElementBlock("div", _hoisted_2$8, [
22565
22586
  createVNode(CkCheckbox, {
22566
22587
  modelValue: col.value,
22567
22588
  "onUpdate:modelValue": ($event) => col.value = $event,
@@ -22585,7 +22606,7 @@ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId"
22585
22606
  var ckTable_vue_vue_type_style_index_0_lang = "";
22586
22607
  var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
22587
22608
  const _hoisted_1$a = { class: "ck-table" };
22588
- const _hoisted_2$6 = {
22609
+ const _hoisted_2$7 = {
22589
22610
  key: 0,
22590
22611
  class: "ck-table__header"
22591
22612
  };
@@ -22623,7 +22644,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22623
22644
  setup(__props, { emit: emits }) {
22624
22645
  const props = __props;
22625
22646
  let cleekOptions2 = ref();
22626
- const defaultNoResultsText = "No se encontraron resultados";
22647
+ const defaultNoResultsText = "No results found";
22627
22648
  const defaultItemsPerPage = 40;
22628
22649
  const { windowWidth } = useWindowWidth();
22629
22650
  const isPopupActive = ref({
@@ -22724,7 +22745,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22724
22745
  columns: __props.columns || []
22725
22746
  }, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
22726
22747
  createElementVNode("div", _hoisted_1$a, [
22727
- _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
22748
+ _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
22728
22749
  createVNode(TableHeaderItems, {
22729
22750
  search: unref$1(searchLocal),
22730
22751
  "onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
@@ -22805,7 +22826,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22805
22826
  };
22806
22827
  }
22807
22828
  });
22808
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6af574e4"]]);
22829
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6d6258c2"]]);
22809
22830
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
22810
22831
  const _hoisted_1$9 = ["color"];
22811
22832
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
@@ -22847,7 +22868,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22847
22868
  };
22848
22869
  }
22849
22870
  });
22850
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-36521210"]]);
22871
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-65283496"]]);
22851
22872
  var ckDiv_vue_vue_type_style_index_0_lang = "";
22852
22873
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22853
22874
  props: {
@@ -22887,7 +22908,6 @@ const _hoisted_1$8 = ["src", "alt"];
22887
22908
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22888
22909
  props: {
22889
22910
  src: null,
22890
- failImgSrc: null,
22891
22911
  alt: null,
22892
22912
  size: null,
22893
22913
  sizeAbsolute: null,
@@ -22896,9 +22916,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22896
22916
  zoom: { type: Boolean },
22897
22917
  zoomTitle: null,
22898
22918
  hasBorder: { type: Boolean },
22899
- radius: null,
22900
22919
  borderColor: null,
22901
- rounded: { type: Boolean }
22920
+ rounded: { type: Boolean },
22921
+ radius: null
22902
22922
  },
22903
22923
  setup(__props) {
22904
22924
  const props = __props;
@@ -22996,11 +23016,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22996
23016
  };
22997
23017
  }
22998
23018
  });
22999
- var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-246c956c"]]);
23019
+ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-79a0763b"]]);
23000
23020
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
23001
23021
  const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
23002
23022
  const _hoisted_1$7 = ["onKeyup"];
23003
- const _hoisted_2$5 = ["name", "value", "disabled"];
23023
+ const _hoisted_2$6 = ["name", "value", "disabled"];
23004
23024
  const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
23005
23025
  const _hoisted_4$3 = {
23006
23026
  key: 0,
@@ -23055,7 +23075,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23055
23075
  name: __props.name,
23056
23076
  value: option.value,
23057
23077
  disabled: __props.disabled
23058
- }, null, 8, _hoisted_2$5), [
23078
+ }, null, 8, _hoisted_2$6), [
23059
23079
  [vModelRadio, unref$1(value)]
23060
23080
  ]),
23061
23081
  _hoisted_3$3,
@@ -23068,7 +23088,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23068
23088
  var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-2e09b238"]]);
23069
23089
  var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
23070
23090
  const _hoisted_1$6 = ["disabled"];
23071
- const _hoisted_2$4 = ["value"];
23091
+ const _hoisted_2$5 = ["value"];
23072
23092
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23073
23093
  props: {
23074
23094
  modelValue: null,
@@ -23084,10 +23104,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23084
23104
  notClearable: { type: Boolean },
23085
23105
  clearValue: null,
23086
23106
  searchable: { type: [Boolean, String] },
23087
- minWidth: null,
23088
23107
  width: null,
23089
- noBorder: { type: Boolean },
23108
+ minWidth: null,
23090
23109
  layout: null,
23110
+ noBorder: { type: Boolean },
23091
23111
  borderColor: null,
23092
23112
  bgTransparent: { type: Boolean },
23093
23113
  disabled: { type: Boolean },
@@ -23312,7 +23332,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23312
23332
  return openBlock(), createElementBlock("option", {
23313
23333
  value: getOptionValue(option),
23314
23334
  key: option
23315
- }, toDisplayString(getOptionName(option)), 9, _hoisted_2$4);
23335
+ }, toDisplayString(getOptionName(option)), 9, _hoisted_2$5);
23316
23336
  }), 128))
23317
23337
  ], 46, _hoisted_1$6), [
23318
23338
  [vModelSelect, unref$1(value)]
@@ -23321,7 +23341,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23321
23341
  };
23322
23342
  }
23323
23343
  });
23324
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6ec8caba"]]);
23344
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5aafba97"]]);
23325
23345
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23326
23346
  const _hoisted_1$5 = {
23327
23347
  key: 0,
@@ -23413,11 +23433,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23413
23433
  };
23414
23434
  }
23415
23435
  });
23416
- var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2a47d044"]]);
23436
+ var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9dfb990e"]]);
23417
23437
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
23418
- const _withScopeId$1 = (n) => (pushScopeId("data-v-f66bfcc0"), n = n(), popScopeId(), n);
23438
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-12938cd0"), n = n(), popScopeId(), n);
23419
23439
  const _hoisted_1$4 = ["disabled"];
23420
- const _hoisted_2$3 = { class: "ck-switch__slider-container" };
23440
+ const _hoisted_2$4 = { class: "ck-switch__slider-container" };
23421
23441
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
23422
23442
  const _hoisted_4$2 = {
23423
23443
  key: 0,
@@ -23491,7 +23511,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23491
23511
  }, null, 8, _hoisted_1$4), [
23492
23512
  [vModelCheckbox, unref$1(value)]
23493
23513
  ]),
23494
- createElementVNode("div", _hoisted_2$3, [
23514
+ createElementVNode("div", _hoisted_2$4, [
23495
23515
  _hoisted_3$2,
23496
23516
  __props.icon && unref$1(value) ? (openBlock(), createBlock(CkIcon, {
23497
23517
  key: 0,
@@ -23513,10 +23533,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23513
23533
  };
23514
23534
  }
23515
23535
  });
23516
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f66bfcc0"]]);
23536
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-12938cd0"]]);
23517
23537
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
23518
23538
  const _hoisted_1$3 = { class: "ck-switch-options__container-exterior" };
23519
- const _hoisted_2$2 = ["onClick"];
23539
+ const _hoisted_2$3 = ["onClick"];
23520
23540
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23521
23541
  props: {
23522
23542
  modelValue: { type: [Boolean, Number, Object] },
@@ -23588,7 +23608,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23588
23608
  key: `ck-switch-options${index}`,
23589
23609
  style: normalizeStyle(unref$1(computedItemStyle)),
23590
23610
  onClick: ($event) => selectedOption.value = getOptionValue(option)
23591
- }, toDisplayString(option[__props.prop || defaultProp]), 15, _hoisted_2$2);
23611
+ }, toDisplayString(option[__props.prop || defaultProp]), 15, _hoisted_2$3);
23592
23612
  }), 128))
23593
23613
  ], 2)
23594
23614
  ]);
@@ -23598,13 +23618,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23598
23618
  var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4bc709a8"]]);
23599
23619
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
23600
23620
  const _hoisted_1$2 = { class: "ck-textarea" };
23621
+ const _hoisted_2$2 = ["placeholder", "disabled"];
23601
23622
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23602
23623
  props: {
23603
23624
  modelValue: null,
23604
23625
  label: null,
23605
23626
  labelAlign: null,
23606
23627
  layout: null,
23607
- borderColor: null
23628
+ borderColor: null,
23629
+ placeholder: null,
23630
+ disabled: { type: Boolean },
23631
+ preventResize: { type: Boolean },
23632
+ resize: null
23608
23633
  },
23609
23634
  emits: ["update:modelValue"],
23610
23635
  setup(__props, { emit: emits }) {
@@ -23637,6 +23662,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23637
23662
  if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
23638
23663
  list.push({ "border-color": borderColor });
23639
23664
  }
23665
+ if (props.resize)
23666
+ list.push({ resize: props.resize || "both" });
23640
23667
  return list;
23641
23668
  });
23642
23669
  onMounted(() => {
@@ -23655,18 +23682,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23655
23682
  }, 8, ["label-align"])) : createCommentVNode("", true),
23656
23683
  withDirectives(createElementVNode("textarea", {
23657
23684
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
23685
+ placeholder: __props.placeholder,
23686
+ disabled: __props.disabled,
23658
23687
  class: normalizeClass(unref$1(computedClassTextarea)),
23659
23688
  style: normalizeStyle(unref$1(computedStyleTextarea))
23660
- }, null, 6), [
23689
+ }, null, 14, _hoisted_2$2), [
23661
23690
  [vModelText, unref$1(value)]
23662
23691
  ])
23663
23692
  ]);
23664
23693
  };
23665
23694
  }
23666
23695
  });
23667
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-95fd3820"]]);
23696
+ var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f36045c"]]);
23668
23697
  var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
23669
- const _withScopeId = (n) => (pushScopeId("data-v-bc51fc7a"), n = n(), popScopeId(), n);
23698
+ const _withScopeId = (n) => (pushScopeId("data-v-5d01d37a"), n = n(), popScopeId(), n);
23670
23699
  const _hoisted_1$1 = { class: "ck-confirm--background" };
23671
23700
  const _hoisted_2$1 = { class: "ck-confirm" };
23672
23701
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-confirm__icon" }, [
@@ -23681,20 +23710,42 @@ const _hoisted_5 = { class: "ck-confirm__message" };
23681
23710
  const _hoisted_6 = { class: "ck-confirm__buttons-container" };
23682
23711
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23683
23712
  setup(__props, { expose }) {
23713
+ let cleekOptions2 = ref();
23684
23714
  const title = ref("");
23685
23715
  const msg = ref("");
23686
- const acceptText = ref("Aceptar");
23687
- const cancelText = ref("Cancelar");
23716
+ const acceptText = ref("");
23717
+ const cancelText = ref("");
23688
23718
  const responseSuccess = ref(() => {
23689
23719
  });
23690
23720
  const responseFailure = ref(() => {
23691
23721
  });
23722
+ const defaultTitle = computed$2(() => {
23723
+ var _a;
23724
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
23725
+ return "\xBFEst\xE1s seguro?";
23726
+ return "\xBFAre you sure?";
23727
+ });
23728
+ const defaultAcceptText = computed$2(() => {
23729
+ var _a;
23730
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
23731
+ return "Aceptar";
23732
+ return "Accept";
23733
+ });
23734
+ const defaultCancelText = computed$2(() => {
23735
+ var _a;
23736
+ if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
23737
+ return "Cancelar";
23738
+ return "Cancel";
23739
+ });
23692
23740
  function onCancel() {
23693
23741
  responseFailure.value();
23694
23742
  }
23695
23743
  function onAccept() {
23696
23744
  responseSuccess.value();
23697
23745
  }
23746
+ onMounted(() => {
23747
+ cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23748
+ });
23698
23749
  expose({
23699
23750
  title,
23700
23751
  msg,
@@ -23707,24 +23758,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23707
23758
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
23708
23759
  createElementVNode("div", _hoisted_2$1, [
23709
23760
  _hoisted_3$1,
23710
- createElementVNode("div", _hoisted_4$1, toDisplayString(title.value), 1),
23761
+ createElementVNode("div", _hoisted_4$1, toDisplayString(title.value || unref$1(defaultTitle)), 1),
23711
23762
  createElementVNode("div", _hoisted_5, toDisplayString(msg.value), 1),
23712
23763
  createElementVNode("div", _hoisted_6, [
23713
23764
  createElementVNode("button", {
23714
23765
  class: "ck-confirm__button--cancel",
23715
23766
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
23716
- }, toDisplayString(cancelText.value), 1),
23767
+ }, toDisplayString(cancelText.value || unref$1(defaultCancelText)), 1),
23717
23768
  createElementVNode("button", {
23718
23769
  class: "ck-confirm__button--accept",
23719
23770
  onClick: _cache[1] || (_cache[1] = ($event) => onAccept())
23720
- }, toDisplayString(acceptText.value), 1)
23771
+ }, toDisplayString(acceptText.value || unref$1(defaultAcceptText)), 1)
23721
23772
  ])
23722
23773
  ])
23723
23774
  ]);
23724
23775
  };
23725
23776
  }
23726
23777
  });
23727
- var CkConfirmComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bc51fc7a"]]);
23778
+ var CkConfirmComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5d01d37a"]]);
23728
23779
  var CkNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
23729
23780
  const _hoisted_1 = { class: "ck-notify__container" };
23730
23781
  const _hoisted_2 = { class: "ck-notify__title" };
@@ -23732,6 +23783,7 @@ const _hoisted_3 = { class: "close-btn" };
23732
23783
  const _hoisted_4 = { class: "ck-notify__text" };
23733
23784
  const _sfc_main = /* @__PURE__ */ defineComponent({
23734
23785
  setup(__props, { expose }) {
23786
+ let cleekOptions2 = ref();
23735
23787
  const isActive = ref(true);
23736
23788
  const title = ref("");
23737
23789
  const text2 = ref("");
@@ -23746,7 +23798,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23746
23798
  duration,
23747
23799
  closeCallback
23748
23800
  });
23801
+ const defaultTitle = computed$2(() => {
23802
+ switch (color.value) {
23803
+ case "success":
23804
+ if (lang === "es")
23805
+ return "\xC9xito";
23806
+ return "Success";
23807
+ case "danger":
23808
+ if (lang === "es")
23809
+ return "Error";
23810
+ return "Error";
23811
+ case "warning":
23812
+ if (lang === "es")
23813
+ return "Atenci\xF3n";
23814
+ return "Alert";
23815
+ }
23816
+ return "";
23817
+ });
23818
+ const computedClass = computed$2(() => {
23819
+ const list = [];
23820
+ if (color.value && hooks8.isColorTemplateVariable(color.value)) {
23821
+ list.push(`ck-component__bg-color--${color.value}`);
23822
+ }
23823
+ return list;
23824
+ });
23825
+ const computedStyle = computed$2(() => {
23826
+ const list = [];
23827
+ if (color.value && !hooks8.isColorTemplateVariable(color.value)) {
23828
+ list.push({ "background-color": color.value });
23829
+ }
23830
+ return list;
23831
+ });
23749
23832
  onMounted(() => {
23833
+ cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23750
23834
  setTimeout(() => {
23751
23835
  closeCallback.value();
23752
23836
  }, duration.value);
@@ -23758,8 +23842,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23758
23842
  }, [
23759
23843
  createElementVNode("div", _hoisted_1, [
23760
23844
  createElementVNode("div", {
23761
- class: "ck-notify",
23762
- style: normalizeStyle({ "background-color": color.value }),
23845
+ class: normalizeClass(["ck-notify", unref$1(computedClass)]),
23846
+ style: normalizeStyle(unref$1(computedStyle)),
23763
23847
  onClick: _cache[0] || (_cache[0] = ($event) => {
23764
23848
  isActive.value = false;
23765
23849
  closeCallback.value();
@@ -23769,23 +23853,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23769
23853
  createElementVNode("div", _hoisted_3, [
23770
23854
  createVNode(CkIcon, { icon: "times" })
23771
23855
  ]),
23772
- createTextVNode(toDisplayString(title.value), 1)
23856
+ createTextVNode(toDisplayString(title.value || unref$1(defaultTitle)), 1)
23773
23857
  ]),
23774
23858
  createElementVNode("div", _hoisted_4, toDisplayString(text2.value), 1)
23775
- ], 4)
23859
+ ], 6)
23776
23860
  ])
23777
23861
  ])) : createCommentVNode("", true);
23778
23862
  };
23779
23863
  }
23780
23864
  });
23781
- var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-667c806b"]]);
23865
+ var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04e2d5fe"]]);
23782
23866
  const defaultDuration = 2e3;
23783
23867
  var ckNotify = {
23784
23868
  confirmOptions({
23785
- title = "\xBFEst\xE1s seguro?",
23869
+ title = "",
23786
23870
  msg = "",
23787
- acceptText = "Aceptar",
23788
- cancelText = "Cancelar",
23871
+ acceptText = "",
23872
+ cancelText = "",
23789
23873
  success = () => {
23790
23874
  },
23791
23875
  failure = () => {
@@ -23814,7 +23898,7 @@ var ckNotify = {
23814
23898
  failure
23815
23899
  });
23816
23900
  },
23817
- notify({ text: text2 = "", title = "", color = "#ccc", duration = defaultDuration }) {
23901
+ notify({ text: text2 = "", title = "", color = "", duration = defaultDuration }) {
23818
23902
  const tempDiv = document.createElement("div");
23819
23903
  const instance = createApp(CkNotifyComponent).mount(tempDiv);
23820
23904
  instance.title = title;
@@ -23825,14 +23909,14 @@ var ckNotify = {
23825
23909
  instance.$el.remove();
23826
23910
  };
23827
23911
  },
23828
- notifySuccess(text2 = "", title = "\xC9xito") {
23829
- this.notify({ text: text2, title, color: "#66CC00" });
23912
+ notifySuccess(text2, title = "") {
23913
+ this.notify({ text: text2, title, color: "success" });
23830
23914
  },
23831
- notifyError(text2 = "", title = "Error") {
23832
- this.notify({ text: text2, title, color: "#FF3333" });
23915
+ notifyError(text2, title = "") {
23916
+ this.notify({ text: text2, title, color: "danger" });
23833
23917
  },
23834
- notifyWarning(text2 = "", title = "Atenci\xF3n") {
23835
- this.notify({ text: text2, title, color: "#FFDD33" });
23918
+ notifyWarning(text2, title = "") {
23919
+ this.notify({ text: text2, title, color: "warning" });
23836
23920
  }
23837
23921
  };
23838
23922
  var components = /* @__PURE__ */ Object.freeze({
@@ -23873,12 +23957,16 @@ function setRootColors(colors) {
23873
23957
  }
23874
23958
  function getCleekOptions(userOptions) {
23875
23959
  const options = cleekOptions;
23876
- for (const category in cleekOptions) {
23877
- if (userOptions[category]) {
23878
- for (const key in userOptions[category]) {
23879
- const value = userOptions[category][key];
23880
- if (value)
23881
- options[category][key] = value;
23960
+ for (const categoryName in cleekOptions) {
23961
+ if (userOptions[categoryName]) {
23962
+ if (typeof userOptions[categoryName] === "string") {
23963
+ options[categoryName] = userOptions[categoryName];
23964
+ } else {
23965
+ for (const key in userOptions[categoryName]) {
23966
+ const value = userOptions[categoryName][key];
23967
+ if (value)
23968
+ options[categoryName][key] = value;
23969
+ }
23882
23970
  }
23883
23971
  }
23884
23972
  }