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/form-item.js
CHANGED
|
@@ -1042,173 +1042,115 @@
|
|
|
1042
1042
|
|
|
1043
1043
|
var isArray$1 = isArray;
|
|
1044
1044
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1045
|
+
function _regeneratorRuntime() {
|
|
1046
|
+
_regeneratorRuntime = function () {
|
|
1047
|
+
return exports;
|
|
1048
|
+
};
|
|
1049
|
+
var exports = {},
|
|
1050
|
+
Op = Object.prototype,
|
|
1051
|
+
hasOwn = Op.hasOwnProperty,
|
|
1052
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
1053
|
+
obj[key] = desc.value;
|
|
1054
|
+
},
|
|
1055
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
1056
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
1057
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
1058
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1054
1059
|
function define(obj, key, value) {
|
|
1055
|
-
Object.defineProperty(obj, key, {
|
|
1060
|
+
return Object.defineProperty(obj, key, {
|
|
1056
1061
|
value: value,
|
|
1057
|
-
enumerable:
|
|
1058
|
-
configurable:
|
|
1059
|
-
writable:
|
|
1060
|
-
});
|
|
1061
|
-
return obj[key];
|
|
1062
|
+
enumerable: !0,
|
|
1063
|
+
configurable: !0,
|
|
1064
|
+
writable: !0
|
|
1065
|
+
}), obj[key];
|
|
1062
1066
|
}
|
|
1063
1067
|
try {
|
|
1064
1068
|
define({}, "");
|
|
1065
1069
|
} catch (err) {
|
|
1066
|
-
define = function(obj, key, value) {
|
|
1070
|
+
define = function (obj, key, value) {
|
|
1067
1071
|
return obj[key] = value;
|
|
1068
1072
|
};
|
|
1069
1073
|
}
|
|
1070
1074
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
1071
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1075
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
1076
|
+
generator = Object.create(protoGenerator.prototype),
|
|
1077
|
+
context = new Context(tryLocsList || []);
|
|
1078
|
+
return defineProperty(generator, "_invoke", {
|
|
1079
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
1080
|
+
}), generator;
|
|
1076
1081
|
}
|
|
1077
|
-
exports.wrap = wrap;
|
|
1078
1082
|
function tryCatch(fn, obj, arg) {
|
|
1079
1083
|
try {
|
|
1080
|
-
return {
|
|
1084
|
+
return {
|
|
1085
|
+
type: "normal",
|
|
1086
|
+
arg: fn.call(obj, arg)
|
|
1087
|
+
};
|
|
1081
1088
|
} catch (err) {
|
|
1082
|
-
return {
|
|
1089
|
+
return {
|
|
1090
|
+
type: "throw",
|
|
1091
|
+
arg: err
|
|
1092
|
+
};
|
|
1083
1093
|
}
|
|
1084
1094
|
}
|
|
1085
|
-
|
|
1086
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
1087
|
-
var GenStateExecuting = "executing";
|
|
1088
|
-
var GenStateCompleted = "completed";
|
|
1095
|
+
exports.wrap = wrap;
|
|
1089
1096
|
var ContinueSentinel = {};
|
|
1090
1097
|
function Generator() {}
|
|
1091
1098
|
function GeneratorFunction() {}
|
|
1092
1099
|
function GeneratorFunctionPrototype() {}
|
|
1093
1100
|
var IteratorPrototype = {};
|
|
1094
|
-
IteratorPrototype
|
|
1101
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
1095
1102
|
return this;
|
|
1096
|
-
};
|
|
1097
|
-
var getProto = Object.getPrototypeOf
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
1102
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
1103
|
-
}
|
|
1104
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
1105
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
1106
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
1107
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
1108
|
-
GeneratorFunction.displayName = define(
|
|
1109
|
-
GeneratorFunctionPrototype,
|
|
1110
|
-
toStringTagSymbol,
|
|
1111
|
-
"GeneratorFunction"
|
|
1112
|
-
);
|
|
1103
|
+
});
|
|
1104
|
+
var getProto = Object.getPrototypeOf,
|
|
1105
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
1106
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
1107
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
1113
1108
|
function defineIteratorMethods(prototype) {
|
|
1114
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
1115
|
-
define(prototype, method, function(arg) {
|
|
1109
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
1110
|
+
define(prototype, method, function (arg) {
|
|
1116
1111
|
return this._invoke(method, arg);
|
|
1117
1112
|
});
|
|
1118
1113
|
});
|
|
1119
1114
|
}
|
|
1120
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
1121
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
1122
|
-
return ctor
|
|
1123
|
-
? ctor === GeneratorFunction ||
|
|
1124
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
1125
|
-
: false;
|
|
1126
|
-
};
|
|
1127
|
-
exports.mark = function(genFun) {
|
|
1128
|
-
if (Object.setPrototypeOf) {
|
|
1129
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
1130
|
-
} else {
|
|
1131
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
1132
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
1133
|
-
}
|
|
1134
|
-
genFun.prototype = Object.create(Gp);
|
|
1135
|
-
return genFun;
|
|
1136
|
-
};
|
|
1137
|
-
exports.awrap = function(arg) {
|
|
1138
|
-
return { __await: arg };
|
|
1139
|
-
};
|
|
1140
1115
|
function AsyncIterator(generator, PromiseImpl) {
|
|
1141
1116
|
function invoke(method, arg, resolve, reject) {
|
|
1142
1117
|
var record = tryCatch(generator[method], generator, arg);
|
|
1143
|
-
if (record.type
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
}, function(err) {
|
|
1154
|
-
invoke("throw", err, resolve, reject);
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
1158
|
-
result.value = unwrapped;
|
|
1159
|
-
resolve(result);
|
|
1160
|
-
}, function(error) {
|
|
1118
|
+
if ("throw" !== record.type) {
|
|
1119
|
+
var result = record.arg,
|
|
1120
|
+
value = result.value;
|
|
1121
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
1122
|
+
invoke("next", value, resolve, reject);
|
|
1123
|
+
}, function (err) {
|
|
1124
|
+
invoke("throw", err, resolve, reject);
|
|
1125
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
1126
|
+
result.value = unwrapped, resolve(result);
|
|
1127
|
+
}, function (error) {
|
|
1161
1128
|
return invoke("throw", error, resolve, reject);
|
|
1162
1129
|
});
|
|
1163
1130
|
}
|
|
1131
|
+
reject(record.arg);
|
|
1164
1132
|
}
|
|
1165
1133
|
var previousPromise;
|
|
1166
|
-
|
|
1167
|
-
function
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1134
|
+
defineProperty(this, "_invoke", {
|
|
1135
|
+
value: function (method, arg) {
|
|
1136
|
+
function callInvokeWithMethodAndArg() {
|
|
1137
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
1138
|
+
invoke(method, arg, resolve, reject);
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
1171
1142
|
}
|
|
1172
|
-
|
|
1173
|
-
previousPromise ? previousPromise.then(
|
|
1174
|
-
callInvokeWithMethodAndArg,
|
|
1175
|
-
callInvokeWithMethodAndArg
|
|
1176
|
-
) : callInvokeWithMethodAndArg();
|
|
1177
|
-
}
|
|
1178
|
-
this._invoke = enqueue;
|
|
1143
|
+
});
|
|
1179
1144
|
}
|
|
1180
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
1181
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
1182
|
-
return this;
|
|
1183
|
-
};
|
|
1184
|
-
exports.AsyncIterator = AsyncIterator;
|
|
1185
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
1186
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
1187
|
-
var iter = new AsyncIterator(
|
|
1188
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
1189
|
-
PromiseImpl
|
|
1190
|
-
);
|
|
1191
|
-
return exports.isGeneratorFunction(outerFn)
|
|
1192
|
-
? iter
|
|
1193
|
-
: iter.next().then(function(result) {
|
|
1194
|
-
return result.done ? result.value : iter.next();
|
|
1195
|
-
});
|
|
1196
|
-
};
|
|
1197
1145
|
function makeInvokeMethod(innerFn, self, context) {
|
|
1198
|
-
var state =
|
|
1199
|
-
return function
|
|
1200
|
-
if (
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
if (state === GenStateCompleted) {
|
|
1204
|
-
if (method === "throw") {
|
|
1205
|
-
throw arg;
|
|
1206
|
-
}
|
|
1146
|
+
var state = "suspendedStart";
|
|
1147
|
+
return function (method, arg) {
|
|
1148
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
1149
|
+
if ("completed" === state) {
|
|
1150
|
+
if ("throw" === method) throw arg;
|
|
1207
1151
|
return doneResult();
|
|
1208
1152
|
}
|
|
1209
|
-
context.method = method
|
|
1210
|
-
context.arg = arg;
|
|
1211
|
-
while (true) {
|
|
1153
|
+
for (context.method = method, context.arg = arg;;) {
|
|
1212
1154
|
var delegate = context.delegate;
|
|
1213
1155
|
if (delegate) {
|
|
1214
1156
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
@@ -1217,297 +1159,178 @@
|
|
|
1217
1159
|
return delegateResult;
|
|
1218
1160
|
}
|
|
1219
1161
|
}
|
|
1220
|
-
if (context.method
|
|
1221
|
-
|
|
1222
|
-
} else if (context.method === "throw") {
|
|
1223
|
-
if (state === GenStateSuspendedStart) {
|
|
1224
|
-
state = GenStateCompleted;
|
|
1225
|
-
throw context.arg;
|
|
1226
|
-
}
|
|
1162
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
1163
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
1227
1164
|
context.dispatchException(context.arg);
|
|
1228
|
-
} else
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1231
|
-
state = GenStateExecuting;
|
|
1165
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
1166
|
+
state = "executing";
|
|
1232
1167
|
var record = tryCatch(innerFn, self, context);
|
|
1233
|
-
if (record.type
|
|
1234
|
-
state = context.done
|
|
1235
|
-
? GenStateCompleted
|
|
1236
|
-
: GenStateSuspendedYield;
|
|
1237
|
-
if (record.arg === ContinueSentinel) {
|
|
1238
|
-
continue;
|
|
1239
|
-
}
|
|
1168
|
+
if ("normal" === record.type) {
|
|
1169
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
1240
1170
|
return {
|
|
1241
1171
|
value: record.arg,
|
|
1242
1172
|
done: context.done
|
|
1243
1173
|
};
|
|
1244
|
-
} else if (record.type === "throw") {
|
|
1245
|
-
state = GenStateCompleted;
|
|
1246
|
-
context.method = "throw";
|
|
1247
|
-
context.arg = record.arg;
|
|
1248
1174
|
}
|
|
1175
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
1249
1176
|
}
|
|
1250
1177
|
};
|
|
1251
1178
|
}
|
|
1252
1179
|
function maybeInvokeDelegate(delegate, context) {
|
|
1253
1180
|
var method = delegate.iterator[context.method];
|
|
1254
|
-
if (
|
|
1255
|
-
context.delegate = null
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
context.method = "return";
|
|
1259
|
-
context.arg = undefined$1;
|
|
1260
|
-
maybeInvokeDelegate(delegate, context);
|
|
1261
|
-
if (context.method === "throw") {
|
|
1262
|
-
return ContinueSentinel;
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
context.method = "throw";
|
|
1266
|
-
context.arg = new TypeError(
|
|
1267
|
-
"The iterator does not provide a 'throw' method");
|
|
1181
|
+
if (undefined === method) {
|
|
1182
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
1183
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
1184
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
1268
1185
|
}
|
|
1269
1186
|
return ContinueSentinel;
|
|
1270
1187
|
}
|
|
1271
1188
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
1272
|
-
if (record.type
|
|
1273
|
-
context.method = "throw";
|
|
1274
|
-
context.arg = record.arg;
|
|
1275
|
-
context.delegate = null;
|
|
1276
|
-
return ContinueSentinel;
|
|
1277
|
-
}
|
|
1189
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
1278
1190
|
var info = record.arg;
|
|
1279
|
-
|
|
1280
|
-
context.method = "throw";
|
|
1281
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
1282
|
-
context.delegate = null;
|
|
1283
|
-
return ContinueSentinel;
|
|
1284
|
-
}
|
|
1285
|
-
if (info.done) {
|
|
1286
|
-
context[delegate.resultName] = info.value;
|
|
1287
|
-
context.next = delegate.nextLoc;
|
|
1288
|
-
if (context.method !== "return") {
|
|
1289
|
-
context.method = "next";
|
|
1290
|
-
context.arg = undefined$1;
|
|
1291
|
-
}
|
|
1292
|
-
} else {
|
|
1293
|
-
return info;
|
|
1294
|
-
}
|
|
1295
|
-
context.delegate = null;
|
|
1296
|
-
return ContinueSentinel;
|
|
1191
|
+
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);
|
|
1297
1192
|
}
|
|
1298
|
-
defineIteratorMethods(Gp);
|
|
1299
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
1300
|
-
Gp[iteratorSymbol] = function() {
|
|
1301
|
-
return this;
|
|
1302
|
-
};
|
|
1303
|
-
Gp.toString = function() {
|
|
1304
|
-
return "[object Generator]";
|
|
1305
|
-
};
|
|
1306
1193
|
function pushTryEntry(locs) {
|
|
1307
|
-
var entry = {
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
if (2 in locs) {
|
|
1312
|
-
entry.finallyLoc = locs[2];
|
|
1313
|
-
entry.afterLoc = locs[3];
|
|
1314
|
-
}
|
|
1315
|
-
this.tryEntries.push(entry);
|
|
1194
|
+
var entry = {
|
|
1195
|
+
tryLoc: locs[0]
|
|
1196
|
+
};
|
|
1197
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
1316
1198
|
}
|
|
1317
1199
|
function resetTryEntry(entry) {
|
|
1318
1200
|
var record = entry.completion || {};
|
|
1319
|
-
record.type = "normal";
|
|
1320
|
-
delete record.arg;
|
|
1321
|
-
entry.completion = record;
|
|
1201
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
1322
1202
|
}
|
|
1323
1203
|
function Context(tryLocsList) {
|
|
1324
|
-
this.tryEntries = [{
|
|
1325
|
-
|
|
1326
|
-
this.reset(
|
|
1327
|
-
}
|
|
1328
|
-
exports.keys = function(object) {
|
|
1329
|
-
var keys = [];
|
|
1330
|
-
for (var key in object) {
|
|
1331
|
-
keys.push(key);
|
|
1332
|
-
}
|
|
1333
|
-
keys.reverse();
|
|
1334
|
-
return function next() {
|
|
1335
|
-
while (keys.length) {
|
|
1336
|
-
var key = keys.pop();
|
|
1337
|
-
if (key in object) {
|
|
1338
|
-
next.value = key;
|
|
1339
|
-
next.done = false;
|
|
1340
|
-
return next;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
next.done = true;
|
|
1344
|
-
return next;
|
|
1345
|
-
};
|
|
1346
|
-
};
|
|
1204
|
+
this.tryEntries = [{
|
|
1205
|
+
tryLoc: "root"
|
|
1206
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
1207
|
+
}
|
|
1347
1208
|
function values(iterable) {
|
|
1348
1209
|
if (iterable) {
|
|
1349
1210
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
1350
|
-
if (iteratorMethod)
|
|
1351
|
-
|
|
1352
|
-
}
|
|
1353
|
-
if (typeof iterable.next === "function") {
|
|
1354
|
-
return iterable;
|
|
1355
|
-
}
|
|
1211
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
1212
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
1356
1213
|
if (!isNaN(iterable.length)) {
|
|
1357
|
-
var i = -1,
|
|
1358
|
-
|
|
1359
|
-
if (hasOwn.call(iterable, i))
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
return next;
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
next.value = undefined$1;
|
|
1366
|
-
next.done = true;
|
|
1367
|
-
return next;
|
|
1368
|
-
};
|
|
1214
|
+
var i = -1,
|
|
1215
|
+
next = function next() {
|
|
1216
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
1217
|
+
return next.value = undefined, next.done = !0, next;
|
|
1218
|
+
};
|
|
1369
1219
|
return next.next = next;
|
|
1370
1220
|
}
|
|
1371
1221
|
}
|
|
1372
|
-
return {
|
|
1222
|
+
return {
|
|
1223
|
+
next: doneResult
|
|
1224
|
+
};
|
|
1373
1225
|
}
|
|
1374
|
-
exports.values = values;
|
|
1375
1226
|
function doneResult() {
|
|
1376
|
-
return {
|
|
1227
|
+
return {
|
|
1228
|
+
value: undefined,
|
|
1229
|
+
done: !0
|
|
1230
|
+
};
|
|
1377
1231
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1232
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
1233
|
+
value: GeneratorFunctionPrototype,
|
|
1234
|
+
configurable: !0
|
|
1235
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
1236
|
+
value: GeneratorFunction,
|
|
1237
|
+
configurable: !0
|
|
1238
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
1239
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
1240
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
1241
|
+
}, exports.mark = function (genFun) {
|
|
1242
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
1243
|
+
}, exports.awrap = function (arg) {
|
|
1244
|
+
return {
|
|
1245
|
+
__await: arg
|
|
1246
|
+
};
|
|
1247
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
1248
|
+
return this;
|
|
1249
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
1250
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
1251
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
1252
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
1253
|
+
return result.done ? result.value : iter.next();
|
|
1254
|
+
});
|
|
1255
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
1256
|
+
return this;
|
|
1257
|
+
}), define(Gp, "toString", function () {
|
|
1258
|
+
return "[object Generator]";
|
|
1259
|
+
}), exports.keys = function (val) {
|
|
1260
|
+
var object = Object(val),
|
|
1261
|
+
keys = [];
|
|
1262
|
+
for (var key in object) keys.push(key);
|
|
1263
|
+
return keys.reverse(), function next() {
|
|
1264
|
+
for (; keys.length;) {
|
|
1265
|
+
var key = keys.pop();
|
|
1266
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
1397
1267
|
}
|
|
1268
|
+
return next.done = !0, next;
|
|
1269
|
+
};
|
|
1270
|
+
}, exports.values = values, Context.prototype = {
|
|
1271
|
+
constructor: Context,
|
|
1272
|
+
reset: function (skipTempReset) {
|
|
1273
|
+
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);
|
|
1398
1274
|
},
|
|
1399
|
-
stop: function() {
|
|
1400
|
-
this.done =
|
|
1401
|
-
var
|
|
1402
|
-
|
|
1403
|
-
if (rootRecord.type === "throw") {
|
|
1404
|
-
throw rootRecord.arg;
|
|
1405
|
-
}
|
|
1275
|
+
stop: function () {
|
|
1276
|
+
this.done = !0;
|
|
1277
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
1278
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
1406
1279
|
return this.rval;
|
|
1407
1280
|
},
|
|
1408
|
-
dispatchException: function(exception) {
|
|
1409
|
-
if (this.done)
|
|
1410
|
-
throw exception;
|
|
1411
|
-
}
|
|
1281
|
+
dispatchException: function (exception) {
|
|
1282
|
+
if (this.done) throw exception;
|
|
1412
1283
|
var context = this;
|
|
1413
1284
|
function handle(loc, caught) {
|
|
1414
|
-
record.type = "throw";
|
|
1415
|
-
record.arg = exception;
|
|
1416
|
-
context.next = loc;
|
|
1417
|
-
if (caught) {
|
|
1418
|
-
context.method = "next";
|
|
1419
|
-
context.arg = undefined$1;
|
|
1420
|
-
}
|
|
1421
|
-
return !! caught;
|
|
1285
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
1422
1286
|
}
|
|
1423
1287
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1424
|
-
var entry = this.tryEntries[i]
|
|
1425
|
-
|
|
1426
|
-
if (entry.tryLoc
|
|
1427
|
-
return handle("end");
|
|
1428
|
-
}
|
|
1288
|
+
var entry = this.tryEntries[i],
|
|
1289
|
+
record = entry.completion;
|
|
1290
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
1429
1291
|
if (entry.tryLoc <= this.prev) {
|
|
1430
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
1431
|
-
|
|
1292
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
1293
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
1432
1294
|
if (hasCatch && hasFinally) {
|
|
1433
|
-
if (this.prev < entry.catchLoc)
|
|
1434
|
-
|
|
1435
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
1436
|
-
return handle(entry.finallyLoc);
|
|
1437
|
-
}
|
|
1295
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
1296
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
1438
1297
|
} else if (hasCatch) {
|
|
1439
|
-
if (this.prev < entry.catchLoc)
|
|
1440
|
-
return handle(entry.catchLoc, true);
|
|
1441
|
-
}
|
|
1442
|
-
} else if (hasFinally) {
|
|
1443
|
-
if (this.prev < entry.finallyLoc) {
|
|
1444
|
-
return handle(entry.finallyLoc);
|
|
1445
|
-
}
|
|
1298
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
1446
1299
|
} else {
|
|
1447
|
-
throw new Error("try statement without catch or finally");
|
|
1300
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
1301
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
1448
1302
|
}
|
|
1449
1303
|
}
|
|
1450
1304
|
}
|
|
1451
1305
|
},
|
|
1452
|
-
abrupt: function(type, arg) {
|
|
1306
|
+
abrupt: function (type, arg) {
|
|
1453
1307
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1454
1308
|
var entry = this.tryEntries[i];
|
|
1455
|
-
if (entry.tryLoc <= this.prev &&
|
|
1456
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
1457
|
-
this.prev < entry.finallyLoc) {
|
|
1309
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
1458
1310
|
var finallyEntry = entry;
|
|
1459
1311
|
break;
|
|
1460
1312
|
}
|
|
1461
1313
|
}
|
|
1462
|
-
|
|
1463
|
-
(type === "break" ||
|
|
1464
|
-
type === "continue") &&
|
|
1465
|
-
finallyEntry.tryLoc <= arg &&
|
|
1466
|
-
arg <= finallyEntry.finallyLoc) {
|
|
1467
|
-
finallyEntry = null;
|
|
1468
|
-
}
|
|
1314
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
1469
1315
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
1470
|
-
record.type = type;
|
|
1471
|
-
record.arg = arg;
|
|
1472
|
-
if (finallyEntry) {
|
|
1473
|
-
this.method = "next";
|
|
1474
|
-
this.next = finallyEntry.finallyLoc;
|
|
1475
|
-
return ContinueSentinel;
|
|
1476
|
-
}
|
|
1477
|
-
return this.complete(record);
|
|
1316
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
1478
1317
|
},
|
|
1479
|
-
complete: function(record, afterLoc) {
|
|
1480
|
-
if (record.type
|
|
1481
|
-
|
|
1482
|
-
}
|
|
1483
|
-
if (record.type === "break" ||
|
|
1484
|
-
record.type === "continue") {
|
|
1485
|
-
this.next = record.arg;
|
|
1486
|
-
} else if (record.type === "return") {
|
|
1487
|
-
this.rval = this.arg = record.arg;
|
|
1488
|
-
this.method = "return";
|
|
1489
|
-
this.next = "end";
|
|
1490
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
1491
|
-
this.next = afterLoc;
|
|
1492
|
-
}
|
|
1493
|
-
return ContinueSentinel;
|
|
1318
|
+
complete: function (record, afterLoc) {
|
|
1319
|
+
if ("throw" === record.type) throw record.arg;
|
|
1320
|
+
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;
|
|
1494
1321
|
},
|
|
1495
|
-
finish: function(finallyLoc) {
|
|
1322
|
+
finish: function (finallyLoc) {
|
|
1496
1323
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1497
1324
|
var entry = this.tryEntries[i];
|
|
1498
|
-
if (entry.finallyLoc === finallyLoc)
|
|
1499
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
1500
|
-
resetTryEntry(entry);
|
|
1501
|
-
return ContinueSentinel;
|
|
1502
|
-
}
|
|
1325
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
1503
1326
|
}
|
|
1504
1327
|
},
|
|
1505
|
-
|
|
1328
|
+
catch: function (tryLoc) {
|
|
1506
1329
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1507
1330
|
var entry = this.tryEntries[i];
|
|
1508
1331
|
if (entry.tryLoc === tryLoc) {
|
|
1509
1332
|
var record = entry.completion;
|
|
1510
|
-
if (record.type
|
|
1333
|
+
if ("throw" === record.type) {
|
|
1511
1334
|
var thrown = record.arg;
|
|
1512
1335
|
resetTryEntry(entry);
|
|
1513
1336
|
}
|
|
@@ -1516,47 +1339,24 @@
|
|
|
1516
1339
|
}
|
|
1517
1340
|
throw new Error("illegal catch attempt");
|
|
1518
1341
|
},
|
|
1519
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
1520
|
-
this.delegate = {
|
|
1342
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
1343
|
+
return this.delegate = {
|
|
1521
1344
|
iterator: values(iterable),
|
|
1522
1345
|
resultName: resultName,
|
|
1523
1346
|
nextLoc: nextLoc
|
|
1524
|
-
};
|
|
1525
|
-
if (this.method === "next") {
|
|
1526
|
-
this.arg = undefined$1;
|
|
1527
|
-
}
|
|
1528
|
-
return ContinueSentinel;
|
|
1347
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
1529
1348
|
}
|
|
1530
|
-
};
|
|
1531
|
-
return exports;
|
|
1532
|
-
}(
|
|
1533
|
-
module.exports
|
|
1534
|
-
));
|
|
1535
|
-
try {
|
|
1536
|
-
regeneratorRuntime = runtime;
|
|
1537
|
-
} catch (accidentalStrictMode) {
|
|
1538
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1349
|
+
}, exports;
|
|
1539
1350
|
}
|
|
1540
|
-
});
|
|
1541
|
-
|
|
1542
|
-
var regenerator = runtime_1;
|
|
1543
|
-
|
|
1544
1351
|
function _typeof(obj) {
|
|
1545
1352
|
"@babel/helpers - typeof";
|
|
1546
1353
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}
|
|
1552
|
-
_typeof = function (obj) {
|
|
1553
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
return _typeof(obj);
|
|
1354
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1355
|
+
return typeof obj;
|
|
1356
|
+
} : function (obj) {
|
|
1357
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1358
|
+
}, _typeof(obj);
|
|
1558
1359
|
}
|
|
1559
|
-
|
|
1560
1360
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1561
1361
|
try {
|
|
1562
1362
|
var info = gen[key](arg);
|
|
@@ -1565,40 +1365,33 @@
|
|
|
1565
1365
|
reject(error);
|
|
1566
1366
|
return;
|
|
1567
1367
|
}
|
|
1568
|
-
|
|
1569
1368
|
if (info.done) {
|
|
1570
1369
|
resolve(value);
|
|
1571
1370
|
} else {
|
|
1572
1371
|
Promise.resolve(value).then(_next, _throw);
|
|
1573
1372
|
}
|
|
1574
1373
|
}
|
|
1575
|
-
|
|
1576
1374
|
function _asyncToGenerator(fn) {
|
|
1577
1375
|
return function () {
|
|
1578
1376
|
var self = this,
|
|
1579
|
-
|
|
1377
|
+
args = arguments;
|
|
1580
1378
|
return new Promise(function (resolve, reject) {
|
|
1581
1379
|
var gen = fn.apply(self, args);
|
|
1582
|
-
|
|
1583
1380
|
function _next(value) {
|
|
1584
1381
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1585
1382
|
}
|
|
1586
|
-
|
|
1587
1383
|
function _throw(err) {
|
|
1588
1384
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1589
1385
|
}
|
|
1590
|
-
|
|
1591
1386
|
_next(undefined);
|
|
1592
1387
|
});
|
|
1593
1388
|
};
|
|
1594
1389
|
}
|
|
1595
|
-
|
|
1596
1390
|
function _classCallCheck(instance, Constructor) {
|
|
1597
1391
|
if (!(instance instanceof Constructor)) {
|
|
1598
1392
|
throw new TypeError("Cannot call a class as a function");
|
|
1599
1393
|
}
|
|
1600
1394
|
}
|
|
1601
|
-
|
|
1602
1395
|
function _defineProperties(target, props) {
|
|
1603
1396
|
for (var i = 0; i < props.length; i++) {
|
|
1604
1397
|
var descriptor = props[i];
|
|
@@ -1608,13 +1401,14 @@
|
|
|
1608
1401
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1609
1402
|
}
|
|
1610
1403
|
}
|
|
1611
|
-
|
|
1612
1404
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
1613
1405
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1614
1406
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1407
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
1408
|
+
writable: false
|
|
1409
|
+
});
|
|
1615
1410
|
return Constructor;
|
|
1616
1411
|
}
|
|
1617
|
-
|
|
1618
1412
|
function _defineProperty(obj, key, value) {
|
|
1619
1413
|
if (key in obj) {
|
|
1620
1414
|
Object.defineProperty(obj, key, {
|
|
@@ -1626,47 +1420,37 @@
|
|
|
1626
1420
|
} else {
|
|
1627
1421
|
obj[key] = value;
|
|
1628
1422
|
}
|
|
1629
|
-
|
|
1630
1423
|
return obj;
|
|
1631
1424
|
}
|
|
1632
|
-
|
|
1633
1425
|
function _extends() {
|
|
1634
|
-
_extends = Object.assign
|
|
1426
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1635
1427
|
for (var i = 1; i < arguments.length; i++) {
|
|
1636
1428
|
var source = arguments[i];
|
|
1637
|
-
|
|
1638
1429
|
for (var key in source) {
|
|
1639
1430
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1640
1431
|
target[key] = source[key];
|
|
1641
1432
|
}
|
|
1642
1433
|
}
|
|
1643
1434
|
}
|
|
1644
|
-
|
|
1645
1435
|
return target;
|
|
1646
1436
|
};
|
|
1647
|
-
|
|
1648
1437
|
return _extends.apply(this, arguments);
|
|
1649
1438
|
}
|
|
1650
|
-
|
|
1651
1439
|
function _objectSpread(target) {
|
|
1652
1440
|
for (var i = 1; i < arguments.length; i++) {
|
|
1653
1441
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
1654
1442
|
var ownKeys = Object.keys(source);
|
|
1655
|
-
|
|
1656
1443
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
1657
|
-
ownKeys
|
|
1444
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
1658
1445
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1659
1446
|
}));
|
|
1660
1447
|
}
|
|
1661
|
-
|
|
1662
1448
|
ownKeys.forEach(function (key) {
|
|
1663
1449
|
_defineProperty(target, key, source[key]);
|
|
1664
1450
|
});
|
|
1665
1451
|
}
|
|
1666
|
-
|
|
1667
1452
|
return target;
|
|
1668
1453
|
}
|
|
1669
|
-
|
|
1670
1454
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1671
1455
|
if (!o) return;
|
|
1672
1456
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -1675,25 +1459,18 @@
|
|
|
1675
1459
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1676
1460
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1677
1461
|
}
|
|
1678
|
-
|
|
1679
1462
|
function _arrayLikeToArray(arr, len) {
|
|
1680
1463
|
if (len == null || len > arr.length) len = arr.length;
|
|
1681
|
-
|
|
1682
1464
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1683
|
-
|
|
1684
1465
|
return arr2;
|
|
1685
1466
|
}
|
|
1686
|
-
|
|
1687
1467
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
1688
1468
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1689
|
-
|
|
1690
1469
|
if (!it) {
|
|
1691
1470
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1692
1471
|
if (it) o = it;
|
|
1693
1472
|
var i = 0;
|
|
1694
|
-
|
|
1695
1473
|
var F = function () {};
|
|
1696
|
-
|
|
1697
1474
|
return {
|
|
1698
1475
|
s: F,
|
|
1699
1476
|
n: function () {
|
|
@@ -1711,13 +1488,11 @@
|
|
|
1711
1488
|
f: F
|
|
1712
1489
|
};
|
|
1713
1490
|
}
|
|
1714
|
-
|
|
1715
1491
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1716
1492
|
}
|
|
1717
|
-
|
|
1718
1493
|
var normalCompletion = true,
|
|
1719
|
-
|
|
1720
|
-
|
|
1494
|
+
didErr = false,
|
|
1495
|
+
err;
|
|
1721
1496
|
return {
|
|
1722
1497
|
s: function () {
|
|
1723
1498
|
it = it.call(o);
|
|
@@ -1938,9 +1713,9 @@
|
|
|
1938
1713
|
return element.body;
|
|
1939
1714
|
}
|
|
1940
1715
|
var _getStyleComputedProp = getStyleComputedProperty(element),
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1716
|
+
overflow = _getStyleComputedProp.overflow,
|
|
1717
|
+
overflowX = _getStyleComputedProp.overflowX,
|
|
1718
|
+
overflowY = _getStyleComputedProp.overflowY;
|
|
1944
1719
|
if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
|
|
1945
1720
|
return element;
|
|
1946
1721
|
}
|
|
@@ -2204,8 +1979,8 @@
|
|
|
2204
1979
|
var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);
|
|
2205
1980
|
if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
|
|
2206
1981
|
var _getWindowSizes = getWindowSizes(popper.ownerDocument),
|
|
2207
|
-
|
|
2208
|
-
|
|
1982
|
+
height = _getWindowSizes.height,
|
|
1983
|
+
width = _getWindowSizes.width;
|
|
2209
1984
|
boundaries.top += offsets.top - offsets.marginTop;
|
|
2210
1985
|
boundaries.bottom = height + offsets.top;
|
|
2211
1986
|
boundaries.left += offsets.left - offsets.marginLeft;
|
|
@@ -2224,7 +1999,7 @@
|
|
|
2224
1999
|
}
|
|
2225
2000
|
function getArea(_ref) {
|
|
2226
2001
|
var width = _ref.width,
|
|
2227
|
-
|
|
2002
|
+
height = _ref.height;
|
|
2228
2003
|
return width * height;
|
|
2229
2004
|
}
|
|
2230
2005
|
function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
|
|
@@ -2262,7 +2037,7 @@
|
|
|
2262
2037
|
});
|
|
2263
2038
|
var filteredAreas = sortedAreas.filter(function (_ref2) {
|
|
2264
2039
|
var width = _ref2.width,
|
|
2265
|
-
|
|
2040
|
+
height = _ref2.height;
|
|
2266
2041
|
return width >= popper.clientWidth && height >= popper.clientHeight;
|
|
2267
2042
|
});
|
|
2268
2043
|
var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;
|
|
@@ -2377,7 +2152,7 @@
|
|
|
2377
2152
|
function isModifierEnabled(modifiers, modifierName) {
|
|
2378
2153
|
return modifiers.some(function (_ref3) {
|
|
2379
2154
|
var name = _ref3.name,
|
|
2380
|
-
|
|
2155
|
+
enabled = _ref3.enabled;
|
|
2381
2156
|
return enabled && name === modifierName;
|
|
2382
2157
|
});
|
|
2383
2158
|
}
|
|
@@ -2500,10 +2275,10 @@
|
|
|
2500
2275
|
}
|
|
2501
2276
|
function getRoundedOffsets(data, shouldRound) {
|
|
2502
2277
|
var _data$offsets = data.offsets,
|
|
2503
|
-
|
|
2504
|
-
|
|
2278
|
+
popper = _data$offsets.popper,
|
|
2279
|
+
reference = _data$offsets.reference;
|
|
2505
2280
|
var round = Math.round,
|
|
2506
|
-
|
|
2281
|
+
floor = Math.floor;
|
|
2507
2282
|
var noRound = function noRound(v) {
|
|
2508
2283
|
return v;
|
|
2509
2284
|
};
|
|
@@ -2525,7 +2300,7 @@
|
|
|
2525
2300
|
var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);
|
|
2526
2301
|
function computeStyle(data, options) {
|
|
2527
2302
|
var x = options.x,
|
|
2528
|
-
|
|
2303
|
+
y = options.y;
|
|
2529
2304
|
var popper = data.offsets.popper;
|
|
2530
2305
|
var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
|
|
2531
2306
|
return modifier.name === 'applyStyle';
|
|
@@ -2616,8 +2391,8 @@
|
|
|
2616
2391
|
}
|
|
2617
2392
|
var placement = data.placement.split('-')[0];
|
|
2618
2393
|
var _data$offsets2 = data.offsets,
|
|
2619
|
-
|
|
2620
|
-
|
|
2394
|
+
popper = _data$offsets2.popper,
|
|
2395
|
+
reference = _data$offsets2.reference;
|
|
2621
2396
|
var isVertical = ['left', 'right'].indexOf(placement) !== -1;
|
|
2622
2397
|
var len = isVertical ? 'height' : 'width';
|
|
2623
2398
|
var sideCapitalized = isVertical ? 'Top' : 'Left';
|
|
@@ -2724,8 +2499,8 @@
|
|
|
2724
2499
|
}
|
|
2725
2500
|
function keepTogether(data) {
|
|
2726
2501
|
var _data$offsets3 = data.offsets,
|
|
2727
|
-
|
|
2728
|
-
|
|
2502
|
+
popper = _data$offsets3.popper,
|
|
2503
|
+
reference = _data$offsets3.reference;
|
|
2729
2504
|
var placement = data.placement.split('-')[0];
|
|
2730
2505
|
var floor = Math.floor;
|
|
2731
2506
|
var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
|
|
@@ -2819,9 +2594,9 @@
|
|
|
2819
2594
|
function offset(data, _ref5) {
|
|
2820
2595
|
var offset = _ref5.offset;
|
|
2821
2596
|
var placement = data.placement,
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2597
|
+
_data$offsets4 = data.offsets,
|
|
2598
|
+
popper = _data$offsets4.popper,
|
|
2599
|
+
reference = _data$offsets4.reference;
|
|
2825
2600
|
var basePlacement = placement.split('-')[0];
|
|
2826
2601
|
var offsets;
|
|
2827
2602
|
if (isNumeric(+offset)) {
|
|
@@ -2853,8 +2628,8 @@
|
|
|
2853
2628
|
var transformProp = getSupportedPropertyName('transform');
|
|
2854
2629
|
var popperStyles = data.instance.popper.style;
|
|
2855
2630
|
var top = popperStyles.top,
|
|
2856
|
-
|
|
2857
|
-
|
|
2631
|
+
left = popperStyles.left,
|
|
2632
|
+
transform = popperStyles[transformProp];
|
|
2858
2633
|
popperStyles.top = '';
|
|
2859
2634
|
popperStyles.left = '';
|
|
2860
2635
|
popperStyles[transformProp] = '';
|
|
@@ -2895,8 +2670,8 @@
|
|
|
2895
2670
|
var shiftvariation = placement.split('-')[1];
|
|
2896
2671
|
if (shiftvariation) {
|
|
2897
2672
|
var _data$offsets5 = data.offsets,
|
|
2898
|
-
|
|
2899
|
-
|
|
2673
|
+
reference = _data$offsets5.reference,
|
|
2674
|
+
popper = _data$offsets5.popper;
|
|
2900
2675
|
var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
|
|
2901
2676
|
var side = isVertical ? 'left' : 'top';
|
|
2902
2677
|
var measurement = isVertical ? 'width' : 'height';
|
|
@@ -2935,8 +2710,8 @@
|
|
|
2935
2710
|
var placement = data.placement;
|
|
2936
2711
|
var basePlacement = placement.split('-')[0];
|
|
2937
2712
|
var _data$offsets6 = data.offsets,
|
|
2938
|
-
|
|
2939
|
-
|
|
2713
|
+
popper = _data$offsets6.popper,
|
|
2714
|
+
reference = _data$offsets6.reference;
|
|
2940
2715
|
var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;
|
|
2941
2716
|
var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
|
|
2942
2717
|
popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
|
|
@@ -3110,7 +2885,7 @@
|
|
|
3110
2885
|
var isIOS = isBrowser$1 && /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream;
|
|
3111
2886
|
var defaultProps = {
|
|
3112
2887
|
a11y: true,
|
|
3113
|
-
allowHTML:
|
|
2888
|
+
allowHTML: false,
|
|
3114
2889
|
animateFill: true,
|
|
3115
2890
|
animation: 'shift-away',
|
|
3116
2891
|
appendTo: function appendTo() {
|
|
@@ -3229,7 +3004,7 @@
|
|
|
3229
3004
|
}
|
|
3230
3005
|
function onWindowBlur() {
|
|
3231
3006
|
var _document = document,
|
|
3232
|
-
|
|
3007
|
+
activeElement = _document.activeElement;
|
|
3233
3008
|
if (activeElement && activeElement.blur && activeElement._tippy) {
|
|
3234
3009
|
activeElement.blur();
|
|
3235
3010
|
}
|
|
@@ -3515,10 +3290,10 @@
|
|
|
3515
3290
|
}
|
|
3516
3291
|
function updatePopperElement(popper, prevProps, nextProps) {
|
|
3517
3292
|
var _getChildren = getChildren(popper),
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3293
|
+
tooltip = _getChildren.tooltip,
|
|
3294
|
+
content = _getChildren.content,
|
|
3295
|
+
backdrop = _getChildren.backdrop,
|
|
3296
|
+
arrow = _getChildren.arrow;
|
|
3522
3297
|
popper.style.zIndex = '' + nextProps.zIndex;
|
|
3523
3298
|
tooltip.setAttribute('data-size', nextProps.size);
|
|
3524
3299
|
tooltip.setAttribute('data-animation', nextProps.animation);
|
|
@@ -3563,8 +3338,8 @@
|
|
|
3563
3338
|
}
|
|
3564
3339
|
function hideAll() {
|
|
3565
3340
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
3566
|
-
|
|
3567
|
-
|
|
3341
|
+
excludedReferenceOrInstance = _ref.exclude,
|
|
3342
|
+
duration = _ref.duration;
|
|
3568
3343
|
arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function (popper) {
|
|
3569
3344
|
var instance = popper._tippy;
|
|
3570
3345
|
if (instance) {
|
|
@@ -3583,9 +3358,9 @@
|
|
|
3583
3358
|
return true;
|
|
3584
3359
|
}
|
|
3585
3360
|
var x = event.clientX,
|
|
3586
|
-
|
|
3361
|
+
y = event.clientY;
|
|
3587
3362
|
var interactiveBorder = props.interactiveBorder,
|
|
3588
|
-
|
|
3363
|
+
distance = props.distance;
|
|
3589
3364
|
var exceedsTop = popperRect.top - y > (popperPlacement === 'top' ? interactiveBorder + distance : interactiveBorder);
|
|
3590
3365
|
var exceedsBottom = y - popperRect.bottom > (popperPlacement === 'bottom' ? interactiveBorder + distance : interactiveBorder);
|
|
3591
3366
|
var exceedsLeft = popperRect.left - x > (popperPlacement === 'left' ? interactiveBorder + distance : interactiveBorder);
|
|
@@ -3779,16 +3554,16 @@
|
|
|
3779
3554
|
function removeTriggersFromReference() {
|
|
3780
3555
|
listeners.forEach(function (_ref) {
|
|
3781
3556
|
var eventType = _ref.eventType,
|
|
3782
|
-
|
|
3783
|
-
|
|
3557
|
+
handler = _ref.handler,
|
|
3558
|
+
options = _ref.options;
|
|
3784
3559
|
getEventListenersTarget().removeEventListener(eventType, handler, options);
|
|
3785
3560
|
});
|
|
3786
3561
|
listeners = [];
|
|
3787
3562
|
}
|
|
3788
3563
|
function positionVirtualReferenceNearCursor(event) {
|
|
3789
3564
|
var _lastMouseMoveEvent = lastMouseMoveEvent = event,
|
|
3790
|
-
|
|
3791
|
-
|
|
3565
|
+
x = _lastMouseMoveEvent.clientX,
|
|
3566
|
+
y = _lastMouseMoveEvent.clientY;
|
|
3792
3567
|
if (!currentComputedPadding) {
|
|
3793
3568
|
return;
|
|
3794
3569
|
}
|
|
@@ -3919,8 +3694,8 @@
|
|
|
3919
3694
|
function createPopperInstance() {
|
|
3920
3695
|
var popperOptions = instance.props.popperOptions;
|
|
3921
3696
|
var _instance$popperChild = instance.popperChildren,
|
|
3922
|
-
|
|
3923
|
-
|
|
3697
|
+
tooltip = _instance$popperChild.tooltip,
|
|
3698
|
+
arrow = _instance$popperChild.arrow;
|
|
3924
3699
|
var preventOverflowModifier = getModifier(popperOptions, 'preventOverflow');
|
|
3925
3700
|
function applyMutations(data) {
|
|
3926
3701
|
if (instance.props.flip && !instance.props.flipOnUpdate) {
|
|
@@ -4247,10 +4022,10 @@
|
|
|
4247
4022
|
}
|
|
4248
4023
|
function group(instances) {
|
|
4249
4024
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4025
|
+
_ref$delay = _ref.delay,
|
|
4026
|
+
delay = _ref$delay === void 0 ? instances[0].props.delay : _ref$delay,
|
|
4027
|
+
_ref$duration = _ref.duration,
|
|
4028
|
+
duration = _ref$duration === void 0 ? 0 : _ref$duration;
|
|
4254
4029
|
var isAnyTippyOpen = false;
|
|
4255
4030
|
instances.forEach(function (instance) {
|
|
4256
4031
|
if (instance._originalProps) {
|
|
@@ -4357,14 +4132,18 @@
|
|
|
4357
4132
|
trigger: 'mouseenter focus',
|
|
4358
4133
|
theme: 'dark',
|
|
4359
4134
|
interactive: true,
|
|
4135
|
+
boundary: 'window',
|
|
4360
4136
|
content: '',
|
|
4361
|
-
|
|
4137
|
+
allowHTML: false,
|
|
4362
4138
|
extCls: ''
|
|
4363
4139
|
};
|
|
4364
4140
|
var validPlacements$1 = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];
|
|
4365
4141
|
var createTippy$1 = function createTippy(el, binding) {
|
|
4366
4142
|
var value = binding.value;
|
|
4367
4143
|
var options = _objectSpread({}, defaultOptions);
|
|
4144
|
+
if (value.allowHtml || value.allowHTML) {
|
|
4145
|
+
value.allowHTML = true;
|
|
4146
|
+
}
|
|
4368
4147
|
if (_typeof(value) === 'object') {
|
|
4369
4148
|
_extends(options, value);
|
|
4370
4149
|
} else {
|
|
@@ -4375,23 +4154,21 @@
|
|
|
4375
4154
|
});
|
|
4376
4155
|
options.placement = options.placement || placement || (options.placements || ['top'])[0];
|
|
4377
4156
|
var _binding$modifiers = binding.modifiers,
|
|
4378
|
-
|
|
4379
|
-
|
|
4157
|
+
click = _binding$modifiers.click,
|
|
4158
|
+
light = _binding$modifiers.light;
|
|
4380
4159
|
if (click) {
|
|
4381
4160
|
options.trigger = 'click';
|
|
4382
4161
|
}
|
|
4383
4162
|
if (light) {
|
|
4384
4163
|
options.theme = 'light';
|
|
4385
4164
|
}
|
|
4386
|
-
if (options.
|
|
4165
|
+
if (options.allowHTML) {
|
|
4387
4166
|
var selector = options.content;
|
|
4388
4167
|
if (selector instanceof Vue) {
|
|
4389
4168
|
options.content = selector.$el;
|
|
4390
4169
|
} else if (typeof selector === 'string') {
|
|
4391
|
-
var element = document.
|
|
4392
|
-
|
|
4393
|
-
options.content = element;
|
|
4394
|
-
}
|
|
4170
|
+
var element = document.createElement('div');
|
|
4171
|
+
element.innerHTML = selector;
|
|
4395
4172
|
}
|
|
4396
4173
|
}
|
|
4397
4174
|
if (options.html) {
|
|
@@ -4580,7 +4357,7 @@
|
|
|
4580
4357
|
var paths = this.property.split('.');
|
|
4581
4358
|
var data = formModel;
|
|
4582
4359
|
var _iterator = _createForOfIteratorHelper(paths),
|
|
4583
|
-
|
|
4360
|
+
_step;
|
|
4584
4361
|
try {
|
|
4585
4362
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
4586
4363
|
var path = _step.value;
|
|
@@ -4638,9 +4415,9 @@
|
|
|
4638
4415
|
this.validator.content = '';
|
|
4639
4416
|
},
|
|
4640
4417
|
checkRule: function checkRule(rule, model) {
|
|
4641
|
-
return _asyncToGenerator(
|
|
4418
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
|
|
4642
4419
|
var result;
|
|
4643
|
-
return
|
|
4420
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4644
4421
|
while (1) {
|
|
4645
4422
|
switch (_context.prev = _context.next) {
|
|
4646
4423
|
case 0:
|
|
@@ -4729,9 +4506,9 @@
|
|
|
4729
4506
|
rules.forEach(function (rule) {
|
|
4730
4507
|
promises.push(function () {
|
|
4731
4508
|
return new promise$1( function () {
|
|
4732
|
-
var _ref = _asyncToGenerator(
|
|
4509
|
+
var _ref = _asyncToGenerator( _regeneratorRuntime().mark(function _callee2(resolve, reject) {
|
|
4733
4510
|
var curRule, result;
|
|
4734
|
-
return
|
|
4511
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
4735
4512
|
while (1) {
|
|
4736
4513
|
switch (_context2.prev = _context2.next) {
|
|
4737
4514
|
case 0:
|
|
@@ -4843,15 +4620,12 @@
|
|
|
4843
4620
|
|
|
4844
4621
|
/* script */
|
|
4845
4622
|
var __vue_script__ = script;
|
|
4846
|
-
/* template */
|
|
4847
4623
|
|
|
4624
|
+
/* template */
|
|
4848
4625
|
var __vue_render__ = function __vue_render__() {
|
|
4849
4626
|
var _vm = this;
|
|
4850
|
-
|
|
4851
4627
|
var _h = _vm.$createElement;
|
|
4852
|
-
|
|
4853
4628
|
var _c = _vm._self._c || _h;
|
|
4854
|
-
|
|
4855
4629
|
return _c('div', {
|
|
4856
4630
|
class: ['bk-form-item', {
|
|
4857
4631
|
'is-required': _vm.required,
|
|
@@ -4925,19 +4699,15 @@
|
|
|
4925
4699
|
staticClass: "form-error-tip"
|
|
4926
4700
|
}, [_vm._v(_vm._s(_vm.validator.content))])] : _vm._e(), _vm._t("tip")], 2)]);
|
|
4927
4701
|
};
|
|
4928
|
-
|
|
4929
4702
|
var __vue_staticRenderFns__ = [];
|
|
4930
|
-
/* style */
|
|
4931
4703
|
|
|
4704
|
+
/* style */
|
|
4932
4705
|
var __vue_inject_styles__ = undefined;
|
|
4933
4706
|
/* scoped */
|
|
4934
|
-
|
|
4935
4707
|
var __vue_scope_id__ = undefined;
|
|
4936
4708
|
/* module identifier */
|
|
4937
|
-
|
|
4938
4709
|
var __vue_module_identifier__ = undefined;
|
|
4939
4710
|
/* functional template */
|
|
4940
|
-
|
|
4941
4711
|
var __vue_is_functional_template__ = false;
|
|
4942
4712
|
/* style inject */
|
|
4943
4713
|
|