cleek 2.0.8 → 2.1.2
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 +46 -34
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -77,6 +77,11 @@ var functions$1 = {
|
|
|
77
77
|
isColumnDisplayed(column) {
|
|
78
78
|
if (column.isDisplayed === false)
|
|
79
79
|
return false;
|
|
80
|
+
if (column.unchangeable) {
|
|
81
|
+
if (column.isDisplayed === true)
|
|
82
|
+
return true;
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
80
85
|
return true;
|
|
81
86
|
},
|
|
82
87
|
getCleekOptions(getCurrentInstance2) {
|
|
@@ -13105,7 +13110,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
13105
13110
|
});
|
|
13106
13111
|
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31af160a"]]);
|
|
13107
13112
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13108
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
13113
|
+
const _withScopeId = (n) => (pushScopeId("data-v-35213eec"), n = n(), popScopeId(), n);
|
|
13109
13114
|
const _hoisted_1$9 = ["disabled"];
|
|
13110
13115
|
const _hoisted_2$4 = { class: "ck-switch__slider-container" };
|
|
13111
13116
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
@@ -13115,7 +13120,7 @@ const _hoisted_4$1 = {
|
|
|
13115
13120
|
};
|
|
13116
13121
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
13117
13122
|
props: {
|
|
13118
|
-
modelValue: { type: Boolean, default: false },
|
|
13123
|
+
modelValue: { type: [Boolean, Number], default: false },
|
|
13119
13124
|
disabled: { type: Boolean, default: false },
|
|
13120
13125
|
outlined: { type: Boolean, default: false },
|
|
13121
13126
|
squared: { type: Boolean, default: false },
|
|
@@ -13192,7 +13197,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
13192
13197
|
};
|
|
13193
13198
|
}
|
|
13194
13199
|
});
|
|
13195
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
13200
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-35213eec"]]);
|
|
13196
13201
|
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13197
13202
|
const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
|
|
13198
13203
|
const _hoisted_2$3 = ["onClick"];
|
|
@@ -13577,12 +13582,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13577
13582
|
console.log("hoola");
|
|
13578
13583
|
const list = [];
|
|
13579
13584
|
props.columnsArray.forEach((col) => {
|
|
13580
|
-
if (
|
|
13585
|
+
if (!col.unchangeable) {
|
|
13581
13586
|
list.push({
|
|
13582
13587
|
name: col.name,
|
|
13583
13588
|
title: col.title,
|
|
13584
13589
|
value: functions$1.isColumnDisplayed(col)
|
|
13585
13590
|
});
|
|
13591
|
+
}
|
|
13586
13592
|
});
|
|
13587
13593
|
columnsCheckable.value = list;
|
|
13588
13594
|
}
|
|
@@ -13618,7 +13624,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13618
13624
|
};
|
|
13619
13625
|
}
|
|
13620
13626
|
});
|
|
13621
|
-
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
13627
|
+
var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e6aed8c8"]]);
|
|
13622
13628
|
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13623
13629
|
const _hoisted_1$2 = { class: "ck-table" };
|
|
13624
13630
|
const _hoisted_2 = {
|
|
@@ -13629,7 +13635,7 @@ const _hoisted_3 = {
|
|
|
13629
13635
|
key: 1,
|
|
13630
13636
|
class: "ck-table__header--slot"
|
|
13631
13637
|
};
|
|
13632
|
-
const _hoisted_4 = { class: "ck-table__table" };
|
|
13638
|
+
const _hoisted_4 = { class: "ck-table__table-container" };
|
|
13633
13639
|
const _hoisted_5 = { key: 0 };
|
|
13634
13640
|
const _hoisted_6 = { key: 1 };
|
|
13635
13641
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -13643,7 +13649,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13643
13649
|
search: { type: String, default: void 0 },
|
|
13644
13650
|
hideHeaderActions: { type: Boolean, default: false },
|
|
13645
13651
|
hideRefreshBtn: { type: Boolean, default: false },
|
|
13646
|
-
hideItemsPerPage: { type: Boolean, default: false }
|
|
13652
|
+
hideItemsPerPage: { type: Boolean, default: false },
|
|
13653
|
+
notFullWidth: { type: Boolean, default: false }
|
|
13647
13654
|
},
|
|
13648
13655
|
emits: ["refreshList", "update:search", "update:currentPage"],
|
|
13649
13656
|
setup(__props, { emit: emits }) {
|
|
@@ -13721,28 +13728,33 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13721
13728
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
13722
13729
|
])) : createCommentVNode("", true)
|
|
13723
13730
|
])) : createCommentVNode("", true),
|
|
13724
|
-
createElementVNode("
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13731
|
+
createElementVNode("div", _hoisted_4, [
|
|
13732
|
+
createElementVNode("table", {
|
|
13733
|
+
class: normalizeClass(["ck-table__table", { "not-full-width": __props.notFullWidth }])
|
|
13734
|
+
}, [
|
|
13735
|
+
unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
13736
|
+
createVNode(ckTr, null, {
|
|
13737
|
+
default: withCtx(() => [
|
|
13738
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
13739
|
+
return openBlock(), createBlock(_sfc_main$7, {
|
|
13740
|
+
key: col.title,
|
|
13741
|
+
col
|
|
13742
|
+
}, null, 8, ["col"]);
|
|
13743
|
+
}), 128))
|
|
13744
|
+
]),
|
|
13745
|
+
_: 1
|
|
13746
|
+
})
|
|
13747
|
+
])) : createCommentVNode("", true),
|
|
13748
|
+
createElementVNode("tbody", null, [
|
|
13749
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13750
|
+
]),
|
|
13751
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_6, [
|
|
13752
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
13753
|
+
])) : createCommentVNode("", true)
|
|
13754
|
+
], 2)
|
|
13744
13755
|
]),
|
|
13745
13756
|
createVNode(TablePagination, {
|
|
13757
|
+
class: "ck-table__pagination",
|
|
13746
13758
|
currentPage: unref$1(currentPageLocal),
|
|
13747
13759
|
"onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
|
|
13748
13760
|
itemsPerPage: __props.itemsPerPage,
|
|
@@ -13755,12 +13767,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13755
13767
|
};
|
|
13756
13768
|
}
|
|
13757
13769
|
});
|
|
13758
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
13770
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a5722810"]]);
|
|
13759
13771
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13760
13772
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
13761
13773
|
props: {
|
|
13762
13774
|
col: { type: Object, default: void 0 },
|
|
13763
|
-
|
|
13775
|
+
nowrap: { type: Boolean, default: false },
|
|
13764
13776
|
block: { type: Boolean, default: false },
|
|
13765
13777
|
autoWidth: { type: Boolean, default: false },
|
|
13766
13778
|
align: { type: String, default: void 0, validator: validators.align },
|
|
@@ -13792,7 +13804,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13792
13804
|
if (props.block)
|
|
13793
13805
|
list.push("block");
|
|
13794
13806
|
if (props.block)
|
|
13795
|
-
list.push("wrap-text");
|
|
13807
|
+
list.push("no-wrap-text");
|
|
13796
13808
|
return list;
|
|
13797
13809
|
});
|
|
13798
13810
|
const computedStyle = computed$2(() => {
|
|
@@ -13829,7 +13841,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13829
13841
|
};
|
|
13830
13842
|
}
|
|
13831
13843
|
});
|
|
13832
|
-
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
13844
|
+
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-47b8a441"]]);
|
|
13833
13845
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13834
13846
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
13835
13847
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -16332,13 +16344,13 @@ const _hoisted_1 = {
|
|
|
16332
16344
|
};
|
|
16333
16345
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16334
16346
|
props: {
|
|
16335
|
-
|
|
16347
|
+
text: { type: String, required: true }
|
|
16336
16348
|
},
|
|
16337
16349
|
setup(__props) {
|
|
16338
16350
|
onMounted(() => {
|
|
16339
16351
|
const context = getCurrentInstance().ctx;
|
|
16340
16352
|
tippy$1(context.$el, {
|
|
16341
|
-
content: context.
|
|
16353
|
+
content: context.text
|
|
16342
16354
|
});
|
|
16343
16355
|
});
|
|
16344
16356
|
return (_ctx, _cache) => {
|
|
@@ -16348,7 +16360,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16348
16360
|
};
|
|
16349
16361
|
}
|
|
16350
16362
|
});
|
|
16351
|
-
var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
16363
|
+
var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-00df84d4"]]);
|
|
16352
16364
|
var events = {
|
|
16353
16365
|
OPEN_MODAL: "OPEN_MODAL",
|
|
16354
16366
|
CLOSE_MODAL: "CLOSE_MODAL",
|