@kmkf-fe-packages/basic-components 2.2.13-beta.1 → 2.2.13-beta.5

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/index.js CHANGED
@@ -29,377 +29,363 @@ var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
29
29
  var zh_CN__default = /*#__PURE__*/_interopDefaultLegacy(zh_CN);
30
30
  var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
31
31
 
32
- function _iterableToArrayLimit(r, l) {
33
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
34
- if (null != t) {
35
- var e,
36
- n,
37
- i,
38
- u,
39
- a = [],
40
- f = !0,
41
- o = !1;
32
+ function _iterableToArrayLimit(arr, i) {
33
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
34
+ if (null != _i) {
35
+ var _s,
36
+ _e,
37
+ _x,
38
+ _r,
39
+ _arr = [],
40
+ _n = !0,
41
+ _d = !1;
42
42
  try {
43
- if (i = (t = t.call(r)).next, 0 === l) {
44
- if (Object(t) !== t) return;
45
- f = !1;
46
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
47
- } catch (r) {
48
- o = !0, n = r;
43
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
44
+ if (Object(_i) !== _i) return;
45
+ _n = !1;
46
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
47
+ } catch (err) {
48
+ _d = !0, _e = err;
49
49
  } finally {
50
50
  try {
51
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
51
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
52
52
  } finally {
53
- if (o) throw n;
53
+ if (_d) throw _e;
54
54
  }
55
55
  }
56
- return a;
56
+ return _arr;
57
57
  }
58
58
  }
59
- function ownKeys(e, r) {
60
- var t = Object.keys(e);
59
+ function ownKeys(object, enumerableOnly) {
60
+ var keys = Object.keys(object);
61
61
  if (Object.getOwnPropertySymbols) {
62
- var o = Object.getOwnPropertySymbols(e);
63
- r && (o = o.filter(function (r) {
64
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
65
- })), t.push.apply(t, o);
62
+ var symbols = Object.getOwnPropertySymbols(object);
63
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
64
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
65
+ })), keys.push.apply(keys, symbols);
66
66
  }
67
- return t;
68
- }
69
- function _objectSpread2(e) {
70
- for (var r = 1; r < arguments.length; r++) {
71
- var t = null != arguments[r] ? arguments[r] : {};
72
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
73
- _defineProperty(e, r, t[r]);
74
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
75
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
67
+ return keys;
68
+ }
69
+ function _objectSpread2(target) {
70
+ for (var i = 1; i < arguments.length; i++) {
71
+ var source = null != arguments[i] ? arguments[i] : {};
72
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
73
+ _defineProperty(target, key, source[key]);
74
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
75
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
76
76
  });
77
77
  }
78
- return e;
78
+ return target;
79
79
  }
80
80
  function _regeneratorRuntime() {
81
81
  _regeneratorRuntime = function () {
82
- return e;
83
- };
84
- var t,
85
- e = {},
86
- r = Object.prototype,
87
- n = r.hasOwnProperty,
88
- o = Object.defineProperty || function (t, e, r) {
89
- t[e] = r.value;
82
+ return exports;
83
+ };
84
+ var exports = {},
85
+ Op = Object.prototype,
86
+ hasOwn = Op.hasOwnProperty,
87
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
88
+ obj[key] = desc.value;
90
89
  },
