cleek 2.1.18 → 2.1.22
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 },
|
|
@@ -11533,6 +11534,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11533
11534
|
if (!validators.buttonType(props.type))
|
|
11534
11535
|
type = "outlined";
|
|
11535
11536
|
classList2.push(`type-${type}`);
|
|
11537
|
+
if (props.size)
|
|
11538
|
+
classList2.push(`rs-component-size__${props.size}`);
|
|
11536
11539
|
return classList2;
|
|
11537
11540
|
});
|
|
11538
11541
|
function onClick(event) {
|
|
@@ -11568,7 +11571,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11568
11571
|
};
|
|
11569
11572
|
}
|
|
11570
11573
|
});
|
|
11571
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
11574
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0641f9bc"]]);
|
|
11572
11575
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11573
11576
|
const _hoisted_1$f = ["for"];
|
|
11574
11577
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -13272,7 +13275,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13272
13275
|
hideHeaderActions: { type: Boolean, default: false },
|
|
13273
13276
|
showRefreshBtn: { type: Boolean, default: false },
|
|
13274
13277
|
hideItemsPerPage: { type: Boolean, default: false },
|
|
13275
|
-
notFullWidth: { type: Boolean, default: false }
|
|
13278
|
+
notFullWidth: { type: Boolean, default: false },
|
|
13279
|
+
mobileMaxWidth: { type: [Number, String], default: 800 }
|
|
13276
13280
|
},
|
|
13277
13281
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
13278
13282
|
setup(__props, { emit: emits }) {
|
|
@@ -13312,6 +13316,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13312
13316
|
emits("update:currentPage", val);
|
|
13313
13317
|
}
|
|
13314
13318
|
});
|
|
13319
|
+
const isMobileVisible = computed$2(() => {
|
|
13320
|
+
return realWindowWidth.value <= +props.mobileMaxWidth;
|
|
13321
|
+
});
|
|
13315
13322
|
function refreshList(pageChange = false) {
|
|
13316
13323
|
emits("refreshList", pageChange);
|
|
13317
13324
|
}
|
|
@@ -13322,6 +13329,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13322
13329
|
console.log("ERROR ck-table", "The columns list should be an object");
|
|
13323
13330
|
}
|
|
13324
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
|
+
});
|
|
13325
13345
|
return (_ctx, _cache) => {
|
|
13326
13346
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13327
13347
|
__props.hasColumnsManager && unref$1(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
@@ -13354,7 +13374,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13354
13374
|
createElementVNode("table", {
|
|
13355
13375
|
class: normalizeClass(["ck-table__table", { "not-full-width": __props.notFullWidth }])
|
|
13356
13376
|
}, [
|
|
13357
|
-
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, [
|
|
13358
13378
|
createVNode(ckTr, null, {
|
|
13359
13379
|
default: withCtx(() => [
|
|
13360
13380
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
@@ -13368,7 +13388,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13368
13388
|
})
|
|
13369
13389
|
])) : createCommentVNode("", true),
|
|
13370
13390
|
createElementVNode("tbody", null, [
|
|
13371
|
-
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)
|
|
13372
13394
|
]),
|
|
13373
13395
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
13374
13396
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
@@ -13389,7 +13411,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13389
13411
|
};
|
|
13390
13412
|
}
|
|
13391
13413
|
});
|
|
13392
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
13414
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6ea45185"]]);
|
|
13393
13415
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13394
13416
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
13395
13417
|
props: {
|