cleek 2.4.37 → 2.4.40

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
@@ -2340,7 +2340,7 @@ const _hoisted_2$1$1 = {
2340
2340
  };
2341
2341
  const _hoisted_3$8 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
2342
2342
  const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2343
- const _hoisted_5$3 = [
2343
+ const _hoisted_5$4 = [
2344
2344
  _hoisted_3$8,
2345
2345
  _hoisted_4$7
2346
2346
  ];
@@ -2401,7 +2401,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2401
2401
  left: _ctx.toPx(_ctx.result.arrow.x),
2402
2402
  top: _ctx.toPx(_ctx.result.arrow.y)
2403
2403
  } : void 0)
2404
- }, _hoisted_5$3, 4)
2404
+ }, _hoisted_5$4, 4)
2405
2405
  ], 4)
2406
2406
  ], 46, _hoisted_1$1$1);
2407
2407
  }
@@ -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: {
@@ -21296,8 +21291,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21296
21291
  type: "flat",
21297
21292
  icon: "rotate-right",
21298
21293
  title: "Recargar lista",
21294
+ layout: __props.layout,
21299
21295
  onClick: _cache[0] || (_cache[0] = ($event) => emits("refreshList", false))
21300
- })) : createCommentVNode("", true),
21296
+ }, null, 8, ["layout"])) : createCommentVNode("", true),
21301
21297
  unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
21302
21298
  key: 1,
21303
21299
  class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
@@ -21309,27 +21305,32 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21309
21305
  icon: "magnifying-glass",
21310
21306
  placeholder: "Buscar...",
21311
21307
  group: unref$1(searchGroupValue),
21308
+ layout: __props.layout,
21312
21309
  onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
21313
- }, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
21310
+ }, null, 8, ["modelValue", "group", "layout"])) : createCommentVNode("", true),
21314
21311
  __props.hasColumnsManager ? (openBlock(), createBlock(CkButton, {
21315
21312
  key: 3,
21316
21313
  icon: "columns",
21317
21314
  type: "filled",
21318
21315
  title: "Administrador de columnas",
21319
21316
  group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
21317
+ layout: __props.layout,
21320
21318
  onClick: _cache[3] || (_cache[3] = ($event) => emits("openColumnsManager"))
21321
- }, null, 8, ["group"])) : createCommentVNode("", true)
21319
+ }, null, 8, ["group", "layout"])) : createCommentVNode("", true)
21322
21320
  ], 64)) : createCommentVNode("", true)
21323
21321
  ], 2);
21324
21322
  };
21325
21323
  }
21326
21324
  });
21327
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3ede608c"]]);
21325
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-af0d0550"]]);
21328
21326
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
21327
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-78fe58de"), n = n(), popScopeId(), n);
21329
21328
  const _hoisted_1$e = { class: "ck-table__pagination" };
21330
- const _hoisted_2$a = { class: "ck-table__pagination--numbers-container" };
21329
+ const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
21331
21330
  const _hoisted_3$7 = ["onClick"];
21332
- const _hoisted_4$6 = ["onClick"];
21331
+ const _hoisted_4$6 = { class: "ck-table__pagination-input-container" };
21332
+ const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
21333
+ const _hoisted_6$3 = ["onClick"];
21333
21334
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
21334
21335
  props: {
21335
21336
  currentPage: null,
@@ -21347,19 +21348,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21347
21348
  get() {
21348
21349
  return props.currentPage;
21349
21350
  },
21350
- set(val) {
21351
- validateInputNumber(val);
21351
+ set() {
21352
21352
  }
21353
21353
  });
21354
21354
  const hasArrowLeft = computed$2(() => {
21355
- if (!listLeft.value.length)
21356
- return false;
21357
- return listLeft.value[0] !== 1;
21355
+ return props.currentPage !== 1;
21358
21356
  });
21359
21357
  const hasArrowRight = computed$2(() => {
21360
- if (!listRight.value.length)
21361
- return false;
21362
- return listRight.value[listRight.value.length - 1] !== totalPages.value;
21358
+ return props.currentPage !== listRight.value[listRight.value.length - 1];
21363
21359
  });
