cleek 2.1.17 → 2.1.21
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.font-thin
|
|
2
|
+
font-weight 100
|
|
3
|
+
.font-extralight
|
|
4
|
+
font-weight 200
|
|
5
|
+
.font-light
|
|
6
|
+
font-weight 300
|
|
7
|
+
.font-normal
|
|
8
|
+
font-weight 400
|
|
9
|
+
.font-medium
|
|
10
|
+
font-weight 500
|
|
11
|
+
.font-semibold
|
|
12
|
+
font-weight 600
|
|
13
|
+
.font-bold
|
|
14
|
+
font-weight 700
|
|
15
|
+
.font-extrabold
|
|
16
|
+
font-weight 800
|
|
17
|
+
.font-black
|
|
18
|
+
font-weight 900
|
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, nextTick as nextTick$1, onBeforeUnmount, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22
22
|
var _export_sfc = (sfc, props) => {
|
|
23
23
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -11501,6 +11501,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11501
11501
|
type: { type: String, default: "outlined", validator: validators.buttonType },
|
|
11502
11502
|
color: { type: String, default: "primary" },
|
|
11503
11503
|
align: { type: String, default: "left", validator: validators.align },
|
|
11504
|
+
size: { type: String, default: "m", validator: validators.size },
|
|
11504
11505
|
icon: { type: [String, Array], default: void 0 },
|
|
11505
11506
|
iconPack: { type: String, default: void 0 },
|
|
11506
11507
|
iconRight: { type: String, default: void 0 },
|
|
@@ -11513,7 +11514,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11513
11514
|
emits: ["click"],
|
|
11514
11515
|
setup(__props, { emit: emits }) {
|
|
11515
11516
|
const props = __props;
|
|
11516
|
-
let context;
|
|
11517
11517
|
const isMounted = ref(false);
|
|
11518
11518
|
const computedClass = computed$2(() => {
|
|
11519
11519
|
const classList2 = [];
|
|
@@ -11528,25 +11528,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11528
11528
|
if (props.align !== "left") {
|
|
11529
11529
|
classList2.push(`ck-button__align--${props.align}`);
|
|
11530
11530
|
}
|
|
11531
|
-
if (isMounted.value)
|
|
11532
|
-
|
|
11533
|
-
if (props.icon || props.iconRight) {
|
|
11534
|
-
if (!(props.icon && props.iconRight))
|
|
11535
|
-
classList2.push("just-icon");
|
|
11536
|
-
}
|
|
11537
|
-
}
|
|
11538
|
-
}
|
|
11531
|
+
if (isMounted.value)
|
|
11532
|
+
;
|
|
11539
11533
|
let type = props.type;
|
|
11540
11534
|
if (!validators.buttonType(props.type))
|
|
11541
11535
|
type = "outlined";
|
|
11542
11536
|
classList2.push(`type-${type}`);
|
|
11537
|
+
if (props.size)
|
|
11538
|
+
classList2.push(`rs-component-size__${props.size}`);
|
|
11543
11539
|
return classList2;
|
|
11544
11540
|
});
|
|
11545
11541
|
function onClick(event) {
|
|
11546
11542
|
emits("click", event);
|
|
11547
11543
|
}
|
|
11548
11544
|
onMounted(() => {
|
|
11549
|
-
|
|
11545
|
+
getCurrentInstance().ctx;
|
|
11550
11546
|
isMounted.value = true;
|
|
11551
11547
|
});
|
|
11552
11548
|
return (_ctx, _cache) => {
|
|
@@ -11575,7 +11571,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11575
11571
|
};
|
|
11576
11572
|
}
|
|
11577
11573
|
});
|
|
11578
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
11574
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0641f9bc"]]);
|
|
11579
11575
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11580
11576
|
const _hoisted_1$f = ["for"];
|
|
11581
11577
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -13279,7 +13275,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13279
13275
|
hideHeaderActions: { type: Boolean, default: false },
|
|
13280
13276
|
showRefreshBtn: { type: Boolean, default: false },
|
|
13281
13277
|
hideItemsPerPage: { type: Boolean, default: false },
|
|
13282
|
-
notFullWidth: { type: Boolean, default: false }
|
|
13278
|
+
notFullWidth: { type: Boolean, default: false },
|
|
13279
|
+
mobileMaxWidth: { type: [Number, String], default: 800 }
|
|
13283
13280
|
},
|
|
13284
13281
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
13285
13282
|
setup(__props, { emit: emits }) {
|
|
@@ -13319,6 +13316,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13319
13316
|
emits("update:currentPage", val);
|
|
13320
13317
|
}
|
|
13321
13318
|
});
|
|
13319
|
+
const isMobileVisible = computed$2(() => {
|
|
13320
|
+
return realWindowWidth.value <= +props.mobileMaxWidth;
|
|
13321
|
+
});
|
|
13322
13322
|
function refreshList(pageChange = false) {
|
|
13323
13323
|
emits("refreshList", pageChange);
|
|
13324
13324
|
}
|
|
@@ -13329,6 +13329,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13329
13329
|
console.log("ERROR ck-table", "The columns list should be an object");
|
|
13330
13330
|
}
|
|
13331
13331
|
}
|
|
13332
|
+
const realWindowWidth = ref(0);
|
|
13333
|
+
function handleWindowResize(event) {
|
|
13334
|
+
realWindowWidth.value = event.currentTarget.innerWidth;
|
|
13335
|
+
}
|
|
13336
|
+
onMounted(() => {
|
|
13337
|
+
nextTick$1(() => {
|
|
13338
|
+
window.addEventListener("resize", handleWindowResize);
|
|
13339
|
+
});
|
|
13340
|
+
realWindowWidth.value = window.innerWidth;
|
|
13341
|
+
});
|
|
13342
|
+
onBeforeUnmount(() => {
|
|
13343
|
+
window.removeEventListener("resize", handleWindowResize);
|
|
13344
|
+
});
|
|
13332
13345
|
return (_ctx, _cache) => {
|
|
13333
13346
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13334
13347
|
__props.hasColumnsManager && unref$1(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
@@ -13361,7 +13374,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13361
13374
|
createElementVNode("table", {
|
|
13362
13375
|
class: normalizeClass(["ck-table__table", { "not-full-width": __props.notFullWidth }])
|
|
13363
13376
|
}, [
|
|
13364
|
-
unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
13377
|
+
unref$1(filteredColumnsList).length && !(_ctx.$slots.mobile && unref$1(isMobileVisible)) ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
13365
13378
|
createVNode(ckTr, null, {
|
|
13366
13379
|
default: withCtx(() => [
|
|
13367
13380
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
@@ -13375,7 +13388,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13375
13388
|
})
|
|
13376
13389
|
])) : createCommentVNode("", true),
|
|
13377
13390
|
createElementVNode("tbody", null, [
|
|
13378
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13391
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
13392
|
+
!unref$1(isMobileVisible) ? renderSlot(_ctx.$slots, "desktop", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
13393
|
+
unref$1(isMobileVisible) ? renderSlot(_ctx.$slots, "mobile", { key: 1 }, void 0, true) : createCommentVNode("", true)
|
|
13379
13394
|
]),
|
|
13380
13395
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
13381
13396
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
@@ -13396,7 +13411,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13396
13411
|
};
|
|
13397
13412
|
}
|
|
13398
13413
|
});
|
|
13399
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
13414
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6ea45185"]]);
|
|
13400
13415
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13401
13416
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
13402
13417
|
props: {
|