linkmore-design 1.0.78 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -39989,7 +39989,7 @@
39989
39989
  var searchQuery = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
39990
39990
  pre[cur] = _objectSpread(_objectSpread({}, searchConfig), {}, {
39991
39991
  fieldName: cur,
39992
- value: itemValue
39992
+ value: [itemValue]
39993
39993
  });
39994
39994
  return pre;
39995
39995
  }, _objectSpread({}, state.searchQuery)); // 数据清除时不返回结构体
@@ -85536,6 +85536,8 @@
85536
85536
  var Resizable = Resizable_1.default;
85537
85537
  var ResizableBox = ResizableBox_1.default;
85538
85538
 
85539
+ function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];{var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}}function r$1(n){return !!n&&!!n[Q]}function t(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t;}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r$1(n)||!t(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function _(){return U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function O(n){g(n),n.p.forEach(S),n.p=null;}function g(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.O=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s){if(c===o&&n(5),r$1(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r$1(v))return;e.m=!1;}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function D(e){return r$1(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1;}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t));})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r$1(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r$1(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);
85540
+
85539
85541
  function useEvent$2(handler) {
85540
85542
  var handlerRef = React.useRef(null); // 同步,运行时间在布局前
85541
85543
 
@@ -86195,6 +86197,10 @@
86195
86197
 
86196
86198
  (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
86197
86199
  }, 150);
86200
+ return function () {
86201
+ console.log('unmounds');
86202
+ handleSave === null || handleSave === void 0 ? void 0 : handleSave(inputRef.current);
86203
+ };
86198
86204
  }, []);
86199
86205
 
86200
86206
  var handleChange = function handleChange(e) {
@@ -86214,7 +86220,7 @@
86214
86220
  });
86215
86221
  };
86216
86222
 
86217
- var _excluded$1d = ["record", "col", "rowKey", "children", "rowIndex", "colIndex", "onMouseDown", "onMouseOver", "isSelected", "selectIng", "onContextMenu", "onDoubleClick"],
86223
+ var _excluded$1d = ["record", "col", "rowKey", "children", "rowIndex", "colIndex", "onMouseDown", "onMouseOver", "isSelected", "selectIng", "onContextMenu", "onDoubleClick", "dataSourceChange"],
86218
86224
  _excluded2$j = ["onMouseEnter", "onMouseLeave"];
86219
86225
 
86220
86226
  var SheelTabelCell = function SheelTabelCell(props) {
@@ -86230,6 +86236,7 @@
86230
86236
  selectIng = props.selectIng,
86231
86237
  onContextMenu = props.onContextMenu,
86232
86238
  onDoubleClick = props.onDoubleClick,
86239
+ dataSourceChange = props.dataSourceChange,
86233
86240
  restProps = _objectWithoutProperties(props, _excluded$1d);
86234
86241
 
86235
86242
  var onMouseEnter = restProps.onMouseEnter,
@@ -86251,9 +86258,16 @@
86251
86258
  value = _useState2[0],
86252
86259
  setValue = _useState2[1];
86253
86260
 
86261
+ var valueRef = React.useRef((record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex]) || '');
86254
86262
  useUpdateEffect(function () {
86255
86263
  console.log(value, '----changeValue');
86264
+ valueRef.current = value;
86256
86265
  }, [value]);
86266
+ useUpdateEffect(function () {
86267
+ if (value !== (record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex])) {
86268
+ setValue(record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex]);
86269
+ }
86270
+ }, [record]);
86257
86271
  /** 鼠标点击 */
86258
86272
 
86259
86273
  var handleMouseDown = function handleMouseDown(e) {
@@ -86301,7 +86315,9 @@
86301
86315
  };
86302
86316
 
86303
86317
  var saveRenderValue = function saveRenderValue() {
86304
- console.log(value, rowIndex, colIndex, '222');
86318
+ if (valueRef.current !== (record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex])) {
86319
+ dataSourceChange === null || dataSourceChange === void 0 ? void 0 : dataSourceChange(rowIndex, colIndex, _objectSpread(_objectSpread({}, record), {}, _defineProperty({}, col.dataIndex, valueRef.current)));
86320
+ }
86305
86321
  };
86306
86322
 