21364
21360
  const totalPages = computed$2(() => {
21365
21361
  return Math.ceil(props.listLength / props.itemsPerPage);
@@ -21406,6 +21402,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21406
21402
  emits("refreshList");
21407
21403
  }
21408
21404
  function validateInputNumber(val) {
21405
+ console.log("valido", val);
21409
21406
  val = +val;
21410
21407
  if (val > totalPages.value)
21411
21408
  val = totalPages.value;
@@ -21435,30 +21432,35 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21435
21432
  icon: unref$1(hasArrowLeft) ? "angle-left" : "grip-lines-vertical"
21436
21433
  }, null, 8, ["icon"])
21437
21434
  ], 2),
21438
- createElementVNode("div", _hoisted_2$a, [
21435
+ createElementVNode("div", _hoisted_2$b, [
21439
21436
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listLeft), (num) => {
21440
21437
  return openBlock(), createElementBlock("div", {
21441
21438
  class: "ck-table__pagination-item--left",
21442
21439
  onClick: ($event) => updateCurrentPage(num)
21443
21440
  }, toDisplayString(num), 9, _hoisted_3$7);
21444
21441
  }), 256)),
21445
- withDirectives(createElementVNode("input", {
21446
- class: "ck-table__pagination-input",
21447
- type: "number",
21448
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null)
21449
- }, null, 512), [
21450
- [vModelText, unref$1(currentPageLocal)]
21442
+ createElementVNode("div", _hoisted_4$6, [
21443
+ withDirectives(createElementVNode("input", {
21444
+ class: "ck-table__pagination-input",
21445
+ type: "number",
21446
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
21447
+ onClick: _cache[2] || (_cache[2] = ($event) => $event.target.select()),
21448
+ onChange: _cache[3] || (_cache[3] = ($event) => validateInputNumber($event.target.value))
21449
+ }, null, 544), [
21450
+ [vModelText, unref$1(currentPageLocal)]
21451
+ ]),
21452
+ _hoisted_5$3
21451
21453
  ]),
21452
21454
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listRight), (num) => {
21453
21455
  return openBlock(), createElementBlock("div", {
21454
21456
  class: "ck-table__pagination-item--right",
21455
21457
  onClick: ($event) => updateCurrentPage(num)
21456
- }, toDisplayString(num), 9, _hoisted_4$6);
21458
+ }, toDisplayString(num), 9, _hoisted_6$3);
21457
21459
  }), 256))
21458
21460
  ]),
21459
21461
  createElementVNode("div", {
21460
21462
  class: normalizeClass(["ck-table__pagination--arrow-right", { disabled: !unref$1(hasArrowRight) }]),
21461
- onClick: _cache[2] || (_cache[2] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
21463
+ onClick: _cache[4] || (_cache[4] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
21462
21464
  }, [
21463
21465
  createVNode(CkIcon, {
21464
21466
  icon: unref$1(hasArrowRight) ? "angle-right" : "grip-lines-vertical"
@@ -21469,7 +21471,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21469
21471
  };
21470
21472
  }
21471
21473
  });
21472
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-079c5d65"]]);
21474
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-78fe58de"]]);
21473
21475
  const EMPTY_OBJ = {};
21474
21476
  const NOOP = () => {
21475
21477
  };
@@ -22243,7 +22245,7 @@ const computed = (getterOrOptions, debugOptions) => {
22243
22245
  var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
22244
22246
  const _withScopeId$3 = (n) => (pushScopeId("data-v-113ac83f"), n = n(), popScopeId(), n);
22245
22247
  const _hoisted_1$d = ["disabled", "checked"];
22246
- 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));
22247
22249
  const _hoisted_3$6 = {
22248
22250
  key: 0,
22249
22251
  class: "c-Checkbox__label"
@@ -22297,7 +22299,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22297
22299
  onChange2($event);
22298
22300
  })
22299
22301
  }, null, 40, _hoisted_1$d),
22300
- _hoisted_2$9,
22302
+ _hoisted_2$a,
22301
22303
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$6, [
22302
22304
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
22303
22305
  ])) : createCommentVNode("", true)
@@ -22311,7 +22313,7 @@ const _hoisted_1$c = {
22311
22313
  key: 0,
22312
22314
  class: "ck-popup"
22313
22315
  };
