linkmore-design 1.1.9 → 1.1.11
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/CHANGELOG.md +673 -647
- package/dist/Button/demos/type.d.ts +2 -0
- package/dist/CustomTableOption/index.d.ts +1 -0
- package/dist/CustomTableOption/locale/en_US.d.ts +19 -0
- package/dist/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/dist/LmEditTable/demos/priceTable.d.ts +2 -0
- package/dist/LmEditTable/util.d.ts +1 -0
- package/dist/LmFilter/demos/filterControl.d.ts +2 -0
- package/dist/Locale/default.d.ts +4 -1
- package/dist/Locale/zh_CN.d.ts +4 -1
- package/dist/Modal/demos/locale.d.ts +2 -0
- package/dist/Modal/locale.d.ts +7 -0
- package/dist/base.css +1 -0
- package/dist/index.umd.js +260 -212
- package/dist/index.umd.min.js +8 -8
- package/dist/variables.css +148 -12
- package/es/Affix/style/index.css +1 -0
- package/es/Alert/style/index.css +1 -0
- package/es/Approval/style/index.css +1 -0
- package/es/AutoComplete/style/index.css +1 -0
- package/es/Avatar/style/index.css +1 -0
- package/es/Badge/style/index.css +1 -0
- package/es/Breadcrumb/style/index.css +1 -0
- package/es/Button/style/index.css +4 -1
- package/es/Button/style/variables.css +4 -1
- package/es/ButtonTags/style/index.css +1 -0
- package/es/Calendar/style/index.css +1 -0
- package/es/Card/style/index.css +1 -0
- package/es/CardTable/style/index.css +7 -9
- package/es/CardTable/style/variables.css +7 -9
- package/es/Carousel/style/index.css +1 -0
- package/es/Cascader/style/index.css +1 -0
- package/es/Col/style/index.css +1 -0
- package/es/Collapse/style/index.css +1 -0
- package/es/Comment/style/index.css +1 -0
- package/es/CustomTableOption/cardSort.js +21 -16
- package/es/CustomTableOption/columnsSort.js +16 -16
- package/es/CustomTableOption/filterSort.js +11 -11
- package/es/CustomTableOption/index.d.ts +1 -0
- package/es/CustomTableOption/index.js +45 -17
- package/es/CustomTableOption/locale/en_US.d.ts +19 -0
- package/es/CustomTableOption/locale/en_US.js +19 -0
- package/es/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/es/CustomTableOption/locale/zh_CN.js +19 -0
- package/es/CustomTableOption/style/index.css +5 -0
- package/es/CustomTableOption/style/variables.css +4 -0
- package/es/CustomerService/style/index.css +1 -0
- package/es/DatePicker/style/index.css +1 -0
- package/es/Descriptions/style/index.css +1 -0
- package/es/Divider/style/index.css +1 -0
- package/es/Drawer/style/index.css +1 -0
- package/es/Dropdown/style/index.css +3 -2
- package/es/Dropdown/style/variables.css +2 -2
- package/es/EditTable/style/index.css +1 -0
- package/es/Empty/style/index.css +1 -0
- package/es/Filter/style/index.css +1 -0
- package/es/Form/style/index.css +1 -0
- package/es/FullScreen/style/index.css +1 -0
- package/es/Grid/style/index.css +1 -0
- package/es/Icon/style/index.css +1 -0
- package/es/Image/style/index.css +1 -0
- package/es/ImageViewer/components/Operate.js +5 -2
- package/es/Input/style/index.css +1 -0
- package/es/InputNumber/style/index.css +1 -0
- package/es/Layout/style/index.css +1 -0
- package/es/LeftTable/index.js +3 -1
- package/es/LeftTable/style/index.css +1 -0
- package/es/List/style/index.css +1 -0
- package/es/LmEditTable/EditTable.js +39 -88
- package/es/LmEditTable/style/index.css +5 -0
- package/es/LmEditTable/style/variables.css +4 -0
- package/es/LmEditTable/util.d.ts +1 -0
- package/es/LmEditTable/util.js +27 -0
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmTable/Table.js +9 -5
- package/es/LmTable/style/index.css +4 -0
- package/es/LmTable/style/variables.css +3 -0
- package/es/LmUpload/style/index.css +118 -0
- package/es/LmUpload/style/variables.css +118 -0
- package/es/Locale/default.d.ts +4 -1
- package/es/Locale/default.js +3 -1
- package/es/Locale/zh_CN.d.ts +4 -1
- package/es/Locale/zh_CN.js +3 -1
- package/es/Mentions/style/index.css +1 -0
- package/es/Menu/style/index.css +1 -0
- package/es/Modal/index.js +18 -14
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +12 -0
- package/es/Modal/style/index.css +1 -0
- package/es/PageHeader/style/index.css +1 -0
- package/es/Pagination/style/index.css +1 -0
- package/es/Popconfirm/style/index.css +1 -0
- package/es/Popover/style/index.css +1 -0
- package/es/Progress/style/index.css +1 -0
- package/es/QuickMenu/style/index.css +6 -0
- package/es/QuickMenu/style/variables.css +5 -0
- package/es/Rate/style/index.css +1 -0
- package/es/Result/style/index.css +1 -0
- package/es/Row/style/index.css +1 -0
- package/es/Segmented/style/index.css +1 -0
- package/es/Select/style/index.css +1 -0
- package/es/Skeleton/style/index.css +1 -0
- package/es/Slider/style/index.css +1 -0
- package/es/Space/style/index.css +1 -0
- package/es/Spin/style/index.css +1 -0
- package/es/Statistic/style/index.css +1 -0
- package/es/Steps/style/index.css +1 -0
- package/es/Switch/style/index.css +1 -0
- package/es/Table/style/index.css +1 -0
- package/es/Tabs/style/index.css +1 -0
- package/es/Tag/style/index.css +1 -0
- package/es/TimePicker/style/index.css +1 -0
- package/es/Timeline/style/index.css +1 -0
- package/es/Tooltip/style/index.css +1 -0
- package/es/Transfer/style/index.css +1 -0
- package/es/Tree/style/index.css +1 -0
- package/es/TreeSelect/style/index.css +1 -0
- package/es/Typography/style/index.css +1 -0
- package/es/Upload/style/index.css +1 -0
- package/es/locale-provider/style/index.css +1 -0
- package/es/message/style/index.css +1 -0
- package/es/notification/style/index.css +1 -0
- package/es/styles/main.css +1 -0
- package/es/styles/variables.css +148 -12
- package/lib/Affix/style/index.css +1 -0
- package/lib/Alert/style/index.css +1 -0
- package/lib/Approval/style/index.css +1 -0
- package/lib/AutoComplete/style/index.css +1 -0
- package/lib/Avatar/style/index.css +1 -0
- package/lib/Badge/style/index.css +1 -0
- package/lib/Breadcrumb/style/index.css +1 -0
- package/lib/Button/style/index.css +4 -1
- package/lib/Button/style/variables.css +4 -1
- package/lib/ButtonTags/style/index.css +1 -0
- package/lib/Calendar/style/index.css +1 -0
- package/lib/Card/style/index.css +1 -0
- package/lib/CardTable/style/index.css +7 -9
- package/lib/CardTable/style/variables.css +7 -9
- package/lib/Carousel/style/index.css +1 -0
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Col/style/index.css +1 -0
- package/lib/Collapse/style/index.css +1 -0
- package/lib/Comment/style/index.css +1 -0
- package/lib/CustomTableOption/cardSort.js +20 -15
- package/lib/CustomTableOption/columnsSort.js +16 -16
- package/lib/CustomTableOption/filterSort.js +11 -11
- package/lib/CustomTableOption/index.d.ts +1 -0
- package/lib/CustomTableOption/index.js +45 -16
- package/lib/CustomTableOption/locale/en_US.d.ts +19 -0
- package/lib/CustomTableOption/locale/en_US.js +26 -0
- package/lib/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/lib/CustomTableOption/locale/zh_CN.js +26 -0
- package/lib/CustomTableOption/style/index.css +5 -0
- package/lib/CustomTableOption/style/variables.css +4 -0
- package/lib/CustomerService/style/index.css +1 -0
- package/lib/DatePicker/style/index.css +1 -0
- package/lib/Descriptions/style/index.css +1 -0
- package/lib/Divider/style/index.css +1 -0
- package/lib/Drawer/style/index.css +1 -0
- package/lib/Dropdown/style/index.css +3 -2
- package/lib/Dropdown/style/variables.css +2 -2
- package/lib/EditTable/style/index.css +1 -0
- package/lib/Empty/style/index.css +1 -0
- package/lib/Filter/style/index.css +1 -0
- package/lib/Form/style/index.css +1 -0
- package/lib/FullScreen/style/index.css +1 -0
- package/lib/Grid/style/index.css +1 -0
- package/lib/Icon/style/index.css +1 -0
- package/lib/Image/style/index.css +1 -0
- package/lib/ImageViewer/components/Operate.js +6 -2
- package/lib/Input/style/index.css +1 -0
- package/lib/InputNumber/style/index.css +1 -0
- package/lib/Layout/style/index.css +1 -0
- package/lib/LeftTable/index.js +3 -1
- package/lib/LeftTable/style/index.css +1 -0
- package/lib/List/style/index.css +1 -0
- package/lib/LmEditTable/EditTable.js +39 -87
- package/lib/LmEditTable/style/index.css +5 -0
- package/lib/LmEditTable/style/variables.css +4 -0
- package/lib/LmEditTable/util.d.ts +1 -0
- package/lib/LmEditTable/util.js +30 -0
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmTable/Table.js +9 -5
- package/lib/LmTable/style/index.css +4 -0
- package/lib/LmTable/style/variables.css +3 -0
- package/lib/LmUpload/style/index.css +118 -0
- package/lib/LmUpload/style/variables.css +118 -0
- package/lib/Locale/default.d.ts +4 -1
- package/lib/Locale/default.js +4 -1
- package/lib/Locale/zh_CN.d.ts +4 -1
- package/lib/Locale/zh_CN.js +4 -1
- package/lib/Mentions/style/index.css +1 -0
- package/lib/Menu/style/index.css +1 -0
- package/lib/Modal/index.js +22 -14
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +25 -0
- package/lib/Modal/style/index.css +1 -0
- package/lib/PageHeader/style/index.css +1 -0
- package/lib/Pagination/style/index.css +1 -0
- package/lib/Popconfirm/style/index.css +1 -0
- package/lib/Popover/style/index.css +1 -0
- package/lib/Progress/style/index.css +1 -0
- package/lib/QuickMenu/style/index.css +6 -0
- package/lib/QuickMenu/style/variables.css +5 -0
- package/lib/Rate/style/index.css +1 -0
- package/lib/Result/style/index.css +1 -0
- package/lib/Row/style/index.css +1 -0
- package/lib/Segmented/style/index.css +1 -0
- package/lib/Select/style/index.css +1 -0
- package/lib/Skeleton/style/index.css +1 -0
- package/lib/Slider/style/index.css +1 -0
- package/lib/Space/style/index.css +1 -0
- package/lib/Spin/style/index.css +1 -0
- package/lib/Statistic/style/index.css +1 -0
- package/lib/Steps/style/index.css +1 -0
- package/lib/Switch/style/index.css +1 -0
- package/lib/Table/style/index.css +1 -0
- package/lib/Tabs/style/index.css +1 -0
- package/lib/Tag/style/index.css +1 -0
- package/lib/TimePicker/style/index.css +1 -0
- package/lib/Timeline/style/index.css +1 -0
- package/lib/Tooltip/style/index.css +1 -0
- package/lib/Transfer/style/index.css +1 -0
- package/lib/Tree/style/index.css +1 -0
- package/lib/TreeSelect/style/index.css +1 -0
- package/lib/Typography/style/index.css +1 -0
- package/lib/Upload/style/index.css +1 -0
- package/lib/locale-provider/style/index.css +1 -0
- package/lib/message/style/index.css +1 -0
- package/lib/notification/style/index.css +1 -0
- package/lib/styles/main.css +1 -0
- package/lib/styles/variables.css +148 -12
- package/package.json +1 -6
package/dist/index.umd.js
CHANGED
|
@@ -10496,6 +10496,25 @@
|
|
|
10496
10496
|
|
|
10497
10497
|
var Pagination = /*@__PURE__*/getDefaultExportFromCjs(en_US);
|
|
10498
10498
|
|
|
10499
|
+
var locale$3 = {
|
|
10500
|
+
lang: {
|
|
10501
|
+
setting: 'Personalization Settings',
|
|
10502
|
+
cancel: 'Cancel',
|
|
10503
|
+
confirm: 'Confirm',
|
|
10504
|
+
filterSetting: 'Filter Setting',
|
|
10505
|
+
columnsSetting: 'Columns Setting',
|
|
10506
|
+
cardSetting: 'Card Setting',
|
|
10507
|
+
other: 'Other',
|
|
10508
|
+
listStyle: 'List Style',
|
|
10509
|
+
isSaveSetting: 'Is Save Setting',
|
|
10510
|
+
selectAll: 'selectAll',
|
|
10511
|
+
reset: 'Reset',
|
|
10512
|
+
fixedInLeft: 'Fixed Left',
|
|
10513
|
+
noFixed: 'No Fixed',
|
|
10514
|
+
fixedInRight: 'Fixed Right'
|
|
10515
|
+
}
|
|
10516
|
+
};
|
|
10517
|
+
|
|
10499
10518
|
/* eslint-disable no-template-curly-in-string */
|
|
10500
10519
|
var typeTemplate$2 = '${label} is not a valid ${type}';
|
|
10501
10520
|
var localeValues$1 = {
|
|
@@ -10621,7 +10640,8 @@
|
|
|
10621
10640
|
},
|
|
10622
10641
|
Image: {
|
|
10623
10642
|
preview: 'Preview'
|
|
10624
|
-
}
|
|
10643
|
+
},
|
|
10644
|
+
CustomTableOption: locale$3
|
|
10625
10645
|
};
|
|
10626
10646
|
|
|
10627
10647
|
var LocaleReceiver$1 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -58962,7 +58982,7 @@
|
|
|
58962
58982
|
// If passed a locale key, it will set the locale for this
|
|
58963
58983
|
// instance. Otherwise, it will return the locale configuration
|
|
58964
58984
|
// variables for this instance.
|
|
58965
|
-
function locale$
|
|
58985
|
+
function locale$4(key) {
|
|
58966
58986
|
var newLocaleData;
|
|
58967
58987
|
|
|
58968
58988
|
if (key === undefined) {
|
|
@@ -59842,7 +59862,7 @@
|
|
|
59842
59862
|
proto.isSameOrBefore = isSameOrBefore;
|
|
59843
59863
|
proto.isValid = isValid$2;
|
|
59844
59864
|
proto.lang = lang;
|
|
59845
|
-
proto.locale = locale$
|
|
59865
|
+
proto.locale = locale$4;
|
|
59846
59866
|
proto.localeData = localeData;
|
|
59847
59867
|
proto.max = prototypeMax;
|
|
59848
59868
|
proto.min = prototypeMin;
|
|
@@ -60538,7 +60558,7 @@
|
|
|
60538
60558
|
proto$2.toISOString = toISOString$1;
|
|
60539
60559
|
proto$2.toString = toISOString$1;
|
|
60540
60560
|
proto$2.toJSON = toISOString$1;
|
|
60541
|
-
proto$2.locale = locale$
|
|
60561
|
+
proto$2.locale = locale$4;
|
|
60542
60562
|
proto$2.localeData = localeData;
|
|
60543
60563
|
|
|
60544
60564
|
proto$2.toIsoString = deprecate(
|
|
@@ -189562,7 +189582,9 @@
|
|
|
189562
189582
|
className: useToggle ? "lm_grid_tree ".concat(modeTypeCls) : "lm_grid_tree grid_toggle ".concat(modeTypeCls)
|
|
189563
189583
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
189564
189584
|
className: "grid_tree_title",
|
|
189565
|
-
onClick:
|
|
189585
|
+
onClick: function onClick(e) {
|
|
189586
|
+
onHeaderClick && onHeaderClick(e);
|
|
189587
|
+
}
|
|
189566
189588
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
189567
189589
|
className: "grid_tree_title_left"
|
|
189568
189590
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, useTree.title)), treeType && /*#__PURE__*/React__default['default'].createElement(Index$9, {
|
|
@@ -189912,7 +189934,7 @@
|
|
|
189912
189934
|
};
|
|
189913
189935
|
}
|
|
189914
189936
|
|
|
189915
|
-
var locale$
|
|
189937
|
+
var locale$5 = {
|
|
189916
189938
|
locale: 'zh_CN',
|
|
189917
189939
|
today: '今天',
|
|
189918
189940
|
now: '此刻',
|
|
@@ -189941,12 +189963,12 @@
|
|
|
189941
189963
|
nextCentury: '下一世纪'
|
|
189942
189964
|
};
|
|
189943
189965
|
|
|
189944
|
-
var locale$
|
|
189966
|
+
var locale$6 = {
|
|
189945
189967
|
placeholder: '请选择时间',
|
|
189946
189968
|
rangePlaceholder: ['开始时间', '结束时间']
|
|
189947
189969
|
};
|
|
189948
189970
|
|
|
189949
|
-
var locale$
|
|
189971
|
+
var locale$7 = {
|
|
189950
189972
|
lang: _extends({
|
|
189951
189973
|
placeholder: '请选择日期',
|
|
189952
189974
|
yearPlaceholder: '请选择年份',
|
|
@@ -189958,20 +189980,20 @@
|
|
|
189958
189980
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
189959
189981
|
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
|
189960
189982
|
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
189961
|
-
}, locale$
|
|
189962
|
-
timePickerLocale: _extends({}, locale$
|
|
189983
|
+
}, locale$5),
|
|
189984
|
+
timePickerLocale: _extends({}, locale$6)
|
|
189963
189985
|
}; // should add whitespace between char in Button
|
|
189964
189986
|
|
|
189965
|
-
locale$
|
|
189987
|
+
locale$7.lang.ok = '确定'; // All settings at:
|
|
189966
189988
|
|
|
189967
189989
|
/* eslint-disable no-template-curly-in-string */
|
|
189968
189990
|
var typeTemplate$3 = '${label}不是一个有效的${type}';
|
|
189969
189991
|
var localeValues$2 = {
|
|
189970
189992
|
locale: 'zh-cn',
|
|
189971
189993
|
Pagination: Pagination$1,
|
|
189972
|
-
DatePicker: locale$
|
|
189973
|
-
TimePicker: locale$
|
|
189974
|
-
Calendar: locale$
|
|
189994
|
+
DatePicker: locale$7,
|
|
189995
|
+
TimePicker: locale$6,
|
|
189996
|
+
Calendar: locale$7,
|
|
189975
189997
|
// locales for all components
|
|
189976
189998
|
global: {
|
|
189977
189999
|
placeholder: '请选择'
|
|
@@ -232477,6 +232499,40 @@
|
|
|
232477
232499
|
var Resizable = Resizable_1.default;
|
|
232478
232500
|
var ResizableBox = ResizableBox_1.default;
|
|
232479
232501
|
|
|
232502
|
+
function n$1(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$2(n){return !!n&&!!n[Q]}function t$1(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$4(n)||v(n))}function i$3(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$4(n)?2:v(n)?3:0}function u$c(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$4(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$4(n,e){return void 0===e&&(e=!1),y$4(n)||r$2(n)||!t$1(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h$4),Object.freeze(n),e&&i$3(n,(function(n,r){return d$4(r,!0)}),!0),n)}function h$4(){n$1(2);}function y$4(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n$1(18,r),t}function _(){return U||n$1(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$2(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$1(4)),t$1(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$4(r))return r;var e=r[Q];if(!e)return i$3(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(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$1(5),r$2(c)){var v=M(e,c,s&&i&&3!==i.i&&!u$c(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r$2(v))return;e.m=!1;}if(t$1(c)&&!y$4(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$4(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$4(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$2(e)||n$1(22,e),function n(r){if(!t$1(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$3(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$c(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$1(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$c(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$1(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$1(12);}},on={};i$3(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$1(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "length"!==t&&isNaN(parseInt(t))&&n$1(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$1(6),void 0!==o&&"function"!=typeof o&&n$1(7),t$1(r)){var c=w$2(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$4(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n$1(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$1(e)||n$1(8),r$2(e)&&(e=D(e));var i=w$2(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$1(9),e.I&&n$1(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$1(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$2(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);
|
|
232503
|
+
|
|
232504
|
+
var utils$5 = createCommonjsModule(function (module, exports) {
|
|
232505
|
+
|
|
232506
|
+
Object.defineProperty(exports, "__esModule", {
|
|
232507
|
+
value: true
|
|
232508
|
+
});
|
|
232509
|
+
exports.isUndef = exports.isNumber = exports.isBoolean = exports.isString = exports.isFunction = exports.isObject = void 0;
|
|
232510
|
+
|
|
232511
|
+
exports.isObject = function (value) {
|
|
232512
|
+
return value !== null && typeof value === 'object';
|
|
232513
|
+
};
|
|
232514
|
+
|
|
232515
|
+
exports.isFunction = function (value) {
|
|
232516
|
+
return typeof value === 'function';
|
|
232517
|
+
};
|
|
232518
|
+
|
|
232519
|
+
exports.isString = function (value) {
|
|
232520
|
+
return typeof value === 'string';
|
|
232521
|
+
};
|
|
232522
|
+
|
|
232523
|
+
exports.isBoolean = function (value) {
|
|
232524
|
+
return typeof value === 'boolean';
|
|
232525
|
+
};
|
|
232526
|
+
|
|
232527
|
+
exports.isNumber = function (value) {
|
|
232528
|
+
return typeof value === 'number';
|
|
232529
|
+
};
|
|
232530
|
+
|
|
232531
|
+
exports.isUndef = function (value) {
|
|
232532
|
+
return typeof value === 'undefined';
|
|
232533
|
+
};
|
|
232534
|
+
});
|
|
232535
|
+
|
|
232480
232536
|
var createUpdateEffect = function createUpdateEffect(hook) {
|
|
232481
232537
|
return function (effect, deps) {
|
|
232482
232538
|
var isMounted = React.useRef(false); // for react-refresh
|
|
@@ -233005,40 +233061,6 @@
|
|
|
233005
233061
|
return position;
|
|
233006
233062
|
}
|
|
233007
233063
|
|
|
233008
|
-
function n$1(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$2(n){return !!n&&!!n[Q]}function t$1(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$4(n)||v(n))}function i$3(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$4(n)?2:v(n)?3:0}function u$c(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$4(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$4(n,e){return void 0===e&&(e=!1),y$4(n)||r$2(n)||!t$1(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h$4),Object.freeze(n),e&&i$3(n,(function(n,r){return d$4(r,!0)}),!0),n)}function h$4(){n$1(2);}function y$4(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n$1(18,r),t}function _(){return U||n$1(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$2(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$1(4)),t$1(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$4(r))return r;var e=r[Q];if(!e)return i$3(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(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$1(5),r$2(c)){var v=M(e,c,s&&i&&3!==i.i&&!u$c(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r$2(v))return;e.m=!1;}if(t$1(c)&&!y$4(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$4(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$4(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$2(e)||n$1(22,e),function n(r){if(!t$1(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$3(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$c(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$1(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$c(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$1(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n$1(12);}},on={};i$3(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$1(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "length"!==t&&isNaN(parseInt(t))&&n$1(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$1(6),void 0!==o&&"function"!=typeof o&&n$1(7),t$1(r)){var c=w$2(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$4(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n$1(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$1(e)||n$1(8),r$2(e)&&(e=D(e));var i=w$2(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$1(9),e.I&&n$1(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$1(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$2(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);
|
|
233009
|
-
|
|
233010
|
-
var utils$5 = createCommonjsModule(function (module, exports) {
|
|
233011
|
-
|
|
233012
|
-
Object.defineProperty(exports, "__esModule", {
|
|
233013
|
-
value: true
|
|
233014
|
-
});
|
|
233015
|
-
exports.isUndef = exports.isNumber = exports.isBoolean = exports.isString = exports.isFunction = exports.isObject = void 0;
|
|
233016
|
-
|
|
233017
|
-
exports.isObject = function (value) {
|
|
233018
|
-
return value !== null && typeof value === 'object';
|
|
233019
|
-
};
|
|
233020
|
-
|
|
233021
|
-
exports.isFunction = function (value) {
|
|
233022
|
-
return typeof value === 'function';
|
|
233023
|
-
};
|
|
233024
|
-
|
|
233025
|
-
exports.isString = function (value) {
|
|
233026
|
-
return typeof value === 'string';
|
|
233027
|
-
};
|
|
233028
|
-
|
|
233029
|
-
exports.isBoolean = function (value) {
|
|
233030
|
-
return typeof value === 'boolean';
|
|
233031
|
-
};
|
|
233032
|
-
|
|
233033
|
-
exports.isNumber = function (value) {
|
|
233034
|
-
return typeof value === 'number';
|
|
233035
|
-
};
|
|
233036
|
-
|
|
233037
|
-
exports.isUndef = function (value) {
|
|
233038
|
-
return typeof value === 'undefined';
|
|
233039
|
-
};
|
|
233040
|
-
});
|
|
233041
|
-
|
|
233042
233064
|
function useControllableValue$1() {
|
|
233043
233065
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
233044
233066
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -285869,12 +285891,19 @@
|
|
|
285869
285891
|
var handleResize = function handleResize(index) {
|
|
285870
285892
|
return function (e, _ref2) {
|
|
285871
285893
|
var size = _ref2.size;
|
|
285894
|
+
var i = index;
|
|
285872
285895
|
|
|
285873
285896
|
var nextColumns = _toConsumableArray$1(useColumns);
|
|
285874
285897
|
|
|
285875
|
-
nextColumns
|
|
285898
|
+
nextColumns.forEach(function (item, index) {
|
|
285899
|
+
if (index <= i && item.show === false) {
|
|
285900
|
+
i += 1;
|
|
285901
|
+
}
|
|
285902
|
+
});
|
|
285903
|
+
nextColumns[i] = _objectSpread(_objectSpread({}, nextColumns[i]), {}, {
|
|
285876
285904
|
width: size.width
|
|
285877
285905
|
});
|
|
285906
|
+
console.log(nextColumns, 'nextColumns');
|
|
285878
285907
|
setColumns(nextColumns);
|
|
285879
285908
|
};
|
|
285880
285909
|
};
|
|
@@ -286482,7 +286511,7 @@
|
|
|
286482
286511
|
var colIndex = 0;
|
|
286483
286512
|
|
|
286484
286513
|
var traverseColumns = function traverseColumns(columns) {
|
|
286485
|
-
columns === null || columns === void 0 ? void 0 : columns.forEach(function (col) {
|
|
286514
|
+
columns === null || columns === void 0 ? void 0 : columns.forEach(function (col, index) {
|
|
286486
286515
|
if (col.show === false) {
|
|
286487
286516
|
return;
|
|
286488
286517
|
}
|
|
@@ -286497,7 +286526,7 @@
|
|
|
286497
286526
|
col.onHeaderCell = function (column) {
|
|
286498
286527
|
return resizeable ? {
|
|
286499
286528
|
width: column.width,
|
|
286500
|
-
onResize: handleResize(
|
|
286529
|
+
onResize: handleResize(index),
|
|
286501
286530
|
onResizeStop: endResize
|
|
286502
286531
|
} : {
|
|
286503
286532
|
width: column.width
|
|
@@ -287919,7 +287948,12 @@
|
|
|
287919
287948
|
}));
|
|
287920
287949
|
};
|
|
287921
287950
|
|
|
287922
|
-
var
|
|
287951
|
+
var runtimeLocale$1 = _objectSpread({}, localeValues$1.Modal);
|
|
287952
|
+
function getConfirmLocale$1() {
|
|
287953
|
+
return runtimeLocale$1;
|
|
287954
|
+
}
|
|
287955
|
+
|
|
287956
|
+
var _excluded$2e = ["wrapClassName", "size", "onOk", "onCancel", "visible", "open"];
|
|
287923
287957
|
var prefixCls$5 = 'lm_modal';
|
|
287924
287958
|
|
|
287925
287959
|
var CLMModal = function CLMModal(props) {
|
|
@@ -287928,34 +287962,36 @@
|
|
|
287928
287962
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
287929
287963
|
onOk = props.onOk,
|
|
287930
287964
|
onCancel = props.onCancel,
|
|
287931
|
-
_props$okText = props.okText,
|
|
287932
|
-
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
287933
|
-
_props$cancelText = props.cancelText,
|
|
287934
|
-
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
287935
287965
|
visible = props.visible,
|
|
287936
287966
|
open = props.open,
|
|
287937
287967
|
other = _objectWithoutProperties$1(props, _excluded$2e);
|
|
287938
287968
|
|
|
287939
287969
|
var defaultFooterSize = React__default['default'].useContext(SizeContext$1) || 'middle';
|
|
287940
|
-
|
|
287941
|
-
|
|
287942
|
-
|
|
287943
|
-
|
|
287970
|
+
var defaultFooter = /*#__PURE__*/React__default['default'].createElement(LocaleReceiver$1, {
|
|
287971
|
+
componentName: "Modal",
|
|
287972
|
+
defaultLocale: getConfirmLocale$1()
|
|
287973
|
+
}, function (contextLocale) {
|
|
287974
|
+
var okText = props.okText,
|
|
287975
|
+
cancelText = props.cancelText;
|
|
287976
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(LMButton, _objectSpread({
|
|
287944
287977
|
onClick: onCancel,
|
|
287945
287978
|
key: 'canncel_button',
|
|
287946
287979
|
size: defaultFooterSize
|
|
287947
|
-
}, cancelText), /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
287980
|
+
}, props.cancelButtonProps), cancelText || contextLocale.cancelText), /*#__PURE__*/React__default['default'].createElement(LMButton, _objectSpread({
|
|
287948
287981
|
type: "primary",
|
|
287949
287982
|
onClick: onOk,
|
|
287950
287983
|
key: 'ok_button',
|
|
287951
287984
|
size: defaultFooterSize
|
|
287952
|
-
}, okText)
|
|
287985
|
+
}, props.okButtonProps), okText !== null && okText !== void 0 ? okText : contextLocale.okText));
|
|
287986
|
+
});
|
|
287987
|
+
return /*#__PURE__*/React__default['default'].createElement(Modal$1, _objectSpread(_objectSpread({
|
|
287988
|
+
wrapClassName: classnames(wrapClassName, prefixCls$5),
|
|
287989
|
+
width: size === 'default' ? 552 : 416,
|
|
287990
|
+
footer: defaultFooter
|
|
287953
287991
|
}, other), {}, {
|
|
287954
287992
|
onOk: onOk,
|
|
287955
287993
|
onCancel: onCancel,
|
|
287956
|
-
|
|
287957
|
-
visible: visible || open,
|
|
287958
|
-
cancelText: cancelText
|
|
287994
|
+
visible: visible || open
|
|
287959
287995
|
}));
|
|
287960
287996
|
};
|
|
287961
287997
|
|
|
@@ -292938,10 +292974,10 @@
|
|
|
292938
292974
|
};
|
|
292939
292975
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread({
|
|
292940
292976
|
ref: setNodeRef,
|
|
292941
|
-
className:
|
|
292977
|
+
className: "lm_custom_item",
|
|
292942
292978
|
style: style
|
|
292943
292979
|
}, attributes), /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
292944
|
-
checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show)
|
|
292980
|
+
checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show) !== false,
|
|
292945
292981
|
onChange: function onChange(e) {
|
|
292946
292982
|
return props.toggleShow(e.target.checked, props.id);
|
|
292947
292983
|
},
|
|
@@ -292968,7 +293004,7 @@
|
|
|
292968
293004
|
props.addFiexd(props.id, 'right');
|
|
292969
293005
|
}
|
|
292970
293006
|
})), /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _objectSpread(_objectSpread({}, listeners), {}, {
|
|
292971
|
-
className:
|
|
293007
|
+
className: "lm_custom_icon sort_item",
|
|
292972
293008
|
style: {
|
|
292973
293009
|
color: 'var(--tip-text-color)'
|
|
292974
293010
|
}
|
|
@@ -293021,7 +293057,7 @@
|
|
|
293021
293057
|
var order = (_colStateValue$item$d = colStateValue[item.dataIndex]) === null || _colStateValue$item$d === void 0 ? void 0 : _colStateValue$item$d.order;
|
|
293022
293058
|
item.fixed = ((_colStateValue$item$d2 = colStateValue[item.dataIndex]) === null || _colStateValue$item$d2 === void 0 ? void 0 : _colStateValue$item$d2.fixed) || undefined;
|
|
293023
293059
|
item.order = [undefined, null].includes(order) ? index : order;
|
|
293024
|
-
item.show = ((_colStateValue$item$d3 = colStateValue[item.dataIndex]) === null || _colStateValue$item$d3 === void 0 ? void 0 : _colStateValue$item$d3.show)
|
|
293060
|
+
item.show = ((_colStateValue$item$d3 = colStateValue[item.dataIndex]) === null || _colStateValue$item$d3 === void 0 ? void 0 : _colStateValue$item$d3.show) !== false;
|
|
293025
293061
|
}
|
|
293026
293062
|
});
|
|
293027
293063
|
var leftSortItem = [];
|
|
@@ -293047,7 +293083,7 @@
|
|
|
293047
293083
|
return item.show !== false;
|
|
293048
293084
|
});
|
|
293049
293085
|
return {
|
|
293050
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length
|
|
293086
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length),
|
|
293051
293087
|
checkAll: showLength.length === localColumns.length
|
|
293052
293088
|
};
|
|
293053
293089
|
}, [localColumns]);
|
|
@@ -293115,7 +293151,7 @@
|
|
|
293115
293151
|
var resultColumns = localColumns.map(function (item) {
|
|
293116
293152
|
if (item.dataIndex === id) {
|
|
293117
293153
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293118
|
-
show: item.show === false
|
|
293154
|
+
show: item.show === false
|
|
293119
293155
|
});
|
|
293120
293156
|
}
|
|
293121
293157
|
|
|
@@ -293144,7 +293180,7 @@
|
|
|
293144
293180
|
var onCheckAllChange = function onCheckAllChange() {
|
|
293145
293181
|
var resultColumns = localColumns.map(function (item) {
|
|
293146
293182
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293147
|
-
show: isCheckAll.checkAll
|
|
293183
|
+
show: !isCheckAll.checkAll
|
|
293148
293184
|
});
|
|
293149
293185
|
});
|
|
293150
293186
|
setLocalColumns(resultColumns);
|
|
@@ -293161,15 +293197,15 @@
|
|
|
293161
293197
|
obj[item.dataIndex] = {};
|
|
293162
293198
|
|
|
293163
293199
|
if (![undefined, null].includes(item.order)) {
|
|
293164
|
-
obj[item.dataIndex]
|
|
293200
|
+
obj[item.dataIndex].order = item.order;
|
|
293165
293201
|
}
|
|
293166
293202
|
|
|
293167
293203
|
if (![undefined, null].includes(item.show)) {
|
|
293168
|
-
obj[item.dataIndex]
|
|
293204
|
+
obj[item.dataIndex].show = item.show;
|
|
293169
293205
|
}
|
|
293170
293206
|
|
|
293171
293207
|
if (![undefined, null].includes(item.fixed)) {
|
|
293172
|
-
obj[item.dataIndex]
|
|
293208
|
+
obj[item.dataIndex].fixed = item.fixed;
|
|
293173
293209
|
}
|
|
293174
293210
|
});
|
|
293175
293211
|
return obj;
|
|
@@ -293177,9 +293213,9 @@
|
|
|
293177
293213
|
};
|
|
293178
293214
|
});
|
|
293179
293215
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293180
|
-
className:
|
|
293216
|
+
className: "lm_custom_option_columns"
|
|
293181
293217
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293182
|
-
className:
|
|
293218
|
+
className: "global_search"
|
|
293183
293219
|
}, /*#__PURE__*/React__default['default'].createElement(Search$1, {
|
|
293184
293220
|
value: searchIngValue,
|
|
293185
293221
|
onChange: function onChange(e) {
|
|
@@ -293187,7 +293223,7 @@
|
|
|
293187
293223
|
},
|
|
293188
293224
|
onSearch: handleSearch
|
|
293189
293225
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293190
|
-
className:
|
|
293226
|
+
className: "global_setting"
|
|
293191
293227
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
293192
293228
|
indeterminate: isCheckAll.indeterminate,
|
|
293193
293229
|
onChange: onCheckAllChange,
|
|
@@ -293197,7 +293233,7 @@
|
|
|
293197
293233
|
return setLocalColumns(columns);
|
|
293198
293234
|
}
|
|
293199
293235
|
}, "\u91CD\u7F6E")), !!((_sortMenu$leftSortIte = sortMenu.leftSortItem) === null || _sortMenu$leftSortIte === void 0 ? void 0 : _sortMenu$leftSortIte.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
|
|
293200
|
-
className:
|
|
293236
|
+
className: "fixed_title"
|
|
293201
293237
|
}, "\u56FA\u5B9A\u5728\u5DE6\u4FA7"), /*#__PURE__*/React__default['default'].createElement(DndContext, {
|
|
293202
293238
|
sensors: leftSensors,
|
|
293203
293239
|
collisionDetection: closestCenter,
|
|
@@ -293216,7 +293252,7 @@
|
|
|
293216
293252
|
id: item.dataIndex
|
|
293217
293253
|
});
|
|
293218
293254
|
})))), !!((_sortMenu$items = sortMenu.items) === null || _sortMenu$items === void 0 ? void 0 : _sortMenu$items.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
|
|
293219
|
-
className:
|
|
293255
|
+
className: "fixed_title"
|
|
293220
293256
|
}, " \u4E0D\u56FA\u5B9A "), /*#__PURE__*/React__default['default'].createElement(DndContext, {
|
|
293221
293257
|
sensors: sensors,
|
|
293222
293258
|
collisionDetection: closestCenter,
|
|
@@ -293235,7 +293271,7 @@
|
|
|
293235
293271
|
id: item.dataIndex
|
|
293236
293272
|
});
|
|
293237
293273
|
})))), !!((_sortMenu$rigthSortIt = sortMenu.rigthSortItem) === null || _sortMenu$rigthSortIt === void 0 ? void 0 : _sortMenu$rigthSortIt.length) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("label", {
|
|
293238
|
-
className:
|
|
293274
|
+
className: "fixed_title"
|
|
293239
293275
|
}, "\u56FA\u5B9A\u5728\u53F3\u4FA7"), /*#__PURE__*/React__default['default'].createElement(DndContext, {
|
|
293240
293276
|
sensors: rightSensors,
|
|
293241
293277
|
collisionDetection: closestCenter,
|
|
@@ -293277,16 +293313,16 @@
|
|
|
293277
293313
|
};
|
|
293278
293314
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread({
|
|
293279
293315
|
ref: setNodeRef,
|
|
293280
|
-
className:
|
|
293316
|
+
className: "lm_custom_item",
|
|
293281
293317
|
style: style
|
|
293282
293318
|
}, attributes), /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
293283
|
-
checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show)
|
|
293319
|
+
checked: (props === null || props === void 0 ? void 0 : (_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show) !== false,
|
|
293284
293320
|
onChange: function onChange(e) {
|
|
293285
|
-
return props.toggleShow(e.target.checked, props.id);
|
|
293321
|
+
return props === null || props === void 0 ? void 0 : props.toggleShow(e.target.checked, props === null || props === void 0 ? void 0 : props.id);
|
|
293286
293322
|
},
|
|
293287
293323
|
className: "filter_item-content"
|
|
293288
|
-
}, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _objectSpread(_objectSpread({}, listeners), {}, {
|
|
293289
|
-
className:
|
|
293324
|
+
}, props === null || props === void 0 ? void 0 : (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _objectSpread(_objectSpread({}, listeners), {}, {
|
|
293325
|
+
className: "lm_custom_icon sort_item"
|
|
293290
293326
|
}))));
|
|
293291
293327
|
};
|
|
293292
293328
|
/** order show */
|
|
@@ -293296,7 +293332,8 @@
|
|
|
293296
293332
|
var _ref$card = _ref.card,
|
|
293297
293333
|
card = _ref$card === void 0 ? [] : _ref$card,
|
|
293298
293334
|
_ref$cardStateValue = _ref.cardStateValue,
|
|
293299
|
-
cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue
|
|
293335
|
+
cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue,
|
|
293336
|
+
showPromptNum = _ref.showPromptNum;
|
|
293300
293337
|
|
|
293301
293338
|
var _useState = React.useState([]),
|
|
293302
293339
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -293340,7 +293377,7 @@
|
|
|
293340
293377
|
return item.show !== false;
|
|
293341
293378
|
});
|
|
293342
293379
|
return {
|
|
293343
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length
|
|
293380
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length),
|
|
293344
293381
|
checkAll: showLength.length === localCard.length
|
|
293345
293382
|
};
|
|
293346
293383
|
}, [localCard]);
|
|
@@ -293386,7 +293423,7 @@
|
|
|
293386
293423
|
var resultColumns = localCard.map(function (item) {
|
|
293387
293424
|
if (item.dataIndex === id) {
|
|
293388
293425
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293389
|
-
show: item.show === false
|
|
293426
|
+
show: item.show === false
|
|
293390
293427
|
});
|
|
293391
293428
|
}
|
|
293392
293429
|
|
|
@@ -293400,7 +293437,7 @@
|
|
|
293400
293437
|
var onCheckAllChange = function onCheckAllChange() {
|
|
293401
293438
|
var resultColumns = localCard.map(function (item) {
|
|
293402
293439
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293403
|
-
show: isCheckAll.checkAll
|
|
293440
|
+
show: !isCheckAll.checkAll
|
|
293404
293441
|
});
|
|
293405
293442
|
});
|
|
293406
293443
|
setLocalCard(resultColumns);
|
|
@@ -293417,11 +293454,11 @@
|
|
|
293417
293454
|
obj[item.dataIndex] = {};
|
|
293418
293455
|
|
|
293419
293456
|
if (![undefined, null].includes(item.order)) {
|
|
293420
|
-
obj[item.dataIndex]
|
|
293457
|
+
obj[item.dataIndex].order = item.order;
|
|
293421
293458
|
}
|
|
293422
293459
|
|
|
293423
293460
|
if (![undefined, null].includes(item.show)) {
|
|
293424
|
-
obj[item.dataIndex]
|
|
293461
|
+
obj[item.dataIndex].show = item.show;
|
|
293425
293462
|
}
|
|
293426
293463
|
});
|
|
293427
293464
|
return obj;
|
|
@@ -293429,17 +293466,21 @@
|
|
|
293429
293466
|
};
|
|
293430
293467
|
});
|
|
293431
293468
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293432
|
-
className:
|
|
293469
|
+
className: "lm_custom_option_columns"
|
|
293433
293470
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293434
|
-
className:
|
|
293471
|
+
className: "global_search"
|
|
293435
293472
|
}, /*#__PURE__*/React__default['default'].createElement(Search$2, {
|
|
293436
293473
|
value: searchIngValue,
|
|
293437
293474
|
onChange: function onChange(e) {
|
|
293438
293475
|
return setSearchIngValue(e.target.value);
|
|
293439
293476
|
},
|
|
293440
293477
|
onSearch: handleSearch
|
|
293441
|
-
})), /*#__PURE__*/React__default['default'].createElement("
|
|
293442
|
-
className:
|
|
293478
|
+
})), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
293479
|
+
className: "card_prompt"
|
|
293480
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
293481
|
+
type: "lmweb-warning-circle"
|
|
293482
|
+
}), " \u5361\u7247\u5B57\u6BB5\u5EFA\u8BAE\u6700\u591A\u663E\u793A", showPromptNum || 10, "\u4E2A\u4E3A\u4F18"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293483
|
+
className: "global_setting"
|
|
293443
293484
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
293444
293485
|
indeterminate: isCheckAll.indeterminate,
|
|
293445
293486
|
onChange: onCheckAllChange,
|
|
@@ -293488,16 +293529,16 @@
|
|
|
293488
293529
|
};
|
|
293489
293530
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread({
|
|
293490
293531
|
ref: setNodeRef,
|
|
293491
|
-
className:
|
|
293532
|
+
className: "lm_custom_item",
|
|
293492
293533
|
style: style
|
|
293493
293534
|
}, attributes), /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
293494
|
-
checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show)
|
|
293535
|
+
checked: ((_props$item = props.item) === null || _props$item === void 0 ? void 0 : _props$item.show) !== false,
|
|
293495
293536
|
onChange: function onChange(e) {
|
|
293496
293537
|
return props.toggleShow(e.target.checked, props.id);
|
|
293497
293538
|
},
|
|
293498
293539
|
className: "filter_item-content"
|
|
293499
293540
|
}, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(HolderOutlined$2, _objectSpread(_objectSpread({}, listeners), {}, {
|
|
293500
|
-
className:
|
|
293541
|
+
className: "lm_custom_icon sort_item"
|
|
293501
293542
|
}))));
|
|
293502
293543
|
};
|
|
293503
293544
|
/** order show fixed */
|
|
@@ -293551,7 +293592,7 @@
|
|
|
293551
293592
|
return item.show !== false;
|
|
293552
293593
|
});
|
|
293553
293594
|
return {
|
|
293554
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length
|
|
293595
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length),
|
|
293555
293596
|
checkAll: showLength.length === localFilter.length
|
|
293556
293597
|
};
|
|
293557
293598
|
}, [localFilter]);
|
|
@@ -293597,7 +293638,7 @@
|
|
|
293597
293638
|
var resultColumns = localFilter.map(function (item) {
|
|
293598
293639
|
if (item.field === id) {
|
|
293599
293640
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293600
|
-
show: item.show === false
|
|
293641
|
+
show: item.show === false
|
|
293601
293642
|
});
|
|
293602
293643
|
}
|
|
293603
293644
|
|
|
@@ -293611,7 +293652,7 @@
|
|
|
293611
293652
|
var onCheckAllChange = function onCheckAllChange() {
|
|
293612
293653
|
var resultColumns = localFilter.map(function (item) {
|
|
293613
293654
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293614
|
-
show: isCheckAll.checkAll
|
|
293655
|
+
show: !isCheckAll.checkAll
|
|
293615
293656
|
});
|
|
293616
293657
|
});
|
|
293617
293658
|
console.log(resultColumns, 'resultColumns');
|
|
@@ -293629,11 +293670,11 @@
|
|
|
293629
293670
|
obj[item.field] = {};
|
|
293630
293671
|
|
|
293631
293672
|
if (![undefined, null].includes(item.order)) {
|
|
293632
|
-
obj[item.field]
|
|
293673
|
+
obj[item.field].order = item.order;
|
|
293633
293674
|
}
|
|
293634
293675
|
|
|
293635
293676
|
if (![undefined, null].includes(item.show)) {
|
|
293636
|
-
obj[item.field]
|
|
293677
|
+
obj[item.field].show = item.show;
|
|
293637
293678
|
}
|
|
293638
293679
|
});
|
|
293639
293680
|
return obj;
|
|
@@ -293641,9 +293682,9 @@
|
|
|
293641
293682
|
};
|
|
293642
293683
|
});
|
|
293643
293684
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293644
|
-
className:
|
|
293685
|
+
className: "lm_custom_option_columns"
|
|
293645
293686
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293646
|
-
className:
|
|
293687
|
+
className: "global_search"
|
|
293647
293688
|
}, /*#__PURE__*/React__default['default'].createElement(Search$3, {
|
|
293648
293689
|
value: searchIngValue,
|
|
293649
293690
|
onChange: function onChange(e) {
|
|
@@ -293651,7 +293692,7 @@
|
|
|
293651
293692
|
},
|
|
293652
293693
|
onSearch: handleSearch
|
|
293653
293694
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
293654
|
-
className:
|
|
293695
|
+
className: "global_setting"
|
|
293655
293696
|
}, /*#__PURE__*/React__default['default'].createElement(LMCheckBox, {
|
|
293656
293697
|
indeterminate: isCheckAll.indeterminate,
|
|
293657
293698
|
onChange: onCheckAllChange,
|
|
@@ -293695,7 +293736,7 @@
|
|
|
293695
293736
|
}];
|
|
293696
293737
|
var prefixCls$9 = 'lm_custom-table-option';
|
|
293697
293738
|
var LMCustomTableOption = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
293698
|
-
var _lmOptions$filter, _lmOptions$columns, _lmOptions$card;
|
|
293739
|
+
var _lmOptions$filter, _lmOptions$columns, _lmOptions$card, _props$recommendNumOb2;
|
|
293699
293740
|
|
|
293700
293741
|
var className = props.className,
|
|
293701
293742
|
_props$tooltip = props.tooltip,
|
|
@@ -293741,7 +293782,7 @@
|
|
|
293741
293782
|
/** 提交按钮 */
|
|
293742
293783
|
|
|
293743
293784
|
var onOk = function onOk() {
|
|
293744
|
-
var _columnsRef$current, _columnsRef$current2, _filterRef$current, _filterRef$current2, _cardRef$current, _cardRef$current2, _props$
|
|
293785
|
+
var _columnsRef$current, _columnsRef$current2, _filterRef$current, _filterRef$current2, _cardRef$current, _cardRef$current2, _props$recommendNumOb;
|
|
293745
293786
|
|
|
293746
293787
|
/** tableInfo */
|
|
293747
293788
|
var columnsData = (_columnsRef$current = columnsRef.current) === null || _columnsRef$current === void 0 ? void 0 : _columnsRef$current.getColumns();
|
|
@@ -293752,19 +293793,47 @@
|
|
|
293752
293793
|
var filterStateValue = (_filterRef$current2 = filterRef.current) === null || _filterRef$current2 === void 0 ? void 0 : _filterRef$current2.getFilterStateValue();
|
|
293753
293794
|
var cardData = ((_cardRef$current = cardRef.current) === null || _cardRef$current === void 0 ? void 0 : _cardRef$current.getLocalFilter()) || [];
|
|
293754
293795
|
var cardStateValue = ((_cardRef$current2 = cardRef.current) === null || _cardRef$current2 === void 0 ? void 0 : _cardRef$current2.getFilterStateValue()) || {};
|
|
293755
|
-
|
|
293756
|
-
(_props$
|
|
293757
|
-
|
|
293758
|
-
|
|
293759
|
-
|
|
293760
|
-
|
|
293761
|
-
|
|
293762
|
-
|
|
293763
|
-
|
|
293764
|
-
|
|
293765
|
-
|
|
293766
|
-
|
|
293767
|
-
|
|
293796
|
+
|
|
293797
|
+
if (cardData.length > (((_props$recommendNumOb = props.recommendNumObj) === null || _props$recommendNumOb === void 0 ? void 0 : _props$recommendNumOb.card) || 10)) {
|
|
293798
|
+
LMModal.confirm({
|
|
293799
|
+
title: '当前选择的卡片字段数量会导致卡片高度过高,是否继续?',
|
|
293800
|
+
icon: /*#__PURE__*/React__default['default'].createElement(ExclamationCircleOutlined$2, null),
|
|
293801
|
+
content: '',
|
|
293802
|
+
okText: '确认',
|
|
293803
|
+
cancelText: '取消',
|
|
293804
|
+
onOk: function onOk() {
|
|
293805
|
+
var _props$onSave;
|
|
293806
|
+
|
|
293807
|
+
(_props$onSave = props.onSave) === null || _props$onSave === void 0 ? void 0 : _props$onSave.call(props, Object.assign({
|
|
293808
|
+
columnsData: columnsData,
|
|
293809
|
+
ColStateValue: ColStateValue,
|
|
293810
|
+
filterData: filterData,
|
|
293811
|
+
filterStateValue: filterStateValue,
|
|
293812
|
+
size: lmOptions.size,
|
|
293813
|
+
saveSetting: saveSetting
|
|
293814
|
+
}, lmOptions.card.length ? {
|
|
293815
|
+
cardData: cardData,
|
|
293816
|
+
cardStateValue: cardStateValue
|
|
293817
|
+
} : {}));
|
|
293818
|
+
setVisible(false);
|
|
293819
|
+
}
|
|
293820
|
+
});
|
|
293821
|
+
} else {
|
|
293822
|
+
var _props$onSave2;
|
|
293823
|
+
|
|
293824
|
+
(_props$onSave2 = props.onSave) === null || _props$onSave2 === void 0 ? void 0 : _props$onSave2.call(props, Object.assign({
|
|
293825
|
+
columnsData: columnsData,
|
|
293826
|
+
ColStateValue: ColStateValue,
|
|
293827
|
+
filterData: filterData,
|
|
293828
|
+
filterStateValue: filterStateValue,
|
|
293829
|
+
size: lmOptions.size,
|
|
293830
|
+
saveSetting: saveSetting
|
|
293831
|
+
}, lmOptions.card.length ? {
|
|
293832
|
+
cardData: cardData,
|
|
293833
|
+
cardStateValue: cardStateValue
|
|
293834
|
+
} : {}));
|
|
293835
|
+
setVisible(false);
|
|
293836
|
+
}
|
|
293768
293837
|
};
|
|
293769
293838
|
|
|
293770
293839
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Tooltip$2, _objectSpread({}, tooltip), /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
@@ -293811,7 +293880,8 @@
|
|
|
293811
293880
|
forceRender: true
|
|
293812
293881
|
}, /*#__PURE__*/React__default['default'].createElement(FilterSort, {
|
|
293813
293882
|
ref: cardRef,
|
|
293814
|
-
card: lmOptions.card
|
|
293883
|
+
card: lmOptions.card,
|
|
293884
|
+
showPromptNum: ((_props$recommendNumOb2 = props.recommendNumObj) === null || _props$recommendNumOb2 === void 0 ? void 0 : _props$recommendNumOb2.card) || 10
|
|
293815
293885
|
})), /*#__PURE__*/React__default['default'].createElement(TabPane$4, {
|
|
293816
293886
|
tab: "\u5176\u4ED6",
|
|
293817
293887
|
key: "3",
|
|
@@ -311979,6 +312049,32 @@
|
|
|
311979
312049
|
|
|
311980
312050
|
return ['Collapse row', 'Expand row'].includes(children === null || children === void 0 ? void 0 : (_children$ = children[0]) === null || _children$ === void 0 ? void 0 : (_children$$props = _children$.props) === null || _children$$props === void 0 ? void 0 : (_children$$props$chil = _children$$props.children) === null || _children$$props$chil === void 0 ? void 0 : (_children$$props$chil2 = _children$$props$chil[1]) === null || _children$$props$chil2 === void 0 ? void 0 : (_children$$props$chil3 = _children$$props$chil2.props) === null || _children$$props$chil3 === void 0 ? void 0 : _children$$props$chil3['aria-label']);
|
|
311981
312051
|
}
|
|
312052
|
+
function checkRowKeyByDataSource(dataSource, rowKey) {
|
|
312053
|
+
var addRowKey = function addRowKey(children, pkey) {
|
|
312054
|
+
return children === null || children === void 0 ? void 0 : children.map(function (item, index) {
|
|
312055
|
+
if (item.children) {
|
|
312056
|
+
var _objectSpread2;
|
|
312057
|
+
|
|
312058
|
+
var rchildren = addRowKey(item.children, "".concat(pkey, "_").concat(index + 1));
|
|
312059
|
+
return _objectSpread(_objectSpread({}, item), {}, (_objectSpread2 = {}, _defineProperty$1(_objectSpread2, rowKey, item[rowKey] || "".concat(pkey, "_").concat(index + 1)), _defineProperty$1(_objectSpread2, "children", rchildren), _objectSpread2));
|
|
312060
|
+
}
|
|
312061
|
+
|
|
312062
|
+
return _objectSpread(_objectSpread({}, item), {}, _defineProperty$1({}, rowKey, item[rowKey] || "".concat(pkey, "_").concat(index + 1)));
|
|
312063
|
+
});
|
|
312064
|
+
};
|
|
312065
|
+
|
|
312066
|
+
var res = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (v, idx) {
|
|
312067
|
+
if (v.children) {
|
|
312068
|
+
var _objectSpread4;
|
|
312069
|
+
|
|
312070
|
+
var rchildren = addRowKey(v.children, v[rowKey] || "v".concat(idx + 1));
|
|
312071
|
+
return _objectSpread(_objectSpread({}, v), {}, (_objectSpread4 = {}, _defineProperty$1(_objectSpread4, rowKey, v[rowKey] || "v".concat(idx + 1)), _defineProperty$1(_objectSpread4, "children", rchildren), _objectSpread4));
|
|
312072
|
+
}
|
|
312073
|
+
|
|
312074
|
+
return _objectSpread(_objectSpread({}, v), {}, _defineProperty$1({}, rowKey, v[rowKey] || "v".concat(idx + 1)));
|
|
312075
|
+
});
|
|
312076
|
+
return res;
|
|
312077
|
+
}
|
|
311982
312078
|
|
|
311983
312079
|
var _excluded$2S = ["index"],
|
|
311984
312080
|
_excluded2$I = ["index"],
|
|
@@ -312161,7 +312257,8 @@
|
|
|
312161
312257
|
style: {
|
|
312162
312258
|
display: 'flex',
|
|
312163
312259
|
alignItems: 'center',
|
|
312164
|
-
justifyContent: '
|
|
312260
|
+
justifyContent: 'flex-start',
|
|
312261
|
+
marginLeft: '-4px'
|
|
312165
312262
|
}
|
|
312166
312263
|
}, options.includes('delete') && /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
312167
312264
|
type: "link",
|
|
@@ -312606,35 +312703,39 @@
|
|
|
312606
312703
|
recordCreatorProps = props.recordCreatorProps,
|
|
312607
312704
|
_props$shouldUpdate = props.shouldUpdate,
|
|
312608
312705
|
shouldUpdate = _props$shouldUpdate === void 0 ? false : _props$shouldUpdate,
|
|
312609
|
-
resetProps = _objectWithoutProperties$1(props, _excluded6);
|
|
312706
|
+
resetProps = _objectWithoutProperties$1(props, _excluded6); // const [dataSource, setDataSource] = useState([]);
|
|
312707
|
+
|
|
312708
|
+
|
|
312709
|
+
var _useControllableValue = useControllableValue({
|
|
312710
|
+
value: checkRowKeyByDataSource(props.value, _rowKey),
|
|
312711
|
+
onChange: props.onChange
|
|
312712
|
+
}),
|
|
312713
|
+
_useControllableValue2 = _slicedToArray$1(_useControllableValue, 2),
|
|
312714
|
+
dataSource = _useControllableValue2[0],
|
|
312715
|
+
setDataSource = _useControllableValue2[1]; // const [count, setCount] = useState(0);
|
|
312610
312716
|
|
|
312611
|
-
var _useState5 = React.useState([]),
|
|
312612
|
-
_useState6 = _slicedToArray$1(_useState5, 2),
|
|
312613
|
-
dataSource = _useState6[0],
|
|
312614
|
-
setDataSource = _useState6[1]; // const [count, setCount] = useState(0);
|
|
312615
312717
|
|
|
312718
|
+
var _useState5 = React.useState({}),
|
|
312719
|
+
_useState6 = _slicedToArray$1(_useState5, 2),
|
|
312720
|
+
_valid = _useState6[0],
|
|
312721
|
+
setValid = _useState6[1];
|
|
312616
312722
|
|
|
312617
|
-
var _useState7 = React.useState(
|
|
312723
|
+
var _useState7 = React.useState([]),
|
|
312618
312724
|
_useState8 = _slicedToArray$1(_useState7, 2),
|
|
312619
|
-
|
|
312620
|
-
|
|
312725
|
+
localRowSelectList = _useState8[0],
|
|
312726
|
+
setLocalRowSelectList = _useState8[1];
|
|
312621
312727
|
|
|
312622
312728
|
var _useState9 = React.useState([]),
|
|
312623
312729
|
_useState10 = _slicedToArray$1(_useState9, 2),
|
|
312624
|
-
|
|
312625
|
-
|
|
312626
|
-
|
|
312627
|
-
var _useState11 = React.useState([]),
|
|
312628
|
-
_useState12 = _slicedToArray$1(_useState11, 2),
|
|
312629
|
-
sortEditTable = _useState12[0],
|
|
312630
|
-
setCallBackFalg = _useState12[1];
|
|
312730
|
+
sortEditTable = _useState10[0],
|
|
312731
|
+
setCallBackFalg = _useState10[1];
|
|
312631
312732
|
/** 当前展开的列 */
|
|
312632
312733
|
|
|
312633
312734
|
|
|
312634
|
-
var
|
|
312635
|
-
|
|
312636
|
-
expandedRowKeys =
|
|
312637
|
-
setExpandedRowKeys =
|
|
312735
|
+
var _useState11 = React.useState([]),
|
|
312736
|
+
_useState12 = _slicedToArray$1(_useState11, 2),
|
|
312737
|
+
expandedRowKeys = _useState12[0],
|
|
312738
|
+
setExpandedRowKeys = _useState12[1];
|
|
312638
312739
|
|
|
312639
312740
|
var dataSourceRef = React.useRef([]);
|
|
312640
312741
|
var sortDataSorceRef = React.useRef([]);
|
|
@@ -312649,12 +312750,7 @@
|
|
|
312649
312750
|
var newIndex = cloneArr.findIndex(function (v) {
|
|
312650
312751
|
return v[_rowKey] === over;
|
|
312651
312752
|
});
|
|
312652
|
-
|
|
312653
|
-
if (onChange) {
|
|
312654
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(arrayMove(cloneArr, oldIndex, newIndex));
|
|
312655
|
-
} else {
|
|
312656
|
-
setDataSource(arrayMove(cloneArr, oldIndex, newIndex));
|
|
312657
|
-
}
|
|
312753
|
+
setDataSource(arrayMove(cloneArr, oldIndex, newIndex));
|
|
312658
312754
|
};
|
|
312659
312755
|
|
|
312660
312756
|
var onColSortEnd = function onColSortEnd(active, over) {
|
|
@@ -312677,8 +312773,9 @@
|
|
|
312677
312773
|
var handleDelete = function handleDelete(key) {
|
|
312678
312774
|
var nValue = dataSource.filter(function (item) {
|
|
312679
312775
|
return item[_rowKey] !== key;
|
|
312680
|
-
});
|
|
312681
|
-
|
|
312776
|
+
}); // onChange?.(nValue)
|
|
312777
|
+
|
|
312778
|
+
setDataSource(nValue);
|
|
312682
312779
|
};
|
|
312683
312780
|
/** 点击添加按钮添加 */
|
|
312684
312781
|
|
|
@@ -312690,12 +312787,12 @@
|
|
|
312690
312787
|
var res = fn(dataSourceRef.current, function (draft) {
|
|
312691
312788
|
draft.push(_objectSpread(_defineProperty$1({}, _rowKey, "".concat(Date.now())), addDataInfo || {}));
|
|
312692
312789
|
});
|
|
312693
|
-
setDataSource(res);
|
|
312694
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
312790
|
+
setDataSource(res); // onChange?.(res)
|
|
312695
312791
|
};
|
|
312696
312792
|
|
|
312697
312793
|
React.useEffect(function () {
|
|
312698
312794
|
dataSourceRef.current = dataSource;
|
|
312795
|
+
deepDataSourceRef.current = deepDataSourcePreKeys(dataSource, _rowKey);
|
|
312699
312796
|
|
|
312700
312797
|
if (sortOpen) {
|
|
312701
312798
|
var _sortDataSorceRef$cur;
|
|
@@ -312802,12 +312899,7 @@
|
|
|
312802
312899
|
}
|
|
312803
312900
|
}
|
|
312804
312901
|
});
|
|
312805
|
-
|
|
312806
|
-
if (onChange) {
|
|
312807
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
312808
|
-
} else {
|
|
312809
|
-
setDataSource(res);
|
|
312810
|
-
}
|
|
312902
|
+
setDataSource(res);
|
|
312811
312903
|
};
|
|
312812
312904
|
|
|
312813
312905
|
var reWriteOriginSource = function reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue) {
|
|
@@ -312848,12 +312940,7 @@
|
|
|
312848
312940
|
};
|
|
312849
312941
|
|
|
312850
312942
|
var res = filter(dataSource, key);
|
|
312851
|
-
|
|
312852
|
-
if (onChange) {
|
|
312853
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
312854
|
-
} else {
|
|
312855
|
-
setDataSource(res);
|
|
312856
|
-
}
|
|
312943
|
+
setDataSource(res);
|
|
312857
312944
|
} else {
|
|
312858
312945
|
var _dataSourceRef$curren;
|
|
312859
312946
|
|
|
@@ -312871,11 +312958,7 @@
|
|
|
312871
312958
|
}
|
|
312872
312959
|
});
|
|
312873
312960
|
|
|
312874
|
-
|
|
312875
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_res);
|
|
312876
|
-
} else {
|
|
312877
|
-
setDataSource(_res);
|
|
312878
|
-
}
|
|
312961
|
+
setDataSource(_res);
|
|
312879
312962
|
}
|
|
312880
312963
|
};
|
|
312881
312964
|
/** 快捷添加 */
|
|
@@ -312910,12 +312993,7 @@
|
|
|
312910
312993
|
}
|
|
312911
312994
|
}
|
|
312912
312995
|
});
|
|
312913
|
-
|
|
312914
|
-
if (onChange) {
|
|
312915
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
312916
|
-
} else {
|
|
312917
|
-
setDataSource(res);
|
|
312918
|
-
}
|
|
312996
|
+
setDataSource(res);
|
|
312919
312997
|
};
|
|
312920
312998
|
|
|
312921
312999
|
var handleCopy = function handleCopy(key, value) {
|
|
@@ -312924,12 +313002,7 @@
|
|
|
312924
313002
|
return item[key] = value;
|
|
312925
313003
|
});
|
|
312926
313004
|
});
|
|
312927
|
-
|
|
312928
|
-
if (onChange) {
|
|
312929
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
312930
|
-
} else {
|
|
312931
|
-
setDataSource(res);
|
|
312932
|
-
}
|
|
313005
|
+
setDataSource(res);
|
|
312933
313006
|
};
|
|
312934
313007
|
/** 判断columne中有没有带optionOnly参数 */
|
|
312935
313008
|
|
|
@@ -313004,6 +313077,7 @@
|
|
|
313004
313077
|
width: 68,
|
|
313005
313078
|
fixed: 'right',
|
|
313006
313079
|
editable: 'lm_edit_opetate',
|
|
313080
|
+
className: 'lm_edit_opetate',
|
|
313007
313081
|
componentProps: {
|
|
313008
313082
|
options: Array.isArray(useQuickOpetate) ? useQuickOpetate : ['add', 'delete']
|
|
313009
313083
|
}
|
|
@@ -313153,34 +313227,6 @@
|
|
|
313153
313227
|
components: component
|
|
313154
313228
|
}, resetProps);
|
|
313155
313229
|
}, [resultColumns, dataSource, sortOpen, colSortOpen, size]);
|
|
313156
|
-
React.useEffect(function () {
|
|
313157
|
-
// setDataSource(defaultData?.map((v, idx) => ({ ...v, [rowKey]: v[rowKey] || `v${idx + 1}` })))
|
|
313158
|
-
var addRowKey = function addRowKey(children, pkey) {
|
|
313159
|
-
return children === null || children === void 0 ? void 0 : children.map(function (item, index) {
|
|
313160
|
-
if (item.children) {
|
|
313161
|
-
var _objectSpread6;
|
|
313162
|
-
|
|
313163
|
-
var rchildren = addRowKey(item.children, "".concat(pkey, "_").concat(index + 1));
|
|
313164
|
-
return _objectSpread(_objectSpread({}, item), {}, (_objectSpread6 = {}, _defineProperty$1(_objectSpread6, _rowKey, item[_rowKey] || "".concat(pkey, "_").concat(index + 1)), _defineProperty$1(_objectSpread6, "children", rchildren), _objectSpread6));
|
|
313165
|
-
}
|
|
313166
|
-
|
|
313167
|
-
return _objectSpread(_objectSpread({}, item), {}, _defineProperty$1({}, _rowKey, item[_rowKey] || "".concat(pkey, "_").concat(index + 1)));
|
|
313168
|
-
});
|
|
313169
|
-
};
|
|
313170
|
-
|
|
313171
|
-
var res = defaultData === null || defaultData === void 0 ? void 0 : defaultData.map(function (v, idx) {
|
|
313172
|
-
if (v.children) {
|
|
313173
|
-
var _objectSpread8;
|
|
313174
|
-
|
|
313175
|
-
var rchildren = addRowKey(v.children, v[_rowKey] || "v".concat(idx + 1));
|
|
313176
|
-
return _objectSpread(_objectSpread({}, v), {}, (_objectSpread8 = {}, _defineProperty$1(_objectSpread8, _rowKey, v[_rowKey] || "v".concat(idx + 1)), _defineProperty$1(_objectSpread8, "children", rchildren), _objectSpread8));
|
|
313177
|
-
}
|
|
313178
|
-
|
|
313179
|
-
return _objectSpread(_objectSpread({}, v), {}, _defineProperty$1({}, _rowKey, v[_rowKey] || "v".concat(idx + 1)));
|
|
313180
|
-
});
|
|
313181
|
-
deepDataSourceRef.current = deepDataSourcePreKeys(res, _rowKey);
|
|
313182
|
-
setDataSource(res);
|
|
313183
|
-
}, [defaultData]);
|
|
313184
313230
|
React.useImperativeHandle(ref, function () {
|
|
313185
313231
|
return {
|
|
313186
313232
|
setRow: handleSave,
|
|
@@ -323943,10 +323989,12 @@
|
|
|
323943
323989
|
onClick: function onClick(e) {
|
|
323944
323990
|
return handleTranform(e, 'zoomIn');
|
|
323945
323991
|
}
|
|
323946
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
323947
|
-
type: "lmweb-a-icon_m_search1",
|
|
323992
|
+
}), /*#__PURE__*/React__default['default'].createElement(ZoomOutOutlined$2, {
|
|
323948
323993
|
onClick: function onClick(e) {
|
|
323949
323994
|
return handleTranform(e, 'zoomOut');
|
|
323995
|
+
},
|
|
323996
|
+
style: {
|
|
323997
|
+
fontSize: 22
|
|
323950
323998
|
}
|
|
323951
323999
|
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
323952
324000
|
type: "lmweb-undo",
|