@teamix/pro 1.4.24 → 1.5.0-beta.1

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/pro.js CHANGED
@@ -2295,8 +2295,6 @@ exports.Z = {
2295
2295
  /* harmony import */ var _formily_reactive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92650);
2296
2296
  /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30255);
2297
2297
  /* harmony import */ var _shared_effective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39046);
2298
- /* harmony import */ var _onFormEffects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26593);
2299
-
2300
2298
 
2301
2299
 
2302
2300
 
@@ -2349,17 +2347,11 @@ function onFieldInit(pattern, callback) {
2349
2347
  }
2350
2348
  }
2351
2349
  function onFieldReact(pattern, callback) {
2352
- var disposers = [];
2353
2350
  onFieldInit(pattern, function (field, form) {
2354
- disposers.push((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.autorun)(function () {
2351
+ field.disposers.push((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.autorun)(function () {
2355
2352
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(callback)) callback(field, form);
2356
2353
  }));
2357
2354
  });
2358
- (0,_onFormEffects__WEBPACK_IMPORTED_MODULE_4__/* .onFormUnmount */ .h9)(function () {
2359
- disposers.forEach(function (dispose) {
2360
- dispose();
2361
- });
2362
- });
2363
2355
  }
2364
2356
  function onFieldChange(pattern, watches, callback) {
2365
2357
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(watches)) {
@@ -2369,21 +2361,16 @@ function onFieldChange(pattern, watches, callback) {
2369
2361
  watches = watches || ['value'];
2370
2362
  }
2371
2363
 
2372
- var disposers = [];
2373
2364
  onFieldInit(pattern, function (field, form) {
2374
2365
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(callback)) callback(field, form);
2375
- disposers.push((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.reaction)(function () {
2366
+ var dispose = (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.reaction)(function () {
2376
2367
  return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .toArr */ ._K)(watches).map(function (key) {
2377
2368
  return field[key];
2378
2369
  });
2379
2370
  }, function () {
2380
2371
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(callback)) callback(field, form);
2381
- }));
2382
- });
2383
- (0,_onFormEffects__WEBPACK_IMPORTED_MODULE_4__/* .onFormUnmount */ .h9)(function () {
2384
- disposers.forEach(function (dispose) {
2385
- dispose();
2386
2372
  });
2373
+ field.disposers.push(dispose);
2387
2374
  });
2388
2375
  }
2389
2376
 
@@ -2828,6 +2815,43 @@ function (_super) {
2828
2815
  /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30255);
2829
2816
  /* harmony import */ var _shared_internals__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68302);
2830
2817
  /* harmony import */ var _Query__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50833);
2818
+ var __read = undefined && undefined.__read || function (o, n) {
2819
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
2820
+ if (!m) return o;
2821
+ var i = m.call(o),
2822
+ r,
2823
+ ar = [],
2824
+ e;
2825
+
2826
+ try {
2827
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
2828
+ ar.push(r.value);
2829
+ }
2830
+ } catch (error) {
2831
+ e = {
2832
+ error: error
2833
+ };
2834
+ } finally {
2835
+ try {
2836
+ if (r && !r.done && (m = i["return"])) m.call(i);
2837
+ } finally {
2838
+ if (e) throw e.error;
2839
+ }
2840
+ }
2841
+
2842
+ return ar;
2843
+ };
2844
+
2845
+ var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
2846
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2847
+ if (ar || !(i in from)) {
2848
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2849
+ ar[i] = from[i];
2850
+ }
2851
+ }
2852
+ return to.concat(ar || Array.prototype.slice.call(from));
2853
+ };
2854
+
2831
2855
 
2832
2856
 
2833
2857
 
@@ -2840,6 +2864,7 @@ function () {
2840
2864
  var _this = this;
2841
2865
 
2842
2866
  this.disposers = [];
2867
+ this.actions = {};
2843
2868
 
2844
2869
  this.setTitle = function (title) {
2845
2870
  _this.title = title;
@@ -2953,6 +2978,26 @@ function () {
2953
2978
  this.match = function (pattern) {
2954
2979
  return _formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .FormPath.parse */ .Dm.parse(pattern).matchAliasGroup(_this.address, _this.path);
2955
2980
  };
2981
+
2982
+ this.inject = function (actions) {
2983
+ (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .each */ .S6)(actions, function (action, key) {
2984
+ if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(action)) {
2985
+ _this.actions[key] = action;
2986
+ }
2987
+ });
2988
+ };
2989
+
2990
+ this.invoke = function (name) {
2991
+ var _a, _b;
2992
+
2993
+ var args = [];
2994
+
2995
+ for (var _i = 1; _i < arguments.length; _i++) {
2996
+ args[_i - 1] = arguments[_i];
2997
+ }
2998
+
2999
+ return (_b = (_a = _this.actions)[name]) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([_a], __read(args), false));
3000
+ };
2956
3001
  }
2957
3002
 
2958
3003
  BaseField.prototype.locate = function (address) {
@@ -3413,11 +3458,34 @@ function (_super) {
3413
3458
  };
3414
3459
 
3415
3460
  _this.setValue = function (value) {
3416
- _this.value = value;
3461
+ if (_this.destroyed) return;
3462
+
3463
+ if (!_this.initialized) {
3464
+ if (_this.display === 'none') {
3465
+ _this.caches.value = value;
3466
+ return;
3467
+ }
3468
+
3469
+ value = (0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .getValidFieldDefaultValue */ .Lu)(value, _this.initialValue);
3470
+
3471
+ if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .allowAssignDefaultValue */ .ab)(_this.value, value) && !_this.designable) {
3472
+ return;
3473
+ }
3474
+ }
3475
+
3476
+ _this.form.setValuesIn(_this.path, value);
3417
3477
  };
3418
3478
 
3419
3479
  _this.setInitialValue = function (initialValue) {
3420
- _this.initialValue = initialValue;
3480
+ if (_this.destroyed) return;
3481
+
3482
+ if (!_this.initialized) {
3483
+ if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .allowAssignDefaultValue */ .ab)(_this.initialValue, initialValue) && !_this.designable) {
3484
+ return;
3485
+ }
3486
+ }
3487
+
3488
+ _this.form.setInitialValuesIn(_this.path, initialValue);
3421
3489
  };
3422
3490
 
3423
3491
  _this.setLoading = function (loading) {
@@ -3619,8 +3687,8 @@ function (_super) {
3619
3687
  this.validator = this.props.validator;
3620
3688
  this.required = this.props.required;
3621
3689
  this.content = this.props.content;
3622
- this.value = (0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .getValidFieldDefaultValue */ .Lu)(this.props.value, this.props.initialValue);
3623
3690
  this.initialValue = this.props.initialValue;
3691
+ this.value = this.props.value;
3624
3692
  this.data = this.props.data;
3625
3693
  this.decorator = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .toArr */ ._K)(this.props.decorator);
3626
3694
  this.component = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .toArr */ ._K)(this.props.component);
@@ -3870,20 +3938,7 @@ function (_super) {
3870
3938
  return this.form.getValuesIn(this.path);
3871
3939
  },
3872
3940
  set: function set(value) {
3873
- if (this.destroyed) return;
3874
-
3875
- if (!this.initialized) {
3876
- if (this.display === 'none') {
3877
- this.caches.value = value;
3878
- return;
3879
- }
3880
-
3881
- if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .allowAssignDefaultValue */ .ab)(this.value, value) && !this.designable) {
3882
- return;
3883
- }
3884
- }
3885
-
3886
- this.form.setValuesIn(this.path, value);
3941
+ this.setValue(value);
3887
3942
  },
3888
3943
  enumerable: false,
3889
3944
  configurable: true
@@ -3893,15 +3948,7 @@ function (_super) {
3893
3948
  return this.form.getInitialValuesIn(this.path);
3894
3949
  },
3895
3950
  set: function set(initialValue) {
3896
- if (this.destroyed) return;
3897
-
3898
- if (!this.initialized) {
3899
- if (!(0,_shared_internals__WEBPACK_IMPORTED_MODULE_4__/* .allowAssignDefaultValue */ .ab)(this.initialValue, initialValue) && !this.designable) {
3900
- return;
3901
- }
3902
- }
3903
-
3904
- this.form.setInitialValuesIn(this.path, initialValue);
3951
+ this.setInitialValue(initialValue);
3905
3952
  },
3906
3953
  enumerable: false,
3907
3954
  configurable: true
@@ -5935,15 +5982,15 @@ var patchFieldStates = function patchFieldStates(target, patches) {
5935
5982
  }
5936
5983
  });
5937
5984
  };
5938
- var destroy = function destroy(target, address, removeValue) {
5939
- if (removeValue === void 0) {
5940
- removeValue = true;
5985
+ var destroy = function destroy(target, address, forceClear) {
5986
+ if (forceClear === void 0) {
5987
+ forceClear = true;
5941
5988
  }
5942
5989
 
5943
5990
  var field = target[address];
5944
5991
  field === null || field === void 0 ? void 0 : field.dispose();
5945
5992
 
5946
- if ((0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isDataField */ .Ip)(field) && removeValue) {
5993
+ if ((0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isDataField */ .Ip)(field) && forceClear) {
5947
5994
  var form = field.form;
5948
5995
  var path = field.path;
5949
5996
  form.deleteValuesIn(path);
@@ -5969,7 +6016,11 @@ var patchFormValues = function patchFormValues(form, path, source) {
5969
6016
  var targetValue = form.getValuesIn(path);
5970
6017
  var targetField = form.query(path).take();
5971
6018
  var isUnVoidField = targetField && !(0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isVoidField */ .JF)(targetField);
5972
- if (isUnVoidField && targetField.display === 'none') return;
6019
+
6020
+ if (isUnVoidField && targetField.display === 'none') {
6021
+ targetField.caches.value = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(source);
6022
+ return;
6023
+ }
5973
6024
 
5974
6025
  if (allowAssignDefaultValue(targetValue, source)) {
5975
6026
  update(path, source);
@@ -6212,10 +6263,6 @@ var spliceArrayState = function spliceArrayState(field, props) {
6212
6263
  }
6213
6264
 
6214
6265
  if (isInsertNode(identifier) || isDeleteNode(identifier)) {
6215
- if ((0,_externals__WEBPACK_IMPORTED_MODULE_4__/* .isDataField */ .Ip)(field)) {
6216
- form.deleteInitialValuesIn(field.path);
6217
- }
6218
-
6219
6266
  fieldPatches.push({
6220
6267
  type: 'remove',
6221
6268
  address: identifier
@@ -6505,12 +6552,11 @@ var createBatchStateGetter = function createBatchStateGetter(form) {
6505
6552
  };
6506
6553
  };
6507
6554
  var triggerFormInitialValuesChange = function triggerFormInitialValuesChange(form, change) {
6508
- var path = change.path;
6509
6555
  if (Array.isArray(change.object) && change.key === 'length') return;
6510
6556
 
6511
6557
  if ((0,_formily_reactive__WEBPACK_IMPORTED_MODULE_2__.contains)(form.initialValues, change.object) || form.initialValues === change.value) {
6512
6558
  if (change.type === 'add' || change.type === 'set') {
6513
- patchFormValues(form, path.slice(1), change.value);
6559
+ patchFormValues(form, change.path.slice(1), change.value);
6514
6560
  }
6515
6561
 
6516
6562
  if (form.initialized) {
@@ -9206,14 +9252,7 @@ var getIn = function getIn(segments, source) {
9206
9252
  var rules = (0,_destructor__WEBPACK_IMPORTED_MODULE_2__/* .getDestructor */ .mV)(index);
9207
9253
 
9208
9254
  if (!rules) {
9209
- if (!isValid(source)) {
9210
- if (i !== segments.length - 1) {
9211
- return source;
9212
- }
9213
-
9214
- break;
9215
- }
9216
-
9255
+ if (!isValid(source)) return;
9217
9256
  source = source[index];
9218
9257
  } else {
9219
9258
  source = (0,_destructor__WEBPACK_IMPORTED_MODULE_2__/* .getInByDestructor */ .Jm)(source, rules, {
@@ -11392,7 +11431,7 @@ Field.displayName = 'Field';
11392
11431
 
11393
11432
 
11394
11433
 
11395
- var FormConsumer = (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_2__/* .observer */ .P)(function (props) {
11434
+ var FormConsumer = (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_2__/* .observer */ .Pi)(function (props) {
11396
11435
  var children = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isFn */ .LQ)(props.children) ? props.children((0,_hooks__WEBPACK_IMPORTED_MODULE_3__/* .useForm */ .cI)()) : null;
11397
11436
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children);
11398
11437
  });
@@ -11488,6 +11527,8 @@ ObjectField.displayName = 'ObjectField';
11488
11527
  /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71131);
11489
11528
  /* harmony import */ var _formily_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7186);
11490
11529
  /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36869);
11530
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11531
+
11491
11532
  var __assign = undefined && undefined.__assign || function () {
11492
11533
  __assign = Object.assign || function (t) {
11493
11534
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -11554,6 +11595,10 @@ var mergeChildren = function mergeChildren(children, content) {
11554
11595
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children, content);
11555
11596
  };
11556
11597
 
11598
+ var isValidComponent = function isValidComponent(target) {
11599
+ return target && (_typeof(target) === 'object' || typeof target === 'function');
11600
+ };
11601
+
11557
11602
  var renderChildren = function renderChildren(children, field, form) {
11558
11603
  return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(children) ? children(field, form) : children;
11559
11604
  };
@@ -11571,19 +11616,22 @@ var ReactiveInternal = function ReactiveInternal(props) {
11571
11616
  var content = mergeChildren(renderChildren(props.children, field, field.form), (_a = field.content) !== null && _a !== void 0 ? _a : field.componentProps.children);
11572
11617
  if (field.display !== 'visible') return null;
11573
11618
 
11574
- var renderDecorator = function renderDecorator(children) {
11619
+ var getComponent = function getComponent(target) {
11575
11620
  var _a;
11576
11621
 
11622
+ return isValidComponent(target) ? target : (_a = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(components, target)) !== null && _a !== void 0 ? _a : target;
11623
+ };
11624
+
11625
+ var renderDecorator = function renderDecorator(children) {
11577
11626
  if (!field.decoratorType) {
11578
11627
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, children);
11579
11628
  }
11580
11629
 
11581
- var finalComponent = (_a = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(components, field.decoratorType)) !== null && _a !== void 0 ? _a : field.decoratorType;
11582
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.decoratorProps), children);
11630
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(getComponent(field.decoratorType), (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.decoratorProps), children);
11583
11631
  };
11584
11632
 
11585
11633
  var renderComponent = function renderComponent() {
11586
- var _a, _b, _c, _d;
11634
+ var _a, _b, _c;
11587
11635
 
11588
11636
  if (!field.componentType) return content;
11589
11637
  var value = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.value : undefined;
@@ -11625,8 +11673,7 @@ var ReactiveInternal = function ReactiveInternal(props) {
11625
11673
  } : (_c = field.componentProps) === null || _c === void 0 ? void 0 : _c.onBlur;
11626
11674
  var disabled = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'disabled' || field.pattern === 'readPretty' : undefined;
11627
11675
  var readOnly = !(0,_formily_core__WEBPACK_IMPORTED_MODULE_4__.isVoidField)(field) ? field.pattern === 'readOnly' : undefined;
11628
- var finalComponent = (_d = _formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .FormPath.getIn */ .Dm.getIn(components, field.componentType)) !== null && _d !== void 0 ? _d : field.componentType;
11629
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(finalComponent, __assign(__assign({
11676
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(getComponent(field.componentType), __assign(__assign({
11630
11677
  disabled: disabled,
11631
11678
  readOnly: readOnly
11632
11679
  }, (0,_formily_reactive__WEBPACK_IMPORTED_MODULE_1__.toJS)(field.componentProps)), {
@@ -11641,12 +11688,100 @@ var ReactiveInternal = function ReactiveInternal(props) {
11641
11688
  };
11642
11689
 
11643
11690
  ReactiveInternal.displayName = 'ReactiveField';
11644
- var ReactiveField = (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_2__/* .observer */ .P)(ReactiveInternal, {
11691
+ var ReactiveField = (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_2__/* .observer */ .Pi)(ReactiveInternal, {
11645
11692
  forwardRef: true
11646
11693
  });
11647
11694
 
11648
11695
  /***/ }),
11649
11696
 
11697
+ /***/ 38170:
11698
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11699
+
11700
+ "use strict";
11701
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11702
+ /* harmony export */ "D": () => (/* binding */ RecordScope)
11703
+ /* harmony export */ });
11704
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
11705
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11706
+ /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71131);
11707
+ /* harmony import */ var _ExpressionScope__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27852);
11708
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37916);
11709
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11710
+
11711
+
11712
+
11713
+
11714
+
11715
+ var RecordScope = function RecordScope(props) {
11716
+ var scope = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__/* .useExpressionScope */ .t5)();
11717
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ExpressionScope__WEBPACK_IMPORTED_MODULE_2__/* .ExpressionScope */ .P, {
11718
+ value: {
11719
+ get $lookup() {
11720
+ return scope === null || scope === void 0 ? void 0 : scope.$record;
11721
+ },
11722
+
11723
+ get $record() {
11724
+ var _a;
11725
+
11726
+ var record = (_a = props.getRecord) === null || _a === void 0 ? void 0 : _a.call(props);
11727
+
11728
+ if (_typeof(record) === 'object') {
11729
+ return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .lazyMerge */ .e_)(record, {
11730
+ get $lookup() {
11731
+ return scope === null || scope === void 0 ? void 0 : scope.$record;
11732
+ },
11733
+
11734
+ get $index() {
11735
+ var _a;
11736
+
11737
+ return (_a = props.getIndex) === null || _a === void 0 ? void 0 : _a.call(props);
11738
+ }
11739
+
11740
+ });
11741
+ }
11742
+
11743
+ return record;
11744
+ },
11745
+
11746
+ get $index() {
11747
+ var _a;
11748
+
11749
+ return (_a = props.getIndex) === null || _a === void 0 ? void 0 : _a.call(props);
11750
+ }
11751
+
11752
+ }
11753
+ }, props.children);
11754
+ };
11755
+
11756
+ /***/ }),
11757
+
11758
+ /***/ 6423:
11759
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11760
+
11761
+ "use strict";
11762
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11763
+ /* harmony export */ "N": () => (/* binding */ RecordsScope)
11764
+ /* harmony export */ });
11765
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
11766
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11767
+ /* harmony import */ var _ExpressionScope__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27852);
11768
+
11769
+
11770
+ var RecordsScope = function RecordsScope(props) {
11771
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ExpressionScope__WEBPACK_IMPORTED_MODULE_1__/* .ExpressionScope */ .P, {
11772
+ value: {
11773
+ get $records() {
11774
+ var _a, _b;
11775
+
11776
+ return (_b = (_a = props.getRecords) === null || _a === void 0 ? void 0 : _a.call(props)) !== null && _b !== void 0 ? _b : [];
11777
+ }
11778
+
11779
+ }
11780
+ }, props.children);
11781
+ };
11782
+
11783
+ /***/ }),
11784
+
11650
11785
  /***/ 97953:
11651
11786
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11652
11787
 
@@ -11691,7 +11826,7 @@ var __assign = undefined && undefined.__assign || function () {
11691
11826
 
11692
11827
 
11693
11828
  var useFieldProps = function useFieldProps(schema) {
11694
- var scope = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared__WEBPACK_IMPORTED_MODULE_3__/* .SchemaExpressionScopeContext */ .pv);
11829
+ var scope = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__/* .useExpressionScope */ .t5)();
11695
11830
  return schema.toFieldProps({
11696
11831
  scope: scope
11697
11832
  });
@@ -11797,6 +11932,7 @@ var RecursionField = function RecursionField(props) {
11797
11932
  /* harmony import */ var _shared_render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17287);
11798
11933
  /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36869);
11799
11934
  /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71131);
11935
+ /* harmony import */ var _ExpressionScope__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27852);
11800
11936
  var __assign = undefined && undefined.__assign || function () {
11801
11937
  __assign = Object.assign || function (t) {
11802
11938
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -11819,6 +11955,7 @@ var __assign = undefined && undefined.__assign || function () {
11819
11955
 
11820
11956
 
11821
11957
 
11958
+
11822
11959
  var env = {
11823
11960
  nonameId: 0
11824
11961
  };
@@ -11855,7 +11992,7 @@ function createSchemaField(options) {
11855
11992
  value: options
11856
11993
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaComponentsContext.Provider */ .$B.Provider, {
11857
11994
  value: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_5__/* .lazyMerge */ .e_)(options.components, props.components)
11858
- }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__/* .SchemaExpressionScopeContext.Provider */ .pv.Provider, {
11995
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ExpressionScope__WEBPACK_IMPORTED_MODULE_6__/* .ExpressionScope */ .P, {
11859
11996
  value: (0,_formily_shared__WEBPACK_IMPORTED_MODULE_5__/* .lazyMerge */ .e_)(options.scope, props.scope)
11860
11997
  }, renderMarkup(), renderChildren())));
11861
11998
  }
@@ -12035,14 +12172,16 @@ VoidField.displayName = 'VoidField';
12035
12172
 
12036
12173
  "use strict";
12037
12174
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12175
+ /* harmony export */ "DO": () => (/* reexport safe */ _RecordScope__WEBPACK_IMPORTED_MODULE_8__.D),
12176
+ /* harmony export */ "ND": () => (/* reexport safe */ _RecordsScope__WEBPACK_IMPORTED_MODULE_7__.N),
12038
12177
  /* harmony export */ "OF": () => (/* reexport safe */ _ArrayField__WEBPACK_IMPORTED_MODULE_2__.O),
12039
12178
  /* harmony export */ "Pl": () => (/* reexport safe */ _ExpressionScope__WEBPACK_IMPORTED_MODULE_6__.P),
12040
12179
  /* harmony export */ "RV": () => (/* reexport safe */ _FormProvider__WEBPACK_IMPORTED_MODULE_0__.R),
12041
12180
  /* harmony export */ "Uk": () => (/* reexport safe */ _RecursionField__WEBPACK_IMPORTED_MODULE_5__.U),
12042
12181
  /* harmony export */ "Wo": () => (/* reexport safe */ _ObjectField__WEBPACK_IMPORTED_MODULE_3__.W),
12043
12182
  /* harmony export */ "Yy": () => (/* reexport safe */ _FormConsumer__WEBPACK_IMPORTED_MODULE_1__.Y),
12044
- /* harmony export */ "cA": () => (/* reexport safe */ _SchemaField__WEBPACK_IMPORTED_MODULE_7__.c),
12045
- /* harmony export */ "gN": () => (/* reexport safe */ _Field__WEBPACK_IMPORTED_MODULE_8__.g),
12183
+ /* harmony export */ "cA": () => (/* reexport safe */ _SchemaField__WEBPACK_IMPORTED_MODULE_9__.c),
12184
+ /* harmony export */ "gN": () => (/* reexport safe */ _Field__WEBPACK_IMPORTED_MODULE_10__.g),
12046
12185
  /* harmony export */ "jG": () => (/* reexport safe */ _VoidField__WEBPACK_IMPORTED_MODULE_4__.j)
12047
12186
  /* harmony export */ });
