cleek 2.3.24 → 2.3.27
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 +276 -227
- package/dist/cleek.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +3 -3
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, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, nextTick as nextTick$1, onBeforeUnmount, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId,
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, nextTick as nextTick$1, onBeforeUnmount, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var defaultCleekOptions = {
|
|
22
22
|
colors: {
|
|
23
23
|
primary: "#559933",
|
|
@@ -1953,7 +1953,7 @@ var LayersCounter = {
|
|
|
1953
1953
|
var LayersText = {
|
|
1954
1954
|
mixout: function mixout5() {
|
|
1955
1955
|
return {
|
|
1956
|
-
text: function
|
|
1956
|
+
text: function text2(content) {
|
|
1957
1957
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1958
1958
|
var _params$transform = params.transform, transform = _params$transform === void 0 ? meaninglessTransform : _params$transform, _params$title = params.title, title = _params$title === void 0 ? null : _params$title, _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes, _params$attributes = params.attributes, attributes = _params$attributes === void 0 ? {} : _params$attributes, _params$styles = params.styles, styles2 = _params$styles === void 0 ? {} : _params$styles;
|
|
1959
1959
|
return domVariants({
|
|
@@ -2478,7 +2478,7 @@ registerPlugins(plugins, {
|
|
|
2478
2478
|
mixoutsTo: api
|
|
2479
2479
|
});
|
|
2480
2480
|
api.noAuto;
|
|
2481
|
-
api.config;
|
|
2481
|
+
var config$1 = api.config;
|
|
2482
2482
|
var library$1 = api.library;
|
|
2483
2483
|
api.dom;
|
|
2484
2484
|
var parse$1 = api.parse;
|
|
@@ -2486,7 +2486,7 @@ api.findIconDefinition;
|
|
|
2486
2486
|
api.toHtml;
|
|
2487
2487
|
var icon2 = api.icon;
|
|
2488
2488
|
api.layer;
|
|
2489
|
-
api.text;
|
|
2489
|
+
var text = api.text;
|
|
2490
2490
|
api.counter;
|
|
2491
2491
|
/*!
|
|
2492
2492
|
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
|
@@ -16036,68 +16036,67 @@ var objectWithoutProperties = function(obj, keys) {
|
|
|
16036
16036
|
}
|
|
16037
16037
|
return target;
|
|
16038
16038
|
};
|
|
16039
|
+
var toConsumableArray = function(arr) {
|
|
16040
|
+
if (Array.isArray(arr)) {
|
|
16041
|
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
16042
|
+
arr2[i] = arr[i];
|
|
16043
|
+
return arr2;
|
|
16044
|
+
} else {
|
|
16045
|
+
return Array.from(arr);
|
|
16046
|
+
}
|
|
16047
|
+
};
|
|
16039
16048
|
function styleToObject(style) {
|
|
16040
16049
|
return style.split(";").map(function(s) {
|
|
16041
16050
|
return s.trim();
|
|
16042
16051
|
}).filter(function(s) {
|
|
16043
16052
|
return s;
|
|
16044
|
-
}).reduce(function(
|
|
16045
|
-
var
|
|
16046
|
-
var prop = humps.camelize(pair.slice(0,
|
|
16047
|
-
var value = pair.slice(
|
|
16048
|
-
|
|
16049
|
-
return
|
|
16053
|
+
}).reduce(function(output, pair) {
|
|
16054
|
+
var idx = pair.indexOf(":");
|
|
16055
|
+
var prop = humps.camelize(pair.slice(0, idx));
|
|
16056
|
+
var value = pair.slice(idx + 1).trim();
|
|
16057
|
+
output[prop] = value;
|
|
16058
|
+
return output;
|
|
16050
16059
|
}, {});
|
|
16051
16060
|
}
|
|
16052
|
-
function classToObject(
|
|
16053
|
-
return
|
|
16054
|
-
|
|
16055
|
-
return
|
|
16061
|
+
function classToObject(classes) {
|
|
16062
|
+
return classes.split(/\s+/).reduce(function(output, className) {
|
|
16063
|
+
output[className] = true;
|
|
16064
|
+
return output;
|
|
16056
16065
|
}, {});
|
|
16057
16066
|
}
|
|
16058
|
-
function
|
|
16059
|
-
|
|
16060
|
-
|
|
16067
|
+
function convert(abstractElement) {
|
|
16068
|
+
var props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16069
|
+
var attrs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
16070
|
+
if (typeof abstractElement === "string") {
|
|
16071
|
+
return abstractElement;
|
|
16061
16072
|
}
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
}
|
|
16068
|
-
return acc;
|
|
16069
|
-
}, []);
|
|
16070
|
-
}
|
|
16071
|
-
function convert(h, element) {
|
|
16072
|
-
var props = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
16073
|
-
var data = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
16074
|
-
var children = (element.children || []).map(convert.bind(null, h));
|
|
16075
|
-
var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
|
|
16076
|
-
var val = element.attributes[key];
|
|
16073
|
+
var children = (abstractElement.children || []).map(function(child) {
|
|
16074
|
+
return convert(child);
|
|
16075
|
+
});
|
|
16076
|
+
var mixins = Object.keys(abstractElement.attributes || {}).reduce(function(mixins2, key) {
|
|
16077
|
+
var value = abstractElement.attributes[key];
|
|
16077
16078
|
switch (key) {
|
|
16078
16079
|
case "class":
|
|
16079
|
-
|
|
16080
|
+
mixins2.class = classToObject(value);
|
|
16080
16081
|
break;
|
|
16081
16082
|
case "style":
|
|
16082
|
-
|
|
16083
|
+
mixins2.style = styleToObject(value);
|
|
16083
16084
|
break;
|
|
16084
16085
|
default:
|
|
16085
|
-
|
|
16086
|
+
mixins2.attrs[key] = value;
|
|
16086
16087
|
}
|
|
16087
|
-
return
|
|
16088
|
-
}, {
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
}
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
},
|
|
16098
|
-
|
|
16099
|
-
}), children);
|
|
16100
|
-
}
|
|
16088
|
+
return mixins2;
|
|
16089
|
+
}, {
|
|
16090
|
+
attrs: {},
|
|
16091
|
+
class: {},
|
|
16092
|
+
style: {}
|
|
16093
|
+
});
|
|
16094
|
+
attrs.class;
|
|
16095
|
+
var _attrs$style = attrs.style, aStyle = _attrs$style === void 0 ? {} : _attrs$style, otherAttrs = objectWithoutProperties(attrs, ["class", "style"]);
|
|
16096
|
+
return h(abstractElement.tag, _extends({}, props, {
|
|
16097
|
+
class: mixins.class,
|
|
16098
|
+
style: _extends({}, mixins.style, aStyle)
|
|
16099
|
+
}, mixins.attrs, otherAttrs), children);
|
|
16101
16100
|
}
|
|
16102
16101
|
var PRODUCTION = false;
|
|
16103
16102
|
try {
|
|
@@ -16117,12 +16116,7 @@ function classList(props) {
|
|
|
16117
16116
|
var _classes;
|
|
16118
16117
|
var classes = (_classes = {
|
|
16119
16118
|
"fa-spin": props.spin,
|
|
16120
|
-
"fa-spin-pulse": props.spinPulse,
|
|
16121
|
-
"fa-spin-reverse": props.spinReverse,
|
|
16122
16119
|
"fa-pulse": props.pulse,
|
|
16123
|
-
"fa-beat": props.beat,
|
|
16124
|
-
"fa-fade": props.fade,
|
|
16125
|
-
"fa-flash": props.flash,
|
|
16126
16120
|
"fa-fw": props.fixedWidth,
|
|
16127
16121
|
"fa-border": props.border,
|
|
16128
16122
|
"fa-li": props.listItem,
|
|
@@ -16137,12 +16131,6 @@ function classList(props) {
|
|
|
16137
16131
|
});
|
|
16138
16132
|
}
|
|
16139
16133
|
function normalizeIconArgs(icon$$1) {
|
|
16140
|
-
if (icon$$1 && (typeof icon$$1 === "undefined" ? "undefined" : _typeof(icon$$1)) === "object" && icon$$1.prefix && icon$$1.iconName && icon$$1.icon) {
|
|
16141
|
-
return icon$$1;
|
|
16142
|
-
}
|
|
16143
|
-
if (parse$1.icon) {
|
|
16144
|
-
return parse$1.icon(icon$$1);
|
|
16145
|
-
}
|
|
16146
16134
|
if (icon$$1 === null) {
|
|
16147
16135
|
return null;
|
|
16148
16136
|
}
|
|
@@ -16156,30 +16144,17 @@ function normalizeIconArgs(icon$$1) {
|
|
|
16156
16144
|
return { prefix: "fas", iconName: icon$$1 };
|
|
16157
16145
|
}
|
|
16158
16146
|
}
|
|
16159
|
-
var FontAwesomeIcon = {
|
|
16147
|
+
var FontAwesomeIcon = defineComponent({
|
|
16160
16148
|
name: "FontAwesomeIcon",
|
|
16161
|
-
functional: true,
|
|
16162
16149
|
props: {
|
|
16163
|
-
beat: {
|
|
16164
|
-
type: Boolean,
|
|
16165
|
-
default: false
|
|
16166
|
-
},
|
|
16167
16150
|
border: {
|
|
16168
16151
|
type: Boolean,
|
|
16169
16152
|
default: false
|
|
16170
16153
|
},
|
|
16171
|
-
fade: {
|
|
16172
|
-
type: Boolean,
|
|
16173
|
-
default: false
|
|
16174
|
-
},
|
|
16175
16154
|
fixedWidth: {
|
|
16176
16155
|
type: Boolean,
|
|
16177
16156
|
default: false
|
|
16178
16157
|
},
|
|
16179
|
-
flash: {
|
|
16180
|
-
type: Boolean,
|
|
16181
|
-
default: false
|
|
16182
|
-
},
|
|
16183
16158
|
flip: {
|
|
16184
16159
|
type: String,
|
|
16185
16160
|
default: null,
|
|
@@ -16214,7 +16189,7 @@ var FontAwesomeIcon = {
|
|
|
16214
16189
|
type: [String, Number],
|
|
16215
16190
|
default: null,
|
|
16216
16191
|
validator: function validator3(value) {
|
|
16217
|
-
return [90, 180, 270].indexOf(parseInt(value, 10)) > -1;
|
|
16192
|
+
return [90, 180, 270].indexOf(Number.parseInt(value, 10)) > -1;
|
|
16218
16193
|
}
|
|
16219
16194
|
},
|
|
16220
16195
|
swapOpacity: {
|
|
@@ -16225,21 +16200,13 @@ var FontAwesomeIcon = {
|
|
|
16225
16200
|
type: String,
|
|
16226
16201
|
default: null,
|
|
16227
16202
|
validator: function validator4(value) {
|
|
16228
|
-
return ["
|
|
16203
|
+
return ["lg", "xs", "sm", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"].indexOf(value) > -1;
|
|
16229
16204
|
}
|
|
16230
16205
|
},
|
|
16231
16206
|
spin: {
|
|
16232
16207
|
type: Boolean,
|
|
16233
16208
|
default: false
|
|
16234
16209
|
},
|
|
16235
|
-
spinPulse: {
|
|
16236
|
-
type: Boolean,
|
|
16237
|
-
default: false
|
|
16238
|
-
},
|
|
16239
|
-
spinReverse: {
|
|
16240
|
-
type: Boolean,
|
|
16241
|
-
default: false
|
|
16242
|
-
},
|
|
16243
16210
|
transform: {
|
|
16244
16211
|
type: [String, Object],
|
|
16245
16212
|
default: null
|
|
@@ -16257,20 +16224,173 @@ var FontAwesomeIcon = {
|
|
|
16257
16224
|
default: false
|
|
16258
16225
|
}
|
|
16259
16226
|
},
|
|
16260
|
-
|
|
16261
|
-
var
|
|
16262
|
-
var
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
var
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
return
|
|
16227
|
+
setup: function setup(props, _ref2) {
|
|
16228
|
+
var attrs = _ref2.attrs;
|
|
16229
|
+
var icon$$1 = computed$2(function() {
|
|
16230
|
+
return normalizeIconArgs(props.icon);
|
|
16231
|
+
});
|
|
16232
|
+
var classes = computed$2(function() {
|
|
16233
|
+
return objectWithKey("classes", classList(props));
|
|
16234
|
+
});
|
|
16235
|
+
var transform = computed$2(function() {
|
|
16236
|
+
return objectWithKey("transform", typeof props.transform === "string" ? parse$1.transform(props.transform) : props.transform);
|
|
16237
|
+
});
|
|
16238
|
+
var mask = computed$2(function() {
|
|
16239
|
+
return objectWithKey("mask", normalizeIconArgs(props.mask));
|
|
16240
|
+
});
|
|
16241
|
+
var renderedIcon = computed$2(function() {
|
|
16242
|
+
return icon2(icon$$1.value, _extends({}, classes.value, transform.value, mask.value, {
|
|
16243
|
+
symbol: props.symbol,
|
|
16244
|
+
title: props.title
|
|
16245
|
+
}));
|
|
16246
|
+
});
|
|
16247
|
+
watch(renderedIcon, function(value) {
|
|
16248
|
+
if (!value) {
|
|
16249
|
+
return log("Could not find one or more icon(s)", icon$$1.value, mask.value);
|
|
16250
|
+
}
|
|
16251
|
+
}, { immediate: true });
|
|
16252
|
+
var vnode = computed$2(function() {
|
|
16253
|
+
return renderedIcon.value ? convert(renderedIcon.value.abstract[0], {}, attrs) : null;
|
|
16254
|
+
});
|
|
16255
|
+
return function() {
|
|
16256
|
+
return vnode.value;
|
|
16257
|
+
};
|
|
16258
|
+
}
|
|
16259
|
+
});
|
|
16260
|
+
defineComponent({
|
|
16261
|
+
name: "FontAwesomeLayers",
|
|
16262
|
+
props: {
|
|
16263
|
+
fixedWidth: {
|
|
16264
|
+
type: Boolean,
|
|
16265
|
+
default: false
|
|
16266
|
+
}
|
|
16267
|
+
},
|
|
16268
|
+
setup: function setup2(props, _ref2) {
|
|
16269
|
+
var slots = _ref2.slots;
|
|
16270
|
+
var familyPrefix = config$1.familyPrefix;
|
|
16271
|
+
var className = computed$2(function() {
|
|
16272
|
+
return [familyPrefix + "-layers"].concat(toConsumableArray(props.fixedWidth ? [familyPrefix + "-fw"] : []));
|
|
16273
|
+
});
|
|
16274
|
+
return function() {
|
|
16275
|
+
return h("div", { class: className.value }, slots.default ? slots.default() : []);
|
|
16276
|
+
};
|
|
16277
|
+
}
|
|
16278
|
+
});
|
|
16279
|
+
defineComponent({
|
|
16280
|
+
name: "FontAwesomeLayersText",
|
|
16281
|
+
props: {
|
|
16282
|
+
value: {
|
|
16283
|
+
type: [String, Number],
|
|
16284
|
+
default: ""
|
|
16285
|
+
},
|
|
16286
|
+
transform: {
|
|
16287
|
+
type: [String, Object],
|
|
16288
|
+
default: null
|
|
16289
|
+
},
|
|
16290
|
+
counter: {
|
|
16291
|
+
type: Boolean,
|
|
16292
|
+
default: false
|
|
16293
|
+
},
|
|
16294
|
+
position: {
|
|
16295
|
+
type: String,
|
|
16296
|
+
default: null,
|
|
16297
|
+
validator: function validator5(value) {
|
|
16298
|
+
return ["bottom-left", "bottom-right", "top-left", "top-right"].indexOf(value) > -1;
|
|
16299
|
+
}
|
|
16300
|
+
}
|
|
16301
|
+
},
|
|
16302
|
+
setup: function setup3(props, _ref2) {
|
|
16303
|
+
var attrs = _ref2.attrs;
|
|
16304
|
+
var familyPrefix = config$1.familyPrefix;
|
|
16305
|
+
var classes = computed$2(function() {
|
|
16306
|
+
return objectWithKey("classes", [].concat(toConsumableArray(props.counter ? [familyPrefix + "-layers-counter"] : []), toConsumableArray(props.position ? [familyPrefix + "-layers-" + props.position] : [])));
|
|
16307
|
+
});
|
|
16308
|
+
var transform = computed$2(function() {
|
|
16309
|
+
return objectWithKey("transform", typeof props.transform === "string" ? parse$1.transform(props.transform) : props.transform);
|
|
16310
|
+
});
|
|
16311
|
+
var abstractElement = computed$2(function() {
|
|
16312
|
+
var _text = text(props.value.toString(), _extends({}, transform.value, classes.value)), abstract = _text.abstract;
|
|
16313
|
+
if (props.counter) {
|
|
16314
|
+
abstract[0].attributes.class = abstract[0].attributes.class.replace("fa-layers-text", "");
|
|
16315
|
+
}
|
|
16316
|
+
return abstract[0];
|
|
16317
|
+
});
|
|
16318
|
+
var vnode = computed$2(function() {
|
|
16319
|
+
return convert(abstractElement.value, {}, attrs);
|
|
16320
|
+
});
|
|
16321
|
+
return function() {
|
|
16322
|
+
return vnode.value;
|
|
16323
|
+
};
|
|
16324
|
+
}
|
|
16325
|
+
});
|
|
16326
|
+
var functions = {
|
|
16327
|
+
getGroupClass({ group = "", groupVertical = "", lineBreak = "" } = {}) {
|
|
16328
|
+
const classList2 = [];
|
|
16329
|
+
if (group)
|
|
16330
|
+
classList2.push(`ck-component__group--${group}`);
|
|
16331
|
+
if (groupVertical)
|
|
16332
|
+
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16333
|
+
if (lineBreak) {
|
|
16334
|
+
if (lineBreak === "s") {
|
|
16335
|
+
classList2.push(`ck-component__line-break--${lineBreak}`);
|
|
16336
|
+
}
|
|
16337
|
+
}
|
|
16338
|
+
return classList2;
|
|
16339
|
+
},
|
|
16340
|
+
getGroupClassContainer({ lineBreak = "" } = "") {
|
|
16341
|
+
const classList2 = [];
|
|
16342
|
+
if (lineBreak) {
|
|
16343
|
+
if (lineBreak === "s") {
|
|
16344
|
+
classList2.push(`ck-component__line-break-container--${lineBreak}`);
|
|
16345
|
+
}
|
|
16346
|
+
}
|
|
16347
|
+
return classList2;
|
|
16348
|
+
},
|
|
16349
|
+
getlineBreakStyleContainer({ lineBreak } = {}, windowWidth) {
|
|
16350
|
+
if (windowWidth <= lineBreak) {
|
|
16351
|
+
return [
|
|
16352
|
+
{ width: "100%" }
|
|
16353
|
+
];
|
|
16354
|
+
}
|
|
16355
|
+
},
|
|
16356
|
+
getlineBreakStyle({ lineBreak } = {}, windowWidth) {
|
|
16357
|
+
if (windowWidth <= lineBreak) {
|
|
16358
|
+
return [
|
|
16359
|
+
{ width: "100%" },
|
|
16360
|
+
{ borderRadius: "4px !important" },
|
|
16361
|
+
{ border: "1px solid #DAE1E7 !important" }
|
|
16362
|
+
];
|
|
16363
|
+
}
|
|
16364
|
+
},
|
|
16365
|
+
isColorTemplateVariable(color) {
|
|
16366
|
+
if (color === "primary")
|
|
16367
|
+
return true;
|
|
16368
|
+
if (color === "secondary")
|
|
16369
|
+
return true;
|
|
16370
|
+
if (color === "success")
|
|
16371
|
+
return true;
|
|
16372
|
+
if (color === "warning")
|
|
16373
|
+
return true;
|
|
16374
|
+
if (color === "danger")
|
|
16375
|
+
return true;
|
|
16376
|
+
if (color === "dark")
|
|
16377
|
+
return true;
|
|
16378
|
+
if (color === "light")
|
|
16379
|
+
return true;
|
|
16380
|
+
return false;
|
|
16381
|
+
},
|
|
16382
|
+
isColumnDisplayed(column) {
|
|
16383
|
+
if (column.isDisplayed === false)
|
|
16384
|
+
return false;
|
|
16385
|
+
if (column.unchangeable) {
|
|
16386
|
+
if (column.isDisplayed === true)
|
|
16387
|
+
return true;
|
|
16388
|
+
return false;
|
|
16270
16389
|
}
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16390
|
+
return true;
|
|
16391
|
+
},
|
|
16392
|
+
getCleekOptions(getCurrentInstance2) {
|
|
16393
|
+
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16274
16394
|
}
|
|
16275
16395
|
};
|
|
16276
16396
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -16304,10 +16424,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16304
16424
|
return defaultPackage;
|
|
16305
16425
|
});
|
|
16306
16426
|
const computedClass = computed$2(() => {
|
|
16307
|
-
const
|
|
16308
|
-
if (props.color)
|
|
16309
|
-
|
|
16310
|
-
|
|
16427
|
+
const list = [];
|
|
16428
|
+
if (props.color && functions.isColorTemplateVariable(props.color)) {
|
|
16429
|
+
list.push(`ck-component__color--${props.color}`);
|
|
16430
|
+
}
|
|
16431
|
+
return list;
|
|
16432
|
+
});
|
|
16433
|
+
const computedStyle = computed$2(() => {
|
|
16434
|
+
const list = [];
|
|
16435
|
+
if (props.color && !functions.isColorTemplateVariable(props.color)) {
|
|
16436
|
+
list.push({ color: props.color });
|
|
16437
|
+
}
|
|
16438
|
+
return list;
|
|
16311
16439
|
});
|
|
16312
16440
|
function onClick(event) {
|
|
16313
16441
|
emits("click", event);
|
|
@@ -16315,6 +16443,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16315
16443
|
return (_ctx, _cache) => {
|
|
16316
16444
|
return openBlock(), createElementBlock("div", {
|
|
16317
16445
|
class: normalizeClass(["ck-icon", unref$1(computedClass)]),
|
|
16446
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
16318
16447
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
16319
16448
|
}, [
|
|
16320
16449
|
unref$1(computediconPack) === "font-awesome" ? (openBlock(), createBlock(unref$1(FontAwesomeIcon), {
|
|
@@ -16330,11 +16459,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16330
16459
|
"fixed-width": __props.fixedWidth,
|
|
16331
16460
|
"swap-opacity": __props.swapOpacity
|
|
16332
16461
|
}, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
|
|
16333
|
-
],
|
|
16462
|
+
], 6);
|
|
16334
16463
|
};
|
|
16335
16464
|
}
|
|
16336
16465
|
});
|
|
16337
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16466
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ddf67f32"]]);
|
|
16338
16467
|
var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16339
16468
|
const _hoisted_1$j = { class: "ck-notify__container" };
|
|
16340
16469
|
const _hoisted_2$8 = { class: "ck-notify__title" };
|
|
@@ -16356,27 +16485,27 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
16356
16485
|
function closeNotification() {
|
|
16357
16486
|
isActive.value = false;
|
|
16358
16487
|
}
|
|
16359
|
-
function ckNotify2({ text = "", title = "", color = "#ccc", duration = defaultDuration.value }) {
|
|
16488
|
+
function ckNotify2({ text: text2 = "", title = "", color = "#ccc", duration = defaultDuration.value }) {
|
|
16360
16489
|
globalTitle.value = title;
|
|
16361
|
-
globalText.value =
|
|
16490
|
+
globalText.value = text2;
|
|
16362
16491
|
globalColor.value = color;
|
|
16363
16492
|
isActive.value = true;
|
|
16364
16493
|
setTimeout(() => {
|
|
16365
16494
|
closeNotification();
|
|
16366
16495
|
}, duration);
|
|
16367
16496
|
}
|
|
16368
|
-
function ckNotifySuccess(
|
|
16497
|
+
function ckNotifySuccess(text2 = "", title = "\xC9xito") {
|
|
16369
16498
|
ckNotify2({
|
|
16370
|
-
text,
|
|
16499
|
+
text: text2,
|
|
16371
16500
|
title,
|
|
16372
16501
|
color: "#66CC00"
|
|
16373
16502
|
});
|
|
16374
16503
|
}
|
|
16375
|
-
function ckNotifyError(
|
|
16376
|
-
ckNotify2({ text, title, color: "#FF3333" });
|
|
16504
|
+
function ckNotifyError(text2 = "", title = "Error") {
|
|
16505
|
+
ckNotify2({ text: text2, title, color: "#FF3333" });
|
|
16377
16506
|
}
|
|
16378
|
-
function ckNotifyWarning(
|
|
16379
|
-
ckNotify2({ text, title, color: "#FFDD33" });
|
|
16507
|
+
function ckNotifyWarning(text2 = "", title = "Atenci\xF3n") {
|
|
16508
|
+
ckNotify2({ text: text2, title, color: "#FFDD33" });
|
|
16380
16509
|
}
|
|
16381
16510
|
return (_ctx, _cache) => {
|
|
16382
16511
|
return isActive.value ? (openBlock(), createBlock(Teleport, {
|
|
@@ -16495,76 +16624,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16495
16624
|
};
|
|
16496
16625
|
}
|
|
16497
16626
|
});
|
|
16498
|
-
var functions = {
|
|
16499
|
-
getGroupClass({ group = "", groupVertical = "", lineBreak = "" } = {}) {
|
|
16500
|
-
const classList2 = [];
|
|
16501
|
-
if (group)
|
|
16502
|
-
classList2.push(`ck-component__group--${group}`);
|
|
16503
|
-
if (groupVertical)
|
|
16504
|
-
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
16505
|
-
if (lineBreak) {
|
|
16506
|
-
if (lineBreak === "s") {
|
|
16507
|
-
classList2.push(`ck-component__line-break--${lineBreak}`);
|
|
16508
|
-
}
|
|
16509
|
-
}
|
|
16510
|
-
return classList2;
|
|
16511
|
-
},
|
|
16512
|
-
getGroupClassContainer({ lineBreak = "" } = "") {
|
|
16513
|
-
const classList2 = [];
|
|
16514
|
-
if (lineBreak) {
|
|
16515
|
-
if (lineBreak === "s") {
|
|
16516
|
-
classList2.push(`ck-component__line-break-container--${lineBreak}`);
|
|
16517
|
-
}
|
|
16518
|
-
}
|
|
16519
|
-
return classList2;
|
|
16520
|
-
},
|
|
16521
|
-
getlineBreakStyleContainer({ lineBreak } = {}, windowWidth) {
|
|
16522
|
-
if (windowWidth <= lineBreak) {
|
|
16523
|
-
return [
|
|
16524
|
-
{ width: "100%" }
|
|
16525
|
-
];
|
|
16526
|
-
}
|
|
16527
|
-
},
|
|
16528
|
-
getlineBreakStyle({ lineBreak } = {}, windowWidth) {
|
|
16529
|
-
if (windowWidth <= lineBreak) {
|
|
16530
|
-
return [
|
|
16531
|
-
{ width: "100%" },
|
|
16532
|
-
{ borderRadius: "4px !important" },
|
|
16533
|
-
{ border: "1px solid #DAE1E7 !important" }
|
|
16534
|
-
];
|
|
16535
|
-
}
|
|
16536
|
-
},
|
|
16537
|
-
isColorTemplateVariable(color) {
|
|
16538
|
-
if (color === "primary")
|
|
16539
|
-
return true;
|
|
16540
|
-
if (color === "secondary")
|
|
16541
|
-
return true;
|
|
16542
|
-
if (color === "success")
|
|
16543
|
-
return true;
|
|
16544
|
-
if (color === "warning")
|
|
16545
|
-
return true;
|
|
16546
|
-
if (color === "danger")
|
|
16547
|
-
return true;
|
|
16548
|
-
if (color === "dark")
|
|
16549
|
-
return true;
|
|
16550
|
-
if (color === "light")
|
|
16551
|
-
return true;
|
|
16552
|
-
return false;
|
|
16553
|
-
},
|
|
16554
|
-
isColumnDisplayed(column) {
|
|
16555
|
-
if (column.isDisplayed === false)
|
|
16556
|
-
return false;
|
|
16557
|
-
if (column.unchangeable) {
|
|
16558
|
-
if (column.isDisplayed === true)
|
|
16559
|
-
return true;
|
|
16560
|
-
return false;
|
|
16561
|
-
}
|
|
16562
|
-
return true;
|
|
16563
|
-
},
|
|
16564
|
-
getCleekOptions(getCurrentInstance2) {
|
|
16565
|
-
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
16566
|
-
}
|
|
16567
|
-
};
|
|
16568
16627
|
function useWindowWidth() {
|
|
16569
16628
|
const windowWidth = ref(0);
|
|
16570
16629
|
function handleWindowResize(event) {
|
|
@@ -16872,7 +16931,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16872
16931
|
});
|
|
16873
16932
|
const itemsPerPageEnd = computed$2(() => {
|
|
16874
16933
|
const value = props.currentPage * props.itemsPerPage;
|
|
16875
|
-
if (!itemsPerPage || value > props.listLength)
|
|
16934
|
+
if (!props.itemsPerPage || value > props.listLength)
|
|
16876
16935
|
return props.listLength;
|
|
16877
16936
|
return value;
|
|
16878
16937
|
});
|
|
@@ -16934,7 +16993,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16934
16993
|
};
|
|
16935
16994
|
}
|
|
16936
16995
|
});
|
|
16937
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
16996
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cf4f130a"]]);
|
|
16938
16997
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16939
16998
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
16940
16999
|
const _hoisted_2$7 = ["onClick"];
|
|
@@ -17076,8 +17135,7 @@ const def = (obj, key, value) => {
|
|
|
17076
17135
|
});
|
|
17077
17136
|
};
|
|
17078
17137
|
let activeEffectScope;
|
|
17079
|
-
function recordEffectScope(effect3, scope) {
|
|
17080
|
-
scope = scope || activeEffectScope;
|
|
17138
|
+
function recordEffectScope(effect3, scope = activeEffectScope) {
|
|
17081
17139
|
if (scope && scope.active) {
|
|
17082
17140
|
scope.effects.push(effect3);
|
|
17083
17141
|
}
|
|
@@ -17117,7 +17175,6 @@ const finalizeDepMarkers = (effect3) => {
|
|
|
17117
17175
|
let effectTrackDepth = 0;
|
|
17118
17176
|
let trackOpBit = 1;
|
|
17119
17177
|
const maxMarkerBits = 30;
|
|
17120
|
-
const effectStack = [];
|
|
17121
17178
|
let activeEffect;
|
|
17122
17179
|
class ReactiveEffect {
|
|
17123
17180
|
constructor(fn2, scheduler = null, scope) {
|
|
@@ -17125,33 +17182,40 @@ class ReactiveEffect {
|
|
|
17125
17182
|
this.scheduler = scheduler;
|
|
17126
17183
|
this.active = true;
|
|
17127
17184
|
this.deps = [];
|
|
17185
|
+
this.parent = void 0;
|
|
17128
17186
|
recordEffectScope(this, scope);
|
|
17129
17187
|
}
|
|
17130
17188
|
run() {
|
|
17131
17189
|
if (!this.active) {
|
|
17132
17190
|
return this.fn();
|
|
17133
17191
|
}
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
if (effectTrackDepth <= maxMarkerBits) {
|
|
17140
|
-
initDepMarkers(this);
|
|
17141
|
-
} else {
|
|
17142
|
-
cleanupEffect(this);
|
|
17143
|
-
}
|
|
17144
|
-
return this.fn();
|
|
17145
|
-
} finally {
|
|
17146
|
-
if (effectTrackDepth <= maxMarkerBits) {
|
|
17147
|
-
finalizeDepMarkers(this);
|
|
17148
|
-
}
|
|
17149
|
-
trackOpBit = 1 << --effectTrackDepth;
|
|
17150
|
-
resetTracking();
|
|
17151
|
-
effectStack.pop();
|
|
17152
|
-
const n = effectStack.length;
|
|
17153
|
-
activeEffect = n > 0 ? effectStack[n - 1] : void 0;
|
|
17192
|
+
let parent = activeEffect;
|
|
17193
|
+
let lastShouldTrack = shouldTrack;
|
|
17194
|
+
while (parent) {
|
|
17195
|
+
if (parent === this) {
|
|
17196
|
+
return;
|
|
17154
17197
|
}
|
|
17198
|
+
parent = parent.parent;
|
|
17199
|
+
}
|
|
17200
|
+
try {
|
|
17201
|
+
this.parent = activeEffect;
|
|
17202
|
+
activeEffect = this;
|
|
17203
|
+
shouldTrack = true;
|
|
17204
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
17205
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
17206
|
+
initDepMarkers(this);
|
|
17207
|
+
} else {
|
|
17208
|
+
cleanupEffect(this);
|
|
17209
|
+
}
|
|
17210
|
+
return this.fn();
|
|
17211
|
+
} finally {
|
|
17212
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
17213
|
+
finalizeDepMarkers(this);
|
|
17214
|
+
}
|
|
17215
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
17216
|
+
activeEffect = this.parent;
|
|
17217
|
+
shouldTrack = lastShouldTrack;
|
|
17218
|
+
this.parent = void 0;
|
|
17155
17219
|
}
|
|
17156
17220
|
}
|
|
17157
17221
|
stop() {
|
|
@@ -17174,18 +17238,6 @@ function cleanupEffect(effect3) {
|
|
|
17174
17238
|
}
|
|
17175
17239
|
}
|
|
17176
17240
|
let shouldTrack = true;
|
|
17177
|
-
const trackStack = [];
|
|
17178
|
-
function enableTracking() {
|
|
17179
|
-
trackStack.push(shouldTrack);
|
|
17180
|
-
shouldTrack = true;
|
|
17181
|
-
}
|
|
17182
|
-
function resetTracking() {
|
|
17183
|
-
const last = trackStack.pop();
|
|
17184
|
-
shouldTrack = last === void 0 ? true : last;
|
|
17185
|
-
}
|
|
17186
|
-
function isTracking() {
|
|
17187
|
-
return shouldTrack && activeEffect !== void 0;
|
|
17188
|
-
}
|
|
17189
17241
|
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
17190
17242
|
let shouldTrack2 = false;
|
|
17191
17243
|
if (effectTrackDepth <= maxMarkerBits) {
|
|
@@ -17234,13 +17286,10 @@ function markRaw(value) {
|
|
|
17234
17286
|
return value;
|
|
17235
17287
|
}
|
|
17236
17288
|
function trackRefValue(ref2) {
|
|
17237
|
-
if (
|
|
17289
|
+
if (shouldTrack && activeEffect) {
|
|
17238
17290
|
ref2 = toRaw(ref2);
|
|
17239
|
-
if (!ref2.dep) {
|
|
17240
|
-
ref2.dep = createDep();
|
|
17241
|
-
}
|
|
17242
17291
|
{
|
|
17243
|
-
trackEffects(ref2.dep);
|
|
17292
|
+
trackEffects(ref2.dep || (ref2.dep = createDep()));
|
|
17244
17293
|
}
|
|
17245
17294
|
}
|
|
17246
17295
|
}
|
|
@@ -17253,7 +17302,7 @@ function triggerRefValue(ref2, newVal) {
|
|
|
17253
17302
|
}
|
|
17254
17303
|
}
|
|
17255
17304
|
function isRef(r) {
|
|
17256
|
-
return
|
|
17305
|
+
return !!(r && r.__v_isRef === true);
|
|
17257
17306
|
}
|
|
17258
17307
|
function unref(ref2) {
|
|
17259
17308
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -20893,7 +20942,7 @@ function getChildren(popper2) {
|
|
|
20893
20942
|
})
|
|
20894
20943
|
};
|
|
20895
20944
|
}
|
|
20896
|
-
function
|
|
20945
|
+
function render2(instance) {
|
|
20897
20946
|
var popper2 = div();
|
|
20898
20947
|
var box = div();
|
|
20899
20948
|
box.className = BOX_CLASS;
|
|
@@ -20948,7 +20997,7 @@ function render3(instance) {
|
|
|
20948
20997
|
onUpdate
|
|
20949
20998
|
};
|
|
20950
20999
|
}
|
|
20951
|
-
|
|
21000
|
+
render2.$$tippy = true;
|
|
20952
21001
|
var idCounter = 1;
|
|
20953
21002
|
var mouseMoveListeners = [];
|
|
20954
21003
|
var mountedInstances = [];
|
|
@@ -21688,7 +21737,7 @@ Object.assign({}, applyStyles$1, {
|
|
|
21688
21737
|
}
|
|
21689
21738
|
});
|
|
21690
21739
|
tippy$1.setDefaultProps({
|
|
21691
|
-
render:
|
|
21740
|
+
render: render2
|
|
21692
21741
|
});
|
|
21693
21742
|
var tippy = "";
|
|
21694
21743
|
var ckTooltip_vue_vue_type_style_index_0_scoped_true_lang = "";
|