cleek 2.0.7 → 2.0.8
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 +1230 -467
- 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,
|
|
20
|
+
import { defineComponent, computed as computed$2, watch, h, openBlock, createElementBlock, normalizeClass, unref as unref$1, createBlock, createCommentVNode, ref, onMounted, getCurrentInstance, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, isRef as isRef$1, 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);
|
|
@@ -83,11 +83,6 @@ var functions$1 = {
|
|
|
83
83
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
var globalVariables = {
|
|
87
|
-
defaultFailImg: "df",
|
|
88
|
-
imagesFolderPath: "",
|
|
89
|
-
defaultImgBorderColor: "#EEEEEE"
|
|
90
|
-
};
|
|
91
86
|
/*!
|
|
92
87
|
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
|
93
88
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -11110,19 +11105,19 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11110
11105
|
},
|
|
11111
11106
|
setup: function setup(props, _ref2) {
|
|
11112
11107
|
var attrs = _ref2.attrs;
|
|
11113
|
-
var icon$$1 = computed(function() {
|
|
11108
|
+
var icon$$1 = computed$2(function() {
|
|
11114
11109
|
return normalizeIconArgs(props.icon);
|
|
11115
11110
|
});
|
|
11116
|
-
var classes = computed(function() {
|
|
11111
|
+
var classes = computed$2(function() {
|
|
11117
11112
|
return objectWithKey("classes", classList(props));
|
|
11118
11113
|
});
|
|
11119
|
-
var transform2 = computed(function() {
|
|
11114
|
+
var transform2 = computed$2(function() {
|
|
11120
11115
|
return objectWithKey("transform", typeof props.transform === "string" ? parse.transform(props.transform) : props.transform);
|
|
11121
11116
|
});
|
|
11122
|
-
var mask = computed(function() {
|
|
11117
|
+
var mask = computed$2(function() {
|
|
11123
11118
|
return objectWithKey("mask", normalizeIconArgs(props.mask));
|
|
11124
11119
|
});
|
|
11125
|
-
var renderedIcon = computed(function() {
|
|
11120
|
+
var renderedIcon = computed$2(function() {
|
|
11126
11121
|
return icon(icon$$1.value, _extends({}, classes.value, transform2.value, mask.value, {
|
|
11127
11122
|
symbol: props.symbol,
|
|
11128
11123
|
title: props.title
|
|
@@ -11133,7 +11128,7 @@ var FontAwesomeIcon = defineComponent({
|
|
|
11133
11128
|
return log("Could not find one or more icon(s)", icon$$1.value, mask.value);
|
|
11134
11129
|
}
|
|
11135
11130
|
}, { immediate: true });
|
|
11136
|
-
var vnode = computed(function() {
|
|
11131
|
+
var vnode = computed$2(function() {
|
|
11137
11132
|
return renderedIcon.value ? convert(renderedIcon.value.abstract[0], {}, attrs) : null;
|
|
11138
11133
|
});
|
|
11139
11134
|
return function() {
|
|
@@ -11152,7 +11147,7 @@ defineComponent({
|
|
|
11152
11147
|
setup: function setup2(props, _ref2) {
|
|
11153
11148
|
var slots = _ref2.slots;
|
|
11154
11149
|
var familyPrefix = config.familyPrefix;
|
|
11155
|
-
var className = computed(function() {
|
|
11150
|
+
var className = computed$2(function() {
|
|
11156
11151
|
return [familyPrefix + "-layers"].concat(toConsumableArray(props.fixedWidth ? [familyPrefix + "-fw"] : []));
|
|
11157
11152
|
});
|
|
11158
11153
|
return function() {
|
|
@@ -11186,20 +11181,20 @@ defineComponent({
|
|
|
11186
11181
|
setup: function setup3(props, _ref2) {
|
|
11187
11182
|
var attrs = _ref2.attrs;
|
|
11188
11183
|
var familyPrefix = config.familyPrefix;
|
|
11189
|
-
var classes = computed(function() {
|
|
11184
|
+
var classes = computed$2(function() {
|
|
11190
11185
|
return objectWithKey("classes", [].concat(toConsumableArray(props.counter ? [familyPrefix + "-layers-counter"] : []), toConsumableArray(props.position ? [familyPrefix + "-layers-" + props.position] : [])));
|
|
11191
11186
|
});
|
|
11192
|
-
var transform2 = computed(function() {
|
|
11187
|
+
var transform2 = computed$2(function() {
|
|
11193
11188
|
return objectWithKey("transform", typeof props.transform === "string" ? parse.transform(props.transform) : props.transform);
|
|
11194
11189
|
});
|
|
11195
|
-
var abstractElement = computed(function() {
|
|
11190
|
+
var abstractElement = computed$2(function() {
|
|
11196
11191
|
var _text = text(props.value.toString(), _extends({}, transform2.value, classes.value)), abstract = _text.abstract;
|
|
11197
11192
|
if (props.counter) {
|
|
11198
11193
|
abstract[0].attributes.class = abstract[0].attributes.class.replace("fa-layers-text", "");
|
|
11199
11194
|
}
|
|
11200
11195
|
return abstract[0];
|
|
11201
11196
|
});
|
|
11202
|
-
var vnode = computed(function() {
|
|
11197
|
+
var vnode = computed$2(function() {
|
|
11203
11198
|
return convert(abstractElement.value, {}, attrs);
|
|
11204
11199
|
});
|
|
11205
11200
|
return function() {
|
|
@@ -11207,27 +11202,6 @@ defineComponent({
|
|
|
11207
11202
|
};
|
|
11208
11203
|
}
|
|
11209
11204
|
});
|
|
11210
|
-
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11211
|
-
const _component_font_awesome_icon = resolveComponent("font-awesome-icon");
|
|
11212
|
-
return openBlock(), createElementBlock("div", {
|
|
11213
|
-
class: normalizeClass(["ck-icon", $options.computedClass]),
|
|
11214
|
-
onClick: _cache[0] || (_cache[0] = ($event) => $options.onClick($event))
|
|
11215
|
-
}, [
|
|
11216
|
-
$options.computediconPack === "font-awesome" ? (openBlock(), createBlock(_component_font_awesome_icon, {
|
|
11217
|
-
key: 0,
|
|
11218
|
-
icon: $props.icon,
|
|
11219
|
-
size: $props.size,
|
|
11220
|
-
rotation: $props.rotation,
|
|
11221
|
-
flip: $props.flip,
|
|
11222
|
-
pull: $props.pull,
|
|
11223
|
-
spin: $props.spin,
|
|
11224
|
-
pulse: $props.pulse,
|
|
11225
|
-
inverse: $props.inverse,
|
|
11226
|
-
"fixed-width": $props.fixedWidth,
|
|
11227
|
-
"swap-opacity": $props.swapOpacity
|
|
11228
|
-
}, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
|
|
11229
|
-
], 2);
|
|
11230
|
-
}
|
|
11231
11205
|
var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11232
11206
|
var _export_sfc = (sfc, props) => {
|
|
11233
11207
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -11236,11 +11210,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
11236
11210
|
}
|
|
11237
11211
|
return target;
|
|
11238
11212
|
};
|
|
11239
|
-
const _sfc_main$l = {
|
|
11240
|
-
name: "CkIcon",
|
|
11241
|
-
components: {
|
|
11242
|
-
FontAwesomeIcon
|
|
11243
|
-
},
|
|
11213
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
11244
11214
|
props: {
|
|
11245
11215
|
icon: { type: [String, Array], default: "" },
|
|
11246
11216
|
color: { type: String, default: "" },
|
|
@@ -11256,75 +11226,60 @@ const _sfc_main$l = {
|
|
|
11256
11226
|
swapOpacity: { type: Boolean, default: false }
|
|
11257
11227
|
},
|
|
11258
11228
|
emits: ["click"],
|
|
11259
|
-
|
|
11260
|
-
|
|
11229
|
+
setup(__props, { emit: emits }) {
|
|
11230
|
+
const props = __props;
|
|
11231
|
+
library.add(_iconsCache$2);
|
|
11232
|
+
library.add(_iconsCache$1);
|
|
11233
|
+
library.add(_iconsCache);
|
|
11234
|
+
const computediconPack = computed$2(() => {
|
|
11261
11235
|
const defaultPackage = "font-awesome";
|
|
11262
|
-
if (
|
|
11236
|
+
if (props.iconPack === "")
|
|
11263
11237
|
return defaultPackage;
|
|
11264
|
-
if (
|
|
11265
|
-
return
|
|
11238
|
+
if (props.iconPack === "feather")
|
|
11239
|
+
return props.iconPack;
|
|
11266
11240
|
return defaultPackage;
|
|
11267
|
-
}
|
|
11268
|
-
computedClass() {
|
|
11241
|
+
});
|
|
11242
|
+
const computedClass = computed$2(() => {
|
|
11269
11243
|
const classList2 = [];
|
|
11270
|
-
if (
|
|
11271
|
-
classList2.push(`ck-component__color--${
|
|
11244
|
+
if (props.color)
|
|
11245
|
+
classList2.push(`ck-component__color--${props.color}`);
|
|
11272
11246
|
return classList2;
|
|
11247
|
+
});
|
|
11248
|
+
function onClick(event) {
|
|
11249
|
+
emits("click", event);
|
|
11273
11250
|
}
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11251
|
+
return (_ctx, _cache) => {
|
|
11252
|
+
return openBlock(), createElementBlock("div", {
|
|
11253
|
+
class: normalizeClass(["ck-icon", unref$1(computedClass)]),
|
|
11254
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
11255
|
+
}, [
|
|
11256
|
+
unref$1(computediconPack) === "font-awesome" ? (openBlock(), createBlock(unref$1(FontAwesomeIcon), {
|
|
11257
|
+
key: 0,
|
|
11258
|
+
icon: __props.icon,
|
|
11259
|
+
size: __props.size,
|
|
11260
|
+
rotation: __props.rotation,
|
|
11261
|
+
flip: __props.flip,
|
|
11262
|
+
pull: __props.pull,
|
|
11263
|
+
spin: __props.spin,
|
|
11264
|
+
pulse: __props.pulse,
|
|
11265
|
+
inverse: __props.inverse,
|
|
11266
|
+
"fixed-width": __props.fixedWidth,
|
|
11267
|
+
"swap-opacity": __props.swapOpacity
|
|
11268
|
+
}, null, 8, ["icon", "size", "rotation", "flip", "pull", "spin", "pulse", "inverse", "fixed-width", "swap-opacity"])) : createCommentVNode("", true)
|
|
11269
|
+
], 2);
|
|
11270
|
+
};
|
|
11284
11271
|
}
|
|
11285
|
-
};
|
|
11286
|
-
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["
|
|
11287
|
-
const _hoisted_1$i = ["title", "aria-label", "disabled"];
|
|
11288
|
-
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11289
|
-
const _component_ck_icon = resolveComponent("ck-icon");
|
|
11290
|
-
return openBlock(), createElementBlock("button", {
|
|
11291
|
-
type: "button",
|
|
11292
|
-
class: normalizeClass($options.computedClass),
|
|
11293
|
-
title: $props.title,
|
|
11294
|
-
"aria-label": $props.title,
|
|
11295
|
-
disabled: $props.disabled,
|
|
11296
|
-
onClick: _cache[0] || (_cache[0] = ($event) => $options.onClick($event))
|
|
11297
|
-
}, [
|
|
11298
|
-
$props.icon ? (openBlock(), createBlock(_component_ck_icon, {
|
|
11299
|
-
key: 0,
|
|
11300
|
-
class: "ck-button__icon-left",
|
|
11301
|
-
icon: $props.icon,
|
|
11302
|
-
"icon-pack": $props.iconPack
|
|
11303
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11304
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
11305
|
-
$props.iconRight ? (openBlock(), createBlock(_component_ck_icon, {
|
|
11306
|
-
key: 1,
|
|
11307
|
-
class: "ck-button__icon-right",
|
|
11308
|
-
icon: $props.iconRight,
|
|
11309
|
-
"icon-pack": $props.iconPack
|
|
11310
|
-
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11311
|
-
], 10, _hoisted_1$i);
|
|
11312
|
-
}
|
|
11272
|
+
});
|
|
11273
|
+
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-25801d7b"]]);
|
|
11313
11274
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11314
|
-
const
|
|
11315
|
-
const
|
|
11316
|
-
const defaultAlign = "left";
|
|
11317
|
-
const _sfc_main$k = {
|
|
11318
|
-
name: "CkButton",
|
|
11319
|
-
components: {
|
|
11320
|
-
ckIcon
|
|
11321
|
-
},
|
|
11275
|
+
const _hoisted_1$i = ["title", "aria-label", "disabled"];
|
|
11276
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
11322
11277
|
props: {
|
|
11323
11278
|
title: { type: String, default: void 0 },
|
|
11324
11279
|
disabled: { type: Boolean, default: false },
|
|
11325
|
-
type: { type: String, default:
|
|
11326
|
-
color: { type: String, default:
|
|
11327
|
-
align: { type: String, default:
|
|
11280
|
+
type: { type: String, default: "outlined", validator: validators.buttonType },
|
|
11281
|
+
color: { type: String, default: "primary" },
|
|
11282
|
+
align: { type: String, default: "left", validator: validators.align },
|
|
11328
11283
|
icon: { type: [String, Array], default: void 0 },
|
|
11329
11284
|
iconPack: { type: String, default: void 0 },
|
|
11330
11285
|
iconRight: { type: String, default: void 0 },
|
|
@@ -11335,108 +11290,921 @@ const _sfc_main$k = {
|
|
|
11335
11290
|
groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
|
|
11336
11291
|
},
|
|
11337
11292
|
emits: ["click"],
|
|
11338
|
-
|
|
11339
|
-
|
|
11293
|
+
setup(__props, { emit: emits }) {
|
|
11294
|
+
const props = __props;
|
|
11295
|
+
let context;
|
|
11296
|
+
const isMounted = ref(false);
|
|
11297
|
+
const computedClass = computed$2(() => {
|
|
11340
11298
|
const classList2 = [];
|
|
11341
|
-
classList2.push(functions$1.getGroupClass(
|
|
11342
|
-
if (
|
|
11343
|
-
if (
|
|
11344
|
-
classList2.push(`ck-component__bg-color--${
|
|
11299
|
+
classList2.push(functions$1.getGroupClass(props));
|
|
11300
|
+
if (props.color !== "primary") {
|
|
11301
|
+
if (props.type === "filled") {
|
|
11302
|
+
classList2.push(`ck-component__bg-color--${props.color}`);
|
|
11345
11303
|
} else {
|
|
11346
|
-
classList2.push(`ck-component__border-color--${
|
|
11304
|
+
classList2.push(`ck-component__border-color--${props.color}`);
|
|
11347
11305
|
}
|
|
11348
11306
|
}
|
|
11349
|
-
if (
|
|
11350
|
-
classList2.push(`ck-button__align--${
|
|
11307
|
+
if (props.align !== "left") {
|
|
11308
|
+
classList2.push(`ck-button__align--${props.align}`);
|
|
11351
11309
|
}
|
|
11352
|
-
if (
|
|
11353
|
-
if (
|
|
11354
|
-
if (
|
|
11355
|
-
|
|
11310
|
+
if (isMounted.value) {
|
|
11311
|
+
if (!context.$slots.default) {
|
|
11312
|
+
if (props.icon || props.iconRight) {
|
|
11313
|
+
if (!(props.icon && props.iconRight))
|
|
11314
|
+
classList2.push("just-icon");
|
|
11315
|
+
}
|
|
11356
11316
|
}
|
|
11357
11317
|
}
|
|
11358
|
-
let type =
|
|
11359
|
-
if (!validators.buttonType(
|
|
11360
|
-
type =
|
|
11318
|
+
let type = props.type;
|
|
11319
|
+
if (!validators.buttonType(props.type))
|
|
11320
|
+
type = "outlined";
|
|
11361
11321
|
classList2.push(`type-${type}`);
|
|
11362
11322
|
return classList2;
|
|
11323
|
+
});
|
|
11324
|
+
function onClick(event) {
|
|
11325
|
+
emits("click", event);
|
|
11363
11326
|
}
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11327
|
+
onMounted(() => {
|
|
11328
|
+
context = getCurrentInstance().ctx;
|
|
11329
|
+
isMounted.value = true;
|
|
11330
|
+
});
|
|
11331
|
+
return (_ctx, _cache) => {
|
|
11332
|
+
return openBlock(), createElementBlock("button", {
|
|
11333
|
+
type: "button",
|
|
11334
|
+
class: normalizeClass(unref$1(computedClass)),
|
|
11335
|
+
title: __props.title,
|
|
11336
|
+
"aria-label": __props.title,
|
|
11337
|
+
disabled: __props.disabled,
|
|
11338
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
11339
|
+
}, [
|
|
11340
|
+
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
11341
|
+
key: 0,
|
|
11342
|
+
class: "ck-button__icon-left",
|
|
11343
|
+
icon: __props.icon,
|
|
11344
|
+
"icon-pack": __props.iconPack
|
|
11345
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11346
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
11347
|
+
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
11348
|
+
key: 1,
|
|
11349
|
+
class: "ck-button__icon-right",
|
|
11350
|
+
icon: __props.iconRight,
|
|
11351
|
+
"icon-pack": __props.iconPack
|
|
11352
|
+
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11353
|
+
], 10, _hoisted_1$i);
|
|
11354
|
+
};
|
|
11355
|
+
}
|
|
11356
|
+
});
|
|
11357
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-36b03be6"]]);
|
|
11358
|
+
const NOOP$1 = () => {
|
|
11359
|
+
};
|
|
11360
|
+
const isArray$1 = Array.isArray;
|
|
11361
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
11362
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
11363
|
+
const def = (obj, key, value) => {
|
|
11364
|
+
Object.defineProperty(obj, key, {
|
|
11365
|
+
configurable: true,
|
|
11366
|
+
enumerable: false,
|
|
11367
|
+
value
|
|
11368
|
+
});
|
|
11369
|
+
};
|
|
11370
|
+
let activeEffectScope;
|
|
11371
|
+
function recordEffectScope(effect3, scope) {
|
|
11372
|
+
scope = scope || activeEffectScope;
|
|
11373
|
+
if (scope && scope.active) {
|
|
11374
|
+
scope.effects.push(effect3);
|
|
11375
|
+
}
|
|
11376
|
+
}
|
|
11377
|
+
const createDep = (effects) => {
|
|
11378
|
+
const dep = new Set(effects);
|
|
11379
|
+
dep.w = 0;
|
|
11380
|
+
dep.n = 0;
|
|
11381
|
+
return dep;
|
|
11382
|
+
};
|
|
11383
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
11384
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
11385
|
+
const initDepMarkers = ({ deps }) => {
|
|
11386
|
+
if (deps.length) {
|
|
11387
|
+
for (let i = 0; i < deps.length; i++) {
|
|
11388
|
+
deps[i].w |= trackOpBit;
|
|
11389
|
+
}
|
|
11390
|
+
}
|
|
11391
|
+
};
|
|
11392
|
+
const finalizeDepMarkers = (effect3) => {
|
|
11393
|
+
const { deps } = effect3;
|
|
11394
|
+
if (deps.length) {
|
|
11395
|
+
let ptr = 0;
|
|
11396
|
+
for (let i = 0; i < deps.length; i++) {
|
|
11397
|
+
const dep = deps[i];
|
|
11398
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
11399
|
+
dep.delete(effect3);
|
|
11400
|
+
} else {
|
|
11401
|
+
deps[ptr++] = dep;
|
|
11402
|
+
}
|
|
11403
|
+
dep.w &= ~trackOpBit;
|
|
11404
|
+
dep.n &= ~trackOpBit;
|
|
11405
|
+
}
|
|
11406
|
+
deps.length = ptr;
|
|
11407
|
+
}
|
|
11408
|
+
};
|
|
11409
|
+
let effectTrackDepth = 0;
|
|
11410
|
+
let trackOpBit = 1;
|
|
11411
|
+
const maxMarkerBits = 30;
|
|
11412
|
+
const effectStack = [];
|
|
11413
|
+
let activeEffect;
|
|
11414
|
+
class ReactiveEffect {
|
|
11415
|
+
constructor(fn2, scheduler = null, scope) {
|
|
11416
|
+
this.fn = fn2;
|
|
11417
|
+
this.scheduler = scheduler;
|
|
11418
|
+
this.active = true;
|
|
11419
|
+
this.deps = [];
|
|
11420
|
+
recordEffectScope(this, scope);
|
|
11421
|
+
}
|
|
11422
|
+
run() {
|
|
11423
|
+
if (!this.active) {
|
|
11424
|
+
return this.fn();
|
|
11425
|
+
}
|
|
11426
|
+
if (!effectStack.length || !effectStack.includes(this)) {
|
|
11427
|
+
try {
|
|
11428
|
+
effectStack.push(activeEffect = this);
|
|
11429
|
+
enableTracking();
|
|
11430
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
11431
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
11432
|
+
initDepMarkers(this);
|
|
11433
|
+
} else {
|
|
11434
|
+
cleanupEffect(this);
|
|
11435
|
+
}
|
|
11436
|
+
return this.fn();
|
|
11437
|
+
} finally {
|
|
11438
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
11439
|
+
finalizeDepMarkers(this);
|
|
11440
|
+
}
|
|
11441
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
11442
|
+
resetTracking();
|
|
11443
|
+
effectStack.pop();
|
|
11444
|
+
const n = effectStack.length;
|
|
11445
|
+
activeEffect = n > 0 ? effectStack[n - 1] : void 0;
|
|
11446
|
+
}
|
|
11447
|
+
}
|
|
11448
|
+
}
|
|
11449
|
+
stop() {
|
|
11450
|
+
if (this.active) {
|
|
11451
|
+
cleanupEffect(this);
|
|
11452
|
+
if (this.onStop) {
|
|
11453
|
+
this.onStop();
|
|
11454
|
+
}
|
|
11455
|
+
this.active = false;
|
|
11456
|
+
}
|
|
11457
|
+
}
|
|
11458
|
+
}
|
|
11459
|
+
function cleanupEffect(effect3) {
|
|
11460
|
+
const { deps } = effect3;
|
|
11461
|
+
if (deps.length) {
|
|
11462
|
+
for (let i = 0; i < deps.length; i++) {
|
|
11463
|
+
deps[i].delete(effect3);
|
|
11464
|
+
}
|
|
11465
|
+
deps.length = 0;
|
|
11466
|
+
}
|
|
11467
|
+
}
|
|
11468
|
+
let shouldTrack = true;
|
|
11469
|
+
const trackStack = [];
|
|
11470
|
+
function enableTracking() {
|
|
11471
|
+
trackStack.push(shouldTrack);
|
|
11472
|
+
shouldTrack = true;
|
|
11473
|
+
}
|
|
11474
|
+
function resetTracking() {
|
|
11475
|
+
const last = trackStack.pop();
|
|
11476
|
+
shouldTrack = last === void 0 ? true : last;
|
|
11477
|
+
}
|
|
11478
|
+
function isTracking() {
|
|
11479
|
+
return shouldTrack && activeEffect !== void 0;
|
|
11480
|
+
}
|
|
11481
|
+
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
11482
|
+
let shouldTrack2 = false;
|
|
11483
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
11484
|
+
if (!newTracked(dep)) {
|
|
11485
|
+
dep.n |= trackOpBit;
|
|
11486
|
+
shouldTrack2 = !wasTracked(dep);
|
|
11487
|
+
}
|
|
11488
|
+
} else {
|
|
11489
|
+
shouldTrack2 = !dep.has(activeEffect);
|
|
11490
|
+
}
|
|
11491
|
+
if (shouldTrack2) {
|
|
11492
|
+
dep.add(activeEffect);
|
|
11493
|
+
activeEffect.deps.push(dep);
|
|
11494
|
+
}
|
|
11495
|
+
}
|
|
11496
|
+
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
11497
|
+
for (const effect3 of isArray$1(dep) ? dep : [...dep]) {
|
|
11498
|
+
if (effect3 !== activeEffect || effect3.allowRecurse) {
|
|
11499
|
+
if (effect3.scheduler) {
|
|
11500
|
+
effect3.scheduler();
|
|
11501
|
+
} else {
|
|
11502
|
+
effect3.run();
|
|
11503
|
+
}
|
|
11504
|
+
}
|
|
11505
|
+
}
|
|
11506
|
+
}
|
|
11507
|
+
new Set(Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter(isSymbol));
|
|
11508
|
+
function isReactive(value) {
|
|
11509
|
+
if (isReadonly(value)) {
|
|
11510
|
+
return isReactive(value["__v_raw"]);
|
|
11511
|
+
}
|
|
11512
|
+
return !!(value && value["__v_isReactive"]);
|
|
11513
|
+
}
|
|
11514
|
+
function isReadonly(value) {
|
|
11515
|
+
return !!(value && value["__v_isReadonly"]);
|
|
11516
|
+
}
|
|
11517
|
+
function isShallow(value) {
|
|
11518
|
+
return !!(value && value["__v_isShallow"]);
|
|
11519
|
+
}
|
|
11520
|
+
function toRaw(observed) {
|
|
11521
|
+
const raw = observed && observed["__v_raw"];
|
|
11522
|
+
return raw ? toRaw(raw) : observed;
|
|
11523
|
+
}
|
|
11524
|
+
function markRaw(value) {
|
|
11525
|
+
def(value, "__v_skip", true);
|
|
11526
|
+
return value;
|
|
11527
|
+
}
|
|
11528
|
+
function trackRefValue(ref2) {
|
|
11529
|
+
if (isTracking()) {
|
|
11530
|
+
ref2 = toRaw(ref2);
|
|
11531
|
+
if (!ref2.dep) {
|
|
11532
|
+
ref2.dep = createDep();
|
|
11533
|
+
}
|
|
11534
|
+
{
|
|
11535
|
+
trackEffects(ref2.dep);
|
|
11536
|
+
}
|
|
11537
|
+
}
|
|
11538
|
+
}
|
|
11539
|
+
function triggerRefValue(ref2, newVal) {
|
|
11540
|
+
ref2 = toRaw(ref2);
|
|
11541
|
+
if (ref2.dep) {
|
|
11542
|
+
{
|
|
11543
|
+
triggerEffects(ref2.dep);
|
|
11544
|
+
}
|
|
11545
|
+
}
|
|
11546
|
+
}
|
|
11547
|
+
function isRef(r) {
|
|
11548
|
+
return Boolean(r && r.__v_isRef === true);
|
|
11549
|
+
}
|
|
11550
|
+
function unref(ref2) {
|
|
11551
|
+
return isRef(ref2) ? ref2.value : ref2;
|
|
11552
|
+
}
|
|
11553
|
+
const shallowUnwrapHandlers = {
|
|
11554
|
+
get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
|
|
11555
|
+
set: (target, key, value, receiver) => {
|
|
11556
|
+
const oldValue = target[key];
|
|
11557
|
+
if (isRef(oldValue) && !isRef(value)) {
|
|
11558
|
+
oldValue.value = value;
|
|
11559
|
+
return true;
|
|
11560
|
+
} else {
|
|
11561
|
+
return Reflect.set(target, key, value, receiver);
|
|
11562
|
+
}
|
|
11563
|
+
}
|
|
11564
|
+
};
|
|
11565
|
+
function proxyRefs(objectWithRefs) {
|
|
11566
|
+
return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
11567
|
+
}
|
|
11568
|
+
class ComputedRefImpl {
|
|
11569
|
+
constructor(getter, _setter, isReadonly2, isSSR) {
|
|
11570
|
+
this._setter = _setter;
|
|
11571
|
+
this.dep = void 0;
|
|
11572
|
+
this.__v_isRef = true;
|
|
11573
|
+
this._dirty = true;
|
|
11574
|
+
this.effect = new ReactiveEffect(getter, () => {
|
|
11575
|
+
if (!this._dirty) {
|
|
11576
|
+
this._dirty = true;
|
|
11577
|
+
triggerRefValue(this);
|
|
11578
|
+
}
|
|
11579
|
+
});
|
|
11580
|
+
this.effect.computed = this;
|
|
11581
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
11582
|
+
this["__v_isReadonly"] = isReadonly2;
|
|
11583
|
+
}
|
|
11584
|
+
get value() {
|
|
11585
|
+
const self2 = toRaw(this);
|
|
11586
|
+
trackRefValue(self2);
|
|
11587
|
+
if (self2._dirty || !self2._cacheable) {
|
|
11588
|
+
self2._dirty = false;
|
|
11589
|
+
self2._value = self2.effect.run();
|
|
11590
|
+
}
|
|
11591
|
+
return self2._value;
|
|
11592
|
+
}
|
|
11593
|
+
set value(newValue) {
|
|
11594
|
+
this._setter(newValue);
|
|
11595
|
+
}
|
|
11596
|
+
}
|
|
11597
|
+
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
11598
|
+
let getter;
|
|
11599
|
+
let setter;
|
|
11600
|
+
const onlyGetter = isFunction$1(getterOrOptions);
|
|
11601
|
+
if (onlyGetter) {
|
|
11602
|
+
getter = getterOrOptions;
|
|
11603
|
+
setter = NOOP$1;
|
|
11604
|
+
} else {
|
|
11605
|
+
getter = getterOrOptions.get;
|
|
11606
|
+
setter = getterOrOptions.set;
|
|
11607
|
+
}
|
|
11608
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
11609
|
+
return cRef;
|
|
11610
|
+
}
|
|
11611
|
+
Promise.resolve();
|
|
11612
|
+
const EMPTY_OBJ = {};
|
|
11613
|
+
const NOOP = () => {
|
|
11614
|
+
};
|
|
11615
|
+
const extend = Object.assign;
|
|
11616
|
+
const remove = (arr, el) => {
|
|
11617
|
+
const i = arr.indexOf(el);
|
|
11618
|
+
if (i > -1) {
|
|
11619
|
+
arr.splice(i, 1);
|
|
11620
|
+
}
|
|
11621
|
+
};
|
|
11622
|
+
const isArray = Array.isArray;
|
|
11623
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
11624
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
11625
|
+
const isFunction = (val) => typeof val === "function";
|
|
11626
|
+
const isString = (val) => typeof val === "string";
|
|
11627
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
11628
|
+
const isPromise = (val) => {
|
|
11629
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
11630
|
+
};
|
|
11631
|
+
const objectToString = Object.prototype.toString;
|
|
11632
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
11633
|
+
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
11634
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
11635
|
+
function callWithErrorHandling(fn2, instance, type, args) {
|
|
11636
|
+
let res;
|
|
11637
|
+
try {
|
|
11638
|
+
res = args ? fn2(...args) : fn2();
|
|
11639
|
+
} catch (err) {
|
|
11640
|
+
handleError(err, instance, type);
|
|
11641
|
+
}
|
|
11642
|
+
return res;
|
|
11643
|
+
}
|
|
11644
|
+
function callWithAsyncErrorHandling(fn2, instance, type, args) {
|
|
11645
|
+
if (isFunction(fn2)) {
|
|
11646
|
+
const res = callWithErrorHandling(fn2, instance, type, args);
|
|
11647
|
+
if (res && isPromise(res)) {
|
|
11648
|
+
res.catch((err) => {
|
|
11649
|
+
handleError(err, instance, type);
|
|
11650
|
+
});
|
|
11651
|
+
}
|
|
11652
|
+
return res;
|
|
11653
|
+
}
|
|
11654
|
+
const values = [];
|
|
11655
|
+
for (let i = 0; i < fn2.length; i++) {
|
|
11656
|
+
values.push(callWithAsyncErrorHandling(fn2[i], instance, type, args));
|
|
11657
|
+
}
|
|
11658
|
+
return values;
|
|
11659
|
+
}
|
|
11660
|
+
function handleError(err, instance, type, throwInDev = true) {
|
|
11661
|
+
const contextVNode = instance ? instance.vnode : null;
|
|
11662
|
+
if (instance) {
|
|
11663
|
+
let cur = instance.parent;
|
|
11664
|
+
const exposedInstance = instance.proxy;
|
|
11665
|
+
const errorInfo = type;
|
|
11666
|
+
while (cur) {
|
|
11667
|
+
const errorCapturedHooks = cur.ec;
|
|
11668
|
+
if (errorCapturedHooks) {
|
|
11669
|
+
for (let i = 0; i < errorCapturedHooks.length; i++) {
|
|
11670
|
+
if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
|
|
11671
|
+
return;
|
|
11672
|
+
}
|
|
11673
|
+
}
|
|
11674
|
+
}
|
|
11675
|
+
cur = cur.parent;
|
|
11676
|
+
}
|
|
11677
|
+
const appErrorHandler = instance.appContext.config.errorHandler;
|
|
11678
|
+
if (appErrorHandler) {
|
|
11679
|
+
callWithErrorHandling(appErrorHandler, null, 10, [err, exposedInstance, errorInfo]);
|
|
11680
|
+
return;
|
|
11681
|
+
}
|
|
11682
|
+
}
|
|
11683
|
+
logError(err, type, contextVNode, throwInDev);
|
|
11684
|
+
}
|
|
11685
|
+
function logError(err, type, contextVNode, throwInDev = true) {
|
|
11686
|
+
{
|
|
11687
|
+
console.error(err);
|
|
11688
|
+
}
|
|
11689
|
+
}
|
|
11690
|
+
let isFlushing = false;
|
|
11691
|
+
let isFlushPending = false;
|
|
11692
|
+
const queue = [];
|
|
11693
|
+
let flushIndex = 0;
|
|
11694
|
+
const pendingPreFlushCbs = [];
|
|
11695
|
+
let activePreFlushCbs = null;
|
|
11696
|
+
let preFlushIndex = 0;
|
|
11697
|
+
const pendingPostFlushCbs = [];
|
|
11698
|
+
let activePostFlushCbs = null;
|
|
11699
|
+
let postFlushIndex = 0;
|
|
11700
|
+
const resolvedPromise = Promise.resolve();
|
|
11701
|
+
let currentFlushPromise = null;
|
|
11702
|
+
let currentPreFlushParentJob = null;
|
|
11703
|
+
function nextTick(fn2) {
|
|
11704
|
+
const p = currentFlushPromise || resolvedPromise;
|
|
11705
|
+
return fn2 ? p.then(this ? fn2.bind(this) : fn2) : p;
|
|
11706
|
+
}
|
|
11707
|
+
function findInsertionIndex(id) {
|
|
11708
|
+
let start2 = flushIndex + 1;
|
|
11709
|
+
let end2 = queue.length;
|
|
11710
|
+
while (start2 < end2) {
|
|
11711
|
+
const middle = start2 + end2 >>> 1;
|
|
11712
|
+
const middleJobId = getId(queue[middle]);
|
|
11713
|
+
middleJobId < id ? start2 = middle + 1 : end2 = middle;
|
|
11714
|
+
}
|
|
11715
|
+
return start2;
|
|
11716
|
+
}
|
|
11717
|
+
function queueJob(job) {
|
|
11718
|
+
if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) {
|
|
11719
|
+
if (job.id == null) {
|
|
11720
|
+
queue.push(job);
|
|
11721
|
+
} else {
|
|
11722
|
+
queue.splice(findInsertionIndex(job.id), 0, job);
|
|
11723
|
+
}
|
|
11724
|
+
queueFlush();
|
|
11725
|
+
}
|
|
11726
|
+
}
|
|
11727
|
+
function queueFlush() {
|
|
11728
|
+
if (!isFlushing && !isFlushPending) {
|
|
11729
|
+
isFlushPending = true;
|
|
11730
|
+
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
11731
|
+
}
|
|
11732
|
+
}
|
|
11733
|
+
function queueCb(cb, activeQueue, pendingQueue, index) {
|
|
11734
|
+
if (!isArray(cb)) {
|
|
11735
|
+
if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {
|
|
11736
|
+
pendingQueue.push(cb);
|
|
11737
|
+
}
|
|
11738
|
+
} else {
|
|
11739
|
+
pendingQueue.push(...cb);
|
|
11740
|
+
}
|
|
11741
|
+
queueFlush();
|
|
11742
|
+
}
|
|
11743
|
+
function queuePreFlushCb(cb) {
|
|
11744
|
+
queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
|
|
11745
|
+
}
|
|
11746
|
+
function queuePostFlushCb(cb) {
|
|
11747
|
+
queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
|
|
11748
|
+
}
|
|
11749
|
+
function flushPreFlushCbs(seen, parentJob = null) {
|
|
11750
|
+
if (pendingPreFlushCbs.length) {
|
|
11751
|
+
currentPreFlushParentJob = parentJob;
|
|
11752
|
+
activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
|
|
11753
|
+
pendingPreFlushCbs.length = 0;
|
|
11754
|
+
for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
|
|
11755
|
+
activePreFlushCbs[preFlushIndex]();
|
|
11756
|
+
}
|
|
11757
|
+
activePreFlushCbs = null;
|
|
11758
|
+
preFlushIndex = 0;
|
|
11759
|
+
currentPreFlushParentJob = null;
|
|
11760
|
+
flushPreFlushCbs(seen, parentJob);
|
|
11761
|
+
}
|
|
11762
|
+
}
|
|
11763
|
+
function flushPostFlushCbs(seen) {
|
|
11764
|
+
if (pendingPostFlushCbs.length) {
|
|
11765
|
+
const deduped = [...new Set(pendingPostFlushCbs)];
|
|
11766
|
+
pendingPostFlushCbs.length = 0;
|
|
11767
|
+
if (activePostFlushCbs) {
|
|
11768
|
+
activePostFlushCbs.push(...deduped);
|
|
11769
|
+
return;
|
|
11770
|
+
}
|
|
11771
|
+
activePostFlushCbs = deduped;
|
|
11772
|
+
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
|
|
11773
|
+
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
11774
|
+
activePostFlushCbs[postFlushIndex]();
|
|
11775
|
+
}
|
|
11776
|
+
activePostFlushCbs = null;
|
|
11777
|
+
postFlushIndex = 0;
|
|
11778
|
+
}
|
|
11779
|
+
}
|
|
11780
|
+
const getId = (job) => job.id == null ? Infinity : job.id;
|
|
11781
|
+
function flushJobs(seen) {
|
|
11782
|
+
isFlushPending = false;
|
|
11783
|
+
isFlushing = true;
|
|
11784
|
+
flushPreFlushCbs(seen);
|
|
11785
|
+
queue.sort((a, b) => getId(a) - getId(b));
|
|
11786
|
+
const check = NOOP;
|
|
11787
|
+
try {
|
|
11788
|
+
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
11789
|
+
const job = queue[flushIndex];
|
|
11790
|
+
if (job && job.active !== false) {
|
|
11791
|
+
if (false)
|
|
11792
|
+
;
|
|
11793
|
+
callWithErrorHandling(job, null, 14);
|
|
11794
|
+
}
|
|
11795
|
+
}
|
|
11796
|
+
} finally {
|
|
11797
|
+
flushIndex = 0;
|
|
11798
|
+
queue.length = 0;
|
|
11799
|
+
flushPostFlushCbs();
|
|
11800
|
+
isFlushing = false;
|
|
11801
|
+
currentFlushPromise = null;
|
|
11802
|
+
if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) {
|
|
11803
|
+
flushJobs(seen);
|
|
11804
|
+
}
|
|
11805
|
+
}
|
|
11806
|
+
}
|
|
11807
|
+
function queueEffectWithSuspense(fn2, suspense) {
|
|
11808
|
+
if (suspense && suspense.pendingBranch) {
|
|
11809
|
+
if (isArray(fn2)) {
|
|
11810
|
+
suspense.effects.push(...fn2);
|
|
11811
|
+
} else {
|
|
11812
|
+
suspense.effects.push(fn2);
|
|
11813
|
+
}
|
|
11814
|
+
} else {
|
|
11815
|
+
queuePostFlushCb(fn2);
|
|
11816
|
+
}
|
|
11817
|
+
}
|
|
11818
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
11819
|
+
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger: onTrigger2 } = EMPTY_OBJ) {
|
|
11820
|
+
const instance = currentInstance;
|
|
11821
|
+
let getter;
|
|
11822
|
+
let forceTrigger = false;
|
|
11823
|
+
let isMultiSource = false;
|
|
11824
|
+
if (isRef(source)) {
|
|
11825
|
+
getter = () => source.value;
|
|
11826
|
+
forceTrigger = isShallow(source);
|
|
11827
|
+
} else if (isReactive(source)) {
|
|
11828
|
+
getter = () => source;
|
|
11829
|
+
deep = true;
|
|
11830
|
+
} else if (isArray(source)) {
|
|
11831
|
+
isMultiSource = true;
|
|
11832
|
+
forceTrigger = source.some(isReactive);
|
|
11833
|
+
getter = () => source.map((s) => {
|
|
11834
|
+
if (isRef(s)) {
|
|
11835
|
+
return s.value;
|
|
11836
|
+
} else if (isReactive(s)) {
|
|
11837
|
+
return traverse(s);
|
|
11838
|
+
} else if (isFunction(s)) {
|
|
11839
|
+
return callWithErrorHandling(s, instance, 2);
|
|
11840
|
+
} else
|
|
11841
|
+
;
|
|
11842
|
+
});
|
|
11843
|
+
} else if (isFunction(source)) {
|
|
11844
|
+
if (cb) {
|
|
11845
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
11846
|
+
} else {
|
|
11847
|
+
getter = () => {
|
|
11848
|
+
if (instance && instance.isUnmounted) {
|
|
11849
|
+
return;
|
|
11850
|
+
}
|
|
11851
|
+
if (cleanup) {
|
|
11852
|
+
cleanup();
|
|
11853
|
+
}
|
|
11854
|
+
return callWithAsyncErrorHandling(source, instance, 3, [onCleanup]);
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
} else {
|
|
11858
|
+
getter = NOOP;
|
|
11859
|
+
}
|
|
11860
|
+
if (cb && deep) {
|
|
11861
|
+
const baseGetter = getter;
|
|
11862
|
+
getter = () => traverse(baseGetter());
|
|
11863
|
+
}
|
|
11864
|
+
let cleanup;
|
|
11865
|
+
let onCleanup = (fn2) => {
|
|
11866
|
+
cleanup = effect3.onStop = () => {
|
|
11867
|
+
callWithErrorHandling(fn2, instance, 4);
|
|
11868
|
+
};
|
|
11869
|
+
};
|
|
11870
|
+
let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
|
|
11871
|
+
const job = () => {
|
|
11872
|
+
if (!effect3.active) {
|
|
11873
|
+
return;
|
|
11874
|
+
}
|
|
11875
|
+
if (cb) {
|
|
11876
|
+
const newValue = effect3.run();
|
|
11877
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
11878
|
+
if (cleanup) {
|
|
11879
|
+
cleanup();
|
|
11880
|
+
}
|
|
11881
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
11882
|
+
newValue,
|
|
11883
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : oldValue,
|
|
11884
|
+
onCleanup
|
|
11885
|
+
]);
|
|
11886
|
+
oldValue = newValue;
|
|
11887
|
+
}
|
|
11888
|
+
} else {
|
|
11889
|
+
effect3.run();
|
|
11890
|
+
}
|
|
11891
|
+
};
|
|
11892
|
+
job.allowRecurse = !!cb;
|
|
11893
|
+
let scheduler;
|
|
11894
|
+
if (flush === "sync") {
|
|
11895
|
+
scheduler = job;
|
|
11896
|
+
} else if (flush === "post") {
|
|
11897
|
+
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
11898
|
+
} else {
|
|
11899
|
+
scheduler = () => {
|
|
11900
|
+
if (!instance || instance.isMounted) {
|
|
11901
|
+
queuePreFlushCb(job);
|
|
11902
|
+
} else {
|
|
11903
|
+
job();
|
|
11904
|
+
}
|
|
11905
|
+
};
|
|
11906
|
+
}
|
|
11907
|
+
const effect3 = new ReactiveEffect(getter, scheduler);
|
|
11908
|
+
if (cb) {
|
|
11909
|
+
if (immediate) {
|
|
11910
|
+
job();
|
|
11911
|
+
} else {
|
|
11912
|
+
oldValue = effect3.run();
|
|
11913
|
+
}
|
|
11914
|
+
} else if (flush === "post") {
|
|
11915
|
+
queuePostRenderEffect(effect3.run.bind(effect3), instance && instance.suspense);
|
|
11916
|
+
} else {
|
|
11917
|
+
effect3.run();
|
|
11918
|
+
}
|
|
11919
|
+
return () => {
|
|
11920
|
+
effect3.stop();
|
|
11921
|
+
if (instance && instance.scope) {
|
|
11922
|
+
remove(instance.scope.effects, effect3);
|
|
11923
|
+
}
|
|
11924
|
+
};
|
|
11925
|
+
}
|
|
11926
|
+
function instanceWatch(source, value, options) {
|
|
11927
|
+
const publicThis = this.proxy;
|
|
11928
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
11929
|
+
let cb;
|
|
11930
|
+
if (isFunction(value)) {
|
|
11931
|
+
cb = value;
|
|
11932
|
+
} else {
|
|
11933
|
+
cb = value.handler;
|
|
11934
|
+
options = value;
|
|
11935
|
+
}
|
|
11936
|
+
const cur = currentInstance;
|
|
11937
|
+
setCurrentInstance(this);
|
|
11938
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
11939
|
+
if (cur) {
|
|
11940
|
+
setCurrentInstance(cur);
|
|
11941
|
+
} else {
|
|
11942
|
+
unsetCurrentInstance();
|
|
11943
|
+
}
|
|
11944
|
+
return res;
|
|
11945
|
+
}
|
|
11946
|
+
function createPathGetter(ctx, path) {
|
|
11947
|
+
const segments = path.split(".");
|
|
11948
|
+
return () => {
|
|
11949
|
+
let cur = ctx;
|
|
11950
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
11951
|
+
cur = cur[segments[i]];
|
|
11952
|
+
}
|
|
11953
|
+
return cur;
|
|
11954
|
+
};
|
|
11955
|
+
}
|
|
11956
|
+
function traverse(value, seen) {
|
|
11957
|
+
if (!isObject(value) || value["__v_skip"]) {
|
|
11958
|
+
return value;
|
|
11959
|
+
}
|
|
11960
|
+
seen = seen || new Set();
|
|
11961
|
+
if (seen.has(value)) {
|
|
11962
|
+
return value;
|
|
11963
|
+
}
|
|
11964
|
+
seen.add(value);
|
|
11965
|
+
if (isRef(value)) {
|
|
11966
|
+
traverse(value.value, seen);
|
|
11967
|
+
} else if (isArray(value)) {
|
|
11968
|
+
for (let i = 0; i < value.length; i++) {
|
|
11969
|
+
traverse(value[i], seen);
|
|
11970
|
+
}
|
|
11971
|
+
} else if (isSet(value) || isMap(value)) {
|
|
11972
|
+
value.forEach((v) => {
|
|
11973
|
+
traverse(v, seen);
|
|
11974
|
+
});
|
|
11975
|
+
} else if (isPlainObject(value)) {
|
|
11976
|
+
for (const key in value) {
|
|
11977
|
+
traverse(value[key], seen);
|
|
11978
|
+
}
|
|
11979
|
+
}
|
|
11980
|
+
return value;
|
|
11981
|
+
}
|
|
11982
|
+
function resolveMergedOptions(instance) {
|
|
11983
|
+
const base = instance.type;
|
|
11984
|
+
const { mixins, extends: extendsOptions } = base;
|
|
11985
|
+
const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
|
|
11986
|
+
const cached = cache.get(base);
|
|
11987
|
+
let resolved;
|
|
11988
|
+
if (cached) {
|
|
11989
|
+
resolved = cached;
|
|
11990
|
+
} else if (!globalMixins.length && !mixins && !extendsOptions) {
|
|
11991
|
+
{
|
|
11992
|
+
resolved = base;
|
|
11993
|
+
}
|
|
11994
|
+
} else {
|
|
11995
|
+
resolved = {};
|
|
11996
|
+
if (globalMixins.length) {
|
|
11997
|
+
globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
|
|
11998
|
+
}
|
|
11999
|
+
mergeOptions(resolved, base, optionMergeStrategies);
|
|
12000
|
+
}
|
|
12001
|
+
cache.set(base, resolved);
|
|
12002
|
+
return resolved;
|
|
12003
|
+
}
|
|
12004
|
+
function mergeOptions(to, from, strats, asMixin = false) {
|
|
12005
|
+
const { mixins, extends: extendsOptions } = from;
|
|
12006
|
+
if (extendsOptions) {
|
|
12007
|
+
mergeOptions(to, extendsOptions, strats, true);
|
|
12008
|
+
}
|
|
12009
|
+
if (mixins) {
|
|
12010
|
+
mixins.forEach((m) => mergeOptions(to, m, strats, true));
|
|
12011
|
+
}
|
|
12012
|
+
for (const key in from) {
|
|
12013
|
+
if (asMixin && key === "expose")
|
|
12014
|
+
;
|
|
12015
|
+
else {
|
|
12016
|
+
const strat = internalOptionMergeStrats[key] || strats && strats[key];
|
|
12017
|
+
to[key] = strat ? strat(to[key], from[key]) : from[key];
|
|
11368
12018
|
}
|
|
11369
12019
|
}
|
|
12020
|
+
return to;
|
|
12021
|
+
}
|
|
12022
|
+
const internalOptionMergeStrats = {
|
|
12023
|
+
data: mergeDataFn,
|
|
12024
|
+
props: mergeObjectOptions,
|
|
12025
|
+
emits: mergeObjectOptions,
|
|
12026
|
+
methods: mergeObjectOptions,
|
|
12027
|
+
computed: mergeObjectOptions,
|
|
12028
|
+
beforeCreate: mergeAsArray,
|
|
12029
|
+
created: mergeAsArray,
|
|
12030
|
+
beforeMount: mergeAsArray,
|
|
12031
|
+
mounted: mergeAsArray,
|
|
12032
|
+
beforeUpdate: mergeAsArray,
|
|
12033
|
+
updated: mergeAsArray,
|
|
12034
|
+
beforeDestroy: mergeAsArray,
|
|
12035
|
+
beforeUnmount: mergeAsArray,
|
|
12036
|
+
destroyed: mergeAsArray,
|
|
12037
|
+
unmounted: mergeAsArray,
|
|
12038
|
+
activated: mergeAsArray,
|
|
12039
|
+
deactivated: mergeAsArray,
|
|
12040
|
+
errorCaptured: mergeAsArray,
|
|
12041
|
+
serverPrefetch: mergeAsArray,
|
|
12042
|
+
components: mergeObjectOptions,
|
|
12043
|
+
directives: mergeObjectOptions,
|
|
12044
|
+
watch: mergeWatchOptions,
|
|
12045
|
+
provide: mergeDataFn,
|
|
12046
|
+
inject: mergeInject
|
|
12047
|
+
};
|
|
12048
|
+
function mergeDataFn(to, from) {
|
|
12049
|
+
if (!from) {
|
|
12050
|
+
return to;
|
|
12051
|
+
}
|
|
12052
|
+
if (!to) {
|
|
12053
|
+
return from;
|
|
12054
|
+
}
|
|
12055
|
+
return function mergedDataFn() {
|
|
12056
|
+
return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
|
|
12057
|
+
};
|
|
12058
|
+
}
|
|
12059
|
+
function mergeInject(to, from) {
|
|
12060
|
+
return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
|
|
12061
|
+
}
|
|
12062
|
+
function normalizeInject(raw) {
|
|
12063
|
+
if (isArray(raw)) {
|
|
12064
|
+
const res = {};
|
|
12065
|
+
for (let i = 0; i < raw.length; i++) {
|
|
12066
|
+
res[raw[i]] = raw[i];
|
|
12067
|
+
}
|
|
12068
|
+
return res;
|
|
12069
|
+
}
|
|
12070
|
+
return raw;
|
|
12071
|
+
}
|
|
12072
|
+
function mergeAsArray(to, from) {
|
|
12073
|
+
return to ? [...new Set([].concat(to, from))] : from;
|
|
12074
|
+
}
|
|
12075
|
+
function mergeObjectOptions(to, from) {
|
|
12076
|
+
return to ? extend(extend(Object.create(null), to), from) : from;
|
|
12077
|
+
}
|
|
12078
|
+
function mergeWatchOptions(to, from) {
|
|
12079
|
+
if (!to)
|
|
12080
|
+
return from;
|
|
12081
|
+
if (!from)
|
|
12082
|
+
return to;
|
|
12083
|
+
const merged = extend(Object.create(null), to);
|
|
12084
|
+
for (const key in from) {
|
|
12085
|
+
merged[key] = mergeAsArray(to[key], from[key]);
|
|
12086
|
+
}
|
|
12087
|
+
return merged;
|
|
12088
|
+
}
|
|
12089
|
+
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
12090
|
+
const getPublicInstance = (i) => {
|
|
12091
|
+
if (!i)
|
|
12092
|
+
return null;
|
|
12093
|
+
if (isStatefulComponent(i))
|
|
12094
|
+
return getExposeProxy(i) || i.proxy;
|
|
12095
|
+
return getPublicInstance(i.parent);
|
|
12096
|
+
};
|
|
12097
|
+
const publicPropertiesMap = extend(Object.create(null), {
|
|
12098
|
+
$: (i) => i,
|
|
12099
|
+
$el: (i) => i.vnode.el,
|
|
12100
|
+
$data: (i) => i.data,
|
|
12101
|
+
$props: (i) => i.props,
|
|
12102
|
+
$attrs: (i) => i.attrs,
|
|
12103
|
+
$slots: (i) => i.slots,
|
|
12104
|
+
$refs: (i) => i.refs,
|
|
12105
|
+
$parent: (i) => getPublicInstance(i.parent),
|
|
12106
|
+
$root: (i) => getPublicInstance(i.root),
|
|
12107
|
+
$emit: (i) => i.emit,
|
|
12108
|
+
$options: (i) => resolveMergedOptions(i),
|
|
12109
|
+
$forceUpdate: (i) => () => queueJob(i.update),
|
|
12110
|
+
$nextTick: (i) => nextTick.bind(i.proxy),
|
|
12111
|
+
$watch: (i) => instanceWatch.bind(i)
|
|
12112
|
+
});
|
|
12113
|
+
let currentInstance = null;
|
|
12114
|
+
const setCurrentInstance = (instance) => {
|
|
12115
|
+
currentInstance = instance;
|
|
12116
|
+
instance.scope.on();
|
|
12117
|
+
};
|
|
12118
|
+
const unsetCurrentInstance = () => {
|
|
12119
|
+
currentInstance && currentInstance.scope.off();
|
|
12120
|
+
currentInstance = null;
|
|
12121
|
+
};
|
|
12122
|
+
function isStatefulComponent(instance) {
|
|
12123
|
+
return instance.vnode.shapeFlag & 4;
|
|
12124
|
+
}
|
|
12125
|
+
let isInSSRComponentSetup = false;
|
|
12126
|
+
function getExposeProxy(instance) {
|
|
12127
|
+
if (instance.exposed) {
|
|
12128
|
+
return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
|
|
12129
|
+
get(target, key) {
|
|
12130
|
+
if (key in target) {
|
|
12131
|
+
return target[key];
|
|
12132
|
+
} else if (key in publicPropertiesMap) {
|
|
12133
|
+
return publicPropertiesMap[key](instance);
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
}));
|
|
12137
|
+
}
|
|
12138
|
+
}
|
|
12139
|
+
const computed = (getterOrOptions, debugOptions) => {
|
|
12140
|
+
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
11370
12141
|
};
|
|
11371
|
-
var
|
|
11372
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
12142
|
+
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12143
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-132565da"), n = n(), popScopeId(), n);
|
|
11373
12144
|
const _hoisted_1$h = ["disabled", "checked"];
|
|
11374
12145
|
const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
11375
12146
|
const _hoisted_3$5 = {
|
|
11376
12147
|
key: 0,
|
|
11377
12148
|
class: "c-Checkbox__label"
|
|
11378
12149
|
};
|
|
11379
|
-
|
|
11380
|
-
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, $options.checkboxAttributes, {
|
|
11381
|
-
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
11382
|
-
}, ["prevent"]), ["space"])),
|
|
11383
|
-
onKeyup: [
|
|
11384
|
-
_cache[2] || (_cache[2] = withKeys(($event) => $options.onTrigger(), ["enter"])),
|
|
11385
|
-
_cache[3] || (_cache[3] = withKeys(($event) => $options.onTrigger(), ["space"]))
|
|
11386
|
-
]
|
|
11387
|
-
}), [
|
|
11388
|
-
createElementVNode("input", {
|
|
11389
|
-
class: "ck-checkbox__input",
|
|
11390
|
-
"aria-hidden": "true",
|
|
11391
|
-
type: "checkbox",
|
|
11392
|
-
disabled: $props.disabled,
|
|
11393
|
-
checked: $options.value,
|
|
11394
|
-
onChange: _cache[0] || (_cache[0] = ($event) => {
|
|
11395
|
-
$options.value = $event.target.checked;
|
|
11396
|
-
$options.onChange($event);
|
|
11397
|
-
})
|
|
11398
|
-
}, null, 40, _hoisted_1$h),
|
|
11399
|
-
_hoisted_2$8,
|
|
11400
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
11401
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11402
|
-
])) : createCommentVNode("", true)
|
|
11403
|
-
], 16);
|
|
11404
|
-
}
|
|
11405
|
-
var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11406
|
-
const _sfc_main$j = {
|
|
11407
|
-
name: "CkCheckbox",
|
|
12150
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
11408
12151
|
props: {
|
|
11409
12152
|
modelValue: { type: Boolean, default: false },
|
|
11410
12153
|
label: { type: String, default: void 0 },
|
|
11411
12154
|
disabled: { type: Boolean, default: false }
|
|
11412
12155
|
},
|
|
11413
12156
|
emits: ["update:modelValue", "change"],
|
|
11414
|
-
|
|
11415
|
-
|
|
12157
|
+
setup(__props, { emit: emits }) {
|
|
12158
|
+
const props = __props;
|
|
12159
|
+
const value = computed({
|
|
11416
12160
|
get() {
|
|
11417
|
-
return
|
|
12161
|
+
return props.modelValue;
|
|
11418
12162
|
},
|
|
11419
12163
|
set(val) {
|
|
11420
|
-
|
|
12164
|
+
emits("update:modelValue", val);
|
|
11421
12165
|
}
|
|
11422
|
-
}
|
|
11423
|
-
checkboxAttributes() {
|
|
12166
|
+
});
|
|
12167
|
+
const checkboxAttributes = computed(() => {
|
|
11424
12168
|
return {
|
|
11425
|
-
"aria-disabled":
|
|
11426
|
-
tabindex:
|
|
12169
|
+
"aria-disabled": props.disabled,
|
|
12170
|
+
tabindex: props.disabled ? void 0 : "0"
|
|
11427
12171
|
};
|
|
12172
|
+
});
|
|
12173
|
+
function onChange(event) {
|
|
12174
|
+
emits("change", event);
|
|
11428
12175
|
}
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
onChange(event) {
|
|
11432
|
-
this.$emit("change", event);
|
|
11433
|
-
},
|
|
11434
|
-
onTrigger() {
|
|
11435
|
-
this.value = !this.value;
|
|
12176
|
+
function onTrigger2() {
|
|
12177
|
+
value.value = !value.value;
|
|
11436
12178
|
}
|
|
12179
|
+
return (_ctx, _cache) => {
|
|
12180
|
+
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-checkbox" }, unref$1(checkboxAttributes), {
|
|
12181
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
12182
|
+
}, ["prevent"]), ["space"])),
|
|
12183
|
+
onKeyup: [
|
|
12184
|
+
_cache[2] || (_cache[2] = withKeys(($event) => onTrigger2(), ["enter"])),
|
|
12185
|
+
_cache[3] || (_cache[3] = withKeys(($event) => onTrigger2(), ["space"]))
|
|
12186
|
+
]
|
|
12187
|
+
}), [
|
|
12188
|
+
createElementVNode("input", {
|
|
12189
|
+
class: "ck-checkbox__input",
|
|
12190
|
+
"aria-hidden": "true",
|
|
12191
|
+
type: "checkbox",
|
|
12192
|
+
disabled: __props.disabled,
|
|
12193
|
+
checked: unref$1(value),
|
|
12194
|
+
onChange: _cache[0] || (_cache[0] = ($event) => {
|
|
12195
|
+
value.value = $event.target.checked;
|
|
12196
|
+
onChange($event);
|
|
12197
|
+
})
|
|
12198
|
+
}, null, 40, _hoisted_1$h),
|
|
12199
|
+
_hoisted_2$8,
|
|
12200
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$5, [
|
|
12201
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12202
|
+
])) : createCommentVNode("", true)
|
|
12203
|
+
], 16);
|
|
12204
|
+
};
|
|
11437
12205
|
}
|
|
11438
|
-
};
|
|
11439
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["
|
|
12206
|
+
});
|
|
12207
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-132565da"]]);
|
|
11440
12208
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11441
12209
|
const _hoisted_1$g = ["color"];
|
|
11442
12210
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
@@ -11450,13 +12218,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11450
12218
|
emits: ["click"],
|
|
11451
12219
|
setup(__props, { emit: emits }) {
|
|
11452
12220
|
const props = __props;
|
|
11453
|
-
const computedClass = computed(() => {
|
|
12221
|
+
const computedClass = computed$2(() => {
|
|
11454
12222
|
return [
|
|
11455
12223
|
`size-${props.size}`,
|
|
11456
12224
|
`ck-component__bg-color--${props.color}`
|
|
11457
12225
|
];
|
|
11458
12226
|
});
|
|
11459
|
-
const computedStyle = computed(() => {
|
|
12227
|
+
const computedStyle = computed$2(() => {
|
|
11460
12228
|
const list = [];
|
|
11461
12229
|
if (props.color)
|
|
11462
12230
|
;
|
|
@@ -11464,9 +12232,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11464
12232
|
});
|
|
11465
12233
|
return (_ctx, _cache) => {
|
|
11466
12234
|
return openBlock(), createElementBlock("div", {
|
|
11467
|
-
class: normalizeClass(["ck-chip", unref(computedClass)]),
|
|
12235
|
+
class: normalizeClass(["ck-chip", unref$1(computedClass)]),
|
|
11468
12236
|
color: __props.color,
|
|
11469
|
-
style: normalizeStyle(unref(computedStyle)),
|
|
12237
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
11470
12238
|
onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
|
|
11471
12239
|
}, [
|
|
11472
12240
|
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -11480,6 +12248,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11480
12248
|
}
|
|
11481
12249
|
});
|
|
11482
12250
|
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-73ff343b"]]);
|
|
12251
|
+
var globalVariables = {
|
|
12252
|
+
defaultFailImg: "df",
|
|
12253
|
+
imagesFolderPath: "",
|
|
12254
|
+
defaultImgBorderColor: "#EEEEEE"
|
|
12255
|
+
};
|
|
11483
12256
|
var ckImg_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11484
12257
|
const _hoisted_1$f = ["src", "alt"];
|
|
11485
12258
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -11502,14 +12275,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11502
12275
|
const props = __props;
|
|
11503
12276
|
const altNeeded = ref(false);
|
|
11504
12277
|
let isMounted = ref(false);
|
|
11505
|
-
const imageUrl = computed(() => {
|
|
12278
|
+
const imageUrl = computed$2(() => {
|
|
11506
12279
|
if (!isMounted.value)
|
|
11507
12280
|
return "";
|
|
11508
12281
|
if (props.isFullPath)
|
|
11509
12282
|
return props.src;
|
|
11510
12283
|
return getImg(props.src);
|
|
11511
12284
|
});
|
|
11512
|
-
const computedClass = computed(() => {
|
|
12285
|
+
const computedClass = computed$2(() => {
|
|
11513
12286
|
const classList2 = [];
|
|
11514
12287
|
let size = props.size;
|
|
11515
12288
|
if (!size && !props.sizeAbsolute && !props.width && !props.height) {
|
|
@@ -11527,7 +12300,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11527
12300
|
classList2.push("zoom-able");
|
|
11528
12301
|
return classList2;
|
|
11529
12302
|
});
|
|
11530
|
-
const computedStyle = computed(() => {
|
|
12303
|
+
const computedStyle = computed$2(() => {
|
|
11531
12304
|
const styleList = [];
|
|
11532
12305
|
if (props.sizeAbsolute) {
|
|
11533
12306
|
styleList.push({ width: props.sizeAbsolute });
|
|
@@ -11542,7 +12315,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11542
12315
|
}
|
|
11543
12316
|
return styleList;
|
|
11544
12317
|
});
|
|
11545
|
-
const computedImgStyle = computed(() => {
|
|
12318
|
+
const computedImgStyle = computed$2(() => {
|
|
11546
12319
|
const styleList = [];
|
|
11547
12320
|
if (props.radius)
|
|
11548
12321
|
styleList.push({ "border-radius": props.radius });
|
|
@@ -11552,7 +12325,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11552
12325
|
styleList.push({ height: props.height });
|
|
11553
12326
|
return styleList;
|
|
11554
12327
|
});
|
|
11555
|
-
const realBorderColor = computed(() => {
|
|
12328
|
+
const realBorderColor = computed$2(() => {
|
|
11556
12329
|
if (props.borderColor)
|
|
11557
12330
|
return props.borderColor;
|
|
11558
12331
|
return globalVariables.defaultImgBorderColor;
|
|
@@ -11576,13 +12349,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11576
12349
|
});
|
|
11577
12350
|
return (_ctx, _cache) => {
|
|
11578
12351
|
return openBlock(), createElementBlock("div", {
|
|
11579
|
-
class: normalizeClass(["ck-img", unref(computedClass)]),
|
|
11580
|
-
style: normalizeStyle(unref(computedStyle)),
|
|
12352
|
+
class: normalizeClass(["ck-img", unref$1(computedClass)]),
|
|
12353
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
11581
12354
|
onClick: _cache[1] || (_cache[1] = ($event) => clickImg())
|
|
11582
12355
|
}, [
|
|
11583
12356
|
createElementVNode("img", {
|
|
11584
|
-
src: unref(imageUrl),
|
|
11585
|
-
style: normalizeStyle(unref(computedImgStyle)),
|
|
12357
|
+
src: unref$1(imageUrl),
|
|
12358
|
+
style: normalizeStyle(unref$1(computedImgStyle)),
|
|
11586
12359
|
alt: __props.alt,
|
|
11587
12360
|
onError: _cache[0] || (_cache[0] = ($event) => altNeeded.value = true)
|
|
11588
12361
|
}, null, 44, _hoisted_1$f)
|
|
@@ -11591,34 +12364,34 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11591
12364
|
}
|
|
11592
12365
|
});
|
|
11593
12366
|
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-53d78f2e"]]);
|
|
11594
|
-
const _hoisted_1$e = ["for"];
|
|
11595
|
-
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11596
|
-
return openBlock(), createElementBlock("label", {
|
|
11597
|
-
class: normalizeClass(["ck-label", $options.computedClass]),
|
|
11598
|
-
for: $props.for
|
|
11599
|
-
}, [
|
|
11600
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11601
|
-
], 10, _hoisted_1$e);
|
|
11602
|
-
}
|
|
11603
12367
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11604
|
-
const
|
|
11605
|
-
|
|
12368
|
+
const _hoisted_1$e = ["for"];
|
|
12369
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
11606
12370
|
props: {
|
|
11607
12371
|
for: { type: String, default: "" },
|
|
11608
12372
|
align: { type: String, default: "" }
|
|
11609
12373
|
},
|
|
11610
|
-
|
|
11611
|
-
|
|
12374
|
+
setup(__props) {
|
|
12375
|
+
const props = __props;
|
|
12376
|
+
const computedClass = computed$2(() => {
|
|
11612
12377
|
const list = [];
|
|
11613
12378
|
let align = "left";
|
|
11614
|
-
if (
|
|
11615
|
-
align =
|
|
12379
|
+
if (props.align === "center" || props.align === "right")
|
|
12380
|
+
align = props.align;
|
|
11616
12381
|
list.push(`ck-align--${align}`);
|
|
11617
12382
|
return list;
|
|
11618
|
-
}
|
|
12383
|
+
});
|
|
12384
|
+
return (_ctx, _cache) => {
|
|
12385
|
+
return openBlock(), createElementBlock("label", {
|
|
12386
|
+
class: normalizeClass(["ck-label", unref$1(computedClass)]),
|
|
12387
|
+
for: __props.for
|
|
12388
|
+
}, [
|
|
12389
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12390
|
+
], 10, _hoisted_1$e);
|
|
12391
|
+
};
|
|
11619
12392
|
}
|
|
11620
|
-
};
|
|
11621
|
-
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["
|
|
12393
|
+
});
|
|
12394
|
+
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-6efffcd8"]]);
|
|
11622
12395
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11623
12396
|
const _hoisted_1$d = { class: "ck-input" };
|
|
11624
12397
|
const _hoisted_2$7 = ["type", "placeholder", "id", "disabled"];
|
|
@@ -11644,7 +12417,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11644
12417
|
emits: ["update:modelValue", "click", "input", "change"],
|
|
11645
12418
|
setup(__props, { emit: emits }) {
|
|
11646
12419
|
const props = __props;
|
|
11647
|
-
const value = computed({
|
|
12420
|
+
const value = computed$2({
|
|
11648
12421
|
get() {
|
|
11649
12422
|
return props.modelValue;
|
|
11650
12423
|
},
|
|
@@ -11663,13 +12436,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11663
12436
|
const onChange = (event) => {
|
|
11664
12437
|
emits("change", event);
|
|
11665
12438
|
};
|
|
11666
|
-
const computedStyleInput = computed(() => {
|
|
12439
|
+
const computedStyleInput = computed$2(() => {
|
|
11667
12440
|
const list = [];
|
|
11668
12441
|
if (props.width)
|
|
11669
12442
|
list.push({ width: props.width });
|
|
11670
12443
|
return list;
|
|
11671
12444
|
});
|
|
11672
|
-
const computedClassInput = computed(() => {
|
|
12445
|
+
const computedClassInput = computed$2(() => {
|
|
11673
12446
|
const list = [];
|
|
11674
12447
|
list.push(functions$1.getGroupClass(props));
|
|
11675
12448
|
if (props.icon)
|
|
@@ -11702,18 +12475,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11702
12475
|
"icon-pack": __props.iconPack
|
|
11703
12476
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
11704
12477
|
withDirectives(createElementVNode("input", {
|
|
11705
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
12478
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
11706
12479
|
type: __props.type,
|
|
11707
12480
|
placeholder: __props.placeholder,
|
|
11708
|
-
class: normalizeClass(unref(computedClassInput)),
|
|
11709
|
-
style: normalizeStyle(unref(computedStyleInput)),
|
|
12481
|
+
class: normalizeClass(unref$1(computedClassInput)),
|
|
12482
|
+
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
11710
12483
|
id: __props.label ? "ck-input" : "",
|
|
11711
12484
|
disabled: __props.disabled,
|
|
11712
12485
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange($event)),
|
|
11713
12486
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
11714
12487
|
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
11715
12488
|
}, null, 46, _hoisted_2$7), [
|
|
11716
|
-
[vModelDynamic, unref(value)]
|
|
12489
|
+
[vModelDynamic, unref$1(value)]
|
|
11717
12490
|
]),
|
|
11718
12491
|
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
11719
12492
|
key: 2,
|
|
@@ -11749,7 +12522,7 @@ const _hoisted_7 = {
|
|
|
11749
12522
|
};
|
|
11750
12523
|
const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
|
|
11751
12524
|
const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
11752
|
-
const
|
|
12525
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
11753
12526
|
props: {
|
|
11754
12527
|
modelValue: { type: Boolean },
|
|
11755
12528
|
title: { type: String, default: void 0 },
|
|
@@ -11759,40 +12532,35 @@ const __default__$1 = {
|
|
|
11759
12532
|
preventCloseOnCancel: { type: Boolean, default: false }
|
|
11760
12533
|
},
|
|
11761
12534
|
emits: ["update:modelValue", "cancel", "accept"],
|
|
11762
|
-
|
|
11763
|
-
|
|
12535
|
+
setup(__props, { emit: emits }) {
|
|
12536
|
+
const props = __props;
|
|
12537
|
+
const value = computed$2({
|
|
11764
12538
|
get() {
|
|
11765
|
-
return
|
|
12539
|
+
return props.modelValue;
|
|
11766
12540
|
},
|
|
11767
12541
|
set(val) {
|
|
11768
|
-
|
|
12542
|
+
emits("update:modelValue", val);
|
|
11769
12543
|
}
|
|
12544
|
+
});
|
|
12545
|
+
function onCancel() {
|
|
12546
|
+
emits("cancel");
|
|
12547
|
+
if (!props.preventCloseOnCancel)
|
|
12548
|
+
value.value = false;
|
|
11770
12549
|
}
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
if (
|
|
11776
|
-
this.value = false;
|
|
11777
|
-
},
|
|
11778
|
-
onAccept() {
|
|
11779
|
-
this.$emit("accept");
|
|
11780
|
-
},
|
|
11781
|
-
onBgClick() {
|
|
11782
|
-
if (this.notCloseByBg)
|
|
12550
|
+
function onAccept() {
|
|
12551
|
+
emits("accept");
|
|
12552
|
+
}
|
|
12553
|
+
function onBgClick() {
|
|
12554
|
+
if (props.notCloseByBg)
|
|
11783
12555
|
return;
|
|
11784
|
-
|
|
12556
|
+
value.value = false;
|
|
11785
12557
|
}
|
|
11786
|
-
}
|
|
11787
|
-
};
|
|
11788
|
-
const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
11789
|
-
setup(__props) {
|
|
11790
12558
|
return (_ctx, _cache) => {
|
|
11791
|
-
return
|
|
12559
|
+
return unref$1(value) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
11792
12560
|
_hoisted_2$6,
|
|
11793
12561
|
createElementVNode("div", {
|
|
11794
12562
|
class: "popup-container",
|
|
11795
|
-
onClick: _cache[4] || (_cache[4] = ($event) =>
|
|
12563
|
+
onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
|
|
11796
12564
|
}, [
|
|
11797
12565
|
createElementVNode("div", {
|
|
11798
12566
|
class: "ck-popup__content",
|
|
@@ -11806,7 +12574,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
11806
12574
|
key: 1,
|
|
11807
12575
|
class: "mr-3 close",
|
|
11808
12576
|
icon: "times",
|
|
11809
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
12577
|
+
onClick: _cache[0] || (_cache[0] = ($event) => value.value = false)
|
|
11810
12578
|
})) : createCommentVNode("", true)
|
|
11811
12579
|
]),
|
|
11812
12580
|
createElementVNode("div", _hoisted_5$1, [
|
|
@@ -11817,7 +12585,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
11817
12585
|
__props.confirmButtons ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
11818
12586
|
createVNode(ckButton, {
|
|
11819
12587
|
class: "cancel-button",
|
|
11820
|
-
onClick: _cache[1] || (_cache[1] = ($event) =>
|
|
12588
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
|
|
11821
12589
|
color: "danger"
|
|
11822
12590
|
}, {
|
|
11823
12591
|
default: withCtx(() => [
|
|
@@ -11826,7 +12594,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
11826
12594
|
_: 1
|
|
11827
12595
|
}),
|
|
11828
12596
|
createVNode(ckButton, {
|
|
11829
|
-
onClick: _cache[2] || (_cache[2] = ($event) =>
|
|
12597
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
|
|
11830
12598
|
}, {
|
|
11831
12599
|
default: withCtx(() => [
|
|
11832
12600
|
_hoisted_9
|
|
@@ -11840,8 +12608,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
11840
12608
|
])) : createCommentVNode("", true);
|
|
11841
12609
|
};
|
|
11842
12610
|
}
|
|
11843
|
-
})
|
|
11844
|
-
|
|
12611
|
+
});
|
|
12612
|
+
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12613
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
|
|
11845
12614
|
const _hoisted_1$b = ["onKeyup"];
|
|
11846
12615
|
const _hoisted_2$5 = ["name", "value", "disabled"];
|
|
11847
12616
|
const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
@@ -11849,38 +12618,7 @@ const _hoisted_4$2 = {
|
|
|
11849
12618
|
key: 0,
|
|
11850
12619
|
class: "c-Radio__label"
|
|
11851
12620
|
};
|
|
11852
|
-
|
|
11853
|
-
return openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (item, index) => {
|
|
11854
|
-
return openBlock(), createElementBlock("label", mergeProps({
|
|
11855
|
-
key: `radio-${index}`,
|
|
11856
|
-
class: "c-Radio"
|
|
11857
|
-
}, $options.radioAttributes, {
|
|
11858
|
-
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
11859
|
-
}, ["prevent"]), ["space"])),
|
|
11860
|
-
onKeyup: [
|
|
11861
|
-
withKeys(($event) => $options.handleChange(item.value), ["enter"]),
|
|
11862
|
-
withKeys(($event) => $options.handleChange(item.value), ["space"])
|
|
11863
|
-
]
|
|
11864
|
-
}), [
|
|
11865
|
-
withDirectives(createElementVNode("input", {
|
|
11866
|
-
class: "c-Radio__input",
|
|
11867
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
|
|
11868
|
-
"aria-hidden": "true",
|
|
11869
|
-
type: "radio",
|
|
11870
|
-
name: $props.name,
|
|
11871
|
-
value: item.value,
|
|
11872
|
-
disabled: $props.disabled
|
|
11873
|
-
}, null, 8, _hoisted_2$5), [
|
|
11874
|
-
[vModelRadio, $options.value]
|
|
11875
|
-
]),
|
|
11876
|
-
_hoisted_3$3,
|
|
11877
|
-
item.label ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
11878
|
-
], 16, _hoisted_1$b);
|
|
11879
|
-
}), 128);
|
|
11880
|
-
}
|
|
11881
|
-
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11882
|
-
const _sfc_main$d = {
|
|
11883
|
-
name: "CkRadio",
|
|
12621
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
11884
12622
|
props: {
|
|
11885
12623
|
modelValue: { type: String, default: void 0 },
|
|
11886
12624
|
name: { type: String, required: true },
|
|
@@ -11888,30 +12626,58 @@ const _sfc_main$d = {
|
|
|
11888
12626
|
disabled: { type: Boolean, default: false }
|
|
11889
12627
|
},
|
|
11890
12628
|
emits: ["update:modelValue", "change"],
|
|
11891
|
-
|
|
11892
|
-
|
|
12629
|
+
setup(__props, { emit: emits }) {
|
|
12630
|
+
const props = __props;
|
|
12631
|
+
const value = computed$2({
|
|
11893
12632
|
get() {
|
|
11894
|
-
return
|
|
12633
|
+
return props.modelValue;
|
|
11895
12634
|
},
|
|
11896
12635
|
set(val) {
|
|
11897
|
-
|
|
12636
|
+
emits("update:modelValue", val);
|
|
11898
12637
|
}
|
|
11899
|
-
}
|
|
11900
|
-
radioAttributes() {
|
|
12638
|
+
});
|
|
12639
|
+
const radioAttributes = computed$2(() => {
|
|
11901
12640
|
return {
|
|
11902
|
-
"aria-disabled":
|
|
11903
|
-
tabindex:
|
|
12641
|
+
"aria-disabled": props.disabled,
|
|
12642
|
+
tabindex: props.disabled ? void 0 : "0"
|
|
11904
12643
|
};
|
|
12644
|
+
});
|
|
12645
|
+
function handleChange(value2) {
|
|
12646
|
+
value2.value = value2;
|
|
12647
|
+
emits("change", value2);
|
|
11905
12648
|
}
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
12649
|
+
return (_ctx, _cache) => {
|
|
12650
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item, index) => {
|
|
12651
|
+
return openBlock(), createElementBlock("label", mergeProps({
|
|
12652
|
+
key: `radio-${index}`,
|
|
12653
|
+
class: "c-Radio"
|
|
12654
|
+
}, unref$1(radioAttributes), {
|
|
12655
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
12656
|
+
}, ["prevent"]), ["space"])),
|
|
12657
|
+
onKeyup: [
|
|
12658
|
+
withKeys(($event) => handleChange(item.value), ["enter"]),
|
|
12659
|
+
withKeys(($event) => handleChange(item.value), ["space"])
|
|
12660
|
+
]
|
|
12661
|
+
}), [
|
|
12662
|
+
withDirectives(createElementVNode("input", {
|
|
12663
|
+
class: "c-Radio__input",
|
|
12664
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
12665
|
+
"aria-hidden": "true",
|
|
12666
|
+
type: "radio",
|
|
12667
|
+
name: __props.name,
|
|
12668
|
+
value: item.value,
|
|
12669
|
+
disabled: __props.disabled
|
|
12670
|
+
}, null, 8, _hoisted_2$5), [
|
|
12671
|
+
[vModelRadio, unref$1(value)]
|
|
12672
|
+
]),
|
|
12673
|
+
_hoisted_3$3,
|
|
12674
|
+
item.label ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
12675
|
+
], 16, _hoisted_1$b);
|
|
12676
|
+
}), 128);
|
|
12677
|
+
};
|
|
11912
12678
|
}
|
|
11913
|
-
};
|
|
11914
|
-
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["
|
|
12679
|
+
});
|
|
12680
|
+
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-a5198d80"]]);
|
|
11915
12681
|
var qmApi = {};
|
|
11916
12682
|
var qmArray = {
|
|
11917
12683
|
arrayToText(arr, key = null) {
|
|
@@ -12217,7 +12983,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12217
12983
|
const { qmStr: qmStr2 } = main$1;
|
|
12218
12984
|
const search = ref("");
|
|
12219
12985
|
ref(null);
|
|
12220
|
-
const value = computed({
|
|
12986
|
+
const value = computed$2({
|
|
12221
12987
|
get() {
|
|
12222
12988
|
return props.modelValue;
|
|
12223
12989
|
},
|
|
@@ -12227,25 +12993,25 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12227
12993
|
emits("update:modelValue", val);
|
|
12228
12994
|
}
|
|
12229
12995
|
});
|
|
12230
|
-
const filteredOptions = computed(() => {
|
|
12996
|
+
const filteredOptions = computed$2(() => {
|
|
12231
12997
|
const list = props.options.filter((option) => {
|
|
12232
12998
|
const name = getOptionName(option);
|
|
12233
12999
|
return qmStr2.checkContainsStr(name, search.value);
|
|
12234
13000
|
});
|
|
12235
13001
|
return list;
|
|
12236
13002
|
});
|
|
12237
|
-
const computedClass = computed(() => {
|
|
13003
|
+
const computedClass = computed$2(() => {
|
|
12238
13004
|
const classList2 = [];
|
|
12239
13005
|
classList2.push(functions$1.getGroupClass(props));
|
|
12240
13006
|
return classList2;
|
|
12241
13007
|
});
|
|
12242
|
-
const computedStyle = computed(() => {
|
|
13008
|
+
const computedStyle = computed$2(() => {
|
|
12243
13009
|
const list = [];
|
|
12244
13010
|
if (props.minWidth)
|
|
12245
13011
|
list.push({ "min-width": props.minWidth });
|
|
12246
13012
|
return list;
|
|
12247
13013
|
});
|
|
12248
|
-
computed(() => {
|
|
13014
|
+
computed$2(() => {
|
|
12249
13015
|
if (props.searchable === "auto") {
|
|
12250
13016
|
if (props.options.length < 5)
|
|
12251
13017
|
return false;
|
|
@@ -12253,7 +13019,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12253
13019
|
}
|
|
12254
13020
|
return props.searchable;
|
|
12255
13021
|
});
|
|
12256
|
-
const realClearValue = computed(() => {
|
|
13022
|
+
const realClearValue = computed$2(() => {
|
|
12257
13023
|
switch (typeof props.modelValue) {
|
|
12258
13024
|
case "number":
|
|
12259
13025
|
return 0;
|
|
@@ -12267,7 +13033,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12267
13033
|
return null;
|
|
12268
13034
|
}
|
|
12269
13035
|
});
|
|
12270
|
-
computed(() => {
|
|
13036
|
+
computed$2(() => {
|
|
12271
13037
|
switch (typeof props.modelValue) {
|
|
12272
13038
|
case "number":
|
|
12273
13039
|
return props.modelValue === 0;
|
|
@@ -12306,7 +13072,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12306
13072
|
return (_ctx, _cache) => {
|
|
12307
13073
|
return openBlock(), createElementBlock("div", {
|
|
12308
13074
|
class: "ck-select",
|
|
12309
|
-
style: normalizeStyle(unref(computedStyle))
|
|
13075
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
12310
13076
|
}, [
|
|
12311
13077
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
12312
13078
|
key: 0,
|
|
@@ -12319,19 +13085,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12319
13085
|
_: 1
|
|
12320
13086
|
}, 8, ["align"])) : createCommentVNode("", true),
|
|
12321
13087
|
withDirectives(createElementVNode("select", {
|
|
12322
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
12323
|
-
class: normalizeClass(unref(computedClass)),
|
|
13088
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13089
|
+
class: normalizeClass(unref$1(computedClass)),
|
|
12324
13090
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
12325
13091
|
onChange: _cache[2] || (_cache[2] = ($event) => onChange($event))
|
|
12326
13092
|
}, [
|
|
12327
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredOptions), (option) => {
|
|
13093
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredOptions), (option) => {
|
|
12328
13094
|
return openBlock(), createElementBlock("option", {
|
|
12329
13095
|
value: getOptionKey(option),
|
|
12330
13096
|
key: option
|
|
12331
13097
|
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$a);
|
|
12332
13098
|
}), 128))
|
|
12333
13099
|
], 34), [
|
|
12334
|
-
[vModelSelect, unref(value)]
|
|
13100
|
+
[vModelSelect, unref$1(value)]
|
|
12335
13101
|
])
|
|
12336
13102
|
], 4);
|
|
12337
13103
|
};
|
|
@@ -12359,7 +13125,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12359
13125
|
emits: ["update:modelValue"],
|
|
12360
13126
|
setup(__props, { emit: emits }) {
|
|
12361
13127
|
const props = __props;
|
|
12362
|
-
const value = computed({
|
|
13128
|
+
const value = computed$2({
|
|
12363
13129
|
get() {
|
|
12364
13130
|
return props.modelValue;
|
|
12365
13131
|
},
|
|
@@ -12367,7 +13133,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12367
13133
|
emits("update:modelValue", val);
|
|
12368
13134
|
}
|
|
12369
13135
|
});
|
|
12370
|
-
const computedClass = computed(() => {
|
|
13136
|
+
const computedClass = computed$2(() => {
|
|
12371
13137
|
const list = [];
|
|
12372
13138
|
if (props.squared)
|
|
12373
13139
|
list.push("is-squared");
|
|
@@ -12375,7 +13141,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12375
13141
|
list.push("is-outlined");
|
|
12376
13142
|
return list;
|
|
12377
13143
|
});
|
|
12378
|
-
const computedAttributes = computed(() => {
|
|
13144
|
+
const computedAttributes = computed$2(() => {
|
|
12379
13145
|
return {
|
|
12380
13146
|
"aria-disabled": props.disabled,
|
|
12381
13147
|
tabindex: props.disabled ? void 0 : "0"
|
|
@@ -12385,8 +13151,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12385
13151
|
value.value = !value.value;
|
|
12386
13152
|
}
|
|
12387
13153
|
return (_ctx, _cache) => {
|
|
12388
|
-
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, unref(computedAttributes), {
|
|
12389
|
-
class: unref(computedClass),
|
|
13154
|
+
return openBlock(), createElementBlock("label", mergeProps({ class: "ck-switch" }, unref$1(computedAttributes), {
|
|
13155
|
+
class: unref$1(computedClass),
|
|
12390
13156
|
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {
|
|
12391
13157
|
}, ["prevent"]), ["space"])),
|
|
12392
13158
|
onKeyup: [
|
|
@@ -12398,21 +13164,21 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12398
13164
|
class: "ck-switch__input",
|
|
12399
13165
|
"aria-hidden": "true",
|
|
12400
13166
|
type: "checkbox",
|
|
12401
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
|
|
13167
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
12402
13168
|
disabled: __props.disabled,
|
|
12403
13169
|
onClick: _cache[1] || (_cache[1] = ($event) => onTrigger2())
|
|
12404
13170
|
}, null, 8, _hoisted_1$9), [
|
|
12405
|
-
[vModelCheckbox, unref(value)]
|
|
13171
|
+
[vModelCheckbox, unref$1(value)]
|
|
12406
13172
|
]),
|
|
12407
13173
|
createElementVNode("div", _hoisted_2$4, [
|
|
12408
13174
|
_hoisted_3$2,
|
|
12409
|
-
__props.icon && unref(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13175
|
+
__props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
12410
13176
|
key: 0,
|
|
12411
13177
|
class: "ck-switch__icon-left",
|
|
12412
13178
|
icon: __props.icon,
|
|
12413
13179
|
"icon-pack": __props.iconPack
|
|
12414
13180
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
|
|
12415
|
-
__props.icon && !unref(value) ? (openBlock(), createBlock(ckIcon, {
|
|
13181
|
+
__props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
|
|
12416
13182
|
key: 1,
|
|
12417
13183
|
class: "ck-switch__icon-right",
|
|
12418
13184
|
icon: __props.icon,
|
|
@@ -12427,39 +13193,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12427
13193
|
}
|
|
12428
13194
|
});
|
|
12429
13195
|
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-6a563501"]]);
|
|
13196
|
+
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12430
13197
|
const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
|
|
12431
13198
|
const _hoisted_2$3 = ["onClick"];
|
|
12432
|
-
|
|
12433
|
-
const _component_ck_label = resolveComponent("ck-label");
|
|
12434
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
12435
|
-
$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
12436
|
-
key: 0,
|
|
12437
|
-
align: $props.labelAlign
|
|
12438
|
-
}, {
|
|
12439
|
-
default: withCtx(() => [
|
|
12440
|
-
createTextVNode(toDisplayString($props.label), 1)
|
|
12441
|
-
]),
|
|
12442
|
-
_: 1
|
|
12443
|
-
}, 8, ["align"])) : createCommentVNode("", true),
|
|
12444
|
-
createElementVNode("div", {
|
|
12445
|
-
class: normalizeClass(["ck-switch-options__container", $options.computedClass])
|
|
12446
|
-
}, [
|
|
12447
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (Option, index) => {
|
|
12448
|
-
return openBlock(), createElementBlock("div", {
|
|
12449
|
-
class: normalizeClass(["ck-switch-options__option", { selected: $options.selectedOption == $options.getOptionValue(Option) }]),
|
|
12450
|
-
key: `ck-switch-options${index}`,
|
|
12451
|
-
style: normalizeStyle($options.computedItemStyle),
|
|
12452
|
-
onClick: ($event) => $options.selectedOption = $options.getOptionValue(Option)
|
|
12453
|
-
}, toDisplayString(Option[$props.prop]), 15, _hoisted_2$3);
|
|
12454
|
-
}), 128))
|
|
12455
|
-
], 2)
|
|
12456
|
-
]);
|
|
12457
|
-
}
|
|
12458
|
-
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12459
|
-
const _sfc_main$a = {
|
|
12460
|
-
components: {
|
|
12461
|
-
ckLabel
|
|
12462
|
-
},
|
|
13199
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
12463
13200
|
props: {
|
|
12464
13201
|
modelValue: { type: [Boolean, Number, Object], default: 0 },
|
|
12465
13202
|
options: { type: Array, required: true },
|
|
@@ -12474,80 +13211,105 @@ const _sfc_main$a = {
|
|
|
12474
13211
|
sameWidthOptions: { type: Boolean, default: false }
|
|
12475
13212
|
},
|
|
12476
13213
|
emits: ["update:modelValue", "change"],
|
|
12477
|
-
|
|
12478
|
-
|
|
13214
|
+
setup(__props, { emit: emits }) {
|
|
13215
|
+
const props = __props;
|
|
13216
|
+
const selectedOption = computed$2({
|
|
12479
13217
|
get() {
|
|
12480
|
-
return
|
|
13218
|
+
return props.modelValue;
|
|
12481
13219
|
},
|
|
12482
13220
|
set(val) {
|
|
12483
|
-
|
|
12484
|
-
|
|
13221
|
+
emits("update:modelValue", val);
|
|
13222
|
+
emits("change", val);
|
|
12485
13223
|
}
|
|
12486
|
-
}
|
|
12487
|
-
computedClass() {
|
|
13224
|
+
});
|
|
13225
|
+
const computedClass = computed$2(() => {
|
|
12488
13226
|
const classList2 = [];
|
|
12489
|
-
classList2.push(functions$1.getGroupClass(
|
|
13227
|
+
classList2.push(functions$1.getGroupClass(props));
|
|
12490
13228
|
return classList2;
|
|
12491
|
-
}
|
|
12492
|
-
computedItemStyle() {
|
|
13229
|
+
});
|
|
13230
|
+
const computedItemStyle = computed$2(() => {
|
|
12493
13231
|
const list = [];
|
|
12494
|
-
if (
|
|
12495
|
-
list.push({ width: `${100 /
|
|
13232
|
+
if (props.sameWidthOptions)
|
|
13233
|
+
list.push({ width: `${100 / props.options.length}%` });
|
|
12496
13234
|
return list;
|
|
12497
|
-
}
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
getOptionValue(Option) {
|
|
12501
|
-
if (this.notReduce)
|
|
13235
|
+
});
|
|
13236
|
+
function getOptionValue(Option) {
|
|
13237
|
+
if (props.notReduce)
|
|
12502
13238
|
return Option;
|
|
12503
|
-
return
|
|
13239
|
+
return props.reduceFunction(Option);
|
|
12504
13240
|
}
|
|
13241
|
+
return (_ctx, _cache) => {
|
|
13242
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
13243
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
13244
|
+
key: 0,
|
|
13245
|
+
align: __props.labelAlign
|
|
13246
|
+
}, {
|
|
13247
|
+
default: withCtx(() => [
|
|
13248
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
13249
|
+
]),
|
|
13250
|
+
_: 1
|
|
13251
|
+
}, 8, ["align"])) : createCommentVNode("", true),
|
|
13252
|
+
createElementVNode("div", {
|
|
13253
|
+
class: normalizeClass(["ck-switch-options__container", unref$1(computedClass)])
|
|
13254
|
+
}, [
|
|
13255
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (Option, index) => {
|
|
13256
|
+
return openBlock(), createElementBlock("div", {
|
|
13257
|
+
class: normalizeClass(["ck-switch-options__option", { selected: unref$1(selectedOption) == getOptionValue(Option) }]),
|
|
13258
|
+
key: `ck-switch-options${index}`,
|
|
13259
|
+
style: normalizeStyle(unref$1(computedItemStyle)),
|
|
13260
|
+
onClick: ($event) => selectedOption.value = getOptionValue(Option)
|
|
13261
|
+
}, toDisplayString(Option[__props.prop]), 15, _hoisted_2$3);
|
|
13262
|
+
}), 128))
|
|
13263
|
+
], 2)
|
|
13264
|
+
]);
|
|
13265
|
+
};
|
|
12505
13266
|
}
|
|
12506
|
-
};
|
|
12507
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["
|
|
13267
|
+
});
|
|
13268
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-dfbb0b9e"]]);
|
|
12508
13269
|
const _hoisted_1$7 = { class: "ck-tr" };
|
|
12509
|
-
function render$
|
|
13270
|
+
function render$1(_ctx, _cache) {
|
|
12510
13271
|
return openBlock(), createElementBlock("tr", _hoisted_1$7, [
|
|
12511
13272
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12512
13273
|
]);
|
|
12513
13274
|
}
|
|
12514
13275
|
var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12515
13276
|
const _sfc_main$9 = {};
|
|
12516
|
-
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$
|
|
12517
|
-
const _hoisted_1$6 = { class: "ck-th" };
|
|
12518
|
-
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12519
|
-
return openBlock(), createElementBlock("th", _hoisted_1$6, [
|
|
12520
|
-
createElementVNode("span", {
|
|
12521
|
-
class: normalizeClass($options.computedSpanClass),
|
|
12522
|
-
style: normalizeStyle($options.computedStyle)
|
|
12523
|
-
}, [
|
|
12524
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12525
|
-
], 6)
|
|
12526
|
-
]);
|
|
12527
|
-
}
|
|
13277
|
+
var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$1], ["__scopeId", "data-v-1dd12190"]]);
|
|
12528
13278
|
var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12529
|
-
const
|
|
13279
|
+
const _hoisted_1$6 = { class: "ck-th" };
|
|
13280
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
12530
13281
|
props: {
|
|
12531
13282
|
align: { type: String, default: "center", validator: validators.align },
|
|
12532
13283
|
minWidth: { type: String, default: void 0 }
|
|
12533
13284
|
},
|
|
12534
|
-
|
|
12535
|
-
|
|
13285
|
+
setup(__props) {
|
|
13286
|
+
const props = __props;
|
|
13287
|
+
const computedSpanClass = computed$2(() => {
|
|
12536
13288
|
return {
|
|
12537
|
-
"align-center":
|
|
12538
|
-
"align-left":
|
|
12539
|
-
"align-right":
|
|
13289
|
+
"align-center": props.align !== "left" && props.align !== "right",
|
|
13290
|
+
"align-left": props.align === "left",
|
|
13291
|
+
"align-right": props.align === "right"
|
|
12540
13292
|
};
|
|
12541
|
-
}
|
|
12542
|
-
computedStyle() {
|
|
13293
|
+
});
|
|
13294
|
+
const computedStyle = computed$2(() => {
|
|
12543
13295
|
const list = [];
|
|
12544
|
-
if (
|
|
12545
|
-
list.push({ "min-width":
|
|
13296
|
+
if (props.minWidth)
|
|
13297
|
+
list.push({ "min-width": props.minWidth });
|
|
12546
13298
|
return list;
|
|
12547
|
-
}
|
|
13299
|
+
});
|
|
13300
|
+
return (_ctx, _cache) => {
|
|
13301
|
+
return openBlock(), createElementBlock("th", _hoisted_1$6, [
|
|
13302
|
+
createElementVNode("span", {
|
|
13303
|
+
class: normalizeClass(unref$1(computedSpanClass)),
|
|
13304
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
13305
|
+
}, [
|
|
13306
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13307
|
+
], 6)
|
|
13308
|
+
]);
|
|
13309
|
+
};
|
|
12548
13310
|
}
|
|
12549
|
-
};
|
|
12550
|
-
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["
|
|
13311
|
+
});
|
|
13312
|
+
var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a6c5a34e"]]);
|
|
12551
13313
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
12552
13314
|
props: {
|
|
12553
13315
|
col: { type: Object, required: true }
|
|
@@ -12581,7 +13343,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12581
13343
|
emits: ["update:search", "refreshList", "openColumnsManager"],
|
|
12582
13344
|
setup(__props, { emit: emits }) {
|
|
12583
13345
|
const props = __props;
|
|
12584
|
-
const searchLocal = computed({
|
|
13346
|
+
const searchLocal = computed$2({
|
|
12585
13347
|
get() {
|
|
12586
13348
|
return props.search;
|
|
12587
13349
|
},
|
|
@@ -12589,22 +13351,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12589
13351
|
emits("update:search", val);
|
|
12590
13352
|
}
|
|
12591
13353
|
});
|
|
12592
|
-
const hideSearch = computed(() => {
|
|
13354
|
+
const hideSearch = computed$2(() => {
|
|
12593
13355
|
return typeof searchLocal.value === "undefined";
|
|
12594
13356
|
});
|
|
12595
|
-
const itemsPerPageStart = computed(() => {
|
|
13357
|
+
const itemsPerPageStart = computed$2(() => {
|
|
12596
13358
|
return (props.currentPage - 1) * props.itemsPerPage + 1;
|
|
12597
13359
|
});
|
|
12598
|
-
const itemsPerPageEnd = computed(() => {
|
|
13360
|
+
const itemsPerPageEnd = computed$2(() => {
|
|
12599
13361
|
const value = props.currentPage * props.itemsPerPage;
|
|
12600
13362
|
if (value > props.listLength)
|
|
12601
13363
|
return props.listLength;
|
|
12602
13364
|
return value;
|
|
12603
13365
|
});
|
|
12604
|
-
const itemsPerPageIsVisible = computed(() => {
|
|
13366
|
+
const itemsPerPageIsVisible = computed$2(() => {
|
|
12605
13367
|
return !props.hideItemsPerPage && props.listLength;
|
|
12606
13368
|
});
|
|
12607
|
-
const searchGroupValue = computed(() => {
|
|
13369
|
+
const searchGroupValue = computed$2(() => {
|
|
12608
13370
|
if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
|
|
12609
13371
|
return "center";
|
|
12610
13372
|
}
|
|
@@ -12631,17 +13393,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12631
13393
|
title: "Recargar lista",
|
|
12632
13394
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("refreshList", false))
|
|
12633
13395
|
})) : createCommentVNode("", true),
|
|
12634
|
-
unref(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
|
|
13396
|
+
unref$1(itemsPerPageIsVisible) ? (openBlock(), createElementBlock("div", {
|
|
12635
13397
|
key: 1,
|
|
12636
|
-
class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref(hideSearch) }])
|
|
12637
|
-
}, toDisplayString(unref(itemsPerPageStart)) + " - " + toDisplayString(unref(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
|
|
12638
|
-
!unref(hideSearch) ? (openBlock(), createBlock(ckInput, {
|
|
13398
|
+
class: normalizeClass(["items-per-page", { "ck-component__group--left": !unref$1(hideSearch) }])
|
|
13399
|
+
}, toDisplayString(unref$1(itemsPerPageStart)) + " - " + toDisplayString(unref$1(itemsPerPageEnd)) + " de " + toDisplayString(__props.listLength), 3)) : createCommentVNode("", true),
|
|
13400
|
+
!unref$1(hideSearch) ? (openBlock(), createBlock(ckInput, {
|
|
12639
13401
|
key: 2,
|
|
12640
|
-
modelValue: unref(searchLocal),
|
|
12641
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchLocal) ? searchLocal.value = $event : null),
|
|
13402
|
+
modelValue: unref$1(searchLocal),
|
|
13403
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
12642
13404
|
icon: "search",
|
|
12643
13405
|
placeholder: "Buscar...",
|
|
12644
|
-
group: unref(searchGroupValue),
|
|
13406
|
+
group: unref$1(searchGroupValue),
|
|
12645
13407
|
onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
|
|
12646
13408
|
}, null, 8, ["modelValue", "group"])) : createCommentVNode("", true),
|
|
12647
13409
|
__props.hasColumnsManager ? (openBlock(), createBlock(ckButton, {
|
|
@@ -12649,7 +13411,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12649
13411
|
icon: "columns",
|
|
12650
13412
|
type: "filled",
|
|
12651
13413
|
title: "Administrador de columnas",
|
|
12652
|
-
group: unref(itemsPerPageIsVisible) || !unref(hideSearch) ? "right" : "",
|
|
13414
|
+
group: unref$1(itemsPerPageIsVisible) || !unref$1(hideSearch) ? "right" : "",
|
|
12653
13415
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openColumnsManager"))
|
|
12654
13416
|
}, null, 8, ["group"])) : createCommentVNode("", true)
|
|
12655
13417
|
]);
|
|
@@ -12763,7 +13525,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12763
13525
|
width: "50px",
|
|
12764
13526
|
align: "center",
|
|
12765
13527
|
modelValue: _ctx.currentPageLocal2,
|
|
12766
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentPageLocal2) ? currentPageLocal2.value = $event : null),
|
|
13528
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(currentPageLocal2) ? currentPageLocal2.value = $event : null),
|
|
12767
13529
|
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.validateInputNumber($event.target.value))
|
|
12768
13530
|
}, null, 8, ["modelValue"]),
|
|
12769
13531
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listRight, (num) => {
|
|
@@ -12798,7 +13560,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12798
13560
|
setup(__props, { emit: emits }) {
|
|
12799
13561
|
const props = __props;
|
|
12800
13562
|
let columnsCheckable = ref([]);
|
|
12801
|
-
const isActive = computed({
|
|
13563
|
+
const isActive = computed$2({
|
|
12802
13564
|
get() {
|
|
12803
13565
|
return props.modelValue;
|
|
12804
13566
|
},
|
|
@@ -12829,13 +13591,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12829
13591
|
}
|
|
12830
13592
|
return (_ctx, _cache) => {
|
|
12831
13593
|
return openBlock(), createBlock(_sfc_main$e, {
|
|
12832
|
-
modelValue: unref(isActive),
|
|
12833
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(isActive) ? isActive.value = $event : null),
|
|
13594
|
+
modelValue: unref$1(isActive),
|
|
13595
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
|
|
12834
13596
|
title: "Administrador de columnas"
|
|
12835
13597
|
}, {
|
|
12836
13598
|
default: withCtx(() => [
|
|
12837
13599
|
createElementVNode("div", _hoisted_1$3, [
|
|
12838
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(columnsCheckable), (col) => {
|
|
13600
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(columnsCheckable), (col) => {
|
|
12839
13601
|
return openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
12840
13602
|
createVNode(ckCheckbox, {
|
|
12841
13603
|
modelValue: col.value,
|
|
@@ -12890,8 +13652,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12890
13652
|
const IsPopupActive = ref({
|
|
12891
13653
|
columnsManager: false
|
|
12892
13654
|
});
|
|
12893
|
-
const columnsAreObj = computed(() => !qmObj2.isArray(props.columns));
|
|
12894
|
-
const columnsArray = computed(() => {
|
|
13655
|
+
const columnsAreObj = computed$2(() => !qmObj2.isArray(props.columns));
|
|
13656
|
+
const columnsArray = computed$2(() => {
|
|
12895
13657
|
if (!columnsAreObj.value)
|
|
12896
13658
|
return props.columns;
|
|
12897
13659
|
const arr = Object.values(props.columns);
|
|
@@ -12902,10 +13664,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12902
13664
|
});
|
|
12903
13665
|
return arr;
|
|
12904
13666
|
});
|
|
12905
|
-
const filteredColumnsList = computed(() => {
|
|
13667
|
+
const filteredColumnsList = computed$2(() => {
|
|
12906
13668
|
return columnsArray.value.filter(functions$1.isColumnDisplayed);
|
|
12907
13669
|
});
|
|
12908
|
-
const searchLocal = computed({
|
|
13670
|
+
const searchLocal = computed$2({
|
|
12909
13671
|
get() {
|
|
12910
13672
|
return props.search;
|
|
12911
13673
|
},
|
|
@@ -12913,7 +13675,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12913
13675
|
emits("update:search", val);
|
|
12914
13676
|
}
|
|
12915
13677
|
});
|
|
12916
|
-
const currentPageLocal = computed({
|
|
13678
|
+
const currentPageLocal = computed$2({
|
|
12917
13679
|
get() {
|
|
12918
13680
|
return props.currentPage;
|
|
12919
13681
|
},
|
|
@@ -12933,19 +13695,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12933
13695
|
}
|
|
12934
13696
|
return (_ctx, _cache) => {
|
|
12935
13697
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12936
|
-
__props.hasColumnsManager && unref(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
13698
|
+
__props.hasColumnsManager && unref$1(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
12937
13699
|
key: 0,
|
|
12938
13700
|
modelValue: IsPopupActive.value.columnsManager,
|
|
12939
13701
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => IsPopupActive.value.columnsManager = $event),
|
|
12940
|
-
columnsArray: unref(columnsArray),
|
|
13702
|
+
columnsArray: unref$1(columnsArray),
|
|
12941
13703
|
columns: __props.columns
|
|
12942
13704
|
}, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode("", true),
|
|
12943
13705
|
createElementVNode("div", _hoisted_1$2, [
|
|
12944
13706
|
_ctx.$slots.header || !__props.hideHeaderActions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
12945
13707
|
!__props.hideHeaderActions ? (openBlock(), createBlock(TableHeaderItems, {
|
|
12946
13708
|
key: 0,
|
|
12947
|
-
search: unref(searchLocal),
|
|
12948
|
-
"onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef(searchLocal) ? searchLocal.value = $event : null),
|
|
13709
|
+
search: unref$1(searchLocal),
|
|
13710
|
+
"onUpdate:search": _cache[1] || (_cache[1] = ($event) => isRef$1(searchLocal) ? searchLocal.value = $event : null),
|
|
12949
13711
|
currentPage: __props.currentPage,
|
|
12950
13712
|
hasColumnsManager: __props.hasColumnsManager,
|
|
12951
13713
|
itemsPerPage: __props.itemsPerPage,
|
|
@@ -12960,10 +13722,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12960
13722
|
])) : createCommentVNode("", true)
|
|
12961
13723
|
])) : createCommentVNode("", true),
|
|
12962
13724
|
createElementVNode("table", _hoisted_4, [
|
|
12963
|
-
unref(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
13725
|
+
unref$1(filteredColumnsList).length ? (openBlock(), createElementBlock("thead", _hoisted_5, [
|
|
12964
13726
|
createVNode(ckTr, null, {
|
|
12965
13727
|
default: withCtx(() => [
|
|
12966
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredColumnsList), (col) => {
|
|
13728
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
|
|
12967
13729
|
return openBlock(), createBlock(_sfc_main$7, {
|
|
12968
13730
|
key: col.title,
|
|
12969
13731
|
col
|
|
@@ -12981,8 +13743,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12981
13743
|
])) : createCommentVNode("", true)
|
|
12982
13744
|
]),
|
|
12983
13745
|
createVNode(TablePagination, {
|
|
12984
|
-
currentPage: unref(currentPageLocal),
|
|
12985
|
-
"onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef(currentPageLocal) ? currentPageLocal.value = $event : null),
|
|
13746
|
+
currentPage: unref$1(currentPageLocal),
|
|
13747
|
+
"onUpdate:currentPage": _cache[4] || (_cache[4] = ($event) => isRef$1(currentPageLocal) ? currentPageLocal.value = $event : null),
|
|
12986
13748
|
itemsPerPage: __props.itemsPerPage,
|
|
12987
13749
|
listLength: __props.listLength,
|
|
12988
13750
|
align: __props.paginationAlign,
|
|
@@ -13009,12 +13771,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13009
13771
|
},
|
|
13010
13772
|
setup(__props) {
|
|
13011
13773
|
const props = __props;
|
|
13012
|
-
const computedTdClass = computed(() => {
|
|
13774
|
+
const computedTdClass = computed$2(() => {
|
|
13013
13775
|
return {
|
|
13014
13776
|
"auto-width": props.autoWidth
|
|
13015
13777
|
};
|
|
13016
13778
|
});
|
|
13017
|
-
const computedSpanClass = computed(() => {
|
|
13779
|
+
const computedSpanClass = computed$2(() => {
|
|
13018
13780
|
const list = [];
|
|
13019
13781
|
let align;
|
|
13020
13782
|
if (props.col)
|
|
@@ -13033,7 +13795,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13033
13795
|
list.push("wrap-text");
|
|
13034
13796
|
return list;
|
|
13035
13797
|
});
|
|
13036
|
-
const computedStyle = computed(() => {
|
|
13798
|
+
const computedStyle = computed$2(() => {
|
|
13037
13799
|
const list = {};
|
|
13038
13800
|
if (props.minWidth)
|
|
13039
13801
|
list["min-width"] = props.minWidth;
|
|
@@ -13047,19 +13809,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13047
13809
|
list["max-height"] = props.maxHeight;
|
|
13048
13810
|
return list;
|
|
13049
13811
|
});
|
|
13050
|
-
const isColumnDisplayed = computed(() => {
|
|
13812
|
+
const isColumnDisplayed = computed$2(() => {
|
|
13051
13813
|
if (!props.col)
|
|
13052
13814
|
return true;
|
|
13053
13815
|
return functions$1.isColumnDisplayed(props.col);
|
|
13054
13816
|
});
|
|
13055
13817
|
return (_ctx, _cache) => {
|
|
13056
|
-
return unref(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
|
|
13818
|
+
return unref$1(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
|
|
13057
13819
|
key: 0,
|
|
13058
|
-
class: normalizeClass(["ck-td", unref(computedTdClass)])
|
|
13820
|
+
class: normalizeClass(["ck-td", unref$1(computedTdClass)])
|
|
13059
13821
|
}, [
|
|
13060
13822
|
createElementVNode("span", {
|
|
13061
|
-
class: normalizeClass(unref(computedSpanClass)),
|
|
13062
|
-
style: normalizeStyle(unref(computedStyle))
|
|
13823
|
+
class: normalizeClass(unref$1(computedSpanClass)),
|
|
13824
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
13063
13825
|
}, [
|
|
13064
13826
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13065
13827
|
], 6)
|
|
@@ -13068,47 +13830,46 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13068
13830
|
}
|
|
13069
13831
|
});
|
|
13070
13832
|
var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c34b91ca"]]);
|
|
13071
|
-
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
13072
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13073
|
-
const _component_ck_label = resolveComponent("ck-label");
|
|
13074
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
13075
|
-
$props.label ? (openBlock(), createBlock(_component_ck_label, {
|
|
13076
|
-
key: 0,
|
|
13077
|
-
"label-align": $props.labelAlign
|
|
13078
|
-
}, {
|
|
13079
|
-
default: withCtx(() => [
|
|
13080
|
-
createTextVNode(toDisplayString($props.label), 1)
|
|
13081
|
-
]),
|
|
13082
|
-
_: 1
|
|
13083
|
-
}, 8, ["label-align"])) : createCommentVNode("", true),
|
|
13084
|
-
withDirectives(createElementVNode("textarea", {
|
|
13085
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event)
|
|
13086
|
-
}, null, 512), [
|
|
13087
|
-
[vModelText, $options.value]
|
|
13088
|
-
])
|
|
13089
|
-
]);
|
|
13090
|
-
}
|
|
13091
13833
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13092
|
-
const
|
|
13093
|
-
|
|
13834
|
+
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
13835
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
13094
13836
|
props: {
|
|
13095
13837
|
modelValue: {},
|
|
13096
13838
|
label: { type: String, default: "" },
|
|
13097
13839
|
labelAlign: { type: String, default: "" }
|
|
13098
13840
|
},
|
|
13099
13841
|
emits: ["update:modelValue"],
|
|
13100
|
-
|
|
13101
|
-
|
|
13842
|
+
setup(__props, { emit: emits }) {
|
|
13843
|
+
const props = __props;
|
|
13844
|
+
const value = computed$2({
|
|
13102
13845
|
get() {
|
|
13103
|
-
return
|
|
13846
|
+
return props.modelValue;
|
|
13104
13847
|
},
|
|
13105
13848
|
set(val) {
|
|
13106
|
-
|
|
13849
|
+
emits("update:modelValue", val);
|
|
13107
13850
|
}
|
|
13108
|
-
}
|
|
13851
|
+
});
|
|
13852
|
+
return (_ctx, _cache) => {
|
|
13853
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
13854
|
+
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
13855
|
+
key: 0,
|
|
13856
|
+
"label-align": __props.labelAlign
|
|
13857
|
+
}, {
|
|
13858
|
+
default: withCtx(() => [
|
|
13859
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
13860
|
+
]),
|
|
13861
|
+
_: 1
|
|
13862
|
+
}, 8, ["label-align"])) : createCommentVNode("", true),
|
|
13863
|
+
withDirectives(createElementVNode("textarea", {
|
|
13864
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null)
|
|
13865
|
+
}, null, 512), [
|
|
13866
|
+
[vModelText, unref$1(value)]
|
|
13867
|
+
])
|
|
13868
|
+
]);
|
|
13869
|
+
};
|
|
13109
13870
|
}
|
|
13110
|
-
};
|
|
13111
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["
|
|
13871
|
+
});
|
|
13872
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-509e26c4"]]);
|
|
13112
13873
|
var top = "top";
|
|
13113
13874
|
var bottom = "bottom";
|
|
13114
13875
|
var right = "right";
|
|
@@ -14766,7 +15527,7 @@ function getChildren(popper2) {
|
|
|
14766
15527
|
})
|
|
14767
15528
|
};
|
|
14768
15529
|
}
|
|
14769
|
-
function render
|
|
15530
|
+
function render(instance) {
|
|
14770
15531
|
var popper2 = div();
|
|
14771
15532
|
var box = div();
|
|
14772
15533
|
box.className = BOX_CLASS;
|
|
@@ -14821,7 +15582,7 @@ function render$1(instance) {
|
|
|
14821
15582
|
onUpdate
|
|
14822
15583
|
};
|
|
14823
15584
|
}
|
|
14824
|
-
render
|
|
15585
|
+
render.$$tippy = true;
|
|
14825
15586
|
var idCounter = 1;
|
|
14826
15587
|
var mouseMoveListeners = [];
|
|
14827
15588
|
var mountedInstances = [];
|
|
@@ -15561,31 +16322,33 @@ Object.assign({}, applyStyles$1, {
|
|
|
15561
16322
|
}
|
|
15562
16323
|
});
|
|
15563
16324
|
tippy$1.setDefaultProps({
|
|
15564
|
-
render
|
|
16325
|
+
render
|
|
15565
16326
|
});
|
|
15566
16327
|
var tippy = "";
|
|
16328
|
+
var ckTooltip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
15567
16329
|
const _hoisted_1 = {
|
|
15568
16330
|
class: "ck-tooltip",
|
|
15569
16331
|
tabindex: "0"
|
|
15570
16332
|
};
|
|
15571
|
-
|
|
15572
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15573
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15574
|
-
]);
|
|
15575
|
-
}
|
|
15576
|
-
var ckTooltip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
15577
|
-
const _sfc_main = {
|
|
15578
|
-
name: "CkTooltip",
|
|
16333
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15579
16334
|
props: {
|
|
15580
16335
|
content: { type: String, required: true }
|
|
15581
16336
|
},
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
16337
|
+
setup(__props) {
|
|
16338
|
+
onMounted(() => {
|
|
16339
|
+
const context = getCurrentInstance().ctx;
|
|
16340
|
+
tippy$1(context.$el, {
|
|
16341
|
+
content: context.content
|
|
16342
|
+
});
|
|
15585
16343
|
});
|
|
16344
|
+
return (_ctx, _cache) => {
|
|
16345
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
16346
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16347
|
+
]);
|
|
16348
|
+
};
|
|
15586
16349
|
}
|
|
15587
|
-
};
|
|
15588
|
-
var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["
|
|
16350
|
+
});
|
|
16351
|
+
var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2fe4998c"]]);
|
|
15589
16352
|
var events = {
|
|
15590
16353
|
OPEN_MODAL: "OPEN_MODAL",
|
|
15591
16354
|
CLOSE_MODAL: "CLOSE_MODAL",
|