12048
12187
  /* harmony import */ var _FormProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21490);
@@ -12052,8 +12191,12 @@ VoidField.displayName = 'VoidField';
12052
12191
  /* harmony import */ var _VoidField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78945);
12053
12192
  /* harmony import */ var _RecursionField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97953);
12054
12193
  /* harmony import */ var _ExpressionScope__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27852);
12055
- /* harmony import */ var _SchemaField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(19958);
12056
- /* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(62360);
12194
+ /* harmony import */ var _RecordsScope__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6423);
12195
+ /* harmony import */ var _RecordScope__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38170);
12196
+ /* harmony import */ var _SchemaField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(19958);
12197
+ /* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62360);
12198
+
12199
+
12057
12200
 
12058
12201
 
12059
12202
 
@@ -12075,13 +12218,16 @@ VoidField.displayName = 'VoidField';
12075
12218
  /* harmony export */ "U$": () => (/* reexport safe */ _useField__WEBPACK_IMPORTED_MODULE_1__.U),
12076
12219
  /* harmony export */ "U7": () => (/* reexport safe */ _useFormEffects__WEBPACK_IMPORTED_MODULE_4__.U),
12077
12220
  /* harmony export */ "XA": () => (/* reexport safe */ _useFieldSchema__WEBPACK_IMPORTED_MODULE_3__.X),
12078
- /* harmony export */ "cI": () => (/* reexport safe */ _useForm__WEBPACK_IMPORTED_MODULE_0__.c)
12221
+ /* harmony export */ "cI": () => (/* reexport safe */ _useForm__WEBPACK_IMPORTED_MODULE_0__.c),
12222
+ /* harmony export */ "t5": () => (/* reexport safe */ _useExpressionScope__WEBPACK_IMPORTED_MODULE_5__.t)
12079
12223
  /* harmony export */ });
12080
12224
  /* harmony import */ var _useForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26457);
12081
12225
  /* harmony import */ var _useField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13360);
12082
12226
  /* harmony import */ var _useParentForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61401);
12083
12227
  /* harmony import */ var _useFieldSchema__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85947);
12084
12228
  /* harmony import */ var _useFormEffects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30126);
12229
+ /* harmony import */ var _useExpressionScope__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19591);
12230
+
12085
12231
 
12086
12232
 
12087
12233
 
@@ -12097,20 +12243,13 @@ VoidField.displayName = 'VoidField';
12097
12243
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12098
12244
  /* harmony export */ "l": () => (/* binding */ useAttach)
12099
12245
  /* harmony export */ });
12100
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12101
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12246
+ /* harmony import */ var _formily_reactive_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41277);
12102
12247
 
12103
12248
  var useAttach = function useAttach(target) {
12104
- var oldTargetRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
12105
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
12106
- if (oldTargetRef.current && target !== oldTargetRef.current) {
12107
- oldTargetRef.current.onUnmount();
12108
- }
12109
-
12110
- oldTargetRef.current = target;
12249
+ (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_0__/* .unstable_useCompatEffect */ .cF)(function () {
12111
12250
  target.onMount();
12112
12251
  return function () {
12113
- target.onUnmount();
12252
+ return target.onUnmount();
12114
12253
  };
12115
12254
  }, [target]);
12116
12255
  return target;
@@ -12118,6 +12257,24 @@ var useAttach = function useAttach(target) {
12118
12257
 
12119
12258
  /***/ }),
12120
12259
 
12260
+ /***/ 19591:
12261
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12262
+
12263
+ "use strict";
12264
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12265
+ /* harmony export */ "t": () => (/* binding */ useExpressionScope)
12266
+ /* harmony export */ });
12267
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12268
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12269
+ /* harmony import */ var _shared_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49662);
12270
+
12271
+
12272
+ var useExpressionScope = function useExpressionScope() {
12273
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_shared_context__WEBPACK_IMPORTED_MODULE_1__/* .SchemaExpressionScopeContext */ .pv);
12274
+ };
12275
+
12276
+ /***/ }),
12277
+
12121
12278
  /***/ 13360:
12122
12279
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12123
12280
 
@@ -12179,8 +12336,7 @@ var useForm = function useForm() {
12179
12336
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12180
12337
  /* harmony export */ "U": () => (/* binding */ useFormEffects)
12181
12338
  /* harmony export */ });
12182
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12183
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12339
+ /* harmony import */ var _formily_reactive_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41277);
12184
12340
  /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71131);
12185
12341
  /* harmony import */ var _useForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26457);
12186
12342
 
@@ -12188,23 +12344,15 @@ var useForm = function useForm() {
12188
12344
 
12189
12345
  var useFormEffects = function useFormEffects(effects) {
12190
12346
  var form = (0,_useForm__WEBPACK_IMPORTED_MODULE_2__/* .useForm */ .c)();
12191
- var ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
12347
+ (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_0__/* .unstable_useCompatFactory */ .ls)(function () {
12192
12348
  var id = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .uid */ .hQ)();
12193
12349
  form.addEffects(id, effects);
12194
- var request = setTimeout(function () {
12195
- form.removeEffects(id);
12196
- }, 100);
12197
12350
  return {
12198
- id: id,
12199
- request: request
12200
- };
12201
- }, []);
12202
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(function () {
12203
- clearTimeout(ref.request);
12204
- return function () {
12205
- form.removeEffects(ref.id);
12351
+ dispose: function dispose() {
12352
+ form.removeEffects(id);
12353
+ }
12206
12354
  };
12207
- }, []);
12355
+ });
12208
12356
  };
12209
12357
 
12210
12358
  /***/ }),
@@ -12253,6 +12401,8 @@ __webpack_require__.r(__webpack_exports__);
12253
12401
  /* harmony export */ "FormProvider": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.RV),
12254
12402
  /* harmony export */ "ObjectField": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.Wo),
12255
12403
  /* harmony export */ "Observer": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.Qj),
12404
+ /* harmony export */ "RecordScope": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.DO),
12405
+ /* harmony export */ "RecordsScope": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.ND),
12256
12406
  /* harmony export */ "RecursionField": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_1__.Uk),
12257
12407
  /* harmony export */ "Schema": () => (/* reexport safe */ _formily_json_schema__WEBPACK_IMPORTED_MODULE_0__.V),
12258
12408
  /* harmony export */ "SchemaComponentsContext": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.$B),
@@ -12266,6 +12416,7 @@ __webpack_require__.r(__webpack_exports__);
12266
12416
  /* harmony export */ "mapProps": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.jM),
12267
12417
  /* harmony export */ "mapReadPretty": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.vl),
12268
12418
  /* harmony export */ "observer": () => (/* reexport safe */ _shared__WEBPACK_IMPORTED_MODULE_2__.Pi),
12419
+ /* harmony export */ "useExpressionScope": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.t5),
12269
12420
  /* harmony export */ "useField": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.U$),
12270
12421
  /* harmony export */ "useFieldSchema": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.XA),
12271
12422
  /* harmony export */ "useForm": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.cI),
@@ -12290,8 +12441,8 @@ __webpack_require__.r(__webpack_exports__);
12290
12441
  "use strict";
12291
12442
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12292
12443
  /* harmony export */ "$j": () => (/* binding */ connect),
12293
- /* harmony export */ "Pi": () => (/* reexport safe */ _formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__.P),
12294
- /* harmony export */ "Qj": () => (/* reexport safe */ _formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__.Q),
12444
+ /* harmony export */ "Pi": () => (/* reexport safe */ _formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__.Pi),
12445
+ /* harmony export */ "Qj": () => (/* reexport safe */ _formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__.Qj),
12295
12446
  /* harmony export */ "jM": () => (/* binding */ mapProps),
12296
12447
  /* harmony export */ "vl": () => (/* binding */ mapReadPretty)
12297
12448
  /* harmony export */ });
@@ -12333,7 +12484,7 @@ function mapProps() {
12333
12484
  }
12334
12485
 
12335
12486
  return function (target) {
12336
- return (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__/* .observer */ .P)(function (props) {
12487
+ return (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__/* .observer */ .Pi)(function (props) {
12337
12488
  var field = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__/* .useField */ .U$)();
12338
12489
  var results = args.reduce(function (props, mapper) {
12339
12490
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isFn */ .LQ)(mapper)) {
@@ -12365,7 +12516,7 @@ function mapProps() {
12365
12516
  }
12366
12517
  function mapReadPretty(component, readPrettyProps) {
12367
12518
  return function (target) {
12368
- return (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__/* .observer */ .P)(function (props) {
12519
+ return (0,_formily_reactive_react__WEBPACK_IMPORTED_MODULE_3__/* .observer */ .Pi)(function (props) {
12369
12520
  var field = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__/* .useField */ .U$)();
12370
12521
 
12371
12522
  if (!(0,_formily_core__WEBPACK_IMPORTED_MODULE_2__.isVoidField)(field) && (field === null || field === void 0 ? void 0 : field.pattern) === 'readPretty') {
@@ -12506,134 +12657,96 @@ var render = function render(element) {
12506
12657
 
12507
12658
  "use strict";
12508
12659
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12509
- /* harmony export */ "S": () => (/* reexport safe */ _useObserver__WEBPACK_IMPORTED_MODULE_1__.S)
12660
+ /* harmony export */ "cF": () => (/* binding */ unstable_useCompatEffect),
12661
+ /* harmony export */ "ls": () => (/* binding */ unstable_useCompatFactory)
12510
12662
  /* harmony export */ });
12663
+ /* unused harmony exports unstable_useForceUpdate, unstable_useDidUpdate, unstable_useLayoutEffect, unstable_useObserver */
12511
12664
  /* harmony import */ var _useForceUpdate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63360);
12512
- /* harmony import */ var _useObserver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28194);
12665
+ /* harmony import */ var _useCompatEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3129);
12666
+ /* harmony import */ var _useCompatFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58663);
12667
+ /* harmony import */ var _useDidUpdate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54288);
12668
+ /* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86853);
12669
+ /* harmony import */ var _useObserver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28194);
12513
12670
 
12514
12671
 
12515
12672
 
12516
- /***/ }),
12517
12673
 
12518
- /***/ 54288:
12519
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12520
-
12521
- "use strict";
12522
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12523
- /* harmony export */ "l": () => (/* binding */ useDidUpdate)
12524
- /* harmony export */ });
12525
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12526
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12527
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72023);
12528
12674
 
12529
12675
 
12530
- var useDidUpdate = function useDidUpdate(callback) {
12531
- var request = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
12532
- request.current = (0,_shared__WEBPACK_IMPORTED_MODULE_1__/* .immediate */ .j)(callback);
12533
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(function () {
12534
- request.current();
12535
- callback();
12536
- });
12537
- };
12676
+ var unstable_useForceUpdate = (/* unused pure expression or super */ null && (useForceUpdate));
12677
+ var unstable_useCompatEffect = _useCompatEffect__WEBPACK_IMPORTED_MODULE_1__/* .useCompatEffect */ .q;
12678
+ var unstable_useCompatFactory = _useCompatFactory__WEBPACK_IMPORTED_MODULE_2__/* .useCompatFactory */ .z;
12679
+ var unstable_useDidUpdate = (/* unused pure expression or super */ null && (useDidUpdate));
12680
+ var unstable_useLayoutEffect = (/* unused pure expression or super */ null && (useLayoutEffect));
12681
+ var unstable_useObserver = (/* unused pure expression or super */ null && (useObserver));
12538
12682
 
12539
12683
  /***/ }),
12540
12684
 
12541
- /***/ 63360:
12685
+ /***/ 3129:
12542
12686
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12543
12687
 
12544
12688
  "use strict";
12545
12689
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12546
- /* harmony export */ "N": () => (/* binding */ useForceUpdate)
12690
+ /* harmony export */ "q": () => (/* binding */ useCompatEffect)
12547
12691
  /* harmony export */ });
12548
12692
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12549
12693
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12550
- /* harmony import */ var _useDidUpdate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54288);
12551
- var __read = undefined && undefined.__read || function (o, n) {
12552
- var m = typeof Symbol === "function" && o[Symbol.iterator];
12553
- if (!m) return o;
12554
- var i = m.call(o),
12555
- r,
12556
- ar = [],
12557
- e;
12694
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72023);
12558
12695
 
12559
- try {
12560
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12561
- ar.push(r.value);
12562
- }
12563
- } catch (error) {
12564
- e = {
12565
- error: error
12566
- };
12567
- } finally {
12568
- try {
12569
- if (r && !r.done && (m = i["return"])) m.call(i);
12570
- } finally {
12571
- if (e) throw e.error;
12572
- }
12573
- }
12574
12696
 
12575
- return ar;
12576
- };
12697
+ var isArr = Array.isArray;
12577
12698
 
12699
+ var isEqualDeps = function isEqualDeps(target, source) {
12700
+ var arrA = isArr(target);
12701
+ var arrB = isArr(source);
12702
+ if (arrA !== arrB) return false;
12578
12703
 
12704
+ if (arrA) {
12705
+ if (target.length !== source.length) return false;
12706
+ return target.every(function (val, index) {
12707
+ return val === source[index];
12708
+ });
12709
+ }
12579
12710
 
12580
- var EMPTY_ARRAY = [];
12581
- var RENDER_COUNT = {
12582
- value: 0
12711
+ return target === source;
12583
12712
  };
12584
- var RENDER_QUEUE = new Set();
12585
- function useForceUpdate() {
12586
- var _a = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]), 2),
12587
- setState = _a[1];
12588
12713
 
12589
- var unMountRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
12714
+ var useCompatEffect = function useCompatEffect(effect, deps) {
12715
+ var depsRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
12716
+ var mountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
12590
12717
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
12591
- unMountRef.current = false;
12718
+ mountedRef.current = true;
12719
+ var dispose = effect();
12592
12720
  return function () {
12593
- unMountRef.current = true;
12594
- };
12595
- }, EMPTY_ARRAY);
12596
- var update = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
12597
- if (unMountRef.current) return;
12598
- setState([]);
12599
- }, EMPTY_ARRAY);
12600
- var scheduler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
12601
- if (RENDER_COUNT.value === 0) {
12602
- update();
12603
- } else {
12604
- RENDER_QUEUE.add(update);
12605
- }
12606
- }, EMPTY_ARRAY);
12607
- RENDER_COUNT.value++;
12608
- (0,_useDidUpdate__WEBPACK_IMPORTED_MODULE_1__/* .useDidUpdate */ .l)(function () {
12609
- if (RENDER_COUNT.value > 0) {
12610
- RENDER_COUNT.value--;
12611
- }
12721
+ mountedRef.current = false;
12612
12722
 
12613
- if (RENDER_COUNT.value === 0) {
12614
- RENDER_QUEUE.forEach(function (update) {
12615
- RENDER_QUEUE["delete"](update);
12616
- update();
12723
+ if (!isEqualDeps(depsRef.current, deps)) {
12724
+ if (dispose) dispose();
12725
+ return;
12726
+ }
12727
+
12728
+ (0,_shared__WEBPACK_IMPORTED_MODULE_1__/* .immediate */ .j)(function () {
12729
+ if (mountedRef.current) return;
12730
+ if (dispose) dispose();
12617
12731
  });
12618
- }
12619
- });
12620
- return scheduler;
12621
- }
12732
+ };
12733
+ }, deps);
12734
+ depsRef.current = deps;
12735
+ };
12622
12736
 
12623
12737
  /***/ }),
12624
12738
 
12625
- /***/ 28194:
12739
+ /***/ 58663:
12626
12740
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12627
12741
 
12628
12742
  "use strict";
12629
12743
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12630
- /* harmony export */ "S": () => (/* binding */ useObserver)
12744
+ /* harmony export */ "z": () => (/* binding */ useCompatFactory)
12631
12745
  /* harmony export */ });
12632
12746
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12633
12747
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12634
- /* harmony import */ var _formily_reactive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92650);
12635
- /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72023);
12636
- /* harmony import */ var _useForceUpdate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63360);
12748
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72023);
12749
+ /* harmony import */ var _useCompatEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3129);
12637
12750
  var __read = undefined && undefined.__read || function (o, n) {
12638
12751
  var m = typeof Symbol === "function" && o[Symbol.iterator];
12639
12752
  if (!m) return o;
@@ -12665,7 +12778,6 @@ var __read = undefined && undefined.__read || function (o, n) {
12665
12778
 
12666
12779
 
12667
12780
 
12668
-
12669
12781
  var ObjectToBeRetainedByReact =
12670
12782
  /** @class */
12671
12783
  function () {
@@ -12678,48 +12790,196 @@ function objectToBeRetainedByReactFactory() {
12678
12790
  return new ObjectToBeRetainedByReact();
12679
12791
  }
12680
12792
 
12681
- var useObserver = function useObserver(view, options) {
12682
- var forceUpdate = (0,_useForceUpdate__WEBPACK_IMPORTED_MODULE_3__/* .useForceUpdate */ .N)();
12683
- var unMountRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef(false);
12684
- var trackerRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef(null);
12793
+ var useCompatFactory = function useCompatFactory(factory) {
12794
+ var instRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef(null);
12685
12795
  var gcRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
12686
12796
 
12687
12797
  var _a = __read(react__WEBPACK_IMPORTED_MODULE_0___default().useState(objectToBeRetainedByReactFactory), 1),
12688
12798
  objectRetainedByReact = _a[0];
12689
12799
 
12690
- if (!trackerRef.current) {
12691
- trackerRef.current = new _formily_reactive__WEBPACK_IMPORTED_MODULE_1__.Tracker(function () {
12692
- if (typeof (options === null || options === void 0 ? void 0 : options.scheduler) === 'function') {
12693
- options.scheduler(forceUpdate);
12694
- } else {
12695
- forceUpdate();
12696
- }
12697
- }, options === null || options === void 0 ? void 0 : options.displayName);
12800
+ if (!instRef.current) {
12801
+ instRef.current = factory();
12698
12802
  } //StrictMode/ConcurrentMode会导致组件无法正确触发UnMount,所以只能自己做垃圾回收
12699
12803
 
12700
12804
 
12701
12805
  if (!gcRef.current) {
12702
- gcRef.current = new _shared__WEBPACK_IMPORTED_MODULE_2__/* .GarbageCollector */ .s(function () {
12703
- if (trackerRef.current) {
12704
- trackerRef.current.dispose();
12806
+ gcRef.current = new _shared__WEBPACK_IMPORTED_MODULE_1__/* .GarbageCollector */ .s(function () {
12807
+ if (instRef.current) {
12808
+ instRef.current.dispose();
12705
12809
  }
12706
12810
  });
12707
12811
  gcRef.current.open(objectRetainedByReact);
12708
12812
  }
12709
12813
 
12710
- react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
12711
- unMountRef.current = false;
12814
+ (0,_useCompatEffect__WEBPACK_IMPORTED_MODULE_2__/* .useCompatEffect */ .q)(function () {
12712
12815
  gcRef.current.close();
12713
12816
  return function () {
12714
- unMountRef.current = true;
12715
-
12716
- if (trackerRef.current) {
12717
- trackerRef.current.dispose();
12718
- trackerRef.current = null;
12817
+ if (instRef.current) {
12818
+ instRef.current.dispose();
12819
+ instRef.current = null;
12719
12820
  }
12720
12821
  };
12721
12822
  }, []);
12722
- return trackerRef.current.track(view);
12823
+ return instRef.current;
12824
+ };
12825
+
12826
+ /***/ }),
12827
+
12828
+ /***/ 54288:
12829
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12830
+
12831
+ "use strict";
12832
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12833
+ /* harmony export */ "l": () => (/* binding */ useDidUpdate)
12834
+ /* harmony export */ });
12835
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12836
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12837
+ /* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86853);
12838
+ /* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72023);
12839
+
12840
+
12841
+
12842
+ var useDidUpdate = function useDidUpdate(callback) {
12843
+ var request = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
12844
+ request.current = (0,_shared__WEBPACK_IMPORTED_MODULE_2__/* .immediate */ .j)(callback);
12845
+ (0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .b)(function () {
12846
+ request.current();
12847
+ callback();
12848
+ });
12849
+ };
12850
+
12851
+ /***/ }),
12852
+
12853
+ /***/ 63360:
12854
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12855
+
12856
+ "use strict";
12857
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12858
+ /* harmony export */ "N": () => (/* binding */ useForceUpdate)
12859
+ /* harmony export */ });
12860
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12861
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12862
+ /* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86853);
12863
+ /* harmony import */ var _useDidUpdate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54288);
12864
+ var __read = undefined && undefined.__read || function (o, n) {
12865
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
12866
+ if (!m) return o;
12867
+ var i = m.call(o),
12868
+ r,
12869
+ ar = [],
12870
+ e;
12871
+
12872
+ try {
12873
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
12874
+ ar.push(r.value);
12875
+ }
12876
+ } catch (error) {
12877
+ e = {
12878
+ error: error
12879
+ };
12880
+ } finally {
12881
+ try {
12882
+ if (r && !r.done && (m = i["return"])) m.call(i);
12883
+ } finally {
12884
+ if (e) throw e.error;
12885
+ }
12886
+ }
12887
+
12888
+ return ar;
12889
+ };
12890
+
12891
+
12892
+
12893
+
12894
+ var EMPTY_ARRAY = [];
12895
+ var RENDER_COUNT = {
12896
+ value: 0
12897
+ };
12898
+ var RENDER_QUEUE = new Set();
12899
+ function useForceUpdate() {
12900
+ var _a = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]), 2),
12901
+ setState = _a[1];
12902
+
12903
+ var renderedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
12904
+ (0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .b)(function () {
12905
+ renderedRef.current = true;
12906
+ return function () {
12907
+ renderedRef.current = false;
12908
+ };
12909
+ }, EMPTY_ARRAY);
12910
+ var update = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
12911
+ if (!renderedRef.current) {
12912
+ // 针对StrictMode无法快速回收内存,只能考虑拦截第一次渲染函数的setState,
12913
+ // 因为第一次渲染函数的setState会触发第二次渲染函数执行,从而清理掉第二次渲染函数内部的依赖
12914
+ return;
12915
+ }
12916
+
12917
+ setState([]);
12918
+ }, EMPTY_ARRAY);
12919
+ var scheduler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
12920
+ if (RENDER_COUNT.value === 0) {
12921
+ update();
12922
+ } else {
12923
+ RENDER_QUEUE.add(update);
12924
+ }
12925
+ }, EMPTY_ARRAY);
12926
+ RENDER_COUNT.value++;
12927
+ (0,_useDidUpdate__WEBPACK_IMPORTED_MODULE_2__/* .useDidUpdate */ .l)(function () {
12928
+ if (RENDER_COUNT.value > 0) {
12929
+ RENDER_COUNT.value--;
12930
+ }
12931
+
12932
+ if (RENDER_COUNT.value === 0) {
12933
+ RENDER_QUEUE.forEach(function (update) {
12934
+ RENDER_QUEUE["delete"](update);
12935
+ update();
12936
+ });
12937
+ }
12938
+ });
12939
+ return scheduler;
12940
+ }
12941
+
12942
+ /***/ }),
12943
+
12944
+ /***/ 86853:
12945
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12946
+
12947
+ "use strict";
12948
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12949
+ /* harmony export */ "b": () => (/* binding */ useLayoutEffect)
12950
+ /* harmony export */ });
12951
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
12952
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12953
+
12954
+ var useLayoutEffect = typeof document !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
12955
+
12956
+ /***/ }),
12957
+
12958
+ /***/ 28194:
12959
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
12960
+
12961
+ "use strict";
12962
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12963
+ /* harmony export */ "S": () => (/* binding */ useObserver)
12964
+ /* harmony export */ });
12965
+ /* harmony import */ var _formily_reactive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92650);
12966
+ /* harmony import */ var _useForceUpdate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63360);
12967
+ /* harmony import */ var _useCompatFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58663);
12968
+
12969
+
12970
+
12971
+ var useObserver = function useObserver(view, options) {
12972
+ var forceUpdate = (0,_useForceUpdate__WEBPACK_IMPORTED_MODULE_1__/* .useForceUpdate */ .N)();
12973
+ var tracker = (0,_useCompatFactory__WEBPACK_IMPORTED_MODULE_2__/* .useCompatFactory */ .z)(function () {
12974
+ return new _formily_reactive__WEBPACK_IMPORTED_MODULE_0__.Tracker(function () {
12975
+ if (typeof (options === null || options === void 0 ? void 0 : options.scheduler) === 'function') {
12976
+ options.scheduler(forceUpdate);
12977
+ } else {
12978
+ forceUpdate();
12979
+ }
12980
+ }, options === null || options === void 0 ? void 0 : options.displayName);
12981
+ });
12982
+ return tracker.track(view);
12723
12983
  };