22314
- const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22316
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22315
22317
  const _hoisted_3$5 = {
22316
22318
  key: 0,
22317
22319
  class: "ck-popup__title"
@@ -22333,12 +22335,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22333
22335
  acceptButton: { type: Boolean },
22334
22336
  acceptBtnText: null,
22335
22337
  acceptBtnType: null,
22336
- cancelButton: { type: Boolean },
22337
22338
  cancelBtnText: null,
22338
22339
  cancelBtnType: null,
22339
- notClose: { type: Boolean },
22340
22340
  notCloseBtn: { type: Boolean },
22341
22341
  notCloseByBg: { type: Boolean },
22342
+ notClose: { type: Boolean },
22342
22343
  preventCloseOnCancel: { type: Boolean },
22343
22344
  width: null,
22344
22345
  maxWidth: null,
@@ -22409,6 +22410,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22409
22410
  if (headerColor && hooks8.isColorTemplateVariable(headerColor)) {
22410
22411
  list.push(`ck-component__bg-color--${headerColor}`);
22411
22412
  }
22413
+ if (!isCloseBtnVisible.value)
22414
+ list.push("close-btn-hidden");
22412
22415
  return list;
22413
22416
  });
22414
22417
  const realAcceptBtnType = computed$2(() => {
@@ -22427,6 +22430,29 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22427
22430
  return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
22428
22431
  return "flat";
22429
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
+ });
22430
22456
  function onCancel() {
22431
22457
  emits("cancel");
22432
22458
  if (!props.preventCloseOnCancel)
@@ -22445,7 +22471,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22445
22471
  });
22446
22472
  return (_ctx, _cache) => {
22447
22473
  return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
22448
- _hoisted_2$8,
22474
+ _hoisted_2$9,
22449
22475
  createElementVNode("div", {
22450
22476
  class: "popup-container",
22451
22477
  onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
@@ -22462,7 +22488,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22462
22488
  }, [
22463
22489
  __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
22464
22490
  renderSlot(_ctx.$slots, "header"),
22465
- !(__props.notCloseBtn || __props.notClose) ? (openBlock(), createBlock(CkIcon, {
22491
+ unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
22466
22492
  key: 1,
22467
22493
  class: "icon-close",
22468
22494
  icon: "times",
@@ -22472,29 +22498,31 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22472
22498
  createElementVNode("div", _hoisted_4$5, [
22473
22499
  renderSlot(_ctx.$slots, "default")
22474
22500
  ]),
22475
- _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
22501
+ _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
22476
22502
  renderSlot(_ctx.$slots, "footer"),
22477
- __props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
22478
- createVNode(CkButton, {
22503
+ __props.confirmButtons || __props.acceptButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
22504
+ __props.confirmButtons ? (openBlock(), createBlock(CkButton, {
22505
+ key: 0,
22479
22506
  class: "cancel-button",
22480
- onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
22481
22507
  color: "danger",
22482
- type: unref$1(realCancelBtnType)
22508
+ type: unref$1(realCancelBtnType),
22509
+ onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
22483
22510
  }, {
22484
22511
  default: withCtx(() => [
22485
- createTextVNode(toDisplayString(__props.cancelBtnText || "Cancelar"), 1)
22512
+ createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
22486
22513
  ]),
22487
22514
  _: 1
22488
- }, 8, ["type"]),
22489
- createVNode(CkButton, {
22490
- onClick: _cache[2] || (_cache[2] = ($event) => onAccept()),
22491
- 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())
22492
22520
  }, {
22493
22521
  default: withCtx(() => [
22494
- createTextVNode(toDisplayString(__props.acceptBtnText || "Aceptar"), 1)
22522
+ createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
22495
22523
  ]),
22496
22524
  _: 1
22497
- }, 8, ["type"])
22525
+ }, 8, ["type"])) : createCommentVNode("", true)
22498
22526
  ])) : createCommentVNode("", true)
22499
22527
  ])) : createCommentVNode("", true)
22500
22528
  ], 6)
@@ -22505,7 +22533,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22505
22533
  });
22506
22534
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
22507
22535
  const _hoisted_1$b = { class: "columns-manger-container" };
