cleek 2.4.27 → 2.4.28
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 +98 -62
- package/dist/cleek.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, watch, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, withModifiers, vModelRadio, vModelSelect, vModelCheckbox,
|
|
32
|
+
import { pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, watch, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, vModelRadio, vModelSelect, vModelCheckbox, Teleport } from "vue";
|
|
33
33
|
function getBasePlacement(placement) {
|
|
34
34
|
return placement.split("-")[0];
|
|
35
35
|
}
|
|
@@ -2629,7 +2629,7 @@ const _sfc_main$r = defineComponent({
|
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
2631
|
});
|
|
2632
|
-
const _hoisted_1$
|
|
2632
|
+
const _hoisted_1$l = ["innerHTML"];
|
|
2633
2633
|
const _hoisted_2$b = ["textContent"];
|
|
2634
2634
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2635
2635
|
const _component_PopperContent = resolveComponent("PopperContent");
|
|
@@ -2673,7 +2673,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2673
2673
|
_ctx.html ? (openBlock(), createElementBlock("div", {
|
|
2674
2674
|
key: 0,
|
|
2675
2675
|
innerHTML: _ctx.finalContent
|
|
2676
|
-
}, null, 8, _hoisted_1$
|
|
2676
|
+
}, null, 8, _hoisted_1$l)) : (openBlock(), createElementBlock("div", {
|
|
2677
2677
|
key: 1,
|
|
2678
2678
|
textContent: toDisplayString(_ctx.finalContent)
|
|
2679
2679
|
}, null, 8, _hoisted_2$b))
|
|
@@ -18766,7 +18766,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
18766
18766
|
}
|
|
18767
18767
|
return target;
|
|
18768
18768
|
};
|
|
18769
|
-
const _hoisted_1$
|
|
18769
|
+
const _hoisted_1$k = { class: "ck-dropdown__popper-container" };
|
|
18770
18770
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18771
18771
|
props: {
|
|
18772
18772
|
dark: { type: Boolean },
|
|
@@ -18820,7 +18820,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18820
18820
|
}, [
|
|
18821
18821
|
renderSlot(_ctx.$slots, "trigger", {}, void 0, true)
|
|
18822
18822
|
]),
|
|
18823
|
-
createElementVNode("div", _hoisted_1$
|
|
18823
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
18824
18824
|
isOpen.value ? (openBlock(), createElementBlock("section", {
|
|
18825
18825
|
key: 0,
|
|
18826
18826
|
class: normalizeClass(["ck-dropdown__popper", unref$1(computedClassPopper)]),
|
|
@@ -18877,9 +18877,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18877
18877
|
}
|
|
18878
18878
|
});
|
|
18879
18879
|
var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e0fbc7aa"]]);
|
|
18880
|
-
const _hoisted_1$
|
|
18880
|
+
const _hoisted_1$j = { class: "ck-tr" };
|
|
18881
18881
|
function render2(_ctx, _cache) {
|
|
18882
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$
|
|
18882
|
+
return openBlock(), createElementBlock("tr", _hoisted_1$j, [
|
|
18883
18883
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18884
18884
|
]);
|
|
18885
18885
|
}
|
|
@@ -18976,7 +18976,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18976
18976
|
};
|
|
18977
18977
|
}
|
|
18978
18978
|
});
|
|
18979
|
-
var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
18979
|
+
var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6dd2ca6a"]]);
|
|
18980
18980
|
var axios$2 = { exports: {} };
|
|
18981
18981
|
var bind$2 = function bind2(fn, thisArg) {
|
|
18982
18982
|
return function wrap() {
|
|
@@ -20314,7 +20314,7 @@ const qmStr = {
|
|
|
20314
20314
|
}
|
|
20315
20315
|
};
|
|
20316
20316
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20317
|
-
const _hoisted_1$
|
|
20317
|
+
const _hoisted_1$i = { class: "ck-th" };
|
|
20318
20318
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
20319
20319
|
props: {
|
|
20320
20320
|
align: null,
|
|
@@ -20335,7 +20335,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20335
20335
|
return list;
|
|
20336
20336
|
});
|
|
20337
20337
|
return (_ctx, _cache) => {
|
|
20338
|
-
return openBlock(), createElementBlock("th", _hoisted_1$
|
|
20338
|
+
return openBlock(), createElementBlock("th", _hoisted_1$i, [
|
|
20339
20339
|
createElementVNode("span", {
|
|
20340
20340
|
class: normalizeClass(unref$1(computedSpanClass)),
|
|
20341
20341
|
style: normalizeStyle(unref$1(computedStyle))
|
|
@@ -20868,7 +20868,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20868
20868
|
};
|
|
20869
20869
|
}
|
|
20870
20870
|
});
|
|
20871
|
-
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
20871
|
+
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4221e90d"]]);
|
|
20872
20872
|
function useWindowWidth() {
|
|
20873
20873
|
const windowWidth = ref(0);
|
|
20874
20874
|
function handleWindowResize(event) {
|
|
@@ -20888,7 +20888,7 @@ function useWindowWidth() {
|
|
|
20888
20888
|
};
|
|
20889
20889
|
}
|
|
20890
20890
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20891
|
-
const _hoisted_1$
|
|
20891
|
+
const _hoisted_1$h = ["title", "aria-label", "disabled"];
|
|
20892
20892
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
20893
20893
|
props: {
|
|
20894
20894
|
title: null,
|
|
@@ -20995,13 +20995,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20995
20995
|
icon: __props.iconRight,
|
|
20996
20996
|
"icon-pack": __props.iconPack
|
|
20997
20997
|
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
|
|
20998
|
-
], 14, _hoisted_1$
|
|
20998
|
+
], 14, _hoisted_1$h);
|
|
20999
20999
|
};
|
|
21000
21000
|
}
|
|
21001
21001
|
});
|
|
21002
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
21002
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-1eb38e96"]]);
|
|
21003
21003
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21004
|
-
const _hoisted_1$
|
|
21004
|
+
const _hoisted_1$g = ["for"];
|
|
21005
21005
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
21006
21006
|
props: {
|
|
21007
21007
|
for: null,
|
|
@@ -21026,13 +21026,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21026
21026
|
for: __props.for
|
|
21027
21027
|
}, [
|
|
21028
21028
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
21029
|
-
], 10, _hoisted_1$
|
|
21029
|
+
], 10, _hoisted_1$g);
|
|
21030
21030
|
};
|
|
21031
21031
|
}
|
|
21032
21032
|
});
|
|
21033
21033
|
var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-43625692"]]);
|
|
21034
21034
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21035
|
-
const _hoisted_1$
|
|
21035
|
+
const _hoisted_1$f = ["autocomplete", "type", "placeholder", "disabled"];
|
|
21036
21036
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
21037
21037
|
props: {
|
|
21038
21038
|
modelValue: null,
|
|
@@ -21199,7 +21199,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21199
21199
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
|
|
21200
21200
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
21201
21201
|
onClick: _cache[3] || (_cache[3] = ($event) => onClick2($event))
|
|
21202
|
-
}, null, 46, _hoisted_1$
|
|
21202
|
+
}, null, 46, _hoisted_1$f), [
|
|
21203
21203
|
[vModelDynamic, unref$1(value)]
|
|
21204
21204
|
]),
|
|
21205
21205
|
__props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
@@ -21213,9 +21213,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21213
21213
|
};
|
|
21214
21214
|
}
|
|
21215
21215
|
});
|
|
21216
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
21216
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4eeecd7d"]]);
|
|
21217
21217
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21218
|
-
const _hoisted_1$f = { class: "ck-table__header-items" };
|
|
21219
21218
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
21220
21219
|
props: {
|
|
21221
21220
|
search: null,
|
|
@@ -21225,7 +21224,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21225
21224
|
currentPage: null,
|
|
21226
21225
|
itemsPerPage: null,
|
|
21227
21226
|
hideHeaderActions: { type: Boolean },
|
|
21228
|
-
listLength: null
|
|
21227
|
+
listLength: null,
|
|
21228
|
+
layout: null
|
|
21229
21229
|
},
|
|
21230
21230
|
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
21231
21231
|
setup(__props, { emit: emits }) {
|
|
@@ -21266,6 +21266,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21266
21266
|
return "left";
|
|
21267
21267
|
return "";
|
|
21268
21268
|
});
|
|
21269
|
+
const computedClass = computed$2(() => {
|
|
21270
|
+
const list = [];
|
|
21271
|
+
if (props.layout)
|
|
21272
|
+
list.push(props.layout);
|
|
21273
|
+
return list;
|
|
21274
|
+
});
|
|
21269
21275
|
function checkRefresh() {
|
|
21270
21276
|
const search = searchLocal.value;
|
|
21271
21277
|
setTimeout(() => {
|
|
@@ -21279,7 +21285,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21279
21285
|
checkRefresh
|
|
21280
21286
|
]);
|
|
21281
21287
|
return (_ctx, _cache) => {
|
|
21282
|
-
return openBlock(), createElementBlock("div",
|
|
21288
|
+
return openBlock(), createElementBlock("div", {
|
|
21289
|
+
class: normalizeClass(["ck-table__header-items", unref$1(computedClass)])
|
|
21290
|
+
}, [
|
|
21283
21291
|
!__props.hideHeaderActions ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21284
21292
|
unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(CkButton, {
|
|
21285
21293
|
key: 0,
|
|
@@ -21310,11 +21318,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21310
21318
|
onClick: _cache[3] || (_cache[3] = ($event) => emits("openColumnsManager"))
|
|
21311
21319
|
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
21312
21320
|
], 64)) : createCommentVNode("", true)
|
|
21313
|
-
]);
|
|
21321
|
+
], 2);
|
|
21314
21322
|
};
|
|
21315
21323
|
}
|
|
21316
21324
|
});
|
|
21317
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
21325
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3ede608c"]]);
|
|
21318
21326
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21319
21327
|
const _hoisted_1$e = { class: "ck-table__pagination" };
|
|
21320
21328
|
const _hoisted_2$a = { class: "ck-table__pagination--numbers-container" };
|
|
@@ -21325,18 +21333,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
21325
21333
|
currentPage: null,
|
|
21326
21334
|
align: null,
|
|
21327
21335
|
itemsPerPage: null,
|
|
21328
|
-
listLength: null
|
|
21336
|
+
listLength: null,
|
|
21337
|
+
layout: null
|
|
21329
21338
|
},
|
|
21330
21339
|
emits: ["refreshList", "update:currentPage"],
|
|
21331
21340
|
setup(__props, { emit: emits }) {
|
|
21332
21341
|
const props = __props;
|
|
21342
|
+
let cleekOptions2 = ref();
|
|
21333
21343
|
const itemsShowed = 5;
|
|
21334
|
-
const
|
|
21344
|
+
const currentPageLocal = computed$2({
|
|
21335
21345
|
get() {
|
|
21336
21346
|
return props.currentPage;
|
|
21337
21347
|
},
|
|
21338
|
-
set() {
|
|
21339
|
-
|
|
21348
|
+
set(val) {
|
|
21349
|
+
validateInputNumber(val);
|
|
21340
21350
|
}
|
|
21341
21351
|
});
|
|
21342
21352
|
const hasArrowLeft = computed$2(() => {
|
|
@@ -21344,14 +21354,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
21344
21354
|
return false;
|
|
21345
21355
|
return listLeft.value[0] !== 1;
|
|
21346
21356
|
});
|
|
21347
|
-
const totalPages = computed$2(() => {
|
|
21348
|
-
return Math.ceil(props.listLength / props.itemsPerPage);
|
|
21349
|
-
});
|
|
21350
21357
|
const hasArrowRight = computed$2(() => {
|
|
21351
21358
|
if (!listRight.value.length)
|
|
21352
21359
|
return false;
|
|
21353
21360
|
return listRight.value[listRight.value.length - 1] !== totalPages.value;
|
|
21354
21361
|
});
|
|
21362
|
+
const totalPages = computed$2(() => {
|
|
21363
|
+
return Math.ceil(props.listLength / props.itemsPerPage);
|
|
21364
|
+
});
|
|
21355
21365
|
const listLeft = computed$2(() => {
|
|
21356
21366
|
if (!props.listLength)
|
|
21357
21367
|
return [];
|
|
@@ -21376,7 +21386,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
21376
21386
|
}
|
|
21377
21387
|
return list;
|
|
21378
21388
|
});
|
|
21379
|
-
|
|
21389
|
+
const computedClass = computed$2(() => {
|
|
21390
|
+
var _a;
|
|
21391
|
+
const list = [];
|
|
21392
|
+
const align = props.align || "center";
|
|
21393
|
+
if (align)
|
|
21394
|
+
list.push(`pagination-align--${align || "center"}`);
|
|
21395
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
21396
|
+
if (layout)
|
|
21397
|
+
list.push(layout);
|
|
21398
|
+
return list;
|
|
21399
|
+
});
|
|
21400
|
+
function updateCurrentPage(val, validator7 = true) {
|
|
21401
|
+
if (!validator7)
|
|
21402
|
+
return;
|
|
21380
21403
|
emits("update:currentPage", val);
|
|
21381
21404
|
emits("refreshList");
|
|
21382
21405
|
}
|
|
@@ -21390,59 +21413,61 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
21390
21413
|
return;
|
|
21391
21414
|
updateCurrentPage(val);
|
|
21392
21415
|
}
|
|
21416
|
+
onMounted(() => {
|
|
21417
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
21418
|
+
});
|
|
21393
21419
|
hooks8.preventUnusedError([
|
|
21394
21420
|
validateInputNumber
|
|
21395
21421
|
]);
|
|
21396
21422
|
return (_ctx, _cache) => {
|
|
21397
21423
|
return __props.currentPage && unref$1(totalPages) > 1 ? (openBlock(), createElementBlock("div", {
|
|
21398
21424
|
key: 0,
|
|
21399
|
-
class: normalizeClass(["ck-table__pagination-container",
|
|
21425
|
+
class: normalizeClass(["ck-table__pagination-container", unref$1(computedClass)])
|
|
21400
21426
|
}, [
|
|
21401
21427
|
createElementVNode("div", _hoisted_1$e, [
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
21405
|
-
onClick: _cache[0] || (_cache[0] = ($event) => updateCurrentPage(__props.currentPage - 1))
|
|
21428
|
+
createElementVNode("div", {
|
|
21429
|
+
class: normalizeClass(["ck-table__pagination--arrow-left", { disabled: !unref$1(hasArrowLeft) }]),
|
|
21430
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateCurrentPage(__props.currentPage - 1, unref$1(hasArrowLeft)))
|
|
21406
21431
|
}, [
|
|
21407
|
-
createVNode(CkIcon, {
|
|
21408
|
-
|
|
21432
|
+
createVNode(CkIcon, {
|
|
21433
|
+
icon: unref$1(hasArrowLeft) ? "angle-left" : "grip-lines-vertical"
|
|
21434
|
+
}, null, 8, ["icon"])
|
|
21435
|
+
], 2),
|
|
21409
21436
|
createElementVNode("div", _hoisted_2$a, [
|
|
21410
21437
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listLeft), (num) => {
|
|
21411
21438
|
return openBlock(), createElementBlock("div", {
|
|
21412
|
-
class: "ck-table__pagination-item
|
|
21439
|
+
class: "ck-table__pagination-item--left",
|
|
21413
21440
|
onClick: ($event) => updateCurrentPage(num)
|
|
21414
21441
|
}, toDisplayString(num), 9, _hoisted_3$7);
|
|
21415
21442
|
}), 256)),
|
|
21416
|
-
|
|
21443
|
+
withDirectives(createElementVNode("input", {
|
|
21417
21444
|
class: "ck-table__pagination-input",
|
|
21418
|
-
autoSelect: "",
|
|
21419
21445
|
type: "number",
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
onChange: _cache[2] || (_cache[2] = ($event) => validateInputNumber($event.target.value))
|
|
21425
|
-
}, null, 8, ["modelValue"]),
|
|
21446
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null)
|
|
21447
|
+
}, null, 512), [
|
|
21448
|
+
[vModelText, unref$1(currentPageLocal)]
|
|
21449
|
+
]),
|
|
21426
21450
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(listRight), (num) => {
|
|
21427
21451
|
return openBlock(), createElementBlock("div", {
|
|
21428
|
-
class: "ck-table__pagination-item
|
|
21452
|
+
class: "ck-table__pagination-item--right",
|
|
21429
21453
|
onClick: ($event) => updateCurrentPage(num)
|
|
21430
21454
|
}, toDisplayString(num), 9, _hoisted_4$6);
|
|
21431
21455
|
}), 256))
|
|
21432
21456
|
]),
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
onClick: _cache[3] || (_cache[3] = ($event) => updateCurrentPage(__props.currentPage + 1))
|
|
21457
|
+
createElementVNode("div", {
|
|
21458
|
+
class: normalizeClass(["ck-table__pagination--arrow-right", { disabled: !unref$1(hasArrowRight) }]),
|
|
21459
|
+
onClick: _cache[2] || (_cache[2] = ($event) => updateCurrentPage(__props.currentPage + 1, unref$1(hasArrowRight)))
|
|
21437
21460
|
}, [
|
|
21438
|
-
createVNode(CkIcon, {
|
|
21439
|
-
|
|
21461
|
+
createVNode(CkIcon, {
|
|
21462
|
+
icon: unref$1(hasArrowRight) ? "angle-right" : "grip-lines-vertical"
|
|
21463
|
+
}, null, 8, ["icon"])
|
|
21464
|
+
], 2)
|
|
21440
21465
|
])
|
|
21441
21466
|
], 2)) : createCommentVNode("", true);
|
|
21442
21467
|
};
|
|
21443
21468
|
}
|
|
21444
21469
|
});
|
|
21445
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
21470
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-079c5d65"]]);
|
|
21446
21471
|
const EMPTY_OBJ = {};
|
|
21447
21472
|
const NOOP = () => {
|
|
21448
21473
|
};
|
|
@@ -22575,11 +22600,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22575
22600
|
cellPaddingY: null,
|
|
22576
22601
|
noResultsText: null,
|
|
22577
22602
|
notOverflow: { type: Boolean },
|
|
22603
|
+
layout: null,
|
|
22578
22604
|
mobileMaxWidth: null
|
|
22579
22605
|
},
|
|
22580
22606
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
22581
22607
|
setup(__props, { emit: emits }) {
|
|
22582
22608
|
const props = __props;
|
|
22609
|
+
let cleekOptions2 = ref();
|
|
22583
22610
|
const defaultNoResultsText = "No se encontraron resultados";
|
|
22584
22611
|
const defaultItemsPerPage = 40;
|
|
22585
22612
|
const { windowWidth } = useWindowWidth();
|
|
@@ -22626,6 +22653,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22626
22653
|
emits("update:currentPage", val);
|
|
22627
22654
|
}
|
|
22628
22655
|
});
|
|
22656
|
+
const realLayout = computed$2(() => {
|
|
22657
|
+
var _a;
|
|
22658
|
+
return props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
22659
|
+
});
|
|
22629
22660
|
const isMobileVisible = computed$2(() => {
|
|
22630
22661
|
return windowWidth.value <= (props.mobileMaxWidth || 0);
|
|
22631
22662
|
});
|
|
@@ -22649,6 +22680,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22649
22680
|
list.push("not-full-width");
|
|
22650
22681
|
return list;
|
|
22651
22682
|
});
|
|
22683
|
+
onMounted(() => {
|
|
22684
|
+
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
22685
|
+
});
|
|
22652
22686
|
hooks8.preventUnusedError([
|
|
22653
22687
|
computedClassTable,
|
|
22654
22688
|
defaultNoResultsText,
|
|
@@ -22685,9 +22719,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22685
22719
|
listLength: __props.listLength,
|
|
22686
22720
|
showRefreshBtn: __props.showRefreshBtn,
|
|
22687
22721
|
hideItemsPerPage: __props.hideItemsPerPage,
|
|
22722
|
+
layout: unref$1(realLayout),
|
|
22688
22723
|
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
22689
22724
|
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
22690
|
-
}, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"]),
|
|
22725
|
+
}, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout"]),
|
|
22691
22726
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22692
22727
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
22693
22728
|
])) : createCommentVNode("", true)
|
|
@@ -22746,14 +22781,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22746
22781
|
itemsPerPage: __props.itemsPerPage,
|
|
22747
22782
|
listLength: __props.listLength,
|
|
22748
22783
|
align: __props.paginationAlign,
|
|
22784
|
+
layout: unref$1(realLayout),
|
|
22749
22785
|
onRefreshList: _cache[5] || (_cache[5] = ($event) => refreshList(true))
|
|
22750
|
-
}, null, 8, ["currentPage", "itemsPerPage", "listLength", "align"])
|
|
22786
|
+
}, null, 8, ["currentPage", "itemsPerPage", "listLength", "align", "layout"])
|
|
22751
22787
|
])
|
|
22752
22788
|
], 64);
|
|
22753
22789
|
};
|
|
22754
22790
|
}
|
|
22755
22791
|
});
|
|
22756
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
22792
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6af574e4"]]);
|
|
22757
22793
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22758
22794
|
const _hoisted_1$9 = ["color"];
|
|
22759
22795
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -22944,7 +22980,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22944
22980
|
};
|
|
22945
22981
|
}
|
|
22946
22982
|
});
|
|
22947
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
22983
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-246c956c"]]);
|
|
22948
22984
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22949
22985
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
|
|
22950
22986
|
const _hoisted_1$7 = ["onKeyup"];
|
|
@@ -23241,7 +23277,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23241
23277
|
};
|
|
23242
23278
|
}
|
|
23243
23279
|
});
|
|
23244
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23280
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-55473558"]]);
|
|
23245
23281
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23246
23282
|
const _hoisted_1$5 = {
|
|
23247
23283
|
key: 0,
|
|
@@ -23584,7 +23620,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
23584
23620
|
};
|
|
23585
23621
|
}
|
|
23586
23622
|
});
|
|
23587
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
23623
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-95fd3820"]]);
|
|
23588
23624
|
var CkConfirm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23589
23625
|
const _withScopeId = (n) => (pushScopeId("data-v-bc51fc7a"), n = n(), popScopeId(), n);
|
|
23590
23626
|
const _hoisted_1$1 = { class: "ck-confirm--background" };
|