cleek 2.4.90 → 2.4.92
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
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;
|
|
49170
49170
|
const list = [];
|
|
49171
49171
|
if (props.cellPadding)
|
|
49172
49172
|
list.push(`table__cell-padding--${props.cellPadding}`);
|
|
@@ -49174,7 +49174,7 @@ 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
|
-
const striped = props.striped
|
|
49177
|
+
const striped = (_c = props.striped) != null ? _c : (_b = (_a = cleekOptions2.value) == null ? void 0 : _a.table) == null ? void 0 : _b.striped;
|
|
49178
49178
|
if (striped)
|
|
49179
49179
|
list.push("striped-table");
|
|
49180
49180
|
return list;
|
|
@@ -49288,7 +49288,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
49288
49288
|
};
|
|
49289
49289
|
}
|
|
49290
49290
|
});
|
|
49291
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
49291
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cfb40b92"]]);
|
|
49292
49292
|
var ckPagination_vue_vue_type_style_index_0_lang = "";
|
|
49293
49293
|
const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
49294
49294
|
props: {
|
|
@@ -49449,16 +49449,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49449
49449
|
textColor: null,
|
|
49450
49450
|
align: null,
|
|
49451
49451
|
nowrap: { type: Boolean },
|
|
49452
|
+
layout: null,
|
|
49452
49453
|
icon: null,
|
|
49453
49454
|
iconRight: null,
|
|
49454
|
-
iconPack: null
|
|
49455
|
+
iconPack: null,
|
|
49456
|
+
widthBreaks: null,
|
|
49457
|
+
group: null,
|
|
49458
|
+
groupVertical: null
|
|
49455
49459
|
},
|
|
49456
49460
|
emits: ["click"],
|
|
49457
49461
|
setup(__props, { emit: emits }) {
|
|
49458
49462
|
const props = __props;
|
|
49459
49463
|
const defaultColor = "primary";
|
|
49460
49464
|
const defaultSize = "s";
|
|
49465
|
+
const { windowWidth } = useWindowWidth();
|
|
49466
|
+
let cleekOptions2 = ref();
|
|
49461
49467
|
const computedClass = computed$3(() => {
|
|
49468
|
+
var _a;
|
|
49462
49469
|
const list = [];
|
|
49463
49470
|
if (!props.color || hooks9.isColorTemplateVariable(props.color)) {
|
|
49464
49471
|
list.push(`ck-component__bg-color--${props.color || defaultColor}`);
|
|
@@ -49468,16 +49475,29 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49468
49475
|
list.push(`align--${props.align}`);
|
|
49469
49476
|
if (props.nowrap)
|
|
49470
49477
|
list.push(`ck-chip--${props.nowrap}`);
|
|
49478
|
+
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
49479
|
+
if (layout)
|
|
49480
|
+
list.push(layout);
|
|
49481
|
+
list.push(hooks9.getGroupClass(props, windowWidth.value));
|
|
49471
49482
|
return list;
|
|
49472
49483
|
});
|
|
49473
49484
|
const computedStyle = computed$3(() => {
|
|
49474
49485
|
const list = [];
|
|
49486
|
+
if (props.widthBreaks) {
|
|
49487
|
+
const width = hooks9.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
|
|
49488
|
+
if (width) {
|
|
49489
|
+
list.push({ width });
|
|
49490
|
+
}
|
|
49491
|
+
}
|
|
49475
49492
|
if (props.color && !hooks9.isColorTemplateVariable(props.color)) {
|
|
49476
49493
|
list.push({ backgroundColor: props.color });
|
|
49477
49494
|
list.push({ color: props.textColor || "white" });
|
|
49478
49495
|
}
|
|
49479
49496
|
return list;
|
|
49480
49497
|
});
|
|
49498
|
+
onMounted(() => {
|
|
49499
|
+
cleekOptions2.value = hooks9.getCleekOptions(getCurrentInstance);
|
|
49500
|
+
});
|
|
49481
49501
|
return (_ctx, _cache) => {
|
|
49482
49502
|
return openBlock$1(), createElementBlock$1("div", {
|
|
49483
49503
|
class: normalizeClass$1(["ck-chip", unref$2(computedClass)]),
|
|
@@ -49485,26 +49505,26 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
49485
49505
|
style: normalizeStyle$1(unref$2(computedStyle)),
|
|
49486
49506
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
49487
49507
|
}, [
|
|
49488
|
-
__props.icon
|
|
49508
|
+
__props.icon ? (openBlock$1(), createBlock$1(CkIcon, {
|
|
49489
49509
|
key: 0,
|
|
49490
|
-
class: "
|
|
49510
|
+
class: normalizeClass$1(["mr-2", { "just-icon": !_ctx.$slots.default }]),
|
|
49491
49511
|
icon: __props.icon,
|
|
49492
49512
|
"icon-pack": __props.iconPack
|
|
49493
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$1("", true),
|
|
49513
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$1("", true),
|
|
49494
49514
|
createElementVNode("span", null, [
|
|
49495
49515
|
renderSlot$1(_ctx.$slots, "default", {}, void 0, true)
|
|
49496
49516
|
]),
|
|
49497
|
-
__props.
|
|
49517
|
+
__props.iconRight ? (openBlock$1(), createBlock$1(CkIcon, {
|
|
49498
49518
|
key: 1,
|
|
49499
|
-
class: "
|
|
49500
|
-
icon: __props.
|
|
49519
|
+
class: normalizeClass$1(["ml-2", { "just-icon": !_ctx.$slots.default }]),
|
|
49520
|
+
icon: __props.iconRight,
|
|
49501
49521
|
"icon-pack": __props.iconPack
|
|
49502
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode$1("", true)
|
|
49522
|
+
}, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$1("", true)
|
|
49503
49523
|
], 14, _hoisted_1$a);
|
|
49504
49524
|
};
|
|
49505
49525
|
}
|
|
49506
49526
|
});
|
|
49507
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
49527
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7140502e"]]);
|
|
49508
49528
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
49509
49529
|
const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
49510
49530
|
props: {
|