cleek 2.3.37 → 2.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cleek.es.js +150 -128
- package/dist/cleek.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -39,7 +39,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
39
39
|
return target;
|
|
40
40
|
};
|
|
41
41
|
const _hoisted_1$k = { class: "ck-dropdown__popper-container" };
|
|
42
|
-
const _sfc_main$
|
|
42
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
43
43
|
props: {
|
|
44
44
|
triggerType: { type: String, default: "click" },
|
|
45
45
|
dark: { type: Boolean, default: false },
|
|
@@ -95,9 +95,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
98
|
+
var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2120e680"]]);
|
|
99
99
|
var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
100
|
-
const _sfc_main$
|
|
100
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
101
101
|
props: {
|
|
102
102
|
padding: { type: String, default: 0 },
|
|
103
103
|
position: { type: String, default: "fixed" }
|
|
@@ -132,7 +132,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
135
|
+
var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-5024db6a"]]);
|
|
136
136
|
/*!
|
|
137
137
|
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
138
138
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -16336,42 +16336,32 @@ defineComponent({
|
|
|
16336
16336
|
}
|
|
16337
16337
|
});
|
|
16338
16338
|
var functions = {
|
|
16339
|
-
|
|
16339
|
+
getCleekOptions(getCurrentInstance2) {
|
|
16340
|
+
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16341
|
+
},
|
|
16342
|
+
getGroupClass({ group = "", groupVertical = "", widthBreaks = [] } = {}, windowWidth) {
|
|
16343
|
+
const componentWidth = this.getWidthByWidthBreaks(widthBreaks, windowWidth);
|
|
16340
16344
|
const classList2 = [];
|
|
16341
|
-
if (group)
|
|
16345
|
+
if (group && componentWidth !== "100%")
|
|
16342
16346
|
classList2.push(`ck-component__group--${group}`);
|
|
16343
16347
|
if (groupVertical)
|
|
16344
16348
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16345
|
-
if (lineBreak) {
|
|
16346
|
-
if (lineBreak === "s") {
|
|
16347
|
-
classList2.push(`ck-component__line-break--${lineBreak}`);
|
|
16348
|
-
}
|
|
16349
|
-
}
|
|
16350
16349
|
return classList2;
|
|
16351
16350
|
},
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
if (
|
|
16356
|
-
|
|
16351
|
+
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
16352
|
+
if (widthBreaks) {
|
|
16353
|
+
let realWidthBreaks = [...widthBreaks];
|
|
16354
|
+
if (realWidthBreaks.length === 2 && typeof realWidthBreaks[0] === "number" && typeof realWidthBreaks[1] === "string") {
|
|
16355
|
+
realWidthBreaks = [realWidthBreaks];
|
|
16357
16356
|
}
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
}
|
|
16367
|
-
},
|
|
16368
|
-
getlineBreakStyle({ lineBreak } = {}, windowWidth) {
|
|
16369
|
-
if (windowWidth <= lineBreak) {
|
|
16370
|
-
return [
|
|
16371
|
-
{ width: "100%" },
|
|
16372
|
-
{ borderRadius: "4px !important" },
|
|
16373
|
-
{ border: "1px solid #DAE1E7 !important" }
|
|
16374
|
-
];
|
|
16357
|
+
let finalWidth = 0;
|
|
16358
|
+
realWidthBreaks.forEach((widthBreak) => {
|
|
16359
|
+
const [windowBreak, width] = widthBreak;
|
|
16360
|
+
if (windowWidth >= windowBreak) {
|
|
16361
|
+
finalWidth = width;
|
|
16362
|
+
}
|
|
16363
|
+
});
|
|
16364
|
+
return finalWidth;
|
|
16375
16365
|
}
|
|
16376
16366
|
},
|
|
16377
16367
|
isColorTemplateVariable(color) {
|
|
@@ -16400,13 +16390,10 @@ var functions = {
|
|
|
16400
16390
|
return false;
|
|
16401
16391
|
}
|
|
16402
16392
|
return true;
|
|
16403
|
-
},
|
|
16404
|
-
getCleekOptions(getCurrentInstance2) {
|
|
16405
|
-
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16406
16393
|
}
|
|
16407
16394
|
};
|
|
16408
16395
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16409
|
-
const _sfc_main$
|
|
16396
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
16410
16397
|
props: {
|
|
16411
16398
|
icon: { type: [String, Array], default: "" },
|
|
16412
16399
|
color: { type: String, default: "" },
|
|
@@ -16475,13 +16462,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16475
16462
|
};
|
|
16476
16463
|
}
|
|
16477
16464
|
});
|
|
16478
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16465
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ddf67f32"]]);
|
|
16479
16466
|
var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16480
16467
|
const _hoisted_1$j = { class: "ck-notify__container" };
|
|
16481
16468
|
const _hoisted_2$8 = { class: "ck-notify__title" };
|
|
16482
16469
|
const _hoisted_3$6 = { class: "close-btn" };
|
|
16483
16470
|
const _hoisted_4$4 = { class: "ck-notify__text" };
|
|
16484
|
-
const _sfc_main$
|
|
16471
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16485
16472
|
setup(__props, { expose }) {
|
|
16486
16473
|
expose({
|
|
16487
16474
|
ckNotify: ckNotify2,
|
|
@@ -16543,7 +16530,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
16543
16530
|
};
|
|
16544
16531
|
}
|
|
16545
16532
|
});
|
|
16546
|
-
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16533
|
+
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5ca55d25"]]);
|
|
16547
16534
|
const _hoisted_1$i = { class: "ck-tr" };
|
|
16548
16535
|
function render$1(_ctx, _cache) {
|
|
16549
16536
|
return openBlock(), createElementBlock("tr", _hoisted_1$i, [
|
|
@@ -16551,8 +16538,8 @@ function render$1(_ctx, _cache) {
|
|
|
16551
16538
|
]);
|
|
16552
16539
|
}
|
|
16553
16540
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16554
|
-
const _sfc_main$
|
|
16555
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16541
|
+
const _sfc_main$l = {};
|
|
16542
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
|
|
16556
16543
|
var validators = {
|
|
16557
16544
|
size: (type) => {
|
|
16558
16545
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -16584,7 +16571,7 @@ var validators = {
|
|
|
16584
16571
|
}
|
|
16585
16572
|
};
|
|
16586
16573
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16587
|
-
const _sfc_main$
|
|
16574
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
16588
16575
|
props: {
|
|
16589
16576
|
col: { type: Object, default: void 0 },
|
|
16590
16577
|
nowrap: { type: Boolean, default: false },
|
|
@@ -16663,10 +16650,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
16663
16650
|
};
|
|
16664
16651
|
}
|
|
16665
16652
|
});
|
|
16666
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16653
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4077488a"]]);
|
|
16667
16654
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16668
16655
|
const _hoisted_1$h = { class: "ck-th" };
|
|
16669
|
-
const _sfc_main$
|
|
16656
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
16670
16657
|
props: {
|
|
16671
16658
|
align: { type: String, default: "left", validator: validators.align },
|
|
16672
16659
|
minWidth: { type: String, default: void 0 }
|
|
@@ -16698,8 +16685,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16698
16685
|
};
|
|
16699
16686
|
}
|
|
16700
16687
|
});
|
|
16701
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16702
|
-
const _sfc_main$
|
|
16688
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4b7ed390"]]);
|
|
16689
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
16703
16690
|
props: {
|
|
16704
16691
|
col: { type: Object, required: true }
|
|
16705
16692
|
},
|
|
@@ -16737,7 +16724,7 @@ function useWindowWidth() {
|
|
|
16737
16724
|
}
|
|
16738
16725
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16739
16726
|
const _hoisted_1$g = ["title", "aria-label", "disabled"];
|
|
16740
|
-
const _sfc_main$
|
|
16727
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
16741
16728
|
props: {
|
|
16742
16729
|
title: { type: String, default: void 0 },
|
|
16743
16730
|
disabled: { type: Boolean, default: false },
|
|
@@ -16753,7 +16740,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16753
16740
|
label: { type: String, default: void 0 },
|
|
16754
16741
|
labelAlign: { type: String, default: void 0 },
|
|
16755
16742
|
group: { type: String, default: void 0, validator: validators.group },
|
|
16756
|
-
|
|
16743
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
16757
16744
|
groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
|
|
16758
16745
|
},
|
|
16759
16746
|
emits: ["click"],
|
|
@@ -16773,32 +16760,39 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16773
16760
|
return defaultButtonType;
|
|
16774
16761
|
});
|
|
16775
16762
|
const computedClass = computed$2(() => {
|
|
16776
|
-
const
|
|
16777
|
-
|
|
16763
|
+
const list = [];
|
|
16764
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
16778
16765
|
if (props.color !== "primary") {
|
|
16779
16766
|
if (realButtonType.value === "filled") {
|
|
16780
|
-
|
|
16767
|
+
list.push(`ck-component__bg-color--${props.color}`);
|
|
16781
16768
|
} else {
|
|
16782
|
-
|
|
16769
|
+
list.push(`ck-component__border-color--${props.color}`);
|
|
16783
16770
|
}
|
|
16784
16771
|
}
|
|
16785
16772
|
if (props.align === "center" || props.align === "right") {
|
|
16786
|
-
|
|
16773
|
+
list.push(`ck-button__align--${props.align}`);
|
|
16787
16774
|
}
|
|
16788
16775
|
if (props.rounded)
|
|
16789
16776
|
console.log("rounded");
|
|
16790
16777
|
if (props.rounded)
|
|
16791
|
-
|
|
16792
|
-
|
|
16778
|
+
list.push("rounded");
|
|
16779
|
+
list.push(`type-${realButtonType.value}`);
|
|
16793
16780
|
if (props.size)
|
|
16794
|
-
|
|
16795
|
-
return
|
|
16781
|
+
list.push(`ck-button-size__${props.size}`);
|
|
16782
|
+
return list;
|
|
16796
16783
|
});
|
|
16797
16784
|
const computedStyle = computed$2(() => {
|
|
16798
16785
|
const list = [];
|
|
16799
|
-
|
|
16786
|
+
let isWidthDefined = false;
|
|
16787
|
+
if (props.widthBreaks) {
|
|
16788
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
16789
|
+
if (width) {
|
|
16790
|
+
isWidthDefined = true;
|
|
16791
|
+
list.push({ width });
|
|
16792
|
+
}
|
|
16793
|
+
}
|
|
16794
|
+
if (props.width && !isWidthDefined)
|
|
16800
16795
|
list.push({ width: props.width });
|
|
16801
|
-
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
16802
16796
|
return list;
|
|
16803
16797
|
});
|
|
16804
16798
|
function onClick(event) {
|
|
@@ -16835,10 +16829,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16835
16829
|
};
|
|
16836
16830
|
}
|
|
16837
16831
|
});
|
|
16838
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16832
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6555a0e0"]]);
|
|
16839
16833
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16840
16834
|
const _hoisted_1$f = ["for"];
|
|
16841
|
-
const _sfc_main$
|
|
16835
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
16842
16836
|
props: {
|
|
16843
16837
|
for: { type: String, default: "" },
|
|
16844
16838
|
align: { type: String, default: "" },
|
|
@@ -16865,10 +16859,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16865
16859
|
};
|
|
16866
16860
|
}
|
|
16867
16861
|
});
|
|
16868
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16862
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-400ea765"]]);
|
|
16869
16863
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16870
16864
|
const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
|
|
16871
|
-
const _sfc_main$
|
|
16865
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
16872
16866
|
props: {
|
|
16873
16867
|
modelValue: {},
|
|
16874
16868
|
type: { type: String, validator: validators.inputType, default: "text" },
|
|
@@ -16881,8 +16875,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16881
16875
|
iconPack: { type: String, default: void 0 },
|
|
16882
16876
|
iconRight: { type: String, default: void 0 },
|
|
16883
16877
|
group: { type: String, default: void 0 },
|
|
16884
|
-
lineBreak: { type: [String, Number], default: "" },
|
|
16885
16878
|
groupVertical: { type: String, default: void 0 },
|
|
16879
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
16886
16880
|
size: { type: String, default: "m", validator: validators.size },
|
|
16887
16881
|
hideBorder: { type: Boolean, default: false },
|
|
16888
16882
|
width: { type: String, default: void 0 },
|
|
@@ -16922,14 +16916,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16922
16916
|
const onChange2 = (event) => {
|
|
16923
16917
|
emits("change", event);
|
|
16924
16918
|
};
|
|
16925
|
-
const computedClass = computed$2(() => {
|
|
16926
|
-
const list = [];
|
|
16927
|
-
list.push(functions.getGroupClassContainer(props));
|
|
16928
|
-
return list;
|
|
16929
|
-
});
|
|
16930
16919
|
const computedClassInput = computed$2(() => {
|
|
16931
16920
|
const list = [];
|
|
16932
|
-
list.push(functions.getGroupClass(props));
|
|
16921
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
16933
16922
|
if (props.icon)
|
|
16934
16923
|
list.push("has-icon-left");
|
|
16935
16924
|
if (props.iconRight)
|
|
@@ -16946,14 +16935,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16946
16935
|
});
|
|
16947
16936
|
const computedStyle = computed$2(() => {
|
|
16948
16937
|
const list = [];
|
|
16949
|
-
list.push(
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
|
|
16954
|
-
|
|
16955
|
-
list.push({ width: props.width });
|
|
16956
|
-
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
16938
|
+
list.push({ width: props.width });
|
|
16939
|
+
if (props.widthBreaks) {
|
|
16940
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
16941
|
+
if (width)
|
|
16942
|
+
list.push({ width });
|
|
16943
|
+
}
|
|
16957
16944
|
return list;
|
|
16958
16945
|
});
|
|
16959
16946
|
function setFocus() {
|
|
@@ -16964,7 +16951,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16964
16951
|
}
|
|
16965
16952
|
return (_ctx, _cache) => {
|
|
16966
16953
|
return openBlock(), createElementBlock("div", {
|
|
16967
|
-
class:
|
|
16954
|
+
class: "ck-input",
|
|
16968
16955
|
style: normalizeStyle(unref$1(computedStyle))
|
|
16969
16956
|
}, [
|
|
16970
16957
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
@@ -16993,12 +16980,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16993
16980
|
type: __props.type,
|
|
16994
16981
|
placeholder: __props.placeholder,
|
|
16995
16982
|
class: normalizeClass(unref$1(computedClassInput)),
|
|
16996
|
-
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
16997
16983
|
disabled: __props.disabled,
|
|
16998
16984
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
|
|
16999
16985
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
17000
16986
|
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
17001
|
-
}, null,
|
|
16987
|
+
}, null, 42, _hoisted_1$e), [
|
|
17002
16988
|
[vModelDynamic, unref$1(value)]
|
|
17003
16989
|
]),
|
|
17004
16990
|
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -17008,14 +16994,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17008
16994
|
icon: __props.iconRight,
|
|
17009
16995
|
"icon-pack": __props.iconPack
|
|
17010
16996
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
17011
|
-
],
|
|
16997
|
+
], 4);
|
|
17012
16998
|
};
|
|
17013
16999
|
}
|
|
17014
17000
|
});
|
|
17015
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17001
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-35324670"]]);
|
|
17016
17002
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17017
17003
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
17018
|
-
const _sfc_main$
|
|
17004
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
17019
17005
|
props: {
|
|
17020
17006
|
search: { type: String, default: void 0 },
|
|
17021
17007
|
hasColumnsManager: { type: Boolean, default: false },
|
|
@@ -17109,7 +17095,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
17109
17095
|
};
|
|
17110
17096
|
}
|
|
17111
17097
|
});
|
|
17112
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17098
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ad4db5f6"]]);
|
|
17113
17099
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17114
17100
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
17115
17101
|
const _hoisted_2$7 = ["onClick"];
|
|
@@ -17188,7 +17174,7 @@ const __default__ = {
|
|
|
17188
17174
|
}
|
|
17189
17175
|
}
|
|
17190
17176
|
};
|
|
17191
|
-
const _sfc_main$
|
|
17177
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
17192
17178
|
setup(__props) {
|
|
17193
17179
|
return (_ctx, _cache) => {
|
|
17194
17180
|
return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
|
|
@@ -17237,7 +17223,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
17237
17223
|
};
|
|
17238
17224
|
}
|
|
17239
17225
|
}));
|
|
17240
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17226
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dec8fb20"]]);
|
|
17241
17227
|
const NOOP$1 = () => {
|
|
17242
17228
|
};
|
|
17243
17229
|
const isArray$1 = Array.isArray;
|
|
@@ -18020,7 +18006,7 @@ const _hoisted_3$4 = {
|
|
|
18020
18006
|
key: 0,
|
|
18021
18007
|
class: "c-Checkbox__label"
|
|
18022
18008
|
};
|
|
18023
|
-
const _sfc_main$
|
|
18009
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
18024
18010
|
props: {
|
|
18025
18011
|
modelValue: { type: Boolean, default: false },
|
|
18026
18012
|
label: { type: String, default: void 0 },
|
|
@@ -18077,7 +18063,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18077
18063
|
};
|
|
18078
18064
|
}
|
|
18079
18065
|
});
|
|
18080
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18066
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-132565da"]]);
|
|
18081
18067
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
18082
18068
|
const _hoisted_1$a = {
|
|
18083
18069
|
key: 0,
|
|
@@ -18100,7 +18086,7 @@ const _hoisted_7 = {
|
|
|
18100
18086
|
};
|
|
18101
18087
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
18102
18088
|
const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
18103
|
-
const _sfc_main$
|
|
18089
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
18104
18090
|
props: {
|
|
18105
18091
|
modelValue: { type: Boolean },
|
|
18106
18092
|
title: { type: String, default: void 0 },
|
|
@@ -18108,7 +18094,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18108
18094
|
notClose: { type: Boolean, default: false },
|
|
18109
18095
|
notCloseBtn: { type: Boolean, default: false },
|
|
18110
18096
|
notCloseByBg: { type: Boolean, default: false },
|
|
18111
|
-
preventCloseOnCancel: { type: Boolean, default: false }
|
|
18097
|
+
preventCloseOnCancel: { type: Boolean, default: false },
|
|
18098
|
+
maxWidth: { type: String, default: void 0 }
|
|
18112
18099
|
},
|
|
18113
18100
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
18114
18101
|
setup(__props, { emit: emits }) {
|
|
@@ -18121,6 +18108,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18121
18108
|
emits("update:modelValue", val);
|
|
18122
18109
|
}
|
|
18123
18110
|
});
|
|
18111
|
+
const computedStyleContent = computed$2(() => {
|
|
18112
|
+
const list = [];
|
|
18113
|
+
if (props.maxWidth)
|
|
18114
|
+
list.push({ maxWidth: props.maxWidth });
|
|
18115
|
+
return list;
|
|
18116
|
+
});
|
|
18124
18117
|
function onCancel() {
|
|
18125
18118
|
emits("cancel");
|
|
18126
18119
|
if (!props.preventCloseOnCancel)
|
|
@@ -18144,7 +18137,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18144
18137
|
createElementVNode("div", {
|
|
18145
18138
|
class: "ck-popup__content",
|
|
18146
18139
|
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
18147
|
-
}, ["stop"]))
|
|
18140
|
+
}, ["stop"])),
|
|
18141
|
+
style: normalizeStyle(unref$1(computedStyleContent))
|
|
18148
18142
|
}, [
|
|
18149
18143
|
createElementVNode("div", _hoisted_3$3, [
|
|
18150
18144
|
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
@@ -18183,7 +18177,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18183
18177
|
})
|
|
18184
18178
|
])) : createCommentVNode("", true)
|
|
18185
18179
|
])) : createCommentVNode("", true)
|
|
18186
|
-
])
|
|
18180
|
+
], 4)
|
|
18187
18181
|
])
|
|
18188
18182
|
])) : createCommentVNode("", true);
|
|
18189
18183
|
};
|
|
@@ -18192,7 +18186,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18192
18186
|
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18193
18187
|
const _hoisted_1$9 = { class: "columns-manger-container" };
|
|
18194
18188
|
const _hoisted_2$4 = { class: "columns-manger__item" };
|
|
18195
|
-
const _sfc_main$
|
|
18189
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18196
18190
|
props: {
|
|
18197
18191
|
modelValue: { type: Boolean, required: true },
|
|
18198
18192
|
columns: { type: Object, required: true },
|
|
@@ -18232,7 +18226,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18232
18226
|
props.columns[colName].isDisplayed = value;
|
|
18233
18227
|
}
|
|
18234
18228
|
return (_ctx, _cache) => {
|
|
18235
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18229
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
18236
18230
|
modelValue: unref$1(isActive),
|
|
18237
18231
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
|
|
18238
18232
|
title: "Administrador de columnas"
|
|
@@ -18260,7 +18254,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18260
18254
|
};
|
|
18261
18255
|
}
|
|
18262
18256
|
});
|
|
18263
|
-
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18257
|
+
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-36d907dc"]]);
|
|
18264
18258
|
var qmApi = {};
|
|
18265
18259
|
var qmArray = {
|
|
18266
18260
|
arrayToText(arr, key = null) {
|
|
@@ -18550,7 +18544,7 @@ const _hoisted_3$2 = {
|
|
|
18550
18544
|
const _hoisted_4$2 = { class: "ck-table__table-container" };
|
|
18551
18545
|
const _hoisted_5 = { key: 0 };
|
|
18552
18546
|
const _hoisted_6 = { key: 1 };
|
|
18553
|
-
const _sfc_main$
|
|
18547
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
18554
18548
|
props: {
|
|
18555
18549
|
columns: { type: [Array, Object], required: true, default: () => [] },
|
|
18556
18550
|
hasColumnsManager: { type: Boolean, default: false },
|
|
@@ -18675,7 +18669,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18675
18669
|
createVNode(ckTr, null, {
|
|
18676
18670
|
default: withCtx(() => [
|
|
18677
18671
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
18678
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18672
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
18679
18673
|
key: col.title,
|
|
18680
18674
|
col
|
|
18681
18675
|
}, null, 8, ["col"]);
|
|
@@ -18723,10 +18717,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18723
18717
|
};
|
|
18724
18718
|
}
|
|
18725
18719
|
});
|
|
18726
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18720
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6545e800"]]);
|
|
18727
18721
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18728
18722
|
const _hoisted_1$7 = ["color"];
|
|
18729
|
-
const _sfc_main$
|
|
18723
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
18730
18724
|
props: {
|
|
18731
18725
|
size: { type: String, default: "s" },
|
|
18732
18726
|
color: { type: String, default: "primary" },
|
|
@@ -18766,7 +18760,36 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18766
18760
|
};
|
|
18767
18761
|
}
|
|
18768
18762
|
});
|
|
18769
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18763
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1e92de86"]]);
|
|
18764
|
+
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
18765
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
18766
|
+
props: {
|
|
18767
|
+
widthBreaks: { type: Array, default: void 0 }
|
|
18768
|
+
},
|
|
18769
|
+
emits: ["click"],
|
|
18770
|
+
setup(__props, { emit: emits }) {
|
|
18771
|
+
const props = __props;
|
|
18772
|
+
const { windowWidth } = useWindowWidth();
|
|
18773
|
+
const computedStyle = computed$2(() => {
|
|
18774
|
+
const list = [];
|
|
18775
|
+
if (props.widthBreaks) {
|
|
18776
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
18777
|
+
if (width)
|
|
18778
|
+
list.push({ width });
|
|
18779
|
+
}
|
|
18780
|
+
return list;
|
|
18781
|
+
});
|
|
18782
|
+
return (_ctx, _cache) => {
|
|
18783
|
+
return openBlock(), createElementBlock("div", {
|
|
18784
|
+
class: "ck-div",
|
|
18785
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
18786
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
18787
|
+
}, [
|
|
18788
|
+
renderSlot(_ctx.$slots, "default")
|
|
18789
|
+
], 4);
|
|
18790
|
+
};
|
|
18791
|
+
}
|
|
18792
|
+
});
|
|
18770
18793
|
var globalVariables = {
|
|
18771
18794
|
defaultFailImg: "df",
|
|
18772
18795
|
imagesFolderPath: "",
|
|
@@ -18972,7 +18995,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
18972
18995
|
bgTransparent: { type: Boolean, default: false },
|
|
18973
18996
|
disabled: { type: [Boolean, Number], default: false },
|
|
18974
18997
|
group: { type: String, default: "" },
|
|
18975
|
-
|
|
18998
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
18976
18999
|
groupVertical: { type: String, default: "" },
|
|
18977
19000
|
label: { type: String, default: "" },
|
|
18978
19001
|
labelAlign: { type: String, default: "" }
|
|
@@ -19005,25 +19028,23 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19005
19028
|
return list;
|
|
19006
19029
|
});
|
|
19007
19030
|
const computedClassSelect = computed$2(() => {
|
|
19008
|
-
const classList2 = [];
|
|
19009
|
-
classList2.push(functions.getGroupClass(props));
|
|
19010
|
-
return classList2;
|
|
19011
|
-
});
|
|
19012
|
-
const computedStyleSelect = computed$2(() => {
|
|
19013
19031
|
const list = [];
|
|
19014
|
-
list.push(functions.
|
|
19032
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
19015
19033
|
return list;
|
|
19016
19034
|
});
|
|
19017
|
-
const computedClass = computed$2(() => {
|
|
19018
|
-
const classList2 = [];
|
|
19019
|
-
classList2.push(functions.getGroupClassContainer(props));
|
|
19020
|
-
return classList2;
|
|
19021
|
-
});
|
|
19022
19035
|
const computedStyle = computed$2(() => {
|
|
19023
19036
|
const list = [];
|
|
19024
|
-
|
|
19037
|
+
let isWidthDefined = false;
|
|
19038
|
+
if (props.widthBreaks) {
|
|
19039
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
19040
|
+
if (width) {
|
|
19041
|
+
list.push({ width });
|
|
19042
|
+
isWidthDefined = true;
|
|
19043
|
+
}
|
|
19044
|
+
}
|
|
19045
|
+
if (!isWidthDefined && props.minWidth) {
|
|
19025
19046
|
list.push({ "min-width": props.minWidth });
|
|
19026
|
-
|
|
19047
|
+
}
|
|
19027
19048
|
return list;
|
|
19028
19049
|
});
|
|
19029
19050
|
computed$2(() => {
|
|
@@ -19088,7 +19109,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19088
19109
|
}
|
|
19089
19110
|
return (_ctx, _cache) => {
|
|
19090
19111
|
return openBlock(), createElementBlock("div", {
|
|
19091
|
-
class:
|
|
19112
|
+
class: "ck-select",
|
|
19092
19113
|
style: normalizeStyle(unref$1(computedStyle))
|
|
19093
19114
|
}, [
|
|
19094
19115
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
@@ -19104,7 +19125,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19104
19125
|
withDirectives(createElementVNode("select", {
|
|
19105
19126
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
19106
19127
|
class: normalizeClass(unref$1(computedClassSelect)),
|
|
19107
|
-
style: normalizeStyle(unref$1(computedStyleSelect)),
|
|
19108
19128
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
19109
19129
|
onChange: _cache[2] || (_cache[2] = ($event) => onChange2($event))
|
|
19110
19130
|
}, [
|
|
@@ -19114,14 +19134,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19114
19134
|
key: option
|
|
19115
19135
|
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$4);
|
|
19116
19136
|
}), 128))
|
|
19117
|
-
],
|
|
19137
|
+
], 34), [
|
|
19118
19138
|
[vModelSelect, unref$1(value)]
|
|
19119
19139
|
])
|
|
19120
|
-
],
|
|
19140
|
+
], 4);
|
|
19121
19141
|
};
|
|
19122
19142
|
}
|
|
19123
19143
|
});
|
|
19124
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
19144
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-93db8c36"]]);
|
|
19125
19145
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
19126
19146
|
const _withScopeId = (n) => (pushScopeId("data-v-7e2f20c4"), n = n(), popScopeId(), n);
|
|
19127
19147
|
const _hoisted_1$3 = ["disabled"];
|
|
@@ -19236,13 +19256,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19236
19256
|
label: { type: String, default: "" },
|
|
19237
19257
|
labelAlign: { type: String, default: "" },
|
|
19238
19258
|
group: { type: String, default: "" },
|
|
19239
|
-
|
|
19259
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
19240
19260
|
groupVertical: { type: String, default: "" },
|
|
19241
19261
|
sameWidthOptions: { type: Boolean, default: false }
|
|
19242
19262
|
},
|
|
19243
19263
|
emits: ["update:modelValue", "change"],
|
|
19244
19264
|
setup(__props, { emit: emits }) {
|
|
19245
19265
|
const props = __props;
|
|
19266
|
+
const { windowWidth } = useWindowWidth();
|
|
19246
19267
|
const selectedOption = computed$2({
|
|
19247
19268
|
get() {
|
|
19248
19269
|
return props.modelValue;
|
|
@@ -19253,9 +19274,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19253
19274
|
}
|
|
19254
19275
|
});
|
|
19255
19276
|
const computedClass = computed$2(() => {
|
|
19256
|
-
const
|
|
19257
|
-
|
|
19258
|
-
return
|
|
19277
|
+
const list = [];
|
|
19278
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
19279
|
+
return list;
|
|
19259
19280
|
});
|
|
19260
19281
|
const computedItemStyle = computed$2(() => {
|
|
19261
19282
|
const list = [];
|
|
@@ -19295,7 +19316,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19295
19316
|
};
|
|
19296
19317
|
}
|
|
19297
19318
|
});
|
|
19298
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
19319
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f200edc8"]]);
|
|
19299
19320
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
19300
19321
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
19301
19322
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -21956,11 +21977,12 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
21956
21977
|
ckButton,
|
|
21957
21978
|
ckCheckbox,
|
|
21958
21979
|
ckChip,
|
|
21980
|
+
ckDiv: _sfc_main$7,
|
|
21959
21981
|
ckIcon,
|
|
21960
21982
|
ckImg,
|
|
21961
21983
|
ckInput,
|
|
21962
21984
|
ckLabel,
|
|
21963
|
-
ckPopup: _sfc_main$
|
|
21985
|
+
ckPopup: _sfc_main$b,
|
|
21964
21986
|
ckRadio,
|
|
21965
21987
|
ckSelect,
|
|
21966
21988
|
ckSwitch,
|
|
@@ -22000,4 +22022,4 @@ const install = function installCleek(app, options) {
|
|
|
22000
22022
|
app.component(componentName, component);
|
|
22001
22023
|
});
|
|
22002
22024
|
};
|
|
22003
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$
|
|
22025
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, _sfc_main$7 as ckDiv, 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 };
|