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/table-column.js
CHANGED
|
@@ -4,22 +4,321 @@
|
|
|
4
4
|
(global = global || self, factory(global.library = {}));
|
|
5
5
|
}(this, function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
function _regeneratorRuntime() {
|
|
8
|
+
_regeneratorRuntime = function () {
|
|
9
|
+
return exports;
|
|
10
|
+
};
|
|
11
|
+
var exports = {},
|
|
12
|
+
Op = Object.prototype,
|
|
13
|
+
hasOwn = Op.hasOwnProperty,
|
|
14
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
15
|
+
obj[key] = desc.value;
|
|
16
|
+
},
|
|
17
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
18
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
19
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
20
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
21
|
+
function define(obj, key, value) {
|
|
22
|
+
return Object.defineProperty(obj, key, {
|
|
23
|
+
value: value,
|
|
24
|
+
enumerable: !0,
|
|
25
|
+
configurable: !0,
|
|
26
|
+
writable: !0
|
|
27
|
+
}), obj[key];
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
define({}, "");
|
|
31
|
+
} catch (err) {
|
|
32
|
+
define = function (obj, key, value) {
|
|
33
|
+
return obj[key] = value;
|
|
13
34
|
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
35
|
+
}
|
|
36
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
37
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
38
|
+
generator = Object.create(protoGenerator.prototype),
|
|
39
|
+
context = new Context(tryLocsList || []);
|
|
40
|
+
return defineProperty(generator, "_invoke", {
|
|
41
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
42
|
+
}), generator;
|
|
43
|
+
}
|
|
44
|
+
function tryCatch(fn, obj, arg) {
|
|
45
|
+
try {
|
|
46
|
+
return {
|
|
47
|
+
type: "normal",
|
|
48
|
+
arg: fn.call(obj, arg)
|
|
49
|
+
};
|
|
50
|
+
} catch (err) {
|
|
51
|
+
return {
|
|
52
|
+
type: "throw",
|
|
53
|
+
arg: err
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.wrap = wrap;
|
|
58
|
+
var ContinueSentinel = {};
|
|
59
|
+
function Generator() {}
|
|
60
|
+
function GeneratorFunction() {}
|
|
61
|
+
function GeneratorFunctionPrototype() {}
|
|
62
|
+
var IteratorPrototype = {};
|
|
63
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
64
|
+
return this;
|
|
65
|
+
});
|
|
66
|
+
var getProto = Object.getPrototypeOf,
|
|
67
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
68
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
69
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
70
|
+
function defineIteratorMethods(prototype) {
|
|
71
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
72
|
+
define(prototype, method, function (arg) {
|
|
73
|
+
return this._invoke(method, arg);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
78
|
+
function invoke(method, arg, resolve, reject) {
|
|
79
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
80
|
+
if ("throw" !== record.type) {
|
|
81
|
+
var result = record.arg,
|
|
82
|
+
value = result.value;
|
|
83
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
84
|
+
invoke("next", value, resolve, reject);
|
|
85
|
+
}, function (err) {
|
|
86
|
+
invoke("throw", err, resolve, reject);
|
|
87
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
88
|
+
result.value = unwrapped, resolve(result);
|
|
89
|
+
}, function (error) {
|
|
90
|
+
return invoke("throw", error, resolve, reject);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
reject(record.arg);
|
|
94
|
+
}
|
|
95
|
+
var previousPromise;
|
|
96
|
+
defineProperty(this, "_invoke", {
|
|
97
|
+
value: function (method, arg) {
|
|
98
|
+
function callInvokeWithMethodAndArg() {
|
|
99
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
100
|
+
invoke(method, arg, resolve, reject);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
108
|
+
var state = "suspendedStart";
|
|
109
|
+
return function (method, arg) {
|
|
110
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
111
|
+
if ("completed" === state) {
|
|
112
|
+
if ("throw" === method) throw arg;
|
|
113
|
+
return doneResult();
|
|
114
|
+
}
|
|
115
|
+
for (context.method = method, context.arg = arg;;) {
|
|
116
|
+
var delegate = context.delegate;
|
|
117
|
+
if (delegate) {
|
|
118
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
119
|
+
if (delegateResult) {
|
|
120
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
121
|
+
return delegateResult;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
125
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
126
|
+
context.dispatchException(context.arg);
|
|
127
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
128
|
+
state = "executing";
|
|
129
|
+
var record = tryCatch(innerFn, self, context);
|
|
130
|
+
if ("normal" === record.type) {
|
|
131
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
132
|
+
return {
|
|
133
|
+
value: record.arg,
|
|
134
|
+
done: context.done
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
138
|
+
}
|
|
17
139
|
};
|
|
18
140
|
}
|
|
19
|
-
|
|
20
|
-
|
|
141
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
142
|
+
var method = delegate.iterator[context.method];
|
|
143
|
+
if (undefined === method) {
|
|
144
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
145
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
146
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
147
|
+
}
|
|
148
|
+
return ContinueSentinel;
|
|
149
|
+
}
|
|
150
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
151
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
152
|
+
var info = record.arg;
|
|
153
|
+
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);
|
|
154
|
+
}
|
|
155
|
+
function pushTryEntry(locs) {
|
|
156
|
+
var entry = {
|
|
157
|
+
tryLoc: locs[0]
|
|
158
|
+
};
|
|
159
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
160
|
+
}
|
|
161
|
+
function resetTryEntry(entry) {
|
|
162
|
+
var record = entry.completion || {};
|
|
163
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
164
|
+
}
|
|
165
|
+
function Context(tryLocsList) {
|
|
166
|
+
this.tryEntries = [{
|
|
167
|
+
tryLoc: "root"
|
|
168
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
169
|
+
}
|
|
170
|
+
function values(iterable) {
|
|
171
|
+
if (iterable) {
|
|
172
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
173
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
174
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
175
|
+
if (!isNaN(iterable.length)) {
|
|
176
|
+
var i = -1,
|
|
177
|
+
next = function next() {
|
|
178
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
179
|
+
return next.value = undefined, next.done = !0, next;
|
|
180
|
+
};
|
|
181
|
+
return next.next = next;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
next: doneResult
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function doneResult() {
|
|
189
|
+
return {
|
|
190
|
+
value: undefined,
|
|
191
|
+
done: !0
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
195
|
+
value: GeneratorFunctionPrototype,
|
|
196
|
+
configurable: !0
|
|
197
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
198
|
+
value: GeneratorFunction,
|
|
199
|
+
configurable: !0
|
|
200
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
201
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
202
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
203
|
+
}, exports.mark = function (genFun) {
|
|
204
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
205
|
+
}, exports.awrap = function (arg) {
|
|
206
|
+
return {
|
|
207
|
+
__await: arg
|
|
208
|
+
};
|
|
209
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
210
|
+
return this;
|
|
211
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
212
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
213
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
214
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
215
|
+
return result.done ? result.value : iter.next();
|
|
216
|
+
});
|
|
217
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
218
|
+
return this;
|
|
219
|
+
}), define(Gp, "toString", function () {
|
|
220
|
+
return "[object Generator]";
|
|
221
|
+
}), exports.keys = function (val) {
|
|
222
|
+
var object = Object(val),
|
|
223
|
+
keys = [];
|
|
224
|
+
for (var key in object) keys.push(key);
|
|
225
|
+
return keys.reverse(), function next() {
|
|
226
|
+
for (; keys.length;) {
|
|
227
|
+
var key = keys.pop();
|
|
228
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
229
|
+
}
|
|
230
|
+
return next.done = !0, next;
|
|
231
|
+
};
|
|
232
|
+
}, exports.values = values, Context.prototype = {
|
|
233
|
+
constructor: Context,
|
|
234
|
+
reset: function (skipTempReset) {
|
|
235
|
+
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);
|
|
236
|
+
},
|
|
237
|
+
stop: function () {
|
|
238
|
+
this.done = !0;
|
|
239
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
240
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
241
|
+
return this.rval;
|
|
242
|
+
},
|
|
243
|
+
dispatchException: function (exception) {
|
|
244
|
+
if (this.done) throw exception;
|
|
245
|
+
var context = this;
|
|
246
|
+
function handle(loc, caught) {
|
|
247
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
248
|
+
}
|
|
249
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
250
|
+
var entry = this.tryEntries[i],
|
|
251
|
+
record = entry.completion;
|
|
252
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
253
|
+
if (entry.tryLoc <= this.prev) {
|
|
254
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
255
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
256
|
+
if (hasCatch && hasFinally) {
|
|
257
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
258
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
259
|
+
} else if (hasCatch) {
|
|
260
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
261
|
+
} else {
|
|
262
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
263
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
abrupt: function (type, arg) {
|
|
269
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
270
|
+
var entry = this.tryEntries[i];
|
|
271
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
272
|
+
var finallyEntry = entry;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
277
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
278
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
279
|
+
},
|
|
280
|
+
complete: function (record, afterLoc) {
|
|
281
|
+
if ("throw" === record.type) throw record.arg;
|
|
282
|
+
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;
|
|
283
|
+
},
|
|
284
|
+
finish: function (finallyLoc) {
|
|
285
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
286
|
+
var entry = this.tryEntries[i];
|
|
287
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
catch: function (tryLoc) {
|
|
291
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
292
|
+
var entry = this.tryEntries[i];
|
|
293
|
+
if (entry.tryLoc === tryLoc) {
|
|
294
|
+
var record = entry.completion;
|
|
295
|
+
if ("throw" === record.type) {
|
|
296
|
+
var thrown = record.arg;
|
|
297
|
+
resetTryEntry(entry);
|
|
298
|
+
}
|
|
299
|
+
return thrown;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
throw new Error("illegal catch attempt");
|
|
303
|
+
},
|
|
304
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
305
|
+
return this.delegate = {
|
|
306
|
+
iterator: values(iterable),
|
|
307
|
+
resultName: resultName,
|
|
308
|
+
nextLoc: nextLoc
|
|
309
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
310
|
+
}
|
|
311
|
+
}, exports;
|
|
21
312
|
}
|
|
313
|
+
function _typeof(obj) {
|
|
314
|
+
"@babel/helpers - typeof";
|
|
22
315
|
|
|
316
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
317
|
+
return typeof obj;
|
|
318
|
+
} : function (obj) {
|
|
319
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
320
|
+
}, _typeof(obj);
|
|
321
|
+
}
|
|
23
322
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
24
323
|
try {
|
|
25
324
|
var info = gen[key](arg);
|
|
@@ -28,34 +327,28 @@
|
|
|
28
327
|
reject(error);
|
|
29
328
|
return;
|
|
30
329
|
}
|
|
31
|
-
|
|
32
330
|
if (info.done) {
|
|
33
331
|
resolve(value);
|
|
34
332
|
} else {
|
|
35
333
|
Promise.resolve(value).then(_next, _throw);
|
|
36
334
|
}
|
|
37
335
|
}
|
|
38
|
-
|
|
39
336
|
function _asyncToGenerator(fn) {
|
|
40
337
|
return function () {
|
|
41
338
|
var self = this,
|
|
42
|
-
|
|
339
|
+
args = arguments;
|
|
43
340
|
return new Promise(function (resolve, reject) {
|
|
44
341
|
var gen = fn.apply(self, args);
|
|
45
|
-
|
|
46
342
|
function _next(value) {
|
|
47
343
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
48
344
|
}
|
|
49
|
-
|
|
50
345
|
function _throw(err) {
|
|
51
346
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
52
347
|
}
|
|
53
|
-
|
|
54
348
|
_next(undefined);
|
|
55
349
|
});
|
|
56
350
|
};
|
|
57
351
|
}
|
|
58
|
-
|
|
59
352
|
function _defineProperty(obj, key, value) {
|
|
60
353
|
if (key in obj) {
|
|
61
354
|
Object.defineProperty(obj, key, {
|
|
@@ -67,41 +360,32 @@
|
|
|
67
360
|
} else {
|
|
68
361
|
obj[key] = value;
|
|
69
362
|
}
|
|
70
|
-
|
|
71
363
|
return obj;
|
|
72
364
|
}
|
|
73
|
-
|
|
74
365
|
function _objectSpread(target) {
|
|
75
366
|
for (var i = 1; i < arguments.length; i++) {
|
|
76
367
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
77
368
|
var ownKeys = Object.keys(source);
|
|
78
|
-
|
|
79
369
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
80
|
-
ownKeys
|
|
370
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
81
371
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
82
372
|
}));
|
|
83
373
|
}
|
|
84
|
-
|
|
85
374
|
ownKeys.forEach(function (key) {
|
|
86
375
|
_defineProperty(target, key, source[key]);
|
|
87
376
|
});
|
|
88
377
|
}
|
|
89
|
-
|
|
90
378
|
return target;
|
|
91
379
|
}
|
|
92
|
-
|
|
93
380
|
function _toConsumableArray(arr) {
|
|
94
381
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
95
382
|
}
|
|
96
|
-
|
|
97
383
|
function _arrayWithoutHoles(arr) {
|
|
98
384
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
99
385
|
}
|
|
100
|
-
|
|
101
386
|
function _iterableToArray(iter) {
|
|
102
387
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
103
388
|
}
|
|
104
|
-
|
|
105
389
|
function _unsupportedIterableToArray(o, minLen) {
|
|
106
390
|
if (!o) return;
|
|
107
391
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -110,15 +394,11 @@
|
|
|
110
394
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
111
395
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
112
396
|
}
|
|
113
|
-
|
|
114
397
|
function _arrayLikeToArray(arr, len) {
|
|
115
398
|
if (len == null || len > arr.length) len = arr.length;
|
|
116
|
-
|
|
117
399
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
118
|
-
|
|
119
400
|
return arr2;
|
|
120
401
|
}
|
|
121
|
-
|
|
122
402
|
function _nonIterableSpread() {
|
|
123
403
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
124
404
|
}
|
|
@@ -446,505 +726,6 @@
|
|
|
446
726
|
|
|
447
727
|
var _parseInt$2 = _parseInt$1;
|
|
448
728
|
|
|
449
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
450
|
-
var runtime = (function (exports) {
|
|
451
|
-
var Op = Object.prototype;
|
|
452
|
-
var hasOwn = Op.hasOwnProperty;
|
|
453
|
-
var undefined$1;
|
|
454
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
455
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
456
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
457
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
458
|
-
function define(obj, key, value) {
|
|
459
|
-
Object.defineProperty(obj, key, {
|
|
460
|
-
value: value,
|
|
461
|
-
enumerable: true,
|
|
462
|
-
configurable: true,
|
|
463
|
-
writable: true
|
|
464
|
-
});
|
|
465
|
-
return obj[key];
|
|
466
|
-
}
|
|
467
|
-
try {
|
|
468
|
-
define({}, "");
|
|
469
|
-
} catch (err) {
|
|
470
|
-
define = function(obj, key, value) {
|
|
471
|
-
return obj[key] = value;
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
475
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
476
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
477
|
-
var context = new Context(tryLocsList || []);
|
|
478
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
479
|
-
return generator;
|
|
480
|
-
}
|
|
481
|
-
exports.wrap = wrap;
|
|
482
|
-
function tryCatch(fn, obj, arg) {
|
|
483
|
-
try {
|
|
484
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
485
|
-
} catch (err) {
|
|
486
|
-
return { type: "throw", arg: err };
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
490
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
491
|
-
var GenStateExecuting = "executing";
|
|
492
|
-
var GenStateCompleted = "completed";
|
|
493
|
-
var ContinueSentinel = {};
|
|
494
|
-
function Generator() {}
|
|
495
|
-
function GeneratorFunction() {}
|
|
496
|
-
function GeneratorFunctionPrototype() {}
|
|
497
|
-
var IteratorPrototype = {};
|
|
498
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
499
|
-
return this;
|
|
500
|
-
};
|
|
501
|
-
var getProto = Object.getPrototypeOf;
|
|
502
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
503
|
-
if (NativeIteratorPrototype &&
|
|
504
|
-
NativeIteratorPrototype !== Op &&
|
|
505
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
506
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
507
|
-
}
|
|
508
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
509
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
510
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
511
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
512
|
-
GeneratorFunction.displayName = define(
|
|
513
|
-
GeneratorFunctionPrototype,
|
|
514
|
-
toStringTagSymbol,
|
|
515
|
-
"GeneratorFunction"
|
|
516
|
-
);
|
|
517
|
-
function defineIteratorMethods(prototype) {
|
|
518
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
519
|
-
define(prototype, method, function(arg) {
|
|
520
|
-
return this._invoke(method, arg);
|
|
521
|
-
});
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
525
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
526
|
-
return ctor
|
|
527
|
-
? ctor === GeneratorFunction ||
|
|
528
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
529
|
-
: false;
|
|
530
|
-
};
|
|
531
|
-
exports.mark = function(genFun) {
|
|
532
|
-
if (Object.setPrototypeOf) {
|
|
533
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
534
|
-
} else {
|
|
535
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
536
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
537
|
-
}
|
|
538
|
-
genFun.prototype = Object.create(Gp);
|
|
539
|
-
return genFun;
|
|
540
|
-
};
|
|
541
|
-
exports.awrap = function(arg) {
|
|
542
|
-
return { __await: arg };
|
|
543
|
-
};
|
|
544
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
545
|
-
function invoke(method, arg, resolve, reject) {
|
|
546
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
547
|
-
if (record.type === "throw") {
|
|
548
|
-
reject(record.arg);
|
|
549
|
-
} else {
|
|
550
|
-
var result = record.arg;
|
|
551
|
-
var value = result.value;
|
|
552
|
-
if (value &&
|
|
553
|
-
typeof value === "object" &&
|
|
554
|
-
hasOwn.call(value, "__await")) {
|
|
555
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
556
|
-
invoke("next", value, resolve, reject);
|
|
557
|
-
}, function(err) {
|
|
558
|
-
invoke("throw", err, resolve, reject);
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
562
|
-
result.value = unwrapped;
|
|
563
|
-
resolve(result);
|
|
564
|
-
}, function(error) {
|
|
565
|
-
return invoke("throw", error, resolve, reject);
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
var previousPromise;
|
|
570
|
-
function enqueue(method, arg) {
|
|
571
|
-
function callInvokeWithMethodAndArg() {
|
|
572
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
573
|
-
invoke(method, arg, resolve, reject);
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
return previousPromise =
|
|
577
|
-
previousPromise ? previousPromise.then(
|
|
578
|
-
callInvokeWithMethodAndArg,
|
|
579
|
-
callInvokeWithMethodAndArg
|
|
580
|
-
) : callInvokeWithMethodAndArg();
|
|
581
|
-
}
|
|
582
|
-
this._invoke = enqueue;
|
|
583
|
-
}
|
|
584
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
585
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
586
|
-
return this;
|
|
587
|
-
};
|
|
588
|
-
exports.AsyncIterator = AsyncIterator;
|
|
589
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
590
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
591
|
-
var iter = new AsyncIterator(
|
|
592
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
593
|
-
PromiseImpl
|
|
594
|
-
);
|
|
595
|
-
return exports.isGeneratorFunction(outerFn)
|
|
596
|
-
? iter
|
|
597
|
-
: iter.next().then(function(result) {
|
|
598
|
-
return result.done ? result.value : iter.next();
|
|
599
|
-
});
|
|
600
|
-
};
|
|
601
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
602
|
-
var state = GenStateSuspendedStart;
|
|
603
|
-
return function invoke(method, arg) {
|
|
604
|
-
if (state === GenStateExecuting) {
|
|
605
|
-
throw new Error("Generator is already running");
|
|
606
|
-
}
|
|
607
|
-
if (state === GenStateCompleted) {
|
|
608
|
-
if (method === "throw") {
|
|
609
|
-
throw arg;
|
|
610
|
-
}
|
|
611
|
-
return doneResult();
|
|
612
|
-
}
|
|
613
|
-
context.method = method;
|
|
614
|
-
context.arg = arg;
|
|
615
|
-
while (true) {
|
|
616
|
-
var delegate = context.delegate;
|
|
617
|
-
if (delegate) {
|
|
618
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
619
|
-
if (delegateResult) {
|
|
620
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
621
|
-
return delegateResult;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
if (context.method === "next") {
|
|
625
|
-
context.sent = context._sent = context.arg;
|
|
626
|
-
} else if (context.method === "throw") {
|
|
627
|
-
if (state === GenStateSuspendedStart) {
|
|
628
|
-
state = GenStateCompleted;
|
|
629
|
-
throw context.arg;
|
|
630
|
-
}
|
|
631
|
-
context.dispatchException(context.arg);
|
|
632
|
-
} else if (context.method === "return") {
|
|
633
|
-
context.abrupt("return", context.arg);
|
|
634
|
-
}
|
|
635
|
-
state = GenStateExecuting;
|
|
636
|
-
var record = tryCatch(innerFn, self, context);
|
|
637
|
-
if (record.type === "normal") {
|
|
638
|
-
state = context.done
|
|
639
|
-
? GenStateCompleted
|
|
640
|
-
: GenStateSuspendedYield;
|
|
641
|
-
if (record.arg === ContinueSentinel) {
|
|
642
|
-
continue;
|
|
643
|
-
}
|
|
644
|
-
return {
|
|
645
|
-
value: record.arg,
|
|
646
|
-
done: context.done
|
|
647
|
-
};
|
|
648
|
-
} else if (record.type === "throw") {
|
|
649
|
-
state = GenStateCompleted;
|
|
650
|
-
context.method = "throw";
|
|
651
|
-
context.arg = record.arg;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
657
|
-
var method = delegate.iterator[context.method];
|
|
658
|
-
if (method === undefined$1) {
|
|
659
|
-
context.delegate = null;
|
|
660
|
-
if (context.method === "throw") {
|
|
661
|
-
if (delegate.iterator["return"]) {
|
|
662
|
-
context.method = "return";
|
|
663
|
-
context.arg = undefined$1;
|
|
664
|
-
maybeInvokeDelegate(delegate, context);
|
|
665
|
-
if (context.method === "throw") {
|
|
666
|
-
return ContinueSentinel;
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
context.method = "throw";
|
|
670
|
-
context.arg = new TypeError(
|
|
671
|
-
"The iterator does not provide a 'throw' method");
|
|
672
|
-
}
|
|
673
|
-
return ContinueSentinel;
|
|
674
|
-
}
|
|
675
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
676
|
-
if (record.type === "throw") {
|
|
677
|
-
context.method = "throw";
|
|
678
|
-
context.arg = record.arg;
|
|
679
|
-
context.delegate = null;
|
|
680
|
-
return ContinueSentinel;
|
|
681
|
-
}
|
|
682
|
-
var info = record.arg;
|
|
683
|
-
if (! info) {
|
|
684
|
-
context.method = "throw";
|
|
685
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
686
|
-
context.delegate = null;
|
|
687
|
-
return ContinueSentinel;
|
|
688
|
-
}
|
|
689
|
-
if (info.done) {
|
|
690
|
-
context[delegate.resultName] = info.value;
|
|
691
|
-
context.next = delegate.nextLoc;
|
|
692
|
-
if (context.method !== "return") {
|
|
693
|
-
context.method = "next";
|
|
694
|
-
context.arg = undefined$1;
|
|
695
|
-
}
|
|
696
|
-
} else {
|
|
697
|
-
return info;
|
|
698
|
-
}
|
|
699
|
-
context.delegate = null;
|
|
700
|
-
return ContinueSentinel;
|
|
701
|
-
}
|
|
702
|
-
defineIteratorMethods(Gp);
|
|
703
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
704
|
-
Gp[iteratorSymbol] = function() {
|
|
705
|
-
return this;
|
|
706
|
-
};
|
|
707
|
-
Gp.toString = function() {
|
|
708
|
-
return "[object Generator]";
|
|
709
|
-
};
|
|
710
|
-
function pushTryEntry(locs) {
|
|
711
|
-
var entry = { tryLoc: locs[0] };
|
|
712
|
-
if (1 in locs) {
|
|
713
|
-
entry.catchLoc = locs[1];
|
|
714
|
-
}
|
|
715
|
-
if (2 in locs) {
|
|
716
|
-
entry.finallyLoc = locs[2];
|
|
717
|
-
entry.afterLoc = locs[3];
|
|
718
|
-
}
|
|
719
|
-
this.tryEntries.push(entry);
|
|
720
|
-
}
|
|
721
|
-
function resetTryEntry(entry) {
|
|
722
|
-
var record = entry.completion || {};
|
|
723
|
-
record.type = "normal";
|
|
724
|
-
delete record.arg;
|
|
725
|
-
entry.completion = record;
|
|
726
|
-
}
|
|
727
|
-
function Context(tryLocsList) {
|
|
728
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
729
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
730
|
-
this.reset(true);
|
|
731
|
-
}
|
|
732
|
-
exports.keys = function(object) {
|
|
733
|
-
var keys = [];
|
|
734
|
-
for (var key in object) {
|
|
735
|
-
keys.push(key);
|
|
736
|
-
}
|
|
737
|
-
keys.reverse();
|
|
738
|
-
return function next() {
|
|
739
|
-
while (keys.length) {
|
|
740
|
-
var key = keys.pop();
|
|
741
|
-
if (key in object) {
|
|
742
|
-
next.value = key;
|
|
743
|
-
next.done = false;
|
|
744
|
-
return next;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
next.done = true;
|
|
748
|
-
return next;
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
|
-
function values(iterable) {
|
|
752
|
-
if (iterable) {
|
|
753
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
754
|
-
if (iteratorMethod) {
|
|
755
|
-
return iteratorMethod.call(iterable);
|
|
756
|
-
}
|
|
757
|
-
if (typeof iterable.next === "function") {
|
|
758
|
-
return iterable;
|
|
759
|
-
}
|
|
760
|
-
if (!isNaN(iterable.length)) {
|
|
761
|
-
var i = -1, next = function next() {
|
|
762
|
-
while (++i < iterable.length) {
|
|
763
|
-
if (hasOwn.call(iterable, i)) {
|
|
764
|
-
next.value = iterable[i];
|
|
765
|
-
next.done = false;
|
|
766
|
-
return next;
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
next.value = undefined$1;
|
|
770
|
-
next.done = true;
|
|
771
|
-
return next;
|
|
772
|
-
};
|
|
773
|
-
return next.next = next;
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
return { next: doneResult };
|
|
777
|
-
}
|
|
778
|
-
exports.values = values;
|
|
779
|
-
function doneResult() {
|
|
780
|
-
return { value: undefined$1, done: true };
|
|
781
|
-
}
|
|
782
|
-
Context.prototype = {
|
|
783
|
-
constructor: Context,
|
|
784
|
-
reset: function(skipTempReset) {
|
|
785
|
-
this.prev = 0;
|
|
786
|
-
this.next = 0;
|
|
787
|
-
this.sent = this._sent = undefined$1;
|
|
788
|
-
this.done = false;
|
|
789
|
-
this.delegate = null;
|
|
790
|
-
this.method = "next";
|
|
791
|
-
this.arg = undefined$1;
|
|
792
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
793
|
-
if (!skipTempReset) {
|
|
794
|
-
for (var name in this) {
|
|
795
|
-
if (name.charAt(0) === "t" &&
|
|
796
|
-
hasOwn.call(this, name) &&
|
|
797
|
-
!isNaN(+name.slice(1))) {
|
|
798
|
-
this[name] = undefined$1;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
stop: function() {
|
|
804
|
-
this.done = true;
|
|
805
|
-
var rootEntry = this.tryEntries[0];
|
|
806
|
-
var rootRecord = rootEntry.completion;
|
|
807
|
-
if (rootRecord.type === "throw") {
|
|
808
|
-
throw rootRecord.arg;
|
|
809
|
-
}
|
|
810
|
-
return this.rval;
|
|
811
|
-
},
|
|
812
|
-
dispatchException: function(exception) {
|
|
813
|
-
if (this.done) {
|
|
814
|
-
throw exception;
|
|
815
|
-
}
|
|
816
|
-
var context = this;
|
|
817
|
-
function handle(loc, caught) {
|
|
818
|
-
record.type = "throw";
|
|
819
|
-
record.arg = exception;
|
|
820
|
-
context.next = loc;
|
|
821
|
-
if (caught) {
|
|
822
|
-
context.method = "next";
|
|
823
|
-
context.arg = undefined$1;
|
|
824
|
-
}
|
|
825
|
-
return !! caught;
|
|
826
|
-
}
|
|
827
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
828
|
-
var entry = this.tryEntries[i];
|
|
829
|
-
var record = entry.completion;
|
|
830
|
-
if (entry.tryLoc === "root") {
|
|
831
|
-
return handle("end");
|
|
832
|
-
}
|
|
833
|
-
if (entry.tryLoc <= this.prev) {
|
|
834
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
835
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
836
|
-
if (hasCatch && hasFinally) {
|
|
837
|
-
if (this.prev < entry.catchLoc) {
|
|
838
|
-
return handle(entry.catchLoc, true);
|
|
839
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
840
|
-
return handle(entry.finallyLoc);
|
|
841
|
-
}
|
|
842
|
-
} else if (hasCatch) {
|
|
843
|
-
if (this.prev < entry.catchLoc) {
|
|
844
|
-
return handle(entry.catchLoc, true);
|
|
845
|
-
}
|
|
846
|
-
} else if (hasFinally) {
|
|
847
|
-
if (this.prev < entry.finallyLoc) {
|
|
848
|
-
return handle(entry.finallyLoc);
|
|
849
|
-
}
|
|
850
|
-
} else {
|
|
851
|
-
throw new Error("try statement without catch or finally");
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
abrupt: function(type, arg) {
|
|
857
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
858
|
-
var entry = this.tryEntries[i];
|
|
859
|
-
if (entry.tryLoc <= this.prev &&
|
|
860
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
861
|
-
this.prev < entry.finallyLoc) {
|
|
862
|
-
var finallyEntry = entry;
|
|
863
|
-
break;
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
if (finallyEntry &&
|
|
867
|
-
(type === "break" ||
|
|
868
|
-
type === "continue") &&
|
|
869
|
-
finallyEntry.tryLoc <= arg &&
|
|
870
|
-
arg <= finallyEntry.finallyLoc) {
|
|
871
|
-
finallyEntry = null;
|
|
872
|
-
}
|
|
873
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
874
|
-
record.type = type;
|
|
875
|
-
record.arg = arg;
|
|
876
|
-
if (finallyEntry) {
|
|
877
|
-
this.method = "next";
|
|
878
|
-
this.next = finallyEntry.finallyLoc;
|
|
879
|
-
return ContinueSentinel;
|
|
880
|
-
}
|
|
881
|
-
return this.complete(record);
|
|
882
|
-
},
|
|
883
|
-
complete: function(record, afterLoc) {
|
|
884
|
-
if (record.type === "throw") {
|
|
885
|
-
throw record.arg;
|
|
886
|
-
}
|
|
887
|
-
if (record.type === "break" ||
|
|
888
|
-
record.type === "continue") {
|
|
889
|
-
this.next = record.arg;
|
|
890
|
-
} else if (record.type === "return") {
|
|
891
|
-
this.rval = this.arg = record.arg;
|
|
892
|
-
this.method = "return";
|
|
893
|
-
this.next = "end";
|
|
894
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
895
|
-
this.next = afterLoc;
|
|
896
|
-
}
|
|
897
|
-
return ContinueSentinel;
|
|
898
|
-
},
|
|
899
|
-
finish: function(finallyLoc) {
|
|
900
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
901
|
-
var entry = this.tryEntries[i];
|
|
902
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
903
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
904
|
-
resetTryEntry(entry);
|
|
905
|
-
return ContinueSentinel;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
"catch": function(tryLoc) {
|
|
910
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
911
|
-
var entry = this.tryEntries[i];
|
|
912
|
-
if (entry.tryLoc === tryLoc) {
|
|
913
|
-
var record = entry.completion;
|
|
914
|
-
if (record.type === "throw") {
|
|
915
|
-
var thrown = record.arg;
|
|
916
|
-
resetTryEntry(entry);
|
|
917
|
-
}
|
|
918
|
-
return thrown;
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
throw new Error("illegal catch attempt");
|
|
922
|
-
},
|
|
923
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
924
|
-
this.delegate = {
|
|
925
|
-
iterator: values(iterable),
|
|
926
|
-
resultName: resultName,
|
|
927
|
-
nextLoc: nextLoc
|
|
928
|
-
};
|
|
929
|
-
if (this.method === "next") {
|
|
930
|
-
this.arg = undefined$1;
|
|
931
|
-
}
|
|
932
|
-
return ContinueSentinel;
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
return exports;
|
|
936
|
-
}(
|
|
937
|
-
module.exports
|
|
938
|
-
));
|
|
939
|
-
try {
|
|
940
|
-
regeneratorRuntime = runtime;
|
|
941
|
-
} catch (accidentalStrictMode) {
|
|
942
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
943
|
-
}
|
|
944
|
-
});
|
|
945
|
-
|
|
946
|
-
var regenerator = runtime_1;
|
|
947
|
-
|
|
948
729
|
var _stringAt = function (TO_STRING) {
|
|
949
730
|
return function (that, pos) {
|
|
950
731
|
var s = String(_defined(that));
|
|
@@ -1741,9 +1522,9 @@
|
|
|
1741
1522
|
var _arguments = arguments;
|
|
1742
1523
|
if (promise) return promise;
|
|
1743
1524
|
promise = new promise$1(function (resolve) {
|
|
1744
|
-
setTimeout( _asyncToGenerator(
|
|
1525
|
+
setTimeout( _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
|
|
1745
1526
|
var result;
|
|
1746
|
-
return
|
|
1527
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1747
1528
|
while (1) {
|
|
1748
1529
|
switch (_context.prev = _context.next) {
|
|
1749
1530
|
case 0:
|
|
@@ -1812,7 +1593,7 @@
|
|
|
1812
1593
|
renderHeader: function renderHeader(h, _ref) {
|
|
1813
1594
|
var _this = this;
|
|
1814
1595
|
var store = _ref.store,
|
|
1815
|
-
|
|
1596
|
+
column = _ref.column;
|
|
1816
1597
|
return h("bk-checkbox", {
|
|
1817
1598
|
"attrs": {
|
|
1818
1599
|
"disabled": store.isAllSelectionDisabled,
|
|
@@ -1827,9 +1608,9 @@
|
|
|
1827
1608
|
},
|
|
1828
1609
|
"nativeOn": {
|
|
1829
1610
|
"click": function () {
|
|
1830
|
-
var _click = _asyncToGenerator(
|
|
1611
|
+
var _click = _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
|
|
1831
1612
|
var result;
|
|
1832
|
-
return
|
|
1613
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1833
1614
|
while (1) {
|
|
1834
1615
|
switch (_context.prev = _context.next) {
|
|
1835
1616
|
case 0:
|
|
@@ -1864,9 +1645,9 @@
|
|
|
1864
1645
|
},
|
|
1865
1646
|
renderCell: function renderCell(h, _ref2) {
|
|
1866
1647
|
var row = _ref2.row,
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1648
|
+
column = _ref2.column,
|
|
1649
|
+
store = _ref2.store,
|
|
1650
|
+
$index = _ref2.$index;
|
|
1870
1651
|
var disabled = column.selectable ? !column.selectable.call(null, row, $index) : false;
|
|
1871
1652
|
return h("bk-checkbox", {
|
|
1872
1653
|
"attrs": {
|
|
@@ -1883,9 +1664,9 @@
|
|
|
1883
1664
|
},
|
|
1884
1665
|
"nativeOn": {
|
|
1885
1666
|
"click": function () {
|
|
1886
|
-
var _click2 = _asyncToGenerator(
|
|
1667
|
+
var _click2 = _asyncToGenerator( _regeneratorRuntime().mark(function _callee2(event) {
|
|
1887
1668
|
var result;
|
|
1888
|
-
return
|
|
1669
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1889
1670
|
while (1) {
|
|
1890
1671
|
switch (_context2.prev = _context2.next) {
|
|
1891
1672
|
case 0:
|
|
@@ -1931,7 +1712,7 @@
|
|
|
1931
1712
|
},
|
|
1932
1713
|
renderCell: function renderCell(h, _ref4) {
|
|
1933
1714
|
var $index = _ref4.$index,
|
|
1934
|
-
|
|
1715
|
+
column = _ref4.column;
|
|
1935
1716
|
var i = $index + 1;
|
|
1936
1717
|
var index = column.index;
|
|
1937
1718
|
if (typeof index === 'number') {
|
|
@@ -1950,7 +1731,7 @@
|
|
|
1950
1731
|
},
|
|
1951
1732
|
renderCell: function renderCell(h, data, proxy) {
|
|
1952
1733
|
var row = data.row,
|
|
1953
|
-
|
|
1734
|
+
store = data.store;
|
|
1954
1735
|
var expanded = store.states.expandRows.indexOf(row) > -1;
|
|
1955
1736
|
return h("div", {
|
|
1956
1737
|
"class": 'bk-table-expand-icon ' + (expanded ? 'bk-table-expand-icon-expanded' : ''),
|
|
@@ -1972,7 +1753,7 @@
|
|
|
1972
1753
|
setting: {
|
|
1973
1754
|
renderHeader: function renderHeader(h, _ref6) {
|
|
1974
1755
|
var column = _ref6.column,
|
|
1975
|
-
|
|
1756
|
+
fixed = _ref6.fixed;
|
|
1976
1757
|
if (fixed === 'right') {
|
|
1977
1758
|
return h("bk-table-setting", {
|
|
1978
1759
|
"attrs": {
|
|
@@ -1984,7 +1765,7 @@
|
|
|
1984
1765
|
},
|
|
1985
1766
|
renderCell: function renderCell(h, _ref7, proxy) {
|
|
1986
1767
|
var row = _ref7.row,
|
|
1987
|
-
|
|
1768
|
+
store = _ref7.store;
|
|
1988
1769
|
return '';
|
|
1989
1770
|
},
|
|
1990
1771
|
sortable: false,
|
|
@@ -2011,8 +1792,8 @@
|
|
|
2011
1792
|
};
|
|
2012
1793
|
var DEFAULT_RENDER_CELL = function DEFAULT_RENDER_CELL(h, _ref8) {
|
|
2013
1794
|
var row = _ref8.row,
|
|
2014
|
-
|
|
2015
|
-
|
|
1795
|
+
column = _ref8.column,
|
|
1796
|
+
$index = _ref8.$index;
|
|
2016
1797
|
var property = column.property;
|
|
2017
1798
|
var value = property && getPropByPath(row, property).v;
|
|
2018
1799
|
if (column && column.formatter) {
|