bk-magic-vue 2.3.2-beta.4 → 2.3.2-beta.6
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/bk-magic-vue.css +4 -4
- package/dist/bk-magic-vue.js +1507 -2471
- package/dist/bk-magic-vue.min.css +1 -1
- package/dist/bk-magic-vue.min.css.gz +0 -0
- package/dist/bk-magic-vue.min.css.map +1 -1
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/alert.js +5 -11
- package/lib/animate-number.js +2 -9
- package/lib/badge.js +7 -25
- package/lib/big-tree.js +2549 -2788
- package/lib/breadcrumb-item.js +3 -10
- package/lib/breadcrumb.js +1 -9
- package/lib/button.js +1 -9
- package/lib/card.js +41 -70
- package/lib/cascade.js +442 -698
- package/lib/checkbox-group.js +2 -16
- package/lib/checkbox.js +972 -1179
- package/lib/col.js +9 -17
- package/lib/collapse-item.js +1 -10
- package/lib/collapse.js +1 -9
- package/lib/color-picker.js +38 -96
- package/lib/compose-form-item.js +1 -4
- package/lib/container.js +3 -11
- package/lib/date-picker.js +202 -330
- package/lib/dialog.js +2572 -2782
- package/lib/diff.js +2 -10
- package/lib/directives/clickoutside.js +2 -2
- package/lib/directives/overflow-tips.js +57 -73
- package/lib/directives/tooltips.js +65 -79
- package/lib/directives/transfer-dom.js +1 -4
- package/lib/divider.js +1 -9
- package/lib/dropdown-menu.js +7 -17
- package/lib/exception.js +5 -14
- package/lib/fixed-navbar.js +2 -13
- package/lib/form-item.js +253 -483
- package/lib/form.js +5 -22
- package/lib/icon.js +4 -5
- package/lib/image-viewer.js +22 -35
- package/lib/image.js +45 -72
- package/lib/info-box.js +2701 -2918
- package/lib/input.js +10 -33
- package/lib/link.js +1 -9
- package/lib/loading.js +9 -21
- package/lib/locale/index.js +5 -11
- package/lib/message.js +10 -22
- package/lib/navigation-menu-group.js +0 -4
- package/lib/navigation-menu-item.js +6 -19
- package/lib/navigation-menu.js +1046 -1252
- package/lib/navigation.js +34 -39
- package/lib/notify.js +20 -34
- package/lib/option-group.js +5 -10
- package/lib/option.js +15 -20
- package/lib/pagination.js +6706 -7013
- package/lib/popconfirm.js +66 -83
- package/lib/popover.js +55 -66
- package/lib/process.js +2 -17
- package/lib/progress.js +4 -10
- package/lib/radio-button.js +6 -13
- package/lib/radio-group.js +2 -9
- package/lib/radio.js +6 -13
- package/lib/rate.js +5 -21
- package/lib/resize-layout.js +11 -20
- package/lib/round-progress.js +1 -9
- package/lib/row.js +5 -18
- package/lib/search-select.js +409 -635
- package/lib/select.js +5989 -6261
- package/lib/sideslider.js +1560 -1769
- package/lib/slider.js +78 -127
- package/lib/star.js +3 -11
- package/lib/steps.js +1754 -1961
- package/lib/swiper.js +20 -33
- package/lib/switcher.js +3 -12
- package/lib/tab-panel.js +2 -9
- package/lib/tab.js +2330 -2536
- package/lib/table-column.js +328 -547
- package/lib/table-setting-content.js +321 -558
- package/lib/table.js +566 -917
- package/lib/tag-input.js +397 -649
- package/lib/tag.js +2 -10
- package/lib/time-picker.js +144 -219
- package/lib/timeline.js +23 -35
- package/lib/transfer.js +111 -161
- package/lib/transition.js +1 -9
- package/lib/tree.js +31 -75
- package/lib/ui/bk-magic-vue.css +4 -4
- package/lib/ui/bk-magic-vue.min.css +1 -1
- package/lib/ui/bk-magic-vue.min.css.gz +0 -0
- package/lib/ui/bk-magic-vue.min.css.map +1 -1
- package/lib/ui/button.css +1 -1
- package/lib/ui/button.min.css +1 -1
- package/lib/ui/button.min.css.map +1 -1
- package/lib/ui/dialog.css +2 -2
- package/lib/ui/dialog.min.css +1 -1
- package/lib/ui/dialog.min.css.map +1 -1
- package/lib/ui/info-box.css +2 -2
- package/lib/ui/info-box.min.css +1 -1
- package/lib/ui/info-box.min.css.map +1 -1
- package/lib/ui/popconfirm.css +1 -1
- package/lib/ui/popconfirm.min.css +1 -1
- package/lib/ui/popconfirm.min.css.map +1 -1
- package/lib/upload.js +63 -87
- package/lib/utils/deepmerge.js +5 -11
- package/lib/utils/pinyin.js +5 -11
- package/lib/utils/pop-manager.js +2 -2
- package/lib/utils/tippy.js +48 -49
- package/lib/version-detail.js +5854 -6081
- package/lib/virtual-scroll.js +17 -23
- package/lib/zoom-image.js +3 -11
- package/package.json +1 -1
package/lib/search-select.js
CHANGED
|
@@ -306,6 +306,312 @@
|
|
|
306
306
|
|
|
307
307
|
var values$1 = values;
|
|
308
308
|
|
|
309
|
+
function _regeneratorRuntime() {
|
|
310
|
+
_regeneratorRuntime = function () {
|
|
311
|
+
return exports;
|
|
312
|
+
};
|
|
313
|
+
var exports = {},
|
|
314
|
+
Op = Object.prototype,
|
|
315
|
+
hasOwn = Op.hasOwnProperty,
|
|
316
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
317
|
+
obj[key] = desc.value;
|
|
318
|
+
},
|
|
319
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
320
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
321
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
322
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
323
|
+
function define(obj, key, value) {
|
|
324
|
+
return Object.defineProperty(obj, key, {
|
|
325
|
+
value: value,
|
|
326
|
+
enumerable: !0,
|
|
327
|
+
configurable: !0,
|
|
328
|
+
writable: !0
|
|
329
|
+
}), obj[key];
|
|
330
|
+
}
|
|
331
|
+
try {
|
|
332
|
+
define({}, "");
|
|
333
|
+
} catch (err) {
|
|
334
|
+
define = function (obj, key, value) {
|
|
335
|
+
return obj[key] = value;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
339
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
340
|
+
generator = Object.create(protoGenerator.prototype),
|
|
341
|
+
context = new Context(tryLocsList || []);
|
|
342
|
+
return defineProperty(generator, "_invoke", {
|
|
343
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
344
|
+
}), generator;
|
|
345
|
+
}
|
|
346
|
+
function tryCatch(fn, obj, arg) {
|
|
347
|
+
try {
|
|
348
|
+
return {
|
|
349
|
+
type: "normal",
|
|
350
|
+
arg: fn.call(obj, arg)
|
|
351
|
+
};
|
|
352
|
+
} catch (err) {
|
|
353
|
+
return {
|
|
354
|
+
type: "throw",
|
|
355
|
+
arg: err
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
exports.wrap = wrap;
|
|
360
|
+
var ContinueSentinel = {};
|
|
361
|
+
function Generator() {}
|
|
362
|
+
function GeneratorFunction() {}
|
|
363
|
+
function GeneratorFunctionPrototype() {}
|
|
364
|
+
var IteratorPrototype = {};
|
|
365
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
366
|
+
return this;
|
|
367
|
+
});
|
|
368
|
+
var getProto = Object.getPrototypeOf,
|
|
369
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
370
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
371
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
372
|
+
function defineIteratorMethods(prototype) {
|
|
373
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
374
|
+
define(prototype, method, function (arg) {
|
|
375
|
+
return this._invoke(method, arg);
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
380
|
+
function invoke(method, arg, resolve, reject) {
|
|
381
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
382
|
+
if ("throw" !== record.type) {
|
|
383
|
+
var result = record.arg,
|
|
384
|
+
value = result.value;
|
|
385
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
386
|
+
invoke("next", value, resolve, reject);
|
|
387
|
+
}, function (err) {
|
|
388
|
+
invoke("throw", err, resolve, reject);
|
|
389
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
390
|
+
result.value = unwrapped, resolve(result);
|
|
391
|
+
}, function (error) {
|
|
392
|
+
return invoke("throw", error, resolve, reject);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
reject(record.arg);
|
|
396
|
+
}
|
|
397
|
+
var previousPromise;
|
|
398
|
+
defineProperty(this, "_invoke", {
|
|
399
|
+
value: function (method, arg) {
|
|
400
|
+
function callInvokeWithMethodAndArg() {
|
|
401
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
402
|
+
invoke(method, arg, resolve, reject);
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
410
|
+
var state = "suspendedStart";
|
|
411
|
+
return function (method, arg) {
|
|
412
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
413
|
+
if ("completed" === state) {
|
|
414
|
+
if ("throw" === method) throw arg;
|
|
415
|
+
return doneResult();
|
|
416
|
+
}
|
|
417
|
+
for (context.method = method, context.arg = arg;;) {
|
|
418
|
+
var delegate = context.delegate;
|
|
419
|
+
if (delegate) {
|
|
420
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
421
|
+
if (delegateResult) {
|
|
422
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
423
|
+
return delegateResult;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
427
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
428
|
+
context.dispatchException(context.arg);
|
|
429
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
430
|
+
state = "executing";
|
|
431
|
+
var record = tryCatch(innerFn, self, context);
|
|
432
|
+
if ("normal" === record.type) {
|
|
433
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
434
|
+
return {
|
|
435
|
+
value: record.arg,
|
|
436
|
+
done: context.done
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
444
|
+
var method = delegate.iterator[context.method];
|
|
445
|
+
if (undefined === method) {
|
|
446
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
447
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
448
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
449
|
+
}
|
|
450
|
+
return ContinueSentinel;
|
|
451
|
+
}
|
|
452
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
453
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
454
|
+
var info = record.arg;
|
|
455
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
456
|
+
}
|
|
457
|
+
function pushTryEntry(locs) {
|
|
458
|
+
var entry = {
|
|
459
|
+
tryLoc: locs[0]
|
|
460
|
+
};
|
|
461
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
462
|
+
}
|
|
463
|
+
function resetTryEntry(entry) {
|
|
464
|
+
var record = entry.completion || {};
|
|
465
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
466
|
+
}
|
|
467
|
+
function Context(tryLocsList) {
|
|
468
|
+
this.tryEntries = [{
|
|
469
|
+
tryLoc: "root"
|
|
470
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
471
|
+
}
|
|
472
|
+
function values(iterable) {
|
|
473
|
+
if (iterable) {
|
|
474
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
475
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
476
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
477
|
+
if (!isNaN(iterable.length)) {
|
|
478
|
+
var i = -1,
|
|
479
|
+
next = function next() {
|
|
480
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
481
|
+
return next.value = undefined, next.done = !0, next;
|
|
482
|
+
};
|
|
483
|
+
return next.next = next;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return {
|
|
487
|
+
next: doneResult
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function doneResult() {
|
|
491
|
+
return {
|
|
492
|
+
value: undefined,
|
|
493
|
+
done: !0
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
497
|
+
value: GeneratorFunctionPrototype,
|
|
498
|
+
configurable: !0
|
|
499
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
500
|
+
value: GeneratorFunction,
|
|
501
|
+
configurable: !0
|
|
502
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
503
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
504
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
505
|
+
}, exports.mark = function (genFun) {
|
|
506
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
507
|
+
}, exports.awrap = function (arg) {
|
|
508
|
+
return {
|
|
509
|
+
__await: arg
|
|
510
|
+
};
|
|
511
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
512
|
+
return this;
|
|
513
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
514
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
515
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
516
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
517
|
+
return result.done ? result.value : iter.next();
|
|
518
|
+
});
|
|
519
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
520
|
+
return this;
|
|
521
|
+
}), define(Gp, "toString", function () {
|
|
522
|
+
return "[object Generator]";
|
|
523
|
+
}), exports.keys = function (val) {
|
|
524
|
+
var object = Object(val),
|
|
525
|
+
keys = [];
|
|
526
|
+
for (var key in object) keys.push(key);
|
|
527
|
+
return keys.reverse(), function next() {
|
|
528
|
+
for (; keys.length;) {
|
|
529
|
+
var key = keys.pop();
|
|
530
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
531
|
+
}
|
|
532
|
+
return next.done = !0, next;
|
|
533
|
+
};
|
|
534
|
+
}, exports.values = values, Context.prototype = {
|
|
535
|
+
constructor: Context,
|
|
536
|
+
reset: function (skipTempReset) {
|
|
537
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
538
|
+
},
|
|
539
|
+
stop: function () {
|
|
540
|
+
this.done = !0;
|
|
541
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
542
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
543
|
+
return this.rval;
|
|
544
|
+
},
|
|
545
|
+
dispatchException: function (exception) {
|
|
546
|
+
if (this.done) throw exception;
|
|
547
|
+
var context = this;
|
|
548
|
+
function handle(loc, caught) {
|
|
549
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
550
|
+
}
|
|
551
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
552
|
+
var entry = this.tryEntries[i],
|
|
553
|
+
record = entry.completion;
|
|
554
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
555
|
+
if (entry.tryLoc <= this.prev) {
|
|
556
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
557
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
558
|
+
if (hasCatch && hasFinally) {
|
|
559
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
560
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
561
|
+
} else if (hasCatch) {
|
|
562
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
563
|
+
} else {
|
|
564
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
565
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
abrupt: function (type, arg) {
|
|
571
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
572
|
+
var entry = this.tryEntries[i];
|
|
573
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
574
|
+
var finallyEntry = entry;
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
579
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
580
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
581
|
+
},
|
|
582
|
+
complete: function (record, afterLoc) {
|
|
583
|
+
if ("throw" === record.type) throw record.arg;
|
|
584
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
585
|
+
},
|
|
586
|
+
finish: function (finallyLoc) {
|
|
587
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
588
|
+
var entry = this.tryEntries[i];
|
|
589
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
catch: function (tryLoc) {
|
|
593
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
594
|
+
var entry = this.tryEntries[i];
|
|
595
|
+
if (entry.tryLoc === tryLoc) {
|
|
596
|
+
var record = entry.completion;
|
|
597
|
+
if ("throw" === record.type) {
|
|
598
|
+
var thrown = record.arg;
|
|
599
|
+
resetTryEntry(entry);
|
|
600
|
+
}
|
|
601
|
+
return thrown;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
throw new Error("illegal catch attempt");
|
|
605
|
+
},
|
|
606
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
607
|
+
return this.delegate = {
|
|
608
|
+
iterator: values(iterable),
|
|
609
|
+
resultName: resultName,
|
|
610
|
+
nextLoc: nextLoc
|
|
611
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
612
|
+
}
|
|
613
|
+
}, exports;
|
|
614
|
+
}
|
|
309
615
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
310
616
|
try {
|
|
311
617
|
var info = gen[key](arg);
|
|
@@ -314,40 +620,33 @@
|
|
|
314
620
|
reject(error);
|
|
315
621
|
return;
|
|
316
622
|
}
|
|
317
|
-
|
|
318
623
|
if (info.done) {
|
|
319
624
|
resolve(value);
|
|
320
625
|
} else {
|
|
321
626
|
Promise.resolve(value).then(_next, _throw);
|
|
322
627
|
}
|
|
323
628
|
}
|
|
324
|
-
|
|
325
629
|
function _asyncToGenerator(fn) {
|
|
326
630
|
return function () {
|
|
327
631
|
var self = this,
|
|
328
|
-
|
|
632
|
+
args = arguments;
|
|
329
633
|
return new Promise(function (resolve, reject) {
|
|
330
634
|
var gen = fn.apply(self, args);
|
|
331
|
-
|
|
332
635
|
function _next(value) {
|
|
333
636
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
334
637
|
}
|
|
335
|
-
|
|
336
638
|
function _throw(err) {
|
|
337
639
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
338
640
|
}
|
|
339
|
-
|
|
340
641
|
_next(undefined);
|
|
341
642
|
});
|
|
342
643
|
};
|
|
343
644
|
}
|
|
344
|
-
|
|
345
645
|
function _classCallCheck(instance, Constructor) {
|
|
346
646
|
if (!(instance instanceof Constructor)) {
|
|
347
647
|
throw new TypeError("Cannot call a class as a function");
|
|
348
648
|
}
|
|
349
649
|
}
|
|
350
|
-
|
|
351
650
|
function _defineProperties(target, props) {
|
|
352
651
|
for (var i = 0; i < props.length; i++) {
|
|
353
652
|
var descriptor = props[i];
|
|
@@ -357,13 +656,14 @@
|
|
|
357
656
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
358
657
|
}
|
|
359
658
|
}
|
|
360
|
-
|
|
361
659
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
362
660
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
363
661
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
662
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
663
|
+
writable: false
|
|
664
|
+
});
|
|
364
665
|
return Constructor;
|
|
365
666
|
}
|
|
366
|
-
|
|
367
667
|
function _defineProperty(obj, key, value) {
|
|
368
668
|
if (key in obj) {
|
|
369
669
|
Object.defineProperty(obj, key, {
|
|
@@ -375,59 +675,46 @@
|
|
|
375
675
|
} else {
|
|
376
676
|
obj[key] = value;
|
|
377
677
|
}
|
|
378
|
-
|
|
379
678
|
return obj;
|
|
380
679
|
}
|
|
381
|
-
|
|
382
680
|
function _extends() {
|
|
383
|
-
_extends = Object.assign
|
|
681
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
384
682
|
for (var i = 1; i < arguments.length; i++) {
|
|
385
683
|
var source = arguments[i];
|
|
386
|
-
|
|
387
684
|
for (var key in source) {
|
|
388
685
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
389
686
|
target[key] = source[key];
|
|
390
687
|
}
|
|
391
688
|
}
|
|
392
689
|
}
|
|
393
|
-
|
|
394
690
|
return target;
|
|
395
691
|
};
|
|
396
|
-
|
|
397
692
|
return _extends.apply(this, arguments);
|
|
398
693
|
}
|
|
399
|
-
|
|
400
694
|
function _objectSpread(target) {
|
|
401
695
|
for (var i = 1; i < arguments.length; i++) {
|
|
402
696
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
403
697
|
var ownKeys = Object.keys(source);
|
|
404
|
-
|
|
405
698
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
406
|
-
ownKeys
|
|
699
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
407
700
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
408
701
|
}));
|
|
409
702
|
}
|
|
410
|
-
|
|
411
703
|
ownKeys.forEach(function (key) {
|
|
412
704
|
_defineProperty(target, key, source[key]);
|
|
413
705
|
});
|
|
414
706
|
}
|
|
415
|
-
|
|
416
707
|
return target;
|
|
417
708
|
}
|
|
418
|
-
|
|
419
709
|
function _toConsumableArray(arr) {
|
|
420
710
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
421
711
|
}
|
|
422
|
-
|
|
423
712
|
function _arrayWithoutHoles(arr) {
|
|
424
713
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
425
714
|
}
|
|
426
|
-
|
|
427
715
|
function _iterableToArray(iter) {
|
|
428
716
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
429
717
|
}
|
|
430
|
-
|
|
431
718
|
function _unsupportedIterableToArray(o, minLen) {
|
|
432
719
|
if (!o) return;
|
|
433
720
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -436,15 +723,11 @@
|
|
|
436
723
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
437
724
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
438
725
|
}
|
|
439
|
-
|
|
440
726
|
function _arrayLikeToArray(arr, len) {
|
|
441
727
|
if (len == null || len > arr.length) len = arr.length;
|
|
442
|
-
|
|
443
728
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
444
|
-
|
|
445
729
|
return arr2;
|
|
446
730
|
}
|
|
447
|
-
|
|
448
731
|
function _nonIterableSpread() {
|
|
449
732
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
450
733
|
}
|
|
@@ -1210,505 +1493,6 @@
|
|
|
1210
1493
|
|
|
1211
1494
|
var promise$1 = promise;
|
|
1212
1495
|
|
|
1213
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
1214
|
-
var runtime = (function (exports) {
|
|
1215
|
-
var Op = Object.prototype;
|
|
1216
|
-
var hasOwn = Op.hasOwnProperty;
|
|
1217
|
-
var undefined$1;
|
|
1218
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
1219
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
1220
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
1221
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1222
|
-
function define(obj, key, value) {
|
|
1223
|
-
Object.defineProperty(obj, key, {
|
|
1224
|
-
value: value,
|
|
1225
|
-
enumerable: true,
|
|
1226
|
-
configurable: true,
|
|
1227
|
-
writable: true
|
|
1228
|
-
});
|
|
1229
|
-
return obj[key];
|
|
1230
|
-
}
|
|
1231
|
-
try {
|
|
1232
|
-
define({}, "");
|
|
1233
|
-
} catch (err) {
|
|
1234
|
-
define = function(obj, key, value) {
|
|
1235
|
-
return obj[key] = value;
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
1239
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
1240
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
1241
|
-
var context = new Context(tryLocsList || []);
|
|
1242
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
1243
|
-
return generator;
|
|
1244
|
-
}
|
|
1245
|
-
exports.wrap = wrap;
|
|
1246
|
-
function tryCatch(fn, obj, arg) {
|
|
1247
|
-
try {
|
|
1248
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
1249
|
-
} catch (err) {
|
|
1250
|
-
return { type: "throw", arg: err };
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
1254
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
1255
|
-
var GenStateExecuting = "executing";
|
|
1256
|
-
var GenStateCompleted = "completed";
|
|
1257
|
-
var ContinueSentinel = {};
|
|
1258
|
-
function Generator() {}
|
|
1259
|
-
function GeneratorFunction() {}
|
|
1260
|
-
function GeneratorFunctionPrototype() {}
|
|
1261
|
-
var IteratorPrototype = {};
|
|
1262
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
1263
|
-
return this;
|
|
1264
|
-
};
|
|
1265
|
-
var getProto = Object.getPrototypeOf;
|
|
1266
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
1267
|
-
if (NativeIteratorPrototype &&
|
|
1268
|
-
NativeIteratorPrototype !== Op &&
|
|
1269
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
1270
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
1271
|
-
}
|
|
1272
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
1273
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
1274
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
1275
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
1276
|
-
GeneratorFunction.displayName = define(
|
|
1277
|
-
GeneratorFunctionPrototype,
|
|
1278
|
-
toStringTagSymbol,
|
|
1279
|
-
"GeneratorFunction"
|
|
1280
|
-
);
|
|
1281
|
-
function defineIteratorMethods(prototype) {
|
|
1282
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
1283
|
-
define(prototype, method, function(arg) {
|
|
1284
|
-
return this._invoke(method, arg);
|
|
1285
|
-
});
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
1289
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
1290
|
-
return ctor
|
|
1291
|
-
? ctor === GeneratorFunction ||
|
|
1292
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
1293
|
-
: false;
|
|
1294
|
-
};
|
|
1295
|
-
exports.mark = function(genFun) {
|
|
1296
|
-
if (Object.setPrototypeOf) {
|
|
1297
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
1298
|
-
} else {
|
|
1299
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
1300
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
1301
|
-
}
|
|
1302
|
-
genFun.prototype = Object.create(Gp);
|
|
1303
|
-
return genFun;
|
|
1304
|
-
};
|
|
1305
|
-
exports.awrap = function(arg) {
|
|
1306
|
-
return { __await: arg };
|
|
1307
|
-
};
|
|
1308
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
1309
|
-
function invoke(method, arg, resolve, reject) {
|
|
1310
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
1311
|
-
if (record.type === "throw") {
|
|
1312
|
-
reject(record.arg);
|
|
1313
|
-
} else {
|
|
1314
|
-
var result = record.arg;
|
|
1315
|
-
var value = result.value;
|
|
1316
|
-
if (value &&
|
|
1317
|
-
typeof value === "object" &&
|
|
1318
|
-
hasOwn.call(value, "__await")) {
|
|
1319
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
1320
|
-
invoke("next", value, resolve, reject);
|
|
1321
|
-
}, function(err) {
|
|
1322
|
-
invoke("throw", err, resolve, reject);
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
1326
|
-
result.value = unwrapped;
|
|
1327
|
-
resolve(result);
|
|
1328
|
-
}, function(error) {
|
|
1329
|
-
return invoke("throw", error, resolve, reject);
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
var previousPromise;
|
|
1334
|
-
function enqueue(method, arg) {
|
|
1335
|
-
function callInvokeWithMethodAndArg() {
|
|
1336
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
1337
|
-
invoke(method, arg, resolve, reject);
|
|
1338
|
-
});
|
|
1339
|
-
}
|
|
1340
|
-
return previousPromise =
|
|
1341
|
-
previousPromise ? previousPromise.then(
|
|
1342
|
-
callInvokeWithMethodAndArg,
|
|
1343
|
-
callInvokeWithMethodAndArg
|
|
1344
|
-
) : callInvokeWithMethodAndArg();
|
|
1345
|
-
}
|
|
1346
|
-
this._invoke = enqueue;
|
|
1347
|
-
}
|
|
1348
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
1349
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
1350
|
-
return this;
|
|
1351
|
-
};
|
|
1352
|
-
exports.AsyncIterator = AsyncIterator;
|
|
1353
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
1354
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
1355
|
-
var iter = new AsyncIterator(
|
|
1356
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
1357
|
-
PromiseImpl
|
|
1358
|
-
);
|
|
1359
|
-
return exports.isGeneratorFunction(outerFn)
|
|
1360
|
-
? iter
|
|
1361
|
-
: iter.next().then(function(result) {
|
|
1362
|
-
return result.done ? result.value : iter.next();
|
|
1363
|
-
});
|
|
1364
|
-
};
|
|
1365
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
1366
|
-
var state = GenStateSuspendedStart;
|
|
1367
|
-
return function invoke(method, arg) {
|
|
1368
|
-
if (state === GenStateExecuting) {
|
|
1369
|
-
throw new Error("Generator is already running");
|
|
1370
|
-
}
|
|
1371
|
-
if (state === GenStateCompleted) {
|
|
1372
|
-
if (method === "throw") {
|
|
1373
|
-
throw arg;
|
|
1374
|
-
}
|
|
1375
|
-
return doneResult();
|
|
1376
|
-
}
|
|
1377
|
-
context.method = method;
|
|
1378
|
-
context.arg = arg;
|
|
1379
|
-
while (true) {
|
|
1380
|
-
var delegate = context.delegate;
|
|
1381
|
-
if (delegate) {
|
|
1382
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
1383
|
-
if (delegateResult) {
|
|
1384
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
1385
|
-
return delegateResult;
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
if (context.method === "next") {
|
|
1389
|
-
context.sent = context._sent = context.arg;
|
|
1390
|
-
} else if (context.method === "throw") {
|
|
1391
|
-
if (state === GenStateSuspendedStart) {
|
|
1392
|
-
state = GenStateCompleted;
|
|
1393
|
-
throw context.arg;
|
|
1394
|
-
}
|
|
1395
|
-
context.dispatchException(context.arg);
|
|
1396
|
-
} else if (context.method === "return") {
|
|
1397
|
-
context.abrupt("return", context.arg);
|
|
1398
|
-
}
|
|
1399
|
-
state = GenStateExecuting;
|
|
1400
|
-
var record = tryCatch(innerFn, self, context);
|
|
1401
|
-
if (record.type === "normal") {
|
|
1402
|
-
state = context.done
|
|
1403
|
-
? GenStateCompleted
|
|
1404
|
-
: GenStateSuspendedYield;
|
|
1405
|
-
if (record.arg === ContinueSentinel) {
|
|
1406
|
-
continue;
|
|
1407
|
-
}
|
|
1408
|
-
return {
|
|
1409
|
-
value: record.arg,
|
|
1410
|
-
done: context.done
|
|
1411
|
-
};
|
|
1412
|
-
} else if (record.type === "throw") {
|
|
1413
|
-
state = GenStateCompleted;
|
|
1414
|
-
context.method = "throw";
|
|
1415
|
-
context.arg = record.arg;
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
}
|
|
1420
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
1421
|
-
var method = delegate.iterator[context.method];
|
|
1422
|
-
if (method === undefined$1) {
|
|
1423
|
-
context.delegate = null;
|
|
1424
|
-
if (context.method === "throw") {
|
|
1425
|
-
if (delegate.iterator["return"]) {
|
|
1426
|
-
context.method = "return";
|
|
1427
|
-
context.arg = undefined$1;
|
|
1428
|
-
maybeInvokeDelegate(delegate, context);
|
|
1429
|
-
if (context.method === "throw") {
|
|
1430
|
-
return ContinueSentinel;
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
context.method = "throw";
|
|
1434
|
-
context.arg = new TypeError(
|
|
1435
|
-
"The iterator does not provide a 'throw' method");
|
|
1436
|
-
}
|
|
1437
|
-
return ContinueSentinel;
|
|
1438
|
-
}
|
|
1439
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
1440
|
-
if (record.type === "throw") {
|
|
1441
|
-
context.method = "throw";
|
|
1442
|
-
context.arg = record.arg;
|
|
1443
|
-
context.delegate = null;
|
|
1444
|
-
return ContinueSentinel;
|
|
1445
|
-
}
|
|
1446
|
-
var info = record.arg;
|
|
1447
|
-
if (! info) {
|
|
1448
|
-
context.method = "throw";
|
|
1449
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
1450
|
-
context.delegate = null;
|
|
1451
|
-
return ContinueSentinel;
|
|
1452
|
-
}
|
|
1453
|
-
if (info.done) {
|
|
1454
|
-
context[delegate.resultName] = info.value;
|
|
1455
|
-
context.next = delegate.nextLoc;
|
|
1456
|
-
if (context.method !== "return") {
|
|
1457
|
-
context.method = "next";
|
|
1458
|
-
context.arg = undefined$1;
|
|
1459
|
-
}
|
|
1460
|
-
} else {
|
|
1461
|
-
return info;
|
|
1462
|
-
}
|
|
1463
|
-
context.delegate = null;
|
|
1464
|
-
return ContinueSentinel;
|
|
1465
|
-
}
|
|
1466
|
-
defineIteratorMethods(Gp);
|
|
1467
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
1468
|
-
Gp[iteratorSymbol] = function() {
|
|
1469
|
-
return this;
|
|
1470
|
-
};
|
|
1471
|
-
Gp.toString = function() {
|
|
1472
|
-
return "[object Generator]";
|
|
1473
|
-
};
|
|
1474
|
-
function pushTryEntry(locs) {
|
|
1475
|
-
var entry = { tryLoc: locs[0] };
|
|
1476
|
-
if (1 in locs) {
|
|
1477
|
-
entry.catchLoc = locs[1];
|
|
1478
|
-
}
|
|
1479
|
-
if (2 in locs) {
|
|
1480
|
-
entry.finallyLoc = locs[2];
|
|
1481
|
-
entry.afterLoc = locs[3];
|
|
1482
|
-
}
|
|
1483
|
-
this.tryEntries.push(entry);
|
|
1484
|
-
}
|
|
1485
|
-
function resetTryEntry(entry) {
|
|
1486
|
-
var record = entry.completion || {};
|
|
1487
|
-
record.type = "normal";
|
|
1488
|
-
delete record.arg;
|
|
1489
|
-
entry.completion = record;
|
|
1490
|
-
}
|
|
1491
|
-
function Context(tryLocsList) {
|
|
1492
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
1493
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
1494
|
-
this.reset(true);
|
|
1495
|
-
}
|
|
1496
|
-
exports.keys = function(object) {
|
|
1497
|
-
var keys = [];
|
|
1498
|
-
for (var key in object) {
|
|
1499
|
-
keys.push(key);
|
|
1500
|
-
}
|
|
1501
|
-
keys.reverse();
|
|
1502
|
-
return function next() {
|
|
1503
|
-
while (keys.length) {
|
|
1504
|
-
var key = keys.pop();
|
|
1505
|
-
if (key in object) {
|
|
1506
|
-
next.value = key;
|
|
1507
|
-
next.done = false;
|
|
1508
|
-
return next;
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
next.done = true;
|
|
1512
|
-
return next;
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
function values(iterable) {
|
|
1516
|
-
if (iterable) {
|
|
1517
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
1518
|
-
if (iteratorMethod) {
|
|
1519
|
-
return iteratorMethod.call(iterable);
|
|
1520
|
-
}
|
|
1521
|
-
if (typeof iterable.next === "function") {
|
|
1522
|
-
return iterable;
|
|
1523
|
-
}
|
|
1524
|
-
if (!isNaN(iterable.length)) {
|
|
1525
|
-
var i = -1, next = function next() {
|
|
1526
|
-
while (++i < iterable.length) {
|
|
1527
|
-
if (hasOwn.call(iterable, i)) {
|
|
1528
|
-
next.value = iterable[i];
|
|
1529
|
-
next.done = false;
|
|
1530
|
-
return next;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
next.value = undefined$1;
|
|
1534
|
-
next.done = true;
|
|
1535
|
-
return next;
|
|
1536
|
-
};
|
|
1537
|
-
return next.next = next;
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
return { next: doneResult };
|
|
1541
|
-
}
|
|
1542
|
-
exports.values = values;
|
|
1543
|
-
function doneResult() {
|
|
1544
|
-
return { value: undefined$1, done: true };
|
|
1545
|
-
}
|
|
1546
|
-
Context.prototype = {
|
|
1547
|
-
constructor: Context,
|
|
1548
|
-
reset: function(skipTempReset) {
|
|
1549
|
-
this.prev = 0;
|
|
1550
|
-
this.next = 0;
|
|
1551
|
-
this.sent = this._sent = undefined$1;
|
|
1552
|
-
this.done = false;
|
|
1553
|
-
this.delegate = null;
|
|
1554
|
-
this.method = "next";
|
|
1555
|
-
this.arg = undefined$1;
|
|
1556
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
1557
|
-
if (!skipTempReset) {
|
|
1558
|
-
for (var name in this) {
|
|
1559
|
-
if (name.charAt(0) === "t" &&
|
|
1560
|
-
hasOwn.call(this, name) &&
|
|
1561
|
-
!isNaN(+name.slice(1))) {
|
|
1562
|
-
this[name] = undefined$1;
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
},
|
|
1567
|
-
stop: function() {
|
|
1568
|
-
this.done = true;
|
|
1569
|
-
var rootEntry = this.tryEntries[0];
|
|
1570
|
-
var rootRecord = rootEntry.completion;
|
|
1571
|
-
if (rootRecord.type === "throw") {
|
|
1572
|
-
throw rootRecord.arg;
|
|
1573
|
-
}
|
|
1574
|
-
return this.rval;
|
|
1575
|
-
},
|
|
1576
|
-
dispatchException: function(exception) {
|
|
1577
|
-
if (this.done) {
|
|
1578
|
-
throw exception;
|
|
1579
|
-
}
|
|
1580
|
-
var context = this;
|
|
1581
|
-
function handle(loc, caught) {
|
|
1582
|
-
record.type = "throw";
|
|
1583
|
-
record.arg = exception;
|
|
1584
|
-
context.next = loc;
|
|
1585
|
-
if (caught) {
|
|
1586
|
-
context.method = "next";
|
|
1587
|
-
context.arg = undefined$1;
|
|
1588
|
-
}
|
|
1589
|
-
return !! caught;
|
|
1590
|
-
}
|
|
1591
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1592
|
-
var entry = this.tryEntries[i];
|
|
1593
|
-
var record = entry.completion;
|
|
1594
|
-
if (entry.tryLoc === "root") {
|
|
1595
|
-
return handle("end");
|
|
1596
|
-
}
|
|
1597
|
-
if (entry.tryLoc <= this.prev) {
|
|
1598
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
1599
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
1600
|
-
if (hasCatch && hasFinally) {
|
|
1601
|
-
if (this.prev < entry.catchLoc) {
|
|
1602
|
-
return handle(entry.catchLoc, true);
|
|
1603
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
1604
|
-
return handle(entry.finallyLoc);
|
|
1605
|
-
}
|
|
1606
|
-
} else if (hasCatch) {
|
|
1607
|
-
if (this.prev < entry.catchLoc) {
|
|
1608
|
-
return handle(entry.catchLoc, true);
|
|
1609
|
-
}
|
|
1610
|
-
} else if (hasFinally) {
|
|
1611
|
-
if (this.prev < entry.finallyLoc) {
|
|
1612
|
-
return handle(entry.finallyLoc);
|
|
1613
|
-
}
|
|
1614
|
-
} else {
|
|
1615
|
-
throw new Error("try statement without catch or finally");
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
},
|
|
1620
|
-
abrupt: function(type, arg) {
|
|
1621
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1622
|
-
var entry = this.tryEntries[i];
|
|
1623
|
-
if (entry.tryLoc <= this.prev &&
|
|
1624
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
1625
|
-
this.prev < entry.finallyLoc) {
|
|
1626
|
-
var finallyEntry = entry;
|
|
1627
|
-
break;
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
if (finallyEntry &&
|
|
1631
|
-
(type === "break" ||
|
|
1632
|
-
type === "continue") &&
|
|
1633
|
-
finallyEntry.tryLoc <= arg &&
|
|
1634
|
-
arg <= finallyEntry.finallyLoc) {
|
|
1635
|
-
finallyEntry = null;
|
|
1636
|
-
}
|
|
1637
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
1638
|
-
record.type = type;
|
|
1639
|
-
record.arg = arg;
|
|
1640
|
-
if (finallyEntry) {
|
|
1641
|
-
this.method = "next";
|
|
1642
|
-
this.next = finallyEntry.finallyLoc;
|
|
1643
|
-
return ContinueSentinel;
|
|
1644
|
-
}
|
|
1645
|
-
return this.complete(record);
|
|
1646
|
-
},
|
|
1647
|
-
complete: function(record, afterLoc) {
|
|
1648
|
-
if (record.type === "throw") {
|
|
1649
|
-
throw record.arg;
|
|
1650
|
-
}
|
|
1651
|
-
if (record.type === "break" ||
|
|
1652
|
-
record.type === "continue") {
|
|
1653
|
-
this.next = record.arg;
|
|
1654
|
-
} else if (record.type === "return") {
|
|
1655
|
-
this.rval = this.arg = record.arg;
|
|
1656
|
-
this.method = "return";
|
|
1657
|
-
this.next = "end";
|
|
1658
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
1659
|
-
this.next = afterLoc;
|
|
1660
|
-
}
|
|
1661
|
-
return ContinueSentinel;
|
|
1662
|
-
},
|
|
1663
|
-
finish: function(finallyLoc) {
|
|
1664
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1665
|
-
var entry = this.tryEntries[i];
|
|
1666
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
1667
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
1668
|
-
resetTryEntry(entry);
|
|
1669
|
-
return ContinueSentinel;
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
},
|
|
1673
|
-
"catch": function(tryLoc) {
|
|
1674
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1675
|
-
var entry = this.tryEntries[i];
|
|
1676
|
-
if (entry.tryLoc === tryLoc) {
|
|
1677
|
-
var record = entry.completion;
|
|
1678
|
-
if (record.type === "throw") {
|
|
1679
|
-
var thrown = record.arg;
|
|
1680
|
-
resetTryEntry(entry);
|
|
1681
|
-
}
|
|
1682
|
-
return thrown;
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
throw new Error("illegal catch attempt");
|
|
1686
|
-
},
|
|
1687
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
1688
|
-
this.delegate = {
|
|
1689
|
-
iterator: values(iterable),
|
|
1690
|
-
resultName: resultName,
|
|
1691
|
-
nextLoc: nextLoc
|
|
1692
|
-
};
|
|
1693
|
-
if (this.method === "next") {
|
|
1694
|
-
this.arg = undefined$1;
|
|
1695
|
-
}
|
|
1696
|
-
return ContinueSentinel;
|
|
1697
|
-
}
|
|
1698
|
-
};
|
|
1699
|
-
return exports;
|
|
1700
|
-
}(
|
|
1701
|
-
module.exports
|
|
1702
|
-
));
|
|
1703
|
-
try {
|
|
1704
|
-
regeneratorRuntime = runtime;
|
|
1705
|
-
} catch (accidentalStrictMode) {
|
|
1706
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
|
|
1710
|
-
var regenerator = runtime_1;
|
|
1711
|
-
|
|
1712
1496
|
var _objectSap = function (KEY, exec) {
|
|
1713
1497
|
var fn = (_core.Object || {})[KEY] || Object[KEY];
|
|
1714
1498
|
var exp = {};
|
|
@@ -1942,9 +1726,9 @@
|
|
|
1942
1726
|
return element.body;
|
|
1943
1727
|
}
|
|
1944
1728
|
var _getStyleComputedProp = getStyleComputedProperty(element),
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1729
|
+
overflow = _getStyleComputedProp.overflow,
|
|
1730
|
+
overflowX = _getStyleComputedProp.overflowX,
|
|
1731
|
+
overflowY = _getStyleComputedProp.overflowY;
|
|
1948
1732
|
if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
|
|
1949
1733
|
return element;
|
|
1950
1734
|
}
|
|
@@ -2208,8 +1992,8 @@
|
|
|
2208
1992
|
var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
|
|
2209
1993
|
if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
|
|
2210
1994
|
var _getWindowSizes = getWindowSizes(popper.ownerDocument),
|
|
2211
|
-
|
|
2212
|
-
|
|
1995
|
+
height = _getWindowSizes.height,
|
|
1996
|
+
width = _getWindowSizes.width;
|
|
2213
1997
|
boundaries.top += offsets.top - offsets.marginTop;
|
|
2214
1998
|
boundaries.bottom = height + offsets.top;
|
|
2215
1999
|
boundaries.left += offsets.left - offsets.marginLeft;
|
|
@@ -2228,7 +2012,7 @@
|
|
|
2228
2012
|
}
|
|
2229
2013
|
function getArea(_ref) {
|
|
2230
2014
|
var width = _ref.width,
|
|
2231
|
-
|
|
2015
|
+
height = _ref.height;
|
|
2232
2016
|
return width * height;
|
|
2233
2017
|
}
|
|
2234
2018
|
function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
|
|
@@ -2266,7 +2050,7 @@
|
|
|
2266
2050
|
});
|
|
2267
2051
|
var filteredAreas = sortedAreas.filter(function (_ref2) {
|
|
2268
2052
|
var width = _ref2.width,
|
|
2269
|
-
|
|
2053
|
+
height = _ref2.height;
|
|
2270
2054
|
return width >= popper.clientWidth && height >= popper.clientHeight;
|
|
2271
2055
|
});
|
|
2272
2056
|
var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
|
|
@@ -2381,7 +2165,7 @@
|
|
|
2381
2165
|
function isModifierEnabled(modifiers, modifierName) {
|
|
2382
2166
|
return modifiers.some(function (_ref3) {
|
|
2383
2167
|
var name = _ref3.name,
|
|
2384
|
-
|
|
2168
|
+
enabled = _ref3.enabled;
|
|
2385
2169
|
return enabled && name === modifierName;
|
|
2386
2170
|
});
|
|
2387
2171
|
}
|
|
@@ -2504,10 +2288,10 @@
|
|
|
2504
2288
|
}
|
|
2505
2289
|
function getRoundedOffsets(data, shouldRound) {
|
|
2506
2290
|
var _data$offsets = data.offsets,
|
|
2507
|
-
|
|
2508
|
-
|
|
2291
|
+
popper = _data$offsets.popper,
|
|
2292
|
+
reference = _data$offsets.reference;
|
|
2509
2293
|
var round = Math.round,
|
|
2510
|
-
|
|
2294
|
+
floor = Math.floor;
|
|
2511
2295
|
var noRound = function noRound(v) {
|
|
2512
2296
|
return v;
|
|
2513
2297
|
};
|
|
@@ -2529,7 +2313,7 @@
|
|
|
2529
2313
|
var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
|
|
2530
2314
|
function computeStyle(data, options) {
|
|
2531
2315
|
var x = options.x,
|
|
2532
|
-
|
|
2316
|
+
y = options.y;
|
|
2533
2317
|
var popper = data.offsets.popper;
|
|
2534
2318
|
var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
|
|
2535
2319
|
return modifier.name === 'applyStyle';
|
|
@@ -2620,8 +2404,8 @@
|
|
|
2620
2404
|
}
|
|
2621
2405
|
var placement = data.placement.split('-')[0];
|
|
2622
2406
|
var _data$offsets2 = data.offsets,
|
|
2623
|
-
|
|
2624
|
-
|
|
2407
|
+
popper = _data$offsets2.popper,
|
|
2408
|
+
reference = _data$offsets2.reference;
|
|
2625
2409
|
var isVertical = ['left', 'right'].indexOf(placement) !== -1;
|
|
2626
2410
|
var len = isVertical ? 'height' : 'width';
|
|
2627
2411
|
var sideCapitalized = isVertical ? 'Top' : 'Left';
|
|
@@ -2728,8 +2512,8 @@
|
|
|
2728
2512
|
}
|
|
2729
2513
|
function keepTogether(data) {
|
|
2730
2514
|
var _data$offsets3 = data.offsets,
|
|
2731
|
-
|
|
2732
|
-
|
|
2515
|
+
popper = _data$offsets3.popper,
|
|
2516
|
+
reference = _data$offsets3.reference;
|
|
2733
2517
|
var placement = data.placement.split('-')[0];
|
|
2734
2518
|
var floor = Math.floor;
|
|
2735
2519
|
var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
|
|
@@ -2823,9 +2607,9 @@
|
|
|
2823
2607
|
function offset(data, _ref5) {
|
|
2824
2608
|
var offset = _ref5.offset;
|
|
2825
2609
|
var placement = data.placement,
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2610
|
+
_data$offsets4 = data.offsets,
|
|
2611
|
+
popper = _data$offsets4.popper,
|
|
2612
|
+
reference = _data$offsets4.reference;
|
|
2829
2613
|
var basePlacement = placement.split('-')[0];
|
|
2830
2614
|
var offsets;
|
|
2831
2615
|
if (isNumeric(+offset)) {
|
|
@@ -2857,8 +2641,8 @@
|
|
|
2857
2641
|
var transformProp = getSupportedPropertyName('transform');
|
|
2858
2642
|
var popperStyles = data.instance.popper.style;
|
|
2859
2643
|
var top = popperStyles.top,
|
|
2860
|
-
|
|
2861
|
-
|
|
2644
|
+
left = popperStyles.left,
|
|
2645
|
+
transform = popperStyles[transformProp];
|
|
2862
2646
|
popperStyles.top = '';
|
|
2863
2647
|
popperStyles.left = '';
|
|
2864
2648
|
popperStyles[transformProp] = '';
|
|
@@ -2899,8 +2683,8 @@
|
|
|
2899
2683
|
var shiftvariation = placement.split('-')[1];
|
|
2900
2684
|
if (shiftvariation) {
|
|
2901
2685
|
var _data$offsets5 = data.offsets,
|
|
2902
|
-
|
|
2903
|
-
|
|
2686
|
+
reference = _data$offsets5.reference,
|
|
2687
|
+
popper = _data$offsets5.popper;
|
|
2904
2688
|
var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
|
|
2905
2689
|
var side = isVertical ? 'left' : 'top';
|
|
2906
2690
|
var measurement = isVertical ? 'width' : 'height';
|
|
@@ -2939,8 +2723,8 @@
|
|
|
2939
2723
|
var placement = data.placement;
|
|
2940
2724
|
var basePlacement = placement.split('-')[0];
|
|
2941
2725
|
var _data$offsets6 = data.offsets,
|
|
2942
|
-
|
|
2943
|
-
|
|
2726
|
+
popper = _data$offsets6.popper,
|
|
2727
|
+
reference = _data$offsets6.reference;
|
|
2944
2728
|
var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
|
|
2945
2729
|
var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
|
|
2946
2730
|
popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
|
|
@@ -3114,7 +2898,7 @@
|
|
|
3114
2898
|
var isIOS = isBrowser$1 && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
|
|
3115
2899
|
var defaultProps = {
|
|
3116
2900
|
a11y: true,
|
|
3117
|
-
allowHTML:
|
|
2901
|
+
allowHTML: false,
|
|
3118
2902
|
animateFill: true,
|
|
3119
2903
|
animation: 'shift-away',
|
|
3120
2904
|
appendTo: function appendTo() {
|
|
@@ -3233,7 +3017,7 @@
|
|
|
3233
3017
|
}
|
|
3234
3018
|
function onWindowBlur() {
|
|
3235
3019
|
var _document = document,
|
|
3236
|
-
|
|
3020
|
+
activeElement = _document.activeElement;
|
|
3237
3021
|
if (activeElement && activeElement.blur && activeElement._tippy) {
|
|
3238
3022
|
activeElement.blur();
|
|
3239
3023
|
}
|
|
@@ -3519,10 +3303,10 @@
|
|
|
3519
3303
|
}
|
|
3520
3304
|
function updatePopperElement(popper, prevProps, nextProps) {
|
|
3521
3305
|
var _getChildren = getChildren(popper),
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3306
|
+
tooltip = _getChildren.tooltip,
|
|
3307
|
+
content = _getChildren.content,
|
|
3308
|
+
backdrop = _getChildren.backdrop,
|
|
3309
|
+
arrow = _getChildren.arrow;
|
|
3526
3310
|
popper.style.zIndex = '' + nextProps.zIndex;
|
|
3527
3311
|
tooltip.setAttribute('data-size', nextProps.size);
|
|
3528
3312
|
tooltip.setAttribute('data-animation', nextProps.animation);
|
|
@@ -3567,8 +3351,8 @@
|
|
|
3567
3351
|
}
|
|
3568
3352
|
function hideAll() {
|
|
3569
3353
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
3570
|
-
|
|
3571
|
-
|
|
3354
|
+
excludedReferenceOrInstance = _ref.exclude,
|
|
3355
|
+
duration = _ref.duration;
|
|
3572
3356
|
arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function (popper) {
|
|
3573
3357
|
var instance = popper._tippy;
|
|
3574
3358
|
if (instance) {
|
|
@@ -3587,9 +3371,9 @@
|
|
|
3587
3371
|
return true;
|
|
3588
3372
|
}
|
|
3589
3373
|
var x = event.clientX,
|
|
3590
|
-
|
|
3374
|
+
y = event.clientY;
|
|
3591
3375
|
var interactiveBorder = props.interactiveBorder,
|
|
3592
|
-
|
|
3376
|
+
distance = props.distance;
|
|
3593
3377
|
var exceedsTop = popperRect.top - y > (popperPlacement === 'top' ? interactiveBorder + distance : interactiveBorder);
|
|
3594
3378
|
var exceedsBottom = y - popperRect.bottom > (popperPlacement === 'bottom' ? interactiveBorder + distance : interactiveBorder);
|
|
3595
3379
|
var exceedsLeft = popperRect.left - x > (popperPlacement === 'left' ? interactiveBorder + distance : interactiveBorder);
|
|
@@ -3783,16 +3567,16 @@
|
|
|
3783
3567
|
function removeTriggersFromReference() {
|
|
3784
3568
|
listeners.forEach(function (_ref) {
|
|
3785
3569
|
var eventType = _ref.eventType,
|
|
3786
|
-
|
|
3787
|
-
|
|
3570
|
+
handler = _ref.handler,
|
|
3571
|
+
options = _ref.options;
|
|
3788
3572
|
getEventListenersTarget().removeEventListener(eventType, handler, options);
|
|
3789
3573
|
});
|
|
3790
3574
|
listeners = [];
|
|
3791
3575
|
}
|
|
3792
3576
|
function positionVirtualReferenceNearCursor(event) {
|
|
3793
3577
|
var _lastMouseMoveEvent = lastMouseMoveEvent = event,
|
|
3794
|
-
|
|
3795
|
-
|
|
3578
|
+
x = _lastMouseMoveEvent.clientX,
|
|
3579
|
+
y = _lastMouseMoveEvent.clientY;
|
|
3796
3580
|
if (!currentComputedPadding) {
|
|
3797
3581
|
return;
|
|
3798
3582
|
}
|
|
@@ -3923,8 +3707,8 @@
|
|
|
3923
3707
|
function createPopperInstance() {
|
|
3924
3708
|
var popperOptions = instance.props.popperOptions;
|
|
3925
3709
|
var _instance$popperChild = instance.popperChildren,
|
|
3926
|
-
|
|
3927
|
-
|
|
3710
|
+
tooltip = _instance$popperChild.tooltip,
|
|
3711
|
+
arrow = _instance$popperChild.arrow;
|
|
3928
3712
|
var preventOverflowModifier = getModifier(popperOptions, 'preventOverflow');
|
|
3929
3713
|
function applyMutations(data) {
|
|
3930
3714
|
if (instance.props.flip && !instance.props.flipOnUpdate) {
|
|
@@ -4251,10 +4035,10 @@
|
|
|
4251
4035
|
}
|
|
4252
4036
|
function group(instances) {
|
|
4253
4037
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4038
|
+
_ref$delay = _ref.delay,
|
|
4039
|
+
delay = _ref$delay === void 0 ? instances[0].props.delay : _ref$delay,
|
|
4040
|
+
_ref$duration = _ref.duration,
|
|
4041
|
+
duration = _ref$duration === void 0 ? 0 : _ref$duration;
|
|
4258
4042
|
var isAnyTippyOpen = false;
|
|
4259
4043
|
instances.forEach(function (instance) {
|
|
4260
4044
|
if (instance._originalProps) {
|
|
@@ -4485,24 +4269,24 @@
|
|
|
4485
4269
|
render: function render(h) {
|
|
4486
4270
|
var _this3 = this;
|
|
4487
4271
|
var list = this.list,
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4272
|
+
condition = this.condition,
|
|
4273
|
+
displayKey = this.displayKey,
|
|
4274
|
+
primaryKey = this.primaryKey,
|
|
4275
|
+
filter = this.filter,
|
|
4276
|
+
multiable = this.multiable,
|
|
4277
|
+
child = this.child,
|
|
4278
|
+
checked = this.checked,
|
|
4279
|
+
remoteLoadingText = this.remoteLoadingText,
|
|
4280
|
+
remoteEmptyText = this.remoteEmptyText,
|
|
4281
|
+
_this$loading = this.loading,
|
|
4282
|
+
loading = _this$loading === void 0 ? false : _this$loading,
|
|
4283
|
+
_this$isCondition = this.isCondition,
|
|
4284
|
+
isCondition = _this$isCondition === void 0 ? false : _this$isCondition,
|
|
4285
|
+
_this$isChildConditio = this.isChildCondition,
|
|
4286
|
+
isChildCondition = _this$isChildConditio === void 0 ? false : _this$isChildConditio,
|
|
4287
|
+
_this$error = this.error,
|
|
4288
|
+
error = _this$error === void 0 ? '' : _this$error,
|
|
4289
|
+
hoverId = this.hoverId;
|
|
4506
4290
|
if (error) {
|
|
4507
4291
|
return h("div", {
|
|
4508
4292
|
"class": {
|
|
@@ -4706,16 +4490,12 @@
|
|
|
4706
4490
|
/* template */
|
|
4707
4491
|
|
|
4708
4492
|
/* style */
|
|
4709
|
-
|
|
4710
4493
|
var __vue_inject_styles__ = undefined;
|
|
4711
4494
|
/* scoped */
|
|
4712
|
-
|
|
4713
4495
|
var __vue_scope_id__ = undefined;
|
|
4714
4496
|
/* module identifier */
|
|
4715
|
-
|
|
4716
4497
|
var __vue_module_identifier__ = undefined;
|
|
4717
4498
|
/* functional template */
|
|
4718
|
-
|
|
4719
4499
|
var __vue_is_functional_template__ = undefined;
|
|
4720
4500
|
/* style inject */
|
|
4721
4501
|
|
|
@@ -4756,8 +4536,8 @@
|
|
|
4756
4536
|
&& el[clickctx].callbackName
|
|
4757
4537
|
&& vnode.context[el[clickctx].callbackName]
|
|
4758
4538
|
) {
|
|
4759
|
-
|
|
4760
|
-
|
|
4539
|
+
vnode.context[el[clickctx].callbackName](mouseup, mousedown, el);
|
|
4540
|
+
} else {
|
|
4761
4541
|
el[clickctx].bindingFn && el[clickctx].bindingFn(mouseup, mousedown, el);
|
|
4762
4542
|
}
|
|
4763
4543
|
};
|
|
@@ -5126,9 +4906,9 @@
|
|
|
5126
4906
|
},
|
|
5127
4907
|
handleSearch: function handleSearch(text) {
|
|
5128
4908
|
var _this4 = this;
|
|
5129
|
-
return _asyncToGenerator(
|
|
4909
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
|
|
5130
4910
|
var include, list, filter;
|
|
5131
|
-
return
|
|
4911
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5132
4912
|
while (1) {
|
|
5133
4913
|
switch (_context.prev = _context.next) {
|
|
5134
4914
|
case 0:
|
|
@@ -5294,9 +5074,9 @@
|
|
|
5294
5074
|
},
|
|
5295
5075
|
updateChildMenu: function updateChildMenu(item, index, isCondition) {
|
|
5296
5076
|
var _this7 = this;
|
|
5297
|
-
return _asyncToGenerator(
|
|
5077
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee2() {
|
|
5298
5078
|
var isChild, isRemote, list;
|
|
5299
|
-
return
|
|
5079
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
5300
5080
|
while (1) {
|
|
5301
5081
|
switch (_context2.prev = _context2.next) {
|
|
5302
5082
|
case 0:
|
|
@@ -5492,8 +5272,8 @@
|
|
|
5492
5272
|
var _this10 = this;
|
|
5493
5273
|
var needShowPopover = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
5494
5274
|
var needEmitKeyEnter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
5495
|
-
return _asyncToGenerator(
|
|
5496
|
-
return
|
|
5275
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee3() {
|
|
5276
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
5497
5277
|
while (1) {
|
|
5498
5278
|
switch (_context3.prev = _context3.next) {
|
|
5499
5279
|
case 0:
|
|
@@ -5541,9 +5321,9 @@
|
|
|
5541
5321
|
},
|
|
5542
5322
|
handleValidate: function handleValidate(valList) {
|
|
5543
5323
|
var _this11 = this;
|
|
5544
|
-
return _asyncToGenerator(
|
|
5324
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee4() {
|
|
5545
5325
|
var validate, selection;
|
|
5546
|
-
return
|
|
5326
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
5547
5327
|
while (1) {
|
|
5548
5328
|
switch (_context4.prev = _context4.next) {
|
|
5549
5329
|
case 0:
|
|
@@ -5587,9 +5367,9 @@
|
|
|
5587
5367
|
var _this12 = this;
|
|
5588
5368
|
var child = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
5589
5369
|
var needShowPopover = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
5590
|
-
return _asyncToGenerator(
|
|
5370
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee5() {
|
|
5591
5371
|
var values, data, validate, _validate;
|
|
5592
|
-
return
|
|
5372
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
5593
5373
|
while (1) {
|
|
5594
5374
|
switch (_context5.prev = _context5.next) {
|
|
5595
5375
|
case 0:
|
|
@@ -5775,14 +5555,10 @@
|
|
|
5775
5555
|
/* script */
|
|
5776
5556
|
var __vue_script__$1 = script$1;
|
|
5777
5557
|
/* template */
|
|
5778
|
-
|
|
5779
5558
|
var __vue_render__ = function __vue_render__() {
|
|
5780
5559
|
var _vm = this;
|
|
5781
|
-
|
|
5782
5560
|
var _h = _vm.$createElement;
|
|
5783
|
-
|
|
5784
5561
|
var _c = _vm._self._c || _h;
|
|
5785
|
-
|
|
5786
5562
|
return _c('div', _vm._b({
|
|
5787
5563
|
staticClass: "search-select-wrap",
|
|
5788
5564
|
class: _vm.extCls,
|
|
@@ -5817,7 +5593,7 @@
|
|
|
5817
5593
|
staticClass: "chip-clear bk-icon icon-close",
|
|
5818
5594
|
on: {
|
|
5819
5595
|
"click": function click($event) {
|
|
5820
|
-
_vm.handleClear(index, item);
|
|
5596
|
+
return _vm.handleClear(index, item);
|
|
5821
5597
|
}
|
|
5822
5598
|
}
|
|
5823
5599
|
})]);
|
|
@@ -5858,43 +5634,41 @@
|
|
|
5858
5634
|
if ($event.target !== $event.currentTarget) {
|
|
5859
5635
|
return null;
|
|
5860
5636
|
}
|
|
5861
|
-
|
|
5862
|
-
return _vm.handleClearAll($event);
|
|
5637
|
+
return _vm.handleClearAll.apply(null, arguments);
|
|
5863
5638
|
}
|
|
5864
5639
|
}
|
|
5865
|
-
}) : _vm._e(), _vm._t("nextfix",
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5640
|
+
}) : _vm._e(), _vm._t("nextfix", function () {
|
|
5641
|
+
return [_c('i', {
|
|
5642
|
+
staticClass: "bk-icon icon-search search-nextfix-icon",
|
|
5643
|
+
class: {
|
|
5644
|
+
'is-focus': _vm.input.focus
|
|
5645
|
+
},
|
|
5646
|
+
on: {
|
|
5647
|
+
"click": function click($event) {
|
|
5648
|
+
if ($event.target !== $event.currentTarget) {
|
|
5649
|
+
return null;
|
|
5650
|
+
}
|
|
5651
|
+
return _vm.handleClickSearch.apply(null, arguments);
|
|
5874
5652
|
}
|
|
5875
|
-
|
|
5876
|
-
return _vm.handleClickSearch($event);
|
|
5877
5653
|
}
|
|
5878
|
-
}
|
|
5879
|
-
})]
|
|
5654
|
+
})];
|
|
5655
|
+
})], 2)]), _vm.validateStr.length ? _c('div', {
|
|
5880
5656
|
staticClass: "bk-select-tips"
|
|
5881
|
-
}, [_vm._t("validate",
|
|
5882
|
-
|
|
5883
|
-
|
|
5657
|
+
}, [_vm._t("validate", function () {
|
|
5658
|
+
return [_c('i', {
|
|
5659
|
+
staticClass: "bk-icon icon-exclamation-circle-shape select-tips"
|
|
5660
|
+
}), _vm._v(_vm._s(_vm.validateStr || '') + "\n ")];
|
|
5661
|
+
})], 2) : _vm._e()]);
|
|
5884
5662
|
};
|
|
5885
|
-
|
|
5886
5663
|
var __vue_staticRenderFns__ = [];
|
|
5887
|
-
/* style */
|
|
5888
5664
|
|
|
5665
|
+
/* style */
|
|
5889
5666
|
var __vue_inject_styles__$1 = undefined;
|
|
5890
5667
|
/* scoped */
|
|
5891
|
-
|
|
5892
5668
|
var __vue_scope_id__$1 = undefined;
|
|
5893
5669
|
/* module identifier */
|
|
5894
|
-
|
|
5895
5670
|
var __vue_module_identifier__$1 = undefined;
|
|
5896
5671
|
/* functional template */
|
|
5897
|
-
|
|
5898
5672
|
var __vue_is_functional_template__$1 = false;
|
|
5899
5673
|
/* style inject */
|
|
5900
5674
|
|