91
- i = "function" == typeof Symbol ? Symbol : {},
92
- a = i.iterator || "@@iterator",
93
- c = i.asyncIterator || "@@asyncIterator",
94
- u = i.toStringTag || "@@toStringTag";
95
- function define(t, e, r) {
96
- return Object.defineProperty(t, e, {
97
- value: r,
90
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
91
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
92
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
93
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
94
+ function define(obj, key, value) {
95
+ return Object.defineProperty(obj, key, {
96
+ value: value,
98
97
  enumerable: !0,
99
98
  configurable: !0,
100
99
  writable: !0
101
- }), t[e];
100
+ }), obj[key];
102
101
  }
103
102
  try {
104
103
  define({}, "");
105
- } catch (t) {
106
- define = function (t, e, r) {
107
- return t[e] = r;
104
+ } catch (err) {
105
+ define = function (obj, key, value) {
106
+ return obj[key] = value;
108
107
  };
109
108
  }
110
- function wrap(t, e, r, n) {
111
- var i = e && e.prototype instanceof Generator ? e : Generator,
112
- a = Object.create(i.prototype),
113
- c = new Context(n || []);
114
- return o(a, "_invoke", {
115
- value: makeInvokeMethod(t, r, c)
116
- }), a;
109
+ function wrap(innerFn, outerFn, self, tryLocsList) {
110
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
111
+ generator = Object.create(protoGenerator.prototype),
112
+ context = new Context(tryLocsList || []);
113
+ return defineProperty(generator, "_invoke", {
114
+ value: makeInvokeMethod(innerFn, self, context)
115
+ }), generator;
117
116
  }
118
- function tryCatch(t, e, r) {
117
+ function tryCatch(fn, obj, arg) {
119
118
  try {
120
119
  return {
121
120
  type: "normal",
122
- arg: t.call(e, r)
121
+ arg: fn.call(obj, arg)
123
122
  };
124
- } catch (t) {
123
+ } catch (err) {
125
124
  return {
126
125
  type: "throw",
127
- arg: t
126
+ arg: err
128
127
  };
129
128
  }
130
129
  }
131
- e.wrap = wrap;
132
- var h = "suspendedStart",
133
- l = "suspendedYield",
134
- f = "executing",
135
- s = "completed",
136
- y = {};
130
+ exports.wrap = wrap;
131
+ var ContinueSentinel = {};
137
132
  function Generator() {}
138
133
  function GeneratorFunction() {}
139
134
  function GeneratorFunctionPrototype() {}
140
- var p = {};
141
- define(p, a, function () {
135
+ var IteratorPrototype = {};
136
+ define(IteratorPrototype, iteratorSymbol, function () {
142
137
  return this;
143
138
  });
144
- var d = Object.getPrototypeOf,
145
- v = d && d(d(values([])));
146
- v && v !== r && n.call(v, a) && (p = v);
147
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
148
- function defineIteratorMethods(t) {
149
- ["next", "throw", "return"].forEach(function (e) {
150
- define(t, e, function (t) {
151
- return this._invoke(e, t);
139
+ var getProto = Object.getPrototypeOf,
140
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
141
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
142
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
143
+ function defineIteratorMethods(prototype) {
144
+ ["next", "throw", "return"].forEach(function (method) {
145
+ define(prototype, method, function (arg) {
146
+ return this._invoke(method, arg);
152
147
  });
153
148
  });
154
149
  }
155
- function AsyncIterator(t, e) {
156
- function invoke(r, o, i, a) {
157
- var c = tryCatch(t[r], t, o);
158
- if ("throw" !== c.type) {
159
- var u = c.arg,
160
- h = u.value;
161
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
162
- invoke("next", t, i, a);
163
- }, function (t) {
164
- invoke("throw", t, i, a);
165
- }) : e.resolve(h).then(function (t) {
166
- u.value = t, i(u);
167
- }, function (t) {
168
- return invoke("throw", t, i, a);
150
+ function AsyncIterator(generator, PromiseImpl) {
151
+ function invoke(method, arg, resolve, reject) {
152
+ var record = tryCatch(generator[method], generator, arg);
153
+ if ("throw" !== record.type) {
154
+ var result = record.arg,
155
+ value = result.value;
156
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
157
+ invoke("next", value, resolve, reject);
158
+ }, function (err) {
159
+ invoke("throw", err, resolve, reject);
160
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
161
+ result.value = unwrapped, resolve(result);
162
+ }, function (error) {
163
+ return invoke("throw", error, resolve, reject);
169
164
  });
170
165
  }
171
- a(c.arg);
166
+ reject(record.arg);
172
167
  }
173
- var r;
174
- o(this, "_invoke", {
175
- value: function (t, n) {
168
+ var previousPromise;
169
+ defineProperty(this, "_invoke", {
170
+ value: function (method, arg) {
176
171
  function callInvokeWithMethodAndArg() {
177
- return new e(function (e, r) {
178
- invoke(t, n, e, r);
172
+ return new PromiseImpl(function (resolve, reject) {
173
+ invoke(method, arg, resolve, reject);
179
174
  });
180
175
  }
181
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
176
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
182
177
  }
183
178
  });
184
179
  }
185
- function makeInvokeMethod(e, r, n) {
186
- var o = h;
187
- return function (i, a) {
188
- if (o === f) throw new Error("Generator is already running");
189
- if (o === s) {
190
- if ("throw" === i) throw a;
191
- return {
192
- value: t,
193
- done: !0
194
- };
195
- }
196
- for (n.method = i, n.arg = a;;) {
197
- var c = n.delegate;
198
- if (c) {
199
- var u = maybeInvokeDelegate(c, n);
200
- if (u) {
201
- if (u === y) continue;
202
- return u;
180
+ function makeInvokeMethod(innerFn, self, context) {
181
+ var state = "suspendedStart";
182
+ return function (method, arg) {
183
+ if ("executing" === state) throw new Error("Generator is already running");
184
+ if ("completed" === state) {
185
+ if ("throw" === method) throw arg;
186
+ return doneResult();
187
+ }
188
+ for (context.method = method, context.arg = arg;;) {
189
+ var delegate = context.delegate;
190
+ if (delegate) {
191
+ var delegateResult = maybeInvokeDelegate(delegate, context);
192
+ if (delegateResult) {
193
+ if (delegateResult === ContinueSentinel) continue;
194
+ return delegateResult;
203
195
  }
204
196
  }
205
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
206
- if (o === h) throw o = s, n.arg;
207
- n.dispatchException(n.arg);
208
- } else "return" === n.method && n.abrupt("return", n.arg);
209
- o = f;
210
- var p = tryCatch(e, r, n);
211
- if ("normal" === p.type) {
212
- if (o = n.done ? s : l, p.arg === y) continue;
197
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
198
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
199
+ context.dispatchException(context.arg);
200
+ } else "return" === context.method && context.abrupt("return", context.arg);
201
+ state = "executing";
202
+ var record = tryCatch(innerFn, self, context);
203
+ if ("normal" === record.type) {
204
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
213
205
  return {
214
- value: p.arg,
215
- done: n.done
206
+ value: record.arg,
207
+ done: context.done
216
208
  };
217
209
  }
218
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
210
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
219
211
  }
220
212
  };
221
213
  }
222
- function maybeInvokeDelegate(e, r) {
223
- var n = r.method,
224
- o = e.iterator[n];
225
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
226
- var i = tryCatch(o, e.iterator, r.arg);
227
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
228
- var a = i.arg;
229
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
214
+ function maybeInvokeDelegate(delegate, context) {
215
+ var methodName = context.method,
216
+ method = delegate.iterator[methodName];
217
+ 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;
218
+ var record = tryCatch(method, delegate.iterator, context.arg);
219
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
220
+ var info = record.arg;
221
+ 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);
230
222
  }
231
- function pushTryEntry(t) {
232
- var e = {
233
- tryLoc: t[0]
223
+ function pushTryEntry(locs) {
224
+ var entry = {
225
+ tryLoc: locs[0]
234
226
  };
235
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
227
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
236
228
  }
237
- function resetTryEntry(t) {
238
- var e = t.completion || {};
239
- e.type = "normal", delete e.arg, t.completion = e;
229
+ function resetTryEntry(entry) {
230
+ var record = entry.completion || {};
231
+ record.type = "normal", delete record.arg, entry.completion = record;
240
232
  }
241
- function Context(t) {
233
+ function Context(tryLocsList) {
242
234
  this.tryEntries = [{
243
235
  tryLoc: "root"
244
- }], t.forEach(pushTryEntry, this), this.reset(!0);
236
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
245
237
  }
246
- function values(e) {
247
- if (e || "" === e) {
248
- var r = e[a];
249
- if (r) return r.call(e);
250
- if ("function" == typeof e.next) return e;
251
- if (!isNaN(e.length)) {
252
- var o = -1,
253
- i = function next() {
254
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
255
- return next.value = t, next.done = !0, next;
238
+ function values(iterable) {
239
+ if (iterable) {
240
+ var iteratorMethod = iterable[iteratorSymbol];
241
+ if (iteratorMethod) return iteratorMethod.call(iterable);
242
+ if ("function" == typeof iterable.next) return iterable;
243
+ if (!isNaN(iterable.length)) {
244
+ var i = -1,
245
+ next = function next() {
246
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
247
+ return next.value = undefined, next.done = !0, next;
256
248
  };
257
- return i.next = i;
249
+ return next.next = next;
258
250
  }
259
251
  }
260
- throw new TypeError(typeof e + " is not iterable");
252
+ return {
253
+ next: doneResult
254
+ };
255
+ }
256
+ function doneResult() {
257
+ return {
258
+ value: undefined,
259
+ done: !0
260
+ };
261
261
  }
262
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
262
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
263
263
  value: GeneratorFunctionPrototype,
264
264
  configurable: !0
265
- }), o(GeneratorFunctionPrototype, "constructor", {
265
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
266
266
  value: GeneratorFunction,
267
267
  configurable: !0
268
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
269
- var e = "function" == typeof t && t.constructor;
270
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
271
- }, e.mark = function (t) {
272
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
273
- }, e.awrap = function (t) {
268
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
269
+ var ctor = "function" == typeof genFun && genFun.constructor;
270
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
271
+ }, exports.mark = function (genFun) {
272
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
273
+ }, exports.awrap = function (arg) {
274
274
  return {
275
- __await: t
275
+ __await: arg
276
276
  };
277
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
277
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
278
278
  return this;
279
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
280
- void 0 === i && (i = Promise);
281
- var a = new AsyncIterator(wrap(t, r, n, o), i);
282
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
283
- return t.done ? t.value : a.next();
279
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
280
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
281
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
282
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
283
+ return result.done ? result.value : iter.next();
284
284
  });
285
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
285
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
286
286
  return this;
287
- }), define(g, "toString", function () {
287
+ }), define(Gp, "toString", function () {
288
288
  return "[object Generator]";
289
- }), e.keys = function (t) {
290
- var e = Object(t),
291
- r = [];
292
- for (var n in e) r.push(n);
293
- return r.reverse(), function next() {
294
- for (; r.length;) {
295
- var t = r.pop();
296
- if (t in e) return next.value = t, next.done = !1, next;
289
+ }), exports.keys = function (val) {
290
+ var object = Object(val),
291
+ keys = [];
292
+ for (var key in object) keys.push(key);
293
+ return keys.reverse(), function next() {
294
+ for (; keys.length;) {
295
+ var key = keys.pop();
296
+ if (key in object) return next.value = key, next.done = !1, next;
297
297
  }
298
298
  return next.done = !0, next;
299
299
  };
300
- }, e.values = values, Context.prototype = {
300
+ }, exports.values = values, Context.prototype = {
301
301
  constructor: Context,
302
- reset: function (e) {
303
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
302
+ reset: function (skipTempReset) {
303
+ 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);
304
304
  },
305
305
  stop: function () {
306
306
  this.done = !0;
307
- var t = this.tryEntries[0].completion;
308
- if ("throw" === t.type) throw t.arg;
307
+ var rootRecord = this.tryEntries[0].completion;
308
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
309
309
  return this.rval;
310
310
  },
311
- dispatchException: function (e) {
312
- if (this.done) throw e;
313
- var r = this;
314
- function handle(n, o) {
315
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
316
- }
317
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
318
- var i = this.tryEntries[o],
319
- a = i.completion;
320
- if ("root" === i.tryLoc) return handle("end");
321
- if (i.tryLoc <= this.prev) {
322
- var c = n.call(i, "catchLoc"),
323
- u = n.call(i, "finallyLoc");
324
- if (c && u) {
325
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
326
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
327
- } else if (c) {
328
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
311
+ dispatchException: function (exception) {
312
+ if (this.done) throw exception;
313
+ var context = this;
314
+ function handle(loc, caught) {
315
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
316
+ }
317
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
318
+ var entry = this.tryEntries[i],
319
+ record = entry.completion;
320
+ if ("root" === entry.tryLoc) return handle("end");
321
+ if (entry.tryLoc <= this.prev) {
322
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
323
+ hasFinally = hasOwn.call(entry, "finallyLoc");
324
+ if (hasCatch && hasFinally) {
325
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
326
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
327
+ } else if (hasCatch) {
328
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
329
329
  } else {
330
- if (!u) throw new Error("try statement without catch or finally");
331
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
330
+ if (!hasFinally) throw new Error("try statement without catch or finally");
331
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
332
332
  }
333
333
  }
334
334
  }
335
335
  },
336
- abrupt: function (t, e) {
337
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
338
- var o = this.tryEntries[r];
339
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
340
- var i = o;
336
+ abrupt: function (type, arg) {
337
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
338
+ var entry = this.tryEntries[i];
339
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
340
+ var finallyEntry = entry;
341
341
  break;
342
342
  }
343
343
  }
344
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
345
- var a = i ? i.completion : {};
346
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
344
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
345
+ var record = finallyEntry ? finallyEntry.completion : {};
346
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
347
347
  },
348
- complete: function (t, e) {
349
- if ("throw" === t.type) throw t.arg;
350
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
348
+ complete: function (record, afterLoc) {
349
+ if ("throw" === record.type) throw record.arg;
350
+ 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;
351
351
  },
352
- finish: function (t) {
353
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
354
- var r = this.tryEntries[e];
355
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
352
+ finish: function (finallyLoc) {
353
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
354
+ var entry = this.tryEntries[i];
355
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
356
356
  }
357
357
  },
358
- catch: function (t) {
359
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
360
- var r = this.tryEntries[e];
361
- if (r.tryLoc === t) {
362
- var n = r.completion;
363
- if ("throw" === n.type) {
364
- var o = n.arg;
365
- resetTryEntry(r);
358
+ catch: function (tryLoc) {
359
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
360
+ var entry = this.tryEntries[i];
361
+ if (entry.tryLoc === tryLoc) {
362
+ var record = entry.completion;
363
+ if ("throw" === record.type) {
364
+ var thrown = record.arg;
365
+ resetTryEntry(entry);
366
366
  }
367
- return o;
367
+ return thrown;
368
368
  }
369
369
  }
370
370
  throw new Error("illegal catch attempt");
371
371
  },
372
- delegateYield: function (e, r, n) {
372
+ delegateYield: function (iterable, resultName, nextLoc) {
373
373
  return this.delegate = {
374
- iterator: values(e),
375
- resultName: r,
376
- nextLoc: n
377
- }, "next" === this.method && (this.arg = t), y;
378
- }
379
- }, e;
380
- }
381
- function _toPrimitive(t, r) {
382
- if ("object" != typeof t || !t) return t;
383
- var e = t[Symbol.toPrimitive];
384
- if (void 0 !== e) {
385
- var i = e.call(t, r || "default");
386
- if ("object" != typeof i) return i;
387
- throw new TypeError("@@toPrimitive must return a primitive value.");
388
- }
389
- return ("string" === r ? String : Number)(t);
390
- }
391
- function _toPropertyKey(t) {
392
- var i = _toPrimitive(t, "string");
393
- return "symbol" == typeof i ? i : String(i);
374
+ iterator: values(iterable),
375
+ resultName: resultName,
376
+ nextLoc: nextLoc
377
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
378
+ }
379
+ }, exports;
394
380
  }
395
- function _typeof(o) {
381
+ function _typeof(obj) {
396
382
  "@babel/helpers - typeof";
397
383
 
398
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
399
- return typeof o;
400
- } : function (o) {
401
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
402
- }, _typeof(o);
384
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
385
+ return typeof obj;
386
+ } : function (obj) {
387
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
388
+ }, _typeof(obj);
403
389
  }
404
390
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
405
391
  try {
@@ -557,6 +543,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
557
543
  }
558
544
  };
559
545
  }
546
+ function _toPrimitive(input, hint) {
547
+ if (typeof input !== "object" || input === null) return input;
548
+ var prim = input[Symbol.toPrimitive];
549
+ if (prim !== undefined) {
550
+ var res = prim.call(input, hint || "default");
551
+ if (typeof res !== "object") return res;
552
+ throw new TypeError("@@toPrimitive must return a primitive value.");
553
+ }
554
+ return (hint === "string" ? String : Number)(input);
555
+ }
556
+ function _toPropertyKey(arg) {
557
+ var key = _toPrimitive(arg, "string");
558
+ return typeof key === "symbol" ? key : String(key);
559
+ }
560
560
 
561
561
  function ApaasCascader(props) {
562
562
  return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
@@ -16772,7 +16772,8 @@ var Rate = function Rate(_ref) {
16772
16772
  var value = _ref.value,
16773
16773
  _onChange = _ref.onChange,
16774
16774
  placeholder = _ref.placeholder,
16775
- prefix = _ref.prefix;
16775
+ prefix = _ref.prefix,
16776
+ onSubmit = _ref.onSubmit;
16776
16777
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
16777
16778
  prefix: prefix,
16778
16779
  style: {
@@ -16782,7 +16783,8 @@ var Rate = function Rate(_ref) {
16782
16783
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
16783
16784
  onChange: function onChange(val) {
16784
16785
  _onChange([val ? Number(val) : val, value === null || value === void 0 ? void 0 : value[1]]);
16785
- }
16786
+ },
16787
+ onBlur: onSubmit
16786
16788
  }), /*#__PURE__*/React__default['default'].createElement("span", {
16787
16789
  style: {
16788
16790
  padding: '0px 8px'
@@ -16796,7 +16798,8 @@ var Rate = function Rate(_ref) {
16796
16798
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
16797
16799
  onChange: function onChange(val) {
16798
16800
  _onChange([value === null || value === void 0 ? void 0 : value[0], val ? Number(val) : val]);
16799
- }
16801
+ },
16802
+ onBlur: onSubmit
16800
16803
  }));
16801
16804
  };
16802
16805
 
@@ -16880,6 +16883,7 @@ var _SelectInput = function SelectInput(props) {
16880
16883
  newValue.keywords = '';
16881
16884
  }
16882
16885
  onChange(newValue);
16886
+ props.onSubmit();
16883
16887
  };
16884
16888
  var handleInputChange = function handleInputChange(e) {
16885
16889
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
@@ -16902,7 +16906,8 @@ var _SelectInput = function SelectInput(props) {
16902
16906
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16903
16907
  value: value.keywords,
16904
16908
  allowClear: true,
16905
- onChange: handleInputChange
16909
+ onChange: handleInputChange,
16910
+ onBlur: props.onSubmit
16906
16911
  }) : null);
16907
16912
  };
16908
16913
  var _TradeInput = function TradeInput(props) {
@@ -16930,59 +16935,71 @@ var _TradeInput = function TradeInput(props) {
16930
16935
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16931
16936
  allowClear: true,
16932
16937
  value: value.value,
16933
- onChange: handleInputChange
16938
+ onChange: handleInputChange,
16939
+ onBlur: props.onSubmit
16934
16940
  }), isRepeat ) : /*#__PURE__*/React__default['default'].createElement("div", {
16935
16941
  key: 'tradeInput'
16936
16942
  }, /*#__PURE__*/React__default['default'].createElement(TrimInput, {
16937
16943
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16938
16944
  allowClear: true,
16939
16945
  value: value.value,
16940
- onChange: handleInputChange
16946
+ onChange: handleInputChange,
16947
+ onBlur: props.onSubmit
16941
16948
  }), isRepeat );
16942
16949
  };
16943
16950
  var componentMap$1 = {
16944
16951
  Input: function Input(props) {
16945
16952
  return "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
16946
16953
  title: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name)
16947
- }, /*#__PURE__*/React__default['default'].createElement(TrimInput, _objectSpread2({
16954
+ }, /*#__PURE__*/React__default['default'].createElement(TrimInput, _objectSpread2(_objectSpread2({
16948
16955
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16949
16956
  allowClear: true
16950
- }, props))) : /*#__PURE__*/React__default['default'].createElement(TrimInput, _objectSpread2({
16957
+ }, props), {}, {
16958
+ onBlur: props.handleBlur
16959
+ }))) : /*#__PURE__*/React__default['default'].createElement(TrimInput, _objectSpread2(_objectSpread2({
16951
16960
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16952
16961
  allowClear: true
16953
- }, props));
16962
+ }, props), {}, {
16963
+ onBlur: props.handleBlur
16964
+ }));
16954
16965
  },
16955
16966
  MultipleSelect: function MultipleSelect(props) {
16956
16967
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
16957
16968
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16958
- }, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
16969
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
16959
16970
  mode: "multiple",
16960
16971
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16961
16972
  optionFilterProp: "label",
16962
16973
  allowClear: true,
16963
16974
  maxTagCount: "responsive"
16964
- }, props))) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
16975
+ }, props), {}, {
16976
+ onChange: props.handleChange
16977
+ }))) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
16965
16978
  mode: "multiple",
16966
16979
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16967
16980
  optionFilterProp: "label",
16968
16981
  allowClear: true,
16969
16982
  maxTagCount: "responsive"
16970
- }, props));
16983
+ }, props), {}, {
16984
+ onChange: props.handleChange
16985
+ }));
16971
16986
  },
