cleek 2.4.90 → 2.4.91
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 +38 -15
- package/dist/cleek.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3809,7 +3809,7 @@ const cleekOptions = {
|
|
|
3809
3809
|
clearValue: "auto"
|
|
3810
3810
|
},
|
|
3811
3811
|
table: {
|
|
3812
|
-
striped:
|
|
3812
|
+
striped: void 0
|
|
3813
3813
|
}
|
|
3814
3814
|
};
|
|
3815
3815
|
/*!
|
|
@@ -47390,7 +47390,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
|
|
|
47390
47390
|
};
|
|
47391
47391
|
}
|
|
47392
47392
|
});
|
|
47393
|
-
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
47393
|
+
var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b1cb6d9"]]);
|
|
47394
47394
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
47395
47395
|
const _hoisted_1$i = ["for"];
|
|
47396
47396
|
const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
@@ -49085,7 +49085,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
49085
49085
|
showRefreshBtn: { type: Boolean },
|
|
49086
49086
|
hideItemsPerPage: { type: Boolean },
|
|
49087
49087
|
notFullWidth: { type: Boolean },
|
|
49088
|
-
striped: { type: Boolean },
|
|
49088
|
+
striped: { type: Boolean, default: void 0 },
|
|
49089
49089
|
cellPadding: null,
|
|
49090
49090
|
cellPaddingY: null,
|
|
49091
49091
|
noResultsText: null,
|
|
@@ -49166,7 +49166,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
49166
49166
|
}
|
|
49167
49167
|
}
|
|
49168
49168
|
const computedClassTable = computed$3(() => {
|
|
49169
|
-
var _a, _b;
|
|
49169
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
49170
49170
|
const list = [];
|
|
49171
49171
|
if (props.cellPadding)
|
|
49172
49172
|
list.push(`table__cell-padding--${props.cellPadding}`);
|
|
@@ -49174,7 +49174,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
49174
49174
|
list.push(`table__cell-padding-y--${props.cellPaddingY}`);
|
|
49175
49175
|
if (props.notFullWidth)
|
|
49176
49176
|
list.push("not-full-width");
|
|
49177
|
-
|
|
49177
|
+
console.log("props.striped", props.striped);
|
|
49178
|
+
console.log("cleekOptions.value?.table?.striped", (_b = (_a = cleekOptions2.value) == null ? void 0 : _a.table) == null ? void 0 : _b.striped);
|
|
49179
|
+
console.log("props.striped ?? cleekOptions.value?.table?.striped", (_e = props.striped) != null ? _e : (_d = (_c = cleekOptions2.value) == null ? void 0 : _c.table) == null ? void 0 : _d.striped);
|
|
49180
|
+
const striped = (_h = props.striped) != null ? _h : (_g = (_f = cleekOptions2.value) == null ? void 0 : _f.table) == null ? void 0 : _g.striped;
|
|
49178
49181
|
if (striped)
|
|
49179
49182
|
list.push("striped-table");
|
|
49180
49183
|
return list;
|
|
@@ -49288,7 +49291,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
49288
49291
|
};
|
|
49289
49292
|
}
|
|
49290
49293
|
});
|
|
49291
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
49294
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-fc03e496"]]);
|
|
49292
49295
|
var ckPagination_vue_vue_type_style_index_0_lang = "";
|
|
49293
49296
|
const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
49294
49297
|
props: {
|
|
@@ -49449,16 +49452,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49449
49452
|
textColor: null,
|
|
49450
49453
|
align: null,
|
|
49451
49454
|
nowrap: { type: Boolean },
|
|
49455
|
+
layout: null,
|
|
49452
49456
|
icon: null,
|
|
49453
49457
|
iconRight: null,
|
|
49454
|
-
iconPack: null
|
|
49458
|
+
iconPack: null,
|
|
49459
|
+
widthBreaks: null,
|
|
49460
|
+
group: null,
|
|
49461
|
+
groupVertical: null
|
|
49455
49462
|
},
|
|
49456
49463
|
emits: ["click"],
|
|
49457
49464
|
setup(__props, { emit: emits }) {
|
|
49458
49465
|
const props = __props;
|
|
49459
49466
|
const defaultColor = "primary";
|
|
49460
49467
|
const defaultSize = "s";
|
|
49468
|
+
const { windowWidth } = useWindowWidth();
|
|
49469
|
+
let cleekOptions2 = ref();
|
|
49461
49470
|
const computedClass = computed$3(() => {
|
|
49471
|
+
var _a;
|
|
49462
49472
|
const list = [];
|
|
49463
49473
|
if (!props.color || hooks9.isColorTemplateVariable(props.color)) {
|
|
49464
49474
|
list.push(`ck-component__bg-color--${props.color || defaultColor}`);
|
|
@@ -49468,16 +49478,29 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49468
49478
|
list.push(`align--${props.align}`);
|
|
49469
49479
|
if (props.nowrap)
|
|
49470
49480
|
list.push(`ck-chip--${props.nowrap}`);
|
|
49481
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
49482
|
+
if (layout)
|
|
49483
|
+
list.push(layout);
|
|
49484
|
+
list.push(hooks9.getGroupClass(props, windowWidth.value));
|
|
49471
49485
|
return list;
|
|
49472
49486
|
});
|
|
49473
49487
|
const computedStyle = computed$3(() => {
|
|
49474
49488
|
const list = [];
|
|
49489
|
+
if (props.widthBreaks) {
|
|
49490
|
+
const width = hooks9.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
49491
|
+
if (width) {
|
|
49492
|
+
list.push({ width });
|
|
49493
|
+
}
|
|
49494
|
+
}
|
|
49475
49495
|
if (props.color && !hooks9.isColorTemplateVariable(props.color)) {
|
|
49476
49496
|
list.push({ backgroundColor: props.color });
|
|
49477
49497
|
list.push({ color: props.textColor || "white" });
|
|
49478
49498
|
}
|
|
49479
49499
|
return list;
|
|
49480
49500
|
});
|
|
49501
|
+
onMounted(() => {
|
|
49502
|
+
cleekOptions2.value = hooks9.getCleekOptions(getCurrentInstance);
|
|
49503
|
+
});
|
|
49481
49504
|
return (_ctx, _cache) => {
|
|
49482
49505
|
return openBlock$1(), createElementBlock$1("div", {
|
|
49483
49506
|
class: normalizeClass$1(["ck-chip", unref$2(computedClass)]),
|
|
@@ -49485,26 +49508,26 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49485
49508
|
style: normalizeStyle$1(unref$2(computedStyle)),
|
|
49486
49509
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
49487
49510
|
}, [
|
|
49488
|
-
__props.icon
|
|
49511
|
+
__props.icon ? (openBlock$1(), createBlock$1(CkIcon, {
|
|
49489
49512
|
key: 0,
|
|
49490
|
-
class: "
|
|
49513
|
+
class: normalizeClass$1(["mr-2", { "just-icon": !_ctx.$slots.default }]),
|
|
49491
49514
|
icon: __props.icon,
|
|
49492
49515
|
"icon-pack": __props.iconPack
|
|
49493
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$1("", true),
|
|
49516
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$1("", true),
|
|
49494
49517
|
createElementVNode("span", null, [
|
|
49495
49518
|
renderSlot$1(_ctx.$slots, "default", {}, void 0, true)
|
|
49496
49519
|
]),
|
|
49497
|
-
__props.
|
|
49520
|
+
__props.iconRight ? (openBlock$1(), createBlock$1(CkIcon, {
|
|
49498
49521
|
key: 1,
|
|
49499
|
-
class: "
|
|
49500
|
-
icon: __props.
|
|
49522
|
+
class: normalizeClass$1(["ml-2", { "just-icon": !_ctx.$slots.default }]),
|
|
49523
|
+
icon: __props.iconRight,
|
|
49501
49524
|
"icon-pack": __props.iconPack
|
|
49502
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$1("", true)
|
|
49525
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$1("", true)
|
|
49503
49526
|
], 14, _hoisted_1$a);
|
|
49504
49527
|
};
|
|
49505
49528
|
}
|
|
49506
49529
|
});
|
|
49507
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
49530
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7140502e"]]);
|
|
49508
49531
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
49509
49532
|
const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
49510
49533
|
props: {
|