cleek 2.3.58 → 2.3.59
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 +31 -31
- package/dist/cleek.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3381,11 +3381,11 @@ if (!w[NAMESPACE_IDENTIFIER].hooks)
|
|
|
3381
3381
|
if (!w[NAMESPACE_IDENTIFIER].shims)
|
|
3382
3382
|
w[NAMESPACE_IDENTIFIER].shims = [];
|
|
3383
3383
|
var namespace = w[NAMESPACE_IDENTIFIER];
|
|
3384
|
-
var functions$
|
|
3384
|
+
var functions$1 = [];
|
|
3385
3385
|
var listener = function listener2() {
|
|
3386
3386
|
DOCUMENT.removeEventListener("DOMContentLoaded", listener2);
|
|
3387
3387
|
loaded = 1;
|
|
3388
|
-
functions$
|
|
3388
|
+
functions$1.map(function(fn) {
|
|
3389
3389
|
return fn();
|
|
3390
3390
|
});
|
|
3391
3391
|
};
|
|
@@ -3398,7 +3398,7 @@ if (IS_DOM) {
|
|
|
3398
3398
|
function domready(fn) {
|
|
3399
3399
|
if (!IS_DOM)
|
|
3400
3400
|
return;
|
|
3401
|
-
loaded ? setTimeout(fn, 0) : functions$
|
|
3401
|
+
loaded ? setTimeout(fn, 0) : functions$1.push(fn);
|
|
3402
3402
|
}
|
|
3403
3403
|
function toHtml(abstractNodes) {
|
|
3404
3404
|
var tag = abstractNodes.tag, _abstractNodes$attrib = abstractNodes.attributes, attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib, _abstractNodes$childr = abstractNodes.children, children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
|
|
@@ -19208,7 +19208,7 @@ defineComponent({
|
|
|
19208
19208
|
};
|
|
19209
19209
|
}
|
|
19210
19210
|
});
|
|
19211
|
-
var functions
|
|
19211
|
+
var functions = {
|
|
19212
19212
|
getCleekOptions(getCurrentInstance2) {
|
|
19213
19213
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
19214
19214
|
},
|
|
@@ -19305,14 +19305,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19305
19305
|
});
|
|
19306
19306
|
const computedClass = computed$2(() => {
|
|
19307
19307
|
const list = [];
|
|
19308
|
-
if (props.color && functions
|
|
19308
|
+
if (props.color && functions.isColorTemplateVariable(props.color)) {
|
|
19309
19309
|
list.push(`ck-component__color--${props.color}`);
|
|
19310
19310
|
}
|
|
19311
19311
|
return list;
|
|
19312
19312
|
});
|
|
19313
19313
|
const computedStyle = computed$2(() => {
|
|
19314
19314
|
const list = [];
|
|
19315
|
-
if (props.color && !functions
|
|
19315
|
+
if (props.color && !functions.isColorTemplateVariable(props.color)) {
|
|
19316
19316
|
list.push({ color: props.color });
|
|
19317
19317
|
}
|
|
19318
19318
|
return list;
|
|
@@ -19320,7 +19320,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19320
19320
|
function onClick2(event) {
|
|
19321
19321
|
emits("click", event);
|
|
19322
19322
|
}
|
|
19323
|
-
functions
|
|
19323
|
+
functions.preventUnusedError([
|
|
19324
19324
|
onClick2,
|
|
19325
19325
|
computedStyle
|
|
19326
19326
|
]);
|
|
@@ -19494,9 +19494,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19494
19494
|
const isColumnDisplayed = computed$2(() => {
|
|
19495
19495
|
if (!props.col)
|
|
19496
19496
|
return true;
|
|
19497
|
-
return functions
|
|
19497
|
+
return functions.isColumnDisplayed(props.col);
|
|
19498
19498
|
});
|
|
19499
|
-
functions
|
|
19499
|
+
functions.preventUnusedError([
|
|
19500
19500
|
isColumnDisplayed,
|
|
19501
19501
|
computedStyle
|
|
19502
19502
|
]);
|
|
@@ -20963,7 +20963,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20963
20963
|
});
|
|
20964
20964
|
const computedClass = computed$2(() => {
|
|
20965
20965
|
const list = [];
|
|
20966
|
-
list.push(functions
|
|
20966
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
20967
20967
|
const color = props.color || defaultColor;
|
|
20968
20968
|
if (color !== defaultColor) {
|
|
20969
20969
|
if (realButtonType.value === "filled") {
|
|
@@ -20989,7 +20989,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20989
20989
|
const list = [];
|
|
20990
20990
|
let isWidthDefined = false;
|
|
20991
20991
|
if (props.widthBreaks) {
|
|
20992
|
-
const width = functions
|
|
20992
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
20993
20993
|
if (width) {
|
|
20994
20994
|
isWidthDefined = true;
|
|
20995
20995
|
list.push({ width });
|
|
@@ -21003,10 +21003,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21003
21003
|
emits("click", event);
|
|
21004
21004
|
}
|
|
21005
21005
|
onMounted(() => {
|
|
21006
|
-
$cleekOptions = functions
|
|
21006
|
+
$cleekOptions = functions.getCleekOptions(getCurrentInstance);
|
|
21007
21007
|
isMounted.value = true;
|
|
21008
21008
|
});
|
|
21009
|
-
functions
|
|
21009
|
+
functions.preventUnusedError([
|
|
21010
21010
|
onClick2,
|
|
21011
21011
|
computedStyle,
|
|
21012
21012
|
computedClass
|
|
@@ -21133,7 +21133,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21133
21133
|
};
|
|
21134
21134
|
const computedClassInput = computed$2(() => {
|
|
21135
21135
|
const list = [];
|
|
21136
|
-
list.push(functions
|
|
21136
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
21137
21137
|
if (props.icon)
|
|
21138
21138
|
list.push("has-icon-left");
|
|
21139
21139
|
if (props.iconRight)
|
|
@@ -21152,7 +21152,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21152
21152
|
const list = [];
|
|
21153
21153
|
list.push({ width: props.width });
|
|
21154
21154
|
if (props.widthBreaks) {
|
|
21155
|
-
const width = functions
|
|
21155
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
21156
21156
|
if (width)
|
|
21157
21157
|
list.push({ width });
|
|
21158
21158
|
}
|
|
@@ -21173,7 +21173,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21173
21173
|
}
|
|
21174
21174
|
}, props.delayChangeTime || defaultDelayChangeTime);
|
|
21175
21175
|
}
|
|
21176
|
-
functions
|
|
21176
|
+
functions.preventUnusedError([
|
|
21177
21177
|
computedStyle,
|
|
21178
21178
|
computedClassInput,
|
|
21179
21179
|
realLabelAlign,
|
|
@@ -21292,7 +21292,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
21292
21292
|
emits("refreshList", false);
|
|
21293
21293
|
}, 1e3);
|
|
21294
21294
|
}
|
|
21295
|
-
functions
|
|
21295
|
+
functions.preventUnusedError([
|
|
21296
21296
|
searchGroupValue,
|
|
21297
21297
|
checkRefresh
|
|
21298
21298
|
]);
|
|
@@ -21457,7 +21457,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
21457
21457
|
};
|
|
21458
21458
|
}
|
|
21459
21459
|
});
|
|
21460
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
21460
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b8a184d6"]]);
|
|
21461
21461
|
const EMPTY_OBJ = {};
|
|
21462
21462
|
const NOOP = () => {
|
|
21463
21463
|
};
|
|
@@ -22449,7 +22449,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
22449
22449
|
list.push({
|
|
22450
22450
|
name: col.name,
|
|
22451
22451
|
title: col.title,
|
|
22452
|
-
value: functions
|
|
22452
|
+
value: functions.isColumnDisplayed(col)
|
|
22453
22453
|
});
|
|
22454
22454
|
}
|
|
22455
22455
|
});
|
|
@@ -22555,7 +22555,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22555
22555
|
return newList;
|
|
22556
22556
|
});
|
|
22557
22557
|
const filteredColumnsList = computed$2(() => {
|
|
22558
|
-
return columnsArray.value.filter(functions
|
|
22558
|
+
return columnsArray.value.filter(functions.isColumnDisplayed);
|
|
22559
22559
|
});
|
|
22560
22560
|
const searchLocal = computed$2({
|
|
22561
22561
|
get() {
|
|
@@ -22596,7 +22596,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22596
22596
|
list.push("not-full-width");
|
|
22597
22597
|
return list;
|
|
22598
22598
|
});
|
|
22599
|
-
functions
|
|
22599
|
+
functions.preventUnusedError([
|
|
22600
22600
|
computedClassTable,
|
|
22601
22601
|
defaultNoResultsText,
|
|
22602
22602
|
isMobileVisible,
|
|
@@ -22755,7 +22755,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22755
22755
|
const computedStyle = computed$2(() => {
|
|
22756
22756
|
const list = [];
|
|
22757
22757
|
if (props.widthBreaks) {
|
|
22758
|
-
const width = functions
|
|
22758
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
22759
22759
|
if (width)
|
|
22760
22760
|
list.push({ width });
|
|
22761
22761
|
}
|
|
@@ -22818,7 +22818,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22818
22818
|
classList2.push("is-rounded");
|
|
22819
22819
|
if (props.hasBorder) {
|
|
22820
22820
|
classList2.push("ck-img__has-border");
|
|
22821
|
-
if (functions
|
|
22821
|
+
if (functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
22822
22822
|
classList2.push(`ck-component__border-color--${realBorderColor.value}`);
|
|
22823
22823
|
}
|
|
22824
22824
|
}
|
|
@@ -22835,7 +22835,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22835
22835
|
if (props.radius)
|
|
22836
22836
|
styleList.push({ "border-radius": props.radius });
|
|
22837
22837
|
if (props.hasBorder) {
|
|
22838
|
-
if (!functions
|
|
22838
|
+
if (!functions.isColorTemplateVariable(realBorderColor.value)) {
|
|
22839
22839
|
styleList.push({ "border-color": realBorderColor.value });
|
|
22840
22840
|
}
|
|
22841
22841
|
}
|
|
@@ -22868,10 +22868,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22868
22868
|
return `${path}${src}`;
|
|
22869
22869
|
}
|
|
22870
22870
|
onMounted(() => {
|
|
22871
|
-
$cleekOptions = functions
|
|
22871
|
+
$cleekOptions = functions.getCleekOptions(getCurrentInstance);
|
|
22872
22872
|
isMounted.value = true;
|
|
22873
22873
|
});
|
|
22874
|
-
functions
|
|
22874
|
+
functions.preventUnusedError([
|
|
22875
22875
|
computedImgStyle,
|
|
22876
22876
|
computedStyle,
|
|
22877
22877
|
computedClass,
|
|
@@ -23030,7 +23030,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23030
23030
|
});
|
|
23031
23031
|
const computedClassSelect = computed$2(() => {
|
|
23032
23032
|
const list = [];
|
|
23033
|
-
list.push(functions
|
|
23033
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
23034
23034
|
if (isClearBtnVisible.value)
|
|
23035
23035
|
list.push("clear-able");
|
|
23036
23036
|
return list;
|
|
@@ -23039,7 +23039,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23039
23039
|
const list = [];
|
|
23040
23040
|
let isWidthDefined = false;
|
|
23041
23041
|
if (props.widthBreaks) {
|
|
23042
|
-
const width = functions
|
|
23042
|
+
const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
23043
23043
|
if (width) {
|
|
23044
23044
|
list.push({ width });
|
|
23045
23045
|
isWidthDefined = true;
|
|
@@ -23113,7 +23113,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23113
23113
|
}
|
|
23114
23114
|
function setFocus() {
|
|
23115
23115
|
}
|
|
23116
|
-
functions
|
|
23116
|
+
functions.preventUnusedError([
|
|
23117
23117
|
computedStyle,
|
|
23118
23118
|
computedClassSelect,
|
|
23119
23119
|
getOptionValue,
|
|
@@ -23298,7 +23298,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23298
23298
|
});
|
|
23299
23299
|
const computedClass = computed$2(() => {
|
|
23300
23300
|
const list = [];
|
|
23301
|
-
list.push(functions
|
|
23301
|
+
list.push(functions.getGroupClass(props, windowWidth.value));
|
|
23302
23302
|
return list;
|
|
23303
23303
|
});
|
|
23304
23304
|
const computedItemStyle = computed$2(() => {
|
|
@@ -23315,7 +23315,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23315
23315
|
}
|
|
23316
23316
|
return defaultReduceFunction(option);
|
|
23317
23317
|
}
|
|
23318
|
-
functions
|
|
23318
|
+
functions.preventUnusedError([
|
|
23319
23319
|
getOptionValue
|
|
23320
23320
|
]);
|
|
23321
23321
|
return (_ctx, _cache) => {
|