cleek 2.4.2 → 2.4.5

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
@@ -2339,10 +2339,10 @@ const _hoisted_2$1$1 = {
2339
2339
  class: "v-popper__inner"
2340
2340
  };
2341
2341
  const _hoisted_3$8 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
2342
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2342
+ const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2343
2343
  const _hoisted_5$3 = [
2344
2344
  _hoisted_3$8,
2345
- _hoisted_4$5
2345
+ _hoisted_4$6
2346
2346
  ];
2347
2347
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2348
2348
  const _component_ResizeObserver = resolveComponent("ResizeObserver");
@@ -2889,16 +2889,22 @@ const plugin = {
2889
2889
  install: install$1,
2890
2890
  options: config$2
2891
2891
  };
2892
- var defaultCleekOptions = {
2892
+ const cleekOptions = {
2893
2893
  colors: {
2894
2894
  primary: "#559933",
2895
2895
  secondary: "#559933"
2896
2896
  },
2897
2897
  button: {
2898
- type: "outlined"
2898
+ type: "outlined",
2899
+ rounded: false
2899
2900
  },
2900
2901
  img: {
2901
2902
  basePath: ""
2903
+ },
2904
+ styles: {
2905
+ type: "outlined",
2906
+ rounded: false,
2907
+ borderColor: "#dae1e7"
2902
2908
  }
2903
2909
  };
2904
2910
  /*!
@@ -18802,6 +18808,18 @@ var functions = {
18802
18808
  classList2.push(`ck-component__group-vertical--${groupVertical}`);
18803
18809
  return classList2;
18804
18810
  },
18811
+ getRoundedValue(propIsRounded, cleekOptions2) {
18812
+ var _a, _b;
18813
+ if (typeof propIsRounded !== "undefined")
18814
+ return propIsRounded;
18815
+ if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded) !== "undefined") {
18816
+ return cleekOptions2.styles.rounded;
18817
+ }
18818
+ if (typeof ((_b = cleekOptions2 == null ? void 0 : cleekOptions2.button) == null ? void 0 : _b.rounded) !== "undefined") {
18819
+ return cleekOptions2.button.rounded;
18820
+ }
18821
+ return false;
18822
+ },
18805
18823
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
18806
18824
  if (widthBreaks) {
18807
18825
  let realWidthBreaks = [...widthBreaks];
@@ -20882,15 +20900,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20882
20900
  const defaultButtonType = "outlined";
20883
20901
  const defaultColor = "primary";
20884
20902
  const defaultAlign = "left";
20885
- let $cleekOptions;
20886
- const isMounted = ref(false);
20903
+ let cleekOptions2;
20887
20904
  const realButtonType = computed$2(() => {
20888
20905
  if (props.type)
20889
20906
  return props.type;
20890
- if (isMounted.value) {
20891
- if ($cleekOptions)
20892
- return $cleekOptions.button.type;
20893
- }
20907
+ if (cleekOptions2)
20908
+ return cleekOptions2.button.type;
20894
20909
  return defaultButtonType;
20895
20910
  });
20896
20911
  const computedClass = computed$2(() => {
@@ -20908,9 +20923,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20908
20923
  if (align === "center" || align === "right") {
20909
20924
  list.push(`ck-button__align--${props.align}`);
20910
20925
  }
20911
- if (props.rounded)
20912
- console.log("rounded");
20913
- if (props.rounded)
20926
+ if (functions.getRoundedValue(props.rounded, cleekOptions2))
20914
20927
  list.push("rounded");
20915
20928
  list.push(`type-${realButtonType.value}`);
20916
20929
  if (props.size)
@@ -20935,8 +20948,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20935
20948
  emits("click", event);
20936
20949
  }
20937
20950
  onMounted(() => {
20938
- $cleekOptions = functions.getCleekOptions(getCurrentInstance);
20939
- isMounted.value = true;
20951
+ cleekOptions2 = functions.getCleekOptions(getCurrentInstance);
20940
20952
  });
20941
20953
  functions.preventUnusedError([
20942
20954
  onClick2,
@@ -20970,7 +20982,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20970
20982
  };
20971
20983
  }
20972
20984
  });
20973
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-debd87be"]]);
20985
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-39c8f698"]]);
20974
20986
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
20975
20987
  const _hoisted_1$h = ["for"];
20976
20988
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21024,6 +21036,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21024
21036
  width: null,
21025
21037
  align: null,
21026
21038
  rounded: { type: Boolean },
21039
+ borderColor: null,
21027
21040
  autoSelect: { type: Boolean },
21028
21041
  delayChangeTime: null
21029
21042
  },
@@ -21031,6 +21044,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21031
21044
  setup(__props, { expose, emit: emits }) {
21032
21045
  const props = __props;
21033
21046
  expose({ setFocus, setSelect });
21047
+ let cleekOptions2;
21034
21048
  const defaultType = "text";
21035
21049
  const defaultDelayChangeTime = 300;
21036
21050
  const realInput = ref(null);
@@ -21074,10 +21088,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21074
21088
  list.push(`align--${props.align}`);
21075
21089
  if (props.hideBorder)
21076
21090
  list.push("no-border");
21077
- if (props.rounded)
21091
+ if (functions.getRoundedValue(props.rounded, cleekOptions2))
21078
21092
  list.push("rounded");
21079
21093
  if (props.size)
21080
21094
  list.push(`ck-input-size__${props.size}`);
21095
+ if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
21096
+ list.push(`ck-input--border-color__${props.borderColor}`);
21097
+ }
21098
+ return list;
21099
+ });
21100
+ const computedStyleInput = computed$2(() => {
21101
+ const list = [];
21102
+ if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
21103
+ list.push({ "border-color": props.borderColor });
21104
+ }
21081
21105
  return list;
21082
21106
  });
21083
21107
  const computedStyle = computed$2(() => {
@@ -21114,6 +21138,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21114
21138
  onInput,
21115
21139
  onClick2
21116
21140
  ]);
21141
+ onMounted(() => {
21142
+ cleekOptions2 = functions.getCleekOptions(getCurrentInstance);
21143
+ });
21117
21144
  return (_ctx, _cache) => {
21118
21145
  return openBlock(), createElementBlock("div", {
21119
21146
  class: "ck-input",
@@ -21145,11 +21172,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21145
21172
  type: __props.type || defaultType,
21146
21173
  placeholder: __props.placeholder,
21147
21174
  class: normalizeClass(unref$1(computedClassInput)),
21175
+ style: normalizeStyle(unref$1(computedStyleInput)),
21148
21176
  disabled: __props.disabled,
21149
21177
  onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
21150
21178
  onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
21151
21179
  onClick: _cache[3] || (_cache[3] = ($event) => onClick2($event))
21152
- }, null, 42, _hoisted_1$g), [
21180
+ }, null, 46, _hoisted_1$g), [
21153
21181
  [vModelDynamic, unref$1(value)]
21154
21182
  ]),
21155
21183
  __props.iconRight ? (openBlock(), createBlock(CkIcon, {
@@ -21163,7 +21191,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21163
21191
  };
21164
21192
  }
21165
21193
  });
21166
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-30f54a2c"]]);
21194
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-076ee92e"]]);
21167
21195
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21168
21196
  const _hoisted_1$f = { class: "ck-table__header-items" };
21169
21197
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -22233,7 +22261,7 @@ const _hoisted_1$c = {
22233
22261
  };
22234
22262
  const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
22235
22263
  const _hoisted_3$5 = { class: "ck-popup__slot-header" };
22236
- const _hoisted_4$4 = {
22264
+ const _hoisted_4$5 = {
22237
22265
  key: 0,
22238
22266
  class: "ck-popup__title"
22239
22267
  };
@@ -22306,7 +22334,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22306
22334
  style: normalizeStyle(unref$1(computedStyleContent))
22307
22335
  }, [
22308
22336
  createElementVNode("div", _hoisted_3$5, [
22309
- __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$4, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
22337
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
22310
22338
  renderSlot(_ctx.$slots, "header"),
22311
22339
  !(__props.notCloseBtn || __props.notClose) ? (openBlock(), createBlock(CkIcon, {
22312
22340
  key: 1,
@@ -22419,7 +22447,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22419
22447
  };
22420
22448
  }
22421
22449
  });
22422
- var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2d6fd542"]]);
22450
+ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31e8c81c"]]);
22423
22451
  var ckTable_vue_vue_type_style_index_0_lang = "";
22424
22452
  var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
22425
22453
  const _hoisted_1$a = { class: "ck-table" };
@@ -22431,7 +22459,7 @@ const _hoisted_3$4 = {
22431
22459
  key: 0,
22432
22460
  class: "ck-table__header--slot"
22433
22461
  };
22434
- const _hoisted_4$3 = { key: 0 };
22462
+ const _hoisted_4$4 = { key: 0 };
22435
22463
  const _hoisted_5$1 = { key: 1 };
22436
22464
  const _hoisted_6$1 = {
22437
22465
  key: 2,
@@ -22578,7 +22606,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22578
22606
  createElementVNode("table", {
22579
22607
  class: normalizeClass(["ck-table__table", unref$1(computedClassTable)])
22580
22608
  }, [
22581
- unref$1(filteredColumnsList).length && !(_ctx.$slots.mobile && unref$1(isMobileVisible)) ? (openBlock(), createElementBlock("thead", _hoisted_4$3, [
22609
+ unref$1(filteredColumnsList).length && !(_ctx.$slots.mobile && unref$1(isMobileVisible)) ? (openBlock(), createElementBlock("thead", _hoisted_4$4, [
22582
22610
  createVNode(CkTr, null, {
22583
22611
  default: withCtx(() => [
22584
22612
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
@@ -22831,7 +22859,7 @@ const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScope
22831
22859
  const _hoisted_1$7 = ["onKeyup"];
22832
22860
  const _hoisted_2$5 = ["name", "value", "disabled"];
22833
22861
  const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
22834
- const _hoisted_4$2 = {
22862
+ const _hoisted_4$3 = {
22835
22863
  key: 0,
22836
22864
  class: "c-Radio__label"
22837
22865
  };
@@ -22888,7 +22916,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22888
22916
  [vModelRadio, unref$1(value)]
22889
22917
  ]),
22890
22918
  _hoisted_3$3,
22891
- option.label ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(option.label), 1)) : createCommentVNode("", true)
22919
+ option.label ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(option.label), 1)) : createCommentVNode("", true)
22892
22920
  ], 16, _hoisted_1$7);
22893
22921
  }), 128);
22894
22922
  };
@@ -22915,6 +22943,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22915
22943
  searchable: { type: [Boolean, String] },
22916
22944
  minWidth: null,
22917
22945
  noBorder: { type: Boolean },
22946
+ rounded: { type: Boolean },
22947
+ borderColor: null,
22918
22948
  bgTransparent: { type: Boolean },
22919
22949
  disabled: { type: Boolean },
22920
22950
  group: null,
@@ -22926,6 +22956,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22926
22956
  emits: ["update:modelValue", "click", "change"],
22927
22957
  setup(__props, { expose, emit: emits }) {
22928
22958
  const props = __props;
22959
+ let cleekOptions2;
22929
22960
  expose({
22930
22961
  setFocus
22931
22962
  });
@@ -22963,8 +22994,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22963
22994
  const computedClassSelect = computed$2(() => {
22964
22995
  const list = [];
22965
22996
  list.push(functions.getGroupClass(props, windowWidth.value));
22997
+ if (functions.getRoundedValue(props.rounded, cleekOptions2))
22998
+ list.push("rounded");
22966
22999
  if (isClearBtnVisible.value)
22967
23000
  list.push("clear-able");
23001
+ if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
23002
+ list.push(`ck-input--border-color__${props.borderColor}`);
23003
+ }
23004
+ return list;
23005
+ });
23006
+ const computedStyleSelect = computed$2(() => {
23007
+ const list = [];
23008
+ if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
23009
+ list.push({ "border-color": props.borderColor });
23010
+ }
22968
23011
  return list;
22969
23012
  });
22970
23013
  const computedStyle = computed$2(() => {
@@ -23045,6 +23088,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23045
23088
  }
23046
23089
  function setFocus() {
23047
23090
  }
23091
+ onMounted(() => {
23092
+ cleekOptions2 = functions.getCleekOptions(getCurrentInstance);
23093
+ });
23048
23094
  functions.preventUnusedError([
23049
23095
  computedStyle,
23050
23096
  computedClassSelect,
@@ -23078,6 +23124,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23078
23124
  withDirectives(createElementVNode("select", {
23079
23125
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(value) ? value.value = $event : null),
23080
23126
  class: normalizeClass(unref$1(computedClassSelect)),
23127
+ style: normalizeStyle(unref$1(computedStyleSelect)),
23081
23128
  disabled: __props.disabled,
23082
23129
  onClick: _cache[2] || (_cache[2] = ($event) => onClick2($event)),
23083
23130
  onChange: _cache[3] || (_cache[3] = ($event) => onChange2($event))
@@ -23088,14 +23135,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23088
23135
  key: option
23089
23136
  }, toDisplayString(getOptionName(option)), 9, _hoisted_2$4);
23090
23137
  }), 128))
23091
- ], 42, _hoisted_1$6), [
23138
+ ], 46, _hoisted_1$6), [
23092
23139
  [vModelSelect, unref$1(value)]
23093
23140
  ])
23094
23141
  ], 4);
23095
23142
  };
23096
23143
  }
23097
23144
  });
23098
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-37612997"]]);
23145
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1a65447e"]]);
23099
23146
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23100
23147
  const _hoisted_1$5 = {
23101
23148
  key: 1,
@@ -23171,7 +23218,7 @@ const _withScopeId$1 = (n) => (pushScopeId("data-v-f66bfcc0"), n = n(), popScope
23171
23218
  const _hoisted_1$4 = ["disabled"];
23172
23219
  const _hoisted_2$3 = { class: "ck-switch__slider-container" };
23173
23220
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
23174
- const _hoisted_4$1 = {
23221
+ const _hoisted_4$2 = {
23175
23222
  key: 0,
23176
23223
  class: "ck-switch__content"
23177
23224
  };
@@ -23258,7 +23305,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23258
23305
  "icon-pack": __props.iconPack
23259
23306
  }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
23260
23307
  ]),
23261
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
23308
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$2, [
23262
23309
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
23263
23310
  ])) : createCommentVNode("", true)
23264
23311
  ], 16);
@@ -23399,7 +23446,7 @@ const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
23399
23446
  height: "7rem"
23400
23447
  })
23401
23448
  ], -1));
23402
- const _hoisted_4 = { class: "ck-confirm__title" };
23449
+ const _hoisted_4$1 = { class: "ck-confirm__title" };
23403
23450
  const _hoisted_5 = { class: "ck-confirm__message" };
23404
23451
  const _hoisted_6 = { class: "ck-confirm__buttons-container" };
23405
23452
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -23430,7 +23477,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23430
23477
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
23431
23478
  createElementVNode("div", _hoisted_2$1, [
23432
23479
  _hoisted_3$1,
23433
- createElementVNode("div", _hoisted_4, toDisplayString(title.value), 1),
23480
+ createElementVNode("div", _hoisted_4$1, toDisplayString(title.value), 1),
23434
23481
  createElementVNode("div", _hoisted_5, toDisplayString(msg.value), 1),
23435
23482
  createElementVNode("div", _hoisted_6, [
23436
23483
  createElementVNode("button", {
@@ -23449,43 +23496,59 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23449
23496
  });
23450
23497
  var CkConfirmComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bc51fc7a"]]);
23451
23498
  var CkNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
23452
- const _hoisted_1 = { class: "ck-notify__title" };
23453
- const _hoisted_2 = { class: "close-btn" };
23454
- const _hoisted_3 = { class: "ck-notify__text" };
23499
+ const _hoisted_1 = { class: "ck-notify__container" };
23500
+ const _hoisted_2 = { class: "ck-notify__title" };
23501
+ const _hoisted_3 = { class: "close-btn" };
23502
+ const _hoisted_4 = { class: "ck-notify__text" };
23455
23503
  const _sfc_main = /* @__PURE__ */ defineComponent({
23456
23504
  setup(__props, { expose }) {
23457
23505
  const isActive = ref(true);
23458
23506
  const title = ref("");
23459
23507
  const text2 = ref("");
23460
23508
  const color = ref("");
23509
+ const duration = ref(0);
23510
+ const closeCallback = ref(() => {
23511
+ });
23461
23512
  expose({
23462
23513
  title,
23463
23514
  text: text2,
23464
- color
23515
+ color,
23516
+ duration,
23517
+ closeCallback
23518
+ });
23519
+ onMounted(() => {
23520
+ setTimeout(() => {
23521
+ closeCallback.value();
23522
+ }, duration.value);
23465
23523
  });
23466
23524
  return (_ctx, _cache) => {
23467
23525
  return isActive.value ? (openBlock(), createBlock(Teleport, {
23468
23526
  key: 0,
23469
23527
  to: "body"
23470
23528
  }, [
23471
- createElementVNode("div", {
23472
- class: "ck-notify",
23473
- style: normalizeStyle({ "background-color": color.value }),
23474
- onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
23475
- }, [
23476
- createElementVNode("div", _hoisted_1, [
23529
+ createElementVNode("div", _hoisted_1, [
23530
+ createElementVNode("div", {
23531
+ class: "ck-notify",
23532
+ style: normalizeStyle({ "background-color": color.value }),
23533
+ onClick: _cache[0] || (_cache[0] = ($event) => {
23534
+ isActive.value = false;
23535
+ closeCallback.value();
23536
+ })
23537
+ }, [
23477
23538
  createElementVNode("div", _hoisted_2, [
23478
- createVNode(CkIcon, { icon: "times" })
23539
+ createElementVNode("div", _hoisted_3, [
23540
+ createVNode(CkIcon, { icon: "times" })
23541
+ ]),
23542
+ createTextVNode(toDisplayString(title.value), 1)
23479
23543
  ]),
23480
- createTextVNode(toDisplayString(title.value), 1)
23481
- ]),
23482
- createElementVNode("div", _hoisted_3, toDisplayString(text2.value), 1)
23483
- ], 4)
23544
+ createElementVNode("div", _hoisted_4, toDisplayString(text2.value), 1)
23545
+ ], 4)
23546
+ ])
23484
23547
  ])) : createCommentVNode("", true);
23485
23548
  };
23486
23549
  }
23487
23550
  });
23488
- var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-286f3370"]]);
23551
+ var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-667c806b"]]);
23489
23552
  const defaultDuration = 2e3;
23490
23553
  var ckNotify = {
23491
23554
  confirm({
@@ -23520,11 +23583,10 @@ var ckNotify = {
23520
23583
  instance.title = title;
23521
23584
  instance.text = text2;
23522
23585
  instance.color = color;
23523
- console.log("duration", duration);
23524
- setTimeout(() => {
23586
+ instance.duration = duration;
23587
+ instance.closeCallback = () => {
23525
23588
  instance.$el.remove();
23526
- console.log("cierro");
23527
- }, duration);
23589
+ };
23528
23590
  },
23529
23591
  notifySuccess(text2 = "", title = "\xC9xito") {
23530
23592
  this.notify({ text: text2, title, color: "#66CC00" });
@@ -23573,8 +23635,8 @@ function setRootColors(colors) {
23573
23635
  }
23574
23636
  }
23575
23637
  function getCleekOptions(userOptions) {
23576
- const options = defaultCleekOptions;
23577
- for (const category in defaultCleekOptions) {
23638
+ const options = cleekOptions;
23639
+ for (const category in cleekOptions) {
23578
23640
  if (userOptions[category]) {
23579
23641
  for (const key in userOptions[category]) {
23580
23642
  const value = userOptions[category][key];