cleek 2.4.31 → 2.4.35
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 +50 -14
- package/dist/cleek.umd.js +8 -8
- package/dist/components/ck-button.vue.d.ts +50 -0
- package/dist/components/ck-checkbox.vue.d.ts +26 -0
- package/dist/components/ck-chip.vue.d.ts +27 -0
- package/dist/components/ck-div.vue.d.ts +19 -0
- package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +20 -0
- package/dist/components/ck-icon.vue.d.ts +39 -0
- package/dist/components/ck-img.vue.d.ts +39 -0
- package/dist/components/ck-input.vue.d.ts +75 -0
- package/dist/components/ck-label.vue.d.ts +19 -0
- package/dist/components/ck-navbar/ck-navbar.vue.d.ts +17 -0
- package/dist/components/ck-notify/ck-notify.d.ts +21 -0
- package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +9 -0
- package/dist/components/ck-notify/components/CkNotify.vue.d.ts +8 -0
- package/dist/components/ck-popup.vue.d.ts +64 -0
- package/dist/components/ck-radio.vue.d.ts +34 -0
- package/dist/components/ck-select.vue.d.ts +82 -0
- package/dist/components/ck-sidebar.vue.d.ts +33 -0
- package/dist/components/ck-switch-options.vue.d.ts +42 -0
- package/dist/components/ck-switch.vue.d.ts +31 -0
- package/dist/components/ck-table/ck-table.vue.d.ts +59 -0
- package/dist/components/ck-table/ck-td.vue.d.ts +43 -0
- package/dist/components/ck-table/ck-th.vue.d.ts +17 -0
- package/dist/components/ck-table/ck-tr.vue.d.ts +2 -0
- package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +24 -0
- package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +42 -0
- package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +30 -0
- package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +16 -0
- package/dist/components/ck-textarea.vue.d.ts +28 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/hooks/windowWidth.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/types/cleek-options.d.ts +38 -0
- package/dist/types/table.d.ts +6 -0
- package/dist/utils/functions.d.ts +15 -0
- package/dist/utils/globalVariables.d.ts +6 -0
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -22416,8 +22416,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22416
22416
|
if (props.acceptBtnType)
|
|
22417
22417
|
return props.acceptBtnType;
|
|
22418
22418
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.acceptBtnType)
|
|
22419
|
-
return
|
|
22420
|
-
|
|
22419
|
+
return cleekOptions2.value.popup.acceptBtnType;
|
|
22420
|
+
if ((_b = cleekOptions2.value) == null ? void 0 : _b.button.type)
|
|
22421
|
+
return cleekOptions2.value.button.type;
|
|
22422
|
+
return "outlined";
|
|
22421
22423
|
});
|
|
22422
22424
|
const realCancelBtnType = computed$2(() => {
|
|
22423
22425
|
var _a, _b;
|
|
@@ -22425,7 +22427,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22425
22427
|
return props.cancelBtnType;
|
|
22426
22428
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.cancelBtnType)
|
|
22427
22429
|
return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
|
|
22428
|
-
return "
|
|
22430
|
+
return "flat";
|
|
22429
22431
|
});
|
|
22430
22432
|
function onCancel() {
|
|
22431
22433
|
emits("cancel");
|
|
@@ -23075,7 +23077,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23075
23077
|
reduceNameFunction: null,
|
|
23076
23078
|
reduceValueFunction: null,
|
|
23077
23079
|
notClearable: { type: Boolean },
|
|
23078
|
-
clearValue:
|
|
23080
|
+
clearValue: null,
|
|
23079
23081
|
searchable: { type: [Boolean, String] },
|
|
23080
23082
|
minWidth: null,
|
|
23081
23083
|
width: null,
|
|
@@ -23087,6 +23089,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23087
23089
|
group: null,
|
|
23088
23090
|
groupVertical: null,
|
|
23089
23091
|
widthBreaks: null,
|
|
23092
|
+
icon: null,
|
|
23093
|
+
iconRight: null,
|
|
23094
|
+
iconPack: null,
|
|
23090
23095
|
label: null,
|
|
23091
23096
|
labelAlign: null
|
|
23092
23097
|
},
|
|
@@ -23132,6 +23137,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23132
23137
|
var _a, _b;
|
|
23133
23138
|
const list = [];
|
|
23134
23139
|
list.push(hooks8.getGroupClass(props, windowWidth.value));
|
|
23140
|
+
if (props.icon)
|
|
23141
|
+
list.push("has-icon-left");
|
|
23142
|
+
if (props.iconRight)
|
|
23143
|
+
list.push("has-icon-right");
|
|
23135
23144
|
const layout = props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
|
|
23136
23145
|
if (layout)
|
|
23137
23146
|
list.push(layout);
|
|
@@ -23170,10 +23179,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23170
23179
|
list.push({ "width": props.width });
|
|
23171
23180
|
return list;
|
|
23172
23181
|
});
|
|
23182
|
+
const logicClearValue = computed$2(() => {
|
|
23183
|
+
var _a, _b;
|
|
23184
|
+
if (typeof props.clearValue !== "undefined")
|
|
23185
|
+
return props.clearValue;
|
|
23186
|
+
if (typeof ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.select) == null ? void 0 : _b.clearValue) !== "undefined")
|
|
23187
|
+
return cleekOptions2.value.select.clearValue;
|
|
23188
|
+
return defaultClearValue;
|
|
23189
|
+
});
|
|
23173
23190
|
const realClearValue = computed$2(() => {
|
|
23174
|
-
|
|
23175
|
-
|
|
23176
|
-
return clearValue;
|
|
23191
|
+
if (logicClearValue.value !== "auto")
|
|
23192
|
+
return logicClearValue.value;
|
|
23177
23193
|
switch (typeof props.modelValue) {
|
|
23178
23194
|
case "number":
|
|
23179
23195
|
return 0;
|
|
@@ -23190,9 +23206,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23190
23206
|
}
|
|
23191
23207
|
});
|
|
23192
23208
|
const valueIsDefault = computed$2(() => {
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
return value.value === clearValue;
|
|
23209
|
+
if (logicClearValue.value !== "auto")
|
|
23210
|
+
return value.value === logicClearValue.value;
|
|
23196
23211
|
switch (typeof props.modelValue) {
|
|
23197
23212
|
case "number":
|
|
23198
23213
|
return props.modelValue === 0;
|
|
@@ -23248,15 +23263,29 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23248
23263
|
class: "ck-select",
|
|
23249
23264
|
style: normalizeStyle(unref$1(computedStyle))
|
|
23250
23265
|
}, [
|
|
23251
|
-
|
|
23266
|
+
__props.icon ? (openBlock(), createBlock(CkIcon, {
|
|
23252
23267
|
key: 0,
|
|
23268
|
+
class: "ck-select__icon-left",
|
|
23269
|
+
color: "lightgrey",
|
|
23270
|
+
icon: __props.icon,
|
|
23271
|
+
"icon-pack": __props.iconPack
|
|
23272
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23273
|
+
__props.iconRight ? (openBlock(), createBlock(CkIcon, {
|
|
23274
|
+
key: 1,
|
|
23275
|
+
class: "ck-select__icon-right",
|
|
23276
|
+
color: "lightgrey",
|
|
23277
|
+
icon: __props.iconRight,
|
|
23278
|
+
"icon-pack": __props.iconPack
|
|
23279
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
23280
|
+
unref$1(isClearBtnVisible) ? (openBlock(), createElementBlock("div", {
|
|
23281
|
+
key: 2,
|
|
23253
23282
|
class: "ck-select__clear-btn",
|
|
23254
23283
|
onClick: _cache[0] || (_cache[0] = ($event) => value.value = unref$1(realClearValue))
|
|
23255
23284
|
}, [
|
|
23256
23285
|
createVNode(CkIcon, { icon: "times" })
|
|
23257
23286
|
])) : createCommentVNode("", true),
|
|
23258
23287
|
__props.label ? (openBlock(), createBlock(CkLabel, {
|
|
23259
|
-
key:
|
|
23288
|
+
key: 3,
|
|
23260
23289
|
align: __props.labelAlign,
|
|
23261
23290
|
for: "ck-input"
|
|
23262
23291
|
}, {
|
|
@@ -23286,7 +23315,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23286
23315
|
};
|
|
23287
23316
|
}
|
|
23288
23317
|
});
|
|
23289
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23318
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5b741e99"]]);
|
|
23290
23319
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23291
23320
|
const _hoisted_1$5 = {
|
|
23292
23321
|
key: 0,
|
|
@@ -23746,7 +23775,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23746
23775
|
var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-667c806b"]]);
|
|
23747
23776
|
const defaultDuration = 2e3;
|
|
23748
23777
|
var ckNotify = {
|
|
23749
|
-
|
|
23778
|
+
confirmOptions({
|
|
23750
23779
|
title = "\xBFEst\xE1s seguro?",
|
|
23751
23780
|
msg = "",
|
|
23752
23781
|
acceptText = "Aceptar",
|
|
@@ -23772,6 +23801,13 @@ var ckNotify = {
|
|
|
23772
23801
|
};
|
|
23773
23802
|
document.body.appendChild(instance.$el);
|
|
23774
23803
|
},
|
|
23804
|
+
confirm(msg, success, failure) {
|
|
23805
|
+
this.confirmOptions({
|
|
23806
|
+
msg,
|
|
23807
|
+
success,
|
|
23808
|
+
failure
|
|
23809
|
+
});
|
|
23810
|
+
},
|
|
23775
23811
|
notify({ text: text2 = "", title = "", color = "#ccc", duration = defaultDuration }) {
|
|
23776
23812
|
const tempDiv = document.createElement("div");
|
|
23777
23813
|
const instance = createApp(CkNotifyComponent).mount(tempDiv);
|