86307
86323
  var renderEditor = function renderEditor() {
@@ -155840,7 +155856,7 @@
155840
155856
  * plot.render();
155841
155857
  * ```
155842
155858
  */
155843
- var P = /** @class */ (function (_super) {
155859
+ var P$1 = /** @class */ (function (_super) {
155844
155860
  __extends(P, _super);
155845
155861
  /**
155846
155862
  * 相比普通图表增加 adaptor 参数。
@@ -157286,6 +157302,7 @@
157286
157302
  return /*#__PURE__*/React__default['default'].createElement(LMModal, {
157287
157303
  visible: !!type,
157288
157304
  title: "\u667A\u80FD\u62A5\u8868",
157305
+ onOk: onCancel,
157289
157306
  onCancel: onCancel
157290
157307
  }, type === 'column' && /*#__PURE__*/React__default['default'].createElement(ColumnChart, _objectSpread({}, config)), type === 'line' && /*#__PURE__*/React__default['default'].createElement(LineChart, _objectSpread({}, config)), type === 'pie' && /*#__PURE__*/React__default['default'].createElement(PieChart, _objectSpread({}, config)));
157291
157308
  };
@@ -157323,7 +157340,7 @@
157323
157340
  editConfig: editConfig
157324
157341
  };
157325
157342
 
157326
- var _excluded$1e = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "emptyProps"],
157343
+ var _excluded$1e = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "emptyProps"],
157327
157344
  _excluded2$k = ["className", "style"],
157328
157345
  _excluded3$6 = ["onResize", "width", "onResizeStop"];
157329
157346
  var Summary = ProviderWarp.Summary;
@@ -157400,6 +157417,7 @@
157400
157417
  _props$openSheet = props.openSheet,
157401
157418
  openSheet = _props$openSheet === void 0 ? false : _props$openSheet,
157402
157419
  _props$editSheet = props.editSheet,
157420
+ dataChange = props.dataChange,
157403
157421
  emptyProps = props.emptyProps,
157404
157422
  resetProps = _objectWithoutProperties(props, _excluded$1e);
157405
157423
 
@@ -157426,6 +157444,7 @@
157426
157444
  setColumns = _useState6[1];
157427
157445
 
157428
157446
  var tableWarpRef = React.useRef(null);
157447
+ var dataSourceRef = React.useRef(null);
157429
157448
  /** 右键的ref */
157430
157449
 
157431
157450
  var contentMenuRef = React.useRef(null);
@@ -157497,6 +157516,12 @@
157497
157516
  var SortContainer = sortableContainer(function (props) {
157498
157517
  return /*#__PURE__*/React__default['default'].createElement("tbody", props);
157499
157518
  });
157519
+ React.useEffect(function () {
157520
+ dataSourceRef.current = dataSource;
157521
+ }, [dataSource]);
157522
+ var dataEffect = React.useMemo(function () {
157523
+ return openSheet ? [dataSource] : [];
157524
+ }, [openSheet]);
157500
157525
 
157501
157526
  var onSortEnd = function onSortEnd(_ref) {
157502
157527
  var oldIndex = _ref.oldIndex,
@@ -157518,7 +157543,6 @@
157518
157543
  var newIndex = columns.findIndex(function (item) {
157519
157544
  return item.dataIndex === over;
157520
157545
  });
157521
- console.log(arrayMove(columns, oldIndex, newIndex), 222);
157522
157546
  filterChange === null || filterChange === void 0 ? void 0 : filterChange(arrayMove(columns, oldIndex, newIndex).map(function (item, index) {
157523
157547
  return _objectSpread(_objectSpread({}, item), {}, {
157524
157548
  order: index
@@ -157566,19 +157590,40 @@
157566
157590
  filterChange === null || filterChange === void 0 ? void 0 : filterChange(useColumns);
157567
157591
  });
157568
157592
  };
157593
+
157594
+ var isSelected = function isSelected(i, j) {
157595
+ var _shellStatusRef$curre = shellStatusRef.current,
157596
+ start = _shellStatusRef$curre.start,
157597
+ end = _shellStatusRef$curre.end,
157598
+ editing = _shellStatusRef$curre.editing;
157599
+ var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
157600
+ var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
157601
+ var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
157602
+ var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
157603
+ var posX = j >= start.j && j <= end.j;
157604
+ var negX = j <= start.j && j >= end.j;
157605
+ var posY = i >= start.i && i <= end.i;
157606
+ var negY = i <= start.i && i >= end.i;
157607
+ return {
157608
+ isSelected: posX && posY || negX && posY || negX && negY || posX && negY,
157609
+ isEnd: i === maxi && j >= minj && j <= maxj,
157610
+ isRightEnd: j === maxj && i >= mini && i <= maxi,
157611
+ isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j
157612
+ };
157613
+ };
157569
157614
  /** 复制功能 */
157570
157615
 
157571
157616
 
157572
157617
  var handleCopy = function handleCopy(e) {
157573
- var _shellStatusRef$curre;
157618
+ var _shellStatusRef$curre2;
157574
157619
 
157575
- if (isEmpty$1((_shellStatusRef$curre = shellStatusRef.current) === null || _shellStatusRef$curre === void 0 ? void 0 : _shellStatusRef$curre.editing)) {
157620
+ if (isEmpty$1((_shellStatusRef$curre2 = shellStatusRef.current) === null || _shellStatusRef$curre2 === void 0 ? void 0 : _shellStatusRef$curre2.editing)) {
157576
157621
  var _e$clipboardData;
157577
157622
 
157578
157623
  e.preventDefault();
157579
- var _shellStatusRef$curre2 = shellStatusRef.current,
157580
- start = _shellStatusRef$curre2.start,
157581
- end = _shellStatusRef$curre2.end;
157624
+ var _shellStatusRef$curre3 = shellStatusRef.current,
157625
+ start = _shellStatusRef$curre3.start,
157626
+ end = _shellStatusRef$curre3.end;
157582
157627
  var text = range$1(start.i, end.i).map(function (i) {
157583
157628
  return range$1(start.j, end.j).map(function (j) {
157584
157629
  var _columns$j, _columns$j2;
@@ -157614,9 +157659,9 @@
157614
157659
  };
157615
157660
 
157616
157661
  var onMouseOver = function onMouseOver(i, j) {
157617
- var _shellStatusRef$curre3, _shellStatusRef$curre4;
157662
+ var _shellStatusRef$curre4, _shellStatusRef$curre5;
157618
157663
 
157619
- if (((_shellStatusRef$curre3 = shellStatusRef.current) === null || _shellStatusRef$curre3 === void 0 ? void 0 : _shellStatusRef$curre3.selecting) && isEmpty$1((_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.editing)) {
157664
+ if (((_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.selecting) && isEmpty$1((_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.editing)) {
157620
157665
  shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
157621
157666
  end: {
157622
157667
  i: i,
@@ -157648,25 +157693,26 @@
157648
157693
 
157649
157694
 
157650
157695
  var handleCut = function handleCut(e) {
157651
- var _shellStatusRef$curre5;
157696
+ var _shellStatusRef$curre6;
157652
157697
 
157653
- if (isEmpty$1((_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.editing)) {
157698
+ if (isEmpty$1((_shellStatusRef$curre6 = shellStatusRef.current) === null || _shellStatusRef$curre6 === void 0 ? void 0 : _shellStatusRef$curre6.editing)) {
157654
157699
  e.preventDefault();
157655
157700
  handleCopy(e);
157656
- var _shellStatusRef$curre6 = shellStatusRef.current,
157657
- start = _shellStatusRef$curre6.start,
157658
- end = _shellStatusRef$curre6.end;
157701
+ /** 暂时先不隐藏 */
157702
+ // const { start, end } = shellStatusRef.current
157703
+ // clearSelectedCells(start, end)
157659
157704
  }
157660
157705
  };
157661
157706
  /** 内容粘贴 */
157662
157707
 
157663
157708
 
157664
157709
  var handlePaste = function handlePaste(e) {
157665
- console.log(shellStatusRef.current, '333');
157710
+ var _shellStatusRef$curre7;
157666
157711
 
157667
- if (isEmpty$1(sheelStataus.editing)) {
157668
- var start = sheelStataus.start,
157669
- end = sheelStataus.end;
157712
+ if (isEmpty$1((_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.editing)) {
157713
+ var _shellStatusRef$curre8 = shellStatusRef.current,
157714
+ start = _shellStatusRef$curre8.start,
157715
+ end = _shellStatusRef$curre8.end;
157670
157716
  start = {
157671
157717
  i: Math.min(start.i, end.i),
157672
157718
  j: Math.min(start.j, end.j)
@@ -157675,7 +157721,7 @@
157675
157721
  i: Math.max(start.i, end.i),
157676
157722
  j: Math.max(start.j, end.j)
157677
157723
  };
157678
- var parse = props.parsePaste || defaultParsePaste;
157724
+ var parse = defaultParsePaste;
157679
157725
  var pasteData = [];
157680
157726
 
157681
157727
  if (window.clipboardData && window.clipboardData.getData) {
@@ -157683,50 +157729,34 @@
157683
157729
  pasteData = parse(window.clipboardData.getData('Text'));
157684
157730
  } else if (e.clipboardData && e.clipboardData.getData) {
157685
157731
  pasteData = parse(e.clipboardData.getData('text/plain'));
157686
- } // in order of preference
157687
- // const { data, onCellsChanged, onPaste, onChange } = this.props
157688
- // if (onCellsChanged) {
157689
- // const additions = []
157690
- // pasteData.forEach((row, i) => {
157691
- // row.forEach((value, j) => {
157692
- // end = { i: start.i + i, j: start.j + j }
157693
- // const cell = data[end.i] && data[end.i][end.j]
157694
- // if (!cell) {
157695
- // additions.push({ row: end.i, col: end.j, value })
157696
- // } else if (!cell.readOnly) {
157697
- // changes.push({ cell, row: end.i, col: end.j, value })
157698
- // }
157699
- // })
157700
- // })
157701
- // if (additions.length) {
157702
- // onCellsChanged(changes, additions)
157703
- // } else {
157704
- // onCellsChanged(changes)
157705
- // }
157706
- // } else if (onPaste) {
157707
- // pasteData.forEach((row, i) => {
157708
- // const rowData = []
157709
- // row.forEach((pastedData, j) => {
157710
- // end = { i: start.i + i, j: start.j + j }
157711
- // const cell = data[end.i] && data[end.i][end.j]
157712
- // rowData.push({ cell: cell, data: pastedData })
157713
- // })
157714
- // changes.push(rowData)
157715
- // })
157716
- // onPaste(changes)
157717
- // } else if (onChange) {
157718
- // pasteData.forEach((row, i) => {
157719
- // row.forEach((value, j) => {
157720
- // end = { i: start.i + i, j: start.j + j }
157721
- // const cell = data[end.i] && data[end.i][end.j]
157722
- // if (cell && !cell.readOnly) {
157723
- // onChange(cell, end.i, end.j, value)
157724
- // }
157725
- // })
157726
- // })
157727
- // }
157728
- // this._setState({ end })
157732
+ }
157733
+
157734
+ var data = dataSourceRef.current; // in order of preference
157729
157735
 
157736
+ var resultEnd = [];
157737
+ pasteData.forEach(function (row, i) {
157738
+ row.forEach(function (value, j) {
157739
+ resultEnd.push({
157740
+ i: start.i + i,
157741
+ j: start.j + j,
157742
+ value: value
157743
+ });
157744
+ });
157745
+ });
157746
+ var columnsKeysList = columns.map(function (item) {
157747
+ return item.dataIndex;
157748
+ });
157749
+ var res = fn(dataSourceRef.current, function (draft) {
157750
+ resultEnd.forEach(function (item) {
157751
+ var _isSelected;
157752
+
157753
+ if ((_isSelected = isSelected(item.i, item.j)) === null || _isSelected === void 0 ? void 0 : _isSelected.isSelected) {
157754
+ draft[item.i][columnsKeysList[item.j]] = item.value;
157755
+ }
157756
+ });
157757
+ });
157758
+ console.log(res, ' ---res');
157759
+ dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
157730
157760
  }
157731
157761
  };
157732
157762
 
@@ -157763,13 +157793,13 @@
157763
157793
 
157764
157794
 
157765
157795
  var sheelMouseDown = function sheelMouseDown(i, j, e) {
157766
- var _shellStatusRef$curre7, _shellStatusRef$curre8, _shellStatusRef$curre9, _shellStatusRef$curre10, _shellStatusRef$curre11, _shellStatusRef$curre12, _shellStatusRef$curre13, _shellStatusRef$curre14, _shellStatusRef$curre15;
157796
+ var _shellStatusRef$curre9, _shellStatusRef$curre10, _shellStatusRef$curre11, _shellStatusRef$curre12, _shellStatusRef$curre13, _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17;
157767
157797
 
157768
- var isNowEditingSameCell = !isEmpty$1((_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.editing) && ((_shellStatusRef$curre8 = shellStatusRef.current) === null || _shellStatusRef$curre8 === void 0 ? void 0 : _shellStatusRef$curre8.editing.i) === i && ((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.editing.j) === j;
157769
- var editing = isEmpty$1((_shellStatusRef$curre10 = shellStatusRef.current) === null || _shellStatusRef$curre10 === void 0 ? void 0 : _shellStatusRef$curre10.editing) || ((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing.i) !== i || ((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing.j) !== j ? {} : (_shellStatusRef$curre13 = shellStatusRef.current) === null || _shellStatusRef$curre13 === void 0 ? void 0 : _shellStatusRef$curre13.editing;
157798
+ var isNowEditingSameCell = !isEmpty$1((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.editing) && ((_shellStatusRef$curre10 = shellStatusRef.current) === null || _shellStatusRef$curre10 === void 0 ? void 0 : _shellStatusRef$curre10.editing.i) === i && ((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing.j) === j;
157799
+ var editing = isEmpty$1((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing) || ((_shellStatusRef$curre13 = shellStatusRef.current) === null || _shellStatusRef$curre13 === void 0 ? void 0 : _shellStatusRef$curre13.editing.i) !== i || ((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing.j) !== j ? {} : (_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing;
157770
157800
  shellStatusRef.current = {
157771
157801
  selecting: !isNowEditingSameCell,
157772
- start: (e === null || e === void 0 ? void 0 : e.shiftKey) ? (_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.start : {
157802
+ start: (e === null || e === void 0 ? void 0 : e.shiftKey) ? (_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.start : {
157773
157803
  i: i,
157774
157804
  j: j
157775
157805
  },
@@ -157782,7 +157812,7 @@
157782
157812
  };
157783
157813
  SetSelectIng(!isNowEditingSameCell);
157784
157814
 
157785
- if (isEmpty$1((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing)) {
157815
+ if (isEmpty$1((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing)) {
157786
157816
  setEditIng(false);
157787
157817
  }
157788
157818
 
@@ -157795,9 +157825,9 @@
157795
157825
 
157796
157826
  var onContextMenu = function onContextMenu(evt, i, j) {
157797
157827
  evt.preventDefault();
157798
- var _shellStatusRef$curre16 = shellStatusRef.current,
157799
- start = _shellStatusRef$curre16.start,
157800
- end = _shellStatusRef$curre16.end;
157828
+ var _shellStatusRef$curre18 = shellStatusRef.current,
157829
+ start = _shellStatusRef$curre18.start,
157830
+ end = _shellStatusRef$curre18.end;
157801
157831
 
157802
157832
  if (isEmpty$1(start) && isEmpty$1(end)) {
157803
157833
  sheelMouseDown(i, j, evt);
@@ -157844,7 +157874,15 @@
157844
157874
  };
157845
157875
 
157846
157876
  var dataSourceChange = function dataSourceChange(i, j, newRecord) {
157847
- console.log(i, j, newRecord);
157877
+ var res = fn(dataSourceRef.current, function (draft) {
157878
+ draft[i] = newRecord;
157879
+ });
157880
+ dataChange === null || dataChange === void 0 ? void 0 : dataChange(res);
157881
+ shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
157882
+ editing: {},
157883
+ forceEdit: false,
157884
+ clear: {}
157885
+ });
157848
157886
  };
157849
157887
 
157850
157888
  React.useEffect(function () {
@@ -157856,28 +157894,6 @@
157856
157894
  document.removeEventListener('paste', handlePaste);
157857
157895
  };
157858
157896
  }, []);
157859
-
157860
- var isSelected = function isSelected(i, j) {
157861
- var _shellStatusRef$curre17 = shellStatusRef.current,
157862
- start = _shellStatusRef$curre17.start,
157863
- end = _shellStatusRef$curre17.end,
157864
- editing = _shellStatusRef$curre17.editing;
157865
- var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
157866
- var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
157867
- var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
157868
- var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
157869
- var posX = j >= start.j && j <= end.j;
157870
- var negX = j <= start.j && j >= end.j;
157871
- var posY = i >= start.i && i <= end.i;
157872
- var negY = i <= start.i && i >= end.i;
157873
- return {
157874
- isSelected: posX && posY || negX && posY || negX && negY || posX && negY,
157875
- isEnd: i === maxi && j >= minj && j <= maxj,
157876
- isRightEnd: j === maxj && i >= mini && i <= maxi,
157877
- isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j
157878
- };
157879
- };
157880
-
157881
157897
  var resetColumns = React.useCallback(function () {
157882
157898
  var result = useColumns.filter(function (item) {
157883
157899
  return item.show !== false;
@@ -157917,7 +157933,7 @@
157917
157933
  return obj;
157918
157934
  });
157919
157935
  return sortOpen ? [sortDefaultColumnItem].concat(_toConsumableArray(result)) : result;
157920
- }, [useColumns, sortOpen, selectIng]);
157936
+ }, [useColumns, sortOpen, selectIng, dataSource]);
157921
157937
  React.useEffect(function () {
157922
157938
  setColumns(columns);
157923
157939
  }, [columns]); // 行点击事件
@@ -161338,10 +161354,12 @@
161338
161354
  width: size === 'default' ? 552 : 416,
161339
161355
  footer: [/*#__PURE__*/React__default['default'].createElement(LMButton, {
161340
161356
  onClick: onCancel,
161357
+ key: 'canncel_button',
161341
161358
  size: 'middle'
161342
161359
  }, cancelText), /*#__PURE__*/React__default['default'].createElement(LMButton, {
161343
161360
  type: "primary",
161344
161361
  onClick: onOk,
161362
+ key: 'ok_button',
161345
161363
  size: 'middle'
161346
161364
  }, okText)]
161347
161365
  }, other), {}, {
@@ -167179,7 +167197,7 @@
167179
167197
 
167180
167198
  var dP = Object.defineProperty;
167181
167199
 
167182
- var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
167200
+ var f$1 = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
167183
167201
  _anObject(O);
167184
167202
  P = _toPrimitive(P, true);
167185
167203
  _anObject(Attributes);
@@ -167192,7 +167210,7 @@
167192
167210
  };
167193
167211
 
167194
167212
  var _objectDp = {
167195
- f: f
167213
+ f: f$1
167196
167214
  };
167197
167215
 
167198
167216
  var _propertyDesc = function (bitmap, value) {
@@ -167401,16 +167419,16 @@
167401
167419
  return _objectKeysInternal(O, _enumBugKeys);
167402
167420
  };
167403
167421
 
167404
- var f$1 = Object.getOwnPropertySymbols;
167422
+ var f$2 = Object.getOwnPropertySymbols;
167405
167423
 
167406
167424
  var _objectGops = {
167407
- f: f$1
167425
+ f: f$2
167408
167426
  };
167409
167427
 
167410
- var f$2 = {}.propertyIsEnumerable;
167428
+ var f$3 = {}.propertyIsEnumerable;
167411
167429
 
167412
167430
  var _objectPie = {
167413
- f: f$2
167431
+ f: f$3
167414
167432
  };
167415
167433
 
167416
167434
  // 7.1.13 ToObject(argument)
@@ -167751,17 +167769,17 @@
167751
167769
  'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
167752
167770
  'TextTrackList,TouchList').split(',');
167753
167771
 
167754
- for (var i = 0; i < DOMIterables.length; i++) {
167755
- var NAME = DOMIterables[i];
167772
+ for (var i$1 = 0; i$1 < DOMIterables.length; i$1++) {
167773
+ var NAME = DOMIterables[i$1];
167756
167774
  var Collection$1 = _global[NAME];
167757
167775
  var proto$3 = Collection$1 && Collection$1.prototype;
167758
167776
  if (proto$3 && !proto$3[TO_STRING_TAG]) _hide(proto$3, TO_STRING_TAG, NAME);
167759
167777
  }
167760
167778
 
167761
- var f$3 = _wks;
167779
+ var f$4 = _wks;
167762
167780
 
167763
167781
  var _wksExt = {
167764
- f: f$3
167782
+ f: f$4
167765
167783
  };
167766
167784
 
167767
167785
  var iterator = _wksExt.f('iterator');
@@ -167858,12 +167876,12 @@
167858
167876
 
167859
167877
  var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
167860
167878
 
167861
- var f$4 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
167879
+ var f$5 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
167862
167880
  return _objectKeysInternal(O, hiddenKeys);
167863
167881
  };
167864
167882
 
167865
167883
  var _objectGopn = {
167866
- f: f$4
167884
+ f: f$5
167867
167885
  };
167868
167886
 
167869
167887
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
@@ -167882,17 +167900,17 @@
167882
167900
  }
167883
167901
  };
167884
167902
 
167885
- var f$5 = function getOwnPropertyNames(it) {
167903
+ var f$6 = function getOwnPropertyNames(it) {
167886
167904
  return windowNames && toString$7.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(_toIobject(it));
167887
167905
  };
167888
167906
 
167889
167907
  var _objectGopnExt = {
167890
- f: f$5
167908
+ f: f$6
167891
167909
  };
167892
167910
 
167893
167911
  var gOPD = Object.getOwnPropertyDescriptor;
167894
167912
 
167895
- var f$6 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) {
167913
+ var f$7 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) {
167896
167914
  O = _toIobject(O);
167897
167915
  P = _toPrimitive(P, true);
167898
167916
  if (_ie8DomDefine) try {
@@ -167902,7 +167920,7 @@
167902
167920
  };
167903
167921
 
167904
167922
  var _objectGopd = {
167905
- f: f$6
167923
+ f: f$7
167906
167924
  };
167907
167925
 
167908
167926
  // ECMAScript 6 symbols shim
@@ -168073,9 +168091,9 @@
168073
168091
  for (var es6Symbols = (
168074
168092
  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
168075
168093
  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
168076
- ).split(','), j = 0; es6Symbols.length > j;)_wks(es6Symbols[j++]);
168094
+ ).split(','), j$1 = 0; es6Symbols.length > j$1;)_wks(es6Symbols[j$1++]);
168077
168095
 
168078
- for (var wellKnownSymbols = _objectKeys(_wks.store), k = 0; wellKnownSymbols.length > k;) _wksDefine(wellKnownSymbols[k++]);
168096
+ for (var wellKnownSymbols = _objectKeys(_wks.store), k$1 = 0; wellKnownSymbols.length > k$1;) _wksDefine(wellKnownSymbols[k$1++]);
168079
168097
 
168080
168098
  _export(_export.S + _export.F * !USE_NATIVE, 'Symbol', {
168081
168099
  // 19.4.2.1 Symbol.for(key)
@@ -174049,8 +174067,6 @@
174049
174067
  throw new Error('Function not implemented.');
174050
174068
  }
174051
174069
 
174052
- function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];{var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}}function r$1(n){return !!n&&!!n[Q]}function t(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i$1(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f$7(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t;}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r$1(n)||!t(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i$1(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function _(){return U||n(0),U}function j$1(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function O(n){g(n),n.p.forEach(S),n.p=null;}function g(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.O=!0;}function P$1(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i$1(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i$1(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s){if(c===o&&n(5),r$1(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f$7(o,a,v),!r$1(v))return;e.m=!1;}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k$1(n){n.P||(n.P=!0,n.l&&k$1(n.l));}function E(n){n.o||(n.o=l(n.t));}function R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function D(e){return r$1(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1;}else e=F(r,c);return i$1(e,(function(r,t){u&&a(u.t,r)===t||f$7(e,r,n(t));})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k$1(n);}return n.o[r]===t&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k$1(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i$1(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j$1(c,o),P$1(n,c)}),(function(n){throw O(c),n})):(j$1(c,o),P$1(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r$1(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j$1(i,t),P$1(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r$1(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);
174053
-
174054
174070
  var DndContainer$2 = function DndContainer(_ref) {
174055
174071
  var children = _ref.children,
174056
174072
  move = _ref.move;