cleek 2.6.1 → 2.6.3
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 +20 -5
- package/dist/cleek.umd.js +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3806,7 +3806,8 @@ const cleekOptions = {
|
|
|
3806
3806
|
clearValue: "auto"
|
|
3807
3807
|
},
|
|
3808
3808
|
table: {
|
|
3809
|
-
striped: false
|
|
3809
|
+
striped: false,
|
|
3810
|
+
version: "default"
|
|
3810
3811
|
}
|
|
3811
3812
|
};
|
|
3812
3813
|
/*!
|
|
@@ -58742,7 +58743,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
58742
58743
|
itemsPerPage: null,
|
|
58743
58744
|
hideHeaderActions: { type: Boolean },
|
|
58744
58745
|
listLength: null,
|
|
58745
|
-
layout: null
|
|
58746
|
+
layout: null,
|
|
58747
|
+
version: null
|
|
58746
58748
|
},
|
|
58747
58749
|
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
58748
58750
|
setup(__props, { emit: emits }) {
|
|
@@ -58787,6 +58789,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
58787
58789
|
const list = [];
|
|
58788
58790
|
if (props.layout)
|
|
58789
58791
|
list.push(props.layout);
|
|
58792
|
+
if (props.version)
|
|
58793
|
+
list.push(`version-${props.version}`);
|
|
58790
58794
|
return list;
|
|
58791
58795
|
});
|
|
58792
58796
|
function checkRefresh() {
|
|
@@ -58820,6 +58824,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
58820
58824
|
}, toDisplayString(unref$2(itemsPerPageStart)) + " - " + toDisplayString(unref$2(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode$1("", true),
|
|
58821
58825
|
unref$2(isSearchVisible) ? (openBlock$1(), createBlock$1(CkInput, {
|
|
58822
58826
|
key: 2,
|
|
58827
|
+
class: "ck-table--search-input",
|
|
58823
58828
|
modelValue: unref$2(searchLocal),
|
|
58824
58829
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$3(searchLocal) ? searchLocal.value = $event : null),
|
|
58825
58830
|
icon: "magnifying-glass",
|
|
@@ -58842,7 +58847,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
58842
58847
|
};
|
|
58843
58848
|
}
|
|
58844
58849
|
});
|
|
58845
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
58850
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c44ec0d4"]]);
|
|
58846
58851
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
58847
58852
|
const _withScopeId$4 = (n) => (pushScopeId$1("data-v-02d0ab88"), n = n(), popScopeId$1(), n);
|
|
58848
58853
|
const _hoisted_1$g = { class: "ck-table__pagination" };
|
|
@@ -60173,12 +60178,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
60173
60178
|
noResultsText: null,
|
|
60174
60179
|
notOverflow: { type: Boolean },
|
|
60175
60180
|
layout: null,
|
|
60181
|
+
version: null,
|
|
60176
60182
|
mobileMaxWidth: null
|
|
60177
60183
|
},
|
|
60178
60184
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
60179
60185
|
setup(__props, { emit: emits }) {
|
|
60180
60186
|
const props = __props;
|
|
60181
60187
|
let cleekOptions2 = ref();
|
|
60188
|
+
const defaultTableVersion = "default";
|
|
60182
60189
|
const defaultItemsPerPage = 40;
|
|
60183
60190
|
const { windowWidth } = useWindowWidth();
|
|
60184
60191
|
const isPopupActive = ref({
|
|
@@ -60190,6 +60197,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
60190
60197
|
return "No se encontraron resultados";
|
|
60191
60198
|
return "No results found";
|
|
60192
60199
|
});
|
|
60200
|
+
const realTableVersion = computed$3(() => {
|
|
60201
|
+
if (props.version)
|
|
60202
|
+
return props.version;
|
|
60203
|
+
if (cleekOptions2.value)
|
|
60204
|
+
return cleekOptions2.value.table.version;
|
|
60205
|
+
return defaultTableVersion;
|
|
60206
|
+
});
|
|
60193
60207
|
const columnsAreObj = computed$3(() => !qmObj.isArray(props.columns || []));
|
|
60194
60208
|
const columnsArray = computed$3(() => {
|
|
60195
60209
|
if (columnsAreObj.value) {
|
|
@@ -60301,9 +60315,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
60301
60315
|
showRefreshBtn: __props.showRefreshBtn,
|
|
60302
60316
|
hideItemsPerPage: __props.hideItemsPerPage,
|
|
60303
60317
|
layout: unref$2(realLayout),
|
|
60318
|
+
version: unref$2(realTableVersion),
|
|
60304
60319
|
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
60305
60320
|
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
60306
|
-
}, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout"]),
|
|
60321
|
+
}, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version"]),
|
|
60307
60322
|
_ctx.$slots.header ? (openBlock$1(), createElementBlock$1("div", _hoisted_3$6, [
|
|
60308
60323
|
renderSlot$1(_ctx.$slots, "header", {}, void 0, true)
|
|
60309
60324
|
])) : createCommentVNode$1("", true)
|
|
@@ -60370,7 +60385,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
|
60370
60385
|
};
|
|
60371
60386
|
}
|
|
60372
60387
|
});
|
|
60373
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
60388
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-5e64407e"]]);
|
|
60374
60389
|
var ckPagination_vue_vue_type_style_index_0_lang = "";
|
|
60375
60390
|
const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
60376
60391
|
props: {
|