22508
- const _hoisted_2$7 = { class: "columns-manger__item" };
22536
+ const _hoisted_2$8 = { class: "columns-manger__item" };
22509
22537
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
22510
22538
  props: {
22511
22539
  modelValue: { type: Boolean },
@@ -22554,7 +22582,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22554
22582
  default: withCtx(() => [
22555
22583
  createElementVNode("div", _hoisted_1$b, [
22556
22584
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(columnsCheckable), (col) => {
22557
- return openBlock(), createElementBlock("div", _hoisted_2$7, [
22585
+ return openBlock(), createElementBlock("div", _hoisted_2$8, [
22558
22586
  createVNode(CkCheckbox, {
22559
22587
  modelValue: col.value,
22560
22588
  "onUpdate:modelValue": ($event) => col.value = $event,
@@ -22578,7 +22606,7 @@ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId"
22578
22606
  var ckTable_vue_vue_type_style_index_0_lang = "";
22579
22607
  var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
22580
22608
  const _hoisted_1$a = { class: "ck-table" };
22581
- const _hoisted_2$6 = {
22609
+ const _hoisted_2$7 = {
22582
22610
  key: 0,
22583
22611
  class: "ck-table__header"
22584
22612
  };
@@ -22616,7 +22644,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22616
22644
  setup(__props, { emit: emits }) {
22617
22645
  const props = __props;
22618
22646
  let cleekOptions2 = ref();
22619
- const defaultNoResultsText = "No se encontraron resultados";
22647
+ const defaultNoResultsText = "No results found";
22620
22648
  const defaultItemsPerPage = 40;
22621
22649
  const { windowWidth } = useWindowWidth();
22622
22650
  const isPopupActive = ref({
@@ -22717,7 +22745,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22717
22745
  columns: __props.columns || []
22718
22746
  }, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
22719
22747
  createElementVNode("div", _hoisted_1$a, [
22720
- _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
22748
+ _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
22721
22749
  createVNode(TableHeaderItems, {
22722
22750
  search: unref$1(searchLocal),
22723
22751
  "onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
@@ -22798,7 +22826,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22798
22826
  };
22799
22827
  }
22800
22828
  });
22801
- 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"]]);
22802
22830
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
22803
22831
  const _hoisted_1$9 = ["color"];
22804
22832
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
@@ -22840,7 +22868,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22840
22868
  };
22841
22869
  }
22842
22870
  });
22843
- 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"]]);
22844
22872
  var ckDiv_vue_vue_type_style_index_0_lang = "";
22845
22873
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22846
22874
  props: {
@@ -22880,7 +22908,6 @@ const _hoisted_1$8 = ["src", "alt"];
22880
22908
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22881
22909
  props: {
22882
22910
  src: null,
22883
- failImgSrc: null,
22884
22911
  alt: null,
22885
22912
  size: null,
22886
22913
  sizeAbsolute: null,
@@ -22889,9 +22916,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22889
22916
  zoom: { type: Boolean },
22890
22917
  zoomTitle: null,
22891
22918
  hasBorder: { type: Boolean },
22892
- radius: null,
22893
22919
  borderColor: null,
22894
- rounded: { type: Boolean }
22920
+ rounded: { type: Boolean },
22921
+ radius: null
22895
22922
  },
22896
22923
  setup(__props) {
22897
22924
  const props = __props;
@@ -22989,11 +23016,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22989
23016
  };
22990
23017
  }
22991
23018
  });
22992
- 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"]]);
22993
23020
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
22994
23021
  const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
22995
23022
  const _hoisted_1$7 = ["onKeyup"];
22996
- const _hoisted_2$5 = ["name", "value", "disabled"];
23023
+ const _hoisted_2$6 = ["name", "value", "disabled"];
22997
23024
  const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
22998
23025
  const _hoisted_4$3 = {
22999
23026
  key: 0,
@@ -23048,7 +23075,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23048
23075
  name: __props.name,
23049
23076
  value: option.value,
23050
23077
  disabled: __props.disabled
23051
- }, null, 8, _hoisted_2$5), [
23078
+ }, null, 8, _hoisted_2$6), [
23052
23079
  [vModelRadio, unref$1(value)]
23053
23080
  ]),
23054
23081
  _hoisted_3$3,
@@ -23061,7 +23088,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23061
23088
  var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-2e09b238"]]);
23062
23089
  var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
23063
23090
  const _hoisted_1$6 = ["disabled"];
23064
- const _hoisted_2$4 = ["value"];
23091
+ const _hoisted_2$5 = ["value"];
23065
23092
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23066
23093
  props: {
23067
23094
  modelValue: null,
@@ -23077,10 +23104,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23077
23104
  notClearable: { type: Boolean },
23078
23105
  clearValue: null,
23079
23106
  searchable: { type: [Boolean, String] },
23080
- minWidth: null,
23081
23107
  width: null,
23082
- noBorder: { type: Boolean },
23108
+ minWidth: null,
23083
23109
  layout: null,
23110
+ noBorder: { type: Boolean },
23084
23111
  borderColor: null,
23085
23112
  bgTransparent: { type: Boolean },
23086
23113
  disabled: { type: Boolean },
@@ -23305,7 +23332,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23305
23332
  return openBlock(), createElementBlock("option", {
23306
23333
  value: getOptionValue(option),
23307
23334
  key: option
23308
- }, toDisplayString(getOptionName(option)), 9, _hoisted_2$4);
23335
+ }, toDisplayString(getOptionName(option)), 9, _hoisted_2$5);
23309
23336
  }), 128))
23310
23337
  ], 46, _hoisted_1$6), [
23311
23338
  [vModelSelect, unref$1(value)]
@@ -23314,7 +23341,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23314
23341
  };
