cleek 1.5.10 → 1.5.11
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 +288 -304
- package/dist/cleek.umd.js +10 -14
- package/package.json +2 -2
package/dist/cleek.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
1
|
+
import require$$0, { 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);
|
|
@@ -12351,268 +12351,264 @@ const _sfc_main$a = {
|
|
|
12351
12351
|
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$b], ["__scopeId", "data-v-73a891e8"]]);
|
|
12352
12352
|
var vueSelect$1 = { exports: {} };
|
|
12353
12353
|
(function(module, exports) {
|
|
12354
|
-
!function(
|
|
12355
|
-
module.exports =
|
|
12356
|
-
}(typeof self != "undefined" ? self : commonjsGlobal, function() {
|
|
12357
|
-
return function(
|
|
12358
|
-
var
|
|
12359
|
-
function n
|
|
12360
|
-
if (
|
|
12361
|
-
return
|
|
12362
|
-
var i =
|
|
12363
|
-
return
|
|
12354
|
+
!function(e, t) {
|
|
12355
|
+
module.exports = t(require$$0);
|
|
12356
|
+
}(typeof self != "undefined" ? self : commonjsGlobal, function(e) {
|
|
12357
|
+
return function(e2) {
|
|
12358
|
+
var t = {};
|
|
12359
|
+
function o(n) {
|
|
12360
|
+
if (t[n])
|
|
12361
|
+
return t[n].exports;
|
|
12362
|
+
var i = t[n] = { i: n, l: false, exports: {} };
|
|
12363
|
+
return e2[n].call(i.exports, i, i.exports, o), i.l = true, i.exports;
|
|
12364
12364
|
}
|
|
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
|
|
12365
|
+
return o.m = e2, o.c = t, o.d = function(e3, t2, n) {
|
|
12366
|
+
o.o(e3, t2) || Object.defineProperty(e3, t2, { enumerable: true, get: n });
|
|
12367
|
+
}, o.r = function(e3) {
|
|
12368
|
+
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e3, "__esModule", { value: true });
|
|
12369
|
+
}, o.t = function(e3, t2) {
|
|
12370
|
+
if (1 & t2 && (e3 = o(e3)), 8 & t2)
|
|
12371
|
+
return e3;
|
|
12372
|
+
if (4 & t2 && typeof e3 == "object" && e3 && e3.__esModule)
|
|
12373
|
+
return e3;
|
|
12374
|
+
var n = Object.create(null);
|
|
12375
|
+
if (o.r(n), Object.defineProperty(n, "default", { enumerable: true, value: e3 }), 2 & t2 && typeof e3 != "string")
|
|
12376
|
+
for (var i in e3)
|
|
12377
|
+
o.d(n, i, function(t3) {
|
|
12378
|
+
return e3[t3];
|
|
12379
12379
|
}.bind(null, i));
|
|
12380
|
-
return
|
|
12381
|
-
},
|
|
12382
|
-
var
|
|
12383
|
-
return
|
|
12380
|
+
return n;
|
|
12381
|
+
}, o.n = function(e3) {
|
|
12382
|
+
var t2 = e3 && e3.__esModule ? function() {
|
|
12383
|
+
return e3.default;
|
|
12384
12384
|
} : function() {
|
|
12385
|
-
return
|
|
12385
|
+
return e3;
|
|
12386
12386
|
};
|
|
12387
|
-
return
|
|
12388
|
-
},
|
|
12389
|
-
return Object.prototype.hasOwnProperty.call(
|
|
12390
|
-
},
|
|
12391
|
-
}([function(t,
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12387
|
+
return o.d(t2, "a", t2), t2;
|
|
12388
|
+
}, o.o = function(e3, t2) {
|
|
12389
|
+
return Object.prototype.hasOwnProperty.call(e3, t2);
|
|
12390
|
+
}, o.p = "/", o(o.s = 10);
|
|
12391
|
+
}([function(t, o) {
|
|
12392
|
+
t.exports = e;
|
|
12393
|
+
}, function(e2, t, o) {
|
|
12394
|
+
Object.defineProperty(t, "__esModule", { value: true }), t.default = (e3, t2) => {
|
|
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();
|
|
12395
12403
|
};
|
|
12396
|
-
}, function(
|
|
12397
|
-
function
|
|
12398
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
12399
|
-
return typeof
|
|
12400
|
-
} :
|
|
12401
|
-
return
|
|
12402
|
-
},
|
|
12404
|
+
}, function(e2, t) {
|
|
12405
|
+
function o(t2) {
|
|
12406
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? e2.exports = o = function(e3) {
|
|
12407
|
+
return typeof e3;
|
|
12408
|
+
} : e2.exports = o = function(e3) {
|
|
12409
|
+
return e3 && typeof Symbol == "function" && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
|
|
12410
|
+
}, o(t2);
|
|
12403
12411
|
}
|
|
12404
|
-
|
|
12405
|
-
}, function(
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
return e2 in t2 ? Object.defineProperty(t2, e2, { value: n, enumerable: true, configurable: true, writable: true }) : t2[e2] = n, t2;
|
|
12412
|
+
e2.exports = o;
|
|
12413
|
+
}, function(e2, t) {
|
|
12414
|
+
e2.exports = function(e3, t2, o) {
|
|
12415
|
+
return t2 in e3 ? Object.defineProperty(e3, t2, { value: o, enumerable: true, configurable: true, writable: true }) : e3[t2] = o, e3;
|
|
12409
12416
|
};
|
|
12410
|
-
}, function(t,
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12417
|
+
}, function(e2, t, o) {
|
|
12418
|
+
}, function(e2, t) {
|
|
12419
|
+
e2.exports = function(e3) {
|
|
12420
|
+
if (Array.isArray(e3)) {
|
|
12421
|
+
for (var t2 = 0, o = new Array(e3.length); t2 < e3.length; t2++)
|
|
12422
|
+
o[t2] = e3[t2];
|
|
12423
|
+
return o;
|
|
12416
12424
|
}
|
|
12417
12425
|
};
|
|
12418
|
-
}, function(
|
|
12419
|
-
|
|
12420
|
-
if (Symbol.iterator in Object(
|
|
12421
|
-
return Array.from(
|
|
12426
|
+
}, function(e2, t) {
|
|
12427
|
+
e2.exports = function(e3) {
|
|
12428
|
+
if (Symbol.iterator in Object(e3) || Object.prototype.toString.call(e3) === "[object Arguments]")
|
|
12429
|
+
return Array.from(e3);
|
|
12422
12430
|
};
|
|
12423
|
-
}, function(
|
|
12424
|
-
|
|
12431
|
+
}, function(e2, t) {
|
|
12432
|
+
e2.exports = function() {
|
|
12425
12433
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
12426
12434
|
};
|
|
12427
|
-
}, function(
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
12431
|
-
n
|
|
12432
|
-
|
|
12435
|
+
}, function(e2, t, o) {
|
|
12436
|
+
o(5);
|
|
12437
|
+
}, function(e2, t, o) {
|
|
12438
|
+
o.r(t);
|
|
12439
|
+
var n = o(0);
|
|
12440
|
+
const i = ["dir"], r = ["id", "aria-expanded", "aria-owns"], s = { ref: "selectedOptions", class: "vs__selected-options" }, l = ["disabled", "title", "aria-label", "onClick"], c = { ref: "actions", class: "vs__actions" }, a = ["disabled"], u = { class: "vs__spinner" }, p = ["id"], d2 = ["id", "aria-selected", "onMouseover", "onClick"], h2 = { key: 0, class: "vs__no-options" }, f = Object(n.createTextVNode)("Sorry, no matching options."), b = ["id"];
|
|
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() {
|
|
12433
12442
|
this.autoscroll && this.maybeAdjustScroll();
|
|
12434
|
-
}, open: function(
|
|
12435
|
-
var
|
|
12436
|
-
this.autoscroll &&
|
|
12437
|
-
return
|
|
12443
|
+
}, open: function(e3) {
|
|
12444
|
+
var t2 = this;
|
|
12445
|
+
this.autoscroll && e3 && this.$nextTick(function() {
|
|
12446
|
+
return t2.maybeAdjustScroll();
|
|
12438
12447
|
});
|
|
12439
12448
|
} }, methods: { maybeAdjustScroll: function() {
|
|
12440
|
-
var
|
|
12441
|
-
if (
|
|
12442
|
-
var
|
|
12443
|
-
if (i2 <
|
|
12444
|
-
return this.$refs.dropdownMenu.scrollTop =
|
|
12445
|
-
if (r2 >
|
|
12446
|
-
return this.$refs.dropdownMenu.scrollTop =
|
|
12449
|
+
var e3, t2 = ((e3 = this.$refs.dropdownMenu) === null || e3 === void 0 ? void 0 : e3.children[this.typeAheadPointer]) || false;
|
|
12450
|
+
if (t2) {
|
|
12451
|
+
var o2 = this.getDropdownViewport(), n2 = t2.getBoundingClientRect(), i2 = n2.top, r2 = n2.bottom, s2 = n2.height;
|
|
12452
|
+
if (i2 < o2.top)
|
|
12453
|
+
return this.$refs.dropdownMenu.scrollTop = t2.offsetTop;
|
|
12454
|
+
if (r2 > o2.bottom)
|
|
12455
|
+
return this.$refs.dropdownMenu.scrollTop = t2.offsetTop - (o2.height - s2);
|
|
12447
12456
|
}
|
|
12448
12457
|
}, getDropdownViewport: function() {
|
|
12449
12458
|
return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : { height: 0, top: 0, bottom: 0 };
|
|
12450
|
-
} } },
|
|
12459
|
+
} } }, S = { data: function() {
|
|
12451
12460
|
return { typeAheadPointer: -1 };
|
|
12452
12461
|
}, watch: { filteredOptions: function() {
|
|
12453
|
-
for (var
|
|
12454
|
-
if (this.selectable(this.filteredOptions[
|
|
12455
|
-
this.typeAheadPointer =
|
|
12462
|
+
for (var e3 = 0; e3 < this.filteredOptions.length; e3++)
|
|
12463
|
+
if (this.selectable(this.filteredOptions[e3])) {
|
|
12464
|
+
this.typeAheadPointer = e3;
|
|
12456
12465
|
break;
|
|
12457
12466
|
}
|
|
12458
12467
|
} }, methods: { typeAheadUp: function() {
|
|
12459
|
-
for (var
|
|
12460
|
-
if (this.selectable(this.filteredOptions[
|
|
12461
|
-
this.typeAheadPointer =
|
|
12468
|
+
for (var e3 = this.typeAheadPointer - 1; e3 >= 0; e3--)
|
|
12469
|
+
if (this.selectable(this.filteredOptions[e3])) {
|
|
12470
|
+
this.typeAheadPointer = e3;
|
|
12462
12471
|
break;
|
|
12463
12472
|
}
|
|
12464
12473
|
}, typeAheadDown: function() {
|
|
12465
|
-
for (var
|
|
12466
|
-
if (this.selectable(this.filteredOptions[
|
|
12467
|
-
this.typeAheadPointer =
|
|
12474
|
+
for (var e3 = this.typeAheadPointer + 1; e3 < this.filteredOptions.length; e3++)
|
|
12475
|
+
if (this.selectable(this.filteredOptions[e3])) {
|
|
12476
|
+
this.typeAheadPointer = e3;
|
|
12468
12477
|
break;
|
|
12469
12478
|
}
|
|
12470
12479
|
}, typeAheadSelect: function() {
|
|
12471
|
-
var
|
|
12472
|
-
|
|
12473
|
-
} } },
|
|
12480
|
+
var e3 = this.filteredOptions[this.typeAheadPointer];
|
|
12481
|
+
e3 && this.select(e3);
|
|
12482
|
+
} } }, _ = { props: { loading: { type: Boolean, default: false } }, data: function() {
|
|
12474
12483
|
return { mutableLoading: false };
|
|
12475
12484
|
}, watch: { search: function() {
|
|
12476
12485
|
this.$emit("search", this.search, this.toggleLoading);
|
|
12477
|
-
}, loading: function(
|
|
12478
|
-
this.mutableLoading =
|
|
12486
|
+
}, loading: function(e3) {
|
|
12487
|
+
this.mutableLoading = e3;
|
|
12479
12488
|
} }, methods: { toggleLoading: function() {
|
|
12480
|
-
var
|
|
12481
|
-
return this.mutableLoading =
|
|
12489
|
+
var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
12490
|
+
return this.mutableLoading = e3 == null ? !this.mutableLoading : e3;
|
|
12482
12491
|
} } };
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
};
|
|
12496
|
-
} else {
|
|
12497
|
-
var p2 = c2.beforeCreate;
|
|
12498
|
-
c2.beforeCreate = p2 ? [].concat(p2, l2) : [l2];
|
|
12499
|
-
}
|
|
12500
|
-
return { exports: t2, options: c2 };
|
|
12501
|
-
}
|
|
12502
|
-
var h2 = { Deselect: 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: "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" } })]);
|
|
12505
|
-
}, [], false, null, null, null).exports, OpenIndicator: d2({}, function() {
|
|
12506
|
-
var t2 = this.$createElement, e2 = this._self._c || t2;
|
|
12507
|
-
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" } })]);
|
|
12508
|
-
}, [], false, null, null, null).exports }, f = { inserted: function(t2, e2, n2) {
|
|
12509
|
-
var o2 = n2.context;
|
|
12492
|
+
const P = { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10" }, B = [Object(n.createElementVNode)("path", { 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" }, null, -1)];
|
|
12493
|
+
var V = o(1), k = o.n(V);
|
|
12494
|
+
const x = {};
|
|
12495
|
+
var C = k()(x, [["render", function(e3, t2) {
|
|
12496
|
+
return Object(n.openBlock)(), Object(n.createElementBlock)("svg", P, B);
|
|
12497
|
+
}]]);
|
|
12498
|
+
const $ = { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "10" }, D = [Object(n.createElementVNode)("path", { 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" }, null, -1)];
|
|
12499
|
+
const E = {};
|
|
12500
|
+
var A = { Deselect: C, OpenIndicator: k()(E, [["render", function(e3, t2) {
|
|
12501
|
+
return Object(n.openBlock)(), Object(n.createElementBlock)("svg", $, D);
|
|
12502
|
+
}]]) }, L = { mounted: function(e3, t2) {
|
|
12503
|
+
var o2 = t2.instance;
|
|
12510
12504
|
if (o2.appendToBody) {
|
|
12511
|
-
var
|
|
12512
|
-
|
|
12505
|
+
var n2 = o2.$refs.toggle.getBoundingClientRect(), i2 = n2.height, r2 = n2.top, s2 = n2.left, l2 = n2.width, c2 = window.scrollX || window.pageXOffset, a2 = window.scrollY || window.pageYOffset;
|
|
12506
|
+
e3.unbindPosition = o2.calculatePosition(e3, o2, { width: l2 + "px", left: c2 + s2 + "px", top: a2 + r2 + i2 + "px" }), document.body.appendChild(e3);
|
|
12513
12507
|
}
|
|
12514
|
-
},
|
|
12515
|
-
|
|
12508
|
+
}, unmounted: function(e3, t2) {
|
|
12509
|
+
t2.instance.appendToBody && (e3.unbindPosition && typeof e3.unbindPosition == "function" && e3.unbindPosition(), e3.parentNode && e3.parentNode.removeChild(e3));
|
|
12516
12510
|
} };
|
|
12517
|
-
var
|
|
12518
|
-
var
|
|
12519
|
-
return Object.keys(
|
|
12520
|
-
|
|
12521
|
-
}), JSON.stringify(
|
|
12522
|
-
},
|
|
12523
|
-
var
|
|
12524
|
-
return ++
|
|
12511
|
+
var T = function(e3) {
|
|
12512
|
+
var t2 = {};
|
|
12513
|
+
return Object.keys(e3).sort().forEach(function(o2) {
|
|
12514
|
+
t2[o2] = e3[o2];
|
|
12515
|
+
}), JSON.stringify(t2);
|
|
12516
|
+
}, F = 0;
|
|
12517
|
+
var M = function() {
|
|
12518
|
+
return ++F;
|
|
12525
12519
|
};
|
|
12526
|
-
function
|
|
12527
|
-
var
|
|
12520
|
+
function N(e3, t2) {
|
|
12521
|
+
var o2 = Object.keys(e3);
|
|
12528
12522
|
if (Object.getOwnPropertySymbols) {
|
|
12529
|
-
var
|
|
12530
|
-
|
|
12531
|
-
return Object.getOwnPropertyDescriptor(
|
|
12532
|
-
})),
|
|
12523
|
+
var n2 = Object.getOwnPropertySymbols(e3);
|
|
12524
|
+
t2 && (n2 = n2.filter(function(t3) {
|
|
12525
|
+
return Object.getOwnPropertyDescriptor(e3, t3).enumerable;
|
|
12526
|
+
})), o2.push.apply(o2, n2);
|
|
12533
12527
|
}
|
|
12534
|
-
return
|
|
12528
|
+
return o2;
|
|
12535
12529
|
}
|
|
12536
|
-
function
|
|
12537
|
-
for (var
|
|
12538
|
-
var
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
12542
|
-
Object.defineProperty(
|
|
12530
|
+
function z(e3) {
|
|
12531
|
+
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
12532
|
+
var o2 = arguments[t2] != null ? arguments[t2] : {};
|
|
12533
|
+
t2 % 2 ? N(Object(o2), true).forEach(function(t3) {
|
|
12534
|
+
j()(e3, t3, o2[t3]);
|
|
12535
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(o2)) : N(Object(o2)).forEach(function(t3) {
|
|
12536
|
+
Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(o2, t3));
|
|
12543
12537
|
});
|
|
12544
12538
|
}
|
|
12545
|
-
return
|
|
12539
|
+
return e3;
|
|
12546
12540
|
}
|
|
12547
|
-
var
|
|
12541
|
+
var R = { components: z({}, A), directives: { appendToBody: L }, mixins: [w2, S, _], emits: ["open", "close", "update:modelValue", "search", "search:compositionstart", "search:compositionend", "search:keydown", "search:blur", "search:focus", "search:input", "option:created", "option:selecting", "option:selected", "option:deselecting", "option:deselected"], props: { modelValue: {}, components: { type: Object, default: function() {
|
|
12548
12542
|
return {};
|
|
12549
12543
|
} }, options: { type: Array, default: function() {
|
|
12550
12544
|
return [];
|
|
12551
|
-
} }, 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(
|
|
12552
|
-
return
|
|
12553
|
-
} }, selectable: { type: Function, default: function(
|
|
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(e3) {
|
|
12546
|
+
return e3;
|
|
12547
|
+
} }, selectable: { type: Function, default: function(e3) {
|
|
12554
12548
|
return true;
|
|
12555
|
-
} }, getOptionLabel: { type: Function, default: function(
|
|
12556
|
-
return
|
|
12557
|
-
} }, getOptionKey: { type: Function, default: function(
|
|
12558
|
-
if (
|
|
12559
|
-
return
|
|
12549
|
+
} }, getOptionLabel: { type: Function, default: function(e3) {
|
|
12550
|
+
return g()(e3) === "object" ? e3.hasOwnProperty(this.label) ? e3[this.label] : console.warn('[vue-select warn]: Label key "option.'.concat(this.label, '" does not') + " exist in options object ".concat(JSON.stringify(e3), ".\n") + "https://vue-select.org/api/props.html#getoptionlabel") : e3;
|
|
12551
|
+
} }, getOptionKey: { type: Function, default: function(e3) {
|
|
12552
|
+
if (g()(e3) !== "object")
|
|
12553
|
+
return e3;
|
|
12560
12554
|
try {
|
|
12561
|
-
return
|
|
12562
|
-
} catch (
|
|
12563
|
-
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",
|
|
12555
|
+
return e3.hasOwnProperty("id") ? e3.id : T(e3);
|
|
12556
|
+
} catch (t2) {
|
|
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", e3, t2);
|
|
12564
12558
|
}
|
|
12565
12559
|
} }, onTab: { type: Function, default: function() {
|
|
12566
12560
|
this.selectOnTab && !this.isComposing && this.typeAheadSelect();
|
|
12567
|
-
} }, 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(
|
|
12568
|
-
return (
|
|
12569
|
-
} }, filter: { type: Function, default: function(
|
|
12570
|
-
var
|
|
12571
|
-
return
|
|
12572
|
-
var
|
|
12573
|
-
return typeof
|
|
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(e3, t2, o2) {
|
|
12562
|
+
return (t2 || "").toLocaleLowerCase().indexOf(o2.toLocaleLowerCase()) > -1;
|
|
12563
|
+
} }, filter: { type: Function, default: function(e3, t2) {
|
|
12564
|
+
var o2 = this;
|
|
12565
|
+
return e3.filter(function(e4) {
|
|
12566
|
+
var n2 = o2.getOptionLabel(e4);
|
|
12567
|
+
return typeof n2 == "number" && (n2 = n2.toString()), o2.filterBy(e4, n2, t2);
|
|
12574
12568
|
});
|
|
12575
|
-
} }, createOption: { type: Function, default: function(
|
|
12576
|
-
return
|
|
12577
|
-
} }, resetOnOptionsChange: { default: false, validator: function(
|
|
12578
|
-
return ["function", "boolean"].includes(
|
|
12579
|
-
} }, clearSearchOnBlur: { type: Function, default: function(
|
|
12580
|
-
var
|
|
12581
|
-
return
|
|
12569
|
+
} }, createOption: { type: Function, default: function(e3) {
|
|
12570
|
+
return g()(this.optionList[0]) === "object" ? j()({}, this.label, e3) : e3;
|
|
12571
|
+
} }, resetOnOptionsChange: { default: false, validator: function(e3) {
|
|
12572
|
+
return ["function", "boolean"].includes(g()(e3));
|
|
12573
|
+
} }, clearSearchOnBlur: { type: Function, default: function(e3) {
|
|
12574
|
+
var t2 = e3.clearSearchOnSelect, o2 = e3.multiple;
|
|
12575
|
+
return t2 && !o2;
|
|
12582
12576
|
} }, noDrop: { type: Boolean, default: false }, inputId: { type: String }, dir: { type: String, default: "auto" }, selectOnTab: { type: Boolean, default: false }, selectOnKeyCodes: { type: Array, default: function() {
|
|
12583
12577
|
return [13];
|
|
12584
|
-
} }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(
|
|
12585
|
-
return
|
|
12586
|
-
} }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(
|
|
12587
|
-
var
|
|
12588
|
-
|
|
12589
|
-
} }, dropdownShouldOpen: { type: Function, default: function(
|
|
12590
|
-
var
|
|
12591
|
-
return !
|
|
12578
|
+
} }, searchInputQuerySelector: { type: String, default: "[type=search]" }, mapKeydown: { type: Function, default: function(e3, t2) {
|
|
12579
|
+
return e3;
|
|
12580
|
+
} }, appendToBody: { type: Boolean, default: false }, calculatePosition: { type: Function, default: function(e3, t2, o2) {
|
|
12581
|
+
var n2 = o2.width, i2 = o2.top, r2 = o2.left;
|
|
12582
|
+
e3.style.top = i2, e3.style.left = r2, e3.style.width = n2;
|
|
12583
|
+
} }, dropdownShouldOpen: { type: Function, default: function(e3) {
|
|
12584
|
+
var t2 = e3.noDrop, o2 = e3.open, n2 = e3.mutableLoading;
|
|
12585
|
+
return !t2 && (o2 && !n2);
|
|
12592
12586
|
} }, uid: { type: [String, Number], default: function() {
|
|
12593
|
-
return
|
|
12587
|
+
return M();
|
|
12594
12588
|
} } }, data: function() {
|
|
12595
12589
|
return { search: "", open: false, isComposing: false, pushedTags: [], _value: [] };
|
|
12596
|
-
}, computed: {
|
|
12597
|
-
return this.
|
|
12590
|
+
}, computed: { isReducingValues: function() {
|
|
12591
|
+
return this.$props.reduce !== this.$options.props.reduce.default;
|
|
12592
|
+
}, isTrackingValues: function() {
|
|
12593
|
+
return this.modelValue === void 0 || this.isReducingValues;
|
|
12598
12594
|
}, selectedValue: function() {
|
|
12599
|
-
var
|
|
12600
|
-
return this.isTrackingValues && (
|
|
12595
|
+
var e3 = this.modelValue;
|
|
12596
|
+
return this.isTrackingValues && (e3 = this.$data._value), e3 ? [].concat(e3) : [];
|
|
12601
12597
|
}, optionList: function() {
|
|
12602
12598
|
return this.options.concat(this.pushTags ? this.pushedTags : []);
|
|
12603
12599
|
}, searchEl: function() {
|
|
12604
|
-
return this.$
|
|
12600
|
+
return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
|
|
12605
12601
|
}, scope: function() {
|
|
12606
|
-
var
|
|
12607
|
-
return { search: { attributes:
|
|
12608
|
-
return
|
|
12602
|
+
var e3 = this, t2 = { search: this.search, loading: this.loading, searching: this.searching, filteredOptions: this.filteredOptions };
|
|
12603
|
+
return { search: { attributes: z({ 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() {
|
|
12604
|
+
return e3.isComposing = true;
|
|
12609
12605
|
}, compositionend: function() {
|
|
12610
|
-
return
|
|
12611
|
-
}, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(
|
|
12612
|
-
return
|
|
12613
|
-
} } }, 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:
|
|
12606
|
+
return e3.isComposing = false;
|
|
12607
|
+
}, keydown: this.onSearchKeyDown, blur: this.onSearchBlur, focus: this.onSearchFocus, input: function(t3) {
|
|
12608
|
+
return e3.search = t3.target.value;
|
|
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: t2, listFooter: t2, header: z({}, t2, { deselect: this.deselect }), footer: z({}, t2, { deselect: this.deselect }) };
|
|
12614
12610
|
}, childComponents: function() {
|
|
12615
|
-
return
|
|
12611
|
+
return z({}, A, {}, this.components);
|
|
12616
12612
|
}, stateClasses: function() {
|
|
12617
12613
|
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 };
|
|
12618
12614
|
}, searching: function() {
|
|
@@ -12622,96 +12618,96 @@ var vueSelect$1 = { exports: {} };
|
|
|
12622
12618
|
}, searchPlaceholder: function() {
|
|
12623
12619
|
return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
|
|
12624
12620
|
}, filteredOptions: function() {
|
|
12625
|
-
var
|
|
12621
|
+
var e3 = [].concat(this.optionList);
|
|
12626
12622
|
if (!this.filterable && !this.taggable)
|
|
12627
|
-
return
|
|
12628
|
-
var
|
|
12623
|
+
return e3;
|
|
12624
|
+
var t2 = this.search.length ? this.filter(e3, this.search, this) : e3;
|
|
12629
12625
|
if (this.taggable && this.search.length) {
|
|
12630
|
-
var
|
|
12631
|
-
this.optionExists(
|
|
12626
|
+
var o2 = this.createOption(this.search);
|
|
12627
|
+
this.optionExists(o2) || t2.unshift(o2);
|
|
12632
12628
|
}
|
|
12633
|
-
return
|
|
12629
|
+
return t2;
|
|
12634
12630
|
}, isValueEmpty: function() {
|
|
12635
12631
|
return this.selectedValue.length === 0;
|
|
12636
12632
|
}, showClearButton: function() {
|
|
12637
12633
|
return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
|
|
12638
|
-
} }, watch: { options: function(
|
|
12639
|
-
var
|
|
12640
|
-
!this.taggable && (typeof
|
|
12641
|
-
},
|
|
12642
|
-
this.isTrackingValues && this.setInternalValueFromOptions(
|
|
12634
|
+
} }, watch: { options: function(e3, t2) {
|
|
12635
|
+
var o2 = this;
|
|
12636
|
+
!this.taggable && (typeof o2.resetOnOptionsChange == "function" ? o2.resetOnOptionsChange(e3, t2, o2.selectedValue) : o2.resetOnOptionsChange) && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
|
|
12637
|
+
}, modelValue: { immediate: true, handler: function(e3) {
|
|
12638
|
+
this.isTrackingValues && this.setInternalValueFromOptions(e3);
|
|
12643
12639
|
} }, multiple: function() {
|
|
12644
12640
|
this.clearSelection();
|
|
12645
|
-
}, open: function(
|
|
12646
|
-
this.$emit(
|
|
12641
|
+
}, open: function(e3) {
|
|
12642
|
+
this.$emit(e3 ? "open" : "close");
|
|
12647
12643
|
} }, created: function() {
|
|
12648
|
-
this.mutableLoading = this.loading
|
|
12649
|
-
}, methods: { setInternalValueFromOptions: function(
|
|
12650
|
-
var
|
|
12651
|
-
Array.isArray(
|
|
12652
|
-
return
|
|
12653
|
-
}) : this.$data._value = this.findOptionFromReducedValue(
|
|
12654
|
-
}, select: function(
|
|
12655
|
-
this.$emit("option:selecting",
|
|
12656
|
-
}, deselect: function(
|
|
12657
|
-
var
|
|
12658
|
-
this.$emit("option:deselecting",
|
|
12659
|
-
return !
|
|
12660
|
-
})), this.$emit("option:deselected",
|
|
12644
|
+
this.mutableLoading = this.loading;
|
|
12645
|
+
}, methods: { setInternalValueFromOptions: function(e3) {
|
|
12646
|
+
var t2 = this;
|
|
12647
|
+
Array.isArray(e3) ? this.$data._value = e3.map(function(e4) {
|
|
12648
|
+
return t2.findOptionFromReducedValue(e4);
|
|
12649
|
+
}) : this.$data._value = this.findOptionFromReducedValue(e3);
|
|
12650
|
+
}, select: function(e3) {
|
|
12651
|
+
this.$emit("option:selecting", e3), this.isOptionSelected(e3) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(e3) : (this.taggable && !this.optionExists(e3) && (this.$emit("option:created", e3), this.pushTag(e3)), this.multiple && (e3 = this.selectedValue.concat(e3)), this.updateValue(e3), this.$emit("option:selected", e3)), this.onAfterSelect(e3);
|
|
12652
|
+
}, deselect: function(e3) {
|
|
12653
|
+
var t2 = this;
|
|
12654
|
+
this.$emit("option:deselecting", e3), this.updateValue(this.selectedValue.filter(function(o2) {
|
|
12655
|
+
return !t2.optionComparator(o2, e3);
|
|
12656
|
+
})), this.$emit("option:deselected", e3);
|
|
12661
12657
|
}, clearSelection: function() {
|
|
12662
12658
|
this.updateValue(this.multiple ? [] : null);
|
|
12663
|
-
}, onAfterSelect: function(
|
|
12659
|
+
}, onAfterSelect: function(e3) {
|
|
12664
12660
|
this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
|
|
12665
|
-
}, updateValue: function(
|
|
12666
|
-
var
|
|
12667
|
-
this.
|
|
12668
|
-
return
|
|
12669
|
-
}) : this.reduce(
|
|
12670
|
-
}, toggleDropdown: function(
|
|
12671
|
-
var
|
|
12672
|
-
|
|
12673
|
-
var
|
|
12674
|
-
this.searchEl === void 0 ||
|
|
12675
|
-
return
|
|
12676
|
-
}) ?
|
|
12677
|
-
}, isOptionSelected: function(
|
|
12678
|
-
var
|
|
12679
|
-
return this.selectedValue.some(function(
|
|
12680
|
-
return
|
|
12661
|
+
}, updateValue: function(e3) {
|
|
12662
|
+
var t2 = this;
|
|
12663
|
+
this.modelValue === void 0 && (this.$data._value = e3), e3 !== null && (e3 = Array.isArray(e3) ? e3.map(function(e4) {
|
|
12664
|
+
return t2.reduce(e4);
|
|
12665
|
+
}) : this.reduce(e3)), this.$emit("update:modelValue", e3);
|
|
12666
|
+
}, toggleDropdown: function(e3) {
|
|
12667
|
+
var t2 = e3.target !== this.searchEl;
|
|
12668
|
+
t2 && e3.preventDefault();
|
|
12669
|
+
var o2 = [].concat(m()(this.$refs.deselectButtons || []), m()([this.$refs.clearButton]));
|
|
12670
|
+
this.searchEl === void 0 || o2.filter(Boolean).some(function(t3) {
|
|
12671
|
+
return t3.contains(e3.target) || t3 === e3.target;
|
|
12672
|
+
}) ? e3.preventDefault() : this.open && t2 ? this.searchEl.blur() : this.disabled || (this.open = true, this.searchEl.focus());
|
|
12673
|
+
}, isOptionSelected: function(e3) {
|
|
12674
|
+
var t2 = this;
|
|
12675
|
+
return this.selectedValue.some(function(o2) {
|
|
12676
|
+
return t2.optionComparator(o2, e3);
|
|
12681
12677
|
});
|
|
12682
|
-
}, isOptionDeselectable: function(
|
|
12683
|
-
return this.isOptionSelected(
|
|
12684
|
-
}, optionComparator: function(
|
|
12685
|
-
return this.getOptionKey(
|
|
12686
|
-
}, findOptionFromReducedValue: function(
|
|
12687
|
-
var
|
|
12688
|
-
return JSON.stringify(
|
|
12678
|
+
}, isOptionDeselectable: function(e3) {
|
|
12679
|
+
return this.isOptionSelected(e3) && this.deselectFromDropdown;
|
|
12680
|
+
}, optionComparator: function(e3, t2) {
|
|
12681
|
+
return this.getOptionKey(e3) === this.getOptionKey(t2);
|
|
12682
|
+
}, findOptionFromReducedValue: function(e3) {
|
|
12683
|
+
var t2 = this, o2 = [].concat(m()(this.options), m()(this.pushedTags)).filter(function(o3) {
|
|
12684
|
+
return JSON.stringify(t2.reduce(o3)) === JSON.stringify(e3);
|
|
12689
12685
|
});
|
|
12690
|
-
return
|
|
12691
|
-
return
|
|
12692
|
-
}) ||
|
|
12686
|
+
return o2.length === 1 ? o2[0] : o2.find(function(e4) {
|
|
12687
|
+
return t2.optionComparator(e4, t2.$data._value);
|
|
12688
|
+
}) || e3;
|
|
12693
12689
|
}, closeSearchOptions: function() {
|
|
12694
12690
|
this.open = false, this.$emit("search:blur");
|
|
12695
12691
|
}, maybeDeleteValue: function() {
|
|
12696
12692
|
if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
|
|
12697
|
-
var
|
|
12698
|
-
this.multiple && (
|
|
12693
|
+
var e3 = null;
|
|
12694
|
+
this.multiple && (e3 = m()(this.selectedValue.slice(0, this.selectedValue.length - 1))), this.updateValue(e3);
|
|
12699
12695
|
}
|
|
12700
|
-
}, optionExists: function(
|
|
12701
|
-
var
|
|
12702
|
-
return this.optionList.some(function(
|
|
12703
|
-
return
|
|
12696
|
+
}, optionExists: function(e3) {
|
|
12697
|
+
var t2 = this;
|
|
12698
|
+
return this.optionList.some(function(o2) {
|
|
12699
|
+
return t2.optionComparator(o2, e3);
|
|
12704
12700
|
});
|
|
12705
|
-
}, normalizeOptionForSlot: function(
|
|
12706
|
-
return
|
|
12707
|
-
}, pushTag: function(
|
|
12708
|
-
this.pushedTags.push(
|
|
12701
|
+
}, normalizeOptionForSlot: function(e3) {
|
|
12702
|
+
return g()(e3) === "object" ? e3 : j()({}, this.label, e3);
|
|
12703
|
+
}, pushTag: function(e3) {
|
|
12704
|
+
this.pushedTags.push(e3);
|
|
12709
12705
|
}, onEscape: function() {
|
|
12710
12706
|
this.search.length ? this.search = "" : this.searchEl.blur();
|
|
12711
12707
|
}, onSearchBlur: function() {
|
|
12712
12708
|
if (!this.mousedown || this.searching) {
|
|
12713
|
-
var
|
|
12714
|
-
return this.clearSearchOnBlur({ clearSearchOnSelect:
|
|
12709
|
+
var e3 = this.clearSearchOnSelect, t2 = this.multiple;
|
|
12710
|
+
return this.clearSearchOnBlur({ clearSearchOnSelect: e3, multiple: t2 }) && (this.search = ""), void this.closeSearchOptions();
|
|
12715
12711
|
}
|
|
12716
12712
|
this.mousedown = false, this.search.length !== 0 || this.options.length !== 0 || this.closeSearchOptions();
|
|
12717
12713
|
}, onSearchFocus: function() {
|
|
@@ -12720,50 +12716,38 @@ var vueSelect$1 = { exports: {} };
|
|
|
12720
12716
|
this.mousedown = true;
|
|
12721
12717
|
}, onMouseUp: function() {
|
|
12722
12718
|
this.mousedown = false;
|
|
12723
|
-
}, onSearchKeyDown: function(
|
|
12724
|
-
var
|
|
12725
|
-
return
|
|
12726
|
-
},
|
|
12727
|
-
return
|
|
12728
|
-
}, 9: function(
|
|
12729
|
-
return
|
|
12730
|
-
}, 27: function(
|
|
12731
|
-
return
|
|
12732
|
-
}, 38: function(
|
|
12733
|
-
return
|
|
12734
|
-
}, 40: function(
|
|
12735
|
-
return
|
|
12719
|
+
}, onSearchKeyDown: function(e3) {
|
|
12720
|
+
var t2 = this, o2 = function(e4) {
|
|
12721
|
+
return e4.preventDefault(), !t2.isComposing && t2.typeAheadSelect();
|
|
12722
|
+
}, n2 = { 8: function(e4) {
|
|
12723
|
+
return t2.maybeDeleteValue();
|
|
12724
|
+
}, 9: function(e4) {
|
|
12725
|
+
return t2.onTab();
|
|
12726
|
+
}, 27: function(e4) {
|
|
12727
|
+
return t2.onEscape();
|
|
12728
|
+
}, 38: function(e4) {
|
|
12729
|
+
return e4.preventDefault(), t2.typeAheadUp();
|
|
12730
|
+
}, 40: function(e4) {
|
|
12731
|
+
return e4.preventDefault(), t2.typeAheadDown();
|
|
12736
12732
|
} };
|
|
12737
|
-
this.selectOnKeyCodes.forEach(function(
|
|
12738
|
-
return
|
|
12733
|
+
this.selectOnKeyCodes.forEach(function(e4) {
|
|
12734
|
+
return n2[e4] = o2;
|
|
12739
12735
|
});
|
|
12740
|
-
var i2 = this.mapKeydown(
|
|
12741
|
-
if (typeof i2[
|
|
12742
|
-
return i2[
|
|
12743
|
-
} } }
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
} } }, [
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
}, mouseup: t2.onMouseUp } }, [t2._t("list-header", null, null, t2.scope.listHeader), t2._v(" "), t2._l(t2.filteredOptions, function(e3, o2) {
|
|
12754
|
-
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) {
|
|
12755
|
-
t2.selectable(e3) && (t2.typeAheadPointer = o2);
|
|
12756
|
-
}, click: function(n3) {
|
|
12757
|
-
n3.preventDefault(), n3.stopPropagation(), t2.selectable(e3) && t2.select(e3);
|
|
12758
|
-
} } }, [t2._t("option", [t2._v("\n " + t2._s(t2.getOptionLabel(e3)) + "\n ")], null, t2.normalizeOptionForSlot(e3))], 2);
|
|
12759
|
-
}), 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);
|
|
12760
|
-
}, [], false, null, null, null).exports), w2 = { ajax: p, pointer: u, pointerScroll: c };
|
|
12761
|
-
n.d(e, "VueSelect", function() {
|
|
12762
|
-
return O;
|
|
12763
|
-
}), n.d(e, "mixins", function() {
|
|
12764
|
-
return w2;
|
|
12736
|
+
var i2 = this.mapKeydown(n2, this);
|
|
12737
|
+
if (typeof i2[e3.keyCode] == "function")
|
|
12738
|
+
return i2[e3.keyCode](e3);
|
|
12739
|
+
} } };
|
|
12740
|
+
o(9);
|
|
12741
|
+
var I = k()(R, [["render", function(e3, t2, o2, O2, m2, y2) {
|
|
12742
|
+
const g2 = Object(n.resolveDirective)("append-to-body");
|
|
12743
|
+
return Object(n.openBlock)(), Object(n.createElementBlock)("div", { dir: o2.dir, class: Object(n.normalizeClass)(["v-select", y2.stateClasses]) }, [Object(n.renderSlot)(e3.$slots, "header", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.header))), Object(n.createElementVNode)("div", { id: `vs${o2.uid}__combobox`, ref: "toggle", class: "vs__dropdown-toggle", role: "combobox", "aria-expanded": y2.dropdownOpen.toString(), "aria-owns": `vs${o2.uid}__listbox`, "aria-label": "Search for option", onMousedown: t2[1] || (t2[1] = (e4) => y2.toggleDropdown(e4)) }, [Object(n.createElementVNode)("div", s, [(Object(n.openBlock)(true), Object(n.createElementBlock)(n.Fragment, null, Object(n.renderList)(y2.selectedValue, (t3) => Object(n.renderSlot)(e3.$slots, "selected-option-container", { option: y2.normalizeOptionForSlot(t3), deselect: y2.deselect, multiple: o2.multiple, disabled: o2.disabled }, () => [(Object(n.openBlock)(), Object(n.createElementBlock)("span", { key: o2.getOptionKey(t3), class: "vs__selected" }, [Object(n.renderSlot)(e3.$slots, "selected-option", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.normalizeOptionForSlot(t3))), () => [Object(n.createTextVNode)(Object(n.toDisplayString)(o2.getOptionLabel(t3)), 1)]), o2.multiple ? (Object(n.openBlock)(), Object(n.createElementBlock)("button", { key: 0, ref: "deselectButtons", disabled: o2.disabled, type: "button", class: "vs__deselect", title: `Deselect ${o2.getOptionLabel(t3)}`, "aria-label": `Deselect ${o2.getOptionLabel(t3)}`, onClick: (e4) => y2.deselect(t3) }, [(Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.Deselect)))], 8, l)) : Object(n.createCommentVNode)("", true)]))])), 256)), Object(n.renderSlot)(e3.$slots, "search", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.search)), () => [Object(n.createElementVNode)("input", Object(n.mergeProps)({ class: "vs__search" }, y2.scope.search.attributes, Object(n.toHandlers)(y2.scope.search.events)), null, 16)])], 512), Object(n.createElementVNode)("div", c, [Object(n.withDirectives)(Object(n.createElementVNode)("button", { ref: "clearButton", disabled: o2.disabled, type: "button", class: "vs__clear", title: "Clear Selected", "aria-label": "Clear Selected", onClick: t2[0] || (t2[0] = (...e4) => y2.clearSelection && y2.clearSelection(...e4)) }, [(Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.Deselect)))], 8, a), [[n.vShow, y2.showClearButton]]), Object(n.renderSlot)(e3.$slots, "open-indicator", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.openIndicator)), () => [o2.noDrop ? Object(n.createCommentVNode)("", true) : (Object(n.openBlock)(), Object(n.createBlock)(Object(n.resolveDynamicComponent)(y2.childComponents.OpenIndicator), Object(n.normalizeProps)(Object(n.mergeProps)({ key: 0 }, y2.scope.openIndicator.attributes)), null, 16))]), Object(n.renderSlot)(e3.$slots, "spinner", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.spinner)), () => [Object(n.withDirectives)(Object(n.createElementVNode)("div", u, "Loading...", 512), [[n.vShow, e3.mutableLoading]])])], 512)], 40, r), Object(n.createVNode)(n.Transition, { name: o2.transition }, { default: Object(n.withCtx)(() => [y2.dropdownOpen ? Object(n.withDirectives)((Object(n.openBlock)(), Object(n.createElementBlock)("ul", { id: `vs${o2.uid}__listbox`, ref: "dropdownMenu", key: `vs${o2.uid}__listbox`, class: "vs__dropdown-menu", role: "listbox", tabindex: "-1", onMousedown: t2[2] || (t2[2] = Object(n.withModifiers)((...e4) => y2.onMousedown && y2.onMousedown(...e4), ["prevent"])), onMouseup: t2[3] || (t2[3] = (...e4) => y2.onMouseUp && y2.onMouseUp(...e4)) }, [Object(n.renderSlot)(e3.$slots, "list-header", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.listHeader))), (Object(n.openBlock)(true), Object(n.createElementBlock)(n.Fragment, null, Object(n.renderList)(y2.filteredOptions, (t3, i2) => (Object(n.openBlock)(), Object(n.createElementBlock)("li", { id: `vs${o2.uid}__option-${i2}`, key: o2.getOptionKey(t3), role: "option", class: Object(n.normalizeClass)(["vs__dropdown-option", { "vs__dropdown-option--deselect": y2.isOptionDeselectable(t3) && i2 === e3.typeAheadPointer, "vs__dropdown-option--selected": y2.isOptionSelected(t3), "vs__dropdown-option--highlight": i2 === e3.typeAheadPointer, "vs__dropdown-option--disabled": !o2.selectable(t3) }]), "aria-selected": i2 === e3.typeAheadPointer || null, onMouseover: (n2) => o2.selectable(t3) ? e3.typeAheadPointer = i2 : null, onClick: Object(n.withModifiers)((e4) => o2.selectable(t3) ? y2.select(t3) : null, ["prevent", "stop"]) }, [Object(n.renderSlot)(e3.$slots, "option", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.normalizeOptionForSlot(t3))), () => [Object(n.createTextVNode)(Object(n.toDisplayString)(o2.getOptionLabel(t3)), 1)])], 42, d2))), 128)), y2.filteredOptions.length === 0 ? (Object(n.openBlock)(), Object(n.createElementBlock)("li", h2, [Object(n.renderSlot)(e3.$slots, "no-options", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.noOptions)), () => [f])])) : Object(n.createCommentVNode)("", true), Object(n.renderSlot)(e3.$slots, "list-footer", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.listFooter)))], 40, p)), [[g2]]) : (Object(n.openBlock)(), Object(n.createElementBlock)("ul", { key: 1, id: `vs${o2.uid}__listbox`, role: "listbox", style: { display: "none", visibility: "hidden" } }, null, 8, b))]), _: 3 }, 8, ["name"]), Object(n.renderSlot)(e3.$slots, "footer", Object(n.normalizeProps)(Object(n.guardReactiveProps)(y2.scope.footer)))], 10, i);
|
|
12744
|
+
}]]), K = { ajax: _, pointer: S, pointerScroll: w2 };
|
|
12745
|
+
o.d(t, "VueSelect", function() {
|
|
12746
|
+
return I;
|
|
12747
|
+
}), o.d(t, "mixins", function() {
|
|
12748
|
+
return K;
|
|
12765
12749
|
});
|
|
12766
|
-
|
|
12750
|
+
t.default = I;
|
|
12767
12751
|
}]);
|
|
12768
12752
|
});
|
|
12769
12753
|
})(vueSelect$1);
|