@appbaseio/reactivesearch-vue 1.35.1 → 1.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +410 -339
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +94 -65
- package/dist/cjs/{ReactiveComponentPrivate-58fb2a97.js → ReactiveComponentPrivate-b7df895b.js} +103 -66
- package/dist/cjs/ReactiveComponentPrivate.js +1 -1
- package/dist/cjs/ReactiveList.js +5 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +94 -65
- package/dist/es/{ReactiveComponentPrivate-ce4fdbbd.js → ReactiveComponentPrivate-0c5a0124.js} +103 -66
- package/dist/es/ReactiveComponentPrivate.js +1 -1
- package/dist/es/ReactiveList.js +5 -0
- package/dist/es/index.js +1 -1
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -9287,304 +9287,304 @@
|
|
|
9287
9287
|
|
|
9288
9288
|
function _regeneratorRuntime() {
|
|
9289
9289
|
_regeneratorRuntime = function () {
|
|
9290
|
-
return
|
|
9290
|
+
return e;
|
|
9291
9291
|
};
|
|
9292
|
-
var
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9292
|
+
var t,
|
|
9293
|
+
e = {},
|
|
9294
|
+
r = Object.prototype,
|
|
9295
|
+
n = r.hasOwnProperty,
|
|
9296
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
9297
|
+
t[e] = r.value;
|
|
9298
|
+
},
|
|
9299
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
9300
|
+
a = i.iterator || "@@iterator",
|
|
9301
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
9302
|
+
u = i.toStringTag || "@@toStringTag";
|
|
9303
|
+
function define(t, e, r) {
|
|
9304
|
+
return Object.defineProperty(t, e, {
|
|
9305
|
+
value: r,
|
|
9305
9306
|
enumerable: !0,
|
|
9306
9307
|
configurable: !0,
|
|
9307
9308
|
writable: !0
|
|
9308
|
-
}),
|
|
9309
|
+
}), t[e];
|
|
9309
9310
|
}
|
|
9310
9311
|
try {
|
|
9311
9312
|
define({}, "");
|
|
9312
|
-
} catch (
|
|
9313
|
-
define = function (
|
|
9314
|
-
return
|
|
9313
|
+
} catch (t) {
|
|
9314
|
+
define = function (t, e, r) {
|
|
9315
|
+
return t[e] = r;
|
|
9315
9316
|
};
|
|
9316
9317
|
}
|
|
9317
|
-
function wrap(
|
|
9318
|
-
var
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
return
|
|
9322
|
-
value: makeInvokeMethod(
|
|
9323
|
-
}),
|
|
9318
|
+
function wrap(t, e, r, n) {
|
|
9319
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
9320
|
+
a = Object.create(i.prototype),
|
|
9321
|
+
c = new Context(n || []);
|
|
9322
|
+
return o(a, "_invoke", {
|
|
9323
|
+
value: makeInvokeMethod(t, r, c)
|
|
9324
|
+
}), a;
|
|
9324
9325
|
}
|
|
9325
|
-
function tryCatch(
|
|
9326
|
+
function tryCatch(t, e, r) {
|
|
9326
9327
|
try {
|
|
9327
9328
|
return {
|
|
9328
9329
|
type: "normal",
|
|
9329
|
-
arg:
|
|
9330
|
+
arg: t.call(e, r)
|
|
9330
9331
|
};
|
|
9331
|
-
} catch (
|
|
9332
|
+
} catch (t) {
|
|
9332
9333
|
return {
|
|
9333
9334
|
type: "throw",
|
|
9334
|
-
arg:
|
|
9335
|
+
arg: t
|
|
9335
9336
|
};
|
|
9336
9337
|
}
|
|
9337
9338
|
}
|
|
9338
|
-
|
|
9339
|
-
var
|
|
9339
|
+
e.wrap = wrap;
|
|
9340
|
+
var h = "suspendedStart",
|
|
9341
|
+
l = "suspendedYield",
|
|
9342
|
+
f = "executing",
|
|
9343
|
+
s = "completed",
|
|
9344
|
+
y = {};
|
|
9340
9345
|
function Generator() {}
|
|
9341
9346
|
function GeneratorFunction() {}
|
|
9342
9347
|
function GeneratorFunctionPrototype() {}
|
|
9343
|
-
var
|
|
9344
|
-
define(
|
|
9348
|
+
var p = {};
|
|
9349
|
+
define(p, a, function () {
|
|
9345
9350
|
return this;
|
|
9346
9351
|
});
|
|
9347
|
-
var
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
var
|
|
9351
|
-
function defineIteratorMethods(
|
|
9352
|
-
["next", "throw", "return"].forEach(function (
|
|
9353
|
-
define(
|
|
9354
|
-
return this._invoke(
|
|
9352
|
+
var d = Object.getPrototypeOf,
|
|
9353
|
+
v = d && d(d(values([])));
|
|
9354
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
9355
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
9356
|
+
function defineIteratorMethods(t) {
|
|
9357
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
9358
|
+
define(t, e, function (t) {
|
|
9359
|
+
return this._invoke(e, t);
|
|
9355
9360
|
});
|
|
9356
9361
|
});
|
|
9357
9362
|
}
|
|
9358
|
-
function AsyncIterator(
|
|
9359
|
-
function invoke(
|
|
9360
|
-
var
|
|
9361
|
-
if ("throw" !==
|
|
9362
|
-
var
|
|
9363
|
-
|
|
9364
|
-
return
|
|
9365
|
-
invoke("next",
|
|
9366
|
-
}, function (
|
|
9367
|
-
invoke("throw",
|
|
9368
|
-
}) :
|
|
9369
|
-
|
|
9370
|
-
}, function (
|
|
9371
|
-
return invoke("throw",
|
|
9363
|
+
function AsyncIterator(t, e) {
|
|
9364
|
+
function invoke(r, o, i, a) {
|
|
9365
|
+
var c = tryCatch(t[r], t, o);
|
|
9366
|
+
if ("throw" !== c.type) {
|
|
9367
|
+
var u = c.arg,
|
|
9368
|
+
h = u.value;
|
|
9369
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
9370
|
+
invoke("next", t, i, a);
|
|
9371
|
+
}, function (t) {
|
|
9372
|
+
invoke("throw", t, i, a);
|
|
9373
|
+
}) : e.resolve(h).then(function (t) {
|
|
9374
|
+
u.value = t, i(u);
|
|
9375
|
+
}, function (t) {
|
|
9376
|
+
return invoke("throw", t, i, a);
|
|
9372
9377
|
});
|
|
9373
9378
|
}
|
|
9374
|
-
|
|
9379
|
+
a(c.arg);
|
|
9375
9380
|
}
|
|
9376
|
-
var
|
|
9377
|
-
|
|
9378
|
-
value: function (
|
|
9381
|
+
var r;
|
|
9382
|
+
o(this, "_invoke", {
|
|
9383
|
+
value: function (t, n) {
|
|
9379
9384
|
function callInvokeWithMethodAndArg() {
|
|
9380
|
-
return new
|
|
9381
|
-
invoke(
|
|
9385
|
+
return new e(function (e, r) {
|
|
9386
|
+
invoke(t, n, e, r);
|
|
9382
9387
|
});
|
|
9383
9388
|
}
|
|
9384
|
-
return
|
|
9389
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
9385
9390
|
}
|
|
9386
9391
|
});
|
|
9387
9392
|
}
|
|
9388
|
-
function makeInvokeMethod(
|
|
9389
|
-
var
|
|
9390
|
-
return function (
|
|
9391
|
-
if (
|
|
9392
|
-
if (
|
|
9393
|
-
if ("throw" ===
|
|
9394
|
-
return
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9393
|
+
function makeInvokeMethod(e, r, n) {
|
|
9394
|
+
var o = h;
|
|
9395
|
+
return function (i, a) {
|
|
9396
|
+
if (o === f) throw new Error("Generator is already running");
|
|
9397
|
+
if (o === s) {
|
|
9398
|
+
if ("throw" === i) throw a;
|
|
9399
|
+
return {
|
|
9400
|
+
value: t,
|
|
9401
|
+
done: !0
|
|
9402
|
+
};
|
|
9403
|
+
}
|
|
9404
|
+
for (n.method = i, n.arg = a;;) {
|
|
9405
|
+
var c = n.delegate;
|
|
9406
|
+
if (c) {
|
|
9407
|
+
var u = maybeInvokeDelegate(c, n);
|
|
9408
|
+
if (u) {
|
|
9409
|
+
if (u === y) continue;
|
|
9410
|
+
return u;
|
|
9403
9411
|
}
|
|
9404
9412
|
}
|
|
9405
|
-
if ("next" ===
|
|
9406
|
-
if (
|
|
9407
|
-
|
|
9408
|
-
} else "return" ===
|
|
9409
|
-
|
|
9410
|
-
var
|
|
9411
|
-
if ("normal" ===
|
|
9412
|
-
if (
|
|
9413
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
9414
|
+
if (o === h) throw o = s, n.arg;
|
|
9415
|
+
n.dispatchException(n.arg);
|
|
9416
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
9417
|
+
o = f;
|
|
9418
|
+
var p = tryCatch(e, r, n);
|
|
9419
|
+
if ("normal" === p.type) {
|
|
9420
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
9413
9421
|
return {
|
|
9414
|
-
value:
|
|
9415
|
-
done:
|
|
9422
|
+
value: p.arg,
|
|
9423
|
+
done: n.done
|
|
9416
9424
|
};
|
|
9417
9425
|
}
|
|
9418
|
-
"throw" ===
|
|
9426
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
9419
9427
|
}
|
|
9420
9428
|
};
|
|
9421
9429
|
}
|
|
9422
|
-
function maybeInvokeDelegate(
|
|
9423
|
-
var
|
|
9424
|
-
|
|
9425
|
-
if (
|
|
9426
|
-
var
|
|
9427
|
-
if ("throw" ===
|
|
9428
|
-
var
|
|
9429
|
-
return
|
|
9430
|
-
}
|
|
9431
|
-
function pushTryEntry(
|
|
9432
|
-
var
|
|
9433
|
-
tryLoc:
|
|
9430
|
+
function maybeInvokeDelegate(e, r) {
|
|
9431
|
+
var n = r.method,
|
|
9432
|
+
o = e.iterator[n];
|
|
9433
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
9434
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
9435
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
9436
|
+
var a = i.arg;
|
|
9437
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
9438
|
+
}
|
|
9439
|
+
function pushTryEntry(t) {
|
|
9440
|
+
var e = {
|
|
9441
|
+
tryLoc: t[0]
|
|
9434
9442
|
};
|
|
9435
|
-
1 in
|
|
9443
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
9436
9444
|
}
|
|
9437
|
-
function resetTryEntry(
|
|
9438
|
-
var
|
|
9439
|
-
|
|
9445
|
+
function resetTryEntry(t) {
|
|
9446
|
+
var e = t.completion || {};
|
|
9447
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
9440
9448
|
}
|
|
9441
|
-
function Context(
|
|
9449
|
+
function Context(t) {
|
|
9442
9450
|
this.tryEntries = [{
|
|
9443
9451
|
tryLoc: "root"
|
|
9444
|
-
}],
|
|
9445
|
-
}
|
|
9446
|
-
function values(
|
|
9447
|
-
if (
|
|
9448
|
-
var
|
|
9449
|
-
if (
|
|
9450
|
-
if ("function" == typeof
|
|
9451
|
-
if (!isNaN(
|
|
9452
|
-
var
|
|
9453
|
-
|
|
9454
|
-
for (; ++
|
|
9455
|
-
return next.value =
|
|
9452
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
9453
|
+
}
|
|
9454
|
+
function values(e) {
|
|
9455
|
+
if (e || "" === e) {
|
|
9456
|
+
var r = e[a];
|
|
9457
|
+
if (r) return r.call(e);
|
|
9458
|
+
if ("function" == typeof e.next) return e;
|
|
9459
|
+
if (!isNaN(e.length)) {
|
|
9460
|
+
var o = -1,
|
|
9461
|
+
i = function next() {
|
|
9462
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
9463
|
+
return next.value = t, next.done = !0, next;
|
|
9456
9464
|
};
|
|
9457
|
-
return
|
|
9465
|
+
return i.next = i;
|
|
9458
9466
|
}
|
|
9459
9467
|
}
|
|
9460
|
-
|
|
9461
|
-
next: doneResult
|
|
9462
|
-
};
|
|
9463
|
-
}
|
|
9464
|
-
function doneResult() {
|
|
9465
|
-
return {
|
|
9466
|
-
value: undefined,
|
|
9467
|
-
done: !0
|
|
9468
|
-
};
|
|
9468
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
9469
9469
|
}
|
|
9470
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
9470
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
9471
9471
|
value: GeneratorFunctionPrototype,
|
|
9472
9472
|
configurable: !0
|
|
9473
|
-
}),
|
|
9473
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
9474
9474
|
value: GeneratorFunction,
|
|
9475
9475
|
configurable: !0
|
|
9476
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
9477
|
-
var
|
|
9478
|
-
return !!
|
|
9479
|
-
},
|
|
9480
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
9481
|
-
},
|
|
9476
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
9477
|
+
var e = "function" == typeof t && t.constructor;
|
|
9478
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
9479
|
+
}, e.mark = function (t) {
|
|
9480
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
9481
|
+
}, e.awrap = function (t) {
|
|
9482
9482
|
return {
|
|
9483
|
-
__await:
|
|
9483
|
+
__await: t
|
|
9484
9484
|
};
|
|
9485
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
9485
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
9486
9486
|
return this;
|
|
9487
|
-
}),
|
|
9488
|
-
void 0 ===
|
|
9489
|
-
var
|
|
9490
|
-
return
|
|
9491
|
-
return
|
|
9487
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
9488
|
+
void 0 === i && (i = Promise);
|
|
9489
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
9490
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
9491
|
+
return t.done ? t.value : a.next();
|
|
9492
9492
|
});
|
|
9493
|
-
}, defineIteratorMethods(
|
|
9493
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
9494
9494
|
return this;
|
|
9495
|
-
}), define(
|
|
9495
|
+
}), define(g, "toString", function () {
|
|
9496
9496
|
return "[object Generator]";
|
|
9497
|
-
}),
|
|
9498
|
-
var
|
|
9499
|
-
|
|
9500
|
-
for (var
|
|
9501
|
-
return
|
|
9502
|
-
for (;
|
|
9503
|
-
var
|
|
9504
|
-
if (
|
|
9497
|
+
}), e.keys = function (t) {
|
|
9498
|
+
var e = Object(t),
|
|
9499
|
+
r = [];
|
|
9500
|
+
for (var n in e) r.push(n);
|
|
9501
|
+
return r.reverse(), function next() {
|
|
9502
|
+
for (; r.length;) {
|
|
9503
|
+
var t = r.pop();
|
|
9504
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
9505
9505
|
}
|
|
9506
9506
|
return next.done = !0, next;
|
|
9507
9507
|
};
|
|
9508
|
-
},
|
|
9508
|
+
}, e.values = values, Context.prototype = {
|
|
9509
9509
|
constructor: Context,
|
|
9510
|
-
reset: function (
|
|
9511
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
9510
|
+
reset: function (e) {
|
|
9511
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
9512
9512
|
},
|
|
9513
9513
|
stop: function () {
|
|
9514
9514
|
this.done = !0;
|
|
9515
|
-
var
|
|
9516
|
-
if ("throw" ===
|
|
9515
|
+
var t = this.tryEntries[0].completion;
|
|
9516
|
+
if ("throw" === t.type) throw t.arg;
|
|
9517
9517
|
return this.rval;
|
|
9518
9518
|
},
|
|
9519
|
-
dispatchException: function (
|
|
9520
|
-
if (this.done) throw
|
|
9521
|
-
var
|
|
9522
|
-
function handle(
|
|
9523
|
-
return
|
|
9524
|
-
}
|
|
9525
|
-
for (var
|
|
9526
|
-
var
|
|
9527
|
-
|
|
9528
|
-
if ("root" ===
|
|
9529
|
-
if (
|
|
9530
|
-
var
|
|
9531
|
-
|
|
9532
|
-
if (
|
|
9533
|
-
if (this.prev <
|
|
9534
|
-
if (this.prev <
|
|
9535
|
-
} else if (
|
|
9536
|
-
if (this.prev <
|
|
9519
|
+
dispatchException: function (e) {
|
|
9520
|
+
if (this.done) throw e;
|
|
9521
|
+
var r = this;
|
|
9522
|
+
function handle(n, o) {
|
|
9523
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
9524
|
+
}
|
|
9525
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
9526
|
+
var i = this.tryEntries[o],
|
|
9527
|
+
a = i.completion;
|
|
9528
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
9529
|
+
if (i.tryLoc <= this.prev) {
|
|
9530
|
+
var c = n.call(i, "catchLoc"),
|
|
9531
|
+
u = n.call(i, "finallyLoc");
|
|
9532
|
+
if (c && u) {
|
|
9533
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
9534
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
9535
|
+
} else if (c) {
|
|
9536
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
9537
9537
|
} else {
|
|
9538
|
-
if (!
|
|
9539
|
-
if (this.prev <
|
|
9538
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
9539
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
9540
9540
|
}
|
|
9541
9541
|
}
|
|
9542
9542
|
}
|
|
9543
9543
|
},
|
|
9544
|
-
abrupt: function (
|
|
9545
|
-
for (var
|
|
9546
|
-
var
|
|
9547
|
-
if (
|
|
9548
|
-
var
|
|
9544
|
+
abrupt: function (t, e) {
|
|
9545
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
9546
|
+
var o = this.tryEntries[r];
|
|
9547
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
9548
|
+
var i = o;
|
|
9549
9549
|
break;
|
|
9550
9550
|
}
|
|
9551
9551
|
}
|
|
9552
|
-
|
|
9553
|
-
var
|
|
9554
|
-
return
|
|
9552
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
9553
|
+
var a = i ? i.completion : {};
|
|
9554
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
9555
9555
|
},
|
|
9556
|
-
complete: function (
|
|
9557
|
-
if ("throw" ===
|
|
9558
|
-
return "break" ===
|
|
9556
|
+
complete: function (t, e) {
|
|
9557
|
+
if ("throw" === t.type) throw t.arg;
|
|
9558
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
9559
9559
|
},
|
|
9560
|
-
finish: function (
|
|
9561
|
-
for (var
|
|
9562
|
-
var
|
|
9563
|
-
if (
|
|
9560
|
+
finish: function (t) {
|
|
9561
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
9562
|
+
var r = this.tryEntries[e];
|
|
9563
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
9564
9564
|
}
|
|
9565
9565
|
},
|
|
9566
|
-
catch: function (
|
|
9567
|
-
for (var
|
|
9568
|
-
var
|
|
9569
|
-
if (
|
|
9570
|
-
var
|
|
9571
|
-
if ("throw" ===
|
|
9572
|
-
var
|
|
9573
|
-
resetTryEntry(
|
|
9566
|
+
catch: function (t) {
|
|
9567
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
9568
|
+
var r = this.tryEntries[e];
|
|
9569
|
+
if (r.tryLoc === t) {
|
|
9570
|
+
var n = r.completion;
|
|
9571
|
+
if ("throw" === n.type) {
|
|
9572
|
+
var o = n.arg;
|
|
9573
|
+
resetTryEntry(r);
|
|
9574
9574
|
}
|
|
9575
|
-
return
|
|
9575
|
+
return o;
|
|
9576
9576
|
}
|
|
9577
9577
|
}
|
|
9578
9578
|
throw new Error("illegal catch attempt");
|
|
9579
9579
|
},
|
|
9580
|
-
delegateYield: function (
|
|
9580
|
+
delegateYield: function (e, r, n) {
|
|
9581
9581
|
return this.delegate = {
|
|
9582
|
-
iterator: values(
|
|
9583
|
-
resultName:
|
|
9584
|
-
nextLoc:
|
|
9585
|
-
}, "next" === this.method && (this.arg =
|
|
9582
|
+
iterator: values(e),
|
|
9583
|
+
resultName: r,
|
|
9584
|
+
nextLoc: n
|
|
9585
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
9586
9586
|
}
|
|
9587
|
-
},
|
|
9587
|
+
}, e;
|
|
9588
9588
|
}
|
|
9589
9589
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9590
9590
|
try {
|
|
@@ -13809,6 +13809,11 @@
|
|
|
13809
13809
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
13810
13810
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
13811
13811
|
}
|
|
13812
|
+
},
|
|
13813
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
13814
|
+
if (newVal !== oldVal) {
|
|
13815
|
+
this.$emit('loading', newVal);
|
|
13816
|
+
}
|
|
13812
13817
|
}
|
|
13813
13818
|
},
|
|
13814
13819
|
mounted: function mounted() {
|
|
@@ -18715,7 +18720,8 @@
|
|
|
18715
18720
|
selectedTags: [],
|
|
18716
18721
|
isOpen: false,
|
|
18717
18722
|
normalizedSuggestions: [],
|
|
18718
|
-
isPending: false
|
|
18723
|
+
isPending: false,
|
|
18724
|
+
isSuggestionSelected: false
|
|
18719
18725
|
};
|
|
18720
18726
|
this.internalComponent = props.componentId + "__internal";
|
|
18721
18727
|
return this.__state;
|
|
@@ -19100,6 +19106,7 @@
|
|
|
19100
19106
|
_this.getRecentSearches();
|
|
19101
19107
|
}
|
|
19102
19108
|
if (isTagsMode) {
|
|
19109
|
+
var isTagAdded = false;
|
|
19103
19110
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
19104
19111
|
// check if value already present in selectedTags
|
|
19105
19112
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -19108,14 +19115,36 @@
|
|
|
19108
19115
|
}
|
|
19109
19116
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
19110
19117
|
if (typeof value === 'string' && !!value) {
|
|
19111
|
-
|
|
19118
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
19119
|
+
_this.selectedTags.push(value);
|
|
19120
|
+
isTagAdded = true;
|
|
19121
|
+
} else if (!props.strictSelection) {
|
|
19122
|
+
_this.selectedTags.push(value);
|
|
19123
|
+
isTagAdded = true;
|
|
19124
|
+
}
|
|
19112
19125
|
} else if (Array.isArray(value) && !isEqual$4(_this.selectedTags, value)) {
|
|
19113
|
-
|
|
19126
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
19127
|
+
_this.selectedTags = value;
|
|
19128
|
+
isTagAdded = true;
|
|
19129
|
+
} else if (!props.strictSelection) {
|
|
19130
|
+
_this.selectedTags.push(value);
|
|
19131
|
+
isTagAdded = true;
|
|
19132
|
+
}
|
|
19114
19133
|
}
|
|
19115
19134
|
} else if (value) {
|
|
19116
|
-
|
|
19135
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
19136
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
19137
|
+
isTagAdded = true;
|
|
19138
|
+
} else if (!props.strictSelection) {
|
|
19139
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
19140
|
+
isTagAdded = true;
|
|
19141
|
+
}
|
|
19142
|
+
}
|
|
19143
|
+
if (props.strictSelection && !isTagAdded) {
|
|
19144
|
+
_this.currentValue = value;
|
|
19145
|
+
} else {
|
|
19146
|
+
_this.currentValue = '';
|
|
19117
19147
|
}
|
|
19118
|
-
_this.currentValue = '';
|
|
19119
19148
|
} else {
|
|
19120
19149
|
_this.currentValue = value;
|
|
19121
19150
|
}
|
|
@@ -19135,7 +19164,7 @@
|
|
|
19135
19164
|
if (props.strictSelection && props.autosuggest) {
|
|
19136
19165
|
if (cause === lib_7.SUGGESTION_SELECT || props.value !== undefined) {
|
|
19137
19166
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
19138
|
-
} else if (_this.currentValue !== '') {
|
|
19167
|
+
} else if (_this.currentValue !== '' && !props.strictSelection) {
|
|
19139
19168
|
_this.setValue('', true);
|
|
19140
19169
|
}
|
|
19141
19170
|
} else {
|
|
@@ -19264,17 +19293,17 @@
|
|
|
19264
19293
|
var targetValue = event.target.value;
|
|
19265
19294
|
var _this$$props2 = this.$props,
|
|
19266
19295
|
value = _this$$props2.value,
|
|
19267
|
-
|
|
19268
|
-
size = _this$$props2.size,
|
|
19269
|
-
autosuggest = _this$$props2.autosuggest;
|
|
19296
|
+
size = _this$$props2.size;
|
|
19270
19297
|
if (value !== undefined) {
|
|
19271
19298
|
this.isPending = true;
|
|
19272
19299
|
}
|
|
19273
19300
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
19274
19301
|
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
19275
19302
|
this.isPending = false;
|
|
19276
|
-
|
|
19277
|
-
|
|
19303
|
+
if (!this.isSuggestionSelected) {
|
|
19304
|
+
this.setValue(targetValue, true, this.$props, undefined, false);
|
|
19305
|
+
this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
|
|
19306
|
+
}
|
|
19278
19307
|
}
|
|
19279
19308
|
// Need to review
|
|
19280
19309
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -19310,11 +19339,16 @@
|
|
|
19310
19339
|
}
|
|
19311
19340
|
},
|
|
19312
19341
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
19342
|
+
var _this3 = this;
|
|
19313
19343
|
var value = this.$props.value;
|
|
19314
19344
|
// Record analytics for selected suggestions
|
|
19315
19345
|
this.triggerClickAnalytics(suggestion._click_id);
|
|
19316
19346
|
if (value === undefined) {
|
|
19317
19347
|
this.setValue(suggestion.value, true, this.$props, lib_7.SUGGESTION_SELECT);
|
|
19348
|
+
this.isSuggestionSelected = true;
|
|
19349
|
+
setTimeout(function () {
|
|
19350
|
+
_this3.isSuggestionSelected = false;
|
|
19351
|
+
}, 50);
|
|
19318
19352
|
} else if (this.$options.isTagsMode) {
|
|
19319
19353
|
var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
|
|
19320
19354
|
if (this.selectedTags.includes(suggestion.value)) {
|
|
@@ -19420,7 +19454,7 @@
|
|
|
19420
19454
|
return null;
|
|
19421
19455
|
},
|
|
19422
19456
|
renderTag: function renderTag(item) {
|
|
19423
|
-
var
|
|
19457
|
+
var _this4 = this;
|
|
19424
19458
|
var h = this.$createElement;
|
|
19425
19459
|
var innerClass = this.$props.innerClass;
|
|
19426
19460
|
return h(TagItem, {
|
|
@@ -19433,7 +19467,7 @@
|
|
|
19433
19467
|
"class": "close-icon",
|
|
19434
19468
|
"on": {
|
|
19435
19469
|
"click": function click() {
|
|
19436
|
-
return
|
|
19470
|
+
return _this4.clearTag(item);
|
|
19437
19471
|
}
|
|
19438
19472
|
}
|
|
19439
19473
|
}, [h(CancelSvg)])]);
|
|
@@ -19455,7 +19489,7 @@
|
|
|
19455
19489
|
}
|
|
19456
19490
|
},
|
|
19457
19491
|
renderTags: function renderTags() {
|
|
19458
|
-
var
|
|
19492
|
+
var _this5 = this;
|
|
19459
19493
|
var h = this.$createElement;
|
|
19460
19494
|
if (!Array.isArray(this.selectedTags)) {
|
|
19461
19495
|
return null;
|
|
@@ -19468,7 +19502,7 @@
|
|
|
19468
19502
|
handleClear: this.clearTag,
|
|
19469
19503
|
handleClearAll: this.clearAllTags
|
|
19470
19504
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
19471
|
-
return
|
|
19505
|
+
return _this5.renderTag(item);
|
|
19472
19506
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
19473
19507
|
"class": getClassName$3(this.$props.innerClass, 'selected-tag') || ''
|
|
19474
19508
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -19547,7 +19581,7 @@
|
|
|
19547
19581
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
19548
19582
|
},
|
|
19549
19583
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
19550
|
-
var
|
|
19584
|
+
var _this6 = this;
|
|
19551
19585
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
19552
19586
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
19553
19587
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -19562,7 +19596,7 @@
|
|
|
19562
19596
|
function (event, handler) {
|
|
19563
19597
|
// Prevent the default refresh event under WINDOWS system
|
|
19564
19598
|
event.preventDefault();
|
|
19565
|
-
|
|
19599
|
+
_this6.focusSearchBox(event);
|
|
19566
19600
|
});
|
|
19567
19601
|
|
|
19568
19602
|
// if one of modifier keys are used, they are handled below
|
|
@@ -19572,7 +19606,7 @@
|
|
|
19572
19606
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
19573
19607
|
var element = modifierKeys[index];
|
|
19574
19608
|
if (hotkeys[element]) {
|
|
19575
|
-
|
|
19609
|
+
_this6.focusSearchBox(event);
|
|
19576
19610
|
break;
|
|
19577
19611
|
}
|
|
19578
19612
|
}
|
|
@@ -19580,7 +19614,7 @@
|
|
|
19580
19614
|
}
|
|
19581
19615
|
},
|
|
19582
19616
|
render: function render() {
|
|
19583
|
-
var
|
|
19617
|
+
var _this7 = this;
|
|
19584
19618
|
var h = arguments[0];
|
|
19585
19619
|
var _this$$props6 = this.$props,
|
|
19586
19620
|
theme = _this$$props6.theme,
|
|
@@ -19615,14 +19649,14 @@
|
|
|
19615
19649
|
highlightedIndex = _ref4.highlightedIndex,
|
|
19616
19650
|
setHighlightedIndex = _ref4.setHighlightedIndex;
|
|
19617
19651
|
var renderSuggestionsContainer = function renderSuggestionsContainer() {
|
|
19618
|
-
return h("div", [
|
|
19652
|
+
return h("div", [_this7.hasCustomRenderer && _this7.getComponent({
|
|
19619
19653
|
isOpen: isOpen,
|
|
19620
19654
|
getItemProps: getItemProps,
|
|
19621
19655
|
getItemEvents: getItemEvents,
|
|
19622
19656
|
highlightedIndex: highlightedIndex
|
|
19623
|
-
}),
|
|
19624
|
-
"class": suggestions$1(
|
|
19625
|
-
}, [
|
|
19657
|
+
}), _this7.renderErrorComponent(), !_this7.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
19658
|
+
"class": suggestions$1(_this7.themePreset, theme) + " " + getClassName$3(_this7.$props.innerClass, 'list')
|
|
19659
|
+
}, [_this7.suggestionsList.slice(0, size || 10).map(function (item, index) {
|
|
19626
19660
|
return h("li", {
|
|
19627
19661
|
"domProps": _extends({}, getItemProps({
|
|
19628
19662
|
item: item
|
|
@@ -19632,15 +19666,15 @@
|
|
|
19632
19666
|
})),
|
|
19633
19667
|
"key": index + 1 + "-" + item.value,
|
|
19634
19668
|
"style": {
|
|
19635
|
-
backgroundColor:
|
|
19669
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, index)
|
|
19636
19670
|
}
|
|
19637
19671
|
}, [h(SuggestionItem, {
|
|
19638
19672
|
"attrs": {
|
|
19639
|
-
"currentValue":
|
|
19673
|
+
"currentValue": _this7.currentValue,
|
|
19640
19674
|
"suggestion": item
|
|
19641
19675
|
}
|
|
19642
19676
|
})]);
|
|
19643
|
-
}),
|
|
19677
|
+
}), _this7.defaultSearchSuggestions.map(function (sugg, index) {
|
|
19644
19678
|
return h("li", {
|
|
19645
19679
|
"domProps": _extends({}, getItemProps({
|
|
19646
19680
|
item: sugg
|
|
@@ -19648,9 +19682,9 @@
|
|
|
19648
19682
|
"on": _extends({}, getItemEvents({
|
|
19649
19683
|
item: sugg
|
|
19650
19684
|
})),
|
|
19651
|
-
"key":
|
|
19685
|
+
"key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
19652
19686
|
"style": {
|
|
19653
|
-
backgroundColor:
|
|
19687
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
|
|
19654
19688
|
justifyContent: 'flex-start'
|
|
19655
19689
|
}
|
|
19656
19690
|
}, [h("div", {
|
|
@@ -19659,28 +19693,28 @@
|
|
|
19659
19693
|
}
|
|
19660
19694
|
}, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
|
|
19661
19695
|
"attrs": {
|
|
19662
|
-
"className": getClassName$3(
|
|
19696
|
+
"className": getClassName$3(_this7.$props.innerClass, 'recent-search-icon') || null,
|
|
19663
19697
|
"icon": recentSearchesIcon,
|
|
19664
19698
|
"type": "recent-search-icon"
|
|
19665
19699
|
}
|
|
19666
19700
|
}), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
|
|
19667
19701
|
"attrs": {
|
|
19668
|
-
"className": getClassName$3(
|
|
19702
|
+
"className": getClassName$3(_this7.$props.innerClass, 'popular-search-icon') || null,
|
|
19669
19703
|
"icon": popularSearchesIcon,
|
|
19670
19704
|
"type": "popular-search-icon"
|
|
19671
19705
|
}
|
|
19672
19706
|
})]), h(SuggestionItem, {
|
|
19673
19707
|
"attrs": {
|
|
19674
|
-
"currentValue":
|
|
19708
|
+
"currentValue": _this7.currentValue,
|
|
19675
19709
|
"suggestion": sugg
|
|
19676
19710
|
}
|
|
19677
19711
|
})]);
|
|
19678
|
-
}), hasQuerySuggestionsRenderer(
|
|
19712
|
+
}), hasQuerySuggestionsRenderer(_this7) ? _this7.getComponent({
|
|
19679
19713
|
isOpen: isOpen,
|
|
19680
19714
|
getItemProps: getItemProps,
|
|
19681
19715
|
getItemEvents: getItemEvents,
|
|
19682
19716
|
highlightedIndex: highlightedIndex
|
|
19683
|
-
}, true) :
|
|
19717
|
+
}, true) : _this7.topSuggestions.map(function (sugg, index) {
|
|
19684
19718
|
return h("li", {
|
|
19685
19719
|
"domProps": _extends({}, getItemProps({
|
|
19686
19720
|
item: sugg
|
|
@@ -19688,9 +19722,9 @@
|
|
|
19688
19722
|
"on": _extends({}, getItemEvents({
|
|
19689
19723
|
item: sugg
|
|
19690
19724
|
})),
|
|
19691
|
-
"key":
|
|
19725
|
+
"key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
19692
19726
|
"style": {
|
|
19693
|
-
backgroundColor:
|
|
19727
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
|
|
19694
19728
|
justifyContent: 'flex-start'
|
|
19695
19729
|
}
|
|
19696
19730
|
}, [h("div", {
|
|
@@ -19699,58 +19733,58 @@
|
|
|
19699
19733
|
}
|
|
19700
19734
|
}, [h(CustomSvg, {
|
|
19701
19735
|
"attrs": {
|
|
19702
|
-
"className": getClassName$3(
|
|
19736
|
+
"className": getClassName$3(_this7.$props.innerClass, 'popular-search-icon') || null,
|
|
19703
19737
|
"icon": popularSearchesIcon,
|
|
19704
19738
|
"type": "popular-search-icon"
|
|
19705
19739
|
}
|
|
19706
19740
|
})]), h(SuggestionItem, {
|
|
19707
19741
|
"attrs": {
|
|
19708
|
-
"currentValue":
|
|
19742
|
+
"currentValue": _this7.currentValue,
|
|
19709
19743
|
"suggestion": sugg
|
|
19710
19744
|
}
|
|
19711
19745
|
})]);
|
|
19712
|
-
})]) :
|
|
19746
|
+
})]) : _this7.renderNoSuggestions(_this7.suggestionsList)]);
|
|
19713
19747
|
};
|
|
19714
19748
|
return h("div", {
|
|
19715
19749
|
"class": suggestionsContainer
|
|
19716
|
-
}, [h(InputGroup, [
|
|
19750
|
+
}, [h(InputGroup, [_this7.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
19717
19751
|
"attrs": {
|
|
19718
|
-
"id":
|
|
19719
|
-
"showIcon":
|
|
19720
|
-
"showClear":
|
|
19721
|
-
"iconPosition":
|
|
19722
|
-
"placeholder":
|
|
19723
|
-
"autoFocus":
|
|
19724
|
-
"themePreset":
|
|
19752
|
+
"id": _this7.$props.componentId + "-input",
|
|
19753
|
+
"showIcon": _this7.$props.showIcon,
|
|
19754
|
+
"showClear": _this7.$props.showClear,
|
|
19755
|
+
"iconPosition": _this7.$props.iconPosition,
|
|
19756
|
+
"placeholder": _this7.$props.placeholder,
|
|
19757
|
+
"autoFocus": _this7.$props.autoFocus,
|
|
19758
|
+
"themePreset": _this7.themePreset,
|
|
19725
19759
|
"autocomplete": "off"
|
|
19726
19760
|
},
|
|
19727
|
-
"ref":
|
|
19728
|
-
"class": getClassName$3(
|
|
19761
|
+
"ref": _this7.$props.innerRef,
|
|
19762
|
+
"class": getClassName$3(_this7.$props.innerClass, 'input'),
|
|
19729
19763
|
"on": _extends({}, getInputEvents({
|
|
19730
|
-
onInput:
|
|
19764
|
+
onInput: _this7.onInputChange,
|
|
19731
19765
|
onBlur: function onBlur(e) {
|
|
19732
|
-
|
|
19766
|
+
_this7.$emit('blur', e, _this7.triggerQuery);
|
|
19733
19767
|
},
|
|
19734
|
-
onFocus:
|
|
19768
|
+
onFocus: _this7.handleFocus,
|
|
19735
19769
|
onKeyPress: function onKeyPress(e) {
|
|
19736
|
-
|
|
19737
|
-
|
|
19770
|
+
_this7.$emit('keyPress', e, _this7.triggerQuery);
|
|
19771
|
+
_this7.$emit('key-press', e, _this7.triggerQuery);
|
|
19738
19772
|
},
|
|
19739
19773
|
onKeyDown: function onKeyDown(e) {
|
|
19740
|
-
return
|
|
19774
|
+
return _this7.handleKeyDown(e, highlightedIndex);
|
|
19741
19775
|
},
|
|
19742
19776
|
onKeyUp: function onKeyUp(e) {
|
|
19743
|
-
|
|
19744
|
-
|
|
19777
|
+
_this7.$emit('keyUp', e, _this7.triggerQuery);
|
|
19778
|
+
_this7.$emit('key-up', e, _this7.triggerQuery);
|
|
19745
19779
|
},
|
|
19746
19780
|
onClick: function onClick() {
|
|
19747
19781
|
setHighlightedIndex(null);
|
|
19748
19782
|
}
|
|
19749
19783
|
})),
|
|
19750
19784
|
"domProps": _extends({}, getInputProps({
|
|
19751
|
-
value:
|
|
19785
|
+
value: _this7.$data.currentValue === null || typeof _this7.$data.currentValue !== 'string' ? '' : _this7.$data.currentValue
|
|
19752
19786
|
}))
|
|
19753
|
-
}),
|
|
19787
|
+
}), _this7.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this7.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this7.renderTags()]);
|
|
19754
19788
|
}
|
|
19755
19789
|
}
|
|
19756
19790
|
}) : h("div", {
|
|
@@ -19766,22 +19800,22 @@
|
|
|
19766
19800
|
},
|
|
19767
19801
|
"on": _extends({}, {
|
|
19768
19802
|
blur: function blur(e) {
|
|
19769
|
-
|
|
19803
|
+
_this7.$emit('blur', e, _this7.triggerQuery);
|
|
19770
19804
|
},
|
|
19771
19805
|
keypress: function keypress(e) {
|
|
19772
|
-
|
|
19773
|
-
|
|
19806
|
+
_this7.$emit('keyPress', e, _this7.triggerQuery);
|
|
19807
|
+
_this7.$emit('key-press', e, _this7.triggerQuery);
|
|
19774
19808
|
},
|
|
19775
19809
|
input: this.onInputChange,
|
|
19776
19810
|
focus: function focus(e) {
|
|
19777
|
-
|
|
19811
|
+
_this7.$emit('focus', e, _this7.triggerQuery);
|
|
19778
19812
|
},
|
|
19779
19813
|
keydown: function keydown(e) {
|
|
19780
|
-
|
|
19814
|
+
_this7.handleKeyDown(e, null);
|
|
19781
19815
|
},
|
|
19782
19816
|
keyup: function keyup(e) {
|
|
19783
|
-
|
|
19784
|
-
|
|
19817
|
+
_this7.$emit('keyUp', e, _this7.triggerQuery);
|
|
19818
|
+
_this7.$emit('key-up', e, _this7.triggerQuery);
|
|
19785
19819
|
}
|
|
19786
19820
|
}),
|
|
19787
19821
|
"domProps": _extends({}, {
|
|
@@ -20026,7 +20060,8 @@
|
|
|
20026
20060
|
currentValue: '',
|
|
20027
20061
|
selectedTags: [],
|
|
20028
20062
|
isOpen: false,
|
|
20029
|
-
normalizedSuggestions: []
|
|
20063
|
+
normalizedSuggestions: [],
|
|
20064
|
+
isSuggestionSelected: false
|
|
20030
20065
|
};
|
|
20031
20066
|
this.internalComponent = props.componentId + "__internal";
|
|
20032
20067
|
return this.__state;
|
|
@@ -20226,7 +20261,9 @@
|
|
|
20226
20261
|
if (this.$options.isTagsMode) {
|
|
20227
20262
|
cause = lib_7.SUGGESTION_SELECT;
|
|
20228
20263
|
}
|
|
20229
|
-
this.
|
|
20264
|
+
if (!this.isSuggestionSelected) {
|
|
20265
|
+
this.setValue(newVal || '', true, this.$props, cause);
|
|
20266
|
+
}
|
|
20230
20267
|
}
|
|
20231
20268
|
},
|
|
20232
20269
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -20355,10 +20392,11 @@
|
|
|
20355
20392
|
categoryValue = undefined;
|
|
20356
20393
|
}
|
|
20357
20394
|
var performUpdate = function performUpdate() {
|
|
20395
|
+
var isTagAdded = false;
|
|
20358
20396
|
if (_this.$options.isTagsMode && isEqual$5(value, _this.selectedTags)) {
|
|
20359
20397
|
return;
|
|
20360
20398
|
}
|
|
20361
|
-
if (_this.$options.isTagsMode
|
|
20399
|
+
if (_this.$options.isTagsMode) {
|
|
20362
20400
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
20363
20401
|
// check if value already present in selectedTags
|
|
20364
20402
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -20367,14 +20405,36 @@
|
|
|
20367
20405
|
}
|
|
20368
20406
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
20369
20407
|
if (typeof value === 'string' && !!value) {
|
|
20370
|
-
|
|
20408
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
20409
|
+
_this.selectedTags.push(value);
|
|
20410
|
+
isTagAdded = true;
|
|
20411
|
+
} else if (!props.strictSelection) {
|
|
20412
|
+
_this.selectedTags.push(value);
|
|
20413
|
+
isTagAdded = true;
|
|
20414
|
+
}
|
|
20371
20415
|
} else if (Array.isArray(value) && !isEqual$5(_this.selectedTags, value)) {
|
|
20372
|
-
|
|
20416
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
20417
|
+
_this.selectedTags = value;
|
|
20418
|
+
isTagAdded = true;
|
|
20419
|
+
} else if (!props.strictSelection) {
|
|
20420
|
+
_this.selectedTags.push(value);
|
|
20421
|
+
isTagAdded = true;
|
|
20422
|
+
}
|
|
20373
20423
|
}
|
|
20374
20424
|
} else if (value) {
|
|
20375
|
-
|
|
20425
|
+
if (props.strictSelection && cause === lib_7.SUGGESTION_SELECT) {
|
|
20426
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
20427
|
+
isTagAdded = true;
|
|
20428
|
+
} else if (!props.strictSelection) {
|
|
20429
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
20430
|
+
isTagAdded = true;
|
|
20431
|
+
}
|
|
20432
|
+
}
|
|
20433
|
+
if (props.strictSelection && !isTagAdded) {
|
|
20434
|
+
_this.currentValue = value;
|
|
20435
|
+
} else {
|
|
20436
|
+
_this.currentValue = '';
|
|
20376
20437
|
}
|
|
20377
|
-
_this.currentValue = '';
|
|
20378
20438
|
} else {
|
|
20379
20439
|
_this.currentValue = decodeHtml(value);
|
|
20380
20440
|
}
|
|
@@ -20387,16 +20447,22 @@
|
|
|
20387
20447
|
if (toggleIsOpen) {
|
|
20388
20448
|
_this.isOpen = false;
|
|
20389
20449
|
}
|
|
20390
|
-
if (typeof _this.currentValue === 'string')
|
|
20450
|
+
if (typeof _this.currentValue === 'string') {
|
|
20451
|
+
if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
|
|
20452
|
+
_this.triggerDefaultQuery(_this.currentValue);
|
|
20453
|
+
} else if (!_this.$options.isTagsMode) {
|
|
20454
|
+
_this.triggerDefaultQuery(_this.currentValue);
|
|
20455
|
+
}
|
|
20456
|
+
}
|
|
20391
20457
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
20392
20458
|
// to set the query otherwise the value should reset
|
|
20393
|
-
if (props.strictSelection) {
|
|
20459
|
+
if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
|
|
20394
20460
|
if (cause === lib_7.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
|
|
20395
20461
|
_this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
|
|
20396
|
-
} else {
|
|
20462
|
+
} else if (!props.strictSelection) {
|
|
20397
20463
|
_this.setValue('', true);
|
|
20398
20464
|
}
|
|
20399
|
-
} else if (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE) {
|
|
20465
|
+
} else if (!_this.$options.isTagsMode && (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE)) {
|
|
20400
20466
|
_this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
|
|
20401
20467
|
}
|
|
20402
20468
|
} else {
|
|
@@ -20515,6 +20581,7 @@
|
|
|
20515
20581
|
this.onValueSelectedHandler('', lib_7.CLEAR_VALUE);
|
|
20516
20582
|
},
|
|
20517
20583
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
20584
|
+
var _this2 = this;
|
|
20518
20585
|
if (highlightedIndex === void 0) {
|
|
20519
20586
|
highlightedIndex = null;
|
|
20520
20587
|
}
|
|
@@ -20523,7 +20590,11 @@
|
|
|
20523
20590
|
if (this.$props.autosuggest === false) {
|
|
20524
20591
|
this.enterButtonOnClick();
|
|
20525
20592
|
} else if (highlightedIndex === null) {
|
|
20526
|
-
this.
|
|
20593
|
+
this.isSuggestionSelected = true;
|
|
20594
|
+
setTimeout(function () {
|
|
20595
|
+
_this2.isSuggestionSelected = false;
|
|
20596
|
+
}, 50);
|
|
20597
|
+
this.setValue(event.target.value, true, this.$props, undefined // to handle tags
|
|
20527
20598
|
);
|
|
20528
20599
|
|
|
20529
20600
|
this.onValueSelectedHandler(event.target.value, lib_7.ENTER_PRESS);
|
|
@@ -20535,7 +20606,7 @@
|
|
|
20535
20606
|
this.$emit('key-down', event, this.triggerQuery);
|
|
20536
20607
|
},
|
|
20537
20608
|
onInputChange: function onInputChange(e) {
|
|
20538
|
-
var
|
|
20609
|
+
var _this3 = this;
|
|
20539
20610
|
var inputValue = e.target.value;
|
|
20540
20611
|
if (!this.$data.isOpen && this.$props.autosuggest) {
|
|
20541
20612
|
this.isOpen = true;
|
|
@@ -20546,7 +20617,7 @@
|
|
|
20546
20617
|
} else {
|
|
20547
20618
|
this.$emit('change', inputValue, function (_ref3) {
|
|
20548
20619
|
var isOpen = _ref3.isOpen;
|
|
20549
|
-
return
|
|
20620
|
+
return _this3.triggerQuery({
|
|
20550
20621
|
defaultQuery: true,
|
|
20551
20622
|
customQuery: true,
|
|
20552
20623
|
value: inputValue,
|
|
@@ -20556,7 +20627,7 @@
|
|
|
20556
20627
|
}
|
|
20557
20628
|
},
|
|
20558
20629
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
20559
|
-
var
|
|
20630
|
+
var _this4 = this;
|
|
20560
20631
|
this.isOpen = false;
|
|
20561
20632
|
var value = this.$props.value;
|
|
20562
20633
|
// Record analytics for selected suggestions
|
|
@@ -20577,10 +20648,10 @@
|
|
|
20577
20648
|
this.setValue(emitValue, true, this.$props, lib_7.SUGGESTION_SELECT, false, suggestion._category);
|
|
20578
20649
|
this.$emit('change', emitValue, function (_ref4) {
|
|
20579
20650
|
var isOpen = _ref4.isOpen;
|
|
20580
|
-
return
|
|
20651
|
+
return _this4.triggerQuery(_extends({
|
|
20581
20652
|
isOpen: isOpen,
|
|
20582
20653
|
value: emitValue
|
|
20583
|
-
}, !
|
|
20654
|
+
}, !_this4.$options.isTagsMode && {
|
|
20584
20655
|
categoryValue: suggestion._category
|
|
20585
20656
|
}));
|
|
20586
20657
|
});
|
|
@@ -20695,7 +20766,7 @@
|
|
|
20695
20766
|
});
|
|
20696
20767
|
},
|
|
20697
20768
|
renderEnterButtonElement: function renderEnterButtonElement() {
|
|
20698
|
-
var
|
|
20769
|
+
var _this5 = this;
|
|
20699
20770
|
var h = this.$createElement;
|
|
20700
20771
|
var _this$$props4 = this.$props,
|
|
20701
20772
|
enterButton = _this$$props4.enterButton,
|
|
@@ -20704,7 +20775,7 @@
|
|
|
20704
20775
|
if (enterButton) {
|
|
20705
20776
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
20706
20777
|
if (renderEnterButton) {
|
|
20707
|
-
return renderEnterButton(
|
|
20778
|
+
return renderEnterButton(_this5.enterButtonOnClick);
|
|
20708
20779
|
}
|
|
20709
20780
|
return h(Button, {
|
|
20710
20781
|
"class": "enter-btn " + getClassName$4(innerClass, 'enter-button'),
|
|
@@ -20712,7 +20783,7 @@
|
|
|
20712
20783
|
"primary": true
|
|
20713
20784
|
},
|
|
20714
20785
|
"on": {
|
|
20715
|
-
"click":
|
|
20786
|
+
"click": _this5.enterButtonOnClick
|
|
20716
20787
|
}
|
|
20717
20788
|
}, ["Search"]);
|
|
20718
20789
|
};
|
|
@@ -20779,7 +20850,7 @@
|
|
|
20779
20850
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
20780
20851
|
},
|
|
20781
20852
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
20782
|
-
var
|
|
20853
|
+
var _this6 = this;
|
|
20783
20854
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
20784
20855
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
20785
20856
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -20794,7 +20865,7 @@
|
|
|
20794
20865
|
function (event, handler) {
|
|
20795
20866
|
// Prevent the default refresh event under WINDOWS system
|
|
20796
20867
|
event.preventDefault();
|
|
20797
|
-
|
|
20868
|
+
_this6.focusSearchBox(event);
|
|
20798
20869
|
});
|
|
20799
20870
|
|
|
20800
20871
|
// if one of modifier keys are used, they are handled below
|
|
@@ -20804,7 +20875,7 @@
|
|
|
20804
20875
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
20805
20876
|
var element = modifierKeys[index];
|
|
20806
20877
|
if (hotkeys[element]) {
|
|
20807
|
-
|
|
20878
|
+
_this6.focusSearchBox(event);
|
|
20808
20879
|
break;
|
|
20809
20880
|
}
|
|
20810
20881
|
}
|
|
@@ -20817,11 +20888,11 @@
|
|
|
20817
20888
|
this.triggerDefaultQuery(value);
|
|
20818
20889
|
},
|
|
20819
20890
|
renderAutoFill: function renderAutoFill(suggestion) {
|
|
20820
|
-
var
|
|
20891
|
+
var _this7 = this;
|
|
20821
20892
|
var h = this.$createElement;
|
|
20822
20893
|
var handleAutoFillClick = function handleAutoFillClick(e) {
|
|
20823
20894
|
e.stopPropagation();
|
|
20824
|
-
|
|
20895
|
+
_this7.onAutofillClick(suggestion);
|
|
20825
20896
|
};
|
|
20826
20897
|
/* 👇 avoid showing autofill for category suggestions👇 */
|
|
20827
20898
|
return suggestion._category ? null : h(AutoFillSvg, {
|
|
@@ -20831,7 +20902,7 @@
|
|
|
20831
20902
|
});
|
|
20832
20903
|
},
|
|
20833
20904
|
renderTag: function renderTag(item) {
|
|
20834
|
-
var
|
|
20905
|
+
var _this8 = this;
|
|
20835
20906
|
var h = this.$createElement;
|
|
20836
20907
|
var innerClass = this.$props.innerClass;
|
|
20837
20908
|
return h(TagItem, {
|
|
@@ -20844,7 +20915,7 @@
|
|
|
20844
20915
|
"class": "close-icon",
|
|
20845
20916
|
"on": {
|
|
20846
20917
|
"click": function click() {
|
|
20847
|
-
return
|
|
20918
|
+
return _this8.clearTag(item);
|
|
20848
20919
|
}
|
|
20849
20920
|
}
|
|
20850
20921
|
}, [h(CancelSvg)])]);
|
|
@@ -20866,7 +20937,7 @@
|
|
|
20866
20937
|
}
|
|
20867
20938
|
},
|
|
20868
20939
|
renderTags: function renderTags() {
|
|
20869
|
-
var
|
|
20940
|
+
var _this9 = this;
|
|
20870
20941
|
var h = this.$createElement;
|
|
20871
20942
|
if (!Array.isArray(this.selectedTags)) {
|
|
20872
20943
|
return null;
|
|
@@ -20879,7 +20950,7 @@
|
|
|
20879
20950
|
handleClear: this.clearTag,
|
|
20880
20951
|
handleClearAll: this.clearAllTags
|
|
20881
20952
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
20882
|
-
return
|
|
20953
|
+
return _this9.renderTag(item);
|
|
20883
20954
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
20884
20955
|
"class": getClassName$4(this.$props.innerClass, 'selected-tag') || ''
|
|
20885
20956
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -20895,7 +20966,7 @@
|
|
|
20895
20966
|
}
|
|
20896
20967
|
},
|
|
20897
20968
|
render: function render() {
|
|
20898
|
-
var
|
|
20969
|
+
var _this10 = this;
|
|
20899
20970
|
var h = arguments[0];
|
|
20900
20971
|
var _this$$props6 = this.$props,
|
|
20901
20972
|
theme = _this$$props6.theme,
|
|
@@ -20936,14 +21007,14 @@
|
|
|
20936
21007
|
return null;
|
|
20937
21008
|
}
|
|
20938
21009
|
};
|
|
20939
|
-
return h("div", [
|
|
21010
|
+
return h("div", [_this10.hasCustomRenderer && _this10.getComponent({
|
|
20940
21011
|
isOpen: isOpen,
|
|
20941
21012
|
getItemProps: getItemProps,
|
|
20942
21013
|
getItemEvents: getItemEvents,
|
|
20943
21014
|
highlightedIndex: highlightedIndex
|
|
20944
|
-
}),
|
|
20945
|
-
"class": suggestions$1(
|
|
20946
|
-
}, [
|
|
21015
|
+
}), _this10.renderErrorComponent(), !_this10.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
21016
|
+
"class": suggestions$1(_this10.themePreset, theme) + " " + getClassName$4(_this10.$props.innerClass, 'list')
|
|
21017
|
+
}, [_this10.normalizedSuggestions.map(function (item, index) {
|
|
20947
21018
|
return renderItem ? h("li", {
|
|
20948
21019
|
"domProps": _extends({}, getItemProps({
|
|
20949
21020
|
item: item
|
|
@@ -20953,7 +21024,7 @@
|
|
|
20953
21024
|
})),
|
|
20954
21025
|
"key": index + 1 + "-" + item.value,
|
|
20955
21026
|
"style": {
|
|
20956
|
-
backgroundColor:
|
|
21027
|
+
backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
|
|
20957
21028
|
justifyContent: 'flex-start',
|
|
20958
21029
|
alignItems: 'center'
|
|
20959
21030
|
}
|
|
@@ -20966,7 +21037,7 @@
|
|
|
20966
21037
|
})),
|
|
20967
21038
|
"key": index + 1 + "-" + item.value,
|
|
20968
21039
|
"style": {
|
|
20969
|
-
backgroundColor:
|
|
21040
|
+
backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
|
|
20970
21041
|
justifyContent: 'flex-start',
|
|
20971
21042
|
alignItems: 'center'
|
|
20972
21043
|
}
|
|
@@ -20977,58 +21048,58 @@
|
|
|
20977
21048
|
}
|
|
20978
21049
|
}, [h(CustomSvg, {
|
|
20979
21050
|
"attrs": {
|
|
20980
|
-
"className": getClassName$4(
|
|
21051
|
+
"className": getClassName$4(_this10.$props.innerClass, item._suggestion_type + "-search-icon") || null,
|
|
20981
21052
|
"icon": getIcon(item._suggestion_type),
|
|
20982
21053
|
"type": item._suggestion_type + "-search-icon"
|
|
20983
21054
|
}
|
|
20984
21055
|
})]), h(SuggestionItem, {
|
|
20985
21056
|
"attrs": {
|
|
20986
|
-
"currentValue":
|
|
21057
|
+
"currentValue": _this10.currentValue,
|
|
20987
21058
|
"suggestion": item
|
|
20988
21059
|
}
|
|
20989
|
-
}),
|
|
20990
|
-
})]) :
|
|
21060
|
+
}), _this10.renderAutoFill(item)]);
|
|
21061
|
+
})]) : _this10.renderNoSuggestions(_this10.normalizedSuggestions)]);
|
|
20991
21062
|
};
|
|
20992
21063
|
return h("div", {
|
|
20993
21064
|
"class": suggestionsContainer
|
|
20994
|
-
}, [h(InputGroup, [
|
|
21065
|
+
}, [h(InputGroup, [_this10.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
20995
21066
|
"attrs": {
|
|
20996
|
-
"id":
|
|
20997
|
-
"showIcon":
|
|
20998
|
-
"showClear":
|
|
20999
|
-
"iconPosition":
|
|
21000
|
-
"placeholder":
|
|
21001
|
-
"autoFocus":
|
|
21002
|
-
"themePreset":
|
|
21067
|
+
"id": _this10.$props.componentId + "-input",
|
|
21068
|
+
"showIcon": _this10.$props.showIcon,
|
|
21069
|
+
"showClear": _this10.$props.showClear,
|
|
21070
|
+
"iconPosition": _this10.$props.iconPosition,
|
|
21071
|
+
"placeholder": _this10.$props.placeholder,
|
|
21072
|
+
"autoFocus": _this10.$props.autoFocus,
|
|
21073
|
+
"themePreset": _this10.themePreset,
|
|
21003
21074
|
"autocomplete": "off"
|
|
21004
21075
|
},
|
|
21005
|
-
"ref":
|
|
21006
|
-
"class": getClassName$4(
|
|
21076
|
+
"ref": _this10.$props.innerRef,
|
|
21077
|
+
"class": getClassName$4(_this10.$props.innerClass, 'input'),
|
|
21007
21078
|
"on": _extends({}, getInputEvents({
|
|
21008
|
-
onInput:
|
|
21079
|
+
onInput: _this10.onInputChange,
|
|
21009
21080
|
onBlur: function onBlur(e) {
|
|
21010
|
-
|
|
21081
|
+
_this10.$emit('blur', e, _this10.triggerQuery);
|
|
21011
21082
|
},
|
|
21012
|
-
onFocus:
|
|
21083
|
+
onFocus: _this10.handleFocus,
|
|
21013
21084
|
onKeyPress: function onKeyPress(e) {
|
|
21014
|
-
|
|
21015
|
-
|
|
21085
|
+
_this10.$emit('keyPress', e, _this10.triggerQuery);
|
|
21086
|
+
_this10.$emit('key-press', e, _this10.triggerQuery);
|
|
21016
21087
|
},
|
|
21017
21088
|
onKeyDown: function onKeyDown(e) {
|
|
21018
|
-
return
|
|
21089
|
+
return _this10.handleKeyDown(e, highlightedIndex);
|
|
21019
21090
|
},
|
|
21020
21091
|
onKeyUp: function onKeyUp(e) {
|
|
21021
|
-
|
|
21022
|
-
|
|
21092
|
+
_this10.$emit('keyUp', e, _this10.triggerQuery);
|
|
21093
|
+
_this10.$emit('key-up', e, _this10.triggerQuery);
|
|
21023
21094
|
},
|
|
21024
21095
|
onClick: function onClick() {
|
|
21025
21096
|
setHighlightedIndex(null);
|
|
21026
21097
|
}
|
|
21027
21098
|
})),
|
|
21028
21099
|
"domProps": _extends({}, getInputProps({
|
|
21029
|
-
value:
|
|
21100
|
+
value: _this10.$data.currentValue === null ? '' : _this10.$data.currentValue
|
|
21030
21101
|
}))
|
|
21031
|
-
}),
|
|
21102
|
+
}), _this10.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this10.renderInputAddonAfter(), _this10.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this10.renderTags()]);
|
|
21032
21103
|
}
|
|
21033
21104
|
}
|
|
21034
21105
|
}) : h("div", {
|
|
@@ -21044,20 +21115,20 @@
|
|
|
21044
21115
|
},
|
|
21045
21116
|
"on": _extends({}, {
|
|
21046
21117
|
blur: function blur(e) {
|
|
21047
|
-
|
|
21118
|
+
_this10.$emit('blur', e, _this10.triggerQuery);
|
|
21048
21119
|
},
|
|
21049
21120
|
keypress: function keypress(e) {
|
|
21050
|
-
|
|
21051
|
-
|
|
21121
|
+
_this10.$emit('keyPress', e, _this10.triggerQuery);
|
|
21122
|
+
_this10.$emit('key-press', e, _this10.triggerQuery);
|
|
21052
21123
|
},
|
|
21053
21124
|
input: this.onInputChange,
|
|
21054
21125
|
focus: function focus(e) {
|
|
21055
|
-
|
|
21126
|
+
_this10.$emit('focus', e, _this10.triggerQuery);
|
|
21056
21127
|
},
|
|
21057
21128
|
keydown: this.handleKeyDown,
|
|
21058
21129
|
keyup: function keyup(e) {
|
|
21059
|
-
|
|
21060
|
-
|
|
21130
|
+
_this10.$emit('keyUp', e, _this10.triggerQuery);
|
|
21131
|
+
_this10.$emit('key-up', e, _this10.triggerQuery);
|
|
21061
21132
|
}
|
|
21062
21133
|
}),
|
|
21063
21134
|
"domProps": _extends({}, {
|
|
@@ -34918,7 +34989,7 @@
|
|
|
34918
34989
|
});
|
|
34919
34990
|
}
|
|
34920
34991
|
|
|
34921
|
-
var version = "1.35.
|
|
34992
|
+
var version = "1.35.3";
|
|
34922
34993
|
|
|
34923
34994
|
var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
|
|
34924
34995
|
function install (Vue) {
|