cleek 1.5.4 → 1.5.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 +320 -328
- package/dist/cleek.umd.js +14 -10
- package/package.json +4 -4
package/dist/cleek.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, createBlock, createCommentVNode, normalizeClass, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, normalizeStyle, withDirectives, vModelText, createVNode, withCtx, createTextVNode, Fragment, renderList, vModelRadio, toDisplayString, vModelCheckbox } from "vue";
|
|
2
2
|
var validators = {
|
|
3
3
|
size: (type) => {
|
|
4
4
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -11250,7 +11250,7 @@ const _sfc_main$h = {
|
|
|
11250
11250
|
}
|
|
11251
11251
|
};
|
|
11252
11252
|
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$i], ["__scopeId", "data-v-2609c60b"]]);
|
|
11253
|
-
const _hoisted_1$
|
|
11253
|
+
const _hoisted_1$c = ["title", "aria-label", "disabled"];
|
|
11254
11254
|
function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11255
11255
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
11256
11256
|
return openBlock(), createElementBlock("button", {
|
|
@@ -11274,7 +11274,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11274
11274
|
icon: $props.iconRight,
|
|
11275
11275
|
"icon-pack": _ctx.iconPack
|
|
11276
11276
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11277
|
-
], 10, _hoisted_1$
|
|
11277
|
+
], 10, _hoisted_1$c);
|
|
11278
11278
|
}
|
|
11279
11279
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11280
11280
|
const defaults = { type: "outlined" };
|
|
@@ -11324,7 +11324,7 @@ const _sfc_main$g = {
|
|
|
11324
11324
|
};
|
|
11325
11325
|
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$h], ["__scopeId", "data-v-29466fcf"]]);
|
|
11326
11326
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-c7841510"), n = n(), popScopeId(), n);
|
|
11327
|
-
const _hoisted_1$
|
|
11327
|
+
const _hoisted_1$b = ["disabled", "checked"];
|
|
11328
11328
|
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
11329
11329
|
const _hoisted_3$4 = {
|
|
11330
11330
|
key: 0,
|
|
@@ -11349,7 +11349,7 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11349
11349
|
$options.value = $event.target.checked;
|
|
11350
11350
|
$options.onChange($event);
|
|
11351
11351
|
})
|
|
11352
|
-
}, null, 40, _hoisted_1$
|
|
11352
|
+
}, null, 40, _hoisted_1$b),
|
|
11353
11353
|
_hoisted_2$6,
|
|
11354
11354
|
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
11355
11355
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -11391,7 +11391,7 @@ const _sfc_main$f = {
|
|
|
11391
11391
|
}
|
|
11392
11392
|
};
|
|
11393
11393
|
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", render$g], ["__scopeId", "data-v-c7841510"]]);
|
|
11394
|
-
const _hoisted_1$
|
|
11394
|
+
const _hoisted_1$a = ["src"];
|
|
11395
11395
|
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11396
11396
|
return openBlock(), createElementBlock("div", {
|
|
11397
11397
|
class: normalizeClass(["ck-img", $options.computedClass]),
|
|
@@ -11402,7 +11402,7 @@ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11402
11402
|
src: $options.imageUrl,
|
|
11403
11403
|
style: normalizeStyle($options.computedImgStyle),
|
|
11404
11404
|
onError: _cache[0] || (_cache[0] = ($event) => _ctx.altNeeded = true)
|
|
11405
|
-
}, null, 44, _hoisted_1$
|
|
11405
|
+
}, null, 44, _hoisted_1$a)
|
|
11406
11406
|
], 6);
|
|
11407
11407
|
}
|
|
11408
11408
|
var ckImg_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -11491,10 +11491,10 @@ const _sfc_main$e = {
|
|
|
11491
11491
|
}
|
|
11492
11492
|
};
|
|
11493
11493
|
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", render$f], ["__scopeId", "data-v-1c6a3b4e"]]);
|
|
11494
|
-
const _hoisted_1$
|
|
11494
|
+
const _hoisted_1$9 = { class: "ck-input-text" };
|
|
11495
11495
|
const _hoisted_2$5 = ["placeholder"];
|
|
11496
11496
|
function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11497
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11497
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
11498
11498
|
withDirectives(createElementVNode("input", {
|
|
11499
11499
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
|
|
11500
11500
|
type: "text",
|
|
@@ -11561,9 +11561,6 @@ const _sfc_main$c = {
|
|
|
11561
11561
|
};
|
|
11562
11562
|
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", render$d], ["__scopeId", "data-v-753ae406"]]);
|
|
11563
11563
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
11564
|
-
function getDefaultExportFromCjs(x) {
|
|
11565
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11566
|
-
}
|
|
11567
11564
|
var dist = function(t) {
|
|
11568
11565
|
function e(i) {
|
|
11569
11566
|
if (r[i])
|
|
@@ -12168,7 +12165,7 @@ var dist = function(t) {
|
|
|
12168
12165
|
r(9)(i, {});
|
|
12169
12166
|
i.locals && (t.exports = i.locals);
|
|
12170
12167
|
}]);
|
|
12171
|
-
const _hoisted_1$
|
|
12168
|
+
const _hoisted_1$8 = {
|
|
12172
12169
|
key: 0,
|
|
12173
12170
|
class: "ck-popup"
|
|
12174
12171
|
};
|
|
@@ -12188,7 +12185,7 @@ const _hoisted_8 = /* @__PURE__ */ createTextVNode("Aceptar");
|
|
|
12188
12185
|
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12189
12186
|
const _component_ck_icon = resolveComponent("ck-icon");
|
|
12190
12187
|
const _component_ck_button = resolveComponent("ck-button");
|
|
12191
|
-
return $options.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
12188
|
+
return $options.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
12192
12189
|
_hoisted_2$4,
|
|
12193
12190
|
createElementVNode("div", {
|
|
12194
12191
|
class: "popup-container",
|
|
@@ -12279,7 +12276,7 @@ const _sfc_main$b = {
|
|
|
12279
12276
|
};
|
|
12280
12277
|
var ckPopup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", render$c]]);
|
|
12281
12278
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-73a891e8"), n = n(), popScopeId(), n);
|
|
12282
|
-
const _hoisted_1$
|
|
12279
|
+
const _hoisted_1$7 = ["onKeyup"];
|
|
12283
12280
|
const _hoisted_2$3 = ["name", "value", "disabled"];
|
|
12284
12281
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
12285
12282
|
const _hoisted_4 = {
|
|
@@ -12312,7 +12309,7 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12312
12309
|
]),
|
|
12313
12310
|
_hoisted_3$2,
|
|
12314
12311
|
item.label ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
12315
|
-
], 16, _hoisted_1$
|
|
12312
|
+
], 16, _hoisted_1$7);
|
|
12316
12313
|
}), 128);
|
|
12317
12314
|
}
|
|
12318
12315
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -12351,264 +12348,268 @@ const _sfc_main$a = {
|
|
|
12351
12348
|
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$b], ["__scopeId", "data-v-73a891e8"]]);
|
|
12352
12349
|
var vueSelect$1 = { exports: {} };
|
|
12353
12350
|
(function(module, exports) {
|
|
12354
|
-
!function(
|
|
12355
|
-
module.exports =
|
|
12356
|
-
}(typeof self != "undefined" ? self : commonjsGlobal, function(
|
|
12357
|
-
return function(
|
|
12358
|
-
var
|
|
12359
|
-
function o
|
|
12360
|
-
if (
|
|
12361
|
-
return
|
|
12362
|
-
var i =
|
|
12363
|
-
return
|
|
12351
|
+
!function(t, e) {
|
|
12352
|
+
module.exports = e();
|
|
12353
|
+
}(typeof self != "undefined" ? self : commonjsGlobal, function() {
|
|
12354
|
+
return function(t) {
|
|
12355
|
+
var e = {};
|
|
12356
|
+
function n(o) {
|
|
12357
|
+
if (e[o])
|
|
12358
|
+
return e[o].exports;
|
|
12359
|
+
var i = e[o] = { i: o, l: false, exports: {} };
|
|
12360
|
+
return t[o].call(i.exports, i, i.exports, n), i.l = true, i.exports;
|
|
12364
12361
|
}
|
|
12365
|
-
return
|
|
12366
|
-
|
|
12367
|
-
},
|
|
12368
|
-
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(
|
|
12369
|
-
},
|
|
12370
|
-
if (1 &
|
|
12371
|
-
return
|
|
12372
|
-
if (4 &
|
|
12373
|
-
return
|
|
12374
|
-
var
|
|
12375
|
-
if (
|
|
12376
|
-
for (var i in
|
|
12377
|
-
|
|
12378
|
-
return e3
|
|
12362
|
+
return n.m = t, n.c = e, n.d = function(t2, e2, o) {
|
|
12363
|
+
n.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: o });
|
|
12364
|
+
}, n.r = function(t2) {
|
|
12365
|
+
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
|
|
12366
|
+
}, n.t = function(t2, e2) {
|
|
12367
|
+
if (1 & e2 && (t2 = n(t2)), 8 & e2)
|
|
12368
|
+
return t2;
|
|
12369
|
+
if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule)
|
|
12370
|
+
return t2;
|
|
12371
|
+
var o = Object.create(null);
|
|
12372
|
+
if (n.r(o), Object.defineProperty(o, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string")
|
|
12373
|
+
for (var i in t2)
|
|
12374
|
+
n.d(o, i, function(e3) {
|
|
12375
|
+
return t2[e3];
|
|
12379
12376
|
}.bind(null, i));
|
|
12380
|
-
return
|
|
12381
|
-
},
|
|
12382
|
-
var
|
|
12383
|
-
return
|
|
12377
|
+
return o;
|
|
12378
|
+
}, n.n = function(t2) {
|
|
12379
|
+
var e2 = t2 && t2.__esModule ? function() {
|
|
12380
|
+
return t2.default;
|
|
12384
12381
|
} : function() {
|
|
12385
|
-
return
|
|
12382
|
+
return t2;
|
|
12386
12383
|
};
|
|
12387
|
-
return
|
|
12388
|
-
},
|
|
12389
|
-
return Object.prototype.hasOwnProperty.call(
|
|
12390
|
-
},
|
|
12391
|
-
}([function(t,
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
for (const [o2, n] of t2)
|
|
12396
|
-
e3[o2] = n;
|
|
12397
|
-
return e3;
|
|
12398
|
-
};
|
|
12399
|
-
}, function(e2, t, o) {
|
|
12400
|
-
var n = o(6), i = o(7), r = o(8);
|
|
12401
|
-
e2.exports = function(e3) {
|
|
12402
|
-
return n(e3) || i(e3) || r();
|
|
12384
|
+
return n.d(e2, "a", e2), e2;
|
|
12385
|
+
}, n.o = function(t2, e2) {
|
|
12386
|
+
return Object.prototype.hasOwnProperty.call(t2, e2);
|
|
12387
|
+
}, n.p = "/", n(n.s = 8);
|
|
12388
|
+
}([function(t, e, n) {
|
|
12389
|
+
var o = n(4), i = n(5), r = n(6);
|
|
12390
|
+
t.exports = function(t2) {
|
|
12391
|
+
return o(t2) || i(t2) || r();
|
|
12403
12392
|
};
|
|
12404
|
-
}, function(
|
|
12405
|
-
function
|
|
12406
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
12407
|
-
return typeof
|
|
12408
|
-
} :
|
|
12409
|
-
return
|
|
12410
|
-
},
|
|
12393
|
+
}, function(t, e) {
|
|
12394
|
+
function n(e2) {
|
|
12395
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? t.exports = n = function(t2) {
|
|
12396
|
+
return typeof t2;
|
|
12397
|
+
} : t.exports = n = function(t2) {
|
|
12398
|
+
return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2;
|
|
12399
|
+
}, n(e2);
|
|
12411
12400
|
}
|
|
12412
|
-
|
|
12413
|
-
}, function(
|
|
12414
|
-
|
|
12415
|
-
|
|
12401
|
+
t.exports = n;
|
|
12402
|
+
}, function(t, e, n) {
|
|
12403
|
+
}, function(t, e) {
|
|
12404
|
+
t.exports = function(t2, e2, n) {
|
|
12405
|
+
return e2 in t2 ? Object.defineProperty(t2, e2, { value: n, enumerable: true, configurable: true, writable: true }) : t2[e2] = n, t2;
|
|
12416
12406
|
};
|
|
12417
|
-
}, function(
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
return o;
|
|
12407
|
+
}, function(t, e) {
|
|
12408
|
+
t.exports = function(t2) {
|
|
12409
|
+
if (Array.isArray(t2)) {
|
|
12410
|
+
for (var e2 = 0, n = new Array(t2.length); e2 < t2.length; e2++)
|
|
12411
|
+
n[e2] = t2[e2];
|
|
12412
|
+
return n;
|
|
12424
12413
|
}
|
|
12425
12414
|
};
|
|
12426
|
-
}, function(
|
|
12427
|
-
|
|
12428
|
-
if (Symbol.iterator in Object(
|
|
12429
|
-
return Array.from(
|
|
12415
|
+
}, function(t, e) {
|
|
12416
|
+
t.exports = function(t2) {
|
|
12417
|
+
if (Symbol.iterator in Object(t2) || Object.prototype.toString.call(t2) === "[object Arguments]")
|
|
12418
|
+
return Array.from(t2);
|
|
12430
12419
|
};
|
|
12431
|
-
}, function(
|
|
12432
|
-
|
|
12420
|
+
}, function(t, e) {
|
|
12421
|
+
t.exports = function() {
|
|
12433
12422
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
12434
12423
|
};
|
|
12435
|
-
}, function(
|
|
12436
|
-
o(
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
var O = o(2), m = o.n(O), y = o(3), g = o.n(y), v = o(4), j = o.n(v), w2 = { props: { autoscroll: { type: Boolean, default: true } }, watch: { typeAheadPointer: function() {
|
|
12424
|
+
}, function(t, e, n) {
|
|
12425
|
+
var o = n(2);
|
|
12426
|
+
n.n(o).a;
|
|
12427
|
+
}, function(t, e, n) {
|
|
12428
|
+
n.r(e);
|
|
12429
|
+
var o = n(0), i = n.n(o), r = n(1), s = n.n(r), a = n(3), l = n.n(a), c = { props: { autoscroll: { type: Boolean, default: true } }, watch: { typeAheadPointer: function() {
|
|
12442
12430
|
this.autoscroll && this.maybeAdjustScroll();
|
|
12443
|
-
}, open: function(
|
|
12444
|
-
var
|
|
12445
|
-
this.autoscroll &&
|
|
12446
|
-
return
|
|
12431
|
+
}, open: function(t2) {
|
|
12432
|
+
var e2 = this;
|
|
12433
|
+
this.autoscroll && t2 && this.$nextTick(function() {
|
|
12434
|
+
return e2.maybeAdjustScroll();
|
|
12447
12435
|
});
|
|
12448
12436
|
} }, methods: { maybeAdjustScroll: function() {
|
|
12449
|
-
var
|
|
12450
|
-
if (
|
|
12451
|
-
var
|
|
12452
|
-
if (i2 <
|
|
12453
|
-
return this.$refs.dropdownMenu.scrollTop =
|
|
12454
|
-
if (r2 >
|
|
12455
|
-
return this.$refs.dropdownMenu.scrollTop =
|
|
12437
|
+
var t2, e2 = ((t2 = this.$refs.dropdownMenu) === null || t2 === void 0 ? void 0 : t2.children[this.typeAheadPointer]) || false;
|
|
12438
|
+
if (e2) {
|
|
12439
|
+
var n2 = this.getDropdownViewport(), o2 = e2.getBoundingClientRect(), i2 = o2.top, r2 = o2.bottom, s2 = o2.height;
|
|
12440
|
+
if (i2 < n2.top)
|
|
12441
|
+
return this.$refs.dropdownMenu.scrollTop = e2.offsetTop;
|
|
12442
|
+
if (r2 > n2.bottom)
|
|
12443
|
+
return this.$refs.dropdownMenu.scrollTop = e2.offsetTop - (n2.height - s2);
|
|
12456
12444
|
}
|
|
12457
12445
|
}, getDropdownViewport: function() {
|
|
12458
12446
|
return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0 };
|
|
12459
|
-
} } },
|
|
12447
|
+
} } }, u = { data: function() {
|
|
12460
12448
|
return { typeAheadPointer: -1 };
|
|
12461
12449
|
}, watch: { filteredOptions: function() {
|
|
12462
|
-
for (var
|
|
12463
|
-
if (this.selectable(this.filteredOptions[
|
|
12464
|
-
this.typeAheadPointer =
|
|
12450
|
+
for (var t2 = 0; t2 < this.filteredOptions.length; t2++)
|
|
12451
|
+
if (this.selectable(this.filteredOptions[t2])) {
|
|
12452
|
+
this.typeAheadPointer = t2;
|
|
12465
12453
|
break;
|
|
12466
12454
|
}
|
|
12467
12455
|
} }, methods: { typeAheadUp: function() {
|
|
12468
|
-
for (var
|
|
12469
|
-
if (this.selectable(this.filteredOptions[
|
|
12470
|
-
this.typeAheadPointer =
|
|
12456
|
+
for (var t2 = this.typeAheadPointer - 1; t2 >= 0; t2--)
|
|
12457
|
+
if (this.selectable(this.filteredOptions[t2])) {
|
|
12458
|
+
this.typeAheadPointer = t2;
|
|
12471
12459
|
break;
|
|
12472
12460
|
}
|
|
12473
12461
|
}, typeAheadDown: function() {
|
|
12474
|
-
for (var
|
|
12475
|
-
if (this.selectable(this.filteredOptions[
|
|
12476
|
-
this.typeAheadPointer =
|
|
12462
|
+
for (var t2 = this.typeAheadPointer + 1; t2 < this.filteredOptions.length; t2++)
|
|
12463
|
+
if (this.selectable(this.filteredOptions[t2])) {
|
|
12464
|
+
this.typeAheadPointer = t2;
|
|
12477
12465
|
break;
|
|
12478
12466
|
}
|
|
12479
12467
|
}, typeAheadSelect: function() {
|
|
12480
|
-
var
|
|
12481
|
-
|
|
12482
|
-
} } },
|
|
12468
|
+
var t2 = this.filteredOptions[this.typeAheadPointer];
|
|
12469
|
+
t2 && this.select(t2);
|
|
12470
|
+
} } }, p = { props: { loading: { type: Boolean, default: false } }, data: function() {
|
|
12483
12471
|
return { mutableLoading: false };
|
|
12484
12472
|
}, watch: { search: function() {
|
|
12485
12473
|
this.$emit("search", this.search, this.toggleLoading);
|
|
12486
|
-
}, loading: function(
|
|
12487
|
-
this.mutableLoading =
|
|
12474
|
+
}, loading: function(t2) {
|
|
12475
|
+
this.mutableLoading = t2;
|
|
12488
12476
|
} }, methods: { toggleLoading: function() {
|
|
12489
|
-
var
|
|
12490
|
-
return this.mutableLoading =
|
|
12477
|
+
var t2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
12478
|
+
return this.mutableLoading = t2 == null ? !this.mutableLoading : t2;
|
|
12491
12479
|
} } };
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12480
|
+
function d2(t2, e2, n2, o2, i2, r2, s2, a2) {
|
|
12481
|
+
var l2, c2 = typeof t2 == "function" ? t2.options : t2;
|
|
12482
|
+
if (e2 && (c2.render = e2, c2.staticRenderFns = n2, c2._compiled = true), o2 && (c2.functional = true), r2 && (c2._scopeId = "data-v-" + r2), s2 ? (l2 = function(t3) {
|
|
12483
|
+
(t3 = t3 || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ == "undefined" || (t3 = __VUE_SSR_CONTEXT__), i2 && i2.call(this, t3), t3 && t3._registeredComponents && t3._registeredComponents.add(s2);
|
|
12484
|
+
}, c2._ssrRegister = l2) : i2 && (l2 = a2 ? function() {
|
|
12485
|
+
i2.call(this, this.$root.$options.shadowRoot);
|
|
12486
|
+
} : i2), l2)
|
|
12487
|
+
if (c2.functional) {
|
|
12488
|
+
c2._injectStyles = l2;
|
|
12489
|
+
var u2 = c2.render;
|
|
12490
|
+
c2.render = function(t3, e3) {
|
|
12491
|
+
return l2.call(e3), u2(t3, e3);
|
|
12492
|
+
};
|
|
12493
|
+
} else {
|
|
12494
|
+
var p2 = c2.beforeCreate;
|
|
12495
|
+
c2.beforeCreate = p2 ? [].concat(p2, l2) : [l2];
|
|
12496
|
+
}
|
|
12497
|
+
return { exports: t2, options: c2 };
|
|
12498
|
+
}
|
|
12499
|
+
var h2 = { Deselect: d2({}, function() {
|
|
12500
|
+
var t2 = this.$createElement, e2 = this._self._c || t2;
|
|
12501
|
+
return e2("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" } }, [e2("path", { attrs: { d: "M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z" } })]);
|
|
12502
|
+
}, [], false, null, null, null).exports, OpenIndicator: d2({}, function() {
|
|
12503
|
+
var t2 = this.$createElement, e2 = this._self._c || t2;
|
|
12504
|
+
return e2("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "10" } }, [e2("path", { attrs: { d: "M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" } })]);
|
|
12505
|
+
}, [], false, null, null, null).exports }, f = { inserted: function(t2, e2, n2) {
|
|
12506
|
+
var o2 = n2.context;
|
|
12504
12507
|
if (o2.appendToBody) {
|
|
12505
|
-
var
|
|
12506
|
-
|
|
12508
|
+
var i2 = o2.$refs.toggle.getBoundingClientRect(), r2 = i2.height, s2 = i2.top, a2 = i2.left, l2 = i2.width, c2 = window.scrollX || window.pageXOffset, u2 = window.scrollY || window.pageYOffset;
|
|
12509
|
+
t2.unbindPosition = o2.calculatePosition(t2, o2, { width: l2 + "px", left: c2 + a2 + "px", top: u2 + s2 + r2 + "px" }), document.body.appendChild(t2);
|
|
12507
12510
|
}
|
|
12508
|
-
},
|
|
12509
|
-
|
|
12511
|
+
}, unbind: function(t2, e2, n2) {
|
|
12512
|
+
n2.context.appendToBody && (t2.unbindPosition && typeof t2.unbindPosition == "function" && t2.unbindPosition(), t2.parentNode && t2.parentNode.removeChild(t2));
|
|
12510
12513
|
} };
|
|
12511
|
-
var
|
|
12512
|
-
var
|
|
12513
|
-
return Object.keys(
|
|
12514
|
-
|
|
12515
|
-
}), JSON.stringify(
|
|
12516
|
-
},
|
|
12517
|
-
var
|
|
12518
|
-
return ++
|
|
12514
|
+
var y = function(t2) {
|
|
12515
|
+
var e2 = {};
|
|
12516
|
+
return Object.keys(t2).sort().forEach(function(n2) {
|
|
12517
|
+
e2[n2] = t2[n2];
|
|
12518
|
+
}), JSON.stringify(e2);
|
|
12519
|
+
}, b = 0;
|
|
12520
|
+
var g = function() {
|
|
12521
|
+
return ++b;
|
|
12519
12522
|
};
|
|
12520
|
-
function
|
|
12521
|
-
var
|
|
12523
|
+
function v(t2, e2) {
|
|
12524
|
+
var n2 = Object.keys(t2);
|
|
12522
12525
|
if (Object.getOwnPropertySymbols) {
|
|
12523
|
-
var
|
|
12524
|
-
|
|
12525
|
-
return Object.getOwnPropertyDescriptor(
|
|
12526
|
-
})),
|
|
12526
|
+
var o2 = Object.getOwnPropertySymbols(t2);
|
|
12527
|
+
e2 && (o2 = o2.filter(function(e3) {
|
|
12528
|
+
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
|
|
12529
|
+
})), n2.push.apply(n2, o2);
|
|
12527
12530
|
}
|
|
12528
|
-
return
|
|
12531
|
+
return n2;
|
|
12529
12532
|
}
|
|
12530
|
-
function
|
|
12531
|
-
for (var
|
|
12532
|
-
var
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
12536
|
-
Object.defineProperty(
|
|
12533
|
+
function m(t2) {
|
|
12534
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
12535
|
+
var n2 = arguments[e2] != null ? arguments[e2] : {};
|
|
12536
|
+
e2 % 2 ? v(Object(n2), true).forEach(function(e3) {
|
|
12537
|
+
l()(t2, e3, n2[e3]);
|
|
12538
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(n2)) : v(Object(n2)).forEach(function(e3) {
|
|
12539
|
+
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(n2, e3));
|
|
12537
12540
|
});
|
|
12538
12541
|
}
|
|
12539
|
-
return
|
|
12542
|
+
return t2;
|
|
12540
12543
|
}
|
|
12541
|
-
var
|
|
12544
|
+
var _ = { components: m({}, h2), directives: { appendToBody: f }, mixins: [c, u, p], props: { value: {}, components: { type: Object, default: function() {
|
|
12542
12545
|
return {};
|
|
12543
12546
|
} }, options: { type: Array, default: function() {
|
|
12544
12547
|
return [];
|
|
12545
|
-
} }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: true }, deselectFromDropdown: { type: Boolean, default: false }, searchable: { type: Boolean, default: true }, multiple: { type: Boolean, default: false }, placeholder: { type: String, default: "" }, transition: { type: String, default: "vs__fade" }, clearSearchOnSelect: { type: Boolean, default: true }, closeOnSelect: { type: Boolean, default: true }, label: { type: String, default: "label" }, autocomplete: { type: String, default: "off" }, reduce: { type: Function, default: function(
|
|
12546
|
-
return
|
|
12547
|
-
} }, selectable: { type: Function, default: function(
|
|
12548
|
+
} }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: true }, deselectFromDropdown: { type: Boolean, default: false }, searchable: { type: Boolean, default: true }, multiple: { type: Boolean, default: false }, placeholder: { type: String, default: "" }, transition: { type: String, default: "vs__fade" }, clearSearchOnSelect: { type: Boolean, default: true }, closeOnSelect: { type: Boolean, default: true }, label: { type: String, default: "label" }, autocomplete: { type: String, default: "off" }, reduce: { type: Function, default: function(t2) {
|
|
12549
|
+
return t2;
|
|
12550
|
+
} }, selectable: { type: Function, default: function(t2) {
|
|
12548
12551
|
return true;
|
|
12549
|
-
} }, getOptionLabel: { type: Function, default: function(
|
|
12550
|
-
return
|
|
12551
|
-
} }, getOptionKey: { type: Function, default: function(
|
|
12552
|
-
if (
|
|
12553
|
-
return
|
|
12552
|
+
} }, getOptionLabel: { type: Function, default: function(t2) {
|
|
12553
|
+
return s()(t2) === "object" ? t2.hasOwnProperty(this.label) ? t2[this.label] : console.warn('[vue-select warn]: Label key "option.'.concat(this.label, '" does not') + " exist in options object ".concat(JSON.stringify(t2), ".\n") + "https://vue-select.org/api/props.html#getoptionlabel") : t2;
|
|
12554
|
+
} }, getOptionKey: { type: Function, default: function(t2) {
|
|
12555
|
+
if (s()(t2) !== "object")
|
|
12556
|
+
return t2;
|
|
12554
12557
|
try {
|
|
12555
|
-
return
|
|
12556
|
-
} catch (
|
|
12557
|
-
return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",
|
|
12558
|
+
return t2.hasOwnProperty("id") ? t2.id : y(t2);
|
|
12559
|
+
} catch (e2) {
|
|
12560
|
+
return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey", t2, e2);
|
|
12558
12561
|
}
|
|
12559
12562
|
} }, onTab: { type: Function, default: function() {
|
|
12560
12563
|
this.selectOnTab && !this.isComposing && this.typeAheadSelect();
|
|
12561
|
-
} }, taggable: { type: Boolean, default: false }, tabindex: { type: Number, default: null }, pushTags: { type: Boolean, default: false }, filterable: { type: Boolean, default: true }, filterBy: { type: Function, default: function(
|
|
12562
|
-
return (
|
|
12563
|
-
} }, filter: { type: Function, default: function(
|
|
12564
|
-
var
|
|
12565
|
-
return
|
|
12566
|
-
var
|
|
12567
|
-
return typeof
|
|
12564
|
+
} }, taggable: { type: Boolean, default: false }, tabindex: { type: Number, default: null }, pushTags: { type: Boolean, default: false }, filterable: { type: Boolean, default: true }, filterBy: { type: Function, default: function(t2, e2, n2) {
|
|
12565
|
+
return (e2 || "").toLocaleLowerCase().indexOf(n2.toLocaleLowerCase()) > -1;
|
|
12566
|
+
} }, filter: { type: Function, default: function(t2, e2) {
|
|
12567
|
+
var n2 = this;
|
|
12568
|
+
return t2.filter(function(t3) {
|
|
12569
|
+
var o2 = n2.getOptionLabel(t3);
|
|
12570
|
+
return typeof o2 == "number" && (o2 = o2.toString()), n2.filterBy(t3, o2, e2);
|
|
12568
12571
|
});
|
|
12569
|
-
} }, createOption: { type: Function, default: function(
|
|
12570
|
-
return
|
|
12571
|
-
} }, resetOnOptionsChange: { default: false, validator: function(
|
|
12572
|
-
return ["function", "boolean"].includes(
|
|
12573
|
-
} }, clearSearchOnBlur: { type: Function, default: function(
|
|
12574
|
-
var
|
|
12575
|
-
return
|
|
12572
|
+
} }, createOption: { type: Function, default: function(t2) {
|
|
12573
|
+
return s()(this.optionList[0]) === "object" ? l()({}, this.label, t2) : t2;
|
|
12574
|
+
} }, resetOnOptionsChange: { default: false, validator: function(t2) {
|
|
12575
|
+
return ["function", "boolean"].includes(s()(t2));
|
|
12576
|
+
} }, clearSearchOnBlur: { type: Function, default: function(t2) {
|
|
12577
|
+
var e2 = t2.clearSearchOnSelect, n2 = t2.multiple;
|
|
12578
|
+
return e2 && !n2;
|
|
12576
12579
|
} }, noDrop: { type: Boolean, default: false }, inputId: { type: String }, dir: { type: String, default: "auto" }, selectOnTab: { type: Boolean, default: false }, selectOnKeyCodes: { type: Array, default: function() {
|
|
12577
12580
|
return [13];
|
|
12578
|
-
} }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(
|
|
12579
|
-
return
|
|
12580
|
-
} }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(
|
|
12581
|
-
var
|
|
12582
|
-
|
|
12583
|
-
} }, dropdownShouldOpen: { type: Function, default: function(
|
|
12584
|
-
var
|
|
12585
|
-
return !
|
|
12581
|
+
} }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(t2, e2) {
|
|
12582
|
+
return t2;
|
|
12583
|
+
} }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(t2, e2, n2) {
|
|
12584
|
+
var o2 = n2.width, i2 = n2.top, r2 = n2.left;
|
|
12585
|
+
t2.style.top = i2, t2.style.left = r2, t2.style.width = o2;
|
|
12586
|
+
} }, dropdownShouldOpen: { type: Function, default: function(t2) {
|
|
12587
|
+
var e2 = t2.noDrop, n2 = t2.open, o2 = t2.mutableLoading;
|
|
12588
|
+
return !e2 && (n2 && !o2);
|
|
12586
12589
|
} }, uid: { type: [String, Number], default: function() {
|
|
12587
|
-
return
|
|
12590
|
+
return g();
|
|
12588
12591
|
} } }, data: function() {
|
|
12589
|
-
return { search: "", open: false, isComposing: false, pushedTags: [], _value: []
|
|
12590
|
-
}, computed: {
|
|
12591
|
-
return this
|
|
12592
|
-
}, isTrackingValues: function() {
|
|
12593
|
-
return this.modelValue === void 0 || this.isReducingValues;
|
|
12592
|
+
return { search: "", open: false, isComposing: false, pushedTags: [], _value: [] };
|
|
12593
|
+
}, computed: { isTrackingValues: function() {
|
|
12594
|
+
return this.value === void 0 || this.$options.propsData.hasOwnProperty("reduce");
|
|
12594
12595
|
}, selectedValue: function() {
|
|
12595
|
-
var
|
|
12596
|
-
return this.isTrackingValues && (
|
|
12596
|
+
var t2 = this.value;
|
|
12597
|
+
return this.isTrackingValues && (t2 = this.$data._value), t2 ? [].concat(t2) : [];
|
|
12597
12598
|
}, optionList: function() {
|
|
12598
12599
|
return this.options.concat(this.pushTags ? this.pushedTags : []);
|
|
12599
12600
|
}, searchEl: function() {
|
|
12600
|
-
return this.$
|
|
12601
|
+
return this.$scopedSlots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
|
|
12601
12602
|
}, scope: function() {
|
|
12602
|
-
var
|
|
12603
|
-
return { search: { attributes:
|
|
12604
|
-
return
|
|
12603
|
+
var t2 = this, e2 = { search: this.search, loading: this.loading, searching: this.searching, filteredOptions: this.filteredOptions };
|
|
12604
|
+
return { search: { attributes: m({ disabled: this.disabled, placeholder: this.searchPlaceholder, tabindex: this.tabindex, readonly: !this.searchable, id: this.inputId, "aria-autocomplete": "list", "aria-labelledby": "vs".concat(this.uid, "__combobox"), "aria-controls": "vs".concat(this.uid, "__listbox"), ref: "search", type: "search", autocomplete: this.autocomplete, value: this.search }, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? { "aria-activedescendant": "vs".concat(this.uid, "__option-").concat(this.typeAheadPointer) } : {}), events: { compositionstart: function() {
|
|
12605
|
+
return t2.isComposing = true;
|
|
12605
12606
|
}, compositionend: function() {
|
|
12606
|
-
return
|
|
12607
|
-
}, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(
|
|
12608
|
-
return
|
|
12609
|
-
} } }, spinner: { loading: this.mutableLoading }, noOptions: { search: this.search, loading: this.mutableLoading, searching: this.searching }, openIndicator: { attributes: { ref: "openIndicator", role: "presentation", class: "vs__open-indicator" } }, listHeader:
|
|
12607
|
+
return t2.isComposing = false;
|
|
12608
|
+
}, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(e3) {
|
|
12609
|
+
return t2.search = e3.target.value;
|
|
12610
|
+
} } }, spinner: { loading: this.mutableLoading }, noOptions: { search: this.search, loading: this.mutableLoading, searching: this.searching }, openIndicator: { attributes: { ref: "openIndicator", role: "presentation", class: "vs__open-indicator" } }, listHeader: e2, listFooter: e2, header: m({}, e2, { deselect: this.deselect }), footer: m({}, e2, { deselect: this.deselect }) };
|
|
12610
12611
|
}, childComponents: function() {
|
|
12611
|
-
return
|
|
12612
|
+
return m({}, h2, {}, this.components);
|
|
12612
12613
|
}, stateClasses: function() {
|
|
12613
12614
|
return { "vs--open": this.dropdownOpen, "vs--single": !this.multiple, "vs--multiple": this.multiple, "vs--searching": this.searching && !this.noDrop, "vs--searchable": this.searchable && !this.noDrop, "vs--unsearchable": !this.searchable, "vs--loading": this.mutableLoading, "vs--disabled": this.disabled };
|
|
12614
12615
|
}, searching: function() {
|
|
@@ -12618,96 +12619,96 @@ var vueSelect$1 = { exports: {} };
|
|
|
12618
12619
|
}, searchPlaceholder: function() {
|
|
12619
12620
|
return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
|
|
12620
12621
|
}, filteredOptions: function() {
|
|
12621
|
-
var
|
|
12622
|
+
var t2 = [].concat(this.optionList);
|
|
12622
12623
|
if (!this.filterable && !this.taggable)
|
|
12623
|
-
return
|
|
12624
|
-
var
|
|
12624
|
+
return t2;
|
|
12625
|
+
var e2 = this.search.length ? this.filter(t2, this.search, this) : t2;
|
|
12625
12626
|
if (this.taggable && this.search.length) {
|
|
12626
|
-
var
|
|
12627
|
-
this.optionExists(
|
|
12627
|
+
var n2 = this.createOption(this.search);
|
|
12628
|
+
this.optionExists(n2) || e2.unshift(n2);
|
|
12628
12629
|
}
|
|
12629
|
-
return
|
|
12630
|
+
return e2;
|
|
12630
12631
|
}, isValueEmpty: function() {
|
|
12631
12632
|
return this.selectedValue.length === 0;
|
|
12632
12633
|
}, showClearButton: function() {
|
|
12633
12634
|
return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
|
|
12634
|
-
} }, watch: { options: function(
|
|
12635
|
-
var
|
|
12636
|
-
!this.taggable && (typeof
|
|
12637
|
-
},
|
|
12638
|
-
this.isTrackingValues && this.setInternalValueFromOptions(
|
|
12635
|
+
} }, watch: { options: function(t2, e2) {
|
|
12636
|
+
var n2 = this;
|
|
12637
|
+
!this.taggable && (typeof n2.resetOnOptionsChange == "function" ? n2.resetOnOptionsChange(t2, e2, n2.selectedValue) : n2.resetOnOptionsChange) && this.clearSelection(), this.value && this.isTrackingValues && this.setInternalValueFromOptions(this.value);
|
|
12638
|
+
}, value: { immediate: true, handler: function(t2) {
|
|
12639
|
+
this.isTrackingValues && this.setInternalValueFromOptions(t2);
|
|
12639
12640
|
} }, multiple: function() {
|
|
12640
12641
|
this.clearSelection();
|
|
12641
|
-
}, open: function(
|
|
12642
|
-
this.$emit(
|
|
12642
|
+
}, open: function(t2) {
|
|
12643
|
+
this.$emit(t2 ? "open" : "close");
|
|
12643
12644
|
} }, created: function() {
|
|
12644
|
-
this.mutableLoading = this.loading;
|
|
12645
|
-
}, methods: { setInternalValueFromOptions: function(
|
|
12646
|
-
var
|
|
12647
|
-
Array.isArray(
|
|
12648
|
-
return
|
|
12649
|
-
}) : this.$data._value = this.findOptionFromReducedValue(
|
|
12650
|
-
}, select: function(
|
|
12651
|
-
this.$emit("option:selecting",
|
|
12652
|
-
}, deselect: function(
|
|
12653
|
-
var
|
|
12654
|
-
this.$emit("option:deselecting",
|
|
12655
|
-
return !
|
|
12656
|
-
})), this.$emit("option:deselected",
|
|
12645
|
+
this.mutableLoading = this.loading, this.$on("option:created", this.pushTag);
|
|
12646
|
+
}, methods: { setInternalValueFromOptions: function(t2) {
|
|
12647
|
+
var e2 = this;
|
|
12648
|
+
Array.isArray(t2) ? this.$data._value = t2.map(function(t3) {
|
|
12649
|
+
return e2.findOptionFromReducedValue(t3);
|
|
12650
|
+
}) : this.$data._value = this.findOptionFromReducedValue(t2);
|
|
12651
|
+
}, select: function(t2) {
|
|
12652
|
+
this.$emit("option:selecting", t2), this.isOptionSelected(t2) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(t2) : (this.taggable && !this.optionExists(t2) && this.$emit("option:created", t2), this.multiple && (t2 = this.selectedValue.concat(t2)), this.updateValue(t2), this.$emit("option:selected", t2)), this.onAfterSelect(t2);
|
|
12653
|
+
}, deselect: function(t2) {
|
|
12654
|
+
var e2 = this;
|
|
12655
|
+
this.$emit("option:deselecting", t2), this.updateValue(this.selectedValue.filter(function(n2) {
|
|
12656
|
+
return !e2.optionComparator(n2, t2);
|
|
12657
|
+
})), this.$emit("option:deselected", t2);
|
|
12657
12658
|
}, clearSelection: function() {
|
|
12658
12659
|
this.updateValue(this.multiple ? [] : null);
|
|
12659
|
-
}, onAfterSelect: function(
|
|
12660
|
+
}, onAfterSelect: function(t2) {
|
|
12660
12661
|
this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
|
|
12661
|
-
}, updateValue: function(
|
|
12662
|
-
var
|
|
12663
|
-
this.
|
|
12664
|
-
return
|
|
12665
|
-
}) : this.reduce(
|
|
12666
|
-
}, toggleDropdown: function(
|
|
12667
|
-
var
|
|
12668
|
-
|
|
12669
|
-
var
|
|
12670
|
-
this.searchEl === void 0 ||
|
|
12671
|
-
return
|
|
12672
|
-
}) ?
|
|
12673
|
-
}, isOptionSelected: function(
|
|
12674
|
-
var
|
|
12675
|
-
return this.selectedValue.some(function(
|
|
12676
|
-
return
|
|
12662
|
+
}, updateValue: function(t2) {
|
|
12663
|
+
var e2 = this;
|
|
12664
|
+
this.value === void 0 && (this.$data._value = t2), t2 !== null && (t2 = Array.isArray(t2) ? t2.map(function(t3) {
|
|
12665
|
+
return e2.reduce(t3);
|
|
12666
|
+
}) : this.reduce(t2)), this.$emit("input", t2);
|
|
12667
|
+
}, toggleDropdown: function(t2) {
|
|
12668
|
+
var e2 = t2.target !== this.searchEl;
|
|
12669
|
+
e2 && t2.preventDefault();
|
|
12670
|
+
var n2 = [].concat(i()(this.$refs.deselectButtons || []), i()([this.$refs.clearButton]));
|
|
12671
|
+
this.searchEl === void 0 || n2.filter(Boolean).some(function(e3) {
|
|
12672
|
+
return e3.contains(t2.target) || e3 === t2.target;
|
|
12673
|
+
}) ? t2.preventDefault() : this.open && e2 ? this.searchEl.blur() : this.disabled || (this.open = true, this.searchEl.focus());
|
|
12674
|
+
}, isOptionSelected: function(t2) {
|
|
12675
|
+
var e2 = this;
|
|
12676
|
+
return this.selectedValue.some(function(n2) {
|
|
12677
|
+
return e2.optionComparator(n2, t2);
|
|
12677
12678
|
});
|
|
12678
|
-
}, isOptionDeselectable: function(
|
|
12679
|
-
return this.isOptionSelected(
|
|
12680
|
-
}, optionComparator: function(
|
|
12681
|
-
return this.getOptionKey(
|
|
12682
|
-
}, findOptionFromReducedValue: function(
|
|
12683
|
-
var
|
|
12684
|
-
return JSON.stringify(
|
|
12679
|
+
}, isOptionDeselectable: function(t2) {
|
|
12680
|
+
return this.isOptionSelected(t2) && this.deselectFromDropdown;
|
|
12681
|
+
}, optionComparator: function(t2, e2) {
|
|
12682
|
+
return this.getOptionKey(t2) === this.getOptionKey(e2);
|
|
12683
|
+
}, findOptionFromReducedValue: function(t2) {
|
|
12684
|
+
var e2 = this, n2 = [].concat(i()(this.options), i()(this.pushedTags)).filter(function(n3) {
|
|
12685
|
+
return JSON.stringify(e2.reduce(n3)) === JSON.stringify(t2);
|
|
12685
12686
|
});
|
|
12686
|
-
return
|
|
12687
|
-
return
|
|
12688
|
-
}) ||
|
|
12687
|
+
return n2.length === 1 ? n2[0] : n2.find(function(t3) {
|
|
12688
|
+
return e2.optionComparator(t3, e2.$data._value);
|
|
12689
|
+
}) || t2;
|
|
12689
12690
|
}, closeSearchOptions: function() {
|
|
12690
12691
|
this.open = false, this.$emit("search:blur");
|
|
12691
12692
|
}, maybeDeleteValue: function() {
|
|
12692
12693
|
if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
|
|
12693
|
-
var
|
|
12694
|
-
this.multiple && (
|
|
12694
|
+
var t2 = null;
|
|
12695
|
+
this.multiple && (t2 = i()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(t2);
|
|
12695
12696
|
}
|
|
12696
|
-
}, optionExists: function(
|
|
12697
|
-
var
|
|
12698
|
-
return this.optionList.some(function(
|
|
12699
|
-
return
|
|
12697
|
+
}, optionExists: function(t2) {
|
|
12698
|
+
var e2 = this;
|
|
12699
|
+
return this.optionList.some(function(n2) {
|
|
12700
|
+
return e2.optionComparator(n2, t2);
|
|
12700
12701
|
});
|
|
12701
|
-
}, normalizeOptionForSlot: function(
|
|
12702
|
-
return
|
|
12703
|
-
}, pushTag: function(
|
|
12704
|
-
this.pushedTags.push(
|
|
12702
|
+
}, normalizeOptionForSlot: function(t2) {
|
|
12703
|
+
return s()(t2) === "object" ? t2 : l()({}, this.label, t2);
|
|
12704
|
+
}, pushTag: function(t2) {
|
|
12705
|
+
this.pushedTags.push(t2);
|
|
12705
12706
|
}, onEscape: function() {
|
|
12706
12707
|
this.search.length ? this.search = "" : this.searchEl.blur();
|
|
12707
12708
|
}, onSearchBlur: function() {
|
|
12708
12709
|
if (!this.mousedown || this.searching) {
|
|
12709
|
-
var
|
|
12710
|
-
return this.clearSearchOnBlur({ clearSearchOnSelect:
|
|
12710
|
+
var t2 = this.clearSearchOnSelect, e2 = this.multiple;
|
|
12711
|
+
return this.clearSearchOnBlur({ clearSearchOnSelect: t2, multiple: e2 }) && (this.search = ""), void this.closeSearchOptions();
|
|
12711
12712
|
}
|
|
12712
12713
|
this.mousedown = false, this.search.length !== 0 || this.options.length !== 0 || this.closeSearchOptions();
|
|
12713
12714
|
}, onSearchFocus: function() {
|
|
@@ -12716,75 +12717,66 @@ var vueSelect$1 = { exports: {} };
|
|
|
12716
12717
|
this.mousedown = true;
|
|
12717
12718
|
}, onMouseUp: function() {
|
|
12718
12719
|
this.mousedown = false;
|
|
12719
|
-
}, onSearchKeyDown: function(
|
|
12720
|
-
var
|
|
12721
|
-
return
|
|
12722
|
-
},
|
|
12723
|
-
return
|
|
12724
|
-
}, 9: function(
|
|
12725
|
-
return
|
|
12726
|
-
}, 27: function(
|
|
12727
|
-
return
|
|
12728
|
-
}, 38: function(
|
|
12729
|
-
return
|
|
12730
|
-
}, 40: function(
|
|
12731
|
-
return
|
|
12720
|
+
}, onSearchKeyDown: function(t2) {
|
|
12721
|
+
var e2 = this, n2 = function(t3) {
|
|
12722
|
+
return t3.preventDefault(), !e2.isComposing && e2.typeAheadSelect();
|
|
12723
|
+
}, o2 = { 8: function(t3) {
|
|
12724
|
+
return e2.maybeDeleteValue();
|
|
12725
|
+
}, 9: function(t3) {
|
|
12726
|
+
return e2.onTab();
|
|
12727
|
+
}, 27: function(t3) {
|
|
12728
|
+
return e2.onEscape();
|
|
12729
|
+
}, 38: function(t3) {
|
|
12730
|
+
return t3.preventDefault(), e2.typeAheadUp();
|
|
12731
|
+
}, 40: function(t3) {
|
|
12732
|
+
return t3.preventDefault(), e2.typeAheadDown();
|
|
12732
12733
|
} };
|
|
12733
|
-
this.selectOnKeyCodes.forEach(function(
|
|
12734
|
-
return
|
|
12734
|
+
this.selectOnKeyCodes.forEach(function(t3) {
|
|
12735
|
+
return o2[t3] = n2;
|
|
12735
12736
|
});
|
|
12736
|
-
var i2 = this.mapKeydown(
|
|
12737
|
-
if (typeof i2[
|
|
12738
|
-
return i2[
|
|
12739
|
-
} } }
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12737
|
+
var i2 = this.mapKeydown(o2, this);
|
|
12738
|
+
if (typeof i2[t2.keyCode] == "function")
|
|
12739
|
+
return i2[t2.keyCode](t2);
|
|
12740
|
+
} } }, O = (n(7), d2(_, function() {
|
|
12741
|
+
var t2 = this, e2 = t2.$createElement, n2 = t2._self._c || e2;
|
|
12742
|
+
return n2("div", { staticClass: "v-select", class: t2.stateClasses, attrs: { dir: t2.dir } }, [t2._t("header", null, null, t2.scope.header), t2._v(" "), n2("div", { ref: "toggle", staticClass: "vs__dropdown-toggle", attrs: { id: "vs" + t2.uid + "__combobox", role: "combobox", "aria-expanded": t2.dropdownOpen.toString(), "aria-owns": "vs" + t2.uid + "__listbox", "aria-label": "Search for option" }, on: { mousedown: function(e3) {
|
|
12743
|
+
return t2.toggleDropdown(e3);
|
|
12744
|
+
} } }, [n2("div", { ref: "selectedOptions", staticClass: "vs__selected-options" }, [t2._l(t2.selectedValue, function(e3) {
|
|
12745
|
+
return t2._t("selected-option-container", [n2("span", { key: t2.getOptionKey(e3), staticClass: "vs__selected" }, [t2._t("selected-option", [t2._v("\n " + t2._s(t2.getOptionLabel(e3)) + "\n ")], null, t2.normalizeOptionForSlot(e3)), t2._v(" "), t2.multiple ? n2("button", { ref: "deselectButtons", refInFor: true, staticClass: "vs__deselect", attrs: { disabled: t2.disabled, type: "button", title: "Deselect " + t2.getOptionLabel(e3), "aria-label": "Deselect " + t2.getOptionLabel(e3) }, on: { click: function(n3) {
|
|
12746
|
+
return t2.deselect(e3);
|
|
12747
|
+
} } }, [n2(t2.childComponents.Deselect, { tag: "component" })], 1) : t2._e()], 2)], { option: t2.normalizeOptionForSlot(e3), deselect: t2.deselect, multiple: t2.multiple, disabled: t2.disabled });
|
|
12748
|
+
}), t2._v(" "), t2._t("search", [n2("input", t2._g(t2._b({ staticClass: "vs__search" }, "input", t2.scope.search.attributes, false), t2.scope.search.events))], null, t2.scope.search)], 2), t2._v(" "), n2("div", { ref: "actions", staticClass: "vs__actions" }, [n2("button", { directives: [{ name: "show", rawName: "v-show", value: t2.showClearButton, expression: "showClearButton" }], ref: "clearButton", staticClass: "vs__clear", attrs: { disabled: t2.disabled, type: "button", title: "Clear Selected", "aria-label": "Clear Selected" }, on: { click: t2.clearSelection } }, [n2(t2.childComponents.Deselect, { tag: "component" })], 1), t2._v(" "), t2._t("open-indicator", [t2.noDrop ? t2._e() : n2(t2.childComponents.OpenIndicator, t2._b({ tag: "component" }, "component", t2.scope.openIndicator.attributes, false))], null, t2.scope.openIndicator), t2._v(" "), t2._t("spinner", [n2("div", { directives: [{ name: "show", rawName: "v-show", value: t2.mutableLoading, expression: "mutableLoading" }], staticClass: "vs__spinner" }, [t2._v("Loading...")])], null, t2.scope.spinner)], 2)]), t2._v(" "), n2("transition", { attrs: { name: t2.transition } }, [t2.dropdownOpen ? n2("ul", { directives: [{ name: "append-to-body", rawName: "v-append-to-body" }], key: "vs" + t2.uid + "__listbox", ref: "dropdownMenu", staticClass: "vs__dropdown-menu", attrs: { id: "vs" + t2.uid + "__listbox", role: "listbox", tabindex: "-1" }, on: { mousedown: function(e3) {
|
|
12749
|
+
return e3.preventDefault(), t2.onMousedown(e3);
|
|
12750
|
+
}, mouseup: t2.onMouseUp } }, [t2._t("list-header", null, null, t2.scope.listHeader), t2._v(" "), t2._l(t2.filteredOptions, function(e3, o2) {
|
|
12751
|
+
return n2("li", { key: t2.getOptionKey(e3), staticClass: "vs__dropdown-option", class: { "vs__dropdown-option--deselect": t2.isOptionDeselectable(e3) && o2 === t2.typeAheadPointer, "vs__dropdown-option--selected": t2.isOptionSelected(e3), "vs__dropdown-option--highlight": o2 === t2.typeAheadPointer, "vs__dropdown-option--disabled": !t2.selectable(e3) }, attrs: { id: "vs" + t2.uid + "__option-" + o2, role: "option", "aria-selected": o2 === t2.typeAheadPointer || null }, on: { mouseover: function(n3) {
|
|
12752
|
+
t2.selectable(e3) && (t2.typeAheadPointer = o2);
|
|
12753
|
+
}, click: function(n3) {
|
|
12754
|
+
n3.preventDefault(), n3.stopPropagation(), t2.selectable(e3) && t2.select(e3);
|
|
12755
|
+
} } }, [t2._t("option", [t2._v("\n " + t2._s(t2.getOptionLabel(e3)) + "\n ")], null, t2.normalizeOptionForSlot(e3))], 2);
|
|
12756
|
+
}), t2._v(" "), t2.filteredOptions.length === 0 ? n2("li", { staticClass: "vs__no-options" }, [t2._t("no-options", [t2._v("Sorry, no matching options.")], null, t2.scope.noOptions)], 2) : t2._e(), t2._v(" "), t2._t("list-footer", null, null, t2.scope.listFooter)], 2) : n2("ul", { staticStyle: { display: "none", visibility: "hidden" }, attrs: { id: "vs" + t2.uid + "__listbox", role: "listbox" } })]), t2._v(" "), t2._t("footer", null, null, t2.scope.footer)], 2);
|
|
12757
|
+
}, [], false, null, null, null).exports), w2 = { ajax: p, pointer: u, pointerScroll: c };
|
|
12758
|
+
n.d(e, "VueSelect", function() {
|
|
12759
|
+
return O;
|
|
12760
|
+
}), n.d(e, "mixins", function() {
|
|
12761
|
+
return w2;
|
|
12749
12762
|
});
|
|
12750
|
-
|
|
12763
|
+
e.default = O;
|
|
12751
12764
|
}]);
|
|
12752
12765
|
});
|
|
12753
12766
|
})(vueSelect$1);
|
|
12754
|
-
var vSelect = /* @__PURE__ */ getDefaultExportFromCjs(vueSelect$1.exports);
|
|
12755
12767
|
var vueSelect = "";
|
|
12756
|
-
const _hoisted_1$7 = { slot: "no-options" };
|
|
12757
12768
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12758
|
-
const _component_v_select = resolveComponent("v-select");
|
|
12759
12769
|
return openBlock(), createElementBlock("div", {
|
|
12760
12770
|
class: "ck-select",
|
|
12761
12771
|
style: normalizeStyle($options.computedStyle)
|
|
12762
12772
|
}, [
|
|
12763
|
-
|
|
12764
|
-
class: "ck-select__v-select",
|
|
12765
|
-
ref: "vSelect",
|
|
12766
|
-
modelValue: $options.value,
|
|
12767
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value = $event),
|
|
12768
|
-
label: $props.prop,
|
|
12769
|
-
options: $props.options,
|
|
12770
|
-
disabled: !!$props.disabled,
|
|
12771
|
-
reduce: $options.realReduceFunction,
|
|
12772
|
-
clearable: !$props.notClearable && !$options.valueIsDefault,
|
|
12773
|
-
searchable: $options.realSearchable
|
|
12774
|
-
}, {
|
|
12775
|
-
default: withCtx(() => [
|
|
12776
|
-
createElementVNode("span", _hoisted_1$7, toDisplayString($props.noDataText), 1)
|
|
12777
|
-
]),
|
|
12778
|
-
_: 1
|
|
12779
|
-
}, 8, ["modelValue", "label", "options", "disabled", "reduce", "clearable", "searchable"])
|
|
12773
|
+
createElementVNode("div", null, toDisplayString($props.options), 1)
|
|
12780
12774
|
], 4);
|
|
12781
12775
|
}
|
|
12782
12776
|
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12783
12777
|
const _sfc_main$9 = {
|
|
12784
12778
|
name: "CkSelect",
|
|
12785
|
-
components: {
|
|
12786
|
-
vSelect
|
|
12787
|
-
},
|
|
12779
|
+
components: {},
|
|
12788
12780
|
props: {
|
|
12789
12781
|
modelValue: { default: null, type: [Boolean, Number, Object, Array] },
|
|
12790
12782
|
prop: { type: String, default: "name" },
|
|
@@ -12883,7 +12875,7 @@ const _sfc_main$9 = {
|
|
|
12883
12875
|
}
|
|
12884
12876
|
}
|
|
12885
12877
|
};
|
|
12886
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$a], ["__scopeId", "data-v-
|
|
12878
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$a], ["__scopeId", "data-v-13c1650c"]]);
|
|
12887
12879
|
const _withScopeId = (n) => (pushScopeId("data-v-6f20f256"), n = n(), popScopeId(), n);
|
|
12888
12880
|
const _hoisted_1$6 = ["disabled"];
|
|
12889
12881
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|