cleek 2.0.5 → 2.0.6
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 +58 -14
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
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, computed, watch, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId,
|
|
20
|
+
import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, unref, normalizeStyle, ref, getCurrentInstance, onMounted, withCtx, createTextVNode, toDisplayString, withDirectives, isRef, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var validators = {
|
|
22
22
|
size: (type) => {
|
|
23
23
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -11236,7 +11236,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
11236
11236
|
}
|
|
11237
11237
|
return target;
|
|
11238
11238
|
};
|
|
11239
|
-
const _sfc_main$
|
|
11239
|
+
const _sfc_main$l = {
|
|
11240
11240
|
name: "CkIcon",
|
|
11241
11241
|
components: {
|
|
11242
11242
|
FontAwesomeIcon
|
|
@@ -11283,8 +11283,8 @@ const _sfc_main$k = {
|
|
|
11283
11283
|
}
|
|
11284
11284
|
}
|
|
11285
11285
|
};
|
|
11286
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11287
|
-
const _hoisted_1$
|
|
11286
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$b], ["__scopeId", "data-v-77d9963a"]]);
|
|
11287
|
+
const _hoisted_1$i = ["title", "aria-label", "disabled"];
|
|
11288
11288
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11289
11289
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
11290
11290
|
return openBlock(), createElementBlock("button", {
|
|
@@ -11308,13 +11308,13 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11308
11308
|
icon: $props.iconRight,
|
|
11309
11309
|
"icon-pack": $props.iconPack
|
|
11310
11310
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11311
|
-
], 10, _hoisted_1$
|
|
11311
|
+
], 10, _hoisted_1$i);
|
|
11312
11312
|
}
|
|
11313
11313
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11314
11314
|
const defaultType = "outlined";
|
|
11315
11315
|
const defaultColor = "primary";
|
|
11316
11316
|
const defaultAlign = "left";
|
|
11317
|
-
const _sfc_main$
|
|
11317
|
+
const _sfc_main$k = {
|
|
11318
11318
|
name: "CkButton",
|
|
11319
11319
|
components: {
|
|
11320
11320
|
ckIcon
|
|
@@ -11368,9 +11368,9 @@ const _sfc_main$j = {
|
|
|
11368
11368
|
}
|
|
11369
11369
|
}
|
|
11370
11370
|
};
|
|
11371
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11371
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", render$a], ["__scopeId", "data-v-a687842a"]]);
|
|
11372
11372
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-69dfa524"), n = n(), popScopeId(), n);
|
|
11373
|
-
const _hoisted_1$
|
|
11373
|
+
const _hoisted_1$h = ["disabled", "checked"];
|
|
11374
11374
|
const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
11375
11375
|
const _hoisted_3$5 = {
|
|
11376
11376
|
key: 0,
|
|
@@ -11395,7 +11395,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11395
11395
|
$options.value = $event.target.checked;
|
|
11396
11396
|
$options.onChange($event);
|
|
11397
11397
|
})
|
|
11398
|
-
}, null, 40, _hoisted_1$
|
|
11398
|
+
}, null, 40, _hoisted_1$h),
|
|
11399
11399
|
_hoisted_2$8,
|
|
11400
11400
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
11401
11401
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -11403,7 +11403,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11403
11403
|
], 16);
|
|
11404
11404
|
}
|
|
11405
11405
|
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11406
|
-
const _sfc_main$
|
|
11406
|
+
const _sfc_main$j = {
|
|
11407
11407
|
name: "CkCheckbox",
|
|
11408
11408
|
props: {
|
|
11409
11409
|
modelValue: { type: Boolean, default: false },
|
|
@@ -11436,7 +11436,50 @@ const _sfc_main$i = {
|
|
|
11436
11436
|
}
|
|
11437
11437
|
}
|
|
11438
11438
|
};
|
|
11439
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11439
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", render$9], ["__scopeId", "data-v-69dfa524"]]);
|
|
11440
|
+
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11441
|
+
const _hoisted_1$g = ["color"];
|
|
11442
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11443
|
+
props: {
|
|
11444
|
+
size: { type: String, default: "s" },
|
|
11445
|
+
color: { type: String, default: "primary" },
|
|
11446
|
+
textColor: { type: String, default: void 0 },
|
|
11447
|
+
icon: { type: String, default: void 0 },
|
|
11448
|
+
iconPack: { type: String, default: void 0 }
|
|
11449
|
+
},
|
|
11450
|
+
emits: ["click"],
|
|
11451
|
+
setup(__props, { emit: emits }) {
|
|
11452
|
+
const props = __props;
|
|
11453
|
+
const computedClass = computed(() => {
|
|
11454
|
+
return [
|
|
11455
|
+
`size-${props.size}`,
|
|
11456
|
+
`ck-component__bg-color--${props.color}`
|
|
11457
|
+
];
|
|
11458
|
+
});
|
|
11459
|
+
const computedStyle = computed(() => {
|
|
11460
|
+
const list = [];
|
|
11461
|
+
if (props.color)
|
|
11462
|
+
;
|
|
11463
|
+
return list;
|
|
11464
|
+
});
|
|
11465
|
+
return (_ctx, _cache) => {
|
|
11466
|
+
return openBlock(), createElementBlock("div", {
|
|
11467
|
+
class: normalizeClass(["ck-chip", unref(computedClass)]),
|
|
11468
|
+
color: __props.color,
|
|
11469
|
+
style: normalizeStyle(unref(computedStyle)),
|
|
11470
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
11471
|
+
}, [
|
|
11472
|
+
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
11473
|
+
key: 0,
|
|
11474
|
+
icon: __props.icon,
|
|
11475
|
+
"icon-pack": __props.iconPack
|
|
11476
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11477
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11478
|
+
], 14, _hoisted_1$g);
|
|
11479
|
+
};
|
|
11480
|
+
}
|
|
11481
|
+
});
|
|
11482
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-73ff343b"]]);
|
|
11440
11483
|
var ckImg_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11441
11484
|
const _hoisted_1$f = ["src", "alt"];
|
|
11442
11485
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -12591,14 +12634,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12591
12634
|
icon: "columns",
|
|
12592
12635
|
type: "filled",
|
|
12593
12636
|
title: "Administrador de columnas",
|
|
12594
|
-
group: unref(itemsPerPageIsVisible) || !unref(hideSearch) ? "
|
|
12637
|
+
group: unref(itemsPerPageIsVisible) || !unref(hideSearch) ? "right" : "",
|
|
12595
12638
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
|
|
12596
12639
|
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
12597
12640
|
]);
|
|
12598
12641
|
};
|
|
12599
12642
|
}
|
|
12600
12643
|
});
|
|
12601
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
12644
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-38244f67"]]);
|
|
12602
12645
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12603
12646
|
const _hoisted_1$4 = { class: "ck-table__pagination" };
|
|
12604
12647
|
const _hoisted_2$2 = ["onClick"];
|
|
@@ -15651,6 +15694,7 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
15651
15694
|
[Symbol.toStringTag]: "Module",
|
|
15652
15695
|
ckButton,
|
|
15653
15696
|
ckCheckbox,
|
|
15697
|
+
ckChip,
|
|
15654
15698
|
ckIcon,
|
|
15655
15699
|
ckImg,
|
|
15656
15700
|
ckInput,
|
|
@@ -15702,4 +15746,4 @@ const install = function installCleek(app, options) {
|
|
|
15702
15746
|
app.component(componentName, component);
|
|
15703
15747
|
});
|
|
15704
15748
|
};
|
|
15705
|
-
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckIcon, ckImg, ckInput, ckLabel, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|
|
15749
|
+
export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckIcon, ckImg, ckInput, ckLabel, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
|