12724
12984
 
12725
12985
  /***/ }),
@@ -12729,10 +12989,14 @@ var useObserver = function useObserver(view, options) {
12729
12989
 
12730
12990
  "use strict";
12731
12991
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12732
- /* harmony export */ "P": () => (/* reexport safe */ _observer__WEBPACK_IMPORTED_MODULE_0__.P),
12733
- /* harmony export */ "Q": () => (/* reexport safe */ _observer__WEBPACK_IMPORTED_MODULE_0__.Q)
12992
+ /* harmony export */ "Pi": () => (/* reexport safe */ _observer__WEBPACK_IMPORTED_MODULE_0__.P),
12993
+ /* harmony export */ "Qj": () => (/* reexport safe */ _observer__WEBPACK_IMPORTED_MODULE_0__.Q),
12994
+ /* harmony export */ "cF": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_1__.cF),
12995
+ /* harmony export */ "ls": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_1__.ls)
12734
12996
  /* harmony export */ });
12735
12997
  /* harmony import */ var _observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57941);
12998
+ /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(69784);
12999
+
12736
13000
 
12737
13001
 
12738
13002
 
@@ -12750,7 +13014,7 @@ var useObserver = function useObserver(view, options) {
12750
13014
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12751
13015
  /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45682);
12752
13016
  /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
12753
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69784);
13017
+ /* harmony import */ var _hooks_useObserver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28194);
12754
13018
  var __assign = undefined && undefined.__assign || function () {
12755
13019
  __assign = Object.assign || function (t) {
12756
13020
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -12776,13 +13040,13 @@ function observer(component, options) {
12776
13040
  }, options);
12777
13041
 
12778
13042
  var wrappedComponent = realOptions.forwardRef ? (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
12779
- return (0,_hooks__WEBPACK_IMPORTED_MODULE_2__/* .useObserver */ .S)(function () {
13043
+ return (0,_hooks_useObserver__WEBPACK_IMPORTED_MODULE_2__/* .useObserver */ .S)(function () {
12780
13044
  return component(__assign(__assign({}, props), {
12781
13045
  ref: ref
12782
13046
  }));
12783
13047
  }, realOptions);
12784
13048
  }) : function (props) {
12785
- return (0,_hooks__WEBPACK_IMPORTED_MODULE_2__/* .useObserver */ .S)(function () {
13049
+ return (0,_hooks_useObserver__WEBPACK_IMPORTED_MODULE_2__/* .useObserver */ .S)(function () {
12786
13050
  return component(props);
12787
13051
  }, realOptions);
12788
13052
  };
@@ -13424,7 +13688,7 @@ function () {
13424
13688
  value = [];
13425
13689
  }
13426
13690
 
13427
- this.batchDeleting = false;
13691
+ this.forEachIndex = 0;
13428
13692
  this.value = value;
13429
13693
  }
13430
13694
 
@@ -13439,35 +13703,36 @@ function () {
13439
13703
  };
13440
13704
 
13441
13705
  ArraySet.prototype["delete"] = function (item) {
13442
- if (this.batchDeleting) return; //批量删除时禁止单独删除,会影响计数执行器
13706
+ var findIndex = this.value.indexOf(item);
13443
13707
 
13444
- var index = this.value.indexOf(item);
13708
+ if (findIndex > -1) {
13709
+ this.value.splice(findIndex, 1);
13445
13710
 
13446
- if (index > -1) {
13447
- this.value.splice(index, 1);
13711
+ if (findIndex <= this.forEachIndex) {
13712
+ this.forEachIndex -= 1;
13713
+ }
13448
13714
  }
13449
13715
  };
13450
13716
 
13451
13717
  ArraySet.prototype.forEach = function (callback) {
13452
13718
  if (this.value.length === 0) return;
13719
+ this.forEachIndex = 0;
13453
13720
 
13454
- for (var index = 0, len = this.value.length; index < len; index++) {
13455
- callback(this.value[index]);
13721
+ for (; this.forEachIndex < this.value.length; this.forEachIndex++) {
13722
+ callback(this.value[this.forEachIndex]);
13456
13723
  }
13457
13724
  };
13458
13725
 
13459
- ArraySet.prototype.forEachDelete = function (callback) {
13726
+ ArraySet.prototype.batchDelete = function (callback) {
13460
13727
  if (this.value.length === 0) return;
13461
- this.batchDeleting = true;
13728
+ this.forEachIndex = 0;
13462
13729
 
13463
- for (var index = 0; index < this.value.length; index++) {
13464
- var item = this.value[index];
13465
- this.value.splice(index, 1);
13466
- callback(item);
13467
- index--;
13730
+ for (; this.forEachIndex < this.value.length; this.forEachIndex++) {
13731
+ var value = this.value[this.forEachIndex];
13732
+ this.value.splice(this.forEachIndex, 1);
13733
+ this.forEachIndex--;
13734
+ callback(value);
13468
13735
  }
13469
-
13470
- this.batchDeleting = false;
13471
13736
  };
13472
13737
 
13473
13738
  ArraySet.prototype.clear = function () {
@@ -14898,7 +15163,7 @@ var batchScopeEnd = function batchScopeEnd() {
14898
15163
  var prevUntrackCount = _environment__WEBPACK_IMPORTED_MODULE_2__/* .UntrackCount.value */ .YP.value;
14899
15164
  _environment__WEBPACK_IMPORTED_MODULE_2__/* .BatchScope.value */ .WB.value = false;
14900
15165
  _environment__WEBPACK_IMPORTED_MODULE_2__/* .UntrackCount.value */ .YP.value = 0;
14901
- _environment__WEBPACK_IMPORTED_MODULE_2__/* .PendingScopeReactions.forEachDelete */ .wI.forEachDelete(function (reaction) {
15166
+ _environment__WEBPACK_IMPORTED_MODULE_2__/* .PendingScopeReactions.batchDelete */ .wI.batchDelete(function (reaction) {
14902
15167
  if ((0,_checkers__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(reaction._scheduler)) {
14903
15168
  reaction._scheduler(reaction);
14904
15169
  } else {
@@ -14923,7 +15188,7 @@ var isUntracking = function isUntracking() {
14923
15188
  return _environment__WEBPACK_IMPORTED_MODULE_2__/* .UntrackCount.value */ .YP.value > 0;
14924
15189
  };
14925
15190
  var executePendingReactions = function executePendingReactions() {
14926
- _environment__WEBPACK_IMPORTED_MODULE_2__/* .PendingReactions.forEachDelete */ .fo.forEachDelete(function (reaction) {
15191
+ _environment__WEBPACK_IMPORTED_MODULE_2__/* .PendingReactions.batchDelete */ .fo.batchDelete(function (reaction) {
14927
15192
  if ((0,_checkers__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(reaction._scheduler)) {
14928
15193
  reaction._scheduler(reaction);
14929
15194
  } else {
@@ -14932,7 +15197,7 @@ var executePendingReactions = function executePendingReactions() {
14932
15197
  });
14933
15198
  };
14934
15199
  var executeBatchEndpoints = function executeBatchEndpoints() {
14935
- _environment__WEBPACK_IMPORTED_MODULE_2__/* .BatchEndpoints.forEachDelete */ .WN.forEachDelete(function (callback) {
15200
+ _environment__WEBPACK_IMPORTED_MODULE_2__/* .BatchEndpoints.batchDelete */ .WN.batchDelete(function (callback) {
14936
15201
  callback();
14937
15202
  });
14938
15203
  };
@@ -15045,14 +15310,21 @@ var DataChange =
15045
15310
  /** @class */
15046
15311
  function () {
15047
15312
  function DataChange(operation, node) {
15313
+ this.node = node;
15048
15314
  this.key = operation.key;
15049
15315
  this.type = operation.type;
15050
15316
  this.object = operation.target;
15051
15317
  this.value = operation.value;
15052
15318
  this.oldValue = operation.oldValue;
15053
- this.path = node.path.concat(operation.key);
15054
15319
  }
15055
15320
 
15321
+ Object.defineProperty(DataChange.prototype, "path", {
15322
+ get: function get() {
15323
+ return this.node.path.concat(this.key);
15324
+ },
15325
+ enumerable: false,
15326
+ configurable: true
15327
+ });
15056
15328
  return DataChange;
15057
15329
  }();
15058
15330
 
@@ -18842,11 +19114,10 @@ var useClickAway = function useClickAway(onClickAway, target, eventName) {
18842
19114
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__);
18843
19115
 
18844
19116
  var usePrefixCls = function usePrefixCls(tag, props) {
18845
- var _a, _b, _c, _d;
19117
+ var _a, _b, _c;
18846
19118
 
18847
19119
  var getContext = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.ConfigProvider.getContext;
18848
- var prefix = (_d = (_b = (_a = props === null || props === void 0 ? void 0 : props.prefix) !== null && _a !== void 0 ? _a : // @ts-ignore
18849
- window.TEAMIX_FORMILY_PREFIX) !== null && _b !== void 0 ? _b : (_c = getContext()) === null || _c === void 0 ? void 0 : _c.prefix) !== null && _d !== void 0 ? _d : 'next-';
19120
+ var prefix = (_c = (_a = props === null || props === void 0 ? void 0 : props.prefix) !== null && _a !== void 0 ? _a : (_b = getContext()) === null || _b === void 0 ? void 0 : _b.prefix) !== null && _c !== void 0 ? _c : 'next-';
18850
19121
  return "".concat(prefix).concat(tag !== null && tag !== void 0 ? tag : '');
18851
19122
  };
18852
19123
 
@@ -18858,6 +19129,7 @@ var usePrefixCls = function usePrefixCls(tag, props) {
18858
19129
  "use strict";
18859
19130
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18860
19131
  /* harmony export */ "Bw": () => (/* binding */ MessageOutlinedIcon),
19132
+ /* harmony export */ "ES": () => (/* binding */ CopyOutlinedIcon),
18861
19133
  /* harmony export */ "LW": () => (/* binding */ PlusOutlinedIcon),
18862
19134
  /* harmony export */ "M2": () => (/* binding */ CloseOutlinedIcon),
18863
19135
  /* harmony export */ "T$": () => (/* binding */ EditOutlinedIcon),
@@ -18986,6 +19258,15 @@ var DeleteOutlinedIcon = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
18986
19258
  "p-id": "11687"
18987
19259
  }));
18988
19260
  });
19261
+ var CopyOutlinedIcon = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
19262
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, __assign({}, props, {
19263
+ ref: ref
19264
+ }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
19265
+ d: "M928.64 252.8H768v-160c0-17.92-14.08-32-32-32H96c-17.92 0-32 14.08-32 32v672c0 17.92 14.08 32 32 32h160v128c0 17.92 14.08 32 32 32h640c17.92 0 32-14.08 32-32V284.16c0-17.28-14.08-31.36-31.36-31.36zM256 284.8v448H128v-608h576v128H288c-17.92 0-32 14.08-32 32z m640 608H320v-576h576v576z"
19266
+ }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
19267
+ d: "M608 444.8h128c14.08 0 32-14.08 32-32s-17.92-32-32-32H608c-14.08 0-32 14.08-32 32s17.92 32 32 32zM480 764.8h256c14.08 0 32-14.08 32-32s-17.92-32-32-32H480c-14.08 0-32 14.08-32 32s17.92 32 32 32zM544 604.8h192c14.08 0 32-14.08 32-32s-17.92-32-32-32H544c-14.08 0-32 14.08-32 32s17.92 32 32 32z"
19268
+ }));
19269
+ });
18989
19270
  var QuestionCircleOutlinedIcon = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
18990
19271
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, __assign({}, props, {
18991
19272
  ref: ref
@@ -19313,13 +19594,13 @@ var __assign = undefined && undefined.__assign || function () {
19313
19594
 
19314
19595
  var mapStatus = function mapStatus(props, field) {
19315
19596
  var takeStatus = function takeStatus() {
19316
- var _a, _b;
19597
+ var _a, _b, _c;
19317
19598
 
19318
19599
  if (!field) return;
19319
- if (field['loading'] || field['validating']) return 'loading';
19320
- if (field['invalid']) return 'error';
19321
- if ((_a = field['warnings']) === null || _a === void 0 ? void 0 : _a.length) return 'warning';
19322
- return (_b = field.decoratorProps) === null || _b === void 0 ? void 0 : _b.feedbackStatus;
19600
+ if (field.loading || field.validating) return 'loading';
19601
+ if ((_a = field.selfErrors) === null || _a === void 0 ? void 0 : _a.length) return 'error';
19602
+ if ((_b = field.selfWarnings) === null || _b === void 0 ? void 0 : _b.length) return 'warning';
19603
+ return (_c = field.decoratorProps) === null || _c === void 0 ? void 0 : _c.feedbackStatus;
19323
19604
  };
19324
19605
 
19325
19606
  var takeState = function takeState(state) {
@@ -19376,7 +19657,11 @@ var formatMomentValue = function formatMomentValue(value, format, placeholder) {
19376
19657
  return date;
19377
19658
  }
19378
19659
 
19379
- return moment(date).format(_format);
19660
+ if (typeof date === 'number') {
19661
+ return moment(date).format(_format);
19662
+ }
19663
+
19664
+ return moment(date, _format).format(_format);
19380
19665
  } else {
19381
19666
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_0__/* .isFn */ .LQ)(format)) {
19382
19667
  return format(date);
@@ -19386,7 +19671,11 @@ var formatMomentValue = function formatMomentValue(value, format, placeholder) {
19386
19671
  return date;
19387
19672
  }
19388
19673
 
19389
- return moment(date).format(format);
19674
+ if (typeof date === 'number') {
19675
+ return moment(date).format(format);
19676
+ }
19677
+
19678
+ return moment(date, format).format(format);
19390
19679
  }
19391
19680
  };
19392
19681
 
@@ -19438,6 +19727,8 @@ var pickDataProps = function pickDataProps(props) {
19438
19727
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
19439
19728
  /* harmony import */ var _formily_reactive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(92650);
19440
19729
  /* harmony import */ var _formily_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61006);
19730
+ /* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68873);
19731
+
19441
19732
 
19442
19733
 
19443
19734
 
@@ -19467,7 +19758,7 @@ function createPortalRoot(host, id) {
19467
19758
  if (PortalMap.has(id)) {
19468
19759
  PortalMap.set(id, renderer === null || renderer === void 0 ? void 0 : renderer());
19469
19760
  } else if (host) {
19470
- react_dom__WEBPACK_IMPORTED_MODULE_1___default().render(react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, renderer === null || renderer === void 0 ? void 0 : renderer()), host);
19761
+ (0,_render__WEBPACK_IMPORTED_MODULE_4__/* .render */ .s)(react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, renderer === null || renderer === void 0 ? void 0 : renderer()), host);
19471
19762
  }
19472
19763
  }
19473
19764
 
@@ -19479,8 +19770,11 @@ function createPortalRoot(host, id) {
19479
19770
  }
19480
19771
 
19481
19772
  if (host) {
19482
- react_dom__WEBPACK_IMPORTED_MODULE_1___default().unmountComponentAtNode(host);
19483
- (_a = host.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(host);
19773
+ var unmountResult = (0,_render__WEBPACK_IMPORTED_MODULE_4__/* .unmount */ .v)(host);
19774
+
19775
+ if (unmountResult && host.parentNode) {
19776
+ (_a = host.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(host);
19777
+ }
19484
19778
  }
19485
19779
  }
19486
19780
 
@@ -19492,6 +19786,257 @@ function createPortalRoot(host, id) {
19492
19786
 
19493
19787
  /***/ }),
19494
19788
 
19789
+ /***/ 68873:
19790
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
19791
+
19792
+ "use strict";
19793
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19794
+ /* harmony export */ "s": () => (/* binding */ render),
19795
+ /* harmony export */ "v": () => (/* binding */ unmount)
19796
+ /* harmony export */ });
19797
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
19798
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
19799
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
19800
+
19801
+ var __assign = undefined && undefined.__assign || function () {
19802
+ __assign = Object.assign || function (t) {
19803
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19804
+ s = arguments[i];
19805
+
19806
+ for (var p in s) {
19807
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
19808
+ }
19809
+ }
19810
+
19811
+ return t;
19812
+ };
19813
+
19814
+ return __assign.apply(this, arguments);
19815
+ };
19816
+
19817
+ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
19818
+ function adopt(value) {
19819
+ return value instanceof P ? value : new P(function (resolve) {
19820
+ resolve(value);
19821
+ });
19822
+ }
19823
+
19824
+ return new (P || (P = Promise))(function (resolve, reject) {
19825
+ function fulfilled(value) {
19826
+ try {
19827
+ step(generator.next(value));
19828
+ } catch (e) {
19829
+ reject(e);
19830
+ }
19831
+ }
19832
+
19833
+ function rejected(value) {
19834
+ try {
19835
+ step(generator["throw"](value));
19836
+ } catch (e) {
19837
+ reject(e);
19838
+ }
19839
+ }
19840
+
19841
+ function step(result) {
19842
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
19843
+ }
19844
+
19845
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19846
+ });
19847
+ };
19848
+
19849
+ var __generator = undefined && undefined.__generator || function (thisArg, body) {
19850
+ var _ = {
19851
+ label: 0,
19852
+ sent: function sent() {
19853
+ if (t[0] & 1) throw t[1];
19854
+ return t[1];
19855
+ },
19856
+ trys: [],
19857
+ ops: []
19858
+ },
19859
+ f,
19860
+ y,
19861
+ t,
19862
+ g;
19863
+ return g = {
19864
+ next: verb(0),
19865
+ "throw": verb(1),
19866
+ "return": verb(2)
19867
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
19868
+ return this;
19869
+ }), g;
19870
+
19871
+ function verb(n) {
19872
+ return function (v) {
19873
+ return step([n, v]);
19874
+ };
19875
+ }
19876
+
19877
+ function step(op) {
19878
+ if (f) throw new TypeError("Generator is already executing.");
19879
+
19880
+ while (_) {
19881
+ try {
19882
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19883
+ if (y = 0, t) op = [op[0] & 2, t.value];
19884
+
19885
+ switch (op[0]) {
19886
+ case 0:
19887
+ case 1:
19888
+ t = op;
19889
+ break;
19890
+
19891
+ case 4:
19892
+ _.label++;
19893
+ return {
19894
+ value: op[1],
19895
+ done: false
19896
+ };
19897
+
19898
+ case 5:
19899
+ _.label++;
19900
+ y = op[1];
19901
+ op = [0];
19902
+ continue;
19903
+
19904
+ case 7:
19905
+ op = _.ops.pop();
19906
+
19907
+ _.trys.pop();
19908
+
19909
+ continue;
19910
+
19911
+ default:
19912
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
19913
+ _ = 0;
19914
+ continue;
19915
+ }
19916
+
19917
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
19918
+ _.label = op[1];
19919
+ break;
19920
+ }
19921
+
19922
+ if (op[0] === 6 && _.label < t[1]) {
19923
+ _.label = t[1];
19924
+ t = op;
19925
+ break;
19926
+ }
19927
+
19928
+ if (t && _.label < t[2]) {
19929
+ _.label = t[2];
19930
+
19931
+ _.ops.push(op);
19932
+
19933
+ break;
19934
+ }
19935
+
19936
+ if (t[2]) _.ops.pop();
19937
+
19938
+ _.trys.pop();
19939
+
19940
+ continue;
19941
+ }
19942
+
19943
+ op = body.call(thisArg, _);
19944
+ } catch (e) {
19945
+ op = [6, e];
19946
+ y = 0;
19947
+ } finally {
19948
+ f = t = 0;
19949
+ }
19950
+ }
19951
+
19952
+ if (op[0] & 5) throw op[1];
19953
+ return {
19954
+ value: op[0] ? op[1] : void 0,
19955
+ done: true
19956
+ };
19957
+ }
19958
+ };
19959
+
19960
+ // Let compiler not to search module usage
19961
+
19962
+ var fullClone = __assign({}, react_dom__WEBPACK_IMPORTED_MODULE_0__);
19963
+
19964
+ var version = fullClone.version,
19965
+ reactRender = fullClone.render,
19966
+ unmountComponentAtNode = fullClone.unmountComponentAtNode;
19967
+ var createRoot;
19968
+
19969
+ try {
19970
+ var mainVersion = Number((version || '').split('.')[0]);
19971
+
19972
+ if (mainVersion >= 18 && fullClone.createRoot) {
19973
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
19974
+ createRoot = fullClone.createRoot;
19975
+ }
19976
+ } catch (e) {// Do nothing;
19977
+ }
19978
+
19979
+ function toggleWarning(skip) {
19980
+ var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
19981
+
19982
+ if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && _typeof(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {
19983
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
19984
+ }
19985
+ }
19986
+
19987
+ var MARK = '__antd_mobile_root__';
19988
+
19989
+ function legacyRender(node, container) {
19990
+ reactRender(node, container);
19991
+ }
19992
+
19993
+ function concurrentRender(node, container) {
19994
+ toggleWarning(true);
19995
+ var root = container[MARK] || createRoot(container);
19996
+ toggleWarning(false);
19997
+ root.render(node);
19998
+ container[MARK] = root;
19999
+ }
20000
+
20001
+ function render(node, container) {
20002
+ if (createRoot) {
20003
+ concurrentRender(node, container);
20004
+ return;
20005
+ }
20006
+
20007
+ legacyRender(node, container);
20008
+ } // ========================== Unmount =========================
20009
+
20010
+ function legacyUnmount(container) {
20011
+ return unmountComponentAtNode(container);
20012
+ }
20013
+
20014
+ function concurrentUnmount(container) {
20015
+ return __awaiter(this, void 0, void 0, function () {
20016
+ return __generator(this, function (_a) {
20017
+ // Delay to unmount to avoid React 18 sync warning
20018
+ return [2
20019
+ /*return*/
20020
+ , Promise.resolve().then(function () {
20021
+ var _a;
20022
+
20023
+ (_a = container[MARK]) === null || _a === void 0 ? void 0 : _a.unmount();
20024
+ delete container[MARK];
20025
+ })];
20026
+ });
20027
+ });
20028
+ }
20029
+
20030
+ function unmount(container) {
20031
+ if (createRoot) {
20032
+ return concurrentUnmount(container);
20033
+ }
20034
+
20035
+ return legacyUnmount(container);
20036
+ }
20037
+
20038
+ /***/ }),
20039
+
19495
20040
  /***/ 67165:
19496
20041
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
19497
20042
 
@@ -19586,6 +20131,10 @@ var __rest = undefined && undefined.__rest || function (s, e) {
19586
20131
  var ArrayBaseContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
19587
20132
  var ItemContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
19588
20133
 
20134
+ var takeRecord = function takeRecord(val, index) {
20135
+ return typeof val === 'function' ? val(index) : val;
20136
+ };
20137
+
19589
20138
  var useArray = function useArray() {
19590
20139
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ArrayBaseContext);
19591
20140
  };
@@ -19597,7 +20146,7 @@ var useIndex = function useIndex(index) {
19597
20146
 
19598
20147
  var useRecord = function useRecord(record) {
19599
20148
  var ctx = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ItemContext);
19600
- return ctx ? ctx.record : record;
20149
+ return takeRecord(ctx ? ctx.record : record, ctx === null || ctx === void 0 ? void 0 : ctx.index);
19601
20150
  };
19602
20151
 
19603
20152
  var getSchemaDefaultValue = function getSchemaDefaultValue(schema) {
@@ -19614,32 +20163,40 @@ var getSchemaDefaultValue = function getSchemaDefaultValue(schema) {
19614
20163
 
19615
20164
  var getDefaultValue = function getDefaultValue(defaultValue, schema) {
19616
20165
  if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .isValid */ .JY)(defaultValue)) return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .clone */ .d9)(defaultValue);
19617
- if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.items)) return getSchemaDefaultValue(schema.items[0]);
19618
- return getSchemaDefaultValue(schema.items);
20166
+ if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.items)) return getSchemaDefaultValue(schema === null || schema === void 0 ? void 0 : schema.items[0]);
20167
+ return getSchemaDefaultValue(schema === null || schema === void 0 ? void 0 : schema.items);
19619
20168
  };