16972
16987
  Date: function Date(props) {
16973
- return /*#__PURE__*/React__default['default'].createElement(RangePicker, _objectSpread2({
16988
+ return /*#__PURE__*/React__default['default'].createElement(RangePicker, _objectSpread2(_objectSpread2({
16974
16989
  placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
16975
16990
  allowClear: true,
16976
16991
  showTime: {
16977
16992
  defaultValue: [hooks().startOf('day'), hooks().endOf('day')]
16978
16993
  },
16979
16994
  maxTagCount: "responsive"
16980
- }, props));
16995
+ }, props), {}, {
16996
+ onChange: props.handleChange
16997
+ }));
16981
16998
  },
16982
16999
  Cascader: function Cascader(props) {
16983
17000
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
16984
17001
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16985
- }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
17002
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({
16986
17003
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16987
17004
  allowClear: true,
16988
17005
  showSearch: true,
@@ -16992,7 +17009,9 @@ var componentMap$1 = {
16992
17009
  value: 'actived',
16993
17010
  children: 'children'
16994
17011
  }
16995
- }, props))) : /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
17012
+ }, props), {}, {
17013
+ onChange: props.handleChange
17014
+ }))) : /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({
16996
17015
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16997
17016
  allowClear: true,
16998
17017
  showSearch: true,
@@ -17002,7 +17021,9 @@ var componentMap$1 = {
17002
17021
  value: 'actived',
17003
17022
  children: 'children'
17004
17023
  }
17005
- }, props));
17024
+ }, props), {}, {
17025
+ onChange: props.handleChange
17026
+ }));
17006
17027
  },
