cleek 2.3.31 → 2.3.32
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
|
@@ -16583,9 +16583,90 @@ var validators = {
|
|
|
16583
16583
|
return isValid;
|
|
16584
16584
|
}
|
|
16585
16585
|
};
|
|
16586
|
+
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16587
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
16588
|
+
props: {
|
|
16589
|
+
col: { type: Object, default: void 0 },
|
|
16590
|
+
nowrap: { type: Boolean, default: false },
|
|
16591
|
+
block: { type: Boolean, default: false },
|
|
16592
|
+
autoWidth: { type: Boolean, default: false },
|
|
16593
|
+
overflowAuto: { type: Boolean, default: false },
|
|
16594
|
+
align: { type: String, default: void 0, validator: validators.align },
|
|
16595
|
+
verticalAlign: { type: String, default: void 0, validator: validators.verticalAlign },
|
|
16596
|
+
fixedWidth: { type: String, default: "" },
|
|
16597
|
+
minWidth: { type: String, default: "" },
|
|
16598
|
+
maxWidth: { type: String, default: "" },
|
|
16599
|
+
maxHeight: { type: String, default: "" }
|
|
16600
|
+
},
|
|
16601
|
+
setup(__props) {
|
|
16602
|
+
const props = __props;
|
|
16603
|
+
const computedTdClass = computed$2(() => {
|
|
16604
|
+
const list = [];
|
|
16605
|
+
if (props.autoWidth)
|
|
16606
|
+
list.push("auto-width");
|
|
16607
|
+
if (props.overflowAuto)
|
|
16608
|
+
list.push("overflow-auto");
|
|
16609
|
+
if (props.verticalAlign)
|
|
16610
|
+
list.push(`vertical-align--${props.verticalAlign}`);
|
|
16611
|
+
return list;
|
|
16612
|
+
});
|
|
16613
|
+
const computedSpanClass = computed$2(() => {
|
|
16614
|
+
const list = [];
|
|
16615
|
+
let align;
|
|
16616
|
+
if (props.col)
|
|
16617
|
+
align = props.col.align;
|
|
16618
|
+
if (props.align)
|
|
16619
|
+
align = props.align;
|
|
16620
|
+
if (align) {
|
|
16621
|
+
if (align === "center")
|
|
16622
|
+
list.push("align-center");
|
|
16623
|
+
if (align === "right")
|
|
16624
|
+
list.push("align-right");
|
|
16625
|
+
}
|
|
16626
|
+
if (props.block)
|
|
16627
|
+
list.push("block");
|
|
16628
|
+
if (props.block)
|
|
16629
|
+
list.push("no-wrap-text");
|
|
16630
|
+
return list;
|
|
16631
|
+
});
|
|
16632
|
+
const computedStyle = computed$2(() => {
|
|
16633
|
+
const list = {};
|
|
16634
|
+
if (props.minWidth)
|
|
16635
|
+
list["min-width"] = props.minWidth;
|
|
16636
|
+
if (props.fixedWidth)
|
|
16637
|
+
list["min-width"] = props.fixedWidth;
|
|
16638
|
+
if (props.maxWidth)
|
|
16639
|
+
list["max-width"] = props.maxWidth;
|
|
16640
|
+
if (props.fixedWidth)
|
|
16641
|
+
list["max-width"] = props.fixedWidth;
|
|
16642
|
+
if (props.maxHeight)
|
|
16643
|
+
list["max-height"] = props.maxHeight;
|
|
16644
|
+
return list;
|
|
16645
|
+
});
|
|
16646
|
+
const isColumnDisplayed = computed$2(() => {
|
|
16647
|
+
if (!props.col)
|
|
16648
|
+
return true;
|
|
16649
|
+
return functions.isColumnDisplayed(props.col);
|
|
16650
|
+
});
|
|
16651
|
+
return (_ctx, _cache) => {
|
|
16652
|
+
return unref$1(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
|
|
16653
|
+
key: 0,
|
|
16654
|
+
class: normalizeClass(["ck-td", unref$1(computedTdClass)])
|
|
16655
|
+
}, [
|
|
16656
|
+
createElementVNode("span", {
|
|
16657
|
+
class: normalizeClass(unref$1(computedSpanClass)),
|
|
16658
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
16659
|
+
}, [
|
|
16660
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16661
|
+
], 6)
|
|
16662
|
+
], 2)) : createCommentVNode("", true);
|
|
16663
|
+
};
|
|
16664
|
+
}
|
|
16665
|
+
});
|
|
16666
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4077488a"]]);
|
|
16586
16667
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16587
16668
|
const _hoisted_1$h = { class: "ck-th" };
|
|
16588
|
-
const _sfc_main$
|
|
16669
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
16589
16670
|
props: {
|
|
16590
16671
|
align: { type: String, default: "left", validator: validators.align },
|
|
16591
16672
|
minWidth: { type: String, default: void 0 }
|
|
@@ -16617,8 +16698,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
16617
16698
|
};
|
|
16618
16699
|
}
|
|
16619
16700
|
});
|
|
16620
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16621
|
-
const _sfc_main$
|
|
16701
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4b7ed390"]]);
|
|
16702
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
16622
16703
|
props: {
|
|
16623
16704
|
col: { type: Object, required: true }
|
|
16624
16705
|
},
|
|
@@ -16656,7 +16737,7 @@ function useWindowWidth() {
|
|
|
16656
16737
|
}
|
|
16657
16738
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16658
16739
|
const _hoisted_1$g = ["title", "aria-label", "disabled"];
|
|
16659
|
-
const _sfc_main$
|
|
16740
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
16660
16741
|
props: {
|
|
16661
16742
|
title: { type: String, default: void 0 },
|
|
16662
16743
|
disabled: { type: Boolean, default: false },
|
|
@@ -16750,10 +16831,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16750
16831
|
};
|
|
16751
16832
|
}
|
|
16752
16833
|
});
|
|
16753
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16834
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-334c7553"]]);
|
|
16754
16835
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16755
16836
|
const _hoisted_1$f = ["for"];
|
|
16756
|
-
const _sfc_main$
|
|
16837
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
16757
16838
|
props: {
|
|
16758
16839
|
for: { type: String, default: "" },
|
|
16759
16840
|
align: { type: String, default: "" }
|
|
@@ -16778,10 +16859,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16778
16859
|
};
|
|
16779
16860
|
}
|
|
16780
16861
|
});
|
|
16781
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16862
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-37dee526"]]);
|
|
16782
16863
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16783
16864
|
const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
|
|
16784
|
-
const _sfc_main$
|
|
16865
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
16785
16866
|
props: {
|
|
16786
16867
|
modelValue: {},
|
|
16787
16868
|
type: { type: String, validator: validators.inputType, default: "text" },
|
|
@@ -16911,10 +16992,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16911
16992
|
};
|
|
16912
16993
|
}
|
|
16913
16994
|
});
|
|
16914
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16995
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-7b390746"]]);
|
|
16915
16996
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16916
16997
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
16917
|
-
const _sfc_main$
|
|
16998
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
16918
16999
|
props: {
|
|
16919
17000
|
search: { type: String, default: void 0 },
|
|
16920
17001
|
hasColumnsManager: { type: Boolean, default: false },
|
|
@@ -16922,7 +17003,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16922
17003
|
hideItemsPerPage: { type: Boolean, required: true },
|
|
16923
17004
|
currentPage: { type: Number, required: true },
|
|
16924
17005
|
itemsPerPage: { type: Number, required: true },
|
|
16925
|
-
listLength: { type: Number,
|
|
17006
|
+
listLength: { type: Number, default: 0 }
|
|
16926
17007
|
},
|
|
16927
17008
|
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
16928
17009
|
setup(__props, { emit: emits }) {
|
|
@@ -16976,7 +17057,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16976
17057
|
unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
|
|
16977
17058
|
key: 0,
|
|
16978
17059
|
type: "flat",
|
|
16979
|
-
icon: "
|
|
17060
|
+
icon: "rotate-right",
|
|
16980
17061
|
title: "Recargar lista",
|
|
16981
17062
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", false))
|
|
16982
17063
|
})) : createCommentVNode("", true),
|
|
@@ -16988,7 +17069,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16988
17069
|
key: 2,
|
|
16989
17070
|
modelValue: unref$1(searchLocal),
|
|
16990
17071
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
16991
|
-
icon: "
|
|
17072
|
+
icon: "magnifying-glass",
|
|
16992
17073
|
placeholder: "Buscar...",
|
|
16993
17074
|
group: unref$1(searchGroupValue),
|
|
16994
17075
|
onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
|
|
@@ -17005,7 +17086,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17005
17086
|
};
|
|
17006
17087
|
}
|
|
17007
17088
|
});
|
|
17008
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17089
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e948424e"]]);
|
|
17009
17090
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17010
17091
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
17011
17092
|
const _hoisted_2$7 = ["onClick"];
|
|
@@ -17017,7 +17098,7 @@ const __default__ = {
|
|
|
17017
17098
|
currentPage: { type: Number, required: true },
|
|
17018
17099
|
align: { type: String, required: true },
|
|
17019
17100
|
itemsPerPage: { type: Number, required: true },
|
|
17020
|
-
listLength: { type: Number,
|
|
17101
|
+
listLength: { type: Number, default: 0 }
|
|
17021
17102
|
},
|
|
17022
17103
|
emits: ["refreshList", "update:currentPage"],
|
|
17023
17104
|
computed: {
|
|
@@ -17084,7 +17165,7 @@ const __default__ = {
|
|
|
17084
17165
|
}
|
|
17085
17166
|
}
|
|
17086
17167
|
};
|
|
17087
|
-
const _sfc_main$
|
|
17168
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
17088
17169
|
setup(__props) {
|
|
17089
17170
|
return (_ctx, _cache) => {
|
|
17090
17171
|
return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
|
|
@@ -17133,7 +17214,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
17133
17214
|
};
|
|
17134
17215
|
}
|
|
17135
17216
|
}));
|
|
17136
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17217
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-dec8fb20"]]);
|
|
17137
17218
|
const NOOP$1 = () => {
|
|
17138
17219
|
};
|
|
17139
17220
|
const isArray$1 = Array.isArray;
|
|
@@ -17916,7 +17997,7 @@ const _hoisted_3$4 = {
|
|
|
17916
17997
|
key: 0,
|
|
17917
17998
|
class: "c-Checkbox__label"
|
|
17918
17999
|
};
|
|
17919
|
-
const _sfc_main$
|
|
18000
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
17920
18001
|
props: {
|
|
17921
18002
|
modelValue: { type: Boolean, default: false },
|
|
17922
18003
|
label: { type: String, default: void 0 },
|
|
@@ -17973,7 +18054,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17973
18054
|
};
|
|
17974
18055
|
}
|
|
17975
18056
|
});
|
|
17976
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18057
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-132565da"]]);
|
|
17977
18058
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
17978
18059
|
const _hoisted_1$a = {
|
|
17979
18060
|
key: 0,
|
|
@@ -17996,7 +18077,7 @@ const _hoisted_7 = {
|
|
|
17996
18077
|
};
|
|
17997
18078
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
17998
18079
|
const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
17999
|
-
const _sfc_main$
|
|
18080
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18000
18081
|
props: {
|
|
18001
18082
|
modelValue: { type: Boolean },
|
|
18002
18083
|
title: { type: String, default: void 0 },
|
|
@@ -18088,7 +18169,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18088
18169
|
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18089
18170
|
const _hoisted_1$9 = { class: "columns-manger-container" };
|
|
18090
18171
|
const _hoisted_2$4 = { class: "columns-manger__item" };
|
|
18091
|
-
const _sfc_main$
|
|
18172
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
18092
18173
|
props: {
|
|
18093
18174
|
modelValue: { type: Boolean, required: true },
|
|
18094
18175
|
columns: { type: Object, required: true },
|
|
@@ -18128,7 +18209,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18128
18209
|
props.columns[colName].isDisplayed = value;
|
|
18129
18210
|
}
|
|
18130
18211
|
return (_ctx, _cache) => {
|
|
18131
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18212
|
+
return openBlock(), createBlock(_sfc_main$a, {
|
|
18132
18213
|
modelValue: unref$1(isActive),
|
|
18133
18214
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
|
|
18134
18215
|
title: "Administrador de columnas"
|
|
@@ -18156,7 +18237,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18156
18237
|
};
|
|
18157
18238
|
}
|
|
18158
18239
|
});
|
|
18159
|
-
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18240
|
+
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-36d907dc"]]);
|
|
18160
18241
|
var qmApi = {};
|
|
18161
18242
|
var qmArray = {
|
|
18162
18243
|
arrayToText(arr, key = null) {
|
|
@@ -18440,27 +18521,28 @@ const _hoisted_2$3 = {
|
|
|
18440
18521
|
class: "ck-table__header"
|
|
18441
18522
|
};
|
|
18442
18523
|
const _hoisted_3$2 = {
|
|
18443
|
-
key:
|
|
18524
|
+
key: 0,
|
|
18444
18525
|
class: "ck-table__header--slot"
|
|
18445
18526
|
};
|
|
18446
18527
|
const _hoisted_4$2 = { class: "ck-table__table-container" };
|
|
18447
18528
|
const _hoisted_5 = { key: 0 };
|
|
18448
18529
|
const _hoisted_6 = { key: 1 };
|
|
18449
|
-
const _sfc_main$
|
|
18530
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
18450
18531
|
props: {
|
|
18451
18532
|
columns: { type: [Array, Object], required: true, default: () => [] },
|
|
18452
18533
|
hasColumnsManager: { type: Boolean, default: false },
|
|
18453
18534
|
currentPage: { type: Number, default: 0 },
|
|
18454
18535
|
itemsPerPage: { type: Number, default: 40 },
|
|
18455
|
-
listLength: { type: Number, default: 0 },
|
|
18536
|
+
listLength: { type: Number, default: void 0 },
|
|
18456
18537
|
paginationAlign: { type: String, default: "center", validator: validators.align },
|
|
18457
18538
|
search: { type: String, default: void 0 },
|
|
18458
18539
|
hideHeaderActions: { type: Boolean, default: false },
|
|
18459
18540
|
showRefreshBtn: { type: Boolean, default: false },
|
|
18460
18541
|
hideItemsPerPage: { type: Boolean, default: false },
|
|
18461
18542
|
notFullWidth: { type: Boolean, default: false },
|
|
18462
|
-
cellPadding: { type: String,
|
|
18463
|
-
cellPaddingY: { type: String,
|
|
18543
|
+
cellPadding: { type: String, default: void 0 },
|
|
18544
|
+
cellPaddingY: { type: String, default: void 0 },
|
|
18545
|
+
noResultsText: { type: String, default: "No se encontraron resultados" },
|
|
18464
18546
|
mobileMaxWidth: { type: [Number, String], default: 800 }
|
|
18465
18547
|
},
|
|
18466
18548
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
@@ -18545,19 +18627,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18545
18627
|
}, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
|
|
18546
18628
|
createElementVNode("div", _hoisted_1$8, [
|
|
18547
18629
|
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18630
|
+
createElementVNode("div", null, [
|
|
18631
|
+
!__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
|
|
18632
|
+
key: 0,
|
|
18633
|
+
search: unref$1(searchLocal),
|
|
18634
|
+
"onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
18635
|
+
currentPage: __props.currentPage,
|
|
18636
|
+
hasColumnsManager: __props.hasColumnsManager,
|
|
18637
|
+
itemsPerPage: __props.itemsPerPage,
|
|
18638
|
+
listLength: __props.listLength,
|
|
18639
|
+
showRefreshBtn: __props.showRefreshBtn,
|
|
18640
|
+
hideItemsPerPage: __props.hideItemsPerPage,
|
|
18641
|
+
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
18642
|
+
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
18643
|
+
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true)
|
|
18644
|
+
]),
|
|
18561
18645
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
18562
18646
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
18563
18647
|
])) : createCommentVNode("", true)
|
|
@@ -18570,7 +18654,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18570
18654
|
createVNode(ckTr, null, {
|
|
18571
18655
|
default: withCtx(() => [
|
|
18572
18656
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
18573
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18657
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
18574
18658
|
key: col.title,
|
|
18575
18659
|
col
|
|
18576
18660
|
}, null, 8, ["col"]);
|
|
@@ -18582,7 +18666,22 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18582
18666
|
createElementVNode("tbody", null, [
|
|
18583
18667
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
18584
18668
|
!unref$1(isMobileVisible) ? renderSlot(_ctx.$slots, "desktop", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
18585
|
-
unref$1(isMobileVisible) ? renderSlot(_ctx.$slots, "mobile", { key: 1 }, void 0, true) : createCommentVNode("", true)
|
|
18669
|
+
unref$1(isMobileVisible) ? renderSlot(_ctx.$slots, "mobile", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
18670
|
+
__props.listLength === 0 ? (openBlock(), createBlock(ckTr, { key: 2 }, {
|
|
18671
|
+
default: withCtx(() => [
|
|
18672
|
+
createVNode(ckTd, {
|
|
18673
|
+
class: "no-result-text",
|
|
18674
|
+
colspan: "100%",
|
|
18675
|
+
align: "center"
|
|
18676
|
+
}, {
|
|
18677
|
+
default: withCtx(() => [
|
|
18678
|
+
createTextVNode(toDisplayString(__props.noResultsText), 1)
|
|
18679
|
+
]),
|
|
18680
|
+
_: 1
|
|
18681
|
+
})
|
|
18682
|
+
]),
|
|
18683
|
+
_: 1
|
|
18684
|
+
})) : createCommentVNode("", true)
|
|
18586
18685
|
]),
|
|
18587
18686
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
18588
18687
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
@@ -18603,88 +18702,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18603
18702
|
};
|
|
18604
18703
|
}
|
|
18605
18704
|
});
|
|
18606
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18607
|
-
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18608
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
18609
|
-
props: {
|
|
18610
|
-
col: { type: Object, default: void 0 },
|
|
18611
|
-
nowrap: { type: Boolean, default: false },
|
|
18612
|
-
block: { type: Boolean, default: false },
|
|
18613
|
-
autoWidth: { type: Boolean, default: false },
|
|
18614
|
-
overflowAuto: { type: Boolean, default: false },
|
|
18615
|
-
align: { type: String, default: void 0, validator: validators.align },
|
|
18616
|
-
verticalAlign: { type: String, default: void 0, validator: validators.verticalAlign },
|
|
18617
|
-
fixedWidth: { type: String, default: "" },
|
|
18618
|
-
minWidth: { type: String, default: "" },
|
|
18619
|
-
maxWidth: { type: String, default: "" },
|
|
18620
|
-
maxHeight: { type: String, default: "" }
|
|
18621
|
-
},
|
|
18622
|
-
setup(__props) {
|
|
18623
|
-
const props = __props;
|
|
18624
|
-
const computedTdClass = computed$2(() => {
|
|
18625
|
-
const list = [];
|
|
18626
|
-
if (props.autoWidth)
|
|
18627
|
-
list.push("auto-width");
|
|
18628
|
-
if (props.overflowAuto)
|
|
18629
|
-
list.push("overflow-auto");
|
|
18630
|
-
if (props.verticalAlign)
|
|
18631
|
-
list.push(`vertical-align--${props.verticalAlign}`);
|
|
18632
|
-
return list;
|
|
18633
|
-
});
|
|
18634
|
-
const computedSpanClass = computed$2(() => {
|
|
18635
|
-
const list = [];
|
|
18636
|
-
let align;
|
|
18637
|
-
if (props.col)
|
|
18638
|
-
align = props.col.align;
|
|
18639
|
-
if (props.align)
|
|
18640
|
-
align = props.align;
|
|
18641
|
-
if (align) {
|
|
18642
|
-
if (align === "center")
|
|
18643
|
-
list.push("align-center");
|
|
18644
|
-
if (align === "right")
|
|
18645
|
-
list.push("align-right");
|
|
18646
|
-
}
|
|
18647
|
-
if (props.block)
|
|
18648
|
-
list.push("block");
|
|
18649
|
-
if (props.block)
|
|
18650
|
-
list.push("no-wrap-text");
|
|
18651
|
-
return list;
|
|
18652
|
-
});
|
|
18653
|
-
const computedStyle = computed$2(() => {
|
|
18654
|
-
const list = {};
|
|
18655
|
-
if (props.minWidth)
|
|
18656
|
-
list["min-width"] = props.minWidth;
|
|
18657
|
-
if (props.fixedWidth)
|
|
18658
|
-
list["min-width"] = props.fixedWidth;
|
|
18659
|
-
if (props.maxWidth)
|
|
18660
|
-
list["max-width"] = props.maxWidth;
|
|
18661
|
-
if (props.fixedWidth)
|
|
18662
|
-
list["max-width"] = props.fixedWidth;
|
|
18663
|
-
if (props.maxHeight)
|
|
18664
|
-
list["max-height"] = props.maxHeight;
|
|
18665
|
-
return list;
|
|
18666
|
-
});
|
|
18667
|
-
const isColumnDisplayed = computed$2(() => {
|
|
18668
|
-
if (!props.col)
|
|
18669
|
-
return true;
|
|
18670
|
-
return functions.isColumnDisplayed(props.col);
|
|
18671
|
-
});
|
|
18672
|
-
return (_ctx, _cache) => {
|
|
18673
|
-
return unref$1(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
|
|
18674
|
-
key: 0,
|
|
18675
|
-
class: normalizeClass(["ck-td", unref$1(computedTdClass)])
|
|
18676
|
-
}, [
|
|
18677
|
-
createElementVNode("span", {
|
|
18678
|
-
class: normalizeClass(unref$1(computedSpanClass)),
|
|
18679
|
-
style: normalizeStyle(unref$1(computedStyle))
|
|
18680
|
-
}, [
|
|
18681
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18682
|
-
], 6)
|
|
18683
|
-
], 2)) : createCommentVNode("", true);
|
|
18684
|
-
};
|
|
18685
|
-
}
|
|
18686
|
-
});
|
|
18687
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4077488a"]]);
|
|
18705
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e047ea3a"]]);
|
|
18688
18706
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18689
18707
|
const _hoisted_1$7 = ["color"];
|
|
18690
18708
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -21921,7 +21939,7 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
21921
21939
|
ckImg,
|
|
21922
21940
|
ckInput,
|
|
21923
21941
|
ckLabel,
|
|
21924
|
-
ckPopup: _sfc_main$
|
|
21942
|
+
ckPopup: _sfc_main$a,
|
|
21925
21943
|
ckRadio,
|
|
21926
21944
|
ckSelect,
|
|
21927
21945
|
ckSwitch,
|
|
@@ -21961,4 +21979,4 @@ const install = function installCleek(app, options) {
|
|
|
21961
21979
|
app.component(componentName, component);
|
|
21962
21980
|
});
|
|
21963
21981
|
};
|
|
21964
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$
|
|
21982
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$a as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|