cleek 2.3.37 → 2.3.38
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 +100 -41
- 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)
|
|
@@ -16349,6 +16349,15 @@ var functions = {
|
|
|
16349
16349
|
}
|
|
16350
16350
|
return classList2;
|
|
16351
16351
|
},
|
|
16352
|
+
getGroupClass2({ group = "", groupVertical = "", widthBreaks = [] } = {}, windowWidth) {
|
|
16353
|
+
const componentWidth = this.getWidthByWidthBreaks(widthBreaks, windowWidth);
|
|
16354
|
+
const classList2 = [];
|
|
16355
|
+
if (group && componentWidth !== "100%")
|
|
16356
|
+
classList2.push(`ck-component__group--${group}`);
|
|
16357
|
+
if (groupVertical)
|
|
16358
|
+
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16359
|
+
return classList2;
|
|
16360
|
+
},
|
|
16352
16361
|
getGroupClassContainer({ lineBreak = "" } = "") {
|
|
16353
16362
|
const classList2 = [];
|
|
16354
16363
|
if (lineBreak) {
|
|
@@ -16374,6 +16383,22 @@ var functions = {
|
|
|
16374
16383
|
];
|
|
16375
16384
|
}
|
|
16376
16385
|
},
|
|
16386
|
+
getWidthByWidthBreaks(widthBreaks, windowWidth) {
|
|
16387
|
+
if (widthBreaks) {
|
|
16388
|
+
let realWidthBreaks = [...widthBreaks];
|
|
16389
|
+
if (realWidthBreaks.length === 2 && typeof realWidthBreaks[0] === "number" && typeof realWidthBreaks[1] === "string") {
|
|
16390
|
+
realWidthBreaks = [realWidthBreaks];
|
|
16391
|
+
}
|
|
16392
|
+
let finalWidth = 0;
|
|
16393
|
+
realWidthBreaks.forEach((widthBreak) => {
|
|
16394
|
+
const [windowBreak, width] = widthBreak;
|
|
16395
|
+
if (windowWidth >= windowBreak) {
|
|
16396
|
+
finalWidth = width;
|
|
16397
|
+
}
|
|
16398
|
+
});
|
|
16399
|
+
return finalWidth;
|
|
16400
|
+
}
|
|
16401
|
+
},
|
|
16377
16402
|
isColorTemplateVariable(color) {
|
|
16378
16403
|
if (color === "primary")
|
|
16379
16404
|
return true;
|
|
@@ -16406,7 +16431,7 @@ var functions = {
|
|
|
16406
16431
|
}
|
|
16407
16432
|
};
|
|
16408
16433
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16409
|
-
const _sfc_main$
|
|
16434
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
16410
16435
|
props: {
|
|
16411
16436
|
icon: { type: [String, Array], default: "" },
|
|
16412
16437
|
color: { type: String, default: "" },
|
|
@@ -16475,13 +16500,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16475
16500
|
};
|
|
16476
16501
|
}
|
|
16477
16502
|
});
|
|
16478
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16503
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ddf67f32"]]);
|
|
16479
16504
|
var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16480
16505
|
const _hoisted_1$j = { class: "ck-notify__container" };
|
|
16481
16506
|
const _hoisted_2$8 = { class: "ck-notify__title" };
|
|
16482
16507
|
const _hoisted_3$6 = { class: "close-btn" };
|
|
16483
16508
|
const _hoisted_4$4 = { class: "ck-notify__text" };
|
|
16484
|
-
const _sfc_main$
|
|
16509
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16485
16510
|
setup(__props, { expose }) {
|
|
16486
16511
|
expose({
|
|
16487
16512
|
ckNotify: ckNotify2,
|
|
@@ -16543,7 +16568,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
16543
16568
|
};
|
|
16544
16569
|
}
|
|
16545
16570
|
});
|
|
16546
|
-
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16571
|
+
var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5ca55d25"]]);
|
|
16547
16572
|
const _hoisted_1$i = { class: "ck-tr" };
|
|
16548
16573
|
function render$1(_ctx, _cache) {
|
|
16549
16574
|
return openBlock(), createElementBlock("tr", _hoisted_1$i, [
|
|
@@ -16551,8 +16576,8 @@ function render$1(_ctx, _cache) {
|
|
|
16551
16576
|
]);
|
|
16552
16577
|
}
|
|
16553
16578
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16554
|
-
const _sfc_main$
|
|
16555
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16579
|
+
const _sfc_main$l = {};
|
|
16580
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
|
|
16556
16581
|
var validators = {
|
|
16557
16582
|
size: (type) => {
|
|
16558
16583
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -16584,7 +16609,7 @@ var validators = {
|
|
|
16584
16609
|
}
|
|
16585
16610
|
};
|
|
16586
16611
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16587
|
-
const _sfc_main$
|
|
16612
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
16588
16613
|
props: {
|
|
16589
16614
|
col: { type: Object, default: void 0 },
|
|
16590
16615
|
nowrap: { type: Boolean, default: false },
|
|
@@ -16663,10 +16688,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
16663
16688
|
};
|
|
16664
16689
|
}
|
|
16665
16690
|
});
|
|
16666
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16691
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4077488a"]]);
|
|
16667
16692
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16668
16693
|
const _hoisted_1$h = { class: "ck-th" };
|
|
16669
|
-
const _sfc_main$
|
|
16694
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
16670
16695
|
props: {
|
|
16671
16696
|
align: { type: String, default: "left", validator: validators.align },
|
|
16672
16697
|
minWidth: { type: String, default: void 0 }
|
|
@@ -16698,8 +16723,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16698
16723
|
};
|
|
16699
16724
|
}
|
|
16700
16725
|
});
|
|
16701
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16702
|
-
const _sfc_main$
|
|
16726
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4b7ed390"]]);
|
|
16727
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
16703
16728
|
props: {
|
|
16704
16729
|
col: { type: Object, required: true }
|
|
16705
16730
|
},
|
|
@@ -16737,7 +16762,7 @@ function useWindowWidth() {
|
|
|
16737
16762
|
}
|
|
16738
16763
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16739
16764
|
const _hoisted_1$g = ["title", "aria-label", "disabled"];
|
|
16740
|
-
const _sfc_main$
|
|
16765
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
16741
16766
|
props: {
|
|
16742
16767
|
title: { type: String, default: void 0 },
|
|
16743
16768
|
disabled: { type: Boolean, default: false },
|
|
@@ -16835,10 +16860,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16835
16860
|
};
|
|
16836
16861
|
}
|
|
16837
16862
|
});
|
|
16838
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16863
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4a61847a"]]);
|
|
16839
16864
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16840
16865
|
const _hoisted_1$f = ["for"];
|
|
16841
|
-
const _sfc_main$
|
|
16866
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
16842
16867
|
props: {
|
|
16843
16868
|
for: { type: String, default: "" },
|
|
16844
16869
|
align: { type: String, default: "" },
|
|
@@ -16865,10 +16890,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16865
16890
|
};
|
|
16866
16891
|
}
|
|
16867
16892
|
});
|
|
16868
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16893
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-400ea765"]]);
|
|
16869
16894
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16870
16895
|
const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
|
|
16871
|
-
const _sfc_main$
|
|
16896
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
16872
16897
|
props: {
|
|
16873
16898
|
modelValue: {},
|
|
16874
16899
|
type: { type: String, validator: validators.inputType, default: "text" },
|
|
@@ -16881,8 +16906,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16881
16906
|
iconPack: { type: String, default: void 0 },
|
|
16882
16907
|
iconRight: { type: String, default: void 0 },
|
|
16883
16908
|
group: { type: String, default: void 0 },
|
|
16884
|
-
lineBreak: { type: [String, Number], default: "" },
|
|
16885
16909
|
groupVertical: { type: String, default: void 0 },
|
|
16910
|
+
widthBreaks: { type: Array, default: void 0 },
|
|
16911
|
+
lineBreak: { type: [String, Number], default: "" },
|
|
16886
16912
|
size: { type: String, default: "m", validator: validators.size },
|
|
16887
16913
|
hideBorder: { type: Boolean, default: false },
|
|
16888
16914
|
width: { type: String, default: void 0 },
|
|
@@ -16929,7 +16955,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16929
16955
|
});
|
|
16930
16956
|
const computedClassInput = computed$2(() => {
|
|
16931
16957
|
const list = [];
|
|
16932
|
-
list.push(functions.
|
|
16958
|
+
list.push(functions.getGroupClass2(props, windowWidth.value));
|
|
16933
16959
|
if (props.icon)
|
|
16934
16960
|
list.push("has-icon-left");
|
|
16935
16961
|
if (props.iconRight)
|
|
@@ -16946,7 +16972,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16946
16972
|
});
|
|
16947
16973
|
const computedStyle = computed$2(() => {
|
|
16948
16974
|
const list = [];
|
|
16949
|
-
|
|
16975
|
+
if (props.widthBreaks) {
|
|
16976
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
16977
|
+
if (width)
|
|
16978
|
+
list.push({ width });
|
|
16979
|
+
}
|
|
16950
16980
|
return list;
|
|
16951
16981
|
});
|
|
16952
16982
|
const computedStyleInput = computed$2(() => {
|
|
@@ -17012,10 +17042,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17012
17042
|
};
|
|
17013
17043
|
}
|
|
17014
17044
|
});
|
|
17015
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17045
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7c0f3064"]]);
|
|
17016
17046
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17017
17047
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
17018
|
-
const _sfc_main$
|
|
17048
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
17019
17049
|
props: {
|
|
17020
17050
|
search: { type: String, default: void 0 },
|
|
17021
17051
|
hasColumnsManager: { type: Boolean, default: false },
|
|
@@ -17109,7 +17139,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
17109
17139
|
};
|
|
17110
17140
|
}
|
|
17111
17141
|
});
|
|
17112
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17142
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ad4db5f6"]]);
|
|
17113
17143
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17114
17144
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
17115
17145
|
const _hoisted_2$7 = ["onClick"];
|
|
@@ -17188,7 +17218,7 @@ const __default__ = {
|
|
|
17188
17218
|
}
|
|
17189
17219
|
}
|
|
17190
17220
|
};
|
|
17191
|
-
const _sfc_main$
|
|
17221
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
17192
17222
|
setup(__props) {
|
|
17193
17223
|
return (_ctx, _cache) => {
|
|
17194
17224
|
return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
|
|
@@ -17237,7 +17267,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
17237
17267
|
};
|
|
17238
17268
|
}
|
|
17239
17269
|
}));
|
|
17240
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17270
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dec8fb20"]]);
|
|
17241
17271
|
const NOOP$1 = () => {
|
|
17242
17272
|
};
|
|
17243
17273
|
const isArray$1 = Array.isArray;
|
|
@@ -18020,7 +18050,7 @@ const _hoisted_3$4 = {
|
|
|
18020
18050
|
key: 0,
|
|
18021
18051
|
class: "c-Checkbox__label"
|
|
18022
18052
|
};
|
|
18023
|
-
const _sfc_main$
|
|
18053
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
18024
18054
|
props: {
|
|
18025
18055
|
modelValue: { type: Boolean, default: false },
|
|
18026
18056
|
label: { type: String, default: void 0 },
|
|
@@ -18077,7 +18107,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18077
18107
|
};
|
|
18078
18108
|
}
|
|
18079
18109
|
});
|
|
18080
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18110
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-132565da"]]);
|
|
18081
18111
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
18082
18112
|
const _hoisted_1$a = {
|
|
18083
18113
|
key: 0,
|
|
@@ -18100,7 +18130,7 @@ const _hoisted_7 = {
|
|
|
18100
18130
|
};
|
|
18101
18131
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
18102
18132
|
const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
18103
|
-
const _sfc_main$
|
|
18133
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
18104
18134
|
props: {
|
|
18105
18135
|
modelValue: { type: Boolean },
|
|
18106
18136
|
title: { type: String, default: void 0 },
|
|
@@ -18192,7 +18222,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18192
18222
|
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18193
18223
|
const _hoisted_1$9 = { class: "columns-manger-container" };
|
|
18194
18224
|
const _hoisted_2$4 = { class: "columns-manger__item" };
|
|
18195
|
-
const _sfc_main$
|
|
18225
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18196
18226
|
props: {
|
|
18197
18227
|
modelValue: { type: Boolean, required: true },
|
|
18198
18228
|
columns: { type: Object, required: true },
|
|
@@ -18232,7 +18262,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18232
18262
|
props.columns[colName].isDisplayed = value;
|
|
18233
18263
|
}
|
|
18234
18264
|
return (_ctx, _cache) => {
|
|
18235
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18265
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
18236
18266
|
modelValue: unref$1(isActive),
|
|
18237
18267
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
|
|
18238
18268
|
title: "Administrador de columnas"
|
|
@@ -18260,7 +18290,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18260
18290
|
};
|
|
18261
18291
|
}
|
|
18262
18292
|
});
|
|
18263
|
-
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18293
|
+
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-36d907dc"]]);
|
|
18264
18294
|
var qmApi = {};
|
|
18265
18295
|
var qmArray = {
|
|
18266
18296
|
arrayToText(arr, key = null) {
|
|
@@ -18550,7 +18580,7 @@ const _hoisted_3$2 = {
|
|
|
18550
18580
|
const _hoisted_4$2 = { class: "ck-table__table-container" };
|
|
18551
18581
|
const _hoisted_5 = { key: 0 };
|
|
18552
18582
|
const _hoisted_6 = { key: 1 };
|
|
18553
|
-
const _sfc_main$
|
|
18583
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
18554
18584
|
props: {
|
|
18555
18585
|
columns: { type: [Array, Object], required: true, default: () => [] },
|
|
18556
18586
|
hasColumnsManager: { type: Boolean, default: false },
|
|
@@ -18675,7 +18705,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18675
18705
|
createVNode(ckTr, null, {
|
|
18676
18706
|
default: withCtx(() => [
|
|
18677
18707
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
18678
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18708
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
18679
18709
|
key: col.title,
|
|
18680
18710
|
col
|
|
18681
18711
|
}, null, 8, ["col"]);
|
|
@@ -18723,10 +18753,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18723
18753
|
};
|
|
18724
18754
|
}
|
|
18725
18755
|
});
|
|
18726
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18756
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6545e800"]]);
|
|
18727
18757
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18728
18758
|
const _hoisted_1$7 = ["color"];
|
|
18729
|
-
const _sfc_main$
|
|
18759
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
18730
18760
|
props: {
|
|
18731
18761
|
size: { type: String, default: "s" },
|
|
18732
18762
|
color: { type: String, default: "primary" },
|
|
@@ -18766,7 +18796,35 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18766
18796
|
};
|
|
18767
18797
|
}
|
|
18768
18798
|
});
|
|
18769
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18799
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1e92de86"]]);
|
|
18800
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
18801
|
+
props: {
|
|
18802
|
+
widthBreaks: { type: Array, default: void 0 }
|
|
18803
|
+
},
|
|
18804
|
+
emits: ["click"],
|
|
18805
|
+
setup(__props, { emit: emits }) {
|
|
18806
|
+
const props = __props;
|
|
18807
|
+
const { windowWidth } = useWindowWidth();
|
|
18808
|
+
const computedStyle = computed$2(() => {
|
|
18809
|
+
const list = [];
|
|
18810
|
+
if (props.widthBreaks) {
|
|
18811
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
18812
|
+
if (width)
|
|
18813
|
+
list.push({ width });
|
|
18814
|
+
}
|
|
18815
|
+
return list;
|
|
18816
|
+
});
|
|
18817
|
+
return (_ctx, _cache) => {
|
|
18818
|
+
return openBlock(), createElementBlock("div", {
|
|
18819
|
+
class: "ck-div",
|
|
18820
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
18821
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
18822
|
+
}, [
|
|
18823
|
+
renderSlot(_ctx.$slots, "default")
|
|
18824
|
+
], 4);
|
|
18825
|
+
};
|
|
18826
|
+
}
|
|
18827
|
+
});
|
|
18770
18828
|
var globalVariables = {
|
|
18771
18829
|
defaultFailImg: "df",
|
|
18772
18830
|
imagesFolderPath: "",
|
|
@@ -21956,11 +22014,12 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
21956
22014
|
ckButton,
|
|
21957
22015
|
ckCheckbox,
|
|
21958
22016
|
ckChip,
|
|
22017
|
+
ckDiv: _sfc_main$7,
|
|
21959
22018
|
ckIcon,
|
|
21960
22019
|
ckImg,
|
|
21961
22020
|
ckInput,
|
|
21962
22021
|
ckLabel,
|
|
21963
|
-
ckPopup: _sfc_main$
|
|
22022
|
+
ckPopup: _sfc_main$b,
|
|
21964
22023
|
ckRadio,
|
|
21965
22024
|
ckSelect,
|
|
21966
22025
|
ckSwitch,
|
|
@@ -22000,4 +22059,4 @@ const install = function installCleek(app, options) {
|
|
|
22000
22059
|
app.component(componentName, component);
|
|
22001
22060
|
});
|
|
22002
22061
|
};
|
|
22003
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$
|
|
22062
|
+
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 };
|