23315
23342
  }
23316
23343
  });
23317
- 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"]]);
23318
23345
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23319
23346
  const _hoisted_1$5 = {
23320
23347
  key: 0,
@@ -23406,11 +23433,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23406
23433
  };
23407
23434
  }
23408
23435
  });
23409
- 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"]]);
23410
23437
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
23411
- 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);
23412
23439
  const _hoisted_1$4 = ["disabled"];
23413
- const _hoisted_2$3 = { class: "ck-switch__slider-container" };
23440
+ const _hoisted_2$4 = { class: "ck-switch__slider-container" };
23414
23441
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
23415
23442
  const _hoisted_4$2 = {
23416
23443
  key: 0,
@@ -23484,7 +23511,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23484
23511
  }, null, 8, _hoisted_1$4), [
23485
23512
  [vModelCheckbox, unref$1(value)]
23486
23513
  ]),
23487
- createElementVNode("div", _hoisted_2$3, [
23514
+ createElementVNode("div", _hoisted_2$4, [
23488
23515
  _hoisted_3$2,
23489
23516
  __props.icon && unref$1(value) ? (openBlock(), createBlock(CkIcon, {
23490
23517
  key: 0,
@@ -23506,10 +23533,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23506
23533
  };
23507
23534
  }
23508
23535
  });
23509
- 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"]]);
23510
23537
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
23511
23538
  const _hoisted_1$3 = { class: "ck-switch-options__container-exterior" };
23512
- const _hoisted_2$2 = ["onClick"];
23539
+ const _hoisted_2$3 = ["onClick"];
23513
23540
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23514
23541
  props: {
23515
23542
  modelValue: { type: [Boolean, Number, Object] },
@@ -23581,7 +23608,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23581
23608
  key: `ck-switch-options${index}`,
23582
23609
  style: normalizeStyle(unref$1(computedItemStyle)),
23583
23610
  onClick: ($event) => selectedOption.value = getOptionValue(option)
23584
- }, toDisplayString(option[__props.prop || defaultProp]), 15, _hoisted_2$2);
23611
+ }, toDisplayString(option[__props.prop || defaultProp]), 15, _hoisted_2$3);
23585
23612
  }), 128))
23586
23613
  ], 2)
23587
23614
  ]);
@@ -23591,13 +23618,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
23591
23618
  var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4bc709a8"]]);
23592
23619
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
23593
23620
  const _hoisted_1$2 = { class: "ck-textarea" };
23621
+ const _hoisted_2$2 = ["placeholder", "disabled"];
23594
23622
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23595
23623
  props: {
23596
23624
  modelValue: null,
23597
23625
  label: null,
23598
23626
  labelAlign: null,
23599
23627
  layout: null,
23600
- borderColor: null
23628
+ borderColor: null,
23629
+ placeholder: null,
23630
+ disabled: { type: Boolean },
23631
+ preventResize: { type: Boolean },
23632
+ resize: null
23601
23633
  },
23602
23634
  emits: ["update:modelValue"],
23603
23635
  setup(__props, { emit: emits }) {
@@ -23630,6 +23662,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23630
23662
  if (borderColor && !hooks8.isColorTemplateVariable(borderColor)) {
23631
23663
  list.push({ "border-color": borderColor });
23632
23664
  }
23665
+ if (props.resize)
23666
+ list.push({ resize: props.resize || "both" });
23633
23667
  return list;
23634
23668
  });
