cleek 2.1.13 → 2.1.17
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-styles/cleek-mixins.styl +1 -0
- package/dist/cleek.es.js +1522 -1518
- package/dist/cleek.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, onMounted, getCurrentInstance,
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22
22
|
var _export_sfc = (sfc, props) => {
|
|
23
23
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -11300,7 +11300,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11300
11300
|
expose({
|
|
11301
11301
|
ckNotify: ckNotify2,
|
|
11302
11302
|
ckNotifySuccess,
|
|
11303
|
-
|
|
11303
|
+
ckNotifyError,
|
|
11304
11304
|
ckNotifyWarning
|
|
11305
11305
|
});
|
|
11306
11306
|
const isActive = ref(false);
|
|
@@ -11328,7 +11328,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11328
11328
|
color: "#66CC00"
|
|
11329
11329
|
});
|
|
11330
11330
|
}
|
|
11331
|
-
function
|
|
11331
|
+
function ckNotifyError(text3 = "", title = "Error") {
|
|
11332
11332
|
ckNotify2({ text: text3, title, color: "#FF3333" });
|
|
11333
11333
|
}
|
|
11334
11334
|
function ckNotifyWarning(text3 = "", title = "Atenci\xF3n") {
|
|
@@ -11358,7 +11358,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11358
11358
|
};
|
|
11359
11359
|
}
|
|
11360
11360
|
});
|
|
11361
|
-
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
11361
|
+
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-4eba623e"]]);
|
|
11362
|
+
const _hoisted_1$i = { class: "ck-tr" };
|
|
11363
|
+
function render$1(_ctx, _cache) {
|
|
11364
|
+
return openBlock(), createElementBlock("tr", _hoisted_1$i, [
|
|
11365
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11366
|
+
]);
|
|
11367
|
+
}
|
|
11368
|
+
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11369
|
+
const _sfc_main$k = {};
|
|
11370
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
|
|
11362
11371
|
var validators = {
|
|
11363
11372
|
size: (type) => {
|
|
11364
11373
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -11386,6 +11395,59 @@ var validators = {
|
|
|
11386
11395
|
return isValid;
|
|
11387
11396
|
}
|
|
11388
11397
|
};
|
|
11398
|
+
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11399
|
+
const _hoisted_1$h = { class: "ck-th" };
|
|
11400
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
11401
|
+
props: {
|
|
11402
|
+
align: { type: String, default: "left", validator: validators.align },
|
|
11403
|
+
minWidth: { type: String, default: void 0 }
|
|
11404
|
+
},
|
|
11405
|
+
setup(__props) {
|
|
11406
|
+
const props = __props;
|
|
11407
|
+
const computedSpanClass = computed$2(() => {
|
|
11408
|
+
return {
|
|
11409
|
+
"align-center": props.align !== "left" && props.align !== "right",
|
|
11410
|
+
"align-left": props.align === "left",
|
|
11411
|
+
"align-right": props.align === "right"
|
|
11412
|
+
};
|
|
11413
|
+
});
|
|
11414
|
+
const computedStyle = computed$2(() => {
|
|
11415
|
+
const list = [];
|
|
11416
|
+
if (props.minWidth)
|
|
11417
|
+
list.push({ "min-width": props.minWidth });
|
|
11418
|
+
return list;
|
|
11419
|
+
});
|
|
11420
|
+
return (_ctx, _cache) => {
|
|
11421
|
+
return openBlock(), createElementBlock("th", _hoisted_1$h, [
|
|
11422
|
+
createElementVNode("span", {
|
|
11423
|
+
class: normalizeClass(unref$1(computedSpanClass)),
|
|
11424
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
11425
|
+
}, [
|
|
11426
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11427
|
+
], 6)
|
|
11428
|
+
]);
|
|
11429
|
+
};
|
|
11430
|
+
}
|
|
11431
|
+
});
|
|
11432
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-385c14e2"]]);
|
|
11433
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11434
|
+
props: {
|
|
11435
|
+
col: { type: Object, required: true }
|
|
11436
|
+
},
|
|
11437
|
+
setup(__props) {
|
|
11438
|
+
return (_ctx, _cache) => {
|
|
11439
|
+
return openBlock(), createBlock(ckTh, {
|
|
11440
|
+
align: __props.col.align,
|
|
11441
|
+
"min-width": __props.col.minWidth
|
|
11442
|
+
}, {
|
|
11443
|
+
default: withCtx(() => [
|
|
11444
|
+
createTextVNode(toDisplayString(__props.col.title), 1)
|
|
11445
|
+
]),
|
|
11446
|
+
_: 1
|
|
11447
|
+
}, 8, ["align", "min-width"]);
|
|
11448
|
+
};
|
|
11449
|
+
}
|
|
11450
|
+
});
|
|
11389
11451
|
var functions = {
|
|
11390
11452
|
getGroupClass({ group = "", groupVertical = "", groupBreak = "" } = {}) {
|
|
11391
11453
|
const _screenSize = "";
|
|
@@ -11431,8 +11493,8 @@ var functions = {
|
|
|
11431
11493
|
}
|
|
11432
11494
|
};
|
|
11433
11495
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11434
|
-
const _hoisted_1$
|
|
11435
|
-
const _sfc_main$
|
|
11496
|
+
const _hoisted_1$g = ["title", "aria-label", "disabled"];
|
|
11497
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
11436
11498
|
props: {
|
|
11437
11499
|
title: { type: String, default: void 0 },
|
|
11438
11500
|
disabled: { type: Boolean, default: false },
|
|
@@ -11509,124 +11571,494 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
11509
11571
|
icon: __props.iconRight,
|
|
11510
11572
|
"icon-pack": __props.iconPack
|
|
11511
11573
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11512
|
-
], 10, _hoisted_1$
|
|
11574
|
+
], 10, _hoisted_1$g);
|
|
11513
11575
|
};
|
|
11514
11576
|
}
|
|
11515
11577
|
});
|
|
11516
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
const
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
};
|
|
11542
|
-
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
11543
|
-
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
11544
|
-
const initDepMarkers = ({ deps }) => {
|
|
11545
|
-
if (deps.length) {
|
|
11546
|
-
for (let i = 0; i < deps.length; i++) {
|
|
11547
|
-
deps[i].w |= trackOpBit;
|
|
11548
|
-
}
|
|
11549
|
-
}
|
|
11550
|
-
};
|
|
11551
|
-
const finalizeDepMarkers = (effect3) => {
|
|
11552
|
-
const { deps } = effect3;
|
|
11553
|
-
if (deps.length) {
|
|
11554
|
-
let ptr = 0;
|
|
11555
|
-
for (let i = 0; i < deps.length; i++) {
|
|
11556
|
-
const dep = deps[i];
|
|
11557
|
-
if (wasTracked(dep) && !newTracked(dep)) {
|
|
11558
|
-
dep.delete(effect3);
|
|
11559
|
-
} else {
|
|
11560
|
-
deps[ptr++] = dep;
|
|
11561
|
-
}
|
|
11562
|
-
dep.w &= ~trackOpBit;
|
|
11563
|
-
dep.n &= ~trackOpBit;
|
|
11564
|
-
}
|
|
11565
|
-
deps.length = ptr;
|
|
11566
|
-
}
|
|
11567
|
-
};
|
|
11568
|
-
let effectTrackDepth = 0;
|
|
11569
|
-
let trackOpBit = 1;
|
|
11570
|
-
const maxMarkerBits = 30;
|
|
11571
|
-
const effectStack = [];
|
|
11572
|
-
let activeEffect;
|
|
11573
|
-
class ReactiveEffect {
|
|
11574
|
-
constructor(fn2, scheduler = null, scope) {
|
|
11575
|
-
this.fn = fn2;
|
|
11576
|
-
this.scheduler = scheduler;
|
|
11577
|
-
this.active = true;
|
|
11578
|
-
this.deps = [];
|
|
11579
|
-
recordEffectScope(this, scope);
|
|
11580
|
-
}
|
|
11581
|
-
run() {
|
|
11582
|
-
if (!this.active) {
|
|
11583
|
-
return this.fn();
|
|
11584
|
-
}
|
|
11585
|
-
if (!effectStack.length || !effectStack.includes(this)) {
|
|
11586
|
-
try {
|
|
11587
|
-
effectStack.push(activeEffect = this);
|
|
11588
|
-
enableTracking();
|
|
11589
|
-
trackOpBit = 1 << ++effectTrackDepth;
|
|
11590
|
-
if (effectTrackDepth <= maxMarkerBits) {
|
|
11591
|
-
initDepMarkers(this);
|
|
11592
|
-
} else {
|
|
11593
|
-
cleanupEffect(this);
|
|
11594
|
-
}
|
|
11595
|
-
return this.fn();
|
|
11596
|
-
} finally {
|
|
11597
|
-
if (effectTrackDepth <= maxMarkerBits) {
|
|
11598
|
-
finalizeDepMarkers(this);
|
|
11599
|
-
}
|
|
11600
|
-
trackOpBit = 1 << --effectTrackDepth;
|
|
11601
|
-
resetTracking();
|
|
11602
|
-
effectStack.pop();
|
|
11603
|
-
const n = effectStack.length;
|
|
11604
|
-
activeEffect = n > 0 ? effectStack[n - 1] : void 0;
|
|
11605
|
-
}
|
|
11606
|
-
}
|
|
11578
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-36b03be6"]]);
|
|
11579
|
+
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11580
|
+
const _hoisted_1$f = ["for"];
|
|
11581
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
11582
|
+
props: {
|
|
11583
|
+
for: { type: String, default: "" },
|
|
11584
|
+
align: { type: String, default: "" }
|
|
11585
|
+
},
|
|
11586
|
+
setup(__props) {
|
|
11587
|
+
const props = __props;
|
|
11588
|
+
const computedClass = computed$2(() => {
|
|
11589
|
+
const list = [];
|
|
11590
|
+
let align = "left";
|
|
11591
|
+
if (props.align === "center" || props.align === "right")
|
|
11592
|
+
align = props.align;
|
|
11593
|
+
list.push(`ck-align--${align}`);
|
|
11594
|
+
return list;
|
|
11595
|
+
});
|
|
11596
|
+
return (_ctx, _cache) => {
|
|
11597
|
+
return openBlock(), createElementBlock("label", {
|
|
11598
|
+
class: normalizeClass(["ck-label", unref$1(computedClass)]),
|
|
11599
|
+
for: __props.for
|
|
11600
|
+
}, [
|
|
11601
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11602
|
+
], 10, _hoisted_1$f);
|
|
11603
|
+
};
|
|
11607
11604
|
}
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11605
|
+
});
|
|
11606
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ef74ea02"]]);
|
|
11607
|
+
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11608
|
+
const _hoisted_1$e = { class: "ck-input" };
|
|
11609
|
+
const _hoisted_2$8 = ["autocomplete", "type", "placeholder", "id", "disabled"];
|
|
11610
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
11611
|
+
props: {
|
|
11612
|
+
modelValue: {},
|
|
11613
|
+
type: { type: String, validator: validators.inputType, default: "text" },
|
|
11614
|
+
autocomplete: { type: Boolean, default: false },
|
|
11615
|
+
disabled: { type: Boolean, default: false },
|
|
11616
|
+
placeholder: { type: String, default: void 0 },
|
|
11617
|
+
label: { type: String, default: void 0 },
|
|
11618
|
+
labelAlign: { type: String, validator: validators.align, default: void 0 },
|
|
11619
|
+
icon: { type: [String, Array], default: void 0 },
|
|
11620
|
+
iconPack: { type: String, default: void 0 },
|
|
11621
|
+
iconRight: { type: String, default: void 0 },
|
|
11622
|
+
group: { type: String, default: void 0 },
|
|
11623
|
+
groupBreak: { type: String, default: "s" },
|
|
11624
|
+
groupVertical: { type: String, default: void 0 },
|
|
11625
|
+
hideBorder: { type: Boolean, default: false },
|
|
11626
|
+
width: { type: String, default: void 0 },
|
|
11627
|
+
align: { type: String, validator: validators.align, default: void 0 },
|
|
11628
|
+
autoSelect: { type: Boolean, default: false }
|
|
11629
|
+
},
|
|
11630
|
+
emits: ["update:modelValue", "click", "input", "change"],
|
|
11631
|
+
setup(__props, { expose, emit: emits }) {
|
|
11632
|
+
const props = __props;
|
|
11633
|
+
expose({ setFocus, setSelect });
|
|
11634
|
+
const realInput = ref(null);
|
|
11635
|
+
const value = computed$2({
|
|
11636
|
+
get() {
|
|
11637
|
+
return props.modelValue;
|
|
11638
|
+
},
|
|
11639
|
+
set(val) {
|
|
11640
|
+
emits("update:modelValue", val);
|
|
11613
11641
|
}
|
|
11614
|
-
|
|
11642
|
+
});
|
|
11643
|
+
const onClick = (event) => {
|
|
11644
|
+
if (props.autoSelect)
|
|
11645
|
+
event.target.select();
|
|
11646
|
+
emits("click", event);
|
|
11647
|
+
};
|
|
11648
|
+
const onInput = (event) => {
|
|
11649
|
+
emits("input", event);
|
|
11650
|
+
};
|
|
11651
|
+
const onChange = (event) => {
|
|
11652
|
+
emits("change", event);
|
|
11653
|
+
};
|
|
11654
|
+
const computedStyleInput = computed$2(() => {
|
|
11655
|
+
const list = [];
|
|
11656
|
+
if (props.width)
|
|
11657
|
+
list.push({ width: props.width });
|
|
11658
|
+
return list;
|
|
11659
|
+
});
|
|
11660
|
+
const computedClassInput = computed$2(() => {
|
|
11661
|
+
const list = [];
|
|
11662
|
+
list.push(functions.getGroupClass(props));
|
|
11663
|
+
if (props.icon)
|
|
11664
|
+
list.push("has-icon-left");
|
|
11665
|
+
if (props.iconRight)
|
|
11666
|
+
list.push("has-icon-right");
|
|
11667
|
+
if (props.align)
|
|
11668
|
+
list.push(`align--${props.align}`);
|
|
11669
|
+
if (props.hideBorder)
|
|
11670
|
+
list.push("no-border");
|
|
11671
|
+
return list;
|
|
11672
|
+
});
|
|
11673
|
+
function setFocus() {
|
|
11674
|
+
realInput.value.focus();
|
|
11615
11675
|
}
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
function cleanupEffect(effect3) {
|
|
11619
|
-
const { deps } = effect3;
|
|
11620
|
-
if (deps.length) {
|
|
11621
|
-
for (let i = 0; i < deps.length; i++) {
|
|
11622
|
-
deps[i].delete(effect3);
|
|
11676
|
+
function setSelect() {
|
|
11677
|
+
realInput.value.select();
|
|
11623
11678
|
}
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11679
|
+
return (_ctx, _cache) => {
|
|
11680
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
11681
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
11682
|
+
key: 0,
|
|
11683
|
+
align: __props.labelAlign,
|
|
11684
|
+
for: "ck-input"
|
|
11685
|
+
}, {
|
|
11686
|
+
default: withCtx(() => [
|
|
11687
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
11688
|
+
]),
|
|
11689
|
+
_: 1
|
|
11690
|
+
}, 8, ["align"])) : createCommentVNode("", true),
|
|
11691
|
+
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
11692
|
+
key: 1,
|
|
11693
|
+
class: "ck-input__icon-left",
|
|
11694
|
+
color: "lightgrey",
|
|
11695
|
+
icon: __props.icon,
|
|
11696
|
+
"icon-pack": __props.iconPack
|
|
11697
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11698
|
+
withDirectives(createElementVNode("input", {
|
|
11699
|
+
ref_key: "realInput",
|
|
11700
|
+
ref: realInput,
|
|
11701
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
11702
|
+
autocomplete: __props.autocomplete,
|
|
11703
|
+
type: __props.type,
|
|
11704
|
+
placeholder: __props.placeholder,
|
|
11705
|
+
class: normalizeClass(unref$1(computedClassInput)),
|
|
11706
|
+
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
11707
|
+
id: __props.label ? "ck-input" : "",
|
|
11708
|
+
disabled: __props.disabled,
|
|
11709
|
+
onChange: _cache[1] || (_cache[1] = ($event) => onChange($event)),
|
|
11710
|
+
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
11711
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
11712
|
+
}, null, 46, _hoisted_2$8), [
|
|
11713
|
+
[vModelDynamic, unref$1(value)]
|
|
11714
|
+
]),
|
|
11715
|
+
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
11716
|
+
key: 2,
|
|
11717
|
+
class: "ck-input__icon-right",
|
|
11718
|
+
color: "lightgrey",
|
|
11719
|
+
icon: __props.iconRight,
|
|
11720
|
+
"icon-pack": __props.iconPack
|
|
11721
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11722
|
+
]);
|
|
11723
|
+
};
|
|
11724
|
+
}
|
|
11725
|
+
});
|
|
11726
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-6773af39"]]);
|
|
11727
|
+
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11728
|
+
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
11729
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
11730
|
+
props: {
|
|
11731
|
+
search: { type: String, default: void 0 },
|
|
11732
|
+
hasColumnsManager: { type: Boolean, default: false },
|
|
11733
|
+
showRefreshBtn: { type: Boolean, required: true },
|
|
11734
|
+
hideItemsPerPage: { type: Boolean, required: true },
|
|
11735
|
+
currentPage: { type: Number, required: true },
|
|
11736
|
+
itemsPerPage: { type: Number, required: true },
|
|
11737
|
+
listLength: { type: Number, required: true }
|
|
11738
|
+
},
|
|
11739
|
+
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
11740
|
+
setup(__props, { emit: emits }) {
|
|
11741
|
+
const props = __props;
|
|
11742
|
+
const searchLocal = computed$2({
|
|
11743
|
+
get() {
|
|
11744
|
+
return props.search;
|
|
11745
|
+
},
|
|
11746
|
+
set(val) {
|
|
11747
|
+
emits("update:search", val);
|
|
11748
|
+
}
|
|
11749
|
+
});
|
|
11750
|
+
const hideSearch = computed$2(() => {
|
|
11751
|
+
return typeof searchLocal.value === "undefined";
|
|
11752
|
+
});
|
|
11753
|
+
const itemsPerPageStart = computed$2(() => {
|
|
11754
|
+
return (props.currentPage - 1) * props.itemsPerPage + 1;
|
|
11755
|
+
});
|
|
11756
|
+
const itemsPerPageEnd = computed$2(() => {
|
|
11757
|
+
const value = props.currentPage * props.itemsPerPage;
|
|
11758
|
+
if (value > props.listLength)
|
|
11759
|
+
return props.listLength;
|
|
11760
|
+
return value;
|
|
11761
|
+
});
|
|
11762
|
+
const itemsPerPageIsVisible = computed$2(() => {
|
|
11763
|
+
return !props.hideItemsPerPage && props.listLength && props.currentPage;
|
|
11764
|
+
});
|
|
11765
|
+
const refreshBtnIsVisible = computed$2(() => {
|
|
11766
|
+
return itemsPerPageIsVisible.value || props.showRefreshBtn;
|
|
11767
|
+
});
|
|
11768
|
+
const searchGroupValue = computed$2(() => {
|
|
11769
|
+
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
11770
|
+
return "center";
|
|
11771
|
+
}
|
|
11772
|
+
if (itemsPerPageIsVisible.value)
|
|
11773
|
+
return "right";
|
|
11774
|
+
if (props.hasColumnsManager)
|
|
11775
|
+
return "left";
|
|
11776
|
+
return "";
|
|
11777
|
+
});
|
|
11778
|
+
function checkRefresh() {
|
|
11779
|
+
const search = searchLocal.value;
|
|
11780
|
+
setTimeout(() => {
|
|
11781
|
+
if (search !== searchLocal.value)
|
|
11782
|
+
return;
|
|
11783
|
+
emits("refreshList", false);
|
|
11784
|
+
}, 1e3);
|
|
11785
|
+
}
|
|
11786
|
+
return (_ctx, _cache) => {
|
|
11787
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
11788
|
+
unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
|
|
11789
|
+
key: 0,
|
|
11790
|
+
type: "flat",
|
|
11791
|
+
icon: "redo-alt",
|
|
11792
|
+
title: "Recargar lista",
|
|
11793
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", false))
|
|
11794
|
+
})) : createCommentVNode("", true),
|
|
11795
|
+
unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
|
|
11796
|
+
key: 1,
|
|
11797
|
+
class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
|
|
11798
|
+
}, toDisplayString(unref$1(itemsPerPageStart)) + " - " + toDisplayString(unref$1(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
|
|
11799
|
+
!unref$1(hideSearch) ? (openBlock(), createBlock(ckInput, {
|
|
11800
|
+
key: 2,
|
|
11801
|
+
modelValue: unref$1(searchLocal),
|
|
11802
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
11803
|
+
icon: "search",
|
|
11804
|
+
placeholder: "Buscar...",
|
|
11805
|
+
group: unref$1(searchGroupValue),
|
|
11806
|
+
onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
|
|
11807
|
+
}, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
|
|
11808
|
+
__props.hasColumnsManager ? (openBlock(), createBlock(ckButton, {
|
|
11809
|
+
key: 3,
|
|
11810
|
+
icon: "columns",
|
|
11811
|
+
type: "filled",
|
|
11812
|
+
title: "Administrador de columnas",
|
|
11813
|
+
group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
|
|
11814
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
|
|
11815
|
+
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
11816
|
+
]);
|
|
11817
|
+
};
|
|
11818
|
+
}
|
|
11819
|
+
});
|
|
11820
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5638f498"]]);
|
|
11821
|
+
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11822
|
+
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
11823
|
+
const _hoisted_2$7 = ["onClick"];
|
|
11824
|
+
const _hoisted_3$5 = ["onClick"];
|
|
11825
|
+
const itemsShowed = 5;
|
|
11826
|
+
const __default__ = {
|
|
11827
|
+
name: "CkTablePagination",
|
|
11828
|
+
props: {
|
|
11829
|
+
currentPage: { type: Number, required: true },
|
|
11830
|
+
align: { type: String, required: true },
|
|
11831
|
+
itemsPerPage: { type: Number, required: true },
|
|
11832
|
+
listLength: { type: Number, required: true }
|
|
11833
|
+
},
|
|
11834
|
+
emits: ["refreshList", "update:currentPage"],
|
|
11835
|
+
computed: {
|
|
11836
|
+
currentPageLocal2: {
|
|
11837
|
+
get() {
|
|
11838
|
+
return this.currentPage;
|
|
11839
|
+
},
|
|
11840
|
+
set(val) {
|
|
11841
|
+
return;
|
|
11842
|
+
}
|
|
11843
|
+
},
|
|
11844
|
+
hasArrowLeft() {
|
|
11845
|
+
if (!this.listLeft.length)
|
|
11846
|
+
return false;
|
|
11847
|
+
return this.listLeft[0] !== 1;
|
|
11848
|
+
},
|
|
11849
|
+
totalPages() {
|
|
11850
|
+
return Math.ceil(this.listLength / this.itemsPerPage);
|
|
11851
|
+
},
|
|
11852
|
+
hasArrowRight() {
|
|
11853
|
+
if (!this.listRight.length)
|
|
11854
|
+
return false;
|
|
11855
|
+
return this.listRight[this.listRight.length - 1] !== this.totalPages;
|
|
11856
|
+
},
|
|
11857
|
+
listLeft() {
|
|
11858
|
+
if (!this.listLength)
|
|
11859
|
+
return [];
|
|
11860
|
+
const list = [];
|
|
11861
|
+
const listLength = (itemsShowed - 1) / 2;
|
|
11862
|
+
for (const num of Array(listLength).keys()) {
|
|
11863
|
+
const listItem = this.currentPage - num - 1;
|
|
11864
|
+
if (listItem > 0)
|
|
11865
|
+
list.unshift(listItem);
|
|
11866
|
+
}
|
|
11867
|
+
return list;
|
|
11868
|
+
},
|
|
11869
|
+
listRight() {
|
|
11870
|
+
if (!this.listLength)
|
|
11871
|
+
return [];
|
|
11872
|
+
const list = [];
|
|
11873
|
+
const listLength = (itemsShowed - 1) / 2;
|
|
11874
|
+
for (const num of Array(listLength).keys()) {
|
|
11875
|
+
const listItem = this.currentPage + num + 1;
|
|
11876
|
+
if (listItem <= this.totalPages)
|
|
11877
|
+
list.push(listItem);
|
|
11878
|
+
}
|
|
11879
|
+
return list;
|
|
11880
|
+
}
|
|
11881
|
+
},
|
|
11882
|
+
methods: {
|
|
11883
|
+
updateCurrentPage(val) {
|
|
11884
|
+
this.$emit("update:currentPage", val);
|
|
11885
|
+
this.$emit("refreshList", val);
|
|
11886
|
+
},
|
|
11887
|
+
validateInputNumber(val) {
|
|
11888
|
+
val = +val;
|
|
11889
|
+
if (val > this.totalPages)
|
|
11890
|
+
val = this.totalPages;
|
|
11891
|
+
if (val < 1)
|
|
11892
|
+
val = 1;
|
|
11893
|
+
if (val === this.currentPage)
|
|
11894
|
+
return;
|
|
11895
|
+
this.updateCurrentPage(val);
|
|
11896
|
+
}
|
|
11897
|
+
}
|
|
11898
|
+
};
|
|
11899
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
11900
|
+
setup(__props) {
|
|
11901
|
+
return (_ctx, _cache) => {
|
|
11902
|
+
return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
|
|
11903
|
+
key: 0,
|
|
11904
|
+
class: normalizeClass(["ck-table__pagination-container", `pagination-align--${__props.align}`])
|
|
11905
|
+
}, [
|
|
11906
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
11907
|
+
_ctx.hasArrowLeft ? (openBlock(), createElementBlock("div", {
|
|
11908
|
+
key: 0,
|
|
11909
|
+
class: "ck-table__pagination--arrow-left",
|
|
11910
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateCurrentPage(__props.currentPage - 1))
|
|
11911
|
+
}, [
|
|
11912
|
+
createVNode(ckIcon, { icon: "arrow-left" })
|
|
11913
|
+
])) : createCommentVNode("", true),
|
|
11914
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listLeft, (num) => {
|
|
11915
|
+
return openBlock(), createElementBlock("div", {
|
|
11916
|
+
class: "ck-table__pagination-item pagination-item__left",
|
|
11917
|
+
onClick: ($event) => _ctx.updateCurrentPage(num)
|
|
11918
|
+
}, toDisplayString(num), 9, _hoisted_2$7);
|
|
11919
|
+
}), 256)),
|
|
11920
|
+
createVNode(ckInput, {
|
|
11921
|
+
class: "ck-table__pagination-input",
|
|
11922
|
+
autoSelect: "",
|
|
11923
|
+
type: "number",
|
|
11924
|
+
width: "50px",
|
|
11925
|
+
align: "center",
|
|
11926
|
+
modelValue: _ctx.currentPageLocal2,
|
|
11927
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal2) ? currentPageLocal2.value = $event : null),
|
|
11928
|
+
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.validateInputNumber($event.target.value))
|
|
11929
|
+
}, null, 8, ["modelValue"]),
|
|
11930
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listRight, (num) => {
|
|
11931
|
+
return openBlock(), createElementBlock("div", {
|
|
11932
|
+
class: "ck-table__pagination-item pagination-item__right",
|
|
11933
|
+
onClick: ($event) => _ctx.updateCurrentPage(num)
|
|
11934
|
+
}, toDisplayString(num), 9, _hoisted_3$5);
|
|
11935
|
+
}), 256)),
|
|
11936
|
+
_ctx.hasArrowRight ? (openBlock(), createElementBlock("div", {
|
|
11937
|
+
key: 1,
|
|
11938
|
+
class: "ck-table__pagination--arrow-right",
|
|
11939
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.updateCurrentPage(__props.currentPage + 1))
|
|
11940
|
+
}, [
|
|
11941
|
+
createVNode(ckIcon, { icon: "arrow-right" })
|
|
11942
|
+
])) : createCommentVNode("", true)
|
|
11943
|
+
])
|
|
11944
|
+
], 2)) : createCommentVNode("", true);
|
|
11945
|
+
};
|
|
11946
|
+
}
|
|
11947
|
+
}));
|
|
11948
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-65c21486"]]);
|
|
11949
|
+
const NOOP$1 = () => {
|
|
11950
|
+
};
|
|
11951
|
+
const isArray$1 = Array.isArray;
|
|
11952
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
11953
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
11954
|
+
const def = (obj, key, value) => {
|
|
11955
|
+
Object.defineProperty(obj, key, {
|
|
11956
|
+
configurable: true,
|
|
11957
|
+
enumerable: false,
|
|
11958
|
+
value
|
|
11959
|
+
});
|
|
11960
|
+
};
|
|
11961
|
+
let activeEffectScope;
|
|
11962
|
+
function recordEffectScope(effect3, scope) {
|
|
11963
|
+
scope = scope || activeEffectScope;
|
|
11964
|
+
if (scope && scope.active) {
|
|
11965
|
+
scope.effects.push(effect3);
|
|
11966
|
+
}
|
|
11967
|
+
}
|
|
11968
|
+
const createDep = (effects) => {
|
|
11969
|
+
const dep = new Set(effects);
|
|
11970
|
+
dep.w = 0;
|
|
11971
|
+
dep.n = 0;
|
|
11972
|
+
return dep;
|
|
11973
|
+
};
|
|
11974
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
11975
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
11976
|
+
const initDepMarkers = ({ deps }) => {
|
|
11977
|
+
if (deps.length) {
|
|
11978
|
+
for (let i = 0; i < deps.length; i++) {
|
|
11979
|
+
deps[i].w |= trackOpBit;
|
|
11980
|
+
}
|
|
11981
|
+
}
|
|
11982
|
+
};
|
|
11983
|
+
const finalizeDepMarkers = (effect3) => {
|
|
11984
|
+
const { deps } = effect3;
|
|
11985
|
+
if (deps.length) {
|
|
11986
|
+
let ptr = 0;
|
|
11987
|
+
for (let i = 0; i < deps.length; i++) {
|
|
11988
|
+
const dep = deps[i];
|
|
11989
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
11990
|
+
dep.delete(effect3);
|
|
11991
|
+
} else {
|
|
11992
|
+
deps[ptr++] = dep;
|
|
11993
|
+
}
|
|
11994
|
+
dep.w &= ~trackOpBit;
|
|
11995
|
+
dep.n &= ~trackOpBit;
|
|
11996
|
+
}
|
|
11997
|
+
deps.length = ptr;
|
|
11998
|
+
}
|
|
11999
|
+
};
|
|
12000
|
+
let effectTrackDepth = 0;
|
|
12001
|
+
let trackOpBit = 1;
|
|
12002
|
+
const maxMarkerBits = 30;
|
|
12003
|
+
const effectStack = [];
|
|
12004
|
+
let activeEffect;
|
|
12005
|
+
class ReactiveEffect {
|
|
12006
|
+
constructor(fn2, scheduler = null, scope) {
|
|
12007
|
+
this.fn = fn2;
|
|
12008
|
+
this.scheduler = scheduler;
|
|
12009
|
+
this.active = true;
|
|
12010
|
+
this.deps = [];
|
|
12011
|
+
recordEffectScope(this, scope);
|
|
12012
|
+
}
|
|
12013
|
+
run() {
|
|
12014
|
+
if (!this.active) {
|
|
12015
|
+
return this.fn();
|
|
12016
|
+
}
|
|
12017
|
+
if (!effectStack.length || !effectStack.includes(this)) {
|
|
12018
|
+
try {
|
|
12019
|
+
effectStack.push(activeEffect = this);
|
|
12020
|
+
enableTracking();
|
|
12021
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
12022
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
12023
|
+
initDepMarkers(this);
|
|
12024
|
+
} else {
|
|
12025
|
+
cleanupEffect(this);
|
|
12026
|
+
}
|
|
12027
|
+
return this.fn();
|
|
12028
|
+
} finally {
|
|
12029
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
12030
|
+
finalizeDepMarkers(this);
|
|
12031
|
+
}
|
|
12032
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
12033
|
+
resetTracking();
|
|
12034
|
+
effectStack.pop();
|
|
12035
|
+
const n = effectStack.length;
|
|
12036
|
+
activeEffect = n > 0 ? effectStack[n - 1] : void 0;
|
|
12037
|
+
}
|
|
12038
|
+
}
|
|
12039
|
+
}
|
|
12040
|
+
stop() {
|
|
12041
|
+
if (this.active) {
|
|
12042
|
+
cleanupEffect(this);
|
|
12043
|
+
if (this.onStop) {
|
|
12044
|
+
this.onStop();
|
|
12045
|
+
}
|
|
12046
|
+
this.active = false;
|
|
12047
|
+
}
|
|
12048
|
+
}
|
|
12049
|
+
}
|
|
12050
|
+
function cleanupEffect(effect3) {
|
|
12051
|
+
const { deps } = effect3;
|
|
12052
|
+
if (deps.length) {
|
|
12053
|
+
for (let i = 0; i < deps.length; i++) {
|
|
12054
|
+
deps[i].delete(effect3);
|
|
12055
|
+
}
|
|
12056
|
+
deps.length = 0;
|
|
12057
|
+
}
|
|
12058
|
+
}
|
|
12059
|
+
let shouldTrack = true;
|
|
12060
|
+
const trackStack = [];
|
|
12061
|
+
function enableTracking() {
|
|
11630
12062
|
trackStack.push(shouldTrack);
|
|
11631
12063
|
shouldTrack = true;
|
|
11632
12064
|
}
|
|
@@ -12124,460 +12556,198 @@ function traverse(value, seen) {
|
|
|
12124
12556
|
if (isRef(value)) {
|
|
12125
12557
|
traverse(value.value, seen);
|
|
12126
12558
|
} else if (isArray(value)) {
|
|
12127
|
-
for (let i = 0; i < value.length; i++) {
|
|
12128
|
-
traverse(value[i], seen);
|
|
12129
|
-
}
|
|
12130
|
-
} else if (isSet(value) || isMap(value)) {
|
|
12131
|
-
value.forEach((v) => {
|
|
12132
|
-
traverse(v, seen);
|
|
12133
|
-
});
|
|
12134
|
-
} else if (isPlainObject(value)) {
|
|
12135
|
-
for (const key in value) {
|
|
12136
|
-
traverse(value[key], seen);
|
|
12137
|
-
}
|
|
12138
|
-
}
|
|
12139
|
-
return value;
|
|
12140
|
-
}
|
|
12141
|
-
function resolveMergedOptions(instance) {
|
|
12142
|
-
const base = instance.type;
|
|
12143
|
-
const { mixins, extends: extendsOptions } = base;
|
|
12144
|
-
const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
|
|
12145
|
-
const cached = cache.get(base);
|
|
12146
|
-
let resolved;
|
|
12147
|
-
if (cached) {
|
|
12148
|
-
resolved = cached;
|
|
12149
|
-
} else if (!globalMixins.length && !mixins && !extendsOptions) {
|
|
12150
|
-
{
|
|
12151
|
-
resolved = base;
|
|
12152
|
-
}
|
|
12153
|
-
} else {
|
|
12154
|
-
resolved = {};
|
|
12155
|
-
if (globalMixins.length) {
|
|
12156
|
-
globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
|
|
12157
|
-
}
|
|
12158
|
-
mergeOptions(resolved, base, optionMergeStrategies);
|
|
12159
|
-
}
|
|
12160
|
-
cache.set(base, resolved);
|
|
12161
|
-
return resolved;
|
|
12162
|
-
}
|
|
12163
|
-
function mergeOptions(to, from, strats, asMixin = false) {
|
|
12164
|
-
const { mixins, extends: extendsOptions } = from;
|
|
12165
|
-
if (extendsOptions) {
|
|
12166
|
-
mergeOptions(to, extendsOptions, strats, true);
|
|
12167
|
-
}
|
|
12168
|
-
if (mixins) {
|
|
12169
|
-
mixins.forEach((m) => mergeOptions(to, m, strats, true));
|
|
12170
|
-
}
|
|
12171
|
-
for (const key in from) {
|
|
12172
|
-
if (asMixin && key === "expose")
|
|
12173
|
-
;
|
|
12174
|
-
else {
|
|
12175
|
-
const strat = internalOptionMergeStrats[key] || strats && strats[key];
|
|
12176
|
-
to[key] = strat ? strat(to[key], from[key]) : from[key];
|
|
12177
|
-
}
|
|
12178
|
-
}
|
|
12179
|
-
return to;
|
|
12180
|
-
}
|
|
12181
|
-
const internalOptionMergeStrats = {
|
|
12182
|
-
data: mergeDataFn,
|
|
12183
|
-
props: mergeObjectOptions,
|
|
12184
|
-
emits: mergeObjectOptions,
|
|
12185
|
-
methods: mergeObjectOptions,
|
|
12186
|
-
computed: mergeObjectOptions,
|
|
12187
|
-
beforeCreate: mergeAsArray,
|
|
12188
|
-
created: mergeAsArray,
|
|
12189
|
-
beforeMount: mergeAsArray,
|
|
12190
|
-
mounted: mergeAsArray,
|
|
12191
|
-
beforeUpdate: mergeAsArray,
|
|
12192
|
-
updated: mergeAsArray,
|
|
12193
|
-
beforeDestroy: mergeAsArray,
|
|
12194
|
-
beforeUnmount: mergeAsArray,
|
|
12195
|
-
destroyed: mergeAsArray,
|
|
12196
|
-
unmounted: mergeAsArray,
|
|
12197
|
-
activated: mergeAsArray,
|
|
12198
|
-
deactivated: mergeAsArray,
|
|
12199
|
-
errorCaptured: mergeAsArray,
|
|
12200
|
-
serverPrefetch: mergeAsArray,
|
|
12201
|
-
components: mergeObjectOptions,
|
|
12202
|
-
directives: mergeObjectOptions,
|
|
12203
|
-
watch: mergeWatchOptions,
|
|
12204
|
-
provide: mergeDataFn,
|
|
12205
|
-
inject: mergeInject
|
|
12206
|
-
};
|
|
12207
|
-
function mergeDataFn(to, from) {
|
|
12208
|
-
if (!from) {
|
|
12209
|
-
return to;
|
|
12210
|
-
}
|
|
12211
|
-
if (!to) {
|
|
12212
|
-
return from;
|
|
12213
|
-
}
|
|
12214
|
-
return function mergedDataFn() {
|
|
12215
|
-
return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
|
|
12216
|
-
};
|
|
12217
|
-
}
|
|
12218
|
-
function mergeInject(to, from) {
|
|
12219
|
-
return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
|
|
12220
|
-
}
|
|
12221
|
-
function normalizeInject(raw) {
|
|
12222
|
-
if (isArray(raw)) {
|
|
12223
|
-
const res = {};
|
|
12224
|
-
for (let i = 0; i < raw.length; i++) {
|
|
12225
|
-
res[raw[i]] = raw[i];
|
|
12226
|
-
}
|
|
12227
|
-
return res;
|
|
12228
|
-
}
|
|
12229
|
-
return raw;
|
|
12230
|
-
}
|
|
12231
|
-
function mergeAsArray(to, from) {
|
|
12232
|
-
return to ? [...new Set([].concat(to, from))] : from;
|
|
12233
|
-
}
|
|
12234
|
-
function mergeObjectOptions(to, from) {
|
|
12235
|
-
return to ? extend(extend(Object.create(null), to), from) : from;
|
|
12236
|
-
}
|
|
12237
|
-
function mergeWatchOptions(to, from) {
|
|
12238
|
-
if (!to)
|
|
12239
|
-
return from;
|
|
12240
|
-
if (!from)
|
|
12241
|
-
return to;
|
|
12242
|
-
const merged = extend(Object.create(null), to);
|
|
12243
|
-
for (const key in from) {
|
|
12244
|
-
merged[key] = mergeAsArray(to[key], from[key]);
|
|
12245
|
-
}
|
|
12246
|
-
return merged;
|
|
12247
|
-
}
|
|
12248
|
-
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
12249
|
-
const getPublicInstance = (i) => {
|
|
12250
|
-
if (!i)
|
|
12251
|
-
return null;
|
|
12252
|
-
if (isStatefulComponent(i))
|
|
12253
|
-
return getExposeProxy(i) || i.proxy;
|
|
12254
|
-
return getPublicInstance(i.parent);
|
|
12255
|
-
};
|
|
12256
|
-
const publicPropertiesMap = extend(Object.create(null), {
|
|
12257
|
-
$: (i) => i,
|
|
12258
|
-
$el: (i) => i.vnode.el,
|
|
12259
|
-
$data: (i) => i.data,
|
|
12260
|
-
$props: (i) => i.props,
|
|
12261
|
-
$attrs: (i) => i.attrs,
|
|
12262
|
-
$slots: (i) => i.slots,
|
|
12263
|
-
$refs: (i) => i.refs,
|
|
12264
|
-
$parent: (i) => getPublicInstance(i.parent),
|
|
12265
|
-
$root: (i) => getPublicInstance(i.root),
|
|
12266
|
-
$emit: (i) => i.emit,
|
|
12267
|
-
$options: (i) => resolveMergedOptions(i),
|
|
12268
|
-
$forceUpdate: (i) => () => queueJob(i.update),
|
|
12269
|
-
$nextTick: (i) => nextTick.bind(i.proxy),
|
|
12270
|
-
$watch: (i) => instanceWatch.bind(i)
|
|
12271
|
-
});
|
|
12272
|
-
let currentInstance = null;
|
|
12273
|
-
const setCurrentInstance = (instance) => {
|
|
12274
|
-
currentInstance = instance;
|
|
12275
|
-
instance.scope.on();
|
|
12276
|
-
};
|
|
12277
|
-
const unsetCurrentInstance = () => {
|
|
12278
|
-
currentInstance && currentInstance.scope.off();
|
|
12279
|
-
currentInstance = null;
|
|
12280
|
-
};
|
|
12281
|
-
function isStatefulComponent(instance) {
|
|
12282
|
-
return instance.vnode.shapeFlag & 4;
|
|
12283
|
-
}
|
|
12284
|
-
let isInSSRComponentSetup = false;
|
|
12285
|
-
function getExposeProxy(instance) {
|
|
12286
|
-
if (instance.exposed) {
|
|
12287
|
-
return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
|
|
12288
|
-
get(target, key) {
|
|
12289
|
-
if (key in target) {
|
|
12290
|
-
return target[key];
|
|
12291
|
-
} else if (key in publicPropertiesMap) {
|
|
12292
|
-
return publicPropertiesMap[key](instance);
|
|
12293
|
-
}
|
|
12294
|
-
}
|
|
12295
|
-
}));
|
|
12559
|
+
for (let i = 0; i < value.length; i++) {
|
|
12560
|
+
traverse(value[i], seen);
|
|
12561
|
+
}
|
|
12562
|
+
} else if (isSet(value) || isMap(value)) {
|
|
12563
|
+
value.forEach((v) => {
|
|
12564
|
+
traverse(v, seen);
|
|
12565
|
+
});
|
|
12566
|
+
} else if (isPlainObject(value)) {
|
|
12567
|
+
for (const key in value) {
|
|
12568
|
+
traverse(value[key], seen);
|
|
12569
|
+
}
|
|
12296
12570
|
}
|
|
12571
|
+
return value;
|
|
12297
12572
|
}
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
};
|
|
12301
|
-
|
|
12302
|
-
const
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
12310
|
-
props: {
|
|
12311
|
-
modelValue: { type: Boolean, default: false },
|
|
12312
|
-
label: { type: String, default: void 0 },
|
|
12313
|
-
disabled: { type: Boolean, default: false }
|
|
12314
|
-
},
|
|
12315
|
-
emits: ["update:modelValue", "change"],
|
|
12316
|
-
setup(__props, { emit: emits }) {
|
|
12317
|
-
const props = __props;
|
|
12318
|
-
const value = computed({
|
|
12319
|
-
get() {
|
|
12320
|
-
return props.modelValue;
|
|
12321
|
-
},
|
|
12322
|
-
set(val) {
|
|
12323
|
-
emits("update:modelValue", val);
|
|
12324
|
-
}
|
|
12325
|
-
});
|
|
12326
|
-
const checkboxAttributes = computed(() => {
|
|
12327
|
-
return {
|
|
12328
|
-
"aria-disabled": props.disabled,
|
|
12329
|
-
tabindex: props.disabled ? void 0 : "0"
|
|
12330
|
-
};
|
|
12331
|
-
});
|
|
12332
|
-
function onChange(event) {
|
|
12333
|
-
emits("change", event);
|
|
12573
|
+
function resolveMergedOptions(instance) {
|
|
12574
|
+
const base = instance.type;
|
|
12575
|
+
const { mixins, extends: extendsOptions } = base;
|
|
12576
|
+
const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
|
|
12577
|
+
const cached = cache.get(base);
|
|
12578
|
+
let resolved;
|
|
12579
|
+
if (cached) {
|
|
12580
|
+
resolved = cached;
|
|
12581
|
+
} else if (!globalMixins.length && !mixins && !extendsOptions) {
|
|
12582
|
+
{
|
|
12583
|
+
resolved = base;
|
|
12334
12584
|
}
|
|
12335
|
-
|
|
12336
|
-
|
|
12585
|
+
} else {
|
|
12586
|
+
resolved = {};
|
|
12587
|
+
if (globalMixins.length) {
|
|
12588
|
+
globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
|
|
12337
12589
|
}
|
|
12338
|
-
|
|
12339
|
-
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, unref$1(checkboxAttributes), {
|
|
12340
|
-
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
12341
|
-
}, ["prevent"]), ["space"])),
|
|
12342
|
-
onKeyup: [
|
|
12343
|
-
_cache[2] || (_cache[2] = withKeys(($event) => onTrigger2(), ["enter"])),
|
|
12344
|
-
_cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["space"]))
|
|
12345
|
-
]
|
|
12346
|
-
}), [
|
|
12347
|
-
createElementVNode("input", {
|
|
12348
|
-
class: "ck-checkbox__input",
|
|
12349
|
-
"aria-hidden": "true",
|
|
12350
|
-
type: "checkbox",
|
|
12351
|
-
disabled: __props.disabled,
|
|
12352
|
-
checked: unref$1(value),
|
|
12353
|
-
onChange: _cache[0] || (_cache[0] = ($event) => {
|
|
12354
|
-
value.value = $event.target.checked;
|
|
12355
|
-
onChange($event);
|
|
12356
|
-
})
|
|
12357
|
-
}, null, 40, _hoisted_1$h),
|
|
12358
|
-
_hoisted_2$8,
|
|
12359
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
12360
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12361
|
-
])) : createCommentVNode("", true)
|
|
12362
|
-
], 16);
|
|
12363
|
-
};
|
|
12590
|
+
mergeOptions(resolved, base, optionMergeStrategies);
|
|
12364
12591
|
}
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
const
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
color: { type: String, default: "primary" },
|
|
12373
|
-
textColor: { type: String, default: void 0 },
|
|
12374
|
-
icon: { type: String, default: void 0 },
|
|
12375
|
-
iconPack: { type: String, default: void 0 }
|
|
12376
|
-
},
|
|
12377
|
-
emits: ["click"],
|
|
12378
|
-
setup(__props, { emit: emits }) {
|
|
12379
|
-
const props = __props;
|
|
12380
|
-
const computedClass = computed$2(() => {
|
|
12381
|
-
return [
|
|
12382
|
-
`size-${props.size}`,
|
|
12383
|
-
`ck-component__bg-color--${props.color}`
|
|
12384
|
-
];
|
|
12385
|
-
});
|
|
12386
|
-
const computedStyle = computed$2(() => {
|
|
12387
|
-
const list = [];
|
|
12388
|
-
if (props.color)
|
|
12389
|
-
;
|
|
12390
|
-
return list;
|
|
12391
|
-
});
|
|
12392
|
-
return (_ctx, _cache) => {
|
|
12393
|
-
return openBlock(), createElementBlock("div", {
|
|
12394
|
-
class: normalizeClass(["ck-chip", unref$1(computedClass)]),
|
|
12395
|
-
color: __props.color,
|
|
12396
|
-
style: normalizeStyle(unref$1(computedStyle)),
|
|
12397
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
12398
|
-
}, [
|
|
12399
|
-
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
12400
|
-
key: 0,
|
|
12401
|
-
icon: __props.icon,
|
|
12402
|
-
"icon-pack": __props.iconPack
|
|
12403
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
12404
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12405
|
-
], 14, _hoisted_1$g);
|
|
12406
|
-
};
|
|
12592
|
+
cache.set(base, resolved);
|
|
12593
|
+
return resolved;
|
|
12594
|
+
}
|
|
12595
|
+
function mergeOptions(to, from, strats, asMixin = false) {
|
|
12596
|
+
const { mixins, extends: extendsOptions } = from;
|
|
12597
|
+
if (extendsOptions) {
|
|
12598
|
+
mergeOptions(to, extendsOptions, strats, true);
|
|
12407
12599
|
}
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
12418
|
-
props: {
|
|
12419
|
-
src: { type: String, default: "" },
|
|
12420
|
-
isFullPath: { type: Boolean, default: false },
|
|
12421
|
-
failImgSrc: { type: String, default: "" },
|
|
12422
|
-
alt: { type: String, default: "" },
|
|
12423
|
-
size: { type: String, default: "", validator: validators.size },
|
|
12424
|
-
sizeAbsolute: { type: String, default: "" },
|
|
12425
|
-
width: { type: String, default: "" },
|
|
12426
|
-
height: { type: String, default: "" },
|
|
12427
|
-
zoom: { type: Boolean, default: false },
|
|
12428
|
-
zoomTitle: { type: String, default: "" },
|
|
12429
|
-
hasBorder: { type: Boolean, default: false },
|
|
12430
|
-
radius: { type: String, default: "" },
|
|
12431
|
-
borderColor: { type: String, default: "" },
|
|
12432
|
-
rounded: { type: Boolean, default: false }
|
|
12433
|
-
},
|
|
12434
|
-
setup(__props) {
|
|
12435
|
-
const props = __props;
|
|
12436
|
-
const altNeeded = ref(false);
|
|
12437
|
-
let isMounted = ref(false);
|
|
12438
|
-
const imageUrl = computed$2(() => {
|
|
12439
|
-
if (!isMounted.value)
|
|
12440
|
-
return "";
|
|
12441
|
-
if (props.isFullPath)
|
|
12442
|
-
return props.src;
|
|
12443
|
-
return getImg(props.src);
|
|
12444
|
-
});
|
|
12445
|
-
const computedClass = computed$2(() => {
|
|
12446
|
-
const classList2 = [];
|
|
12447
|
-
if (props.size)
|
|
12448
|
-
classList2.push(`ck-img__size--${props.size}`);
|
|
12449
|
-
if (props.rounded)
|
|
12450
|
-
classList2.push("is-rounded");
|
|
12451
|
-
if (props.hasBorder) {
|
|
12452
|
-
classList2.push("ck-img__has-border");
|
|
12453
|
-
if (functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
12454
|
-
classList2.push(`ck-component__border-color--${realBorderColor.value}`);
|
|
12455
|
-
}
|
|
12456
|
-
}
|
|
12457
|
-
if (props.zoom)
|
|
12458
|
-
classList2.push("zoom-able");
|
|
12459
|
-
return classList2;
|
|
12460
|
-
});
|
|
12461
|
-
const computedStyle = computed$2(() => {
|
|
12462
|
-
const styleList = [];
|
|
12463
|
-
if (props.sizeAbsolute) {
|
|
12464
|
-
styleList.push({ width: props.sizeAbsolute });
|
|
12465
|
-
styleList.push({ height: props.sizeAbsolute });
|
|
12466
|
-
}
|
|
12467
|
-
if (props.radius)
|
|
12468
|
-
styleList.push({ "border-radius": props.radius });
|
|
12469
|
-
if (props.hasBorder) {
|
|
12470
|
-
if (!functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
12471
|
-
styleList.push({ "border-color": realBorderColor.value });
|
|
12472
|
-
}
|
|
12473
|
-
}
|
|
12474
|
-
return styleList;
|
|
12475
|
-
});
|
|
12476
|
-
const computedImgStyle = computed$2(() => {
|
|
12477
|
-
const styleList = [];
|
|
12478
|
-
if (props.radius)
|
|
12479
|
-
styleList.push({ "border-radius": props.radius });
|
|
12480
|
-
if (props.width)
|
|
12481
|
-
styleList.push({ width: props.width });
|
|
12482
|
-
if (props.height)
|
|
12483
|
-
styleList.push({ height: props.height });
|
|
12484
|
-
return styleList;
|
|
12485
|
-
});
|
|
12486
|
-
const realBorderColor = computed$2(() => {
|
|
12487
|
-
if (props.borderColor)
|
|
12488
|
-
return props.borderColor;
|
|
12489
|
-
return globalVariables.defaultImgBorderColor;
|
|
12490
|
-
});
|
|
12491
|
-
function clickImg() {
|
|
12492
|
-
if (props.zoom)
|
|
12493
|
-
;
|
|
12600
|
+
if (mixins) {
|
|
12601
|
+
mixins.forEach((m) => mergeOptions(to, m, strats, true));
|
|
12602
|
+
}
|
|
12603
|
+
for (const key in from) {
|
|
12604
|
+
if (asMixin && key === "expose")
|
|
12605
|
+
;
|
|
12606
|
+
else {
|
|
12607
|
+
const strat = internalOptionMergeStrats[key] || strats && strats[key];
|
|
12608
|
+
to[key] = strat ? strat(to[key], from[key]) : from[key];
|
|
12494
12609
|
}
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12610
|
+
}
|
|
12611
|
+
return to;
|
|
12612
|
+
}
|
|
12613
|
+
const internalOptionMergeStrats = {
|
|
12614
|
+
data: mergeDataFn,
|
|
12615
|
+
props: mergeObjectOptions,
|
|
12616
|
+
emits: mergeObjectOptions,
|
|
12617
|
+
methods: mergeObjectOptions,
|
|
12618
|
+
computed: mergeObjectOptions,
|
|
12619
|
+
beforeCreate: mergeAsArray,
|
|
12620
|
+
created: mergeAsArray,
|
|
12621
|
+
beforeMount: mergeAsArray,
|
|
12622
|
+
mounted: mergeAsArray,
|
|
12623
|
+
beforeUpdate: mergeAsArray,
|
|
12624
|
+
updated: mergeAsArray,
|
|
12625
|
+
beforeDestroy: mergeAsArray,
|
|
12626
|
+
beforeUnmount: mergeAsArray,
|
|
12627
|
+
destroyed: mergeAsArray,
|
|
12628
|
+
unmounted: mergeAsArray,
|
|
12629
|
+
activated: mergeAsArray,
|
|
12630
|
+
deactivated: mergeAsArray,
|
|
12631
|
+
errorCaptured: mergeAsArray,
|
|
12632
|
+
serverPrefetch: mergeAsArray,
|
|
12633
|
+
components: mergeObjectOptions,
|
|
12634
|
+
directives: mergeObjectOptions,
|
|
12635
|
+
watch: mergeWatchOptions,
|
|
12636
|
+
provide: mergeDataFn,
|
|
12637
|
+
inject: mergeInject
|
|
12638
|
+
};
|
|
12639
|
+
function mergeDataFn(to, from) {
|
|
12640
|
+
if (!from) {
|
|
12641
|
+
return to;
|
|
12642
|
+
}
|
|
12643
|
+
if (!to) {
|
|
12644
|
+
return from;
|
|
12645
|
+
}
|
|
12646
|
+
return function mergedDataFn() {
|
|
12647
|
+
return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
|
|
12648
|
+
};
|
|
12649
|
+
}
|
|
12650
|
+
function mergeInject(to, from) {
|
|
12651
|
+
return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
|
|
12652
|
+
}
|
|
12653
|
+
function normalizeInject(raw) {
|
|
12654
|
+
if (isArray(raw)) {
|
|
12655
|
+
const res = {};
|
|
12656
|
+
for (let i = 0; i < raw.length; i++) {
|
|
12657
|
+
res[raw[i]] = raw[i];
|
|
12503
12658
|
}
|
|
12504
|
-
|
|
12505
|
-
getCurrentInstance().ctx;
|
|
12506
|
-
isMounted.value = true;
|
|
12507
|
-
});
|
|
12508
|
-
return (_ctx, _cache) => {
|
|
12509
|
-
return openBlock(), createElementBlock("div", {
|
|
12510
|
-
class: normalizeClass(["ck-img", unref$1(computedClass)]),
|
|
12511
|
-
style: normalizeStyle(unref$1(computedStyle)),
|
|
12512
|
-
onClick: _cache[1] || (_cache[1] = ($event) => clickImg())
|
|
12513
|
-
}, [
|
|
12514
|
-
createElementVNode("img", {
|
|
12515
|
-
src: unref$1(imageUrl),
|
|
12516
|
-
style: normalizeStyle(unref$1(computedImgStyle)),
|
|
12517
|
-
alt: __props.alt,
|
|
12518
|
-
onError: _cache[0] || (_cache[0] = ($event) => altNeeded.value = true)
|
|
12519
|
-
}, null, 44, _hoisted_1$f)
|
|
12520
|
-
], 6);
|
|
12521
|
-
};
|
|
12659
|
+
return res;
|
|
12522
12660
|
}
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
list.push(`ck-align--${align}`);
|
|
12540
|
-
return list;
|
|
12541
|
-
});
|
|
12542
|
-
return (_ctx, _cache) => {
|
|
12543
|
-
return openBlock(), createElementBlock("label", {
|
|
12544
|
-
class: normalizeClass(["ck-label", unref$1(computedClass)]),
|
|
12545
|
-
for: __props.for
|
|
12546
|
-
}, [
|
|
12547
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12548
|
-
], 10, _hoisted_1$e);
|
|
12549
|
-
};
|
|
12661
|
+
return raw;
|
|
12662
|
+
}
|
|
12663
|
+
function mergeAsArray(to, from) {
|
|
12664
|
+
return to ? [...new Set([].concat(to, from))] : from;
|
|
12665
|
+
}
|
|
12666
|
+
function mergeObjectOptions(to, from) {
|
|
12667
|
+
return to ? extend(extend(Object.create(null), to), from) : from;
|
|
12668
|
+
}
|
|
12669
|
+
function mergeWatchOptions(to, from) {
|
|
12670
|
+
if (!to)
|
|
12671
|
+
return from;
|
|
12672
|
+
if (!from)
|
|
12673
|
+
return to;
|
|
12674
|
+
const merged = extend(Object.create(null), to);
|
|
12675
|
+
for (const key in from) {
|
|
12676
|
+
merged[key] = mergeAsArray(to[key], from[key]);
|
|
12550
12677
|
}
|
|
12678
|
+
return merged;
|
|
12679
|
+
}
|
|
12680
|
+
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
12681
|
+
const getPublicInstance = (i) => {
|
|
12682
|
+
if (!i)
|
|
12683
|
+
return null;
|
|
12684
|
+
if (isStatefulComponent(i))
|
|
12685
|
+
return getExposeProxy(i) || i.proxy;
|
|
12686
|
+
return getPublicInstance(i.parent);
|
|
12687
|
+
};
|
|
12688
|
+
const publicPropertiesMap = extend(Object.create(null), {
|
|
12689
|
+
$: (i) => i,
|
|
12690
|
+
$el: (i) => i.vnode.el,
|
|
12691
|
+
$data: (i) => i.data,
|
|
12692
|
+
$props: (i) => i.props,
|
|
12693
|
+
$attrs: (i) => i.attrs,
|
|
12694
|
+
$slots: (i) => i.slots,
|
|
12695
|
+
$refs: (i) => i.refs,
|
|
12696
|
+
$parent: (i) => getPublicInstance(i.parent),
|
|
12697
|
+
$root: (i) => getPublicInstance(i.root),
|
|
12698
|
+
$emit: (i) => i.emit,
|
|
12699
|
+
$options: (i) => resolveMergedOptions(i),
|
|
12700
|
+
$forceUpdate: (i) => () => queueJob(i.update),
|
|
12701
|
+
$nextTick: (i) => nextTick.bind(i.proxy),
|
|
12702
|
+
$watch: (i) => instanceWatch.bind(i)
|
|
12551
12703
|
});
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12704
|
+
let currentInstance = null;
|
|
12705
|
+
const setCurrentInstance = (instance) => {
|
|
12706
|
+
currentInstance = instance;
|
|
12707
|
+
instance.scope.on();
|
|
12708
|
+
};
|
|
12709
|
+
const unsetCurrentInstance = () => {
|
|
12710
|
+
currentInstance && currentInstance.scope.off();
|
|
12711
|
+
currentInstance = null;
|
|
12712
|
+
};
|
|
12713
|
+
function isStatefulComponent(instance) {
|
|
12714
|
+
return instance.vnode.shapeFlag & 4;
|
|
12715
|
+
}
|
|
12716
|
+
let isInSSRComponentSetup = false;
|
|
12717
|
+
function getExposeProxy(instance) {
|
|
12718
|
+
if (instance.exposed) {
|
|
12719
|
+
return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
|
|
12720
|
+
get(target, key) {
|
|
12721
|
+
if (key in target) {
|
|
12722
|
+
return target[key];
|
|
12723
|
+
} else if (key in publicPropertiesMap) {
|
|
12724
|
+
return publicPropertiesMap[key](instance);
|
|
12725
|
+
}
|
|
12726
|
+
}
|
|
12727
|
+
}));
|
|
12728
|
+
}
|
|
12729
|
+
}
|
|
12730
|
+
const computed = (getterOrOptions, debugOptions) => {
|
|
12731
|
+
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
12732
|
+
};
|
|
12733
|
+
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12734
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-132565da"), n = n(), popScopeId(), n);
|
|
12735
|
+
const _hoisted_1$b = ["disabled", "checked"];
|
|
12736
|
+
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
12737
|
+
const _hoisted_3$4 = {
|
|
12738
|
+
key: 0,
|
|
12739
|
+
class: "c-Checkbox__label"
|
|
12740
|
+
};
|
|
12741
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
12557
12742
|
props: {
|
|
12558
|
-
modelValue: {},
|
|
12559
|
-
type: { type: String, validator: validators.inputType, default: "text" },
|
|
12560
|
-
disabled: { type: Boolean, default: false },
|
|
12561
|
-
placeholder: { type: String, default: void 0 },
|
|
12743
|
+
modelValue: { type: Boolean, default: false },
|
|
12562
12744
|
label: { type: String, default: void 0 },
|
|
12563
|
-
|
|
12564
|
-
icon: { type: [String, Array], default: void 0 },
|
|
12565
|
-
iconPack: { type: String, default: void 0 },
|
|
12566
|
-
iconRight: { type: String, default: void 0 },
|
|
12567
|
-
group: { type: String, default: void 0 },
|
|
12568
|
-
groupBreak: { type: String, default: "s" },
|
|
12569
|
-
groupVertical: { type: String, default: void 0 },
|
|
12570
|
-
hideBorder: { type: Boolean, default: false },
|
|
12571
|
-
width: { type: String, default: void 0 },
|
|
12572
|
-
align: { type: String, validator: validators.align, default: void 0 },
|
|
12573
|
-
autoSelect: { type: Boolean, default: false }
|
|
12745
|
+
disabled: { type: Boolean, default: false }
|
|
12574
12746
|
},
|
|
12575
|
-
emits: ["update:modelValue", "
|
|
12576
|
-
setup(__props, {
|
|
12747
|
+
emits: ["update:modelValue", "change"],
|
|
12748
|
+
setup(__props, { emit: emits }) {
|
|
12577
12749
|
const props = __props;
|
|
12578
|
-
|
|
12579
|
-
const realInput = ref(null);
|
|
12580
|
-
const value = computed$2({
|
|
12750
|
+
const value = computed({
|
|
12581
12751
|
get() {
|
|
12582
12752
|
return props.modelValue;
|
|
12583
12753
|
},
|
|
@@ -12585,96 +12755,54 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
12585
12755
|
emits("update:modelValue", val);
|
|
12586
12756
|
}
|
|
12587
12757
|
});
|
|
12588
|
-
const
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
const onInput = (event) => {
|
|
12594
|
-
emits("input", event);
|
|
12595
|
-
};
|
|
12596
|
-
const onChange = (event) => {
|
|
12597
|
-
emits("change", event);
|
|
12598
|
-
};
|
|
12599
|
-
const computedStyleInput = computed$2(() => {
|
|
12600
|
-
const list = [];
|
|
12601
|
-
if (props.width)
|
|
12602
|
-
list.push({ width: props.width });
|
|
12603
|
-
return list;
|
|
12604
|
-
});
|
|
12605
|
-
const computedClassInput = computed$2(() => {
|
|
12606
|
-
const list = [];
|
|
12607
|
-
list.push(functions.getGroupClass(props));
|
|
12608
|
-
if (props.icon)
|
|
12609
|
-
list.push("has-icon-left");
|
|
12610
|
-
if (props.iconRight)
|
|
12611
|
-
list.push("has-icon-right");
|
|
12612
|
-
if (props.align)
|
|
12613
|
-
list.push(`align--${props.align}`);
|
|
12614
|
-
if (props.hideBorder)
|
|
12615
|
-
list.push("no-border");
|
|
12616
|
-
return list;
|
|
12758
|
+
const checkboxAttributes = computed(() => {
|
|
12759
|
+
return {
|
|
12760
|
+
"aria-disabled": props.disabled,
|
|
12761
|
+
tabindex: props.disabled ? void 0 : "0"
|
|
12762
|
+
};
|
|
12617
12763
|
});
|
|
12618
|
-
function
|
|
12619
|
-
|
|
12764
|
+
function onChange(event) {
|
|
12765
|
+
emits("change", event);
|
|
12620
12766
|
}
|
|
12621
|
-
function
|
|
12622
|
-
|
|
12767
|
+
function onTrigger2() {
|
|
12768
|
+
value.value = !value.value;
|
|
12623
12769
|
}
|
|
12624
12770
|
return (_ctx, _cache) => {
|
|
12625
|
-
return openBlock(), createElementBlock("
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
"
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
class: normalizeClass(unref$1(computedClassInput)),
|
|
12650
|
-
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
12651
|
-
id: __props.label ? "ck-input" : "",
|
|
12652
|
-
disabled: __props.disabled,
|
|
12653
|
-
onChange: _cache[1] || (_cache[1] = ($event) => onChange($event)),
|
|
12654
|
-
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
12655
|
-
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
12656
|
-
}, null, 46, _hoisted_2$7), [
|
|
12657
|
-
[vModelDynamic, unref$1(value)]
|
|
12658
|
-
]),
|
|
12659
|
-
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
12660
|
-
key: 2,
|
|
12661
|
-
class: "ck-input__icon-right",
|
|
12662
|
-
color: "lightgrey",
|
|
12663
|
-
icon: __props.iconRight,
|
|
12664
|
-
"icon-pack": __props.iconPack
|
|
12665
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
12666
|
-
]);
|
|
12771
|
+
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, unref$1(checkboxAttributes), {
|
|
12772
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
12773
|
+
}, ["prevent"]), ["space"])),
|
|
12774
|
+
onKeyup: [
|
|
12775
|
+
_cache[2] || (_cache[2] = withKeys(($event) => onTrigger2(), ["enter"])),
|
|
12776
|
+
_cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["space"]))
|
|
12777
|
+
]
|
|
12778
|
+
}), [
|
|
12779
|
+
createElementVNode("input", {
|
|
12780
|
+
class: "ck-checkbox__input",
|
|
12781
|
+
"aria-hidden": "true",
|
|
12782
|
+
type: "checkbox",
|
|
12783
|
+
disabled: __props.disabled,
|
|
12784
|
+
checked: unref$1(value),
|
|
12785
|
+
onChange: _cache[0] || (_cache[0] = ($event) => {
|
|
12786
|
+
value.value = $event.target.checked;
|
|
12787
|
+
onChange($event);
|
|
12788
|
+
})
|
|
12789
|
+
}, null, 40, _hoisted_1$b),
|
|
12790
|
+
_hoisted_2$6,
|
|
12791
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
12792
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12793
|
+
])) : createCommentVNode("", true)
|
|
12794
|
+
], 16);
|
|
12667
12795
|
};
|
|
12668
12796
|
}
|
|
12669
12797
|
});
|
|
12670
|
-
var
|
|
12798
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-132565da"]]);
|
|
12671
12799
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
12672
|
-
const _hoisted_1$
|
|
12800
|
+
const _hoisted_1$a = {
|
|
12673
12801
|
key: 0,
|
|
12674
12802
|
class: "ck-popup"
|
|
12675
12803
|
};
|
|
12676
|
-
const _hoisted_2$
|
|
12677
|
-
const _hoisted_3$
|
|
12804
|
+
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
|
|
12805
|
+
const _hoisted_3$3 = { class: "ck-popup__slot-header" };
|
|
12678
12806
|
const _hoisted_4$3 = {
|
|
12679
12807
|
key: 0,
|
|
12680
12808
|
class: "ck-popup__title"
|
|
@@ -12690,7 +12818,7 @@ const _hoisted_7 = {
|
|
|
12690
12818
|
};
|
|
12691
12819
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
12692
12820
|
const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
12693
|
-
const _sfc_main$
|
|
12821
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
12694
12822
|
props: {
|
|
12695
12823
|
modelValue: { type: Boolean },
|
|
12696
12824
|
title: { type: String, default: void 0 },
|
|
@@ -12724,8 +12852,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12724
12852
|
isActive.value = false;
|
|
12725
12853
|
}
|
|
12726
12854
|
return (_ctx, _cache) => {
|
|
12727
|
-
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12728
|
-
_hoisted_2$
|
|
12855
|
+
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
12856
|
+
_hoisted_2$5,
|
|
12729
12857
|
createElementVNode("div", {
|
|
12730
12858
|
class: "popup-container",
|
|
12731
12859
|
onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
|
|
@@ -12735,7 +12863,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12735
12863
|
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
12736
12864
|
}, ["stop"]))
|
|
12737
12865
|
}, [
|
|
12738
|
-
createElementVNode("div", _hoisted_3$
|
|
12866
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
12739
12867
|
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
12740
12868
|
renderSlot(_ctx.$slots, "header"),
|
|
12741
12869
|
!__props.notCloseBtn ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -12778,26 +12906,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
12778
12906
|
};
|
|
12779
12907
|
}
|
|
12780
12908
|
});
|
|
12781
|
-
var
|
|
12782
|
-
const
|
|
12783
|
-
const
|
|
12784
|
-
const
|
|
12785
|
-
const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
12786
|
-
const _hoisted_4$2 = {
|
|
12787
|
-
key: 0,
|
|
12788
|
-
class: "c-Radio__label"
|
|
12789
|
-
};
|
|
12790
|
-
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
12909
|
+
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12910
|
+
const _hoisted_1$9 = { class: "columns-manger-container" };
|
|
12911
|
+
const _hoisted_2$4 = { class: "columns-manger__item" };
|
|
12912
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
12791
12913
|
props: {
|
|
12792
|
-
modelValue: { type:
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
disabled: { type: Boolean, default: false }
|
|
12914
|
+
modelValue: { type: Boolean, required: true },
|
|
12915
|
+
columns: { type: Object, required: true },
|
|
12916
|
+
columnsArray: { type: Array, required: true }
|
|
12796
12917
|
},
|
|
12797
|
-
emits: ["update:modelValue"
|
|
12918
|
+
emits: ["update:modelValue"],
|
|
12798
12919
|
setup(__props, { emit: emits }) {
|
|
12799
12920
|
const props = __props;
|
|
12800
|
-
|
|
12921
|
+
let columnsCheckable = ref([]);
|
|
12922
|
+
const isActive = computed$2({
|
|
12801
12923
|
get() {
|
|
12802
12924
|
return props.modelValue;
|
|
12803
12925
|
},
|
|
@@ -12805,48 +12927,58 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
12805
12927
|
emits("update:modelValue", val);
|
|
12806
12928
|
}
|
|
12807
12929
|
});
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
};
|
|
12930
|
+
watch(() => isActive.value, (val) => {
|
|
12931
|
+
if (!val)
|
|
12932
|
+
return;
|
|
12933
|
+
setColumnsCheckable();
|
|
12813
12934
|
});
|
|
12814
|
-
function
|
|
12815
|
-
|
|
12816
|
-
|
|
12935
|
+
function setColumnsCheckable() {
|
|
12936
|
+
console.log("hoola");
|
|
12937
|
+
const list = [];
|
|
12938
|
+
props.columnsArray.forEach((col) => {
|
|
12939
|
+
if (!col.unchangeable) {
|
|
12940
|
+
list.push({
|
|
12941
|
+
name: col.name,
|
|
12942
|
+
title: col.title,
|
|
12943
|
+
value: functions.isColumnDisplayed(col)
|
|
12944
|
+
});
|
|
12945
|
+
}
|
|
12946
|
+
});
|
|
12947
|
+
columnsCheckable.value = list;
|
|
12948
|
+
}
|
|
12949
|
+
function setColumnDisplayValue(colName, value) {
|
|
12950
|
+
props.columns[colName].isDisplayed = value;
|
|
12817
12951
|
}
|
|
12818
12952
|
return (_ctx, _cache) => {
|
|
12819
|
-
return openBlock(
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
], 16, _hoisted_1$b);
|
|
12845
|
-
}), 128);
|
|
12953
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
12954
|
+
modelValue: unref$1(isActive),
|
|
12955
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
|
|
12956
|
+
title: "Administrador de columnas"
|
|
12957
|
+
}, {
|
|
12958
|
+
default: withCtx(() => [
|
|
12959
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
12960
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(columnsCheckable), (col) => {
|
|
12961
|
+
return openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
12962
|
+
createVNode(ckCheckbox, {
|
|
12963
|
+
modelValue: col.value,
|
|
12964
|
+
"onUpdate:modelValue": ($event) => col.value = $event,
|
|
12965
|
+
onChange: ($event) => setColumnDisplayValue(col.name, col.value)
|
|
12966
|
+
}, {
|
|
12967
|
+
default: withCtx(() => [
|
|
12968
|
+
createTextVNode(toDisplayString(col.title), 1)
|
|
12969
|
+
]),
|
|
12970
|
+
_: 2
|
|
12971
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
12972
|
+
]);
|
|
12973
|
+
}), 256))
|
|
12974
|
+
])
|
|
12975
|
+
]),
|
|
12976
|
+
_: 1
|
|
12977
|
+
}, 8, ["modelValue"]);
|
|
12846
12978
|
};
|
|
12847
12979
|
}
|
|
12848
12980
|
});
|
|
12849
|
-
var
|
|
12981
|
+
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-5b0e173f"]]);
|
|
12850
12982
|
var qmApi = {};
|
|
12851
12983
|
var qmArray = {
|
|
12852
12984
|
arrayToText(arr, key = null) {
|
|
@@ -13073,956 +13205,828 @@ var qmObj = {
|
|
|
13073
13205
|
const newList = [...optionsList];
|
|
13074
13206
|
newList.unshift(noneOption);
|
|
13075
13207
|
return newList;
|
|
13076
|
-
},
|
|
13077
|
-
copyAvaibleFields(ObjEditable, ObjToCopy) {
|
|
13078
|
-
for (const key in ObjEditable) {
|
|
13079
|
-
if (typeof getKeyValue(ObjToCopy, key) !== "undefined") {
|
|
13080
|
-
setKeyValue(ObjEditable, key, getKeyValue(ObjToCopy, key));
|
|
13081
|
-
}
|
|
13082
|
-
}
|
|
13083
|
-
},
|
|
13084
|
-
isArray(obj) {
|
|
13085
|
-
return obj.constructor === Array;
|
|
13086
|
-
},
|
|
13087
|
-
objsAreTheSame(obj1, obj2) {
|
|
13088
|
-
for (const key in obj1) {
|
|
13089
|
-
if (getKeyValue(obj1, key) != getKeyValue(obj2, key))
|
|
13090
|
-
return false;
|
|
13091
|
-
}
|
|
13092
|
-
for (const key in obj2) {
|
|
13093
|
-
if (getKeyValue(obj1, key) != getKeyValue(obj2, key))
|
|
13094
|
-
return false;
|
|
13095
|
-
}
|
|
13096
|
-
return true;
|
|
13097
|
-
},
|
|
13098
|
-
qoIsObjEmpty(obj = {}) {
|
|
13099
|
-
return obj && Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
13100
|
-
}
|
|
13101
|
-
};
|
|
13102
|
-
var main$1 = {
|
|
13103
|
-
qmApi,
|
|
13104
|
-
qmArray,
|
|
13105
|
-
qmAudio,
|
|
13106
|
-
qmNum,
|
|
13107
|
-
qmObj,
|
|
13108
|
-
qmStr
|
|
13109
|
-
};
|
|
13110
|
-
var App;
|
|
13111
|
-
(function(App2) {
|
|
13112
|
-
class SomeClass {
|
|
13113
|
-
getName() {
|
|
13114
|
-
return "name";
|
|
13115
|
-
}
|
|
13116
|
-
}
|
|
13117
|
-
App2.SomeClass = SomeClass;
|
|
13118
|
-
class OtherClass {
|
|
13119
|
-
getName() {
|
|
13120
|
-
return "name";
|
|
13121
|
-
}
|
|
13122
|
-
}
|
|
13123
|
-
App2.OtherClass = OtherClass;
|
|
13124
|
-
})(App || (App = {}));
|
|
13125
|
-
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13126
|
-
const _hoisted_1$a = ["value"];
|
|
13127
|
-
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
13128
|
-
props: {
|
|
13129
|
-
modelValue: { default: null, type: [Boolean, Number, Object, Array, String] },
|
|
13130
|
-
prop: { type: String, default: "name" },
|
|
13131
|
-
autofocus: { type: Boolean, default: false },
|
|
13132
|
-
noDataText: { type: String, default: "No se encontr\xF3 nada" },
|
|
13133
|
-
notReduce: { type: Boolean, default: false },
|
|
13134
|
-
options: { type: Array, default: () => [] },
|
|
13135
|
-
reduceFunction: { type: Function, default: (Option) => Option.id },
|
|
13136
|
-
notClearable: { type: Boolean, default: false },
|
|
13137
|
-
clearValue: { type: [Boolean, String], default: "auto" },
|
|
13138
|
-
searchable: { type: [Boolean, String], default: "auto" },
|
|
13139
|
-
minWidth: { type: String, default: "180px" },
|
|
13140
|
-
noBorder: { type: Boolean, default: false },
|
|
13141
|
-
bgTransparent: { type: Boolean, default: false },
|
|
13142
|
-
disabled: { type: [Boolean, Number], default: false },
|
|
13143
|
-
group: { type: String, default: "" },
|
|
13144
|
-
groupBreak: { type: String, default: "" },
|
|
13145
|
-
groupVertical: { type: String, default: "" },
|
|
13146
|
-
label: { type: String, default: "" },
|
|
13147
|
-
labelAlign: { type: String, default: "" }
|
|
13148
|
-
},
|
|
13149
|
-
emits: ["update:modelValue", "click", "change"],
|
|
13150
|
-
setup(__props, { emit: emits }) {
|
|
13151
|
-
const props = __props;
|
|
13152
|
-
const { qmStr: qmStr2 } = main$1;
|
|
13153
|
-
const search = ref("");
|
|
13154
|
-
ref(null);
|
|
13155
|
-
const value = computed$2({
|
|
13156
|
-
get() {
|
|
13157
|
-
return props.modelValue;
|
|
13158
|
-
},
|
|
13159
|
-
set(val) {
|
|
13160
|
-
if (val === null)
|
|
13161
|
-
val = realClearValue;
|
|
13162
|
-
emits("update:modelValue", val);
|
|
13163
|
-
}
|
|
13164
|
-
});
|
|
13165
|
-
const filteredOptions = computed$2(() => {
|
|
13166
|
-
const list = props.options.filter((option) => {
|
|
13167
|
-
const name = getOptionName(option);
|
|
13168
|
-
return qmStr2.checkContainsStr(name, search.value);
|
|
13169
|
-
});
|
|
13170
|
-
return list;
|
|
13171
|
-
});
|
|
13172
|
-
const computedClass = computed$2(() => {
|
|
13173
|
-
const classList2 = [];
|
|
13174
|
-
classList2.push(functions.getGroupClass(props));
|
|
13175
|
-
return classList2;
|
|
13176
|
-
});
|
|
13177
|
-
const computedStyle = computed$2(() => {
|
|
13178
|
-
const list = [];
|
|
13179
|
-
if (props.minWidth)
|
|
13180
|
-
list.push({ "min-width": props.minWidth });
|
|
13181
|
-
return list;
|
|
13182
|
-
});
|
|
13183
|
-
computed$2(() => {
|
|
13184
|
-
if (props.searchable === "auto") {
|
|
13185
|
-
if (props.options.length < 5)
|
|
13186
|
-
return false;
|
|
13187
|
-
return true;
|
|
13188
|
-
}
|
|
13189
|
-
return props.searchable;
|
|
13190
|
-
});
|
|
13191
|
-
const realClearValue = computed$2(() => {
|
|
13192
|
-
switch (typeof props.modelValue) {
|
|
13193
|
-
case "number":
|
|
13194
|
-
return 0;
|
|
13195
|
-
case "string":
|
|
13196
|
-
return "";
|
|
13197
|
-
case "object":
|
|
13198
|
-
if (props.modelValue.constructor === Array)
|
|
13199
|
-
return [];
|
|
13200
|
-
return {};
|
|
13201
|
-
default:
|
|
13202
|
-
return null;
|
|
13203
|
-
}
|
|
13204
|
-
});
|
|
13205
|
-
computed$2(() => {
|
|
13206
|
-
switch (typeof props.modelValue) {
|
|
13207
|
-
case "number":
|
|
13208
|
-
return props.modelValue === 0;
|
|
13209
|
-
case "string":
|
|
13210
|
-
return props.modelValue === "";
|
|
13211
|
-
case "object":
|
|
13212
|
-
if (!props.modelValue)
|
|
13213
|
-
return null;
|
|
13214
|
-
if (props.modelValue.constructor === Array) {
|
|
13215
|
-
return props.modelValue.length() === 0;
|
|
13216
|
-
}
|
|
13217
|
-
return Object.keys(props.modelValue).length === 0;
|
|
13218
|
-
default:
|
|
13219
|
-
return props.modelValue === null;
|
|
13208
|
+
},
|
|
13209
|
+
copyAvaibleFields(ObjEditable, ObjToCopy) {
|
|
13210
|
+
for (const key in ObjEditable) {
|
|
13211
|
+
if (typeof getKeyValue(ObjToCopy, key) !== "undefined") {
|
|
13212
|
+
setKeyValue(ObjEditable, key, getKeyValue(ObjToCopy, key));
|
|
13220
13213
|
}
|
|
13221
|
-
});
|
|
13222
|
-
function onClick(event) {
|
|
13223
|
-
emits("click", event);
|
|
13224
13214
|
}
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
return (
|
|
13242
|
-
return openBlock(), createElementBlock("div", {
|
|
13243
|
-
class: "ck-select",
|
|
13244
|
-
style: normalizeStyle(unref$1(computedStyle))
|
|
13245
|
-
}, [
|
|
13246
|
-
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
13247
|
-
key: 0,
|
|
13248
|
-
align: __props.labelAlign,
|
|
13249
|
-
for: "ck-input"
|
|
13250
|
-
}, {
|
|
13251
|
-
default: withCtx(() => [
|
|
13252
|
-
createTextVNode(toDisplayString(__props.label), 1)
|
|
13253
|
-
]),
|
|
13254
|
-
_: 1
|
|
13255
|
-
}, 8, ["align"])) : createCommentVNode("", true),
|
|
13256
|
-
withDirectives(createElementVNode("select", {
|
|
13257
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13258
|
-
class: normalizeClass(unref$1(computedClass)),
|
|
13259
|
-
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
13260
|
-
onChange: _cache[2] || (_cache[2] = ($event) => onChange($event))
|
|
13261
|
-
}, [
|
|
13262
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredOptions), (option) => {
|
|
13263
|
-
return openBlock(), createElementBlock("option", {
|
|
13264
|
-
value: getOptionKey(option),
|
|
13265
|
-
key: option
|
|
13266
|
-
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$a);
|
|
13267
|
-
}), 128))
|
|
13268
|
-
], 34), [
|
|
13269
|
-
[vModelSelect, unref$1(value)]
|
|
13270
|
-
])
|
|
13271
|
-
], 4);
|
|
13272
|
-
};
|
|
13215
|
+
},
|
|
13216
|
+
isArray(obj) {
|
|
13217
|
+
return obj.constructor === Array;
|
|
13218
|
+
},
|
|
13219
|
+
objsAreTheSame(obj1, obj2) {
|
|
13220
|
+
for (const key in obj1) {
|
|
13221
|
+
if (getKeyValue(obj1, key) != getKeyValue(obj2, key))
|
|
13222
|
+
return false;
|
|
13223
|
+
}
|
|
13224
|
+
for (const key in obj2) {
|
|
13225
|
+
if (getKeyValue(obj1, key) != getKeyValue(obj2, key))
|
|
13226
|
+
return false;
|
|
13227
|
+
}
|
|
13228
|
+
return true;
|
|
13229
|
+
},
|
|
13230
|
+
qoIsObjEmpty(obj = {}) {
|
|
13231
|
+
return obj && Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
|
|
13273
13232
|
}
|
|
13274
|
-
}
|
|
13275
|
-
var
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13233
|
+
};
|
|
13234
|
+
var main$1 = {
|
|
13235
|
+
qmApi,
|
|
13236
|
+
qmArray,
|
|
13237
|
+
qmAudio,
|
|
13238
|
+
qmNum,
|
|
13239
|
+
qmObj,
|
|
13240
|
+
qmStr
|
|
13241
|
+
};
|
|
13242
|
+
var App;
|
|
13243
|
+
(function(App2) {
|
|
13244
|
+
class SomeClass {
|
|
13245
|
+
getName() {
|
|
13246
|
+
return "name";
|
|
13247
|
+
}
|
|
13248
|
+
}
|
|
13249
|
+
App2.SomeClass = SomeClass;
|
|
13250
|
+
class OtherClass {
|
|
13251
|
+
getName() {
|
|
13252
|
+
return "name";
|
|
13253
|
+
}
|
|
13254
|
+
}
|
|
13255
|
+
App2.OtherClass = OtherClass;
|
|
13256
|
+
})(App || (App = {}));
|
|
13257
|
+
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13258
|
+
const _hoisted_1$8 = { class: "ck-table" };
|
|
13259
|
+
const _hoisted_2$3 = {
|
|
13282
13260
|
key: 0,
|
|
13283
|
-
class: "ck-
|
|
13261
|
+
class: "ck-table__header"
|
|
13284
13262
|
};
|
|
13285
|
-
const
|
|
13263
|
+
const _hoisted_3$2 = {
|
|
13264
|
+
key: 1,
|
|
13265
|
+
class: "ck-table__header--slot"
|
|
13266
|
+
};
|
|
13267
|
+
const _hoisted_4$2 = { class: "ck-table__table-container" };
|
|
13268
|
+
const _hoisted_5 = { key: 0 };
|
|
13269
|
+
const _hoisted_6 = { key: 1 };
|
|
13270
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
13286
13271
|
props: {
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13272
|
+
columns: { type: [Array, Object], required: true, default: () => [] },
|
|
13273
|
+
hasColumnsManager: { type: Boolean, default: false },
|
|
13274
|
+
currentPage: { type: Number, default: 0 },
|
|
13275
|
+
itemsPerPage: { type: Number, default: 40 },
|
|
13276
|
+
listLength: { type: Number, default: 0 },
|
|
13277
|
+
paginationAlign: { type: String, default: "center", validator: validators.align },
|
|
13278
|
+
search: { type: String, default: void 0 },
|
|
13279
|
+
hideHeaderActions: { type: Boolean, default: false },
|
|
13280
|
+
showRefreshBtn: { type: Boolean, default: false },
|
|
13281
|
+
hideItemsPerPage: { type: Boolean, default: false },
|
|
13282
|
+
notFullWidth: { type: Boolean, default: false }
|
|
13294
13283
|
},
|
|
13295
|
-
emits: ["update:
|
|
13284
|
+
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
13296
13285
|
setup(__props, { emit: emits }) {
|
|
13297
13286
|
const props = __props;
|
|
13298
|
-
const
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
},
|
|
13302
|
-
set(val) {
|
|
13303
|
-
emits("update:modelValue", val);
|
|
13304
|
-
}
|
|
13305
|
-
});
|
|
13306
|
-
const computedClass = computed$2(() => {
|
|
13307
|
-
const list = [];
|
|
13308
|
-
if (props.squared)
|
|
13309
|
-
list.push("is-squared");
|
|
13310
|
-
if (props.outlined)
|
|
13311
|
-
list.push("is-outlined");
|
|
13312
|
-
let size = "s";
|
|
13313
|
-
if (props.size === "m" || props.size === "l")
|
|
13314
|
-
size = props.size;
|
|
13315
|
-
list.push(`ck-switch--size-${size}`);
|
|
13316
|
-
return list;
|
|
13287
|
+
const { qmObj: qmObj2 } = main$1;
|
|
13288
|
+
const IsPopupActive = ref({
|
|
13289
|
+
columnsManager: false
|
|
13317
13290
|
});
|
|
13318
|
-
const
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13291
|
+
const columnsAreObj = computed$2(() => !qmObj2.isArray(props.columns));
|
|
13292
|
+
const columnsArray = computed$2(() => {
|
|
13293
|
+
if (!columnsAreObj.value)
|
|
13294
|
+
return props.columns;
|
|
13295
|
+
const arr = Object.values(props.columns);
|
|
13296
|
+
const keys = Object.keys(props.columns);
|
|
13297
|
+
arr.forEach((col, index) => {
|
|
13298
|
+
const key = keys[index];
|
|
13299
|
+
col.name = key;
|
|
13300
|
+
});
|
|
13301
|
+
return arr;
|
|
13323
13302
|
});
|
|
13324
|
-
const
|
|
13325
|
-
|
|
13326
|
-
if (props.size && props.size !== "m") {
|
|
13327
|
-
list.push(`ck-switch__icon-size--${props.size}`);
|
|
13328
|
-
}
|
|
13329
|
-
return list;
|
|
13303
|
+
const filteredColumnsList = computed$2(() => {
|
|
13304
|
+
return columnsArray.value.filter(functions.isColumnDisplayed);
|
|
13330
13305
|
});
|
|
13331
|
-
|
|
13332
|
-
value.value = !value.value;
|
|
13333
|
-
}
|
|
13334
|
-
return (_ctx, _cache) => {
|
|
13335
|
-
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, unref$1(computedAttributes), {
|
|
13336
|
-
class: unref$1(computedClass),
|
|
13337
|
-
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
|
|
13338
|
-
}, ["prevent"]), ["space"])),
|
|
13339
|
-
onKeyup: [
|
|
13340
|
-
_cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["enter"])),
|
|
13341
|
-
_cache[4] || (_cache[4] = withKeys(($event) => onTrigger2(), ["space"]))
|
|
13342
|
-
]
|
|
13343
|
-
}), [
|
|
13344
|
-
withDirectives(createElementVNode("input", {
|
|
13345
|
-
class: "ck-switch__input",
|
|
13346
|
-
"aria-hidden": "true",
|
|
13347
|
-
type: "checkbox",
|
|
13348
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13349
|
-
disabled: __props.disabled,
|
|
13350
|
-
onClick: _cache[1] || (_cache[1] = ($event) => onTrigger2())
|
|
13351
|
-
}, null, 8, _hoisted_1$9), [
|
|
13352
|
-
[vModelCheckbox, unref$1(value)]
|
|
13353
|
-
]),
|
|
13354
|
-
createElementVNode("div", _hoisted_2$4, [
|
|
13355
|
-
_hoisted_3$2,
|
|
13356
|
-
__props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13357
|
-
key: 0,
|
|
13358
|
-
class: normalizeClass(["ck-switch__icon-left", unref$1(iconClass)]),
|
|
13359
|
-
icon: __props.icon,
|
|
13360
|
-
"icon-pack": __props.iconPack
|
|
13361
|
-
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true),
|
|
13362
|
-
__props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13363
|
-
key: 1,
|
|
13364
|
-
class: normalizeClass(["ck-switch__icon-right", unref$1(iconClass)]),
|
|
13365
|
-
icon: __props.icon,
|
|
13366
|
-
"icon-pack": __props.iconPack
|
|
13367
|
-
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
|
|
13368
|
-
]),
|
|
13369
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
|
|
13370
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13371
|
-
])) : createCommentVNode("", true)
|
|
13372
|
-
], 16);
|
|
13373
|
-
};
|
|
13374
|
-
}
|
|
13375
|
-
});
|
|
13376
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b6a4dfaa"]]);
|
|
13377
|
-
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13378
|
-
const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
|
|
13379
|
-
const _hoisted_2$3 = ["onClick"];
|
|
13380
|
-
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
13381
|
-
props: {
|
|
13382
|
-
modelValue: { type: [Boolean, Number, Object], default: 0 },
|
|
13383
|
-
options: { type: Array, required: true },
|
|
13384
|
-
prop: { type: String, default: "name" },
|
|
13385
|
-
notReduce: { type: Boolean, default: false },
|
|
13386
|
-
reduceFunction: { type: Function, default: (Option) => Option.id },
|
|
13387
|
-
label: { type: String, default: "" },
|
|
13388
|
-
labelAlign: { type: String, default: "" },
|
|
13389
|
-
group: { type: String, default: "" },
|
|
13390
|
-
groupBreak: { type: String, default: "s" },
|
|
13391
|
-
groupVertical: { type: String, default: "" },
|
|
13392
|
-
sameWidthOptions: { type: Boolean, default: false }
|
|
13393
|
-
},
|
|
13394
|
-
emits: ["update:modelValue", "change"],
|
|
13395
|
-
setup(__props, { emit: emits }) {
|
|
13396
|
-
const props = __props;
|
|
13397
|
-
const selectedOption = computed$2({
|
|
13306
|
+
const searchLocal = computed$2({
|
|
13398
13307
|
get() {
|
|
13399
|
-
return props.
|
|
13308
|
+
return props.search;
|
|
13400
13309
|
},
|
|
13401
13310
|
set(val) {
|
|
13402
|
-
emits("update:
|
|
13403
|
-
emits("change", val);
|
|
13311
|
+
emits("update:search", val);
|
|
13404
13312
|
}
|
|
13405
13313
|
});
|
|
13406
|
-
const
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
if (props.sameWidthOptions)
|
|
13414
|
-
list.push({ width: `${100 / props.options.length}%` });
|
|
13415
|
-
return list;
|
|
13314
|
+
const currentPageLocal = computed$2({
|
|
13315
|
+
get() {
|
|
13316
|
+
return props.currentPage;
|
|
13317
|
+
},
|
|
13318
|
+
set(val) {
|
|
13319
|
+
emits("update:currentPage", val);
|
|
13320
|
+
}
|
|
13416
13321
|
});
|
|
13417
|
-
function
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13322
|
+
function refreshList(pageChange = false) {
|
|
13323
|
+
emits("refreshList", pageChange);
|
|
13324
|
+
}
|
|
13325
|
+
function openColumnsManager() {
|
|
13326
|
+
if (columnsAreObj.value) {
|
|
13327
|
+
IsPopupActive.value.columnsManager = true;
|
|
13328
|
+
} else {
|
|
13329
|
+
console.log("ERROR ck-table", "The columns list should be an object");
|
|
13330
|
+
}
|
|
13421
13331
|
}
|
|
13422
13332
|
return (_ctx, _cache) => {
|
|
13423
|
-
return openBlock(), createElementBlock(
|
|
13424
|
-
__props.
|
|
13333
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
13334
|
+
__props.hasColumnsManager && unref$1(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
13425
13335
|
key: 0,
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13336
|
+
modelValue: IsPopupActive.value.columnsManager,
|
|
13337
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => IsPopupActive.value.columnsManager = $event),
|
|
13338
|
+
columnsArray: unref$1(columnsArray),
|
|
13339
|
+
columns: __props.columns
|
|
13340
|
+
}, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
|
|
13341
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
13342
|
+
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
13343
|
+
!__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
|
|
13344
|
+
key: 0,
|
|
13345
|
+
search: unref$1(searchLocal),
|
|
13346
|
+
"onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
13347
|
+
currentPage: __props.currentPage,
|
|
13348
|
+
hasColumnsManager: __props.hasColumnsManager,
|
|
13349
|
+
itemsPerPage: __props.itemsPerPage,
|
|
13350
|
+
listLength: __props.listLength,
|
|
13351
|
+
showRefreshBtn: __props.showRefreshBtn,
|
|
13352
|
+
hideItemsPerPage: __props.hideItemsPerPage,
|
|
13353
|
+
onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
|
|
13354
|
+
onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
|
|
13355
|
+
}, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
|
|
13356
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
13357
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
13358
|
+
])) : createCommentVNode("", true)
|
|
13359
|
+
])) : createCommentVNode("", true),
|
|
13360
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
13361
|
+
createElementVNode("table", {
|
|
13362
|
+
class: normalizeClass(["ck-table__table", { "not-full-width": __props.notFullWidth }])
|
|
13363
|
+
}, [
|
|
13364
|
+
unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
13365
|
+
createVNode(ckTr, null, {
|
|
13366
|
+
default: withCtx(() => [
|
|
13367
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
13368
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
13369
|
+
key: col.title,
|
|
13370
|
+
col
|
|
13371
|
+
}, null, 8, ["col"]);
|
|
13372
|
+
}), 128))
|
|
13373
|
+
]),
|
|
13374
|
+
_: 1
|
|
13375
|
+
})
|
|
13376
|
+
])) : createCommentVNode("", true),
|
|
13377
|
+
createElementVNode("tbody", null, [
|
|
13378
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13379
|
+
]),
|
|
13380
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
13381
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
13382
|
+
])) : createCommentVNode("", true)
|
|
13383
|
+
], 2)
|
|
13430
13384
|
]),
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
}, toDisplayString(Option[__props.prop]), 15, _hoisted_2$3);
|
|
13443
|
-
}), 128))
|
|
13444
|
-
], 2)
|
|
13445
|
-
]);
|
|
13385
|
+
createVNode(TablePagination, {
|
|
13386
|
+
class: "ck-table__pagination",
|
|
13387
|
+
currentPage: unref$1(currentPageLocal),
|
|
13388
|
+
"onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
|
|
13389
|
+
itemsPerPage: __props.itemsPerPage,
|
|
13390
|
+
listLength: __props.listLength,
|
|
13391
|
+
align: __props.paginationAlign,
|
|
13392
|
+
onRefreshList: _cache[5] || (_cache[5] = ($event) => refreshList(true))
|
|
13393
|
+
}, null, 8, ["currentPage", "itemsPerPage", "listLength", "align"])
|
|
13394
|
+
])
|
|
13395
|
+
], 64);
|
|
13446
13396
|
};
|
|
13447
13397
|
}
|
|
13448
13398
|
});
|
|
13449
|
-
var
|
|
13450
|
-
|
|
13451
|
-
function render$1(_ctx, _cache) {
|
|
13452
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$7, [
|
|
13453
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13454
|
-
]);
|
|
13455
|
-
}
|
|
13456
|
-
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13457
|
-
const _sfc_main$9 = {};
|
|
13458
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$1], ["__scopeId", "data-v-1dd12190"]]);
|
|
13459
|
-
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13460
|
-
const _hoisted_1$6 = { class: "ck-th" };
|
|
13399
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-160656a0"]]);
|
|
13400
|
+
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13461
13401
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
13462
13402
|
props: {
|
|
13463
|
-
|
|
13464
|
-
|
|
13403
|
+
col: { type: Object, default: void 0 },
|
|
13404
|
+
nowrap: { type: Boolean, default: false },
|
|
13405
|
+
block: { type: Boolean, default: false },
|
|
13406
|
+
autoWidth: { type: Boolean, default: false },
|
|
13407
|
+
overflowAuto: { type: Boolean, default: false },
|
|
13408
|
+
align: { type: String, default: void 0, validator: validators.align },
|
|
13409
|
+
fixedWidth: { type: String, default: "" },
|
|
13410
|
+
minWidth: { type: String, default: "" },
|
|
13411
|
+
maxWidth: { type: String, default: "" },
|
|
13412
|
+
maxHeight: { type: String, default: "" }
|
|
13465
13413
|
},
|
|
13466
13414
|
setup(__props) {
|
|
13467
13415
|
const props = __props;
|
|
13468
|
-
const
|
|
13416
|
+
const computedTdClass = computed$2(() => {
|
|
13469
13417
|
return {
|
|
13470
|
-
"
|
|
13471
|
-
"
|
|
13472
|
-
"align-right": props.align === "right"
|
|
13418
|
+
"auto-width": props.autoWidth,
|
|
13419
|
+
"overflow-auto": props.overflowAuto
|
|
13473
13420
|
};
|
|
13474
13421
|
});
|
|
13475
|
-
const
|
|
13422
|
+
const computedSpanClass = computed$2(() => {
|
|
13476
13423
|
const list = [];
|
|
13424
|
+
let align;
|
|
13425
|
+
if (props.col)
|
|
13426
|
+
align = props.col.align;
|
|
13427
|
+
if (props.align)
|
|
13428
|
+
align = props.align;
|
|
13429
|
+
if (align) {
|
|
13430
|
+
if (align === "center")
|
|
13431
|
+
list.push("align-center");
|
|
13432
|
+
if (align === "right")
|
|
13433
|
+
list.push("align-right");
|
|
13434
|
+
}
|
|
13435
|
+
if (props.block)
|
|
13436
|
+
list.push("block");
|
|
13437
|
+
if (props.block)
|
|
13438
|
+
list.push("no-wrap-text");
|
|
13439
|
+
return list;
|
|
13440
|
+
});
|
|
13441
|
+
const computedStyle = computed$2(() => {
|
|
13442
|
+
const list = {};
|
|
13477
13443
|
if (props.minWidth)
|
|
13478
|
-
list
|
|
13444
|
+
list["min-width"] = props.minWidth;
|
|
13445
|
+
if (props.fixedWidth)
|
|
13446
|
+
list["min-width"] = props.fixedWidth;
|
|
13447
|
+
if (props.maxWidth)
|
|
13448
|
+
list["max-width"] = props.maxWidth;
|
|
13449
|
+
if (props.fixedWidth)
|
|
13450
|
+
list["max-width"] = props.fixedWidth;
|
|
13451
|
+
if (props.maxHeight)
|
|
13452
|
+
list["max-height"] = props.maxHeight;
|
|
13479
13453
|
return list;
|
|
13480
13454
|
});
|
|
13455
|
+
const isColumnDisplayed = computed$2(() => {
|
|
13456
|
+
if (!props.col)
|
|
13457
|
+
return true;
|
|
13458
|
+
return functions.isColumnDisplayed(props.col);
|
|
13459
|
+
});
|
|
13481
13460
|
return (_ctx, _cache) => {
|
|
13482
|
-
return openBlock(), createElementBlock("
|
|
13461
|
+
return unref$1(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
|
|
13462
|
+
key: 0,
|
|
13463
|
+
class: normalizeClass(["ck-td", unref$1(computedTdClass)])
|
|
13464
|
+
}, [
|
|
13483
13465
|
createElementVNode("span", {
|
|
13484
13466
|
class: normalizeClass(unref$1(computedSpanClass)),
|
|
13485
13467
|
style: normalizeStyle(unref$1(computedStyle))
|
|
13486
13468
|
}, [
|
|
13487
13469
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13488
13470
|
], 6)
|
|
13489
|
-
]);
|
|
13471
|
+
], 2)) : createCommentVNode("", true);
|
|
13490
13472
|
};
|
|
13491
13473
|
}
|
|
13492
13474
|
});
|
|
13493
|
-
var
|
|
13475
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4eae6064"]]);
|
|
13476
|
+
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13477
|
+
const _hoisted_1$7 = ["color"];
|
|
13494
13478
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
13495
13479
|
props: {
|
|
13496
|
-
|
|
13480
|
+
size: { type: String, default: "s" },
|
|
13481
|
+
color: { type: String, default: "primary" },
|
|
13482
|
+
textColor: { type: String, default: void 0 },
|
|
13483
|
+
icon: { type: String, default: void 0 },
|
|
13484
|
+
iconPack: { type: String, default: void 0 }
|
|
13497
13485
|
},
|
|
13498
|
-
|
|
13486
|
+
emits: ["click"],
|
|
13487
|
+
setup(__props, { emit: emits }) {
|
|
13488
|
+
const props = __props;
|
|
13489
|
+
const computedClass = computed$2(() => {
|
|
13490
|
+
return [
|
|
13491
|
+
`size-${props.size}`,
|
|
13492
|
+
`ck-component__bg-color--${props.color}`
|
|
13493
|
+
];
|
|
13494
|
+
});
|
|
13495
|
+
const computedStyle = computed$2(() => {
|
|
13496
|
+
const list = [];
|
|
13497
|
+
if (props.color)
|
|
13498
|
+
;
|
|
13499
|
+
return list;
|
|
13500
|
+
});
|
|
13499
13501
|
return (_ctx, _cache) => {
|
|
13500
|
-
return openBlock(),
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13502
|
+
return openBlock(), createElementBlock("div", {
|
|
13503
|
+
class: normalizeClass(["ck-chip", unref$1(computedClass)]),
|
|
13504
|
+
color: __props.color,
|
|
13505
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
13506
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
13507
|
+
}, [
|
|
13508
|
+
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
13509
|
+
key: 0,
|
|
13510
|
+
icon: __props.icon,
|
|
13511
|
+
"icon-pack": __props.iconPack
|
|
13512
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
13513
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13514
|
+
], 14, _hoisted_1$7);
|
|
13509
13515
|
};
|
|
13510
13516
|
}
|
|
13511
13517
|
});
|
|
13512
|
-
var
|
|
13513
|
-
|
|
13518
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5333de26"]]);
|
|
13519
|
+
var globalVariables = {
|
|
13520
|
+
defaultFailImg: "df",
|
|
13521
|
+
imagesFolderPath: "",
|
|
13522
|
+
defaultImgBorderColor: "#EEEEEE"
|
|
13523
|
+
};
|
|
13524
|
+
var ckImg_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13525
|
+
const _hoisted_1$6 = ["src", "alt"];
|
|
13514
13526
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
13515
13527
|
props: {
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13528
|
+
src: { type: String, default: "" },
|
|
13529
|
+
failImgSrc: { type: String, default: "" },
|
|
13530
|
+
alt: { type: String, default: "" },
|
|
13531
|
+
size: { type: String, default: "", validator: validators.size },
|
|
13532
|
+
sizeAbsolute: { type: String, default: "" },
|
|
13533
|
+
width: { type: String, default: "" },
|
|
13534
|
+
height: { type: String, default: "" },
|
|
13535
|
+
zoom: { type: Boolean, default: false },
|
|
13536
|
+
zoomTitle: { type: String, default: "" },
|
|
13537
|
+
hasBorder: { type: Boolean, default: false },
|
|
13538
|
+
radius: { type: String, default: "" },
|
|
13539
|
+
borderColor: { type: String, default: "" },
|
|
13540
|
+
rounded: { type: Boolean, default: false }
|
|
13523
13541
|
},
|
|
13524
|
-
|
|
13525
|
-
setup(__props, { emit: emits }) {
|
|
13542
|
+
setup(__props) {
|
|
13526
13543
|
const props = __props;
|
|
13527
|
-
const
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13544
|
+
const altNeeded = ref(false);
|
|
13545
|
+
let isMounted = ref(false);
|
|
13546
|
+
const isFullPath = computed$2(() => {
|
|
13547
|
+
return props.src.substring(0, 4) === "http";
|
|
13548
|
+
});
|
|
13549
|
+
const imageUrl = computed$2(() => {
|
|
13550
|
+
if (!isMounted.value)
|
|
13551
|
+
return "";
|
|
13552
|
+
if (isFullPath.value)
|
|
13553
|
+
return props.src;
|
|
13554
|
+
return getImg(props.src);
|
|
13555
|
+
});
|
|
13556
|
+
const computedClass = computed$2(() => {
|
|
13557
|
+
const classList2 = [];
|
|
13558
|
+
if (props.size)
|
|
13559
|
+
classList2.push(`ck-img__size--${props.size}`);
|
|
13560
|
+
if (props.rounded)
|
|
13561
|
+
classList2.push("is-rounded");
|
|
13562
|
+
if (props.hasBorder) {
|
|
13563
|
+
classList2.push("ck-img__has-border");
|
|
13564
|
+
if (functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
13565
|
+
classList2.push(`ck-component__border-color--${realBorderColor.value}`);
|
|
13566
|
+
}
|
|
13533
13567
|
}
|
|
13568
|
+
if (props.zoom)
|
|
13569
|
+
classList2.push("zoom-able");
|
|
13570
|
+
return classList2;
|
|
13534
13571
|
});
|
|
13535
|
-
const
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
if (
|
|
13544
|
-
|
|
13545
|
-
|
|
13572
|
+
const computedStyle = computed$2(() => {
|
|
13573
|
+
const styleList = [];
|
|
13574
|
+
if (props.sizeAbsolute) {
|
|
13575
|
+
styleList.push({ width: props.sizeAbsolute });
|
|
13576
|
+
styleList.push({ height: props.sizeAbsolute });
|
|
13577
|
+
}
|
|
13578
|
+
if (props.radius)
|
|
13579
|
+
styleList.push({ "border-radius": props.radius });
|
|
13580
|
+
if (props.hasBorder) {
|
|
13581
|
+
if (!functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
13582
|
+
styleList.push({ "border-color": realBorderColor.value });
|
|
13583
|
+
}
|
|
13584
|
+
}
|
|
13585
|
+
return styleList;
|
|
13546
13586
|
});
|
|
13547
|
-
const
|
|
13548
|
-
|
|
13587
|
+
const computedImgStyle = computed$2(() => {
|
|
13588
|
+
const styleList = [];
|
|
13589
|
+
if (props.radius)
|
|
13590
|
+
styleList.push({ "border-radius": props.radius });
|
|
13591
|
+
if (props.width)
|
|
13592
|
+
styleList.push({ width: props.width });
|
|
13593
|
+
if (props.height)
|
|
13594
|
+
styleList.push({ height: props.height });
|
|
13595
|
+
return styleList;
|
|
13549
13596
|
});
|
|
13550
|
-
const
|
|
13551
|
-
|
|
13597
|
+
const realBorderColor = computed$2(() => {
|
|
13598
|
+
if (props.borderColor)
|
|
13599
|
+
return props.borderColor;
|
|
13600
|
+
return globalVariables.defaultImgBorderColor;
|
|
13552
13601
|
});
|
|
13553
|
-
|
|
13554
|
-
if (
|
|
13555
|
-
|
|
13602
|
+
function clickImg() {
|
|
13603
|
+
if (props.zoom)
|
|
13604
|
+
;
|
|
13605
|
+
}
|
|
13606
|
+
function getImg(src) {
|
|
13607
|
+
let path = "";
|
|
13608
|
+
const $cleekOptions = functions.getCleekOptions(getCurrentInstance);
|
|
13609
|
+
if ($cleekOptions) {
|
|
13610
|
+
if ($cleekOptions.imgPath)
|
|
13611
|
+
path = $cleekOptions.imgPath;
|
|
13556
13612
|
}
|
|
13557
|
-
|
|
13558
|
-
return "right";
|
|
13559
|
-
if (props.hasColumnsManager)
|
|
13560
|
-
return "left";
|
|
13561
|
-
return "";
|
|
13562
|
-
});
|
|
13563
|
-
function checkRefresh() {
|
|
13564
|
-
const search = searchLocal.value;
|
|
13565
|
-
setTimeout(() => {
|
|
13566
|
-
if (search !== searchLocal.value)
|
|
13567
|
-
return;
|
|
13568
|
-
emits("refreshList", false);
|
|
13569
|
-
}, 1e3);
|
|
13613
|
+
return `${path}${src}`;
|
|
13570
13614
|
}
|
|
13615
|
+
onMounted(() => {
|
|
13616
|
+
getCurrentInstance().ctx;
|
|
13617
|
+
isMounted.value = true;
|
|
13618
|
+
});
|
|
13571
13619
|
return (_ctx, _cache) => {
|
|
13572
|
-
return openBlock(), createElementBlock("div",
|
|
13573
|
-
unref$1(
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
!unref$1(hideSearch) ? (openBlock(), createBlock(ckInput, {
|
|
13585
|
-
key: 2,
|
|
13586
|
-
modelValue: unref$1(searchLocal),
|
|
13587
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
13588
|
-
icon: "search",
|
|
13589
|
-
placeholder: "Buscar...",
|
|
13590
|
-
group: unref$1(searchGroupValue),
|
|
13591
|
-
onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
|
|
13592
|
-
}, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
|
|
13593
|
-
__props.hasColumnsManager ? (openBlock(), createBlock(ckButton, {
|
|
13594
|
-
key: 3,
|
|
13595
|
-
icon: "columns",
|
|
13596
|
-
type: "filled",
|
|
13597
|
-
title: "Administrador de columnas",
|
|
13598
|
-
group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
|
|
13599
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
|
|
13600
|
-
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
13601
|
-
]);
|
|
13620
|
+
return openBlock(), createElementBlock("div", {
|
|
13621
|
+
class: normalizeClass(["ck-img", unref$1(computedClass)]),
|
|
13622
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
13623
|
+
onClick: _cache[1] || (_cache[1] = ($event) => clickImg())
|
|
13624
|
+
}, [
|
|
13625
|
+
createElementVNode("img", {
|
|
13626
|
+
src: unref$1(imageUrl),
|
|
13627
|
+
style: normalizeStyle(unref$1(computedImgStyle)),
|
|
13628
|
+
alt: __props.alt,
|
|
13629
|
+
onError: _cache[0] || (_cache[0] = ($event) => altNeeded.value = true)
|
|
13630
|
+
}, null, 44, _hoisted_1$6)
|
|
13631
|
+
], 6);
|
|
13602
13632
|
};
|
|
13603
13633
|
}
|
|
13604
13634
|
});
|
|
13605
|
-
var
|
|
13606
|
-
var
|
|
13607
|
-
const
|
|
13608
|
-
const
|
|
13609
|
-
const
|
|
13610
|
-
const
|
|
13611
|
-
const
|
|
13612
|
-
|
|
13635
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-65d88644"]]);
|
|
13636
|
+
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13637
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
|
|
13638
|
+
const _hoisted_1$5 = ["onKeyup"];
|
|
13639
|
+
const _hoisted_2$2 = ["name", "value", "disabled"];
|
|
13640
|
+
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
13641
|
+
const _hoisted_4$1 = {
|
|
13642
|
+
key: 0,
|
|
13643
|
+
class: "c-Radio__label"
|
|
13644
|
+
};
|
|
13645
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
13613
13646
|
props: {
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13647
|
+
modelValue: { type: String, default: void 0 },
|
|
13648
|
+
name: { type: String, required: true },
|
|
13649
|
+
options: { type: Array, required: true, validator: validators.radioOptions },
|
|
13650
|
+
disabled: { type: Boolean, default: false }
|
|
13618
13651
|
},
|
|
13619
|
-
emits: ["
|
|
13620
|
-
|
|
13621
|
-
|
|
13652
|
+
emits: ["update:modelValue", "change"],
|
|
13653
|
+
setup(__props, { emit: emits }) {
|
|
13654
|
+
const props = __props;
|
|
13655
|
+
const value = computed$2({
|
|
13622
13656
|
get() {
|
|
13623
|
-
return
|
|
13657
|
+
return props.modelValue;
|
|
13624
13658
|
},
|
|
13625
13659
|
set(val) {
|
|
13626
|
-
|
|
13627
|
-
}
|
|
13628
|
-
},
|
|
13629
|
-
hasArrowLeft() {
|
|
13630
|
-
if (!this.listLeft.length)
|
|
13631
|
-
return false;
|
|
13632
|
-
return this.listLeft[0] !== 1;
|
|
13633
|
-
},
|
|
13634
|
-
totalPages() {
|
|
13635
|
-
return Math.ceil(this.listLength / this.itemsPerPage);
|
|
13636
|
-
},
|
|
13637
|
-
hasArrowRight() {
|
|
13638
|
-
if (!this.listRight.length)
|
|
13639
|
-
return false;
|
|
13640
|
-
return this.listRight[this.listRight.length - 1] !== this.totalPages;
|
|
13641
|
-
},
|
|
13642
|
-
listLeft() {
|
|
13643
|
-
if (!this.listLength)
|
|
13644
|
-
return [];
|
|
13645
|
-
const list = [];
|
|
13646
|
-
const listLength = (itemsShowed - 1) / 2;
|
|
13647
|
-
for (const num of Array(listLength).keys()) {
|
|
13648
|
-
const listItem = this.currentPage - num - 1;
|
|
13649
|
-
if (listItem > 0)
|
|
13650
|
-
list.unshift(listItem);
|
|
13651
|
-
}
|
|
13652
|
-
return list;
|
|
13653
|
-
},
|
|
13654
|
-
listRight() {
|
|
13655
|
-
if (!this.listLength)
|
|
13656
|
-
return [];
|
|
13657
|
-
const list = [];
|
|
13658
|
-
const listLength = (itemsShowed - 1) / 2;
|
|
13659
|
-
for (const num of Array(listLength).keys()) {
|
|
13660
|
-
const listItem = this.currentPage + num + 1;
|
|
13661
|
-
if (listItem <= this.totalPages)
|
|
13662
|
-
list.push(listItem);
|
|
13660
|
+
emits("update:modelValue", val);
|
|
13663
13661
|
}
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
if (val > this.totalPages)
|
|
13675
|
-
val = this.totalPages;
|
|
13676
|
-
if (val < 1)
|
|
13677
|
-
val = 1;
|
|
13678
|
-
if (val === this.currentPage)
|
|
13679
|
-
return;
|
|
13680
|
-
this.updateCurrentPage(val);
|
|
13662
|
+
});
|
|
13663
|
+
const radioAttributes = computed$2(() => {
|
|
13664
|
+
return {
|
|
13665
|
+
"aria-disabled": props.disabled,
|
|
13666
|
+
tabindex: props.disabled ? void 0 : "0"
|
|
13667
|
+
};
|
|
13668
|
+
});
|
|
13669
|
+
function handleChange(value2) {
|
|
13670
|
+
value2.value = value2;
|
|
13671
|
+
emits("change", value2);
|
|
13681
13672
|
}
|
|
13682
|
-
}
|
|
13683
|
-
};
|
|
13684
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
13685
|
-
setup(__props) {
|
|
13686
13673
|
return (_ctx, _cache) => {
|
|
13687
|
-
return
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
(
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
}, null, 8, ["modelValue"]),
|
|
13715
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listRight, (num) => {
|
|
13716
|
-
return openBlock(), createElementBlock("div", {
|
|
13717
|
-
class: "ck-table__pagination-item pagination-item__right",
|
|
13718
|
-
onClick: ($event) => _ctx.updateCurrentPage(num)
|
|
13719
|
-
}, toDisplayString(num), 9, _hoisted_3$1);
|
|
13720
|
-
}), 256)),
|
|
13721
|
-
_ctx.hasArrowRight ? (openBlock(), createElementBlock("div", {
|
|
13722
|
-
key: 1,
|
|
13723
|
-
class: "ck-table__pagination--arrow-right",
|
|
13724
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.updateCurrentPage(__props.currentPage + 1))
|
|
13725
|
-
}, [
|
|
13726
|
-
createVNode(ckIcon, { icon: "arrow-right" })
|
|
13727
|
-
])) : createCommentVNode("", true)
|
|
13728
|
-
])
|
|
13729
|
-
], 2)) : createCommentVNode("", true);
|
|
13674
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item, index) => {
|
|
13675
|
+
return openBlock(), createElementBlock("label", mergeProps({
|
|
13676
|
+
key: `radio-${index}`,
|
|
13677
|
+
class: "c-Radio"
|
|
13678
|
+
}, unref$1(radioAttributes), {
|
|
13679
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
13680
|
+
}, ["prevent"]), ["space"])),
|
|
13681
|
+
onKeyup: [
|
|
13682
|
+
withKeys(($event) => handleChange(item.value), ["enter"]),
|
|
13683
|
+
withKeys(($event) => handleChange(item.value), ["space"])
|
|
13684
|
+
]
|
|
13685
|
+
}), [
|
|
13686
|
+
withDirectives(createElementVNode("input", {
|
|
13687
|
+
class: "c-Radio__input",
|
|
13688
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13689
|
+
"aria-hidden": "true",
|
|
13690
|
+
type: "radio",
|
|
13691
|
+
name: __props.name,
|
|
13692
|
+
value: item.value,
|
|
13693
|
+
disabled: __props.disabled
|
|
13694
|
+
}, null, 8, _hoisted_2$2), [
|
|
13695
|
+
[vModelRadio, unref$1(value)]
|
|
13696
|
+
]),
|
|
13697
|
+
_hoisted_3$1,
|
|
13698
|
+
item.label ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
13699
|
+
], 16, _hoisted_1$5);
|
|
13700
|
+
}), 128);
|
|
13730
13701
|
};
|
|
13731
13702
|
}
|
|
13732
|
-
})
|
|
13733
|
-
var
|
|
13734
|
-
var
|
|
13735
|
-
const _hoisted_1$
|
|
13736
|
-
const _hoisted_2$1 = { class: "columns-manger__item" };
|
|
13703
|
+
});
|
|
13704
|
+
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a5198d80"]]);
|
|
13705
|
+
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13706
|
+
const _hoisted_1$4 = ["value"];
|
|
13737
13707
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
13738
13708
|
props: {
|
|
13739
|
-
modelValue: { type: Boolean,
|
|
13740
|
-
|
|
13741
|
-
|
|
13709
|
+
modelValue: { default: null, type: [Boolean, Number, Object, Array, String] },
|
|
13710
|
+
prop: { type: String, default: "name" },
|
|
13711
|
+
autofocus: { type: Boolean, default: false },
|
|
13712
|
+
noDataText: { type: String, default: "No se encontr\xF3 nada" },
|
|
13713
|
+
notReduce: { type: Boolean, default: false },
|
|
13714
|
+
options: { type: Array, default: () => [] },
|
|
13715
|
+
reduceFunction: { type: Function, default: (Option) => Option.id },
|
|
13716
|
+
notClearable: { type: Boolean, default: false },
|
|
13717
|
+
clearValue: { type: [Boolean, String], default: "auto" },
|
|
13718
|
+
searchable: { type: [Boolean, String], default: "auto" },
|
|
13719
|
+
minWidth: { type: String, default: "180px" },
|
|
13720
|
+
noBorder: { type: Boolean, default: false },
|
|
13721
|
+
bgTransparent: { type: Boolean, default: false },
|
|
13722
|
+
disabled: { type: [Boolean, Number], default: false },
|
|
13723
|
+
group: { type: String, default: "" },
|
|
13724
|
+
groupBreak: { type: String, default: "" },
|
|
13725
|
+
groupVertical: { type: String, default: "" },
|
|
13726
|
+
label: { type: String, default: "" },
|
|
13727
|
+
labelAlign: { type: String, default: "" }
|
|
13742
13728
|
},
|
|
13743
|
-
emits: ["update:modelValue"],
|
|
13729
|
+
emits: ["update:modelValue", "click", "change"],
|
|
13744
13730
|
setup(__props, { emit: emits }) {
|
|
13745
13731
|
const props = __props;
|
|
13746
|
-
|
|
13747
|
-
const
|
|
13732
|
+
const { qmStr: qmStr2 } = main$1;
|
|
13733
|
+
const search = ref("");
|
|
13734
|
+
ref(null);
|
|
13735
|
+
const value = computed$2({
|
|
13748
13736
|
get() {
|
|
13749
13737
|
return props.modelValue;
|
|
13750
13738
|
},
|
|
13751
13739
|
set(val) {
|
|
13740
|
+
if (val === null)
|
|
13741
|
+
val = realClearValue;
|
|
13752
13742
|
emits("update:modelValue", val);
|
|
13753
13743
|
}
|
|
13754
13744
|
});
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13745
|
+
const filteredOptions = computed$2(() => {
|
|
13746
|
+
const list = props.options.filter((option) => {
|
|
13747
|
+
const name = getOptionName(option);
|
|
13748
|
+
return qmStr2.checkContainsStr(name, search.value);
|
|
13749
|
+
});
|
|
13750
|
+
return list;
|
|
13759
13751
|
});
|
|
13760
|
-
|
|
13761
|
-
|
|
13752
|
+
const computedClass = computed$2(() => {
|
|
13753
|
+
const classList2 = [];
|
|
13754
|
+
classList2.push(functions.getGroupClass(props));
|
|
13755
|
+
return classList2;
|
|
13756
|
+
});
|
|
13757
|
+
const computedStyle = computed$2(() => {
|
|
13762
13758
|
const list = [];
|
|
13763
|
-
props.
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13759
|
+
if (props.minWidth)
|
|
13760
|
+
list.push({ "min-width": props.minWidth });
|
|
13761
|
+
return list;
|
|
13762
|
+
});
|
|
13763
|
+
computed$2(() => {
|
|
13764
|
+
if (props.searchable === "auto") {
|
|
13765
|
+
if (props.options.length < 5)
|
|
13766
|
+
return false;
|
|
13767
|
+
return true;
|
|
13768
|
+
}
|
|
13769
|
+
return props.searchable;
|
|
13770
|
+
});
|
|
13771
|
+
const realClearValue = computed$2(() => {
|
|
13772
|
+
switch (typeof props.modelValue) {
|
|
13773
|
+
case "number":
|
|
13774
|
+
return 0;
|
|
13775
|
+
case "string":
|
|
13776
|
+
return "";
|
|
13777
|
+
case "object":
|
|
13778
|
+
if (props.modelValue.constructor === Array)
|
|
13779
|
+
return [];
|
|
13780
|
+
return {};
|
|
13781
|
+
default:
|
|
13782
|
+
return null;
|
|
13783
|
+
}
|
|
13784
|
+
});
|
|
13785
|
+
computed$2(() => {
|
|
13786
|
+
switch (typeof props.modelValue) {
|
|
13787
|
+
case "number":
|
|
13788
|
+
return props.modelValue === 0;
|
|
13789
|
+
case "string":
|
|
13790
|
+
return props.modelValue === "";
|
|
13791
|
+
case "object":
|
|
13792
|
+
if (!props.modelValue)
|
|
13793
|
+
return null;
|
|
13794
|
+
if (props.modelValue.constructor === Array) {
|
|
13795
|
+
return props.modelValue.length() === 0;
|
|
13796
|
+
}
|
|
13797
|
+
return Object.keys(props.modelValue).length === 0;
|
|
13798
|
+
default:
|
|
13799
|
+
return props.modelValue === null;
|
|
13800
|
+
}
|
|
13801
|
+
});
|
|
13802
|
+
function onClick(event) {
|
|
13803
|
+
emits("click", event);
|
|
13776
13804
|
}
|
|
13805
|
+
const onChange = (event) => {
|
|
13806
|
+
emits("change", event);
|
|
13807
|
+
};
|
|
13808
|
+
const getOptionKey = (option) => {
|
|
13809
|
+
return realReduceFunction(option);
|
|
13810
|
+
};
|
|
13811
|
+
const getOptionName = (option) => {
|
|
13812
|
+
if (!props.prop)
|
|
13813
|
+
return option;
|
|
13814
|
+
return option[props.prop];
|
|
13815
|
+
};
|
|
13816
|
+
const realReduceFunction = (option) => {
|
|
13817
|
+
if (props.notReduce)
|
|
13818
|
+
return option;
|
|
13819
|
+
return props.reduceFunction(option);
|
|
13820
|
+
};
|
|
13777
13821
|
return (_ctx, _cache) => {
|
|
13778
|
-
return openBlock(),
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13822
|
+
return openBlock(), createElementBlock("div", {
|
|
13823
|
+
class: "ck-select",
|
|
13824
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
13825
|
+
}, [
|
|
13826
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
13827
|
+
key: 0,
|
|
13828
|
+
align: __props.labelAlign,
|
|
13829
|
+
for: "ck-input"
|
|
13830
|
+
}, {
|
|
13831
|
+
default: withCtx(() => [
|
|
13832
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
13833
|
+
]),
|
|
13834
|
+
_: 1
|
|
13835
|
+
}, 8, ["align"])) : createCommentVNode("", true),
|
|
13836
|
+
withDirectives(createElementVNode("select", {
|
|
13837
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13838
|
+
class: normalizeClass(unref$1(computedClass)),
|
|
13839
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
13840
|
+
onChange: _cache[2] || (_cache[2] = ($event) => onChange($event))
|
|
13841
|
+
}, [
|
|
13842
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredOptions), (option) => {
|
|
13843
|
+
return openBlock(), createElementBlock("option", {
|
|
13844
|
+
value: getOptionKey(option),
|
|
13845
|
+
key: option
|
|
13846
|
+
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$4);
|
|
13847
|
+
}), 128))
|
|
13848
|
+
], 34), [
|
|
13849
|
+
[vModelSelect, unref$1(value)]
|
|
13850
|
+
])
|
|
13851
|
+
], 4);
|
|
13803
13852
|
};
|
|
13804
13853
|
}
|
|
13805
13854
|
});
|
|
13806
|
-
var
|
|
13807
|
-
var
|
|
13808
|
-
const
|
|
13809
|
-
const
|
|
13855
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-31af160a"]]);
|
|
13856
|
+
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13857
|
+
const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
|
|
13858
|
+
const _hoisted_1$3 = ["disabled"];
|
|
13859
|
+
const _hoisted_2$1 = { class: "ck-switch__slider-container" };
|
|
13860
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
13861
|
+
const _hoisted_4 = {
|
|
13810
13862
|
key: 0,
|
|
13811
|
-
class: "ck-
|
|
13812
|
-
};
|
|
13813
|
-
const _hoisted_3 = {
|
|
13814
|
-
key: 1,
|
|
13815
|
-
class: "ck-table__header--slot"
|
|
13863
|
+
class: "ck-switch__content"
|
|
13816
13864
|
};
|
|
13817
|
-
const _hoisted_4 = { class: "ck-table__table-container" };
|
|
13818
|
-
const _hoisted_5 = { key: 0 };
|
|
13819
|
-
const _hoisted_6 = { key: 1 };
|
|
13820
13865
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
13821
13866
|
props: {
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
13829
|
-
hideHeaderActions: { type: Boolean, default: false },
|
|
13830
|
-
showRefreshBtn: { type: Boolean, default: false },
|
|
13831
|
-
hideItemsPerPage: { type: Boolean, default: false },
|
|
13832
|
-
notFullWidth: { type: Boolean, default: false }
|
|
13867
|
+
modelValue: { type: [Boolean, Number], default: false },
|
|
13868
|
+
disabled: { type: Boolean, default: false },
|
|
13869
|
+
outlined: { type: Boolean, default: false },
|
|
13870
|
+
squared: { type: Boolean, default: false },
|
|
13871
|
+
size: { type: String, default: "m" },
|
|
13872
|
+
icon: { type: String, default: void 0 },
|
|
13873
|
+
iconPack: { type: String, default: void 0 }
|
|
13833
13874
|
},
|
|
13834
|
-
emits: ["
|
|
13875
|
+
emits: ["update:modelValue"],
|
|
13835
13876
|
setup(__props, { emit: emits }) {
|
|
13836
13877
|
const props = __props;
|
|
13837
|
-
const
|
|
13838
|
-
const IsPopupActive = ref({
|
|
13839
|
-
columnsManager: false
|
|
13840
|
-
});
|
|
13841
|
-
const columnsAreObj = computed$2(() => !qmObj2.isArray(props.columns));
|
|
13842
|
-
const columnsArray = computed$2(() => {
|
|
13843
|
-
if (!columnsAreObj.value)
|
|
13844
|
-
return props.columns;
|
|
13845
|
-
const arr = Object.values(props.columns);
|
|
13846
|
-
const keys = Object.keys(props.columns);
|
|
13847
|
-
arr.forEach((col, index) => {
|
|
13848
|
-
const key = keys[index];
|
|
13849
|
-
col.name = key;
|
|
13850
|
-
});
|
|
13851
|
-
return arr;
|
|
13852
|
-
});
|
|
13853
|
-
const filteredColumnsList = computed$2(() => {
|
|
13854
|
-
return columnsArray.value.filter(functions.isColumnDisplayed);
|
|
13855
|
-
});
|
|
13856
|
-
const searchLocal = computed$2({
|
|
13857
|
-
get() {
|
|
13858
|
-
return props.search;
|
|
13859
|
-
},
|
|
13860
|
-
set(val) {
|
|
13861
|
-
emits("update:search", val);
|
|
13862
|
-
}
|
|
13863
|
-
});
|
|
13864
|
-
const currentPageLocal = computed$2({
|
|
13878
|
+
const value = computed$2({
|
|
13865
13879
|
get() {
|
|
13866
|
-
return props.
|
|
13880
|
+
return props.modelValue;
|
|
13867
13881
|
},
|
|
13868
13882
|
set(val) {
|
|
13869
|
-
emits("update:
|
|
13883
|
+
emits("update:modelValue", val);
|
|
13870
13884
|
}
|
|
13871
13885
|
});
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
|
|
13875
|
-
|
|
13876
|
-
if (
|
|
13877
|
-
|
|
13878
|
-
|
|
13879
|
-
|
|
13886
|
+
const computedClass = computed$2(() => {
|
|
13887
|
+
const list = [];
|
|
13888
|
+
if (props.squared)
|
|
13889
|
+
list.push("is-squared");
|
|
13890
|
+
if (props.outlined)
|
|
13891
|
+
list.push("is-outlined");
|
|
13892
|
+
let size = "s";
|
|
13893
|
+
if (props.size === "m" || props.size === "l")
|
|
13894
|
+
size = props.size;
|
|
13895
|
+
list.push(`ck-switch--size-${size}`);
|
|
13896
|
+
return list;
|
|
13897
|
+
});
|
|
13898
|
+
const computedAttributes = computed$2(() => {
|
|
13899
|
+
return {
|
|
13900
|
+
"aria-disabled": props.disabled,
|
|
13901
|
+
tabindex: props.disabled ? void 0 : "0"
|
|
13902
|
+
};
|
|
13903
|
+
});
|
|
13904
|
+
const iconClass = computed$2(() => {
|
|
13905
|
+
const list = [];
|
|
13906
|
+
if (props.size && props.size !== "m") {
|
|
13907
|
+
list.push(`ck-switch__icon-size--${props.size}`);
|
|
13880
13908
|
}
|
|
13909
|
+
return list;
|
|
13910
|
+
});
|
|
13911
|
+
function onTrigger2() {
|
|
13912
|
+
value.value = !value.value;
|
|
13881
13913
|
}
|
|
13882
13914
|
return (_ctx, _cache) => {
|
|
13883
|
-
return openBlock(), createElementBlock(
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
])) : createCommentVNode("", true),
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
}, null, 8, ["col"]);
|
|
13922
|
-
}), 128))
|
|
13923
|
-
]),
|
|
13924
|
-
_: 1
|
|
13925
|
-
})
|
|
13926
|
-
])) : createCommentVNode("", true),
|
|
13927
|
-
createElementVNode("tbody", null, [
|
|
13928
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13929
|
-
]),
|
|
13930
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
13931
|
-
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
13932
|
-
])) : createCommentVNode("", true)
|
|
13933
|
-
], 2)
|
|
13934
|
-
]),
|
|
13935
|
-
createVNode(TablePagination, {
|
|
13936
|
-
class: "ck-table__pagination",
|
|
13937
|
-
currentPage: unref$1(currentPageLocal),
|
|
13938
|
-
"onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
|
|
13939
|
-
itemsPerPage: __props.itemsPerPage,
|
|
13940
|
-
listLength: __props.listLength,
|
|
13941
|
-
align: __props.paginationAlign,
|
|
13942
|
-
onRefreshList: _cache[5] || (_cache[5] = ($event) => refreshList(true))
|
|
13943
|
-
}, null, 8, ["currentPage", "itemsPerPage", "listLength", "align"])
|
|
13944
|
-
])
|
|
13945
|
-
], 64);
|
|
13915
|
+
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, unref$1(computedAttributes), {
|
|
13916
|
+
class: unref$1(computedClass),
|
|
13917
|
+
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
|
|
13918
|
+
}, ["prevent"]), ["space"])),
|
|
13919
|
+
onKeyup: [
|
|
13920
|
+
_cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["enter"])),
|
|
13921
|
+
_cache[4] || (_cache[4] = withKeys(($event) => onTrigger2(), ["space"]))
|
|
13922
|
+
]
|
|
13923
|
+
}), [
|
|
13924
|
+
withDirectives(createElementVNode("input", {
|
|
13925
|
+
class: "ck-switch__input",
|
|
13926
|
+
"aria-hidden": "true",
|
|
13927
|
+
type: "checkbox",
|
|
13928
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13929
|
+
disabled: __props.disabled,
|
|
13930
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onTrigger2())
|
|
13931
|
+
}, null, 8, _hoisted_1$3), [
|
|
13932
|
+
[vModelCheckbox, unref$1(value)]
|
|
13933
|
+
]),
|
|
13934
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
13935
|
+
_hoisted_3,
|
|
13936
|
+
__props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13937
|
+
key: 0,
|
|
13938
|
+
class: normalizeClass(["ck-switch__icon-left", unref$1(iconClass)]),
|
|
13939
|
+
icon: __props.icon,
|
|
13940
|
+
"icon-pack": __props.iconPack
|
|
13941
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true),
|
|
13942
|
+
__props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13943
|
+
key: 1,
|
|
13944
|
+
class: normalizeClass(["ck-switch__icon-right", unref$1(iconClass)]),
|
|
13945
|
+
icon: __props.icon,
|
|
13946
|
+
"icon-pack": __props.iconPack
|
|
13947
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
|
|
13948
|
+
]),
|
|
13949
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
13950
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13951
|
+
])) : createCommentVNode("", true)
|
|
13952
|
+
], 16);
|
|
13946
13953
|
};
|
|
13947
13954
|
}
|
|
13948
13955
|
});
|
|
13949
|
-
var
|
|
13950
|
-
var
|
|
13956
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b6a4dfaa"]]);
|
|
13957
|
+
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13958
|
+
const _hoisted_1$2 = { class: "ck-switch-options__container-exterior" };
|
|
13959
|
+
const _hoisted_2 = ["onClick"];
|
|
13951
13960
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
13952
13961
|
props: {
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13962
|
+
modelValue: { type: [Boolean, Number, Object], default: 0 },
|
|
13963
|
+
options: { type: Array, required: true },
|
|
13964
|
+
prop: { type: String, default: "name" },
|
|
13965
|
+
notReduce: { type: Boolean, default: false },
|
|
13966
|
+
reduceFunction: { type: Function, default: (Option) => Option.id },
|
|
13967
|
+
label: { type: String, default: "" },
|
|
13968
|
+
labelAlign: { type: String, default: "" },
|
|
13969
|
+
group: { type: String, default: "" },
|
|
13970
|
+
groupBreak: { type: String, default: "s" },
|
|
13971
|
+
groupVertical: { type: String, default: "" },
|
|
13972
|
+
sameWidthOptions: { type: Boolean, default: false }
|
|
13963
13973
|
},
|
|
13964
|
-
|
|
13974
|
+
emits: ["update:modelValue", "change"],
|
|
13975
|
+
setup(__props, { emit: emits }) {
|
|
13965
13976
|
const props = __props;
|
|
13966
|
-
const
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
const list = [];
|
|
13974
|
-
let align;
|
|
13975
|
-
if (props.col)
|
|
13976
|
-
align = props.col.align;
|
|
13977
|
-
if (props.align)
|
|
13978
|
-
align = props.align;
|
|
13979
|
-
if (align) {
|
|
13980
|
-
if (align === "center")
|
|
13981
|
-
list.push("align-center");
|
|
13982
|
-
if (align === "right")
|
|
13983
|
-
list.push("align-right");
|
|
13977
|
+
const selectedOption = computed$2({
|
|
13978
|
+
get() {
|
|
13979
|
+
return props.modelValue;
|
|
13980
|
+
},
|
|
13981
|
+
set(val) {
|
|
13982
|
+
emits("update:modelValue", val);
|
|
13983
|
+
emits("change", val);
|
|
13984
13984
|
}
|
|
13985
|
-
if (props.block)
|
|
13986
|
-
list.push("block");
|
|
13987
|
-
if (props.block)
|
|
13988
|
-
list.push("no-wrap-text");
|
|
13989
|
-
return list;
|
|
13990
13985
|
});
|
|
13991
|
-
const
|
|
13992
|
-
const
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
if (props.fixedWidth)
|
|
13996
|
-
list["min-width"] = props.fixedWidth;
|
|
13997
|
-
if (props.maxWidth)
|
|
13998
|
-
list["max-width"] = props.maxWidth;
|
|
13999
|
-
if (props.fixedWidth)
|
|
14000
|
-
list["max-width"] = props.fixedWidth;
|
|
14001
|
-
if (props.maxHeight)
|
|
14002
|
-
list["max-height"] = props.maxHeight;
|
|
14003
|
-
return list;
|
|
13986
|
+
const computedClass = computed$2(() => {
|
|
13987
|
+
const classList2 = [];
|
|
13988
|
+
classList2.push(functions.getGroupClass(props));
|
|
13989
|
+
return classList2;
|
|
14004
13990
|
});
|
|
14005
|
-
const
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
13991
|
+
const computedItemStyle = computed$2(() => {
|
|
13992
|
+
const list = [];
|
|
13993
|
+
if (props.sameWidthOptions)
|
|
13994
|
+
list.push({ width: `${100 / props.options.length}%` });
|
|
13995
|
+
return list;
|
|
14009
13996
|
});
|
|
13997
|
+
function getOptionValue(Option) {
|
|
13998
|
+
if (props.notReduce)
|
|
13999
|
+
return Option;
|
|
14000
|
+
return props.reduceFunction(Option);
|
|
14001
|
+
}
|
|
14010
14002
|
return (_ctx, _cache) => {
|
|
14011
|
-
return
|
|
14012
|
-
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
14004
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
14005
|
+
key: 0,
|
|
14006
|
+
align: __props.labelAlign
|
|
14007
|
+
}, {
|
|
14008
|
+
default: withCtx(() => [
|
|
14009
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
14010
|
+
]),
|
|
14011
|
+
_: 1
|
|
14012
|
+
}, 8, ["align"])) : createCommentVNode("", true),
|
|
14013
|
+
createElementVNode("div", {
|
|
14014
|
+
class: normalizeClass(["ck-switch-options__container", unref$1(computedClass)])
|
|
14018
14015
|
}, [
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14016
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (Option, index) => {
|
|
14017
|
+
return openBlock(), createElementBlock("div", {
|
|
14018
|
+
class: normalizeClass(["ck-switch-options__option", { selected: unref$1(selectedOption) == getOptionValue(Option) }]),
|
|
14019
|
+
key: `ck-switch-options${index}`,
|
|
14020
|
+
style: normalizeStyle(unref$1(computedItemStyle)),
|
|
14021
|
+
onClick: ($event) => selectedOption.value = getOptionValue(Option)
|
|
14022
|
+
}, toDisplayString(Option[__props.prop]), 15, _hoisted_2);
|
|
14023
|
+
}), 128))
|
|
14024
|
+
], 2)
|
|
14025
|
+
]);
|
|
14022
14026
|
};
|
|
14023
14027
|
}
|
|
14024
14028
|
});
|
|
14025
|
-
var
|
|
14029
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2c3e07c8"]]);
|
|
14026
14030
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14027
14031
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
14028
14032
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -16666,6 +16670,10 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
16666
16670
|
ckDropdown,
|
|
16667
16671
|
ckNavbar,
|
|
16668
16672
|
ckNotify,
|
|
16673
|
+
ckTable,
|
|
16674
|
+
ckTd,
|
|
16675
|
+
ckTh,
|
|
16676
|
+
ckTr,
|
|
16669
16677
|
ckButton,
|
|
16670
16678
|
ckCheckbox,
|
|
16671
16679
|
ckChip,
|
|
@@ -16673,17 +16681,13 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
16673
16681
|
ckImg,
|
|
16674
16682
|
ckInput,
|
|
16675
16683
|
ckLabel,
|
|
16676
|
-
ckPopup: _sfc_main$
|
|
16684
|
+
ckPopup: _sfc_main$b,
|
|
16677
16685
|
ckRadio,
|
|
16678
16686
|
ckSelect,
|
|
16679
16687
|
ckSwitch,
|
|
16680
16688
|
ckSwitchOptions,
|
|
16681
|
-
ckTable,
|
|
16682
|
-
ckTd,
|
|
16683
16689
|
ckTextarea,
|
|
16684
|
-
ckTh,
|
|
16685
16690
|
ckTooltip,
|
|
16686
|
-
ckTr,
|
|
16687
16691
|
EVENTS: events,
|
|
16688
16692
|
EventBus: mitt,
|
|
16689
16693
|
lockScroll,
|
|
@@ -16720,4 +16724,4 @@ const install = function installCleek(app, options) {
|
|
|
16720
16724
|
app.component(componentName, component);
|
|
16721
16725
|
});
|
|
16722
16726
|
};
|
|
16723
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$
|
|
16727
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$b as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|