19620
20169
 
19621
20170
  var ArrayBase = function ArrayBase(props) {
19622
20171
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
19623
20172
  var schema = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useFieldSchema)();
19624
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ArrayBaseContext.Provider, {
20173
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_3__.RecordsScope, {
20174
+ getRecords: function getRecords() {
20175
+ return field.value;
20176
+ }
20177
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ArrayBaseContext.Provider, {
19625
20178
  value: {
19626
20179
  field: field,
19627
20180
  schema: schema,
19628
20181
  props: props
19629
20182
  }
19630
- }, props.children);
20183
+ }, props.children));
19631
20184
  };
19632
20185
 
19633
20186
  ArrayBase.Item = function (_a) {
19634
20187
  var children = _a.children,
19635
20188
  props = __rest(_a, ["children"]);
19636
20189
 
20190
+ var index = props.index;
20191
+ var record = takeRecord(props.record, props.index);
19637
20192
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ItemContext.Provider, {
19638
20193
  value: props
19639
- }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_3__.ExpressionScope, {
19640
- value: {
19641
- $record: props.record,
19642
- $index: props.index
20194
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_3__.RecordScope, {
20195
+ getIndex: function getIndex() {
20196
+ return index;
20197
+ },
20198
+ getRecord: function getRecord() {
20199
+ return record;
19643
20200
  }
19644
20201
  }, children));
19645
20202
  };
@@ -19732,6 +20289,34 @@ ArrayBase.Remove = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(funct
19732
20289
  }
19733
20290
  }));
19734
20291
  });
20292
+ ArrayBase.Copy = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
20293
+ var _a;
20294
+
20295
+ var index = useIndex(props.index);
20296
+ var self = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.useField)();
20297
+ var array = useArray();
20298
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-base');
20299
+ if (!array) return null;
20300
+ if (((_a = array.field) === null || _a === void 0 ? void 0 : _a.pattern) !== 'editable') return null;
20301
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_7__/* .CopyOutlinedIcon */ .ES, __assign({}, props, {
20302
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()("".concat(prefixCls, "-copy"), (self === null || self === void 0 ? void 0 : self.disabled) ? "".concat(prefixCls, "-copy-disabled") : '', props.className),
20303
+ ref: ref,
20304
+ onClick: function onClick(e) {
20305
+ var _a, _b, _c, _d, _e;
20306
+
20307
+ if (self === null || self === void 0 ? void 0 : self.disabled) return;
20308
+ e.stopPropagation();
20309
+ var value = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_2__/* .clone */ .d9)((_a = array === null || array === void 0 ? void 0 : array.field) === null || _a === void 0 ? void 0 : _a.value[index]);
20310
+ var distIndex = index + 1;
20311
+ (_c = (_b = array.field) === null || _b === void 0 ? void 0 : _b.insert) === null || _c === void 0 ? void 0 : _c.call(_b, distIndex, value);
20312
+ (_e = (_d = array.props) === null || _d === void 0 ? void 0 : _d.onCopy) === null || _e === void 0 ? void 0 : _e.call(_d, distIndex);
20313
+
20314
+ if (props.onClick) {
20315
+ props.onClick(e);
20316
+ }
20317
+ }
20318
+ }));
20319
+ });
19735
20320
  ArrayBase.MoveDown = react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
19736
20321
  var _a;
19737
20322
 
@@ -19792,6 +20377,7 @@ ArrayBase.mixin = function (target) {
19792
20377
  target.Index = ArrayBase.Index;
19793
20378
  target.SortHandle = ArrayBase.SortHandle;
19794
20379
  target.Addition = ArrayBase.Addition;
20380
+ target.Copy = ArrayBase.Copy;
19795
20381
  target.Remove = ArrayBase.Remove;
19796
20382
  target.MoveDown = ArrayBase.MoveDown;
19797
20383
  target.MoveUp = ArrayBase.MoveUp;
@@ -19845,37 +20431,43 @@ var __assign = undefined && undefined.__assign || function () {
19845
20431
 
19846
20432
 
19847
20433
  var isAdditionComponent = function isAdditionComponent(schema) {
19848
- var _a;
20434
+ var _a, _b;
19849
20435
 
19850
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Addition')) > -1;
20436
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Addition')) > -1;
19851
20437
  };
19852
20438
 
19853
20439
  var isIndexComponent = function isIndexComponent(schema) {
19854
- var _a;
20440
+ var _a, _b;
19855
20441
 
19856
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Index')) > -1;
20442
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Index')) > -1;
19857
20443
  };
19858
20444
 
19859
20445
  var isRemoveComponent = function isRemoveComponent(schema) {
19860
- var _a;
20446
+ var _a, _b;
19861
20447
 
19862
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Remove')) > -1;
20448
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Remove')) > -1;
20449
+ };
20450
+
20451
+ var isCopyComponent = function isCopyComponent(schema) {
20452
+ var _a, _b;
20453
+
20454
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Copy')) > -1;
19863
20455
  };
19864
20456
 
19865
20457
  var isMoveUpComponent = function isMoveUpComponent(schema) {
19866
- var _a;
20458
+ var _a, _b;
19867
20459
 
19868
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('MoveUp')) > -1;
20460
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'MoveUp')) > -1;
19869
20461
  };
19870
20462
 
19871
20463
  var isMoveDownComponent = function isMoveDownComponent(schema) {
19872
- var _a;
20464
+ var _a, _b;
19873
20465
 
19874
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('MoveDown')) > -1;
20466
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'MoveDown')) > -1;
19875
20467
  };
19876
20468
 
19877
20469
  var isOperationComponent = function isOperationComponent(schema) {
19878
- return isAdditionComponent(schema) || isRemoveComponent(schema) || isMoveDownComponent(schema) || isMoveUpComponent(schema);
20470
+ return isAdditionComponent(schema) || isRemoveComponent(schema) || isCopyComponent(schema) || isMoveDownComponent(schema) || isMoveUpComponent(schema);
19879
20471
  };
19880
20472
 
19881
20473
  var Empty = function Empty() {
@@ -19968,7 +20560,11 @@ var ArrayCards = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(functi
19968
20560
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.Item */ .w.Item, {
19969
20561
  key: index,
19970
20562
  index: index,
19971
- record: item
20563
+ record: function record() {
20564
+ var _a;
20565
+
20566
+ return (_a = field.value) === null || _a === void 0 ? void 0 : _a[index];
20567
+ }
19972
20568
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Card, __assign({
19973
20569
  contentHeight: "auto"
19974
20570
  }, props, {
@@ -20095,33 +20691,33 @@ var __read = undefined && undefined.__read || function (o, n) {
20095
20691
 
20096
20692
 
20097
20693
  var isAdditionComponent = function isAdditionComponent(schema) {
20098
- var _a;
20694
+ var _a, _b;
20099
20695
 
20100
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Addition')) > -1;
20696
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Addition')) > -1;
20101
20697
  };
20102
20698
 
20103
20699
  var isIndexComponent = function isIndexComponent(schema) {
20104
- var _a;
20700
+ var _a, _b;
20105
20701
 
20106
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Index')) > -1;
20702
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Index')) > -1;
20107
20703
  };
20108
20704
 
20109
20705
  var isRemoveComponent = function isRemoveComponent(schema) {
20110
- var _a;
20706
+ var _a, _b;
20111
20707
 
20112
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('Remove')) > -1;
20708
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'Remove')) > -1;
20113
20709
  };
20114
20710
 
20115
20711
  var isMoveUpComponent = function isMoveUpComponent(schema) {
20116
- var _a;
20712
+ var _a, _b;
20117
20713
 
20118
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('MoveUp')) > -1;
20714
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'MoveUp')) > -1;
20119
20715
  };
20120
20716
 
20121
20717
  var isMoveDownComponent = function isMoveDownComponent(schema) {
20122
- var _a;
20718
+ var _a, _b;
20123
20719
 
20124
- return ((_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf('MoveDown')) > -1;
20720
+ return ((_b = (_a = schema['x-component']) === null || _a === void 0 ? void 0 : _a.indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, 'MoveDown')) > -1;
20125
20721
  };
20126
20722
 
20127
20723
  var isOperationComponent = function isOperationComponent(schema) {
@@ -20253,7 +20849,11 @@ var ArrayCollapse = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(fun
20253
20849
  }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_array_base__WEBPACK_IMPORTED_MODULE_7__/* ["default"].Item */ .Z.Item, {
20254
20850
  index: index,
20255
20851
  key: index,
20256
- record: item
20852
+ record: function record() {
20853
+ var _a;
20854
+
20855
+ return (_a = field.value) === null || _a === void 0 ? void 0 : _a[index];
20856
+ }
20257
20857
  }, content));
20258
20858
  }));
20259
20859
  };
