cleek 2.4.41 → 2.4.44
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 +81 -85
- package/dist/cleek.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/ck-button.vue.d.ts +0 -50
- package/dist/components/ck-checkbox.vue.d.ts +0 -26
- package/dist/components/ck-chip.vue.d.ts +0 -28
- package/dist/components/ck-div.vue.d.ts +0 -19
- package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +0 -20
- package/dist/components/ck-icon.vue.d.ts +0 -34
- package/dist/components/ck-img.vue.d.ts +0 -38
- package/dist/components/ck-input.vue.d.ts +0 -75
- package/dist/components/ck-label.vue.d.ts +0 -20
- package/dist/components/ck-navbar/ck-navbar.vue.d.ts +0 -17
- package/dist/components/ck-notify/ck-notify.d.ts +0 -21
- package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +0 -10
- package/dist/components/ck-notify/components/CkNotify.vue.d.ts +0 -9
- package/dist/components/ck-popup.vue.d.ts +0 -62
- package/dist/components/ck-radio.vue.d.ts +0 -34
- package/dist/components/ck-select.vue.d.ts +0 -82
- package/dist/components/ck-sidebar.vue.d.ts +0 -33
- package/dist/components/ck-switch-options.vue.d.ts +0 -42
- package/dist/components/ck-switch.vue.d.ts +0 -32
- package/dist/components/ck-table/ck-table.vue.d.ts +0 -59
- package/dist/components/ck-table/ck-td.vue.d.ts +0 -43
- package/dist/components/ck-table/ck-th.vue.d.ts +0 -17
- package/dist/components/ck-table/ck-tr.vue.d.ts +0 -2
- package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +0 -24
- package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +0 -42
- package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +0 -31
- package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +0 -16
- package/dist/components/ck-textarea.vue.d.ts +0 -36
- package/dist/components/index.d.ts +0 -22
- package/dist/hooks/windowWidth.d.ts +0 -3
- package/dist/types/cleek-options.d.ts +0 -42
- package/dist/types/table.d.ts +0 -6
- package/dist/utils/functions.d.ts +0 -15
- package/dist/utils/globalVariables.d.ts +0 -6
package/dist/cleek.es.js
CHANGED
|
@@ -18907,51 +18907,52 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18907
18907
|
setup(__props) {
|
|
18908
18908
|
const props = __props;
|
|
18909
18909
|
const computedTdClass = computed$2(() => {
|
|
18910
|
+
var _a, _b, _c;
|
|
18910
18911
|
const list = [];
|
|
18911
|
-
|
|
18912
|
+
console.log("props", __spreadValues({}, props));
|
|
18913
|
+
if (props.autoWidth || ((_a = props.col) == null ? void 0 : _a.autoWidth))
|
|
18912
18914
|
list.push("auto-width");
|
|
18913
|
-
if (props.overflowAuto)
|
|
18915
|
+
if (props.overflowAuto || ((_b = props.col) == null ? void 0 : _b.overflowAuto))
|
|
18914
18916
|
list.push("overflow-auto");
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
+
const verticalAlign = props.verticalAlign || ((_c = props.col) == null ? void 0 : _c.verticalAlign);
|
|
18918
|
+
if (verticalAlign)
|
|
18919
|
+
list.push(`vertical-align--${verticalAlign}`);
|
|
18917
18920
|
return list;
|
|
18918
18921
|
});
|
|
18919
18922
|
const computedSpanClass = computed$2(() => {
|
|
18923
|
+
var _a, _b, _c;
|
|
18920
18924
|
const list = [];
|
|
18921
|
-
|
|
18922
|
-
if (props.col)
|
|
18923
|
-
align = props.col.align;
|
|
18924
|
-
if (props.align)
|
|
18925
|
-
align = props.align;
|
|
18925
|
+
const align = props.align || ((_a = props.col) == null ? void 0 : _a.align);
|
|
18926
18926
|
if (align) {
|
|
18927
18927
|
if (align === "center")
|
|
18928
18928
|
list.push("align-center");
|
|
18929
18929
|
if (align === "right")
|
|
18930
18930
|
list.push("align-right");
|
|
18931
18931
|
}
|
|
18932
|
-
if (props.block)
|
|
18932
|
+
if (props.block || ((_b = props.col) == null ? void 0 : _b.block))
|
|
18933
18933
|
list.push("block");
|
|
18934
|
-
if (props.
|
|
18934
|
+
if (props.nowrap || ((_c = props.col) == null ? void 0 : _c.nowrap))
|
|
18935
18935
|
list.push("no-wrap-text");
|
|
18936
18936
|
return list;
|
|
18937
18937
|
});
|
|
18938
18938
|
const computedStyle = computed$2(() => {
|
|
18939
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
18939
18940
|
const list = {};
|
|
18940
|
-
let minWidth
|
|
18941
|
-
if (props.minWidth)
|
|
18942
|
-
minWidth = props.minWidth;
|
|
18943
|
-
if (props.fixedWidth)
|
|
18944
|
-
minWidth = props.fixedWidth;
|
|
18941
|
+
let minWidth;
|
|
18942
|
+
if (props.minWidth || ((_a = props.col) == null ? void 0 : _a.minWidth))
|
|
18943
|
+
minWidth = props.minWidth || ((_b = props.col) == null ? void 0 : _b.minWidth);
|
|
18944
|
+
if (props.fixedWidth || ((_c = props.col) == null ? void 0 : _c.fixedWidth))
|
|
18945
|
+
minWidth = props.fixedWidth || ((_d = props.col) == null ? void 0 : _d.fixedWidth);
|
|
18945
18946
|
if (minWidth)
|
|
18946
18947
|
list.minWidth = minWidth;
|
|
18947
|
-
let maxWidth
|
|
18948
|
-
if (props.maxWidth)
|
|
18949
|
-
maxWidth = props.maxWidth;
|
|
18950
|
-
if (props.fixedWidth)
|
|
18951
|
-
maxWidth = props.fixedWidth;
|
|
18948
|
+
let maxWidth;
|
|
18949
|
+
if (props.maxWidth || ((_e = props.col) == null ? void 0 : _e.maxWidth))
|
|
18950
|
+
maxWidth = props.maxWidth || ((_f = props.col) == null ? void 0 : _f.maxWidth);
|
|
18951
|
+
if (props.fixedWidth || ((_g = props.col) == null ? void 0 : _g.fixedWidth))
|
|
18952
|
+
maxWidth = props.fixedWidth || ((_h = props.col) == null ? void 0 : _h.fixedWidth);
|
|
18952
18953
|
if (maxWidth)
|
|
18953
18954
|
list.maxWidth = maxWidth;
|
|
18954
|
-
if (props.maxHeight)
|
|
18955
|
+
if (props.maxHeight || ((_i = props.col) == null ? void 0 : _i.maxHeight))
|
|
18955
18956
|
list.maxHeight = props.maxHeight;
|
|
18956
18957
|
return list;
|
|
18957
18958
|
});
|
|
@@ -18979,7 +18980,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18979
18980
|
};
|
|
18980
18981
|
}
|
|
18981
18982
|
});
|
|
18982
|
-
var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
18983
|
+
var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-cf9c5808"]]);
|
|
18983
18984
|
var axios$2 = { exports: {} };
|
|
18984
18985
|
var bind$2 = function bind2(fn, thisArg) {
|
|
18985
18986
|
return function wrap() {
|
|
@@ -21235,8 +21236,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21235
21236
|
emits("update:search", val);
|
|
21236
21237
|
}
|
|
21237
21238
|
});
|
|
21238
|
-
const
|
|
21239
|
-
return typeof searchLocal.value
|
|
21239
|
+
const isSearchVisible = computed$2(() => {
|
|
21240
|
+
return typeof searchLocal.value !== "undefined";
|
|
21240
21241
|
});
|
|
21241
21242
|
const itemsPerPageStart = computed$2(() => {
|
|
21242
21243
|
return (props.currentPage - 1) * props.itemsPerPage + 1;
|
|
@@ -21296,9 +21297,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21296
21297
|
}, null, 8, ["layout"])) : createCommentVNode("", true),
|
|
21297
21298
|
unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
|
|
21298
21299
|
key: 1,
|
|
21299
|
-
class: normalizeClass(["items-per-page", { "ck-component__group--left":
|
|
21300
|
+
class: normalizeClass(["items-per-page", { "ck-component__group--left": unref$1(isSearchVisible) }])
|
|
21300
21301
|
}, toDisplayString(unref$1(itemsPerPageStart)) + " - " + toDisplayString(unref$1(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
|
|
21301
|
-
|
|
21302
|
+
unref$1(isSearchVisible) ? (openBlock(), createBlock(CkInput, {
|
|
21302
21303
|
key: 2,
|
|
21303
21304
|
modelValue: unref$1(searchLocal),
|
|
21304
21305
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
@@ -21313,7 +21314,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21313
21314
|
icon: "columns",
|
|
21314
21315
|
type: "filled",
|
|
21315
21316
|
title: "Administrador de columnas",
|
|
21316
|
-
group: unref$1(itemsPerPageIsVisible) ||
|
|
21317
|
+
group: unref$1(itemsPerPageIsVisible) || unref$1(isSearchVisible) ? "right" : "",
|
|
21317
21318
|
layout: __props.layout,
|
|
21318
21319
|
onClick: _cache[3] || (_cache[3] = ($event) => emits("openColumnsManager"))
|
|
21319
21320
|
}, null, 8, ["group", "layout"])) : createCommentVNode("", true)
|
|
@@ -21322,7 +21323,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21322
21323
|
};
|
|
21323
21324
|
}
|
|
21324
21325
|
});
|
|
21325
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
21326
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4bfc21c8"]]);
|
|
21326
21327
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21327
21328
|
const _withScopeId$4 = (n) => (pushScopeId("data-v-78fe58de"), n = n(), popScopeId(), n);
|
|
21328
21329
|
const _hoisted_1$e = { class: "ck-table__pagination" };
|
|
@@ -22335,6 +22336,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22335
22336
|
acceptButton: { type: Boolean },
|
|
22336
22337
|
acceptBtnText: null,
|
|
22337
22338
|
acceptBtnType: null,
|
|
22339
|
+
cancelButton: { type: Boolean },
|
|
22338
22340
|
cancelBtnText: null,
|
|
22339
22341
|
cancelBtnType: null,
|
|
22340
22342
|
notCloseBtn: { type: Boolean },
|
|
@@ -22498,10 +22500,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22498
22500
|
createElementVNode("div", _hoisted_4$5, [
|
|
22499
22501
|
renderSlot(_ctx.$slots, "default")
|
|
22500
22502
|
]),
|
|
22501
|
-
_ctx.$slots.footer || __props.confirmButtons || __props.acceptButton ||
|
|
22503
|
+
_ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
22502
22504
|
renderSlot(_ctx.$slots, "footer"),
|
|
22503
|
-
__props.confirmButtons || __props.acceptButton ||
|
|
22504
|
-
__props.confirmButtons ||
|
|
22505
|
+
__props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
22506
|
+
__props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
|
|
22505
22507
|
key: 0,
|
|
22506
22508
|
class: "cancel-button",
|
|
22507
22509
|
color: "danger",
|
|
@@ -22644,12 +22646,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22644
22646
|
setup(__props, { emit: emits }) {
|
|
22645
22647
|
const props = __props;
|
|
22646
22648
|
let cleekOptions2 = ref();
|
|
22647
|
-
const defaultNoResultsText = "No results found";
|
|
22648
22649
|
const defaultItemsPerPage = 40;
|
|
22649
22650
|
const { windowWidth } = useWindowWidth();
|
|
22650
22651
|
const isPopupActive = ref({
|
|
22651
22652
|
columnsManager: false
|
|
22652
22653
|
});
|
|
22654
|
+
const defaultNoResultsText = computed$2(() => {
|
|
22655
|
+
var _a;
|
|
22656
|
+
if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
|
|
22657
|
+
return "No se encontraron resultados";
|
|
22658
|
+
return "No results found";
|
|
22659
|
+
});
|
|
22653
22660
|
const columnsAreObj = computed$2(() => !qmObj.isArray(props.columns || []));
|
|
22654
22661
|
const columnsArray = computed$2(() => {
|
|
22655
22662
|
if (columnsAreObj.value) {
|
|
@@ -22676,7 +22683,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22676
22683
|
});
|
|
22677
22684
|
const searchLocal = computed$2({
|
|
22678
22685
|
get() {
|
|
22679
|
-
return props.search
|
|
22686
|
+
return props.search;
|
|
22680
22687
|
},
|
|
22681
22688
|
set(val) {
|
|
22682
22689
|
emits("update:search", val);
|
|
@@ -22772,7 +22779,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22772
22779
|
class: normalizeClass(["ck-table__table", unref$1(computedClassTable)])
|
|
22773
22780
|
}, [
|
|
22774
22781
|
unref$1(filteredColumnsList).length && !(_ctx.$slots.mobile && unref$1(isMobileVisible)) ? (openBlock(), createElementBlock("thead", _hoisted_4$4, [
|
|
22775
|
-
createVNode(CkTr,
|
|
22782
|
+
createVNode(CkTr, { class: "header-row" }, {
|
|
22776
22783
|
default: withCtx(() => [
|
|
22777
22784
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
22778
22785
|
return openBlock(), createBlock(_sfc_main$l, {
|
|
@@ -22795,7 +22802,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22795
22802
|
align: "center"
|
|
22796
22803
|
}, {
|
|
22797
22804
|
default: withCtx(() => [
|
|
22798
|
-
createTextVNode(toDisplayString(__props.noResultsText || defaultNoResultsText), 1)
|
|
22805
|
+
createTextVNode(toDisplayString(__props.noResultsText || unref$1(defaultNoResultsText)), 1)
|
|
22799
22806
|
]),
|
|
22800
22807
|
_: 1
|
|
22801
22808
|
})
|
|
@@ -22826,7 +22833,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22826
22833
|
};
|
|
22827
22834
|
}
|
|
22828
22835
|
});
|
|
22829
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
22836
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-64f91af6"]]);
|
|
22830
22837
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22831
22838
|
const _hoisted_1$9 = ["color"];
|
|
22832
22839
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -22834,6 +22841,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22834
22841
|
size: null,
|
|
22835
22842
|
color: null,
|
|
22836
22843
|
textColor: null,
|
|
22844
|
+
align: null,
|
|
22837
22845
|
icon: null,
|
|
22838
22846
|
iconPack: null
|
|
22839
22847
|
},
|
|
@@ -22843,10 +22851,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22843
22851
|
const defaultColor = "primary";
|
|
22844
22852
|
const defaultSize = "s";
|
|
22845
22853
|
const computedClass = computed$2(() => {
|
|
22846
|
-
|
|
22847
|
-
|
|
22848
|
-
|
|
22849
|
-
|
|
22854
|
+
const list = [];
|
|
22855
|
+
list.push(`size-${props.size || defaultSize}`);
|
|
22856
|
+
list.push(`ck-component__bg-color--${props.color || defaultColor}`);
|
|
22857
|
+
if (props.align)
|
|
22858
|
+
list.push(`align--${props.align}`);
|
|
22859
|
+
return list;
|
|
22850
22860
|
});
|
|
22851
22861
|
const computedStyle = computed$2(() => {
|
|
22852
22862
|
return [];
|
|
@@ -22868,7 +22878,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
22868
22878
|
};
|
|
22869
22879
|
}
|
|
22870
22880
|
});
|
|
22871
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
22881
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ad665c4a"]]);
|
|
22872
22882
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
22873
22883
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
22874
22884
|
props: {
|
|
@@ -23695,7 +23705,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23695
23705
|
});
|
|
23696
23706
|
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6f36045c"]]);
|
|
23697
23707
|
var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23698
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
23708
|
+
const _withScopeId = (n) => (pushScopeId("data-v-314de9fc"), n = n(), popScopeId(), n);
|
|
23699
23709
|
const _hoisted_1$1 = { class: "ck-confirm--background" };
|
|
23700
23710
|
const _hoisted_2$1 = { class: "ck-confirm" };
|
|
23701
23711
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-confirm__icon" }, [
|
|
@@ -23720,22 +23730,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23720
23730
|
const responseFailure = ref(() => {
|
|
23721
23731
|
});
|
|
23722
23732
|
const defaultTitle = computed$2(() => {
|
|
23723
|
-
|
|
23724
|
-
if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
|
|
23725
|
-
return "\xBFEst\xE1s seguro?";
|
|
23726
|
-
return "\xBFAre you sure?";
|
|
23733
|
+
return "\xBFEst\xE1s seguro?";
|
|
23727
23734
|
});
|
|
23728
23735
|
const defaultAcceptText = computed$2(() => {
|
|
23729
|
-
|
|
23730
|
-
if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
|
|
23731
|
-
return "Aceptar";
|
|
23732
|
-
return "Accept";
|
|
23736
|
+
return "Aceptar";
|
|
23733
23737
|
});
|
|
23734
23738
|
const defaultCancelText = computed$2(() => {
|
|
23735
|
-
|
|
23736
|
-
if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
|
|
23737
|
-
return "Cancelar";
|
|
23738
|
-
return "Cancel";
|
|
23739
|
+
return "Cancelar";
|
|
23739
23740
|
});
|
|
23740
23741
|
function onCancel() {
|
|
23741
23742
|
responseFailure.value();
|
|
@@ -23757,6 +23758,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23757
23758
|
return (_ctx, _cache) => {
|
|
23758
23759
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
23759
23760
|
createElementVNode("div", _hoisted_2$1, [
|
|
23761
|
+
createElementVNode("div", null, "cleekOptions " + toDisplayString(unref$1(cleekOptions2)), 1),
|
|
23760
23762
|
_hoisted_3$1,
|
|
23761
23763
|
createElementVNode("div", _hoisted_4$1, toDisplayString(title.value || unref$1(defaultTitle)), 1),
|
|
23762
23764
|
createElementVNode("div", _hoisted_5, toDisplayString(msg.value), 1),
|
|
@@ -23775,7 +23777,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23775
23777
|
};
|
|
23776
23778
|
}
|
|
23777
23779
|
});
|
|
23778
|
-
var CkConfirmComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
23780
|
+
var CkConfirmComponent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-314de9fc"]]);
|
|
23779
23781
|
var CkNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23780
23782
|
const _hoisted_1 = { class: "ck-notify__container" };
|
|
23781
23783
|
const _hoisted_2 = { class: "ck-notify__title" };
|
|
@@ -23801,17 +23803,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23801
23803
|
const defaultTitle = computed$2(() => {
|
|
23802
23804
|
switch (color.value) {
|
|
23803
23805
|
case "success":
|
|
23804
|
-
|
|
23805
|
-
return "\xC9xito";
|
|
23806
|
-
return "Success";
|
|
23806
|
+
return "\xC9xito";
|
|
23807
23807
|
case "danger":
|
|
23808
|
-
if (lang === "es")
|
|
23809
|
-
return "Error";
|
|
23810
23808
|
return "Error";
|
|
23811
23809
|
case "warning":
|
|
23812
|
-
|
|
23813
|
-
return "Atenci\xF3n";
|
|
23814
|
-
return "Alert";
|
|
23810
|
+
return "Atenci\xF3n";
|
|
23815
23811
|
}
|
|
23816
23812
|
return "";
|
|
23817
23813
|
});
|
|
@@ -23831,9 +23827,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23831
23827
|
});
|
|
23832
23828
|
onMounted(() => {
|
|
23833
23829
|
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
23830
|
+
console.log("getCurrentInstance", getCurrentInstance);
|
|
23831
|
+
console.log("getCurrentInstance", __spreadValues({}, getCurrentInstance));
|
|
23832
|
+
console.log("cleekOptions.value", cleekOptions2.value);
|
|
23833
|
+
console.log("hooks.getCleekOptions(getCurrentInstance)", hooks8.getCleekOptions(getCurrentInstance));
|
|
23834
23834
|
setTimeout(() => {
|
|
23835
|
-
|
|
23836
|
-
|
|
23835
|
+
setTimeout(() => {
|
|
23836
|
+
closeCallback.value();
|
|
23837
|
+
}, duration.value);
|
|
23838
|
+
}, 10);
|
|
23837
23839
|
});
|
|
23838
23840
|
return (_ctx, _cache) => {
|
|
23839
23841
|
return isActive.value ? (openBlock(), createBlock(Teleport, {
|
|
@@ -23862,7 +23864,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23862
23864
|
};
|
|
23863
23865
|
}
|
|
23864
23866
|
});
|
|
23865
|
-
var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23867
|
+
var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-34060c3d"]]);
|
|
23866
23868
|
const defaultDuration = 2e3;
|
|
23867
23869
|
var ckNotify = {
|
|
23868
23870
|
confirmOptions({
|
|
@@ -23876,20 +23878,13 @@ var ckNotify = {
|
|
|
23876
23878
|
}
|
|
23877
23879
|
}) {
|
|
23878
23880
|
const tempDiv = document.createElement("div");
|
|
23879
|
-
const instance = createApp(CkConfirmComponent)
|
|
23880
|
-
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
23885
|
-
|
|
23886
|
-
success();
|
|
23887
|
-
};
|
|
23888
|
-
instance.responseFailure = () => {
|
|
23889
|
-
instance.$el.remove();
|
|
23890
|
-
failure();
|
|
23891
|
-
};
|
|
23892
|
-
document.body.appendChild(instance.$el);
|
|
23881
|
+
const instance = createApp(CkConfirmComponent);
|
|
23882
|
+
const instanceMounted = instance.mount(tempDiv);
|
|
23883
|
+
instanceMounted.title = title;
|
|
23884
|
+
instanceMounted.msg = msg;
|
|
23885
|
+
instanceMounted.acceptText = acceptText;
|
|
23886
|
+
instanceMounted.cancelText = cancelText;
|
|
23887
|
+
document.body.appendChild(instanceMounted.$el);
|
|
23893
23888
|
},
|
|
23894
23889
|
confirm(msg, success, failure) {
|
|
23895
23890
|
this.confirmOptions({
|
|
@@ -23898,15 +23893,16 @@ var ckNotify = {
|
|
|
23898
23893
|
failure
|
|
23899
23894
|
});
|
|
23900
23895
|
},
|
|
23901
|
-
notify({ text: text2 = "", title = "", color = "", duration =
|
|
23896
|
+
notify({ text: text2 = "", title = "", color = "", duration = 0 }) {
|
|
23902
23897
|
const tempDiv = document.createElement("div");
|
|
23903
|
-
const
|
|
23898
|
+
const app = createApp(CkNotifyComponent);
|
|
23899
|
+
const instance = app.mount(tempDiv);
|
|
23904
23900
|
instance.title = title;
|
|
23905
23901
|
instance.text = text2;
|
|
23906
23902
|
instance.color = color;
|
|
23907
|
-
instance.duration = duration;
|
|
23903
|
+
instance.duration = duration || defaultDuration;
|
|
23908
23904
|
instance.closeCallback = () => {
|
|
23909
|
-
|
|
23905
|
+
app.unmount();
|
|
23910
23906
|
};
|
|
23911
23907
|
},
|
|
23912
23908
|
notifySuccess(text2, title = "") {
|