cleek 2.3.45 → 2.3.48
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 -31
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -16465,7 +16465,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
16465
16465
|
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ddf67f32"]]);
|
|
16466
16466
|
var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16467
16467
|
const _hoisted_1$j = { class: "ck-notify__container" };
|
|
16468
|
-
const _hoisted_2$
|
|
16468
|
+
const _hoisted_2$9 = { class: "ck-notify__title" };
|
|
16469
16469
|
const _hoisted_3$6 = { class: "close-btn" };
|
|
16470
16470
|
const _hoisted_4$4 = { class: "ck-notify__text" };
|
|
16471
16471
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
@@ -16517,7 +16517,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16517
16517
|
style: normalizeStyle({ "background-color": globalColor.value }),
|
|
16518
16518
|
onClick: _cache[0] || (_cache[0] = ($event) => closeNotification())
|
|
16519
16519
|
}, [
|
|
16520
|
-
createElementVNode("div", _hoisted_2$
|
|
16520
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
16521
16521
|
createElementVNode("div", _hoisted_3$6, [
|
|
16522
16522
|
createVNode(ckIcon, { icon: "times" })
|
|
16523
16523
|
]),
|
|
@@ -17107,7 +17107,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17107
17107
|
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ad4db5f6"]]);
|
|
17108
17108
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
17109
17109
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
17110
|
-
const _hoisted_2$
|
|
17110
|
+
const _hoisted_2$8 = ["onClick"];
|
|
17111
17111
|
const _hoisted_3$5 = ["onClick"];
|
|
17112
17112
|
const itemsShowed = 5;
|
|
17113
17113
|
const __default__ = {
|
|
@@ -17202,7 +17202,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
17202
17202
|
return openBlock(), createElementBlock("div", {
|
|
17203
17203
|
class: "ck-table__pagination-item pagination-item__left",
|
|
17204
17204
|
onClick: ($event) => _ctx.updateCurrentPage(num)
|
|
17205
|
-
}, toDisplayString(num), 9, _hoisted_2$
|
|
17205
|
+
}, toDisplayString(num), 9, _hoisted_2$8);
|
|
17206
17206
|
}), 256)),
|
|
17207
17207
|
createVNode(ckInput, {
|
|
17208
17208
|
class: "ck-table__pagination-input",
|
|
@@ -18010,7 +18010,7 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
18010
18010
|
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18011
18011
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-132565da"), n = n(), popScopeId(), n);
|
|
18012
18012
|
const _hoisted_1$b = ["disabled", "checked"];
|
|
18013
|
-
const _hoisted_2$
|
|
18013
|
+
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
18014
18014
|
const _hoisted_3$4 = {
|
|
18015
18015
|
key: 0,
|
|
18016
18016
|
class: "c-Checkbox__label"
|
|
@@ -18064,7 +18064,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
18064
18064
|
onChange2($event);
|
|
18065
18065
|
})
|
|
18066
18066
|
}, null, 40, _hoisted_1$b),
|
|
18067
|
-
_hoisted_2$
|
|
18067
|
+
_hoisted_2$7,
|
|
18068
18068
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
18069
18069
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18070
18070
|
])) : createCommentVNode("", true)
|
|
@@ -18078,7 +18078,7 @@ const _hoisted_1$a = {
|
|
|
18078
18078
|
key: 0,
|
|
18079
18079
|
class: "ck-popup"
|
|
18080
18080
|
};
|
|
18081
|
-
const _hoisted_2$
|
|
18081
|
+
const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
|
|
18082
18082
|
const _hoisted_3$3 = { class: "ck-popup__slot-header" };
|
|
18083
18083
|
const _hoisted_4$3 = {
|
|
18084
18084
|
key: 0,
|
|
@@ -18138,7 +18138,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18138
18138
|
}
|
|
18139
18139
|
return (_ctx, _cache) => {
|
|
18140
18140
|
return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
18141
|
-
_hoisted_2$
|
|
18141
|
+
_hoisted_2$6,
|
|
18142
18142
|
createElementVNode("div", {
|
|
18143
18143
|
class: "popup-container",
|
|
18144
18144
|
onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
|
|
@@ -18194,7 +18194,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18194
18194
|
});
|
|
18195
18195
|
var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18196
18196
|
const _hoisted_1$9 = { class: "columns-manger-container" };
|
|
18197
|
-
const _hoisted_2$
|
|
18197
|
+
const _hoisted_2$5 = { class: "columns-manger__item" };
|
|
18198
18198
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18199
18199
|
props: {
|
|
18200
18200
|
modelValue: { type: Boolean, required: true },
|
|
@@ -18243,7 +18243,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18243
18243
|
default: withCtx(() => [
|
|
18244
18244
|
createElementVNode("div", _hoisted_1$9, [
|
|
18245
18245
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(columnsCheckable), (col) => {
|
|
18246
|
-
return openBlock(), createElementBlock("div", _hoisted_2$
|
|
18246
|
+
return openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
18247
18247
|
createVNode(ckCheckbox, {
|
|
18248
18248
|
modelValue: col.value,
|
|
18249
18249
|
"onUpdate:modelValue": ($event) => col.value = $event,
|
|
@@ -18542,7 +18542,7 @@ var App;
|
|
|
18542
18542
|
var ckTable_vue_vue_type_style_index_0_lang = "";
|
|
18543
18543
|
var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
18544
18544
|
const _hoisted_1$8 = { class: "ck-table" };
|
|
18545
|
-
const _hoisted_2$
|
|
18545
|
+
const _hoisted_2$4 = {
|
|
18546
18546
|
key: 0,
|
|
18547
18547
|
class: "ck-table__header"
|
|
18548
18548
|
};
|
|
@@ -18656,7 +18656,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18656
18656
|
columns: __props.columns
|
|
18657
18657
|
}, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
|
|
18658
18658
|
createElementVNode("div", _hoisted_1$8, [
|
|
18659
|
-
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18659
|
+
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
18660
18660
|
createVNode(TableHeaderItems, {
|
|
18661
18661
|
search: unref$1(searchLocal),
|
|
18662
18662
|
"onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
@@ -18928,7 +18928,7 @@ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-bcb0
|
|
|
18928
18928
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18929
18929
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
|
|
18930
18930
|
const _hoisted_1$5 = ["onKeyup"];
|
|
18931
|
-
const _hoisted_2$
|
|
18931
|
+
const _hoisted_2$3 = ["name", "value", "disabled"];
|
|
18932
18932
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
18933
18933
|
const _hoisted_4$1 = {
|
|
18934
18934
|
key: 0,
|
|
@@ -18983,7 +18983,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18983
18983
|
name: __props.name,
|
|
18984
18984
|
value: item.value,
|
|
18985
18985
|
disabled: __props.disabled
|
|
18986
|
-
}, null, 8, _hoisted_2$
|
|
18986
|
+
}, null, 8, _hoisted_2$3), [
|
|
18987
18987
|
[vModelRadio, unref$1(value)]
|
|
18988
18988
|
]),
|
|
18989
18989
|
_hoisted_3$1,
|
|
@@ -18995,23 +18995,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18995
18995
|
});
|
|
18996
18996
|
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a5198d80"]]);
|
|
18997
18997
|
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
18998
|
-
const _hoisted_1$4 = ["
|
|
18998
|
+
const _hoisted_1$4 = ["disabled"];
|
|
18999
|
+
const _hoisted_2$2 = ["value"];
|
|
18999
19000
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
19000
19001
|
props: {
|
|
19001
19002
|
modelValue: { default: null, type: [Boolean, Number, Object, Array, String] },
|
|
19002
|
-
prop: { type: String, default:
|
|
19003
|
+
prop: { type: String, default: void 0 },
|
|
19004
|
+
reduceValueProp: { type: String, default: "id" },
|
|
19005
|
+
reduceNameProp: { type: String, default: "name" },
|
|
19003
19006
|
autofocus: { type: Boolean, default: false },
|
|
19004
19007
|
noDataText: { type: String, default: "No se encontr\xF3 nada" },
|
|
19005
19008
|
notReduce: { type: Boolean, default: false },
|
|
19009
|
+
notReduceValue: { type: Boolean, default: false },
|
|
19006
19010
|
options: { type: Array, default: () => [] },
|
|
19007
|
-
|
|
19011
|
+
reduceNameFunction: { type: Function, default: void 0 },
|
|
19012
|
+
reduceValueFunction: { type: Function, default: void 0 },
|
|
19008
19013
|
notClearable: { type: Boolean, default: false },
|
|
19009
19014
|
clearValue: { type: [Boolean, String], default: "auto" },
|
|
19010
19015
|
searchable: { type: [Boolean, String], default: "auto" },
|
|
19011
19016
|
minWidth: { type: String, default: "180px" },
|
|
19012
19017
|
noBorder: { type: Boolean, default: false },
|
|
19013
19018
|
bgTransparent: { type: Boolean, default: false },
|
|
19014
|
-
disabled: { type:
|
|
19019
|
+
disabled: { type: Boolean, default: false },
|
|
19015
19020
|
group: { type: String, default: "" },
|
|
19016
19021
|
widthBreaks: { type: Array, default: void 0 },
|
|
19017
19022
|
groupVertical: { type: String, default: "" },
|
|
@@ -19097,7 +19102,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19097
19102
|
if (!props.modelValue)
|
|
19098
19103
|
return null;
|
|
19099
19104
|
if (props.modelValue.constructor === Array) {
|
|
19100
|
-
return props.modelValue.length
|
|
19105
|
+
return props.modelValue.length === 0;
|
|
19101
19106
|
}
|
|
19102
19107
|
return Object.keys(props.modelValue).length === 0;
|
|
19103
19108
|
default:
|
|
@@ -19110,18 +19115,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19110
19115
|
function onChange2(event) {
|
|
19111
19116
|
emits("change", event);
|
|
19112
19117
|
}
|
|
19113
|
-
function
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
if (!props.prop)
|
|
19118
|
+
function getOptionValue(option) {
|
|
19119
|
+
if (props.reduceValueFunction)
|
|
19120
|
+
return props.reduceValueFunction(option);
|
|
19121
|
+
if (props.notReduceValue || props.notReduce)
|
|
19118
19122
|
return option;
|
|
19119
|
-
return option[props.
|
|
19123
|
+
return option[props.reduceValueProp];
|
|
19120
19124
|
}
|
|
19121
|
-
function
|
|
19125
|
+
function getOptionName(option) {
|
|
19126
|
+
if (props.reduceNameFunction)
|
|
19127
|
+
return props.reduceNameFunction(option);
|
|
19122
19128
|
if (props.notReduce)
|
|
19123
19129
|
return option;
|
|
19124
|
-
return props.
|
|
19130
|
+
return option[props.prop || props.reduceNameProp];
|
|
19125
19131
|
}
|
|
19126
19132
|
function setFocus() {
|
|
19127
19133
|
}
|
|
@@ -19143,23 +19149,24 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
19143
19149
|
withDirectives(createElementVNode("select", {
|
|
19144
19150
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
19145
19151
|
class: normalizeClass(unref$1(computedClassSelect)),
|
|
19152
|
+
disabled: __props.disabled,
|
|
19146
19153
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
19147
19154
|
onChange: _cache[2] || (_cache[2] = ($event) => onChange2($event))
|
|
19148
19155
|
}, [
|
|
19149
19156
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredOptions), (option) => {
|
|
19150
19157
|
return openBlock(), createElementBlock("option", {
|
|
19151
|
-
value:
|
|
19158
|
+
value: getOptionValue(option),
|
|
19152
19159
|
key: option
|
|
19153
|
-
}, toDisplayString(getOptionName(option)), 9,
|
|
19160
|
+
}, toDisplayString(getOptionName(option)), 9, _hoisted_2$2);
|
|
19154
19161
|
}), 128))
|
|
19155
|
-
],
|
|
19162
|
+
], 42, _hoisted_1$4), [
|
|
19156
19163
|
[vModelSelect, unref$1(value)]
|
|
19157
19164
|
])
|
|
19158
19165
|
], 4);
|
|
19159
19166
|
};
|
|
19160
19167
|
}
|
|
19161
19168
|
});
|
|
19162
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
19169
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7c5ab996"]]);
|
|
19163
19170
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
19164
19171
|
const _withScopeId = (n) => (pushScopeId("data-v-7e2f20c4"), n = n(), popScopeId(), n);
|
|
19165
19172
|
const _hoisted_1$3 = ["disabled"];
|