@@ -20374,7 +20974,11 @@ var ArrayItems = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(functi
20374
20974
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.Item */ .w.Item, {
20375
20975
  key: index,
20376
20976
  index: index,
20377
- record: item
20977
+ record: function record() {
20978
+ var _a;
20979
+
20980
+ return (_a = field.value) === null || _a === void 0 ? void 0 : _a[index];
20981
+ }
20378
20982
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SortableItem, {
20379
20983
  key: "item-".concat(index),
20380
20984
  index: index
@@ -20545,7 +21149,7 @@ var useArrayTableSources = function useArrayTableSources() {
20545
21149
  return parseArrayItems(schema.items);
20546
21150
  };
20547
21151
 
20548
- var useArrayTableColumns = function useArrayTableColumns(dataSource, sources) {
21152
+ var useArrayTableColumns = function useArrayTableColumns(field, sources) {
20549
21153
  return sources.reduce(function (buf, _a, key) {
20550
21154
  var name = _a.name,
20551
21155
  columnProps = _a.columnProps,
@@ -20557,11 +21161,17 @@ var useArrayTableColumns = function useArrayTableColumns(dataSource, sources) {
20557
21161
  key: key,
20558
21162
  dataIndex: name,
20559
21163
  cell: function cell(value, _, record) {
20560
- var index = dataSource.indexOf(record);
21164
+ var _a;
21165
+
21166
+ var index = (_a = field.value) === null || _a === void 0 ? void 0 : _a.indexOf(record);
20561
21167
  var children = react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_array_base__WEBPACK_IMPORTED_MODULE_5__/* .ArrayBase.Item */ .w.Item, {
20562
21168
  key: index,
20563
21169
  index: index,
20564
- record: record
21170
+ record: function record() {
21171
+ var _a;
21172
+
21173
+ return (_a = field.value) === null || _a === void 0 ? void 0 : _a[index];
21174
+ }
20565
21175
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_3__.RecursionField, {
20566
21176
  schema: schema,
20567
21177
  name: index,
@@ -20725,7 +21335,7 @@ var ArrayTable = (0,_formily_react__WEBPACK_IMPORTED_MODULE_3__.observer)(functi
20725
21335
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .usePrefixCls */ .F)('formily-array-table');
20726
21336
  var dataSource = Array.isArray(field.value) ? field.value.slice() : [];
20727
21337
  var sources = useArrayTableSources();
20728
- var columns = useArrayTableColumns(dataSource, sources);
21338
+ var columns = useArrayTableColumns(field, sources);
20729
21339
  var pagination = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_4__/* .isBool */ .Bl)(props.pagination) ? {} : props.pagination;
20730
21340
  var addition = useAddition();
20731
21341
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ArrayTablePagination, __assign({}, pagination, {
@@ -21424,7 +22034,7 @@ Editable.Popover = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(func
21424
22034
  /* harmony export */ });
21425
22035
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
21426
22036
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
21427
- /* harmony import */ var react_sticky_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17129);
22037
+ /* harmony import */ var react_sticky_box__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23060);
21428
22038
  /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7288);
21429
22039
  /* harmony import */ var _form_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97848);
21430
22040
  /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35166);
@@ -22936,29 +23546,30 @@ var __read = undefined && undefined.__read || function (o, n) {
22936
23546
 
22937
23547
 
22938
23548
  var useFormItemLayout = function useFormItemLayout(props) {
22939
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
23549
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
22940
23550
 
22941
23551
  var layout = (0,_form_layout__WEBPACK_IMPORTED_MODULE_5__/* .useFormLayout */ .Hp)();
23552
+ var layoutType = (_b = (_a = props.layout) !== null && _a !== void 0 ? _a : layout.layout) !== null && _b !== void 0 ? _b : 'horizontal';
22942
23553
  return __assign(__assign({}, props), {
22943
- layout: (_b = (_a = props.layout) !== null && _a !== void 0 ? _a : layout.layout) !== null && _b !== void 0 ? _b : 'horizontal',
23554
+ layout: layoutType,
22944
23555
  colon: (_c = props.colon) !== null && _c !== void 0 ? _c : layout.colon,
22945
- labelAlign: layout.layout === 'vertical' ? (_e = (_d = props.labelAlign) !== null && _d !== void 0 ? _d : layout.labelAlign) !== null && _e !== void 0 ? _e : 'left' : (_g = (_f = props.labelAlign) !== null && _f !== void 0 ? _f : layout.labelAlign) !== null && _g !== void 0 ? _g : 'right',
22946
- labelWrap: (_h = props.labelWrap) !== null && _h !== void 0 ? _h : layout.labelWrap,
22947
- labelWidth: (_j = props.labelWidth) !== null && _j !== void 0 ? _j : layout.labelWidth,
22948
- wrapperWidth: (_k = props.wrapperWidth) !== null && _k !== void 0 ? _k : layout.wrapperWidth,
22949
- labelCol: (_l = props.labelCol) !== null && _l !== void 0 ? _l : layout.labelCol,
22950
- wrapperCol: (_m = props.wrapperCol) !== null && _m !== void 0 ? _m : layout.wrapperCol,
22951
- wrapperAlign: (_o = props.wrapperAlign) !== null && _o !== void 0 ? _o : layout.wrapperAlign,
22952
- wrapperWrap: (_p = props.wrapperWrap) !== null && _p !== void 0 ? _p : layout.wrapperWrap,
22953
- fullness: (_q = props.fullness) !== null && _q !== void 0 ? _q : layout.fullness,
22954
- size: (_r = props.size) !== null && _r !== void 0 ? _r : layout.size,
22955
- inset: (_s = props.inset) !== null && _s !== void 0 ? _s : layout.inset,
23556
+ labelAlign: layoutType === 'vertical' ? (_d = props.labelAlign) !== null && _d !== void 0 ? _d : 'left' : (_f = (_e = props.labelAlign) !== null && _e !== void 0 ? _e : layout.labelAlign) !== null && _f !== void 0 ? _f : 'right',
23557
+ labelWrap: (_g = props.labelWrap) !== null && _g !== void 0 ? _g : layout.labelWrap,
23558
+ labelWidth: (_h = props.labelWidth) !== null && _h !== void 0 ? _h : layout.labelWidth,
23559
+ wrapperWidth: (_j = props.wrapperWidth) !== null && _j !== void 0 ? _j : layout.wrapperWidth,
23560
+ labelCol: (_k = props.labelCol) !== null && _k !== void 0 ? _k : layout.labelCol,
23561
+ wrapperCol: (_l = props.wrapperCol) !== null && _l !== void 0 ? _l : layout.wrapperCol,
23562
+ wrapperAlign: (_m = props.wrapperAlign) !== null && _m !== void 0 ? _m : layout.wrapperAlign,
23563
+ wrapperWrap: (_o = props.wrapperWrap) !== null && _o !== void 0 ? _o : layout.wrapperWrap,
23564
+ fullness: (_p = props.fullness) !== null && _p !== void 0 ? _p : layout.fullness,
23565
+ size: (_q = props.size) !== null && _q !== void 0 ? _q : layout.size,
23566
+ inset: (_r = props.inset) !== null && _r !== void 0 ? _r : layout.inset,
22956
23567
  asterisk: props.asterisk,
22957
- bordered: (_t = props.bordered) !== null && _t !== void 0 ? _t : layout.bordered,
23568
+ bordered: (_s = props.bordered) !== null && _s !== void 0 ? _s : layout.bordered,
22958
23569
  feedbackIcon: props.feedbackIcon,
22959
- feedbackLayout: (_v = (_u = props.feedbackLayout) !== null && _u !== void 0 ? _u : layout.feedbackLayout) !== null && _v !== void 0 ? _v : 'loose',
22960
- tooltipLayout: (_x = (_w = props.tooltipLayout) !== null && _w !== void 0 ? _w : layout.tooltipLayout) !== null && _x !== void 0 ? _x : 'icon',
22961
- tooltipIcon: (_z = (_y = props.tooltipIcon) !== null && _y !== void 0 ? _y : layout.tooltipIcon) !== null && _z !== void 0 ? _z : react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_6__/* .QuestionCircleOutlinedIcon */ .x7, null)
23570
+ feedbackLayout: (_u = (_t = props.feedbackLayout) !== null && _t !== void 0 ? _t : layout.feedbackLayout) !== null && _u !== void 0 ? _u : 'loose',
23571
+ tooltipLayout: (_w = (_v = props.tooltipLayout) !== null && _v !== void 0 ? _v : layout.tooltipLayout) !== null && _w !== void 0 ? _w : 'icon',
23572
+ tooltipIcon: (_y = (_x = props.tooltipIcon) !== null && _x !== void 0 ? _x : layout.tooltipIcon) !== null && _y !== void 0 ? _y : react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_builtins___WEBPACK_IMPORTED_MODULE_6__/* .QuestionCircleOutlinedIcon */ .x7, null)
22962
23573
  });
22963
23574
  };
22964
23575
 
@@ -23140,7 +23751,7 @@ var BaseItem = function BaseItem(props) {
23140
23751
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __assign({}, (0,_builtins___WEBPACK_IMPORTED_MODULE_8__/* .pickDataProps */ .Y)(props), {
23141
23752
  style: __assign(__assign({}, style), gridStyles),
23142
23753
  "data-grid-span": props.gridSpan,
23143
- className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_b = {}, _b["".concat(prefixCls)] = true, _b["".concat(prefixCls, "-layout-").concat(layout)] = true, _b["".concat(prefixCls, "-").concat(feedbackStatus)] = !!feedbackStatus, _b["".concat(prefixCls, "-feedback-has-text")] = !!feedbackText, _b["".concat(prefixCls, "-size-").concat(size)] = !!size, _b["".concat(prefixCls, "-feedback-layout-").concat(feedbackLayout)] = !!feedbackLayout, _b["".concat(prefixCls, "-fullness")] = !!fullness || !!inset || !!feedbackIcon, _b["".concat(prefixCls, "-inset")] = !!inset, _b["".concat(prefix, "-input")] = !!inset, _b["".concat(prefixCls, "-active")] = active, _b["".concat(prefix, "-focus")] = active, _b["".concat(prefixCls, "-inset-active")] = !!inset && active, _b["".concat(prefixCls, "-label-align-").concat(labelAlign)] = true, _b["".concat(prefixCls, "-control-align-").concat(wrapperAlign)] = true, _b["".concat(prefixCls, "-label-wrap")] = !!labelWrap, _b["".concat(prefixCls, "-control-wrap")] = !!wrapperWrap, _b["".concat(prefixCls, "-bordered-none")] = bordered === false, _b[props.className] = !!props.className, _b)),
23754
+ className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_b = {}, _b["".concat(prefixCls)] = true, _b["".concat(prefixCls, "-layout-").concat(layout)] = true, _b["".concat(prefixCls, "-").concat(feedbackStatus)] = !!feedbackStatus, _b["".concat(prefixCls, "-feedback-has-text")] = !!feedbackText, _b["".concat(prefixCls, "-size-").concat(size)] = !!size, _b["".concat(prefixCls, "-feedback-layout-").concat(feedbackLayout)] = !!feedbackLayout, _b["".concat(prefixCls, "-fullness")] = !!fullness || !!inset || !!feedbackIcon, _b["".concat(prefixCls, "-inset")] = !!inset, _b["".concat(prefix, "input")] = !!inset, _b["".concat(prefixCls, "-active")] = active, _b["".concat(prefix, "focus")] = active, _b["".concat(prefixCls, "-extra-wrap")] = extra, _b["".concat(prefixCls, "-inset-active")] = !!inset && active, _b["".concat(prefixCls, "-label-align-").concat(labelAlign)] = true, _b["".concat(prefixCls, "-control-align-").concat(wrapperAlign)] = true, _b["".concat(prefixCls, "-label-wrap")] = !!labelWrap, _b["".concat(prefixCls, "-control-wrap")] = !!wrapperWrap, _b["".concat(prefixCls, "-bordered-none")] = bordered === false, _b[props.className] = !!props.className, _b)),
23144
23755
  onFocus: function onFocus() {
23145
23756
  if (feedbackIcon || inset) {
23146
23757
  setActive(true);
@@ -23159,7 +23770,7 @@ var BaseItem = function BaseItem(props) {
23159
23770
  className: classnames__WEBPACK_IMPORTED_MODULE_1___default()("".concat(prefixCls, "-addon-before"))
23160
23771
  }, addonBefore), react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
23161
23772
  style: wrapperStyle,
23162
- className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_d = {}, _d["".concat(prefixCls, "-control-content-component")] = true, _d["".concat(prefixCls, "-control-content-component-has-feedback-icon")] = !!feedbackIcon, _d["".concat(prefix, "-input")] = !!feedbackIcon, _d["".concat(prefixCls, "-active")] = active, _d["".concat(prefix, "-focus")] = active, _d))
23773
+ className: classnames__WEBPACK_IMPORTED_MODULE_1___default()((_d = {}, _d["".concat(prefixCls, "-control-content-component")] = true, _d["".concat(prefixCls, "-control-content-component-has-feedback-icon")] = !!feedbackIcon, _d["".concat(prefix, "input")] = !!feedbackIcon, _d["".concat(prefixCls, "-active")] = active, _d["".concat(prefix, "focus")] = active, _d))
23163
23774
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_form_layout__WEBPACK_IMPORTED_MODULE_5__/* .FormLayoutShallowContext.Provider */ .$u.Provider, {
23164
23775
  value: {
23165
23776
  size: size
@@ -23986,7 +24597,7 @@ var FeedbackBadge = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(fun
23986
24597
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.useField)();
23987
24598
  var errors = field.form.queryFeedbacks({
23988
24599
  type: 'error',
23989
- address: "".concat(field.address.concat(props.key), ".*")
24600
+ address: "".concat(field.address.concat(props.name), ".*")
23990
24601
  });
23991
24602
 
23992
24603
  if (errors.length) {
@@ -24018,7 +24629,7 @@ var FormTab = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function
24018
24629
  var _a, _b;
24019
24630
 
24020
24631
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, key);
24021
- (_b = formTab === null || formTab === void 0 ? void 0 : formTab.setActiveKey) === null || _b === void 0 ? void 0 : _b.call(formTab, key);
24632
+ (_b = _formTab === null || _formTab === void 0 ? void 0 : _formTab.setActiveKey) === null || _b === void 0 ? void 0 : _b.call(_formTab, key);
24022
24633
  },
24023
24634
  lazyLoad: false
24024
24635
  }), tabs.map(function (_a, key) {
@@ -24029,7 +24640,7 @@ var FormTab = (0,_formily_react__WEBPACK_IMPORTED_MODULE_4__.observer)(function
24029
24640
  key: key
24030
24641
  }, props, {
24031
24642
  tab: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FeedbackBadge, {
24032
- key: name,
24643
+ name: name,
24033
24644
  tab: props.tab
24034
24645
  })
24035
24646
  }), react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_4__.RecursionField, {
@@ -24118,9 +24729,9 @@ var Form = function Form(_a) {
24118
24729
  }, [lang]);
24119
24730
 
24120
24731
  var renderContent = function renderContent(form) {
24121
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_1__.ExpressionScope, {
24122
- value: {
24123
- $$form: form
24732
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_formily_react__WEBPACK_IMPORTED_MODULE_1__.RecordScope, {
24733
+ getRecord: function getRecord() {
24734
+ return (0,_formily_core__WEBPACK_IMPORTED_MODULE_3__.isForm)(form) ? form.values : form.value;
24124
24735
  }
24125
24736
  }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_preview_text__WEBPACK_IMPORTED_MODULE_4__/* .PreviewText.Placeholder */ .c.Placeholder, {
24126
24737
  value: previewTextPlaceholder
@@ -24319,7 +24930,7 @@ Input.TextArea = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_aliclo
24319
24930
 
24320
24931
 
24321
24932
 
24322
- var NumberPicker = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.NumberPicker, (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapProps)(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .mapSize */ .z, _builtins___WEBPACK_IMPORTED_MODULE_3__/* .mapStatus */ .O), (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapReadPretty)(_preview_text__WEBPACK_IMPORTED_MODULE_4__/* .PreviewText.Input */ .c.Input));
24933
+ var NumberPicker = (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.connect)(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.NumberPicker, (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapProps)(_builtins___WEBPACK_IMPORTED_MODULE_2__/* .mapSize */ .z, _builtins___WEBPACK_IMPORTED_MODULE_3__/* .mapStatus */ .O), (0,_formily_react__WEBPACK_IMPORTED_MODULE_0__.mapReadPretty)(_preview_text__WEBPACK_IMPORTED_MODULE_4__/* .PreviewText.NumberPicker */ .c.NumberPicker));
24323
24934
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (NumberPicker)));
24324
24935
 
24325
24936
  /***/ }),
@@ -24654,41 +25265,20 @@ var Password = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.connect)(function
24654
25265
  /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
24655
25266
  /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35166);
24656
25267
  /* harmony import */ var _builtins___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46284);
24657
- var __read = undefined && undefined.__read || function (o, n) {
24658
- var m = typeof Symbol === "function" && o[Symbol.iterator];
24659
- if (!m) return o;
24660
- var i = m.call(o),
24661
- r,
24662
- ar = [],
24663
- e;
25268
+ var __assign = undefined && undefined.__assign || function () {
25269
+ __assign = Object.assign || function (t) {
25270
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25271
+ s = arguments[i];
24664
25272
 
24665
- try {
24666
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
24667
- ar.push(r.value);
24668
- }
24669
- } catch (error) {
24670
- e = {
24671
- error: error
24672
- };
24673
- } finally {
24674
- try {
24675
- if (r && !r.done && (m = i["return"])) m.call(i);
24676
- } finally {
24677
- if (e) throw e.error;
25273
+ for (var p in s) {
25274
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
25275
+ }
24678
25276
  }
24679
- }
24680
25277
 
24681
- return ar;
24682
- };
25278
+ return t;
25279
+ };
24683
25280
 
24684
- var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
24685
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
24686
- if (ar || !(i in from)) {
24687
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
24688
- ar[i] = from[i];
24689
- }
24690
- }
24691
- return to.concat(ar || Array.prototype.slice.call(from));
25281
+ return __assign.apply(this, arguments);
24692
25282
  };
24693
25283
 
24694
25284
 
@@ -24705,63 +25295,23 @@ var usePlaceholder = function usePlaceholder(value) {
24705
25295
  return !(0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isEmpty */ .xb)(value) ? value : placeholder;
24706
25296
  };
24707
25297
 
24708
- var getValueByValue = function getValueByValue(array, inputValue, keyMap, path) {
24709
- if (path === void 0) {
24710
- path = [];
24711
- }
24712
-
24713
- var _a = keyMap || {},
24714
- _b = _a.inputKey,
24715
- inputKey = _b === void 0 ? 'value' : _b,
24716
- _c = _a.outputKey,
24717
- outputKey = _c === void 0 ? 'label' : _c,
24718
- _d = _a.childrenKey,
24719
- childrenKey = _d === void 0 ? 'children' : _d;
24720
-
24721
- var outputValue;
24722
-
24723
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isArr */ .H1)(array)) {
24724
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isArr */ .H1)(inputValue)) {
24725
- outputValue = inputValue.map(function (v) {
24726
- return getValueByValue(array, v, keyMap, path);
24727
- });
24728
- } else {
24729
- array.forEach(function (obj) {
24730
- var _a;
24731
-
24732
- if (outputValue === undefined) {
24733
- var currentPath = __spreadArray(__spreadArray([], __read(path), false), [obj === null || obj === void 0 ? void 0 : obj[outputKey]], false);
24734
-
24735
- if ((obj === null || obj === void 0 ? void 0 : obj[inputKey]) === inputValue) {
24736
- outputValue = {
24737
- leaf: obj === null || obj === void 0 ? void 0 : obj[outputKey],
24738
- whole: currentPath
24739
- };
24740
- } else if ((_a = obj === null || obj === void 0 ? void 0 : obj[childrenKey]) === null || _a === void 0 ? void 0 : _a.length) {
24741
- outputValue = getValueByValue(obj === null || obj === void 0 ? void 0 : obj[childrenKey], inputValue, keyMap, currentPath);
24742
- }
24743
- }
24744
- });
24745
- }
24746
-
24747
- return outputValue;
24748
- }
24749
-
24750
- return undefined;
25298
+ var Input = function Input(props) {
25299
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.Input, __assign({}, props, {
25300
+ isPreview: true
25301
+ }));
24751
25302
  };
24752
25303
 
24753
- var Input = function Input(props) {
24754
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
24755
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
24756
- className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, props.className)
24757
- }, props.addonBefore, props.innerBefore, usePlaceholder(props.value), props.innerAfter, props.addonAfter);
25304
+ var NumberPicker = function NumberPicker(props) {
25305
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.NumberPicker, __assign({}, props, {
25306
+ isPreview: true
25307
+ }));
24758
25308
  };
24759
25309
 
24760
25310
  var Select = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(function (props) {
24761
25311
  var _a, _b;
24762
25312
 
24763
25313
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.useField)();
24764
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25314
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24765
25315
  var dataSource = ((_a = field === null || field === void 0 ? void 0 : field.dataSource) === null || _a === void 0 ? void 0 : _a.length) ? field.dataSource : ((_b = props === null || props === void 0 ? void 0 : props.dataSource) === null || _b === void 0 ? void 0 : _b.length) ? props.dataSource : [];
24766
25316
  var placeholder = usePlaceholder();
24767
25317
 
@@ -24821,7 +25371,7 @@ var TreeSelect = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(functi
24821
25371
 
24822
25372
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.useField)();
24823
25373
  var placeholder = usePlaceholder();
24824
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25374
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24825
25375
  var dataSource = ((_a = field === null || field === void 0 ? void 0 : field.dataSource) === null || _a === void 0 ? void 0 : _a.length) ? field.dataSource : ((_b = props === null || props === void 0 ? void 0 : props.dataSource) === null || _b === void 0 ? void 0 : _b.length) ? props.dataSource : [];
24826
25376
 
24827
25377
  var getSelected = function getSelected() {
@@ -24889,24 +25439,47 @@ var Cascader = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(function
24889
25439
 
24890
25440
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.useField)();
24891
25441
  var placeholder = usePlaceholder();
24892
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25442
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24893
25443
  var dataSource = ((_a = field === null || field === void 0 ? void 0 : field.dataSource) === null || _a === void 0 ? void 0 : _a.length) ? field.dataSource : ((_b = props === null || props === void 0 ? void 0 : props.dataSource) === null || _b === void 0 ? void 0 : _b.length) ? props.dataSource : [];
24894
25444
 
25445
+ var findSelectedItem = function findSelectedItem(items, val) {
25446
+ return items.find(function (item) {
25447
+ return item.value == val;
25448
+ });
25449
+ };
25450
+
25451
+ var findSelectedItems = function findSelectedItems(sources, selectedValues) {
25452
+ return selectedValues.map(function (value) {
25453
+ var result = [];
25454
+ var items = sources;
25455
+ value.forEach(function (val) {
25456
+ var _a, _b;
25457
+
25458
+ var selectedItem = findSelectedItem(items, val);
25459
+ result.push({
25460
+ label: (_a = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a !== void 0 ? _a : '',
25461
+ value: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value
25462
+ });
25463
+ items = (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.children) !== null && _b !== void 0 ? _b : [];
25464
+ });
25465
+ return result;
25466
+ });
25467
+ };
25468
+
24895
25469
  var getSelected = function getSelected() {
24896
- return props.multiple ? (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .toArr */ ._K)(props.value) : [props.value];
25470
+ var val = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .toArr */ ._K)(props.value); // unified conversion to multi selection mode
25471
+
25472
+ return props.multiple ? val : [val];
24897
25473
  };
24898
25474
 
24899
25475
  var getLabels = function getLabels() {
24900
- var _a, _b;
24901
-
24902
25476
  var selected = getSelected();
24903
- var labels = (_b = (_a = getValueByValue(dataSource, selected)) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
24904
- return (0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isValid */ .JY)(item);
24905
- })) === null || _b === void 0 ? void 0 : _b.map(function (item) {
24906
- var _a;
24907
-
24908
- return (_a = item === null || item === void 0 ? void 0 : item.whole) === null || _a === void 0 ? void 0 : _a.join('/');
24909
- }).join(', ');
25477
+ var values = findSelectedItems(dataSource, selected);
25478
+ var labels = values.map(function (val) {
25479
+ return val.map(function (item) {
25480
+ return item.label;
25481
+ }).join('/');
25482
+ }).join(' ');
24910
25483
  return labels || placeholder;
24911
25484
  };
24912
25485
 