17007
17028
  // ShopList: (props: any) => (
17008
17029
  // <ShopList
@@ -17025,9 +17046,11 @@ var componentMap$1 = {
17025
17046
  return /*#__PURE__*/React__default['default'].createElement(_TradeInput, _objectSpread2({}, props));
17026
17047
  },
17027
17048
  AsyncSelect: function AsyncSelect$1(props) {
17028
- return /*#__PURE__*/React__default['default'].createElement(AsyncSelect, _objectSpread2({
17049
+ return /*#__PURE__*/React__default['default'].createElement(AsyncSelect, _objectSpread2(_objectSpread2({
17029
17050
  placeholder: "\u8BF7\u9009\u62E9".concat((props === null || props === void 0 ? void 0 : props.name) || '')
17030
- }, props));
17051
+ }, props), {}, {
17052
+ onChange: props.handleChange
17053
+ }));
17031
17054
  }
17032
17055
  };
17033
17056
  var FilterSelectOption = function FilterSelectOption(props) {
@@ -17037,8 +17060,26 @@ var FilterSelectOption = function FilterSelectOption(props) {
17037
17060
  componentProps = props.props,
17038
17061
  ShopList = props.ShopList,
17039
17062
  otherProps = _objectWithoutProperties(props, _excluded$g);
17063
+ var handleChange = function handleChange() {
17064
+ var _props$onChange, _props$onSubmit;
17065
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
17066
+ params[_key] = arguments[_key];
17067
+ }
17068
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call.apply(_props$onChange, [props].concat(params));
17069
+ (_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props);
17070
+ };
17071
+ var handleBlur = function handleBlur(props) {
17072
+ return function () {
17073
+ var _props$onBlur, _props$onSubmit2;
17074
+ for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
17075
+ params[_key2] = arguments[_key2];
17076
+ }
17077
+ (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call.apply(_props$onBlur, [props].concat(params));
17078
+ (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 ? void 0 : _props$onSubmit2.call(props);
17079
+ };
17080
+ };
17040
17081
  var Comp = filterComponentType === 'ShopList' ? function (props) {
17041
- return /*#__PURE__*/React__default['default'].createElement(ShopList, _objectSpread2({
17082
+ return /*#__PURE__*/React__default['default'].createElement(ShopList, _objectSpread2(_objectSpread2({
17042
17083
  placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
17043
17084
  showSearch: true,
17044
17085
  optionFilterProp: "label",
@@ -17048,7 +17089,9 @@ var FilterSelectOption = function FilterSelectOption(props) {
17048
17089
  style: {
17049
17090
  width: '190px'
17050
17091
  }
17051
- }, props));
17092
+ }, props), {}, {
17093
+ onChange: handleChange
17094
+ }));
17052
17095
  } : componentMap$1[filterComponentType];
17053
17096
  var newComponentProps = lodash.cloneDeep(componentProps);
17054
17097
  if (kmkfUtils.hasAddNullComponent.includes(props.type)) {
@@ -17223,7 +17266,10 @@ var FilterSelectOption = function FilterSelectOption(props) {
17223
17266
  })
17224
17267
  });
17225
17268
  }