23635
23669
  onMounted(() => {
@@ -23648,18 +23682,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
23648
23682
  }, 8, ["label-align"])) : createCommentVNode("", true),
23649
23683
  withDirectives(createElementVNode("textarea", {
23650
23684
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
23685
+ placeholder: __props.placeholder,
23686
+ disabled: __props.disabled,
23651
23687
  class: normalizeClass(unref$1(computedClassTextarea)),
23652
23688
  style: normalizeStyle(unref$1(computedStyleTextarea))
23653
- }, null, 6), [
23689
+ }, null, 14, _hoisted_2$2), [
23654
23690
  [vModelText, unref$1(value)]
23655
23691
  ])
23656
23692
  ]);
23657
23693
  };
23658
23694
  }
23659
23695
  });
23660
- 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"]]);
23661
23697
  var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
23662
- const _withScopeId = (n) => (pushScopeId("data-v-bc51fc7a"), n = n(), popScopeId(), n);
23698
+ const _withScopeId = (n) => (pushScopeId("data-v-5d01d37a"), n = n(), popScopeId(), n);
23663
23699
  const _hoisted_1$1 = { class: "ck-confirm--background" };
23664
23700
  const _hoisted_2$1 = { class: "ck-confirm" };
23665
23701
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-confirm__icon" }, [
@@ -23674,20 +23710,42 @@ const _hoisted_5 = { class: "ck-confirm__message" };
23674
23710
  const _hoisted_6 = { class: "ck-confirm__buttons-container" };
23675
23711
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23676
23712
  setup(__props, { expose }) {
23713
+ let cleekOptions2 = ref();
23677
23714
  const title = ref("");
23678
23715
  const msg = ref("");
23679
- const acceptText = ref("Aceptar");
23680
- const cancelText = ref("Cancelar");
23716
+ const acceptText = ref("");
23717
+ const cancelText = ref("");
23681
23718
  const responseSuccess = ref(() => {
23682
23719
  });
23683
23720
  const responseFailure = ref(() => {
23684
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
+ });
23685
23740
  function onCancel() {
23686
23741
  responseFailure.value();
23687
23742
  }
23688
23743
  function onAccept() {
23689
23744
  responseSuccess.value();
23690
23745
  }
23746
+ onMounted(() => {
23747
+ cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23748
+ });
23691
23749
  expose({
23692
23750
  title,
23693
23751
  msg,
@@ -23700,24 +23758,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23700
23758
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
23701
23759
  createElementVNode("div", _hoisted_2$1, [
23702
23760
  _hoisted_3$1,
23703
- createElementVNode("div", _hoisted_4$1, toDisplayString(title.value), 1),
23761
+ createElementVNode("div", _hoisted_4$1, toDisplayString(title.value || unref$1(defaultTitle)), 1),
23704
23762
  createElementVNode("div", _hoisted_5, toDisplayString(msg.value), 1),
23705
23763
  createElementVNode("div", _hoisted_6, [
23706
23764
  createElementVNode("button", {
23707
23765
  class: "ck-confirm__button--cancel",
23708
23766
  onClick: _cache[0] || (_cache[0] = ($event) => onCancel())
23709
- }, toDisplayString(cancelText.value), 1),
23767
+ }, toDisplayString(cancelText.value || unref$1(defaultCancelText)), 1),
23710
23768
  createElementVNode("button", {
23711
23769
  class: "ck-confirm__button--accept",
23712
23770
  onClick: _cache[1] || (_cache[1] = ($event) => onAccept())
23713
- }, toDisplayString(acceptText.value), 1)
23771
+ }, toDisplayString(acceptText.value || unref$1(defaultAcceptText)), 1)
23714
23772
  ])
23715
23773
  ])
23716
23774
  ]);
23717
23775
  };
23718
23776
  }
23719
23777
  });
23720
- 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"]]);
23721
23779
  var CkNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
23722
23780
  const _hoisted_1 = { class: "ck-notify__container" };
23723
23781
  const _hoisted_2 = { class: "ck-notify__title" };
@@ -23725,6 +23783,7 @@ const _hoisted_3 = { class: "close-btn" };
23725
23783
  const _hoisted_4 = { class: "ck-notify__text" };