@@ -24917,7 +25490,7 @@ var Cascader = (0,_formily_react__WEBPACK_IMPORTED_MODULE_2__.observer)(function
24917
25490
 
24918
25491
  var DatePicker = function DatePicker(props) {
24919
25492
  var placeholder = usePlaceholder();
24920
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25493
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24921
25494
 
24922
25495
  var getLabels = function getLabels() {
24923
25496
  var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
@@ -24931,7 +25504,7 @@ var DatePicker = function DatePicker(props) {
24931
25504
 
24932
25505
  var DateRangePicker = function DateRangePicker(props) {
24933
25506
  var placeholder = usePlaceholder();
24934
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25507
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24935
25508
 
24936
25509
  var getLabels = function getLabels() {
24937
25510
  var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
@@ -24945,7 +25518,7 @@ var DateRangePicker = function DateRangePicker(props) {
24945
25518
 
24946
25519
  var TimePicker = function TimePicker(props) {
24947
25520
  var placeholder = usePlaceholder();
24948
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25521
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24949
25522
 
24950
25523
  var getLabels = function getLabels() {
24951
25524
  var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
@@ -24959,7 +25532,7 @@ var TimePicker = function TimePicker(props) {
24959
25532
 
24960
25533
  var TimePicker2 = function TimePicker2(props) {
24961
25534
  var placeholder = usePlaceholder();
24962
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25535
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24963
25536
 
24964
25537
  var getLabels = function getLabels() {
24965
25538
  var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
@@ -24973,7 +25546,7 @@ var TimePicker2 = function TimePicker2(props) {
24973
25546
 
24974
25547
  var TimeRangePicker2 = function TimeRangePicker2(props) {
24975
25548
  var placeholder = usePlaceholder();
24976
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25549
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24977
25550
 
24978
25551
  var getLabels = function getLabels() {
24979
25552
  var labels = (0,_builtins___WEBPACK_IMPORTED_MODULE_6__/* .formatMomentValue */ .$)(props.value, props.format, placeholder);
@@ -24986,7 +25559,7 @@ var TimeRangePicker2 = function TimeRangePicker2(props) {
24986
25559
  };
24987
25560
 
24988
25561
  var Text = function Text(props) {
24989
- var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-text', props);
25562
+ var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('form-preview', props);
24990
25563
  return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
24991
25564
  className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, props.className),
24992
25565
  style: props.style
@@ -24994,6 +25567,7 @@ var Text = function Text(props) {
24994
25567
  };
24995
25568
 
24996
25569
  Text.Input = Input;
25570
+ Text.NumberPicker = NumberPicker;
24997
25571
  Text.Select = Select;
24998
25572
  Text.TreeSelect = TreeSelect;
24999
25573
  Text.Cascader = Cascader;
@@ -25239,27 +25813,28 @@ var addPrimaryKey = function addPrimaryKey(dataSource, rowKey, primaryKey) {
25239
25813
  var SelectTable = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(function (props) {
25240
25814
  var _a;
25241
25815
 
25242
- var mode = props.mode,
25243
- propsDataSource = props.dataSource,
25244
- optionAsValue = props.optionAsValue,
25245
- valueType = props.valueType,
25246
- showSearch = props.showSearch,
25247
- filterOption = props.filterOption,
25248
- filterSort = props.filterSort,
25249
- onSearch = props.onSearch,
25250
- searchProps = props.searchProps,
25251
- className = props.className,
25252
- value = props.value,
25253
- onChange = props.onChange,
25254
- rowSelection = props.rowSelection,
25255
- rowKey = props.primaryKey,
25256
- otherTableProps = __rest(props, ["mode", "dataSource", "optionAsValue", "valueType", "showSearch", "filterOption", "filterSort", "onSearch", "searchProps", "className", "value", "onChange", "rowSelection", "primaryKey"]);
25816
+ var _b = props,
25817
+ mode = _b.mode,
25818
+ propsDataSource = _b.dataSource,
25819
+ optionAsValue = _b.optionAsValue,
25820
+ valueType = _b.valueType,
25821
+ showSearch = _b.showSearch,
25822
+ filterOption = _b.filterOption,
25823
+ filterSort = _b.filterSort,
25824
+ onSearch = _b.onSearch,
25825
+ searchProps = _b.searchProps,
25826
+ className = _b.className,
25827
+ value = _b.value,
25828
+ onChange = _b.onChange,
25829
+ rowSelection = _b.rowSelection,
25830
+ rowKey = _b.primaryKey,
25831
+ otherTableProps = __rest(_b, ["mode", "dataSource", "optionAsValue", "valueType", "showSearch", "filterOption", "filterSort", "onSearch", "searchProps", "className", "value", "onChange", "rowSelection", "primaryKey"]);
25257
25832
 
25258
25833
  var prefixCls = (0,_builtins___WEBPACK_IMPORTED_MODULE_5__/* .usePrefixCls */ .F)('formily-select-table', props);
25259
25834
 
25260
- var _b = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(), 2),
25261
- searchValue = _b[0],
25262
- setSearchValue = _b[1];
25835
+ var _c = __read((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(), 2),
25836
+ searchValue = _c[0],
25837
+ setSearchValue = _c[1];
25263
25838
 
25264
25839
  var field = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.useField)();
25265
25840
  var loading = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isBool */ .Bl)(props.loading) ? props.loading : field.loading;
@@ -25267,9 +25842,9 @@ var SelectTable = (0,_formily_react__WEBPACK_IMPORTED_MODULE_1__.observer)(funct
25267
25842
  var readOnly = field.readOnly;
25268
25843
  var readPretty = field.readPretty;
25269
25844
 
25270
- var _c = (0,_useSize__WEBPACK_IMPORTED_MODULE_6__/* .useSize */ .t)((_a = field.decoratorProps) === null || _a === void 0 ? void 0 : _a.size, searchProps === null || searchProps === void 0 ? void 0 : searchProps.size, props === null || props === void 0 ? void 0 : props.size),
25271
- searchSize = _c.searchSize,
25272
- tableSize = _c.tableSize;
25845
+ var _d = (0,_useSize__WEBPACK_IMPORTED_MODULE_6__/* .useSize */ .t)((_a = field.decoratorProps) === null || _a === void 0 ? void 0 : _a.size, searchProps === null || searchProps === void 0 ? void 0 : searchProps.size, props === null || props === void 0 ? void 0 : props.size),
25846
+ searchSize = _d.searchSize,
25847
+ tableSize = _d.tableSize;
25273
25848
 
25274
25849
  var primaryKey = (0,_formily_shared__WEBPACK_IMPORTED_MODULE_3__/* .isFn */ .LQ)(rowKey) ? '__formily_key__' : rowKey;
25275
25850
  var columns = useColumns(); // dataSource
@@ -56885,6 +57460,374 @@ module.exports = withSideEffect;
56885
57460
 
56886
57461
  /***/ }),
56887
57462
 
57463
+ /***/ 23060:
57464
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
57465
+
57466
+ "use strict";
57467
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57468
+ /* harmony export */ "Z": () => (/* binding */ StickyBox)
57469
+ /* harmony export */ });
57470
+ /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42081);
57471
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
57472
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
57473
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94738);
57474
+
57475
+
57476
+
57477
+
57478
+
57479
+ var getScrollParent = function getScrollParent(node) {
57480
+ var parent = node;
57481
+
57482
+ while (parent = parent.parentElement) {
57483
+ var overflowYVal = getComputedStyle(parent, null).getPropertyValue("overflow-y");
57484
+ if (parent === document.body) return window;
57485
+ if (overflowYVal === "auto" || overflowYVal === "scroll") return parent;
57486
+ }
57487
+
57488
+ return window;
57489
+ };
57490
+
57491
+ var offsetTill = function offsetTill(node, target) {
57492
+ var current = node;
57493
+ var offset = 0; // If target is not an offsetParent itself, subtract its offsetTop and set correct target
57494
+
57495
+ if (target.firstChild && target.firstChild.offsetParent !== target) {
57496
+ offset += node.offsetTop - target.offsetTop;
57497
+ target = node.offsetParent;
57498
+ offset += -node.offsetTop;
57499
+ }
57500
+
57501
+ do {
57502
+ offset += current.offsetTop;
57503
+ current = current.offsetParent;
57504
+ } while (current && current !== target);
57505
+
57506
+ return offset;
57507
+ };
57508
+
57509
+ var stickyProp = null;
57510
+
57511
+ if (typeof CSS !== "undefined" && CSS.supports) {
57512
+ if (CSS.supports("position", "sticky")) stickyProp = "sticky";else if (CSS.supports("position", "-webkit-sticky")) stickyProp = "-webkit-sticky";
57513
+ } // Inspired by https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
57514
+
57515
+
57516
+ var passiveArg = false;
57517
+
57518
+ try {
57519
+ var opts = Object.defineProperty({}, "passive", {
57520
+ // eslint-disable-next-line getter-return
57521
+ get: function get() {
57522
+ passiveArg = {
57523
+ passive: true
57524
+ };
57525
+ }
57526
+ });
57527
+ window.addEventListener("testPassive", null, opts);
57528
+ window.removeEventListener("testPassive", null, opts);
57529
+ } catch (e) {}
57530
+
57531
+ var StickyBox = /*#__PURE__*/function (_React$Component) {
57532
+ (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(StickyBox, _React$Component);
57533
+
57534
+ function StickyBox(props) {
57535
+ var _this = _React$Component.call(this, props) || this;
57536
+
57537
+ _this.addListener = function (element, event, handler, passive) {
57538
+ element.addEventListener(event, handler, passive);
57539
+
57540
+ _this.unsubscribes.push(function () {
57541
+ return element.removeEventListener(event, handler);
57542
+ });
57543
+ };
57544
+
57545
+ _this.addResizeObserver = function (node, handler) {
57546
+ var ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z(handler);
57547
+ ro.observe(node);
57548
+
57549
+ _this.unsubscribes.push(function () {
57550
+ return ro.disconnect();
57551
+ });
57552
+ };
57553
+
57554
+ _this.registerContainerRef = function (n) {
57555
+ if (!stickyProp) return;
57556
+ _this.node = n;
57557
+
57558
+ if (n) {
57559
+ _this.scrollPane = getScrollParent(_this.node);
57560
+ _this.latestScrollY = _this.scrollPane === window ? window.scrollY : _this.scrollPane.scrollTop;
57561
+
57562
+ _this.addListener(_this.scrollPane, "scroll", _this.handleScroll, passiveArg);
57563
+
57564
+ _this.addListener(_this.scrollPane, "mousewheel", _this.handleScroll, passiveArg);
57565
+
57566
+ if (_this.scrollPane === window) {
57567
+ _this.addListener(window, "resize", _this.handleWindowResize);
57568
+
57569
+ _this.handleWindowResize();
57570
+ } else {
57571
+ _this.addResizeObserver(_this.scrollPane, _this.handleScrollPaneResize);
57572
+
57573
+ _this.handleScrollPaneResize();
57574
+ }
57575
+
57576
+ _this.addResizeObserver(_this.node.parentNode, _this.handleParentNodeResize);
57577
+
57578
+ _this.handleParentNodeResize();
57579
+
57580
+ _this.addResizeObserver(_this.node, _this.handleNodeResize);
57581
+
57582
+ _this.handleNodeResize({
57583
+ initial: true
57584
+ });
57585
+
57586
+ _this.initial();
57587
+ } else {
57588
+ _this.unsubscribes.forEach(function (fn) {
57589
+ return fn();
57590
+ });
57591
+
57592
+ _this.unsubscribes = [];
57593
+ _this.scrollPane = null;
57594
+ }
57595
+ };
57596
+
57597
+ _this.getCurrentOffset = function () {
57598
+ if (_this.mode === "relative") return _this.offset;
57599
+ var _this$props = _this.props,
57600
+ offsetTop = _this$props.offsetTop,
57601
+ offsetBottom = _this$props.offsetBottom;
57602
+
57603
+ if (_this.mode === "stickyTop") {
57604
+ return Math.max(0, _this.scrollPaneOffset + _this.latestScrollY - _this.naturalTop + offsetTop);
57605
+ }
57606
+
57607
+ if (_this.mode === "stickyBottom") {
57608
+ return Math.max(0, _this.scrollPaneOffset + _this.latestScrollY + _this.viewPortHeight - (_this.naturalTop + _this.nodeHeight + offsetBottom));
57609
+ }
57610
+ };
57611
+
57612
+ _this.handleWindowResize = function () {
57613
+ _this.viewPortHeight = window.innerHeight;
57614
+ _this.scrollPaneOffset = 0;
57615
+
57616
+ _this.handleScroll();
57617
+ };
57618
+
57619
+ _this.handleScrollPaneResize = function () {
57620
+ _this.viewPortHeight = _this.scrollPane.offsetHeight;
57621
+
57622
+ if (false) {} // Only applicable if scrollPane is an offsetParent
57623
+
57624
+
57625
+ if (_this.scrollPane.firstChild.offsetParent === _this.scrollPane) {
57626
+ _this.scrollPaneOffset = _this.scrollPane.getBoundingClientRect().top;
57627
+ } else {
57628
+ _this.scrollPaneOffset = 0;
57629
+ }
57630
+
57631
+ _this.handleScroll();
57632
+ };
57633
+
57634
+ _this.handleParentNodeResize = function () {
57635
+ var parentNode = _this.node.parentNode;
57636
+ var computedParentStyle = getComputedStyle(parentNode, null);
57637
+ var parentPaddingTop = parseInt(computedParentStyle.getPropertyValue("padding-top"), 10);
57638
+ var parentPaddingBottom = parseInt(computedParentStyle.getPropertyValue("padding-bottom"), 10);
57639
+ _this.naturalTop = offsetTill(parentNode, _this.scrollPane) + parentPaddingTop + _this.scrollPaneOffset;
57640
+ var oldParentHeight = _this.parentHeight;
57641
+ _this.parentHeight = parentNode.getBoundingClientRect().height - (parentPaddingTop + parentPaddingBottom);
57642
+
57643
+ if (_this.mode === "relative") {
57644
+ if (_this.props.bottom) {
57645
+ _this.changeMode("relative");
57646
+ } else {
57647
+ // If parent height decreased...
57648
+ if (oldParentHeight > _this.parentHeight) {
57649
+ _this.changeToStickyBottomIfBoxTooLow(_this.latestScrollY);
57650
+ }
57651
+ }
57652
+ }
57653
+
57654
+ if (oldParentHeight !== _this.parentHeight && _this.mode === "relative") {
57655
+ _this.latestScrollY = Number.POSITIVE_INFINITY;
57656
+
57657
+ _this.handleScroll();
57658
+ }
57659
+ };
57660
+
57661
+ _this.handleNodeResize = function (_temp) {
57662
+ var _ref = _temp === void 0 ? {} : _temp,
57663
+ initial = _ref.initial;
57664
+
57665
+ var prevHeight = _this.nodeHeight;
57666
+ _this.nodeHeight = _this.node.getBoundingClientRect().height;
57667
+
57668
+ if (!initial && prevHeight !== _this.nodeHeight) {
57669
+ var _this$props2 = _this.props,
57670
+ offsetTop = _this$props2.offsetTop,
57671
+ offsetBottom = _this$props2.offsetBottom,
57672
+ bottom = _this$props2.bottom;
57673
+
57674
+ if (_this.nodeHeight + offsetTop + offsetBottom <= _this.viewPortHeight) {
57675
+ // Just make it sticky if node smaller than viewport
57676
+ _this.mode = undefined;
57677
+
57678
+ _this.initial();
57679
+ } else {
57680
+ var diff = prevHeight - _this.nodeHeight;
57681
+ var lowestPossible = _this.parentHeight - _this.nodeHeight;
57682
+ var nextOffset = Math.min(lowestPossible, _this.getCurrentOffset() + (bottom ? diff : 0));
57683
+ _this.offset = Math.max(0, nextOffset);
57684
+ if (!bottom || _this.mode !== "stickyBottom") _this.changeMode("relative");
57685
+ }
57686
+ }
57687
+ };
57688
+
57689
+ _this.handleScroll = function () {
57690
+ var _this$props3 = _this.props,
57691
+ offsetTop = _this$props3.offsetTop,
57692
+ offsetBottom = _this$props3.offsetBottom;
57693
+ var scrollY = _this.scrollPane === window ? window.scrollY : _this.scrollPane.scrollTop;
57694
+ if (scrollY === _this.latestScrollY) return;
57695
+
57696
+ if (_this.nodeHeight + offsetTop + offsetBottom <= _this.viewPortHeight) {
57697
+ // Just make it sticky if node smaller than viewport
57698
+ _this.initial();
57699
+
57700
+ _this.latestScrollY = scrollY;
57701
+ return;
57702
+ }
57703
+
57704
+ var scrollDelta = scrollY - _this.latestScrollY;
57705
+ _this.offset = _this.getCurrentOffset();
57706
+
57707
+ if (scrollDelta > 0) {
57708
+ // scroll down
57709
+ if (_this.mode === "stickyTop") {
57710
+ if (scrollY + _this.scrollPaneOffset + offsetTop > _this.naturalTop) {
57711
+ if (scrollY + _this.scrollPaneOffset + _this.viewPortHeight <= _this.naturalTop + _this.nodeHeight + _this.offset + offsetBottom) {
57712
+ _this.changeMode("relative");
57713
+ } else {
57714
+ _this.changeMode("stickyBottom");
57715
+ }
57716
+ }
57717
+ } else if (_this.mode === "relative") {
57718
+ _this.changeToStickyBottomIfBoxTooLow(scrollY);
57719
+ }
57720
+ } else {
57721
+ // scroll up
57722
+ if (_this.mode === "stickyBottom") {
57723
+ if (_this.scrollPaneOffset + scrollY + _this.viewPortHeight < _this.naturalTop + _this.parentHeight + offsetBottom) {
57724
+ if (_this.scrollPaneOffset + scrollY + offsetTop >= _this.naturalTop + _this.offset) {
57725
+ _this.changeMode("relative");
57726
+ } else {
57727
+ _this.changeMode("stickyTop");
57728
+ }
57729
+ }
57730
+ } else if (_this.mode === "relative") {
57731
+ if (_this.scrollPaneOffset + scrollY + offsetTop < _this.naturalTop + _this.offset) {
57732
+ _this.changeMode("stickyTop");
57733
+ }
57734
+ }
57735
+ }
57736
+
57737
+ _this.latestScrollY = scrollY;
57738
+ };
57739
+
57740
+ if (props.offset && "production" !== "production") {}
57741
+
57742
+ _this.unsubscribes = [];
57743
+ return _this;
57744
+ }
57745
+
57746
+ var _proto = StickyBox.prototype;
57747
+
57748
+ _proto.changeMode = function changeMode(newMode) {
57749
+ var _this$props4 = this.props,
57750
+ onChangeMode = _this$props4.onChangeMode,
57751
+ offsetTop = _this$props4.offsetTop,
57752
+ offsetBottom = _this$props4.offsetBottom,
57753
+ bottom = _this$props4.bottom;
57754
+ if (this.mode !== newMode) onChangeMode(this.mode, newMode);
57755
+ this.mode = newMode;
57756
+
57757
+ if (newMode === "relative") {
57758
+ this.node.style.position = "relative";
57759
+
57760
+ if (bottom) {
57761
+ var nextBottom = Math.max(0, this.parentHeight - this.nodeHeight - this.offset);
57762
+ this.node.style.bottom = nextBottom + "px";
57763
+ } else {
57764
+ this.node.style.top = this.offset + "px";
57765
+ }
57766
+ } else {
57767
+ this.node.style.position = stickyProp;
57768
+
57769
+ if (newMode === "stickyBottom") {
57770
+ if (bottom) {
57771
+ this.node.style.bottom = offsetBottom + "px";
57772
+ } else {
57773
+ this.node.style.top = this.viewPortHeight - this.nodeHeight - offsetBottom + "px";
57774
+ }
57775
+ } else {
57776
+ // stickyTop
57777
+ if (bottom) {
57778
+ this.node.style.bottom = this.viewPortHeight - this.nodeHeight - offsetBottom + "px";
57779
+ } else {
57780
+ this.node.style.top = offsetTop + "px";
57781
+ }
57782
+ }
57783
+ }
57784
+
57785
+ this.offset = this.getCurrentOffset();
57786
+ };
57787
+
57788
+ _proto.initial = function initial() {
57789
+ var bottom = this.props.bottom;
57790
+
57791
+ if (bottom) {
57792
+ if (this.mode !== "stickyBottom") this.changeMode("stickyBottom");
57793
+ } else {
57794
+ if (this.mode !== "stickyTop") this.changeMode("stickyTop");
57795
+ }
57796
+ };
57797
+
57798
+ _proto.changeToStickyBottomIfBoxTooLow = function changeToStickyBottomIfBoxTooLow(scrollY) {
57799
+ var offsetBottom = this.props.offsetBottom;
57800
+
57801
+ if (scrollY + this.scrollPaneOffset + this.viewPortHeight >= this.naturalTop + this.nodeHeight + this.offset + offsetBottom) {
57802
+ this.changeMode("stickyBottom");
57803
+ }
57804
+ };
57805
+
57806
+ _proto.render = function render() {
57807
+ var _this$props5 = this.props,
57808
+ children = _this$props5.children,
57809
+ className = _this$props5.className,
57810
+ style = _this$props5.style;
57811
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
57812
+ className: className,
57813
+ style: style,
57814
+ ref: this.registerContainerRef
57815
+ }, children);
57816
+ };
57817
+
57818
+ return StickyBox;
57819
+ }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
57820
+
57821
+
57822
+ StickyBox.defaultProps = {
57823
+ onChangeMode: function onChangeMode() {},
57824
+ offsetTop: 0,
57825
+ offsetBottom: 0
57826
+ };
57827
+ false ? 0 : void 0;
57828
+
57829
+ /***/ }),
57830
+
56888
57831
  /***/ 94738:
56889
57832
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
56890
57833
 
@@ -67246,6 +68189,129 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
67246
68189
 
67247
68190
  /***/ }),
67248
68191
 
68192
+ /***/ 95904:
68193
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
68194
+
68195
+ "use strict";
68196
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
68197
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
68198
+ /* harmony export */ });
68199
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
68200
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
68201
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
68202
+ /* harmony import */ var _teamix_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89227);
68203
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33049);
68204
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__);
68205
+ function _typeof(obj) {
68206
+ "@babel/helpers - typeof";
68207
+
68208
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
68209
+ return typeof obj;
68210
+ } : function (obj) {
68211
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
68212
+ }, _typeof(obj);
68213
+ }
68214
+
68215
+
68216
+
68217
+
68218
+
68219
+
68220
+ var Tooltip = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_3__.Balloon.Tooltip;
68221
+ var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.usePrefixCls)('teamix-pro-field-output-avatar');
68222
+
68223
+ var Avatar = function Avatar(props) {
68224
+ var result = props.result,
68225
+ _props$render = props.render,
68226
+ render = _props$render === void 0 ? {} : _props$render,
68227
+ _props$value = props.value,
68228
+ value = _props$value === void 0 ? [] : _props$value;
68229
+ var _render$tooltip = render.tooltip,
68230
+ tooltip = _render$tooltip === void 0 ? [] : _render$tooltip;
68231
+
68232
+ var renderHead = function renderHead() {
68233
+ var _render$avatar, _render$avatar3;
68234
+
68235
+ if ((_render$avatar = _typeof(render === null || render === void 0 ? void 0 : render.avatar)) !== null && _render$avatar !== void 0 ? _render$avatar : (render === null || render === void 0 ? void 0 : render.head) === 'string') {
68236
+ var _ref, _render$avatar2;
68237
+
68238
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68239
+ className: cls({
68240
+ box: true
68241
+ })
68242
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("img", {
68243
+ src: (_ref = (_render$avatar2 = render === null || render === void 0 ? void 0 : render.avatar) !== null && _render$avatar2 !== void 0 ? _render$avatar2 : render === null || render === void 0 ? void 0 : render.head) !== null && _ref !== void 0 ? _ref : ''
68244
+ }));
68245
+ }
68246
+
68247
+ return (_render$avatar3 = render === null || render === void 0 ? void 0 : render.avatar) !== null && _render$avatar3 !== void 0 ? _render$avatar3 : render === null || render === void 0 ? void 0 : render.head;
68248
+ }; // 渲染头像组
68249
+
68250
+
68251
+ var renderGroup = function renderGroup() {
68252
+ var renderList = value;
68253
+ var remainList = [];
68254
+ var remainTooltip = [];
68255
+
68256
+ if (value.length > 4) {
68257
+ var _tooltip$filter, _tooltip$filter2;
68258
+
68259
+ renderList = value.filter(function (_, index) {
68260
+ return index < 3;
68261
+ });
68262
+ remainList = value.filter(function (_, index) {
68263
+ return index >= 3;
68264
+ });
68265
+ remainTooltip = (_tooltip$filter = tooltip === null || tooltip === void 0 ? void 0 : (_tooltip$filter2 = tooltip.filter) === null || _tooltip$filter2 === void 0 ? void 0 : _tooltip$filter2.call(tooltip, function (_, index) {
68266
+ return index >= 3;
68267
+ })) !== null && _tooltip$filter !== void 0 ? _tooltip$filter : remainList;
68268
+
68269
+ if (remainTooltip.length === 0) {
68270
+ remainTooltip = remainList;
68271
+ }
68272
+
68273
+ if (tooltip && !Array.isArray(tooltip)) {
68274
+ remainTooltip = [tooltip];
68275
+ }
68276
+ }
68277
+
68278
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68279
+ className: cls('group')
68280
+ }, renderList.map(function (item, index) {
68281
+ var _tooltip$index;
68282
+
68283
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, {
68284
+ key: item,
68285
+ trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68286
+ className: cls('group-item')
68287
+ }, item === null || item === void 0 ? void 0 : item[0]),
68288
+ align: "t"
68289
+ }, tooltip && !Array.isArray(tooltip) && tooltip, Array.isArray(tooltip) && ((_tooltip$index = tooltip === null || tooltip === void 0 ? void 0 : tooltip[index]) !== null && _tooltip$index !== void 0 ? _tooltip$index : item === null || item === void 0 ? void 0 : item[0]));
68290
+ }), remainList.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, {
68291
+ trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68292
+ className: cls(['group-item', 'group-more'])
68293
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
68294
+ size: "small",
68295
+ type: "more-line",
68296
+ className: cls('group-more-icon')
68297
+ })),
68298
+ align: "t"
68299
+ }, remainTooltip.map(function (item) {
68300
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68301
+ key: item
68302
+ }, item);
68303
+ })));
68304
+ };
68305
+
68306
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
68307
+ className: cls()
68308
+ }, !Array.isArray(value) && renderHead(), Array.isArray(value) && renderGroup(), !Array.isArray(value) && result);
68309
+ };
68310
+
68311
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Avatar);
68312
+
68313
+ /***/ }),
68314
+
67249
68315
  /***/ 92206:
67250
68316
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
67251
68317
 
@@ -67808,47 +68874,6 @@ var Emphasize = function Emphasize(props) {
67808
68874
 
67809
68875
  /***/ }),
67810
68876
 
67811
- /***/ 46868:
67812
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
67813
-
67814
- "use strict";
67815
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
67816
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
67817
- /* harmony export */ });
67818
- /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
67819
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
67820
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67821
-
67822
-
67823
- var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.usePrefixCls)('teamix-pro-field-output-head');
67824
-
67825
- var Head = function Head(props) {
67826
- var result = props.result,
67827
- render = props.render;
67828
-
67829
- var renderHead = function renderHead() {
67830
- if (typeof (render === null || render === void 0 ? void 0 : render.head) === 'string') {
67831
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
67832
- className: cls({
67833
- box: true
67834
- })
67835
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("img", {
67836
- src: render === null || render === void 0 ? void 0 : render.head
67837
- }));
67838
- }
67839
-
67840
- return render === null || render === void 0 ? void 0 : render.head;
67841
- };
67842
-
67843
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
67844
- className: cls()
67845
- }, renderHead(), result);
67846
- };
67847
-
67848
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Head);
67849
-
67850
- /***/ }),
67851
-
67852
68877
  /***/ 3947:
67853
68878
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
67854
68879
 
@@ -67936,17 +68961,18 @@ var Icon = function Icon(props) {
67936
68961
  /* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21733);
67937
68962
  /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3947);
67938
68963
  /* harmony import */ var _SuffixIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(72235);
67939
- /* harmony import */ var _Head__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46868);
67940
- /* harmony import */ var _Unit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9844);
67941
- /* harmony import */ var _Emphasize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(34141);
67942
- /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(15122);
67943
- /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33049);
67944
- /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_11__);
67945
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28266);
67946
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_12__);
67947
- /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(80653);
67948
- /* harmony import */ var _ValueWithStatus__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(97609);
67949
- /* harmony import */ var _commonComponents__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(76457);
68964
+ /* harmony import */ var _Unit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9844);
68965
+ /* harmony import */ var _Emphasize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34141);
68966
+ /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(15122);
68967
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33049);
68968
+ /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_10__);
68969
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(28266);
68970
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
68971
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(80653);
68972
+ /* harmony import */ var _ValueWithStatus__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(97609);
68973
+ /* harmony import */ var _commonComponents__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(76457);
68974
+ /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95904);
68975
+ /* harmony import */ var _Ip__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(55902);
67950
68976
  var _excluded = ["isList", "overlay"];
67951
68977
 
67952
68978
  function _objectWithoutProperties(source, excluded) {
@@ -68002,18 +69028,23 @@ function _objectWithoutPropertiesLoose(source, excluded) {
68002
69028
 
68003
69029
 
68004
69030
 
68005
- var Tooltip = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_11__.Balloon.Tooltip;
69031
+
69032
+ var Tooltip = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_10__.Balloon.Tooltip;
68006
69033
  /**
68007
69034
  * 处理个性化输出
68008
69035
  * @param dom 已经完成option映射的dom
68009
69036
  * @param render render
68010
69037
  * @param value 经过映射的value
68011
69038
  * @param fieldValue 原始fieldValue
69039
+ * @param list 用于判断是否允许使用isList逻辑。
68012
69040
  * @returns
68013
69041
  */
68014
69042
 
68015
69043
  function individualization(dom, render, value, fieldValue) {
68016
- var result = dom; // 处理list输出。每一项都要重新渲染
69044
+ var result = dom; // isList标识。type类型为 avatarGroup 和 ip 的默认开启 isList 功能
69045
+
69046
+ var listFlag = (render === null || render === void 0 ? void 0 : render.type) === 'ip'; // 处理list输出。每一项都要重新渲染
69047
+ // isList 后,原先的部分属性,比如跳转链接、前后缀都需要获取index来映射list的对应关系
68017
69048
 
68018
69049
  if (render === null || render === void 0 ? void 0 : render.isList) {
68019
69050
  var isList = render.isList,
@@ -68023,7 +69054,7 @@ function individualization(dom, render, value, fieldValue) {
68023
69054
  if (Array.isArray(dom)) {
68024
69055
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, dom.map(function (item, index) {
68025
69056
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
68026
- className: classnames__WEBPACK_IMPORTED_MODULE_12___default()({
69057
+ className: classnames__WEBPACK_IMPORTED_MODULE_11___default()({
68027
69058
  'teamix-pro-field-field-checkbox-tag': true,
68028
69059
  'teamix-pro-field-field-checkbox-tag-over-line': render === null || render === void 0 ? void 0 : render.wrap
68029
69060
  }),
@@ -68031,6 +69062,14 @@ function individualization(dom, render, value, fieldValue) {
68031
69062
  }, individualization(item, listRender, value === null || value === void 0 ? void 0 : value[index], fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue[index]));
68032
69063
  }));
68033
69064
  }
69065
+ } // ip类型
69066
+
69067
+
69068
+ if ((render === null || render === void 0 ? void 0 : render.type) === 'ip') {
69069
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Ip__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
69070
+ value: value,
69071
+ render: render
69072
+ });
68034
69073
  } // 如果有前缀图标,需要加粗
68035
69074
 
68036
69075
 
@@ -68042,7 +69081,7 @@ function individualization(dom, render, value, fieldValue) {
68042
69081
 
68043
69082
 
68044
69083
  if (render === null || render === void 0 ? void 0 : render.isEmphasize) {
68045
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Emphasize__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
69084
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Emphasize__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
68046
69085
  result: result,
68047
69086
  render: render
68048
69087
  });
@@ -68050,7 +69089,7 @@ function individualization(dom, render, value, fieldValue) {
68050
69089
 
68051
69090
 
68052
69091
  if (render === null || render === void 0 ? void 0 : render.unit) {
68053
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Unit__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
69092
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Unit__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
68054
69093
  result: result,
68055
69094
  render: render
68056
69095
  });
@@ -68058,7 +69097,7 @@ function individualization(dom, render, value, fieldValue) {
68058
69097
 
68059
69098
 
68060
69099
  if ((render === null || render === void 0 ? void 0 : render.color) && !render.type) {
68061
- var color = typeof render.color === 'string' ? (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_13__.getColor)(render.color) : 'var(--color-text1-3, #333333)';
69100
+ var color = typeof render.color === 'string' ? (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_12__.getColor)(render.color) : 'var(--color-text1-3, #333333)';
68062
69101
  result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
68063
69102
  style: {
68064
69103
  color: color
@@ -68079,7 +69118,7 @@ function individualization(dom, render, value, fieldValue) {
68079
69118
  if ((render === null || render === void 0 ? void 0 : render.type) !== 'statusTag' && (render === null || render === void 0 ? void 0 : render.type) !== 'statusIconTag') {
68080
69119
  var _render$rows, _render$overlayProps;
68081
69120
 
68082
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_15__/* .Ellipsis */ .mH, {
69121
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_14__/* .Ellipsis */ .mH, {
68083
69122
  className: "teamix-pro-field-output-tooltip",
68084
69123
  tooltip: tooltip,
68085
69124
  rows: (_render$rows = render === null || render === void 0 ? void 0 : render.rows) !== null && _render$rows !== void 0 ? _render$rows : 1,
@@ -68106,7 +69145,7 @@ function individualization(dom, render, value, fieldValue) {
68106
69145
  } // 链接
68107
69146
 
68108
69147
 
68109
- if (render === null || render === void 0 ? void 0 : render.link) {
69148
+ if ((render === null || render === void 0 ? void 0 : render.link) && (render === null || render === void 0 ? void 0 : render.type) !== 'ip') {
68110
69149
  result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Link__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
68111
69150
  result: result,
68112
69151
  value: value,
@@ -68127,7 +69166,7 @@ function individualization(dom, render, value, fieldValue) {
68127
69166
 
68128
69167
 
68129
69168
  if (render === null || render === void 0 ? void 0 : render.edit) {
68130
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Edit__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
69169
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Edit__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
68131
69170
  result: result,
68132
69171
  value: value,
68133
69172
  renderEdit: render.renderEdit,
@@ -68159,7 +69198,7 @@ function individualization(dom, render, value, fieldValue) {
68159
69198
 
68160
69199
 
68161
69200
  if (render === null || render === void 0 ? void 0 : render.valueWithStatusConfig) {
68162
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ValueWithStatus__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
69201
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ValueWithStatus__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
68163
69202
  render: render,
68164
69203
  result: result,
68165
69204
  fieldValue: fieldValue
@@ -68176,15 +69215,16 @@ function individualization(dom, render, value, fieldValue) {
68176
69215
  } // 头像
68177
69216
 
68178
69217
 
68179
- if (render === null || render === void 0 ? void 0 : render.head) {
68180
- result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Head__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
69218
+ if ((render === null || render === void 0 ? void 0 : render.head) || (render === null || render === void 0 ? void 0 : render.avatar) || (render === null || render === void 0 ? void 0 : render.type) === 'avatarGroup') {
69219
+ result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Avatar__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
68181
69220
  result: result,
68182
- render: render
69221
+ render: render,
69222
+ value: value
68183
69223
  });
68184
- } // Tooltip
69224
+ } // Tooltip 头像组的Tooltip自行接管
68185
69225
 
68186
69226
 
68187
- if (render === null || render === void 0 ? void 0 : render.tooltip) {
69227
+ if ((render === null || render === void 0 ? void 0 : render.tooltip) && (render === null || render === void 0 ? void 0 : render.type) !== 'avatarGroup') {
68188
69228
  result = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Tooltip, {
68189
69229
  trigger: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
68190
69230
  className: "teamix-pro-field-tooltip"
@@ -68235,6 +69275,82 @@ function individualization(dom, render, value, fieldValue) {
68235
69275
 
68236
69276
  /***/ }),
68237
69277
 
69278
+ /***/ 55902:
69279
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
69280
+
69281
+ "use strict";
69282
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
69283
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
69284
+ /* harmony export */ });
69285
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80653);
69286
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59787);
69287
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
69288
+ /* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65092);
69289
+ function _defineProperty(obj, key, value) {
69290
+ if (key in obj) {
69291
+ Object.defineProperty(obj, key, {
69292
+ value: value,
69293
+ enumerable: true,
69294
+ configurable: true,
69295
+ writable: true
69296
+ });
69297
+ } else {
69298
+ obj[key] = value;
69299
+ }
69300
+
69301
+ return obj;
69302
+ }
69303
+
69304
+
69305
+
69306
+
69307
+
69308
+ var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_0__.usePrefixCls)('teamix-pro-field-output-ip');
69309
+ var ipTypeMap = {
69310
+ "public": '公',
69311
+ "private": '私'
69312
+ };
69313
+
69314
+ var Ip = function Ip(props) {
69315
+ var value = props.value,
69316
+ _props$render = props.render,
69317
+ render = _props$render === void 0 ? {} : _props$render;
69318
+ var _render$ipType = render.ipType,
69319
+ ipType = _render$ipType === void 0 ? [] : _render$ipType,
69320
+ linkOnClick = render.linkOnClick,
69321
+ link = render.link;
69322
+
69323
+ var renderIp = function renderIp() {
69324
+ return value.map(function (item, index) {
69325
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69326
+ className: cls('item'),
69327
+ key: item
69328
+ }, ipType[index] && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69329
+ className: cls(_defineProperty({
69330
+ block: true
69331
+ }, ipType[index], true))
69332
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69333
+ className: cls('block-text')
69334
+ }, ipTypeMap[ipType[index]])), link && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Link__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
69335
+ result: item,
69336
+ value: item,
69337
+ fieldVal: item,
69338
+ render: {
69339
+ linkOnClick: linkOnClick
69340
+ }
69341
+ }), !link && item);
69342
+ });
69343
+ };
69344
+
69345
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69346
+ className: cls()
69347
+ }, renderIp());
69348
+ };
69349
+
69350
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ip);
69351
+
69352
+ /***/ }),
69353
+
68238
69354
  /***/ 65092:
68239
69355
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
68240
69356
 
@@ -70539,7 +71655,6 @@ var FieldStepItem = function FieldStepItem(props) {
70539
71655
  fail = _index < current && !success || fail;
70540
71656
  }
70541
71657
 
70542
- console.log(process, success, fail, wait);
70543
71658
  return {
70544
71659
  process: process,
70545
71660
  success: success,
@@ -71630,13 +72745,12 @@ function getIconOptions(iconType, list, filterStr) {
71630
72745
  /* harmony export */ "y8": () => (/* binding */ isPromiseLike),
71631
72746
  /* harmony export */ "yO": () => (/* binding */ momentable)
71632
72747
  /* harmony export */ });
71633
- /* unused harmony exports deepEqual, cloneDeep, isValidElement, moment, loop */
72748
+ /* unused harmony exports deepEqual, cloneDeep, isValidElement, moment, loop, isEmpty */
71634
72749
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52308);
71635
72750
  /* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep__WEBPACK_IMPORTED_MODULE_0__);
71636
- /* harmony import */ var _formily_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71131);
71637
- /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
71638
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33034);
71639
- /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
72751
+ /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80653);
72752
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33034);
72753
+ /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
71640
72754
  function ownKeys(object, enumerableOnly) {
71641
72755
  var keys = Object.keys(object);
71642
72756
 
@@ -71785,7 +72899,6 @@ function _typeof(obj) {
71785
72899
 
71786
72900
 
71787
72901
 
71788
-
71789
72902
  function hasProps(obj) {
71790
72903
  var props = {};
71791
72904
 
@@ -71935,9 +73048,9 @@ function isPromiseLike(it) {
71935
73048
  */
71936
73049
 
71937
73050
  var moment = function moment(date, format) {
71938
- var local = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getLanguage)();
71939
- moment__WEBPACK_IMPORTED_MODULE_3___default().locale(local);
71940
- return moment__WEBPACK_IMPORTED_MODULE_3___default()((date === null || date === void 0 ? void 0 : date.toDate) ? date.toDate() : date, format);
73051
+ var local = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.getLanguage)();
73052
+ moment__WEBPACK_IMPORTED_MODULE_2___default().locale(local);
73053
+ return moment__WEBPACK_IMPORTED_MODULE_2___default()((date === null || date === void 0 ? void 0 : date.toDate) ? date.toDate() : date, format);
71941
73054
  };
71942
73055
  var momentable = function momentable(value, format) {
71943
73056
  return Array.isArray(value) ? value.map(function (val) {
@@ -71952,24 +73065,24 @@ var formatMomentValue = function formatMomentValue(value, format, placeholder) {
71952
73065
  var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
71953
73066
  if (!date) return placeholder;
71954
73067
 
71955
- if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.isArr)(format)) {
73068
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.isArr)(format)) {
71956
73069
  var _format = format[i];
71957
73070
 
71958
- if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.isFn)(_format)) {
73071
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.isFn)(_format)) {
71959
73072
  return _format(date);
71960
73073
  }
71961
73074
 
71962
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isEmpty */ .xb)(_format)) {
73075
+ if (isEmpty(_format)) {
71963
73076
  return date;
71964
73077
  }
71965
73078
 
71966
73079
  return moment(date).add(-2, 'days').format(_format);
71967
73080
  } else {
71968
- if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.isFn)(format)) {
73081
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.isFn)(format)) {
71969
73082
  return format(date);
71970
73083
  }
71971
73084
 
71972
- if ((0,_formily_shared__WEBPACK_IMPORTED_MODULE_1__/* .isEmpty */ .xb)(format)) {
73085
+ if (isEmpty(format)) {
71973
73086
  return date;
71974
73087
  }
71975
73088
 
@@ -71977,7 +73090,7 @@ var formatMomentValue = function formatMomentValue(value, format, placeholder) {
71977
73090
  }
71978
73091
  };
71979
73092
 
71980
- if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.isArr)(value)) {
73093
+ if ((0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.isArr)(value)) {
71981
73094
  return value.map(function (val, index) {
71982
73095
  return formatDate(val, format, index);
71983
73096
  });
@@ -72082,6 +73195,62 @@ function filterTreeData(nodes, predicate, aliasMap) {
72082
73195
  filterTreeValue: filterTreeValue
72083
73196
  };
72084
73197
  }
73198
+ function isEmpty(val) {
73199
+ if (val == null) {
73200
+ return true;
73201
+ } // Booleans...
73202
+
73203
+
73204
+ if (typeof val === 'boolean') {
73205
+ return false;
73206
+ } // Numbers...
73207
+
73208
+
73209
+ if (typeof val === 'number') {
73210
+ return false;
73211
+ } // Strings...
73212
+
73213
+
73214
+ if (typeof val === 'string') {
73215
+ return val.length === 0;
73216
+ } // Functions...
73217
+
73218
+
73219
+ if (typeof val === 'function') {
73220
+ return val.length === 0;
73221
+ } // Arrays...
73222
+
73223
+
73224
+ if (Array.isArray(val)) {
73225
+ if (val.length === 0) {
73226
+ return true;
73227
+ }
73228
+
73229
+ for (var i = 0; i < val.length; i++) {
73230
+ if (val[i] !== undefined && val[i] !== null && val[i] !== '' && val[i] !== 0) {
73231
+ return false;
73232
+ }
73233
+ }
73234
+
73235
+ return true;
73236
+ } // Objects...
73237
+
73238
+
73239
+ if (val.toString === toString) {
73240
+ switch (val.toString()) {
73241
+ // Maps, Sets, Files and Errors...
73242
+ case '[object File]':
73243
+ case '[object Map]':
73244
+ case '[object Set]':
73245
+ {
73246
+ return val.size === 0;
73247
+ }
73248
+ }
73249
+ } // Anything else...
73250
+
73251
+
73252
+ return false;
73253
+ }
72085
73254
 
72086
73255
  /***/ }),
72087
73256
 
@@ -72185,7 +73354,7 @@ var ProPageContainerFixedFooter = function ProPageContainerFixedFooter(props) {
72185
73354
  /* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67389);
72186
73355
  /* harmony import */ var _editable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(63978);
72187
73356
  var _excluded = ["children", "className"],
72188
- _excluded2 = ["editable", "selectedComponent", "onSelectComponent", "header", "sidebar", "switch", "operation", "content", "footer", "children", "sidebarCloseable", "sidebarClosed", "sidebarOnToggle", "fixedFooter", "footerAlign", "scrollArea", "className", "type"];
73357
+ _excluded2 = ["editable", "selectedComponent", "onSelectComponent", "header", "sidebar", "switch", "operation", "content", "footer", "children", "sidebarCloseable", "sidebarClosed", "sidebarOnToggle", "fixedFooter", "footerAlign", "scrollArea", "className", "type", "sidebarDirection"];
72189
73358
 
72190
73359
  function _typeof(obj) {
72191
73360
  "@babel/helpers - typeof";
@@ -72382,6 +73551,8 @@ var ProPageContainer = function ProPageContainer(props) {
72382
73551
  scrollArea = _props$scrollArea === void 0 ? 'all' : _props$scrollArea,
72383
73552
  className = props.className,
72384
73553
  type = props.type,
73554
+ _props$sidebarDirecti = props.sidebarDirection,
73555
+ sidebarDirection = _props$sidebarDirecti === void 0 ? 'left' : _props$sidebarDirecti,
72385
73556
  others = _objectWithoutProperties(props, _excluded2);
72386
73557
 
72387
73558
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0___default().useState(false),
@@ -72493,7 +73664,7 @@ var ProPageContainer = function ProPageContainer(props) {
72493
73664
  }, renderSwitch()), bordered && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
72494
73665
  className: cls('split-line')
72495
73666
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Section, {
72496
- className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(cls('body-bottom'), {
73667
+ className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(cls(['body-bottom', "body-bottom-".concat(sidebarDirection)]), {
72497
73668
  unscrollable: scorllContentOnly
72498
73669
  })
72499
73670
  }, renderSidebar(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Section, {
@@ -74743,7 +75914,7 @@ function useDialogTableAction(action, context) {
74743
75914
  /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(67096);
74744
75915
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(95983);
74745
75916
  var _excluded = ["trigger", "url", "customRequest", "method", "params", "data", "extendParams", "successMsg", "errorMsg", "formatParams", "formatResult", "onSuccess", "onError", "onOk", "onCancel", "hideFooter"],
74746
- _excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "popType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "message", "footerDescription", "footerAlign", "className"];
75917
+ _excluded2 = ["title", "content", "component", "schema", "onFinish", "dialogType", "dialogQuickShowType", "messageType", "popType", "beforeRequest", "onTrigger", "link", "beforeContent", "afterContent", "message", "footerDescription", "footerAlign", "footer", "className"];
74747
75918
 
74748
75919
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
74749
75920
 
@@ -74846,6 +76017,7 @@ function useDialogAction(action, actionContext, hasForm) {
74846
76017
  message = _getTargetValue.message,
74847
76018
  footerDescription = _getTargetValue.footerDescription,
74848
76019
  footerAlign = _getTargetValue.footerAlign,
76020
+ footer = _getTargetValue.footer,
74849
76021
  className = _getTargetValue.className,
74850
76022
  containerOtherProps = _objectWithoutPropertiesLoose(_getTargetValue, _excluded2);
74851
76023
 
@@ -74969,7 +76141,7 @@ function useDialogAction(action, actionContext, hasForm) {
74969
76141
  className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-dialog-footer-description', getFooterAlignClass(isDrawer, footerAlign))
74970
76142
  }, renderDialogFooterDescription(footerDescription))), _extends2.footerAlign = footerAlign, _extends2.className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-action-dialog', {
74971
76143
  'has-footer-description': !!footerDescription
74972
- }), _extends2), containerProps, containerOtherProps); // TODO Drawer 基础组件未支持此配置,日后支持,并修改onOk、onCancel写法
76144
+ }), _extends2.footer = addContextForReactNode(footer, dialogContext), _extends2), containerProps, containerOtherProps); // TODO Drawer 基础组件未支持此配置,日后支持,并修改onOk、onCancel写法
74973
76145
 
