cleek 1.6.4 → 1.7.3
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-styles/cleek-mixins.styl +83 -0
- package/dist/cleek.es.js +338 -224
- package/dist/cleek.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value2) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
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, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, isRef, vModelText, createVNode, Fragment, renderList, vModelRadio, vModelCheckbox } from "vue";
|
|
2
21
|
var validators = {
|
|
3
22
|
size: (type) => {
|
|
4
23
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -13,7 +32,7 @@ var validators = {
|
|
|
13
32
|
return ["left", "center", "right"].includes(type);
|
|
14
33
|
},
|
|
15
34
|
buttonType: (type) => {
|
|
16
|
-
return ["filled", "outlined", "
|
|
35
|
+
return ["filled", "outlined", "flat"].includes(type);
|
|
17
36
|
},
|
|
18
37
|
radioOptions: (options) => {
|
|
19
38
|
let isValid = true;
|
|
@@ -87,16 +106,16 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
87
106
|
_defineProperties(Constructor, staticProps);
|
|
88
107
|
return Constructor;
|
|
89
108
|
}
|
|
90
|
-
function _defineProperty(obj, key,
|
|
109
|
+
function _defineProperty(obj, key, value2) {
|
|
91
110
|
if (key in obj) {
|
|
92
111
|
Object.defineProperty(obj, key, {
|
|
93
|
-
value,
|
|
112
|
+
value: value2,
|
|
94
113
|
enumerable: true,
|
|
95
114
|
configurable: true,
|
|
96
115
|
writable: true
|
|
97
116
|
});
|
|
98
117
|
} else {
|
|
99
|
-
obj[key] =
|
|
118
|
+
obj[key] = value2;
|
|
100
119
|
}
|
|
101
120
|
return obj;
|
|
102
121
|
}
|
|
@@ -10858,16 +10877,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
10858
10877
|
} : function(obj) {
|
|
10859
10878
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
10860
10879
|
};
|
|
10861
|
-
var defineProperty = function(obj, key,
|
|
10880
|
+
var defineProperty = function(obj, key, value2) {
|
|
10862
10881
|
if (key in obj) {
|
|
10863
10882
|
Object.defineProperty(obj, key, {
|
|
10864
|
-
value,
|
|
10883
|
+
value: value2,
|
|
10865
10884
|
enumerable: true,
|
|
10866
10885
|
configurable: true,
|
|
10867
10886
|
writable: true
|
|
10868
10887
|
});
|
|
10869
10888
|
} else {
|
|
10870
|
-
obj[key] =
|
|
10889
|
+
obj[key] = value2;
|
|
10871
10890
|
}
|
|
10872
10891
|
return obj;
|
|
10873
10892
|
};
|
|
@@ -10910,8 +10929,8 @@ function styleToObject(style) {
|
|
|
10910
10929
|
}).reduce(function(output, pair) {
|
|
10911
10930
|
var idx = pair.indexOf(":");
|
|
10912
10931
|
var prop = humps.camelize(pair.slice(0, idx));
|
|
10913
|
-
var
|
|
10914
|
-
output[prop] =
|
|
10932
|
+
var value2 = pair.slice(idx + 1).trim();
|
|
10933
|
+
output[prop] = value2;
|
|
10915
10934
|
return output;
|
|
10916
10935
|
}, {});
|
|
10917
10936
|
}
|
|
@@ -10931,16 +10950,16 @@ function convert(abstractElement) {
|
|
|
10931
10950
|
return convert(child);
|
|
10932
10951
|
});
|
|
10933
10952
|
var mixins = Object.keys(abstractElement.attributes || {}).reduce(function(mixins2, key) {
|
|
10934
|
-
var
|
|
10953
|
+
var value2 = abstractElement.attributes[key];
|
|
10935
10954
|
switch (key) {
|
|
10936
10955
|
case "class":
|
|
10937
|
-
mixins2.class = classToObject(
|
|
10956
|
+
mixins2.class = classToObject(value2);
|
|
10938
10957
|
break;
|
|
10939
10958
|
case "style":
|
|
10940
|
-
mixins2.style = styleToObject(
|
|
10959
|
+
mixins2.style = styleToObject(value2);
|
|
10941
10960
|
break;
|
|
10942
10961
|
default:
|
|
10943
|
-
mixins2.attrs[key] =
|
|
10962
|
+
mixins2.attrs[key] = value2;
|
|
10944
10963
|
}
|
|
10945
10964
|
return mixins2;
|
|
10946
10965
|
}, {
|
|
@@ -10966,8 +10985,8 @@ function log() {
|
|
|
10966
10985
|
(_console = console).error.apply(_console, arguments);
|
|
10967
10986
|
}
|
|
10968
10987
|
}
|
|
10969
|
-
function objectWithKey(key,
|
|
10970
|
-
return Array.isArray(
|
|
10988
|
+
function objectWithKey(key, value2) {
|
|
10989
|
+
return Array.isArray(value2) && value2.length > 0 || !Array.isArray(value2) && value2 ? defineProperty({}, key, value2) : {};
|
|
10971
10990
|
}
|
|
10972
10991
|
function classList(props) {
|
|
10973
10992
|
var _classes;
|
|
@@ -11015,8 +11034,8 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11015
11034
|
flip: {
|
|
11016
11035
|
type: String,
|
|
11017
11036
|
default: null,
|
|
11018
|
-
validator: function validator(
|
|
11019
|
-
return ["horizontal", "vertical", "both"].indexOf(
|
|
11037
|
+
validator: function validator(value2) {
|
|
11038
|
+
return ["horizontal", "vertical", "both"].indexOf(value2) > -1;
|
|
11020
11039
|
}
|
|
11021
11040
|
},
|
|
11022
11041
|
icon: {
|
|
@@ -11034,8 +11053,8 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11034
11053
|
pull: {
|
|
11035
11054
|
type: String,
|
|
11036
11055
|
default: null,
|
|
11037
|
-
validator: function validator2(
|
|
11038
|
-
return ["right", "left"].indexOf(
|
|
11056
|
+
validator: function validator2(value2) {
|
|
11057
|
+
return ["right", "left"].indexOf(value2) > -1;
|
|
11039
11058
|
}
|
|
11040
11059
|
},
|
|
11041
11060
|
pulse: {
|
|
@@ -11045,8 +11064,8 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11045
11064
|
rotation: {
|
|
11046
11065
|
type: [String, Number],
|
|
11047
11066
|
default: null,
|
|
11048
|
-
validator: function validator3(
|
|
11049
|
-
return [90, 180, 270].indexOf(Number.parseInt(
|
|
11067
|
+
validator: function validator3(value2) {
|
|
11068
|
+
return [90, 180, 270].indexOf(Number.parseInt(value2, 10)) > -1;
|
|
11050
11069
|
}
|
|
11051
11070
|
},
|
|
11052
11071
|
swapOpacity: {
|
|
@@ -11056,8 +11075,8 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11056
11075
|
size: {
|
|
11057
11076
|
type: String,
|
|
11058
11077
|
default: null,
|
|
11059
|
-
validator: function validator4(
|
|
11060
|
-
return ["lg", "xs", "sm", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"].indexOf(
|
|
11078
|
+
validator: function validator4(value2) {
|
|
11079
|
+
return ["lg", "xs", "sm", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"].indexOf(value2) > -1;
|
|
11061
11080
|
}
|
|
11062
11081
|
},
|
|
11063
11082
|
spin: {
|
|
@@ -11101,8 +11120,8 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11101
11120
|
title: props.title
|
|
11102
11121
|
}));
|
|
11103
11122
|
});
|
|
11104
|
-
watch(renderedIcon, function(
|
|
11105
|
-
if (!
|
|
11123
|
+
watch(renderedIcon, function(value2) {
|
|
11124
|
+
if (!value2) {
|
|
11106
11125
|
return log("Could not find one or more icon(s)", icon$$1.value, mask.value);
|
|
11107
11126
|
}
|
|
11108
11127
|
}, { immediate: true });
|
|
@@ -11151,8 +11170,8 @@ defineComponent({
|
|
|
11151
11170
|
position: {
|
|
11152
11171
|
type: String,
|
|
11153
11172
|
default: null,
|
|
11154
|
-
validator: function validator5(
|
|
11155
|
-
return ["bottom-left", "bottom-right", "top-left", "top-right"].indexOf(
|
|
11173
|
+
validator: function validator5(value2) {
|
|
11174
|
+
return ["bottom-left", "bottom-right", "top-left", "top-right"].indexOf(value2) > -1;
|
|
11156
11175
|
}
|
|
11157
11176
|
}
|
|
11158
11177
|
},
|
|
@@ -11180,10 +11199,10 @@ defineComponent({
|
|
|
11180
11199
|
};
|
|
11181
11200
|
}
|
|
11182
11201
|
});
|
|
11183
|
-
function render$
|
|
11202
|
+
function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11184
11203
|
const _component_font_awesome_icon = resolveComponent("font-awesome-icon");
|
|
11185
11204
|
return openBlock(), createElementBlock("div", {
|
|
11186
|
-
class: "ck-icon",
|
|
11205
|
+
class: normalizeClass(["ck-icon", $options.computedClass]),
|
|
11187
11206
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.onClick($event))
|
|
11188
11207
|
}, [
|
|
11189
11208
|
$options.computediconPack === "font-awesome" ? (openBlock(), createBlock(_component_font_awesome_icon, {
|
|
@@ -11199,7 +11218,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11199
11218
|
"fixed-width": $props.fixedWidth,
|
|
11200
11219
|
"swap-opacity": $props.swapOpacity
|
|
11201
11220
|
}, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
|
|
11202
|
-
]);
|
|
11221
|
+
], 2);
|
|
11203
11222
|
}
|
|
11204
11223
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11205
11224
|
var _export_sfc = (sfc, props) => {
|
|
@@ -11209,13 +11228,14 @@ var _export_sfc = (sfc, props) => {
|
|
|
11209
11228
|
}
|
|
11210
11229
|
return target;
|
|
11211
11230
|
};
|
|
11212
|
-
const _sfc_main$
|
|
11231
|
+
const _sfc_main$i = {
|
|
11213
11232
|
name: "CkIcon",
|
|
11214
11233
|
components: {
|
|
11215
11234
|
FontAwesomeIcon
|
|
11216
11235
|
},
|
|
11217
11236
|
props: {
|
|
11218
11237
|
icon: { type: [String, Array], default: "" },
|
|
11238
|
+
color: { type: String, default: "" },
|
|
11219
11239
|
iconPack: { type: String, default: "" },
|
|
11220
11240
|
size: { type: String, default: null },
|
|
11221
11241
|
rotation: { type: String, default: null },
|
|
@@ -11236,6 +11256,12 @@ const _sfc_main$h = {
|
|
|
11236
11256
|
if (this.iconPack === "feather")
|
|
11237
11257
|
return this.iconPack;
|
|
11238
11258
|
return defaultPackage;
|
|
11259
|
+
},
|
|
11260
|
+
computedClass() {
|
|
11261
|
+
const classList2 = [];
|
|
11262
|
+
if (this.color)
|
|
11263
|
+
classList2.push(`ck-component__color--${this.color}`);
|
|
11264
|
+
return classList2;
|
|
11239
11265
|
}
|
|
11240
11266
|
},
|
|
11241
11267
|
created() {
|
|
@@ -11249,9 +11275,9 @@ const _sfc_main$h = {
|
|
|
11249
11275
|
}
|
|
11250
11276
|
}
|
|
11251
11277
|
};
|
|
11252
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11253
|
-
const _hoisted_1$
|
|
11254
|
-
function render$
|
|
11278
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", render$g], ["__scopeId", "data-v-77d9963a"]]);
|
|
11279
|
+
const _hoisted_1$f = ["title", "aria-label", "disabled"];
|
|
11280
|
+
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11255
11281
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
11256
11282
|
return openBlock(), createElementBlock("button", {
|
|
11257
11283
|
type: "button",
|
|
@@ -11274,11 +11300,11 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11274
11300
|
icon: $props.iconRight,
|
|
11275
11301
|
"icon-pack": $props.iconPack
|
|
11276
11302
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11277
|
-
], 10, _hoisted_1$
|
|
11303
|
+
], 10, _hoisted_1$f);
|
|
11278
11304
|
}
|
|
11279
11305
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11280
11306
|
const defaults = { type: "outlined" };
|
|
11281
|
-
const _sfc_main$
|
|
11307
|
+
const _sfc_main$h = {
|
|
11282
11308
|
name: "CkButton",
|
|
11283
11309
|
components: {
|
|
11284
11310
|
ckIcon
|
|
@@ -11328,15 +11354,15 @@ const _sfc_main$g = {
|
|
|
11328
11354
|
}
|
|
11329
11355
|
}
|
|
11330
11356
|
};
|
|
11331
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11332
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
11333
|
-
const _hoisted_1$
|
|
11357
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$f], ["__scopeId", "data-v-dfa2f586"]]);
|
|
11358
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-64a6608c"), n = n(), popScopeId(), n);
|
|
11359
|
+
const _hoisted_1$e = ["disabled", "checked"];
|
|
11334
11360
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
11335
11361
|
const _hoisted_3$5 = {
|
|
11336
11362
|
key: 0,
|
|
11337
11363
|
class: "c-Checkbox__label"
|
|
11338
11364
|
};
|
|
11339
|
-
function render$
|
|
11365
|
+
function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11340
11366
|
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, $options.checkboxAttributes, {
|
|
11341
11367
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
11342
11368
|
}, ["prevent"]), ["space"])),
|
|
@@ -11355,7 +11381,7 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11355
11381
|
$options.value = $event.target.checked;
|
|
11356
11382
|
$options.onChange($event);
|
|
11357
11383
|
})
|
|
11358
|
-
}, null, 40, _hoisted_1$
|
|
11384
|
+
}, null, 40, _hoisted_1$e),
|
|
11359
11385
|
_hoisted_2$7,
|
|
11360
11386
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
11361
11387
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -11363,7 +11389,7 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11363
11389
|
], 16);
|
|
11364
11390
|
}
|
|
11365
11391
|
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11366
|
-
const _sfc_main$
|
|
11392
|
+
const _sfc_main$g = {
|
|
11367
11393
|
name: "CkCheckbox",
|
|
11368
11394
|
props: {
|
|
11369
11395
|
modelValue: { type: Boolean, default: false },
|
|
@@ -11396,9 +11422,9 @@ const _sfc_main$f = {
|
|
|
11396
11422
|
}
|
|
11397
11423
|
}
|
|
11398
11424
|
};
|
|
11399
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11400
|
-
const _hoisted_1$
|
|
11401
|
-
function render$
|
|
11425
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$e], ["__scopeId", "data-v-64a6608c"]]);
|
|
11426
|
+
const _hoisted_1$d = ["src"];
|
|
11427
|
+
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11402
11428
|
return openBlock(), createElementBlock("div", {
|
|
11403
11429
|
class: normalizeClass(["ck-img", $options.computedClass]),
|
|
11404
11430
|
style: normalizeStyle($options.computedStyle),
|
|
@@ -11408,11 +11434,11 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11408
11434
|
src: $options.imageUrl,
|
|
11409
11435
|
style: normalizeStyle($options.computedImgStyle),
|
|
11410
11436
|
onError: _cache[0] || (_cache[0] = ($event) => _ctx.altNeeded = true)
|
|
11411
|
-
}, null, 44, _hoisted_1$
|
|
11437
|
+
}, null, 44, _hoisted_1$d)
|
|
11412
11438
|
], 6);
|
|
11413
11439
|
}
|
|
11414
11440
|
var ckImg_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11415
|
-
const _sfc_main$
|
|
11441
|
+
const _sfc_main$f = {
|
|
11416
11442
|
props: {
|
|
11417
11443
|
src: { type: String, default: "" },
|
|
11418
11444
|
isFullPath: { type: Boolean, default: false },
|
|
@@ -11423,6 +11449,7 @@ const _sfc_main$e = {
|
|
|
11423
11449
|
height: { type: String, default: "" },
|
|
11424
11450
|
zoom: { type: Boolean, default: false },
|
|
11425
11451
|
zoomTitle: { type: String, default: "" },
|
|
11452
|
+
hasBorder: { type: Boolean, default: false },
|
|
11426
11453
|
radius: { type: String, default: "" },
|
|
11427
11454
|
borderColor: { type: String, default: "" }
|
|
11428
11455
|
},
|
|
@@ -11440,7 +11467,7 @@ const _sfc_main$e = {
|
|
|
11440
11467
|
}
|
|
11441
11468
|
if (size)
|
|
11442
11469
|
classList2.push(`ck-img__size--${size}`);
|
|
11443
|
-
if (this.
|
|
11470
|
+
if (this.hasBorder) {
|
|
11444
11471
|
classList2.push("ck-img__has-border");
|
|
11445
11472
|
if (functions$1.isColorTemplateVariable(this.realBorderColor)) {
|
|
11446
11473
|
classList2.push(`ck-component__border-color--${this.realBorderColor}`);
|
|
@@ -11458,7 +11485,7 @@ const _sfc_main$e = {
|
|
|
11458
11485
|
}
|
|
11459
11486
|
if (this.radius)
|
|
11460
11487
|
styleList.push({ "border-radius": this.radius });
|
|
11461
|
-
if (this.
|
|
11488
|
+
if (this.hasBorder) {
|
|
11462
11489
|
if (!functions$1.isColorTemplateVariable(this.realBorderColor)) {
|
|
11463
11490
|
styleList.push({ "border-color": this.realBorderColor });
|
|
11464
11491
|
}
|
|
@@ -11496,18 +11523,18 @@ const _sfc_main$e = {
|
|
|
11496
11523
|
}
|
|
11497
11524
|
}
|
|
11498
11525
|
};
|
|
11499
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11500
|
-
const _hoisted_1$
|
|
11501
|
-
function render$
|
|
11526
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", render$d], ["__scopeId", "data-v-38b603bf"]]);
|
|
11527
|
+
const _hoisted_1$c = ["for"];
|
|
11528
|
+
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11502
11529
|
return openBlock(), createElementBlock("label", {
|
|
11503
11530
|
class: normalizeClass(["ck-label", $options.computedClass]),
|
|
11504
11531
|
for: $props.for
|
|
11505
11532
|
}, [
|
|
11506
11533
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11507
|
-
], 10, _hoisted_1$
|
|
11534
|
+
], 10, _hoisted_1$c);
|
|
11508
11535
|
}
|
|
11509
11536
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11510
|
-
const _sfc_main$
|
|
11537
|
+
const _sfc_main$e = {
|
|
11511
11538
|
name: "CkLabel",
|
|
11512
11539
|
props: {
|
|
11513
11540
|
for: { type: String, default: "" },
|
|
@@ -11524,44 +11551,19 @@ const _sfc_main$d = {
|
|
|
11524
11551
|
}
|
|
11525
11552
|
}
|
|
11526
11553
|
};
|
|
11527
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11528
|
-
const _hoisted_1$a = { class: "ck-input-text" };
|
|
11529
|
-
const _hoisted_2$6 = ["id", "placeholder"];
|
|
11530
|
-
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11531
|
-
const _component_ck_label = resolveComponent("ck-label");
|
|
11532
|
-
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
11533
|
-
$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
11534
|
-
key: 0,
|
|
11535
|
-
align: $props.labelAlign,
|
|
11536
|
-
for: "ck-input-text"
|
|
11537
|
-
}, {
|
|
11538
|
-
default: withCtx(() => [
|
|
11539
|
-
createTextVNode(toDisplayString($props.label), 1)
|
|
11540
|
-
]),
|
|
11541
|
-
_: 1
|
|
11542
|
-
}, 8, ["align"])) : createCommentVNode("", true),
|
|
11543
|
-
withDirectives(createElementVNode("input", {
|
|
11544
|
-
id: $props.label ? "ck-input-text" : "",
|
|
11545
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
|
|
11546
|
-
type: "text",
|
|
11547
|
-
placeholder: $props.placeholder,
|
|
11548
|
-
class: normalizeClass($options.computedClass)
|
|
11549
|
-
}, null, 10, _hoisted_2$6), [
|
|
11550
|
-
[vModelText, $options.value]
|
|
11551
|
-
])
|
|
11552
|
-
]);
|
|
11553
|
-
}
|
|
11554
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", render$c], ["__scopeId", "data-v-4b8b9ab4"]]);
|
|
11554
11555
|
var ckInputText_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11555
|
-
const
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
ckLabel
|
|
11559
|
-
},
|
|
11556
|
+
const _hoisted_1$b = { class: "ck-input-text" };
|
|
11557
|
+
const _hoisted_2$6 = ["placeholder", "id"];
|
|
11558
|
+
const __default__$2 = {
|
|
11560
11559
|
props: {
|
|
11561
11560
|
modelValue: { type: String, default: "" },
|
|
11562
11561
|
label: { type: String, default: "" },
|
|
11563
11562
|
placeholder: { type: String, default: "" },
|
|
11564
11563
|
labelAlign: { type: String, default: "" },
|
|
11564
|
+
icon: { type: [String, Array], default: void 0 },
|
|
11565
|
+
iconPack: { type: String, default: void 0 },
|
|
11566
|
+
iconRight: { type: String, default: void 0 },
|
|
11565
11567
|
group: { type: String, default: "" },
|
|
11566
11568
|
groupBreak: { type: String, default: "s" },
|
|
11567
11569
|
groupVertical: { type: String, default: "" }
|
|
@@ -11579,11 +11581,56 @@ const _sfc_main$c = {
|
|
|
11579
11581
|
computedClass() {
|
|
11580
11582
|
const classList2 = [];
|
|
11581
11583
|
classList2.push(functions$1.getGroupClass(this));
|
|
11584
|
+
if (this.icon)
|
|
11585
|
+
classList2.push("has-icon-left");
|
|
11586
|
+
if (this.iconRight)
|
|
11587
|
+
classList2.push("has-icon-right");
|
|
11582
11588
|
return classList2;
|
|
11583
11589
|
}
|
|
11584
11590
|
}
|
|
11585
11591
|
};
|
|
11586
|
-
|
|
11592
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
|
|
11593
|
+
setup(__props) {
|
|
11594
|
+
return (_ctx, _cache) => {
|
|
11595
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
11596
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
11597
|
+
key: 0,
|
|
11598
|
+
align: __props.labelAlign,
|
|
11599
|
+
for: "ck-input-text"
|
|
11600
|
+
}, {
|
|
11601
|
+
default: withCtx(() => [
|
|
11602
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
11603
|
+
]),
|
|
11604
|
+
_: 1
|
|
11605
|
+
}, 8, ["align"])) : createCommentVNode("", true),
|
|
11606
|
+
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
11607
|
+
key: 1,
|
|
11608
|
+
class: "ck-input__icon-left",
|
|
11609
|
+
color: "lightgrey",
|
|
11610
|
+
icon: __props.icon,
|
|
11611
|
+
"icon-pack": __props.iconPack
|
|
11612
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11613
|
+
withDirectives(createElementVNode("input", {
|
|
11614
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
11615
|
+
type: "text",
|
|
11616
|
+
placeholder: __props.placeholder,
|
|
11617
|
+
class: normalizeClass(_ctx.computedClass),
|
|
11618
|
+
id: __props.label ? "ck-input-text" : ""
|
|
11619
|
+
}, null, 10, _hoisted_2$6), [
|
|
11620
|
+
[vModelText, _ctx.value]
|
|
11621
|
+
]),
|
|
11622
|
+
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
11623
|
+
key: 2,
|
|
11624
|
+
class: "ck-input__icon-right",
|
|
11625
|
+
color: "lightgrey",
|
|
11626
|
+
icon: __props.iconRight,
|
|
11627
|
+
"icon-pack": __props.iconPack
|
|
11628
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11629
|
+
]);
|
|
11630
|
+
};
|
|
11631
|
+
}
|
|
11632
|
+
}));
|
|
11633
|
+
var ckInputText = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f952e1d8"]]);
|
|
11587
11634
|
var dist = function(t) {
|
|
11588
11635
|
function e(i) {
|
|
11589
11636
|
if (r[i])
|
|
@@ -12188,14 +12235,14 @@ var dist = function(t) {
|
|
|
12188
12235
|
r(9)(i, {});
|
|
12189
12236
|
i.locals && (t.exports = i.locals);
|
|
12190
12237
|
}]);
|
|
12191
|
-
const _hoisted_1$
|
|
12238
|
+
const _hoisted_1$a = {
|
|
12192
12239
|
key: 0,
|
|
12193
12240
|
class: "ck-popup"
|
|
12194
12241
|
};
|
|
12195
12242
|
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
|
|
12196
12243
|
const _hoisted_3$4 = { class: "ck-popup__slot-header" };
|
|
12197
|
-
const _hoisted_4$
|
|
12198
|
-
const _hoisted_5 = {
|
|
12244
|
+
const _hoisted_4$3 = { class: "ck-popup__slot-body" };
|
|
12245
|
+
const _hoisted_5$1 = {
|
|
12199
12246
|
key: 0,
|
|
12200
12247
|
class: "ck-popup__slot-footer"
|
|
12201
12248
|
};
|
|
@@ -12205,10 +12252,10 @@ const _hoisted_6 = {
|
|
|
12205
12252
|
};
|
|
12206
12253
|
const _hoisted_7 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
12207
12254
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
12208
|
-
function render$
|
|
12255
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12209
12256
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
12210
12257
|
const _component_ck_button = resolveComponent("ck-button");
|
|
12211
|
-
return $options.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12258
|
+
return $options.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
12212
12259
|
_hoisted_2$5,
|
|
12213
12260
|
createElementVNode("div", {
|
|
12214
12261
|
class: "popup-container",
|
|
@@ -12228,10 +12275,10 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12228
12275
|
onClick: _cache[0] || (_cache[0] = ($event) => $options.value = false)
|
|
12229
12276
|
})) : createCommentVNode("", true)
|
|
12230
12277
|
]),
|
|
12231
|
-
createElementVNode("div", _hoisted_4$
|
|
12278
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
12232
12279
|
renderSlot(_ctx.$slots, "body")
|
|
12233
12280
|
]),
|
|
12234
|
-
_ctx.$slots.footer || $props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
12281
|
+
_ctx.$slots.footer || $props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
12235
12282
|
renderSlot(_ctx.$slots, "footer"),
|
|
12236
12283
|
$props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
12237
12284
|
createVNode(_component_ck_button, {
|
|
@@ -12259,7 +12306,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12259
12306
|
])) : createCommentVNode("", true);
|
|
12260
12307
|
}
|
|
12261
12308
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
12262
|
-
const _sfc_main$
|
|
12309
|
+
const _sfc_main$c = {
|
|
12263
12310
|
components: {
|
|
12264
12311
|
ckButton,
|
|
12265
12312
|
ckIcon,
|
|
@@ -12297,16 +12344,16 @@ const _sfc_main$b = {
|
|
|
12297
12344
|
}
|
|
12298
12345
|
}
|
|
12299
12346
|
};
|
|
12300
|
-
var ckPopup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12347
|
+
var ckPopup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", render$b]]);
|
|
12301
12348
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-73a891e8"), n = n(), popScopeId(), n);
|
|
12302
|
-
const _hoisted_1$
|
|
12349
|
+
const _hoisted_1$9 = ["onKeyup"];
|
|
12303
12350
|
const _hoisted_2$4 = ["name", "value", "disabled"];
|
|
12304
12351
|
const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
12305
|
-
const _hoisted_4$
|
|
12352
|
+
const _hoisted_4$2 = {
|
|
12306
12353
|
key: 0,
|
|
12307
12354
|
class: "c-Radio__label"
|
|
12308
12355
|
};
|
|
12309
|
-
function render$
|
|
12356
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12310
12357
|
return openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (item, index) => {
|
|
12311
12358
|
return openBlock(), createElementBlock("label", mergeProps({
|
|
12312
12359
|
key: `radio-${index}`,
|
|
@@ -12331,12 +12378,12 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12331
12378
|
[vModelRadio, $options.value]
|
|
12332
12379
|
]),
|
|
12333
12380
|
_hoisted_3$3,
|
|
12334
|
-
item.label ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
12335
|
-
], 16, _hoisted_1$
|
|
12381
|
+
item.label ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
12382
|
+
], 16, _hoisted_1$9);
|
|
12336
12383
|
}), 128);
|
|
12337
12384
|
}
|
|
12338
12385
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12339
|
-
const _sfc_main$
|
|
12386
|
+
const _sfc_main$b = {
|
|
12340
12387
|
name: "CkRadio",
|
|
12341
12388
|
props: {
|
|
12342
12389
|
modelValue: { type: String, default: void 0 },
|
|
@@ -12362,13 +12409,13 @@ const _sfc_main$a = {
|
|
|
12362
12409
|
}
|
|
12363
12410
|
},
|
|
12364
12411
|
methods: {
|
|
12365
|
-
handleChange(
|
|
12366
|
-
this.value =
|
|
12367
|
-
this.$emit("change",
|
|
12412
|
+
handleChange(value2) {
|
|
12413
|
+
this.value = value2;
|
|
12414
|
+
this.$emit("change", value2);
|
|
12368
12415
|
}
|
|
12369
12416
|
}
|
|
12370
12417
|
};
|
|
12371
|
-
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12418
|
+
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", render$a], ["__scopeId", "data-v-73a891e8"]]);
|
|
12372
12419
|
const qmStr = {
|
|
12373
12420
|
capitalize(str) {
|
|
12374
12421
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -12405,17 +12452,17 @@ const qmStr = {
|
|
|
12405
12452
|
return joinArray;
|
|
12406
12453
|
}
|
|
12407
12454
|
};
|
|
12408
|
-
const _hoisted_1$
|
|
12455
|
+
const _hoisted_1$8 = {
|
|
12409
12456
|
class: "ck-select",
|
|
12410
12457
|
action: "/action_page.php",
|
|
12411
12458
|
method: "get"
|
|
12412
12459
|
};
|
|
12413
12460
|
const _hoisted_2$3 = ["placeholder"];
|
|
12414
12461
|
const _hoisted_3$2 = { id: "ck-select__list" };
|
|
12415
|
-
const _hoisted_4 = ["value"];
|
|
12416
|
-
function render$
|
|
12462
|
+
const _hoisted_4$1 = ["value"];
|
|
12463
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12417
12464
|
const _component_ck_label = resolveComponent("ck-label");
|
|
12418
|
-
return openBlock(), createElementBlock("form", _hoisted_1$
|
|
12465
|
+
return openBlock(), createElementBlock("form", _hoisted_1$8, [
|
|
12419
12466
|
$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
12420
12467
|
key: 0,
|
|
12421
12468
|
align: $props.labelAlign,
|
|
@@ -12439,13 +12486,13 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12439
12486
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (option) => {
|
|
12440
12487
|
return openBlock(), createElementBlock("option", {
|
|
12441
12488
|
value: option.name
|
|
12442
|
-
}, null, 8, _hoisted_4);
|
|
12489
|
+
}, null, 8, _hoisted_4$1);
|
|
12443
12490
|
}), 256))
|
|
12444
12491
|
])
|
|
12445
12492
|
]);
|
|
12446
12493
|
}
|
|
12447
12494
|
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12448
|
-
const _sfc_main$
|
|
12495
|
+
const _sfc_main$a = {
|
|
12449
12496
|
name: "CkSelect",
|
|
12450
12497
|
components: {
|
|
12451
12498
|
ckLabel
|
|
@@ -12579,15 +12626,15 @@ const _sfc_main$9 = {
|
|
|
12579
12626
|
}
|
|
12580
12627
|
}
|
|
12581
12628
|
};
|
|
12582
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12583
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12584
|
-
const _hoisted_1$
|
|
12629
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$9], ["__scopeId", "data-v-b400aa20"]]);
|
|
12630
|
+
const _withScopeId = (n) => (pushScopeId("data-v-5251135b"), n = n(), popScopeId(), n);
|
|
12631
|
+
const _hoisted_1$7 = ["disabled"];
|
|
12585
12632
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
12586
12633
|
const _hoisted_3$1 = {
|
|
12587
12634
|
key: 0,
|
|
12588
12635
|
class: "ck-switch__content"
|
|
12589
12636
|
};
|
|
12590
|
-
function render$
|
|
12637
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12591
12638
|
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, $options.computedAttributes, {
|
|
12592
12639
|
class: $options.computedClass,
|
|
12593
12640
|
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
|
|
@@ -12604,7 +12651,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12604
12651
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
|
|
12605
12652
|
disabled: $props.disabled,
|
|
12606
12653
|
onClick: _cache[1] || (_cache[1] = ($event) => $options.onTrigger())
|
|
12607
|
-
}, null, 8, _hoisted_1$
|
|
12654
|
+
}, null, 8, _hoisted_1$7), [
|
|
12608
12655
|
[vModelCheckbox, $options.value]
|
|
12609
12656
|
]),
|
|
12610
12657
|
_hoisted_2$2,
|
|
@@ -12614,7 +12661,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12614
12661
|
], 16);
|
|
12615
12662
|
}
|
|
12616
12663
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12617
|
-
const _sfc_main$
|
|
12664
|
+
const _sfc_main$9 = {
|
|
12618
12665
|
name: "Switch",
|
|
12619
12666
|
props: {
|
|
12620
12667
|
modelValue: { type: Boolean, default: false },
|
|
@@ -12653,12 +12700,12 @@ const _sfc_main$8 = {
|
|
|
12653
12700
|
}
|
|
12654
12701
|
}
|
|
12655
12702
|
};
|
|
12656
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12657
|
-
const _hoisted_1$
|
|
12703
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$8], ["__scopeId", "data-v-5251135b"]]);
|
|
12704
|
+
const _hoisted_1$6 = { class: "ck-switch-options__container-exterior" };
|
|
12658
12705
|
const _hoisted_2$1 = ["onClick"];
|
|
12659
|
-
function render$
|
|
12706
|
+
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12660
12707
|
const _component_ck_label = resolveComponent("ck-label");
|
|
12661
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12708
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
12662
12709
|
$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
12663
12710
|
key: 0,
|
|
12664
12711
|
align: $props.labelAlign
|
|
@@ -12683,7 +12730,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12683
12730
|
]);
|
|
12684
12731
|
}
|
|
12685
12732
|
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12686
|
-
const _sfc_main$
|
|
12733
|
+
const _sfc_main$8 = {
|
|
12687
12734
|
components: {
|
|
12688
12735
|
ckLabel
|
|
12689
12736
|
},
|
|
@@ -12731,19 +12778,19 @@ const _sfc_main$7 = {
|
|
|
12731
12778
|
}
|
|
12732
12779
|
}
|
|
12733
12780
|
};
|
|
12734
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12735
|
-
const _hoisted_1$
|
|
12736
|
-
function render$
|
|
12737
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$
|
|
12781
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", render$7], ["__scopeId", "data-v-61a29406"]]);
|
|
12782
|
+
const _hoisted_1$5 = { class: "ck-tr" };
|
|
12783
|
+
function render$6(_ctx, _cache) {
|
|
12784
|
+
return openBlock(), createElementBlock("tr", _hoisted_1$5, [
|
|
12738
12785
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12739
12786
|
]);
|
|
12740
12787
|
}
|
|
12741
12788
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12742
|
-
const _sfc_main$
|
|
12743
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12744
|
-
const _hoisted_1$
|
|
12745
|
-
function render$
|
|
12746
|
-
return openBlock(), createElementBlock("th", _hoisted_1$
|
|
12789
|
+
const _sfc_main$7 = {};
|
|
12790
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", render$6], ["__scopeId", "data-v-c6fe8e88"]]);
|
|
12791
|
+
const _hoisted_1$4 = { class: "ck-th" };
|
|
12792
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12793
|
+
return openBlock(), createElementBlock("th", _hoisted_1$4, [
|
|
12747
12794
|
createElementVNode("span", {
|
|
12748
12795
|
class: normalizeClass($options.computedSpanClass),
|
|
12749
12796
|
style: normalizeStyle($options.computedStyle)
|
|
@@ -12753,7 +12800,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12753
12800
|
]);
|
|
12754
12801
|
}
|
|
12755
12802
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12756
|
-
const _sfc_main$
|
|
12803
|
+
const _sfc_main$6 = {
|
|
12757
12804
|
props: {
|
|
12758
12805
|
align: { type: String, default: "center", validator: validators.align },
|
|
12759
12806
|
minWidth: { type: String, default: void 0 }
|
|
@@ -12774,8 +12821,8 @@ const _sfc_main$5 = {
|
|
|
12774
12821
|
}
|
|
12775
12822
|
}
|
|
12776
12823
|
};
|
|
12777
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12778
|
-
function render$
|
|
12824
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", render$5], ["__scopeId", "data-v-e9943550"]]);
|
|
12825
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12779
12826
|
const _component_ck_th = resolveComponent("ck-th");
|
|
12780
12827
|
return $options.isVisible ? (openBlock(), createBlock(_component_ck_th, {
|
|
12781
12828
|
key: 0,
|
|
@@ -12788,7 +12835,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12788
12835
|
_: 1
|
|
12789
12836
|
}, 8, ["align", "min-width"])) : createCommentVNode("", true);
|
|
12790
12837
|
}
|
|
12791
|
-
const _sfc_main$
|
|
12838
|
+
const _sfc_main$5 = {
|
|
12792
12839
|
components: {
|
|
12793
12840
|
ckTh
|
|
12794
12841
|
},
|
|
@@ -12801,47 +12848,114 @@ const _sfc_main$4 = {
|
|
|
12801
12848
|
}
|
|
12802
12849
|
}
|
|
12803
12850
|
};
|
|
12804
|
-
var ckTableTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12805
|
-
|
|
12806
|
-
const
|
|
12807
|
-
const
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
_ctx.$slots.header || $props.columns.length ? (openBlock(), createElementBlock("thead", _hoisted_2, [
|
|
12813
|
-
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
12814
|
-
createVNode(_component_ck_tr, null, {
|
|
12815
|
-
default: withCtx(() => [
|
|
12816
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col) => {
|
|
12817
|
-
return openBlock(), createBlock(_component_ck_table_title, {
|
|
12818
|
-
key: col.title,
|
|
12819
|
-
col
|
|
12820
|
-
}, null, 8, ["col"]);
|
|
12821
|
-
}), 128))
|
|
12822
|
-
]),
|
|
12823
|
-
_: 1
|
|
12824
|
-
})
|
|
12825
|
-
])) : createCommentVNode("", true),
|
|
12826
|
-
createElementVNode("tbody", null, [
|
|
12827
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12828
|
-
]),
|
|
12829
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_3, [
|
|
12830
|
-
renderSlot(_ctx.$slots, "footeer", {}, void 0, true)
|
|
12831
|
-
])) : createCommentVNode("", true)
|
|
12832
|
-
]);
|
|
12833
|
-
}
|
|
12834
|
-
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12835
|
-
const _sfc_main$3 = {
|
|
12836
|
-
components: {
|
|
12837
|
-
ckTr,
|
|
12838
|
-
ckTableTitle
|
|
12851
|
+
var ckTableTitle = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", render$4]]);
|
|
12852
|
+
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12853
|
+
const _hoisted_1$3 = { class: "ck-table__header-items" };
|
|
12854
|
+
const __default__$1 = {
|
|
12855
|
+
props: {
|
|
12856
|
+
refreshBtn: { type: Boolean, required: true },
|
|
12857
|
+
hideItemsPerPage: { type: Boolean, required: true },
|
|
12858
|
+
hideSearch: { type: Boolean, required: true }
|
|
12839
12859
|
},
|
|
12860
|
+
emits: ["refreshList", "update:search"]
|
|
12861
|
+
};
|
|
12862
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
12863
|
+
setup(__props) {
|
|
12864
|
+
const searchLocal = "holi";
|
|
12865
|
+
return (_ctx, _cache) => {
|
|
12866
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
12867
|
+
!__props.refreshBtn ? (openBlock(), createBlock(ckButton, {
|
|
12868
|
+
key: 0,
|
|
12869
|
+
type: "flat",
|
|
12870
|
+
icon: "redo-alt",
|
|
12871
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList"))
|
|
12872
|
+
})) : createCommentVNode("", true),
|
|
12873
|
+
!__props.hideItemsPerPage ? (openBlock(), createElementBlock("div", {
|
|
12874
|
+
key: 1,
|
|
12875
|
+
class: normalizeClass(["items-per-page", { "ck-component__group--left": !__props.hideSearch }])
|
|
12876
|
+
}, "1 - 20 de 38", 2)) : createCommentVNode("", true),
|
|
12877
|
+
!__props.hideSearch ? (openBlock(), createBlock(ckInputText, {
|
|
12878
|
+
key: 2,
|
|
12879
|
+
modelValue: searchLocal,
|
|
12880
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchLocal = $event),
|
|
12881
|
+
placeholder: "Buscar...",
|
|
12882
|
+
group: __props.hideItemsPerPage ? "" : "right"
|
|
12883
|
+
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
12884
|
+
]);
|
|
12885
|
+
};
|
|
12886
|
+
}
|
|
12887
|
+
}));
|
|
12888
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-09927bf3"]]);
|
|
12889
|
+
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12890
|
+
const _hoisted_1$2 = { class: "ck-table" };
|
|
12891
|
+
const _hoisted_2 = {
|
|
12892
|
+
key: 0,
|
|
12893
|
+
class: "ck-table__header"
|
|
12894
|
+
};
|
|
12895
|
+
const _hoisted_3 = { class: "ck-table__table" };
|
|
12896
|
+
const _hoisted_4 = { key: 0 };
|
|
12897
|
+
const _hoisted_5 = { key: 1 };
|
|
12898
|
+
const __default__ = {
|
|
12840
12899
|
props: {
|
|
12841
|
-
columns: { type: Array, required: true, default: () => [] }
|
|
12900
|
+
columns: { type: Array, required: true, default: () => [] },
|
|
12901
|
+
search: { type: String, default: "asd" },
|
|
12902
|
+
hideHeaderActions: { type: Boolean, default: false },
|
|
12903
|
+
refreshBtn: { type: Boolean, default: false },
|
|
12904
|
+
hideItemsPerPage: { type: Boolean, default: false },
|
|
12905
|
+
hideSearch: { type: Boolean, default: false }
|
|
12906
|
+
},
|
|
12907
|
+
emits: ["refreshList", "update:search"],
|
|
12908
|
+
computed: {
|
|
12909
|
+
searchLocal: {
|
|
12910
|
+
get() {
|
|
12911
|
+
return this.search;
|
|
12912
|
+
},
|
|
12913
|
+
get(val) {
|
|
12914
|
+
this.$emit("update:search", val);
|
|
12915
|
+
}
|
|
12916
|
+
}
|
|
12842
12917
|
}
|
|
12843
12918
|
};
|
|
12844
|
-
|
|
12919
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
12920
|
+
setup(__props) {
|
|
12921
|
+
return (_ctx, _cache) => {
|
|
12922
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
12923
|
+
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
12924
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
12925
|
+
!__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
|
|
12926
|
+
key: 0,
|
|
12927
|
+
refreshBtn: __props.refreshBtn,
|
|
12928
|
+
hideItemsPerPage: __props.hideItemsPerPage,
|
|
12929
|
+
hideSearch: __props.hideSearch,
|
|
12930
|
+
onRefreshList: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", _ctx.$evemt))
|
|
12931
|
+
}, null, 8, ["refreshBtn", "hideItemsPerPage", "hideSearch"])) : createCommentVNode("", true)
|
|
12932
|
+
])) : createCommentVNode("", true),
|
|
12933
|
+
createElementVNode("table", _hoisted_3, [
|
|
12934
|
+
__props.columns.length ? (openBlock(), createElementBlock("thead", _hoisted_4, [
|
|
12935
|
+
createVNode(ckTr, null, {
|
|
12936
|
+
default: withCtx(() => [
|
|
12937
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
12938
|
+
return openBlock(), createBlock(ckTableTitle, {
|
|
12939
|
+
key: col.title,
|
|
12940
|
+
col
|
|
12941
|
+
}, null, 8, ["col"]);
|
|
12942
|
+
}), 128))
|
|
12943
|
+
]),
|
|
12944
|
+
_: 1
|
|
12945
|
+
})
|
|
12946
|
+
])) : createCommentVNode("", true),
|
|
12947
|
+
createElementVNode("tbody", null, [
|
|
12948
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12949
|
+
]),
|
|
12950
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("tfoot", _hoisted_5, [
|
|
12951
|
+
renderSlot(_ctx.$slots, "footeer", {}, void 0, true)
|
|
12952
|
+
])) : createCommentVNode("", true)
|
|
12953
|
+
])
|
|
12954
|
+
]);
|
|
12955
|
+
};
|
|
12956
|
+
}
|
|
12957
|
+
}));
|
|
12958
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-144557a6"]]);
|
|
12845
12959
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12846
12960
|
return openBlock(), createElementBlock("td", {
|
|
12847
12961
|
class: normalizeClass(["ck-td", $options.computedTdClass])
|
|
@@ -12938,7 +13052,7 @@ const _sfc_main$1 = {
|
|
|
12938
13052
|
}
|
|
12939
13053
|
}
|
|
12940
13054
|
};
|
|
12941
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-
|
|
13055
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-112af958"]]);
|
|
12942
13056
|
var top = "top";
|
|
12943
13057
|
var bottom = "bottom";
|
|
12944
13058
|
var right = "right";
|
|
@@ -13006,11 +13120,11 @@ function applyStyles(_ref2) {
|
|
|
13006
13120
|
}
|
|
13007
13121
|
Object.assign(element.style, style);
|
|
13008
13122
|
Object.keys(attributes).forEach(function(name2) {
|
|
13009
|
-
var
|
|
13010
|
-
if (
|
|
13123
|
+
var value2 = attributes[name2];
|
|
13124
|
+
if (value2 === false) {
|
|
13011
13125
|
element.removeAttribute(name2);
|
|
13012
13126
|
} else {
|
|
13013
|
-
element.setAttribute(name2,
|
|
13127
|
+
element.setAttribute(name2, value2 === true ? "" : value2);
|
|
13014
13128
|
}
|
|
13015
13129
|
});
|
|
13016
13130
|
});
|
|
@@ -13182,11 +13296,11 @@ function getOffsetParent(element) {
|
|
|
13182
13296
|
function getMainAxisFromPlacement(placement) {
|
|
13183
13297
|
return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
|
|
13184
13298
|
}
|
|
13185
|
-
function within(min$1,
|
|
13186
|
-
return max(min$1, min(
|
|
13299
|
+
function within(min$1, value2, max$1) {
|
|
13300
|
+
return max(min$1, min(value2, max$1));
|
|
13187
13301
|
}
|
|
13188
|
-
function withinMaxClamp(min2,
|
|
13189
|
-
var v = within(min2,
|
|
13302
|
+
function withinMaxClamp(min2, value2, max2) {
|
|
13303
|
+
var v = within(min2, value2, max2);
|
|
13190
13304
|
return v > max2 ? max2 : v;
|
|
13191
13305
|
}
|
|
13192
13306
|
function getFreshSideObject() {
|
|
@@ -13200,9 +13314,9 @@ function getFreshSideObject() {
|
|
|
13200
13314
|
function mergePaddingObject(paddingObject) {
|
|
13201
13315
|
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
13202
13316
|
}
|
|
13203
|
-
function expandToHashMap(
|
|
13317
|
+
function expandToHashMap(value2, keys) {
|
|
13204
13318
|
return keys.reduce(function(hashMap, key) {
|
|
13205
|
-
hashMap[key] =
|
|
13319
|
+
hashMap[key] = value2;
|
|
13206
13320
|
return hashMap;
|
|
13207
13321
|
}, {});
|
|
13208
13322
|
}
|
|
@@ -14252,19 +14366,19 @@ var TOUCH_OPTIONS = {
|
|
|
14252
14366
|
var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO2() {
|
|
14253
14367
|
return document.body;
|
|
14254
14368
|
};
|
|
14255
|
-
function getValueAtIndexOrReturn(
|
|
14256
|
-
if (Array.isArray(
|
|
14257
|
-
var v =
|
|
14369
|
+
function getValueAtIndexOrReturn(value2, index, defaultValue) {
|
|
14370
|
+
if (Array.isArray(value2)) {
|
|
14371
|
+
var v = value2[index];
|
|
14258
14372
|
return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
|
|
14259
14373
|
}
|
|
14260
|
-
return
|
|
14374
|
+
return value2;
|
|
14261
14375
|
}
|
|
14262
|
-
function isType(
|
|
14263
|
-
var str = {}.toString.call(
|
|
14376
|
+
function isType(value2, type) {
|
|
14377
|
+
var str = {}.toString.call(value2);
|
|
14264
14378
|
return str.indexOf("[object") === 0 && str.indexOf(type + "]") > -1;
|
|
14265
14379
|
}
|
|
14266
|
-
function invokeWithArgsOrReturn(
|
|
14267
|
-
return typeof
|
|
14380
|
+
function invokeWithArgsOrReturn(value2, args) {
|
|
14381
|
+
return typeof value2 === "function" ? value2.apply(void 0, args) : value2;
|
|
14268
14382
|
}
|
|
14269
14383
|
function debounce(fn2, ms) {
|
|
14270
14384
|
if (ms === 0) {
|
|
@@ -14278,15 +14392,15 @@ function debounce(fn2, ms) {
|
|
|
14278
14392
|
}, ms);
|
|
14279
14393
|
};
|
|
14280
14394
|
}
|
|
14281
|
-
function splitBySpaces(
|
|
14282
|
-
return
|
|
14395
|
+
function splitBySpaces(value2) {
|
|
14396
|
+
return value2.split(/\s+/).filter(Boolean);
|
|
14283
14397
|
}
|
|
14284
|
-
function normalizeToArray(
|
|
14285
|
-
return [].concat(
|
|
14398
|
+
function normalizeToArray(value2) {
|
|
14399
|
+
return [].concat(value2);
|
|
14286
14400
|
}
|
|
14287
|
-
function pushIfUnique(arr,
|
|
14288
|
-
if (arr.indexOf(
|
|
14289
|
-
arr.push(
|
|
14401
|
+
function pushIfUnique(arr, value2) {
|
|
14402
|
+
if (arr.indexOf(value2) === -1) {
|
|
14403
|
+
arr.push(value2);
|
|
14290
14404
|
}
|
|
14291
14405
|
}
|
|
14292
14406
|
function unique(arr) {
|
|
@@ -14297,8 +14411,8 @@ function unique(arr) {
|
|
|
14297
14411
|
function getBasePlacement(placement) {
|
|
14298
14412
|
return placement.split("-")[0];
|
|
14299
14413
|
}
|
|
14300
|
-
function arrayFrom(
|
|
14301
|
-
return [].slice.call(
|
|
14414
|
+
function arrayFrom(value2) {
|
|
14415
|
+
return [].slice.call(value2);
|
|
14302
14416
|
}
|
|
14303
14417
|
function removeUndefinedProps(obj) {
|
|
14304
14418
|
return Object.keys(obj).reduce(function(acc, key) {
|
|
@@ -14311,36 +14425,36 @@ function removeUndefinedProps(obj) {
|
|
|
14311
14425
|
function div() {
|
|
14312
14426
|
return document.createElement("div");
|
|
14313
14427
|
}
|
|
14314
|
-
function isElement(
|
|
14428
|
+
function isElement(value2) {
|
|
14315
14429
|
return ["Element", "Fragment"].some(function(type) {
|
|
14316
|
-
return isType(
|
|
14430
|
+
return isType(value2, type);
|
|
14317
14431
|
});
|
|
14318
14432
|
}
|
|
14319
|
-
function isNodeList(
|
|
14320
|
-
return isType(
|
|
14433
|
+
function isNodeList(value2) {
|
|
14434
|
+
return isType(value2, "NodeList");
|
|
14321
14435
|
}
|
|
14322
|
-
function isMouseEvent(
|
|
14323
|
-
return isType(
|
|
14436
|
+
function isMouseEvent(value2) {
|
|
14437
|
+
return isType(value2, "MouseEvent");
|
|
14324
14438
|
}
|
|
14325
|
-
function isReferenceElement(
|
|
14326
|
-
return !!(
|
|
14439
|
+
function isReferenceElement(value2) {
|
|
14440
|
+
return !!(value2 && value2._tippy && value2._tippy.reference === value2);
|
|
14327
14441
|
}
|
|
14328
|
-
function getArrayOfElements(
|
|
14329
|
-
if (isElement(
|
|
14330
|
-
return [
|
|
14442
|
+
function getArrayOfElements(value2) {
|
|
14443
|
+
if (isElement(value2)) {
|
|
14444
|
+
return [value2];
|
|
14331
14445
|
}
|
|
14332
|
-
if (isNodeList(
|
|
14333
|
-
return arrayFrom(
|
|
14446
|
+
if (isNodeList(value2)) {
|
|
14447
|
+
return arrayFrom(value2);
|
|
14334
14448
|
}
|
|
14335
|
-
if (Array.isArray(
|
|
14336
|
-
return
|
|
14449
|
+
if (Array.isArray(value2)) {
|
|
14450
|
+
return value2;
|
|
14337
14451
|
}
|
|
14338
|
-
return arrayFrom(document.querySelectorAll(
|
|
14452
|
+
return arrayFrom(document.querySelectorAll(value2));
|
|
14339
14453
|
}
|
|
14340
|
-
function setTransitionDuration(els,
|
|
14454
|
+
function setTransitionDuration(els, value2) {
|
|
14341
14455
|
els.forEach(function(el) {
|
|
14342
14456
|
if (el) {
|
|
14343
|
-
el.style.transitionDuration =
|
|
14457
|
+
el.style.transitionDuration = value2 + "ms";
|
|
14344
14458
|
}
|
|
14345
14459
|
});
|
|
14346
14460
|
}
|
|
@@ -14554,16 +14668,16 @@ var innerHTML = function innerHTML2() {
|
|
|
14554
14668
|
function dangerouslySetInnerHTML(element, html) {
|
|
14555
14669
|
element[innerHTML()] = html;
|
|
14556
14670
|
}
|
|
14557
|
-
function createArrowElement(
|
|
14671
|
+
function createArrowElement(value2) {
|
|
14558
14672
|
var arrow2 = div();
|
|
14559
|
-
if (
|
|
14673
|
+
if (value2 === true) {
|
|
14560
14674
|
arrow2.className = ARROW_CLASS;
|
|
14561
14675
|
} else {
|
|
14562
14676
|
arrow2.className = SVG_ARROW_CLASS;
|
|
14563
|
-
if (isElement(
|
|
14564
|
-
arrow2.appendChild(
|
|
14677
|
+
if (isElement(value2)) {
|
|
14678
|
+
arrow2.appendChild(value2);
|
|
14565
14679
|
} else {
|
|
14566
|
-
dangerouslySetInnerHTML(arrow2,
|
|
14680
|
+
dangerouslySetInnerHTML(arrow2, value2);
|
|
14567
14681
|
}
|
|
14568
14682
|
}
|
|
14569
14683
|
return arrow2;
|