23726
23784
  const _sfc_main = /* @__PURE__ */ defineComponent({
23727
23785
  setup(__props, { expose }) {
23786
+ let cleekOptions2 = ref();
23728
23787
  const isActive = ref(true);
23729
23788
  const title = ref("");
23730
23789
  const text2 = ref("");
@@ -23739,7 +23798,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23739
23798
  duration,
23740
23799
  closeCallback
23741
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
+ });
23742
23832
  onMounted(() => {
23833
+ cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23743
23834
  setTimeout(() => {
23744
23835
  closeCallback.value();
23745
23836
  }, duration.value);
@@ -23751,8 +23842,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23751
23842
  }, [
23752
23843
  createElementVNode("div", _hoisted_1, [
23753
23844
  createElementVNode("div", {
23754
- class: "ck-notify",
23755
- style: normalizeStyle({ "background-color": color.value }),
23845
+ class: normalizeClass(["ck-notify", unref$1(computedClass)]),
23846
+ style: normalizeStyle(unref$1(computedStyle)),
23756
23847
  onClick: _cache[0] || (_cache[0] = ($event) => {
23757
23848
  isActive.value = false;
23758
23849
  closeCallback.value();
@@ -23762,23 +23853,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23762
23853
  createElementVNode("div", _hoisted_3, [
23763
23854
  createVNode(CkIcon, { icon: "times" })
23764
23855
  ]),
23765
- createTextVNode(toDisplayString(title.value), 1)
23856
+ createTextVNode(toDisplayString(title.value || unref$1(defaultTitle)), 1)
23766
23857
  ]),
23767
23858
  createElementVNode("div", _hoisted_4, toDisplayString(text2.value), 1)
23768
- ], 4)
23859
+ ], 6)
23769
23860
  ])
23770
23861
  ])) : createCommentVNode("", true);
23771
23862
  };
23772
23863
  }
23773
23864
  });
23774
- var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-667c806b"]]);
23865
+ var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04e2d5fe"]]);
23775
23866
  const defaultDuration = 2e3;
23776
23867
  var ckNotify = {
23777
23868
  confirmOptions({
23778
- title = "\xBFEst\xE1s seguro?",
23869
+ title = "",
23779
23870
  msg = "",
23780
- acceptText = "Aceptar",
23781
- cancelText = "Cancelar",
23871
+ acceptText = "",
23872
+ cancelText = "",
23782
23873
  success = () => {
23783
23874
  },
23784
23875
  failure = () => {
@@ -23807,7 +23898,7 @@ var ckNotify = {
23807
23898
  failure
23808
23899
  });
23809
23900
  },
23810
- notify({ text: text2 = "", title = "", color = "#ccc", duration = defaultDuration }) {
23901
+ notify({ text: text2 = "", title = "", color = "", duration = defaultDuration }) {
23811
23902
  const tempDiv = document.createElement("div");
23812
23903
  const instance = createApp(CkNotifyComponent).mount(tempDiv);
23813
23904
  instance.title = title;
@@ -23818,14 +23909,14 @@ var ckNotify = {
23818
23909
  instance.$el.remove();
23819
23910
  };
23820
23911
  },
23821
- notifySuccess(text2 = "", title = "\xC9xito") {
23822
- this.notify({ text: text2, title, color: "#66CC00" });
23912
+ notifySuccess(text2, title = "") {
23913
+ this.notify({ text: text2, title, color: "success" });
23823
23914
  },
23824
- notifyError(text2 = "", title = "Error") {
23825
- this.notify({ text: text2, title, color: "#FF3333" });
23915
+ notifyError(text2, title = "") {
23916
+ this.notify({ text: text2, title, color: "danger" });
23826
23917
  },
23827
- notifyWarning(text2 = "", title = "Atenci\xF3n") {
23828
- this.notify({ text: text2, title, color: "#FFDD33" });
23918
+ notifyWarning(text2, title = "") {
23919
+ this.notify({ text: text2, title, color: "warning" });
23829
23920
  }
23830
23921
  };
23831
23922
  var components = /* @__PURE__ */ Object.freeze({
@@ -23866,12 +23957,16 @@ function setRootColors(colors) {
23866
23957
  }
23867
23958
  function getCleekOptions(userOptions) {
23868
23959
  const options = cleekOptions;
23869
- for (const category in cleekOptions) {
23870
- if (userOptions[category]) {
23871
- for (const key in userOptions[category]) {
23872
- const value = userOptions[category][key];
23873
- if (value)
23874
- 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
+ }
23875
23970
  }
23876
23971
  }
23877
23972
  }