@para-ui/core 3.0.28 → 3.0.30
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/AutoBox/index.js +48 -88
- package/AutoTips/index.js +25 -32
- package/Breadcrumbs/index.js +43 -63
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +88 -118
- package/ButtonGroup/index.js +27 -36
- package/Carousel/index.d.ts +2 -2
- package/Carousel/index.js +27 -28
- package/Cascader/index.js +52 -64
- package/Checkbox/index.js +23 -39
- package/CheckboxGroup/index.js +31 -48
- package/Collapse/collapsePanel.d.ts +1 -1
- package/Collapse/index.d.ts +1 -1
- package/Collapse/index.js +9 -29
- package/Collapse/util.d.ts +2 -2
- package/CollapseBox/index.js +45 -56
- package/CollapseLayout/index.js +35 -54
- package/ComboSelect/index.js +222 -349
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.js +17 -20
- package/DatePicker/generatePicker/index.d.ts +17 -17
- package/DatePicker/index.d.ts +4 -4
- package/DatePicker/index.js +111 -167
- package/Desktop/index.js +62 -173
- package/Drawer/index.js +65 -58
- package/Drawer/interface.d.ts +7 -3
- package/Dropdown/index.d.ts +1 -1
- package/Dropdown/index.js +3 -3
- package/Empty/index.js +17 -22
- package/Form/index.d.ts +1 -1
- package/Form/index.js +38 -80
- package/FormItem/index.d.ts +1 -1
- package/FormItem/index.js +11 -11
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/index.js +11 -11
- package/GlobalContext/index.js +3 -3
- package/GlobalContext/usePopupContainer.d.ts +1 -1
- package/Help/index.js +11 -11
- package/HelperText/index.js +11 -12
- package/InputLang/index.js +47 -80
- package/InputNumber/index.js +65 -100
- package/Label/index.js +15 -16
- package/Loading/index.js +6 -7
- package/Menu/index.js +148 -328
- package/Menu/interface.d.ts +2 -2
- package/Menu/verticalMenuList.d.ts +1 -1
- package/Message/index.d.ts +1 -1
- package/Message/index.js +45 -64
- package/Modal/Confirm/index.d.ts +2 -2
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +119 -152
- package/MultiBox/index.js +44 -76
- package/Notification/index.d.ts +2 -2
- package/Notification/index.js +51 -72
- package/OperateBtn/index.js +42 -70
- package/PageHeader/index.js +120 -286
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +2 -2
- package/Pagination/index.js +79 -131
- package/ParauiProvider/index.js +2 -3
- package/PasswordRules/index.js +12 -30
- package/PopConfirm/index.d.ts +1 -1
- package/PopConfirm/index.js +52 -59
- package/Popover/index.js +8 -9
- package/Progress/index.d.ts +6 -6
- package/Progress/index.js +50 -89
- package/Querying/index.js +14 -17
- package/README.md +813 -800
- package/Radio/index.js +21 -33
- package/RadioGroup/index.js +32 -47
- package/Search/index.js +44 -66
- package/Select/index.js +176 -343
- package/SelectInput/index.js +8 -9
- package/Selector/index.js +285 -681
- package/SelectorPicker/index.js +62 -97
- package/SingleBox/index.js +30 -55
- package/Slider/index.d.ts +1 -1
- package/Slider/index.js +29 -41
- package/Slider/interface.d.ts +2 -2
- package/Split/index.js +10 -23
- package/Status/index.js +8 -7
- package/Stepper/index.d.ts +1 -1
- package/Stepper/index.js +20 -25
- package/Styles/form.scss +5 -5
- package/Styles/index.scss +37 -37
- package/Styles/normalize.scss +348 -348
- package/Styles/scrollbar.scss +223 -223
- package/Styles/theme.scss +74 -74
- package/Switch/index.d.ts +2 -2
- package/Switch/index.js +19 -20
- package/Table/index.js +568 -1019
- package/Table/interface.d.ts +5 -5
- package/Tabs/index.d.ts +3 -3
- package/Tabs/index.js +47 -65
- package/Tag/TagGroup.d.ts +1 -1
- package/Tag/index.d.ts +2 -2
- package/Tag/index.js +72 -107
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +81 -105
- package/TextField/index.js +141 -220
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +12 -15
- package/Timeline/index.js +42 -52
- package/Title/index.js +10 -9
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.js +50 -70
- package/Tooltip/index.js +64 -98
- package/Tooltip/interface.d.ts +1 -1
- package/Transfer/index.d.ts +1 -1
- package/Transfer/index.js +114 -137
- package/Transfer/useClick.d.ts +1 -1
- package/Tree/index.js +10 -10
- package/Tree/interface.d.ts +6 -6
- package/Upload/Dragger/index.d.ts +1 -1
- package/Upload/ImageUpload/index.d.ts +1 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/index.d.ts +1 -1
- package/Upload/index.js +283 -475
- package/Upload/interface.d.ts +2 -2
- package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
- package/_verture/defineProperty-62acccfc.js +34 -0
- package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
- package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
- package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
- package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
- package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
- package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
- package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
- package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
- package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
- package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
- package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
- package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
- package/index.d.ts +2 -4
- package/index.js +15 -16
- package/package.json +167 -168
- package/Test/index.d.ts +0 -3
- package/Test/index.js +0 -9
- package/_verture/defineProperty-0590dc61.js +0 -16
package/Upload/interface.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { RcFile as OriRcFile, Action, UploadRequestMethod, UploadRequestHeader, BeforeUploadFileType, UploadRequestOption } from 'rc-upload/lib/interface';
|
|
3
|
-
|
|
3
|
+
type UploadType = 'drag' | 'select';
|
|
4
4
|
export type { BeforeUploadFileType };
|
|
5
5
|
export interface RcFile extends OriRcFile {
|
|
6
6
|
readonly lastModifiedDate: Date;
|
|
@@ -31,7 +31,7 @@ export interface IShowUploadList {
|
|
|
31
31
|
/** 删除图标 */
|
|
32
32
|
removeIcon?: React.ReactNode;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
|
|
35
35
|
export interface UploadProps<T = any> {
|
|
36
36
|
/**上传类型*/
|
|
37
37
|
type?: UploadType;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { _ as _typeof } from './typeof-498dd2b1.js';
|
|
2
|
+
|
|
3
|
+
function _toPrimitive(input, hint) {
|
|
4
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
5
|
+
var prim = input[Symbol.toPrimitive];
|
|
6
|
+
if (prim !== undefined) {
|
|
7
|
+
var res = prim.call(input, hint || "default");
|
|
8
|
+
if (_typeof(res) !== "object") return res;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return (hint === "string" ? String : Number)(input);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function _toPropertyKey(arg) {
|
|
15
|
+
var key = _toPrimitive(arg, "string");
|
|
16
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) {
|
|
20
|
+
key = _toPropertyKey(key);
|
|
21
|
+
if (key in obj) {
|
|
22
|
+
Object.defineProperty(obj, key, {
|
|
23
|
+
value: value,
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true
|
|
27
|
+
});
|
|
28
|
+
} else {
|
|
29
|
+
obj[key] = value;
|
|
30
|
+
}
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { _defineProperty as _, _toPropertyKey as a };
|
|
@@ -12,27 +12,25 @@ var _typeof = {exports: {}};
|
|
|
12
12
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
13
13
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
17
16
|
} (_typeof));
|
|
18
17
|
|
|
19
18
|
(function (module) {
|
|
20
19
|
var _typeof$1 = _typeof.exports["default"];
|
|
21
|
-
|
|
22
20
|
function _regeneratorRuntime() {
|
|
23
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
24
|
-
|
|
25
21
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
26
22
|
return exports;
|
|
27
23
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
28
24
|
var exports = {},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
Op = Object.prototype,
|
|
26
|
+
hasOwn = Op.hasOwnProperty,
|
|
27
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
28
|
+
obj[key] = desc.value;
|
|
29
|
+
},
|
|
30
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
31
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
32
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
33
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
36
34
|
function define(obj, key, value) {
|
|
37
35
|
return Object.defineProperty(obj, key, {
|
|
38
36
|
value: value,
|
|
@@ -41,7 +39,6 @@ var _typeof = {exports: {}};
|
|
|
41
39
|
writable: !0
|
|
42
40
|
}), obj[key];
|
|
43
41
|
}
|
|
44
|
-
|
|
45
42
|
try {
|
|
46
43
|
define({}, "");
|
|
47
44
|
} catch (err) {
|
|
@@ -49,54 +46,14 @@ var _typeof = {exports: {}};
|
|
|
49
46
|
return obj[key] = value;
|
|
50
47
|
};
|
|
51
48
|
}
|
|
52
|
-
|
|
53
49
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
54
50
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return generator
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
61
|
-
|
|
62
|
-
if ("completed" === state) {
|
|
63
|
-
if ("throw" === method) throw arg;
|
|
64
|
-
return doneResult();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
for (context.method = method, context.arg = arg;;) {
|
|
68
|
-
var delegate = context.delegate;
|
|
69
|
-
|
|
70
|
-
if (delegate) {
|
|
71
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
72
|
-
|
|
73
|
-
if (delegateResult) {
|
|
74
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
75
|
-
return delegateResult;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
80
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
81
|
-
context.dispatchException(context.arg);
|
|
82
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
83
|
-
state = "executing";
|
|
84
|
-
var record = tryCatch(innerFn, self, context);
|
|
85
|
-
|
|
86
|
-
if ("normal" === record.type) {
|
|
87
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
88
|
-
return {
|
|
89
|
-
value: record.arg,
|
|
90
|
-
done: context.done
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}(innerFn, self, context), generator;
|
|
51
|
+
generator = Object.create(protoGenerator.prototype),
|
|
52
|
+
context = new Context(tryLocsList || []);
|
|
53
|
+
return defineProperty(generator, "_invoke", {
|
|
54
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
55
|
+
}), generator;
|
|
98
56
|
}
|
|
99
|
-
|
|
100
57
|
function tryCatch(fn, obj, arg) {
|
|
101
58
|
try {
|
|
102
59
|
return {
|
|
@@ -110,25 +67,19 @@ var _typeof = {exports: {}};
|
|
|
110
67
|
};
|
|
111
68
|
}
|
|
112
69
|
}
|
|
113
|
-
|
|
114
70
|
exports.wrap = wrap;
|
|
115
71
|
var ContinueSentinel = {};
|
|
116
|
-
|
|
117
72
|
function Generator() {}
|
|
118
|
-
|
|
119
73
|
function GeneratorFunction() {}
|
|
120
|
-
|
|
121
74
|
function GeneratorFunctionPrototype() {}
|
|
122
|
-
|
|
123
75
|
var IteratorPrototype = {};
|
|
124
76
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
125
77
|
return this;
|
|
126
78
|
});
|
|
127
79
|
var getProto = Object.getPrototypeOf,
|
|
128
|
-
|
|
80
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
129
81
|
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
130
82
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
131
|
-
|
|
132
83
|
function defineIteratorMethods(prototype) {
|
|
133
84
|
["next", "throw", "return"].forEach(function (method) {
|
|
134
85
|
define(prototype, method, function (arg) {
|
|
@@ -136,14 +87,12 @@ var _typeof = {exports: {}};
|
|
|
136
87
|
});
|
|
137
88
|
});
|
|
138
89
|
}
|
|
139
|
-
|
|
140
90
|
function AsyncIterator(generator, PromiseImpl) {
|
|
141
91
|
function invoke(method, arg, resolve, reject) {
|
|
142
92
|
var record = tryCatch(generator[method], generator, arg);
|
|
143
|
-
|
|
144
93
|
if ("throw" !== record.type) {
|
|
145
94
|
var result = record.arg,
|
|
146
|
-
|
|
95
|
+
value = result.value;
|
|
147
96
|
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
148
97
|
invoke("next", value, resolve, reject);
|
|
149
98
|
}, function (err) {
|
|
@@ -154,92 +103,111 @@ var _typeof = {exports: {}};
|
|
|
154
103
|
return invoke("throw", error, resolve, reject);
|
|
155
104
|
});
|
|
156
105
|
}
|
|
157
|
-
|
|
158
106
|
reject(record.arg);
|
|
159
107
|
}
|
|
160
|
-
|
|
161
108
|
var previousPromise;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
109
|
+
defineProperty(this, "_invoke", {
|
|
110
|
+
value: function value(method, arg) {
|
|
111
|
+
function callInvokeWithMethodAndArg() {
|
|
112
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
113
|
+
invoke(method, arg, resolve, reject);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
121
|
+
var state = "suspendedStart";
|
|
122
|
+
return function (method, arg) {
|
|
123
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
124
|
+
if ("completed" === state) {
|
|
125
|
+
if ("throw" === method) throw arg;
|
|
126
|
+
return doneResult();
|
|
127
|
+
}
|
|
128
|
+
for (context.method = method, context.arg = arg;;) {
|
|
129
|
+
var delegate = context.delegate;
|
|
130
|
+
if (delegate) {
|
|
131
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
132
|
+
if (delegateResult) {
|
|
133
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
134
|
+
return delegateResult;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
138
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
139
|
+
context.dispatchException(context.arg);
|
|
140
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
141
|
+
state = "executing";
|
|
142
|
+
var record = tryCatch(innerFn, self, context);
|
|
143
|
+
if ("normal" === record.type) {
|
|
144
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
145
|
+
return {
|
|
146
|
+
value: record.arg,
|
|
147
|
+
done: context.done
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
168
151
|
}
|
|
169
|
-
|
|
170
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
171
152
|
};
|
|
172
153
|
}
|
|
173
|
-
|
|
174
154
|
function maybeInvokeDelegate(delegate, context) {
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
if (undefined === method)
|
|
178
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
179
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
180
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return ContinueSentinel;
|
|
184
|
-
}
|
|
185
|
-
|
|
155
|
+
var methodName = context.method,
|
|
156
|
+
method = delegate.iterator[methodName];
|
|
157
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
186
158
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
187
159
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
188
160
|
var info = record.arg;
|
|
189
161
|
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);
|
|
190
162
|
}
|
|
191
|
-
|
|
192
163
|
function pushTryEntry(locs) {
|
|
193
164
|
var entry = {
|
|
194
165
|
tryLoc: locs[0]
|
|
195
166
|
};
|
|
196
167
|
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
197
168
|
}
|
|
198
|
-
|
|
199
169
|
function resetTryEntry(entry) {
|
|
200
170
|
var record = entry.completion || {};
|
|
201
171
|
record.type = "normal", delete record.arg, entry.completion = record;
|
|
202
172
|
}
|
|
203
|
-
|
|
204
173
|
function Context(tryLocsList) {
|
|
205
174
|
this.tryEntries = [{
|
|
206
175
|
tryLoc: "root"
|
|
207
176
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
208
177
|
}
|
|
209
|
-
|
|
210
178
|
function values(iterable) {
|
|
211
179
|
if (iterable) {
|
|
212
180
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
213
181
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
214
182
|
if ("function" == typeof iterable.next) return iterable;
|
|
215
|
-
|
|
216
183
|
if (!isNaN(iterable.length)) {
|
|
217
184
|
var i = -1,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
};
|
|
225
|
-
|
|
185
|
+
next = function next() {
|
|
186
|
+
for (; ++i < iterable.length;) {
|
|
187
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
188
|
+
}
|
|
189
|
+
return next.value = undefined, next.done = !0, next;
|
|
190
|
+
};
|
|
226
191
|
return next.next = next;
|
|
227
192
|
}
|
|
228
193
|
}
|
|
229
|
-
|
|
230
194
|
return {
|
|
231
195
|
next: doneResult
|
|
232
196
|
};
|
|
233
197
|
}
|
|
234
|
-
|
|
235
198
|
function doneResult() {
|
|
236
199
|
return {
|
|
237
200
|
value: undefined,
|
|
238
201
|
done: !0
|
|
239
202
|
};
|
|
240
203
|
}
|
|
241
|
-
|
|
242
|
-
|
|
204
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
205
|
+
value: GeneratorFunctionPrototype,
|
|
206
|
+
configurable: !0
|
|
207
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
208
|
+
value: GeneratorFunction,
|
|
209
|
+
configurable: !0
|
|
210
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
243
211
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
244
212
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
245
213
|
}, exports.mark = function (genFun) {
|
|
@@ -260,19 +228,17 @@ var _typeof = {exports: {}};
|
|
|
260
228
|
return this;
|
|
261
229
|
}), define(Gp, "toString", function () {
|
|
262
230
|
return "[object Generator]";
|
|
263
|
-
}), exports.keys = function (
|
|
264
|
-
var
|
|
265
|
-
|
|
231
|
+
}), exports.keys = function (val) {
|
|
232
|
+
var object = Object(val),
|
|
233
|
+
keys = [];
|
|
266
234
|
for (var key in object) {
|
|
267
235
|
keys.push(key);
|
|
268
236
|
}
|
|
269
|
-
|
|
270
237
|
return keys.reverse(), function next() {
|
|
271
238
|
for (; keys.length;) {
|
|
272
239
|
var key = keys.pop();
|
|
273
240
|
if (key in object) return next.value = key, next.done = !1, next;
|
|
274
241
|
}
|
|
275
|
-
|
|
276
242
|
return next.done = !0, next;
|
|
277
243
|
};
|
|
278
244
|
}, exports.values = values, Context.prototype = {
|
|
@@ -291,20 +257,16 @@ var _typeof = {exports: {}};
|
|
|
291
257
|
dispatchException: function dispatchException(exception) {
|
|
292
258
|
if (this.done) throw exception;
|
|
293
259
|
var context = this;
|
|
294
|
-
|
|
295
260
|
function handle(loc, caught) {
|
|
296
261
|
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
297
262
|
}
|
|
298
|
-
|
|
299
263
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
300
264
|
var entry = this.tryEntries[i],
|
|
301
|
-
|
|
265
|
+
record = entry.completion;
|
|
302
266
|
if ("root" === entry.tryLoc) return handle("end");
|
|
303
|
-
|
|
304
267
|
if (entry.tryLoc <= this.prev) {
|
|
305
268
|
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
306
|
-
|
|
307
|
-
|
|
269
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
308
270
|
if (hasCatch && hasFinally) {
|
|
309
271
|
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
310
272
|
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
@@ -320,13 +282,11 @@ var _typeof = {exports: {}};
|
|
|
320
282
|
abrupt: function abrupt(type, arg) {
|
|
321
283
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
322
284
|
var entry = this.tryEntries[i];
|
|
323
|
-
|
|
324
285
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
325
286
|
var finallyEntry = entry;
|
|
326
287
|
break;
|
|
327
288
|
}
|
|
328
289
|
}
|
|
329
|
-
|
|
330
290
|
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
331
291
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
332
292
|
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
@@ -344,19 +304,15 @@ var _typeof = {exports: {}};
|
|
|
344
304
|
"catch": function _catch(tryLoc) {
|
|
345
305
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
346
306
|
var entry = this.tryEntries[i];
|
|
347
|
-
|
|
348
307
|
if (entry.tryLoc === tryLoc) {
|
|
349
308
|
var record = entry.completion;
|
|
350
|
-
|
|
351
309
|
if ("throw" === record.type) {
|
|
352
310
|
var thrown = record.arg;
|
|
353
311
|
resetTryEntry(entry);
|
|
354
312
|
}
|
|
355
|
-
|
|
356
313
|
return thrown;
|
|
357
314
|
}
|
|
358
315
|
}
|
|
359
|
-
|
|
360
316
|
throw new Error("illegal catch attempt");
|
|
361
317
|
},
|
|
362
318
|
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
@@ -368,7 +324,6 @@ var _typeof = {exports: {}};
|
|
|
368
324
|
}
|
|
369
325
|
}, exports;
|
|
370
326
|
}
|
|
371
|
-
|
|
372
327
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
373
328
|
} (regeneratorRuntime$1));
|
|
374
329
|
|