17226
- if (Comp) return /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread2(_objectSpread2({}, newComponentProps), otherProps));
17269
+ if (Comp) return /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread2(_objectSpread2(_objectSpread2({}, newComponentProps), otherProps), {}, {
17270
+ handleChange: handleChange,
17271
+ handleBlur: handleBlur
17272
+ }));
17227
17273
  return null;
17228
17274
  };
17229
17275
 
@@ -17260,7 +17306,8 @@ var SearchHeader = function SearchHeader(_ref) {
17260
17306
  _ref$isShowTime = _ref.isShowTime,
17261
17307
  isShowTime = _ref$isShowTime === void 0 ? true : _ref$isShowTime,
17262
17308
  timeOptions = _ref.timeOptions,
17263
- ShopList = _ref.ShopList;
17309
+ ShopList = _ref.ShopList,
17310
+ onSubmit = _ref.onSubmit;
17264
17311
  // const fixedFieldsOptions = useMemo(() => {
17265
17312
  // return allFields.filter(item => fixedFields?.includes(item.id));
17266
17313
  // }, [fixedFields, allFields]);
@@ -17316,9 +17363,11 @@ var SearchHeader = function SearchHeader(_ref) {
17316
17363
  minWidth: '190px'
17317
17364
  },
17318
17365
  key: item.id
17319
- }, /*#__PURE__*/React__default['default'].createElement(FilterSelectOption, _objectSpread2({
17366
+ }, /*#__PURE__*/React__default['default'].createElement(FilterSelectOption, _objectSpread2(_objectSpread2({
17320
17367
  ShopList: ShopList
17321
- }, item)));
17368
+ }, item), {}, {
17369
+ onSubmit: onSubmit
17370
+ })));
17322
17371
  }), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, layout === 'inner' && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, children)))), layout === 'block' && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, children));
17323
17372
  };
17324
17373
 
@@ -17355,7 +17404,8 @@ var SearchForm$1 = function SearchForm(props) {
17355
17404
  ShopList: props.ShopList,
17356
17405
  fixedFields: filterItems || [],
17357
17406
  allFields: filterItems || [],
17358
- status: status === null || status === void 0 ? void 0 : status.open
17407
+ status: status === null || status === void 0 ? void 0 : status.open,
17408
+ onSubmit: submit
17359
17409
  }, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
17360
17410
  type: "primary",
17361
17411
  onClick: submit