74974
76146
 
74975
76147
  if ((!dialogType || dialogType === 'dialog') && hideFooter) {
@@ -76982,7 +78154,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(fu
76982
78154
  var prefixCls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_1__.usePrefixCls)('teamix-pro-form-query-filter-advanced');
76983
78155
  var gridSchema = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
76984
78156
  return [{
76985
- name: 'FormGrid',
78157
+ name: 'AdvancedFilterFormGrid',
76986
78158
  component: 'FormGrid',
76987
78159
  props: _extends({
76988
78160
  breakpoints: [480, 720, 990, 1200, Infinity],
@@ -77002,6 +78174,7 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(fu
77002
78174
  align: 'right'
77003
78175
  },
77004
78176
  children: [{
78177
+ name: 'AdvancedFilterReset',
77005
78178
  component: 'Reset',
77006
78179
  props: {
77007
78180
  onResetValidateSuccess: onReset,
@@ -77021,6 +78194,11 @@ var AdvancedFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(fu
77021
78194
  }])
77022
78195
  }];
77023
78196
  }, [schema, onReset]);
78197
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
78198
+ var _otherProps$form;
78199
+
78200
+ otherProps == null ? void 0 : (_otherProps$form = otherProps.form) == null ? void 0 : _otherProps$form.clearFormGraph('AdvancedFilterReset');
78201
+ }, [onReset]);
77024
78202
  var getTeamixLayout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
77025
78203
  return breakpoints === true ? {
77026
78204
  breakpoints: [990],
@@ -81014,7 +82192,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
81014
82192
 
81015
82193
 
81016
82194
 
81017
- var version = '1.4.24';
82195
+ var version = '1.5.0-beta.1';
81018
82196
 
81019
82197
 
81020
82198
  /***/ }),
@@ -81199,7 +82377,18 @@ var InfoValueItem = function InfoValueItem(props) {
81199
82377
  successMessage = _infoItem$successMess === void 0 ? 'success' : _infoItem$successMess,
81200
82378
  actions = infoItem.actions,
81201
82379
  extra = infoItem.extra,
81202
- valueType = infoItem.valueType; // 获取处理过的 render
82380
+ valueType = infoItem.valueType,
82381
+ _infoItem$editProForm = infoItem.editProFormProps,
82382
+ editProFormProps = _infoItem$editProForm === void 0 ? {} : _infoItem$editProForm; // 获取配置
82383
+
82384
+ var getInfoItemProps = function getInfoItemProps(prop) {
82385
+ if (typeof prop === 'function') {
82386
+ return prop == null ? void 0 : prop(value, record);
82387
+ }
82388
+
82389
+ return prop;
82390
+ }; // 获取处理过的 render
82391
+
81203
82392
 
81204
82393
  var getRender = function getRender() {
81205
82394
  var _ref, _ref2;
@@ -81349,10 +82538,10 @@ var InfoValueItem = function InfoValueItem(props) {
81349
82538
  }; // 重写编辑逻辑替代field原有逻辑
81350
82539
 
81351
82540
 
81352
- if (isEdit) {
82541
+ if (getInfoItemProps(isEdit)) {
81353
82542
  // 渲染表单
81354
82543
  var renderContent = function renderContent() {
81355
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_form__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP, {
82544
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_form__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP, _extends({
81356
82545
  schema: [{
81357
82546
  name: dataIndex,
81358
82547
  component: 'Input',
@@ -81360,7 +82549,7 @@ var InfoValueItem = function InfoValueItem(props) {
81360
82549
  "default": value
81361
82550
  }],
81362
82551
  form: dataFilterForm
81363
- });
82552
+ }, getInfoItemProps(editProFormProps)));
81364
82553
  }; // 表单提交
81365
82554
 
81366
82555
 
@@ -86251,7 +87440,7 @@ var Layout = function Layout(props) {
86251
87440
  /* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__);
86252
87441
  /* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80653);
86253
87442
  /* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42341);
86254
- var _excluded = ["className", "onChange", "total", "totalRender", "pageSize", "current", "pageSizeList", "pageSizeSelector", "onPageSizeChange", "responsivePaginationType"];
87443
+ var _excluded = ["className", "onChange", "total", "pageSize", "current", "pageSizeList", "pageSizeSelector", "onPageSizeChange", "responsivePaginationType"];
86255
87444
 
86256
87445
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
86257
87446
 
@@ -86267,7 +87456,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
86267
87456
  var className = props.className,
86268
87457
  propsOnChange = props.onChange,
86269
87458
  total = props.total,
86270
- totalRender = props.totalRender,
86271
87459
  pageSize = props.pageSize,
86272
87460
  current = props.current,
86273
87461
  pageSizeList = props.pageSizeList,
@@ -88294,6 +89482,7 @@ var ProTable = function ProTable(props) {
88294
89482
 
88295
89483
  (_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.clearRowSelection == null ? void 0 : _actionRef$current6.clearRowSelection();
88296
89484
  setCurrentPage(1);
89485
+ console.log('currentPageSize1', pageSize);
88297
89486
 
88298
89487
  _request((_request3 = {}, _request3[targetPageKey] = 1, _request3), false, values);
88299
89488
  },
@@ -88303,6 +89492,7 @@ var ProTable = function ProTable(props) {
88303
89492
  (propsDataFilter == null ? void 0 : propsDataFilter.onReset) && (propsDataFilter == null ? void 0 : propsDataFilter.onReset());
88304
89493
  (_dataFilterFormRef$cu3 = dataFilterFormRef.current) == null ? void 0 : _dataFilterFormRef$cu3.reset();
88305
89494
  setCurrentPage(1);
89495
+ console.log('currentPageSize2', pageSize);
88306
89496
 
88307
89497
  _request((_request4 = {}, _request4[targetPageKey] = 1, _request4), false, values);
88308
89498
  }
@@ -88445,13 +89635,24 @@ var ProTable = function ProTable(props) {
88445
89635
  count: selectedCount
88446
89636
  })));
88447
89637
  }
89638
+ } else if (footerAction) {
89639
+ if (showSkeleton) {
89640
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
89641
+ className: cls('footer-left-wrapper')
89642
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_5__/* .ProSkeletonRaw.Footer.Operation */ .vR.Footer.Operation, null));
89643
+ } else {
89644
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
89645
+ className: cls('footer-left-wrapper')
89646
+ }, footerAction && renderFooterAction());
89647
+ }
88448
89648
  }
88449
89649
  }
88450
89650
 
88451
89651
  if (showPagination) {
88452
89652
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
88453
89653
  className: cls('footer', {
88454
- 'footer-has-rowSelection': rowSelection
89654
+ 'footer-has-rowSelection': rowSelection,
89655
+ 'footer-has-action': footerAction
88455
89656
  })
88456
89657
  }, renderRowSelection(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
88457
89658
  className: cls('footer-right-wrapper')
@@ -93937,372 +95138,37 @@ function _extends() {
93937
95138
 
93938
95139
  /***/ }),
93939
95140
 
93940
- /***/ 17129:
95141
+ /***/ 42081:
93941
95142
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
93942
95143
 
93943
95144
  "use strict";
93944
95145
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
93945
- /* harmony export */ "Z": () => (/* binding */ src_default)
95146
+ /* harmony export */ "Z": () => (/* binding */ _inheritsLoose)
93946
95147
  /* harmony export */ });
93947
- /* unused harmony export useStickyBox */
93948
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59787);
93949
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94738);
93950
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
93951
-
93952
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
93953
-
93954
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
93955
-
93956
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
93957
-
93958
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
93959
-
93960
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
95148
+ /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96619);
93961
95149
 
93962
- // src/index.jsx
93963
-
93964
-
93965
-
93966
- var getScrollParent = function getScrollParent(node) {
93967
- var parent = node;
93968
-
93969
- while (parent = parent.parentElement) {
93970
- var overflowYVal = getComputedStyle(parent, null).getPropertyValue("overflow-y");
93971
- if (parent === document.body) return window;
93972
- if (overflowYVal === "auto" || overflowYVal === "scroll") return parent;
93973
- }
93974
-
93975
- return window;
93976
- };
93977
-
93978
- var offsetTill = function offsetTill(node, target) {
93979
- var current = node;
93980
- var offset = 0;
93981
-
93982
- if (target.firstChild && target.firstChild.offsetParent !== target) {
93983
- offset += node.offsetTop - target.offsetTop;
93984
- target = node.offsetParent;
93985
- offset += -node.offsetTop;
93986
- }
93987
-
93988
- do {
93989
- offset += current.offsetTop;
93990
- current = current.offsetParent;
93991
- } while (current && current !== target);
93992
-
93993
- return offset;
93994
- };
93995
-
93996
- var getParentNode = function getParentNode(node) {
93997
- var currentParent = node.parentNode;
93998
-
93999
- while (currentParent) {
94000
- var style = getComputedStyle(currentParent, null);
94001
- if (style.getPropertyValue("display") !== "contents") break;
94002
- currentParent = currentParent.parentNode;
94003
- }
94004
-
94005
- return currentParent || window;
94006
- };
94007
-
94008
- var stickyProp = null;
94009
-
94010
- if (typeof CSS !== "undefined" && CSS.supports) {
94011
- if (CSS.supports("position", "sticky")) stickyProp = "sticky";else if (CSS.supports("position", "-webkit-sticky")) stickyProp = "-webkit-sticky";
95150
+ function _inheritsLoose(subClass, superClass) {
95151
+ subClass.prototype = Object.create(superClass.prototype);
95152
+ subClass.prototype.constructor = subClass;
95153
+ (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
94012
95154
  }
94013
95155
 
94014
- var passiveArg = false;
94015
-
94016
- try {
94017
- opts = Object.defineProperty({}, "passive", {
94018
- get: function get() {
94019
- passiveArg = {
94020
- passive: true
94021
- };
94022
- }
94023
- });
94024
- window.addEventListener("testPassive", null, opts);
94025
- window.removeEventListener("testPassive", null, opts);
94026
- } catch (e) {}
94027
-
94028
- var opts;
94029
-
94030
- var registerNode = function registerNode(node, _ref) {
94031
- var offsetTop = _ref.offsetTop,
94032
- offsetBottom = _ref.offsetBottom,
94033
- bottom = _ref.bottom;
94034
- var scrollPane = getScrollParent(node);
94035
- var latestScrollY = scrollPane === window ? window.scrollY : scrollPane.scrollTop;
94036
- var unsubs = [];
94037
- var mode, offset, nodeHeight, naturalTop, parentHeight, scrollPaneOffset, viewPortHeight;
94038
-
94039
- var getCurrentOffset = function getCurrentOffset() {
94040
- if (mode === "relative") return offset;
94041
-
94042
- if (mode === "stickyTop") {
94043
- return Math.max(0, scrollPaneOffset + latestScrollY - naturalTop + offsetTop);
94044
- }
94045
-
94046
- if (mode === "stickyBottom") {
94047
- return Math.max(0, scrollPaneOffset + latestScrollY + viewPortHeight - (naturalTop + nodeHeight + offsetBottom));
94048
- }
94049
- };
94050
-
94051
- var changeToStickyBottomIfBoxTooLow = function changeToStickyBottomIfBoxTooLow(scrollY) {
94052
- if (scrollY + scrollPaneOffset + viewPortHeight >= naturalTop + nodeHeight + offset + offsetBottom) {
94053
- changeMode("stickyBottom");
94054
- }
94055
- };
94056
-
94057
- var changeMode = function changeMode(newMode) {
94058
- mode = newMode;
94059
-
94060
- if (newMode === "relative") {
94061
- node.style.position = "relative";
94062
-
94063
- if (bottom) {
94064
- var nextBottom = Math.max(0, parentHeight - nodeHeight - offset);
94065
- node.style.bottom = "".concat(nextBottom, "px");
94066
- } else {
94067
- node.style.top = "".concat(offset, "px");
94068
- }
94069
- } else {
94070
- node.style.position = stickyProp;
94071
-
94072
- if (newMode === "stickyBottom") {
94073
- if (bottom) {
94074
- node.style.bottom = "".concat(offsetBottom, "px");
94075
- } else {
94076
- node.style.top = "".concat(viewPortHeight - nodeHeight - offsetBottom, "px");
94077
- }
94078
- } else {
94079
- if (bottom) {
94080
- node.style.bottom = "".concat(viewPortHeight - nodeHeight - offsetBottom, "px");
94081
- } else {
94082
- node.style.top = "".concat(offsetTop, "px");
94083
- }
94084
- }
94085
- }
94086
-
94087
- offset = getCurrentOffset();
94088
- };
94089
-
94090
- var initial = function initial() {
94091
- if (bottom) {
94092
- if (mode !== "stickyBottom") changeMode("stickyBottom");
94093
- } else {
94094
- if (mode !== "stickyTop") changeMode("stickyTop");
94095
- }
94096
- };
94097
-
94098
- var addListener = function addListener(element, event, handler, passive) {
94099
- element.addEventListener(event, handler, passive);
94100
- unsubs.push(function () {
94101
- return element.removeEventListener(event, handler);
94102
- });
94103
- };
94104
-
94105
- var handleScroll = function handleScroll() {
94106
- var scrollY = scrollPane === window ? window.scrollY : scrollPane.scrollTop;
94107
- if (scrollY === latestScrollY) return;
94108
-
94109
- if (nodeHeight + offsetTop + offsetBottom <= viewPortHeight) {
94110
- initial();
94111
- latestScrollY = scrollY;
94112
- return;
94113
- }
94114
-
94115
- var scrollDelta = scrollY - latestScrollY;
94116
- offset = getCurrentOffset();
94117
-
94118
- if (scrollDelta > 0) {
94119
- if (mode === "stickyTop") {
94120
- if (scrollY + scrollPaneOffset + offsetTop > naturalTop) {
94121
- if (scrollY + scrollPaneOffset + viewPortHeight <= naturalTop + nodeHeight + offset + offsetBottom) {
94122
- changeMode("relative");
94123
- } else {
94124
- changeMode("stickyBottom");
94125
- }
94126
- }
94127
- } else if (mode === "relative") {
94128
- changeToStickyBottomIfBoxTooLow(scrollY);
94129
- }
94130
- } else {
94131
- if (mode === "stickyBottom") {
94132
- if (scrollPaneOffset + scrollY + viewPortHeight < naturalTop + parentHeight + offsetBottom) {
94133
- if (scrollPaneOffset + scrollY + offsetTop >= naturalTop + offset) {
94134
- changeMode("relative");
94135
- } else {
94136
- changeMode("stickyTop");
94137
- }
94138
- }
94139
- } else if (mode === "relative") {
94140
- if (scrollPaneOffset + scrollY + offsetTop < naturalTop + offset) {
94141
- changeMode("stickyTop");
94142
- }
94143
- }
94144
- }
94145
-
94146
- latestScrollY = scrollY;
94147
- };
94148
-
94149
- var handleWindowResize = function handleWindowResize() {
94150
- viewPortHeight = window.innerHeight;
94151
- scrollPaneOffset = 0;
94152
- handleScroll();
94153
- };
94154
-
94155
- var handleScrollPaneResize = function handleScrollPaneResize() {
94156
- viewPortHeight = scrollPane.offsetHeight;
94157
-
94158
- if (viewPortHeight === 0) {
94159
- console.warn("react-sticky-box's scroll pane has a height of 0. This seems odd. Please check this node:", scrollPane);
94160
- }
94161
-
94162
- if (scrollPane.firstChild.offsetParent === scrollPane) {
94163
- scrollPaneOffset = scrollPane.getBoundingClientRect().top;
94164
- } else {
94165
- scrollPaneOffset = 0;
94166
- }
94167
-
94168
- handleScroll();
94169
- };
94170
-
94171
- var handleParentNodeResize = function handleParentNodeResize() {
94172
- var parentNode = getParentNode(node);
94173
- var computedParentStyle = getComputedStyle(parentNode, null);
94174
- var parentPaddingTop = parseInt(computedParentStyle.getPropertyValue("padding-top"), 10);
94175
- var parentPaddingBottom = parseInt(computedParentStyle.getPropertyValue("padding-bottom"), 10);
94176
- var verticalParentPadding = parentPaddingTop + parentPaddingBottom;
94177
- naturalTop = offsetTill(parentNode, scrollPane) + parentPaddingTop + scrollPaneOffset;
94178
- var oldParentHeight = parentHeight;
94179
- parentHeight = parentNode.getBoundingClientRect().height - verticalParentPadding;
94180
-
94181
- if (mode === "relative") {
94182
- if (bottom) {
94183
- changeMode("relative");
94184
- } else {
94185
- if (oldParentHeight > parentHeight) {
94186
- changeToStickyBottomIfBoxTooLow(latestScrollY);
94187
- }
94188
- }
94189
- }
94190
-
94191
- if (oldParentHeight !== parentHeight && mode === "relative") {
94192
- latestScrollY = Number.POSITIVE_INFINITY;
94193
- handleScroll();
94194
- }
94195
- };
94196
-
94197
- var handleNodeResize = function handleNodeResize() {
94198
- var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
94199
- initialArg = _ref2.initial;
94200
-
94201
- var prevHeight = nodeHeight;
94202
- nodeHeight = node.getBoundingClientRect().height;
94203
-
94204
- if (!initialArg && prevHeight !== nodeHeight) {
94205
- if (nodeHeight + offsetTop + offsetBottom <= viewPortHeight) {
94206
- mode = void 0;
94207
- initial();
94208
- return;
94209
- } else {
94210
- var diff = prevHeight - nodeHeight;
94211
- var lowestPossible = parentHeight - nodeHeight;
94212
- var nextOffset = Math.min(lowestPossible, getCurrentOffset() + (bottom ? diff : 0));
94213
- offset = Math.max(0, nextOffset);
94214
- if (!bottom || mode !== "stickyBottom") changeMode("relative");
94215
- }
94216
- }
94217
- };
94218
-
94219
- var addResizeObserver = function addResizeObserver(n, handler) {
94220
- var ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z(handler);
94221
- ro.observe(n);
94222
- unsubs.push(function () {
94223
- return ro.disconnect();
94224
- });
94225
- };
94226
-
94227
- addListener(scrollPane, "scroll", handleScroll, passiveArg);
94228
- addListener(scrollPane, "mousewheel", handleScroll, passiveArg);
95156
+ /***/ }),
94229
95157
 
94230
- if (scrollPane === window) {
94231
- addListener(window, "resize", handleWindowResize);
94232
- handleWindowResize();
94233
- } else {
94234
- addResizeObserver(scrollPane, handleScrollPaneResize);
94235
- handleScrollPaneResize();
94236
- }
95158
+ /***/ 96619:
95159
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
94237
95160
 
94238
- addResizeObserver(getParentNode(node), handleParentNodeResize);
94239
- handleParentNodeResize();
94240
- addResizeObserver(node, handleNodeResize);
94241
- handleNodeResize({
94242
- initial: true
94243
- });
94244
- initial();
94245
- return function () {
94246
- return unsubs.forEach(function (fn) {
94247
- return fn();
94248
- });
95161
+ "use strict";
95162
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95163
+ /* harmony export */ "Z": () => (/* binding */ _setPrototypeOf)
95164
+ /* harmony export */ });
95165
+ function _setPrototypeOf(o, p) {
95166
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
95167
+ o.__proto__ = p;
95168
+ return o;
94249
95169
  };
94250
- };
94251
-
94252
- var useStickyBox = function useStickyBox() {
94253
- var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
94254
- _ref3$offsetTop = _ref3.offsetTop,
94255
- offsetTop = _ref3$offsetTop === void 0 ? 0 : _ref3$offsetTop,
94256
- _ref3$offsetBottom = _ref3.offsetBottom,
94257
- offsetBottom = _ref3$offsetBottom === void 0 ? 0 : _ref3$offsetBottom,
94258
- _ref3$bottom = _ref3.bottom,
94259
- bottom = _ref3$bottom === void 0 ? false : _ref3$bottom;
94260
-
94261
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
94262
- _useState2 = _slicedToArray(_useState, 2),
94263
- node = _useState2[0],
94264
- setNode = _useState2[1];
94265
-
94266
- var argRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
94267
- offsetTop: offsetTop,
94268
- offsetBottom: offsetBottom,
94269
- bottom: bottom
94270
- });
94271
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
94272
- argRef.current = {
94273
- offsetTop: offsetTop,
94274
- offsetBottom: offsetBottom,
94275
- bottom: bottom
94276
- };
94277
- });
94278
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
94279
- if (!node) return;
94280
- return registerNode(node, argRef.current);
94281
- }, [node]);
94282
- return setNode;
94283
- };
94284
-
94285
- var StickyBox = function StickyBox(_ref4) {
94286
- var offsetTop = _ref4.offsetTop,
94287
- offsetBottom = _ref4.offsetBottom,
94288
- bottom = _ref4.bottom,
94289
- children = _ref4.children,
94290
- className = _ref4.className,
94291
- style = _ref4.style;
94292
- var ref = useStickyBox({
94293
- offsetTop: offsetTop,
94294
- offsetBottom: offsetBottom,
94295
- bottom: bottom
94296
- });
94297
- return /* @__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
94298
- className: className,
94299
- style: style,
94300
- ref: ref
94301
- }, children);
94302
- };
94303
-
94304
- var src_default = StickyBox;
94305
-
95170
+ return _setPrototypeOf(o, p);
95171
+ }
94306
95172
 
94307
95173
  /***/ }),
94308
95174