linkmore-design 1.0.38 → 1.0.41
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/LmTable/ImgList/footer.d.ts +3 -1
- package/dist/LmTable/demos/custom.d.ts +2 -0
- package/dist/LmTable/demos/tableSort.d.ts +2 -0
- package/dist/Spin/demos/basic.d.ts +2 -0
- package/dist/Spin/demos/size.d.ts +2 -0
- package/dist/Spin/index.d.ts +7 -0
- package/dist/Spin/style/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1849 -88
- package/dist/index.umd.min.js +6 -14
- package/es/Button/style/style.css +4 -1
- package/es/CkFilter/style/style.css +2 -2
- package/es/CustomTableOption/index.js +8 -9
- package/es/Dropdown/index.js +10 -2
- package/es/EditTable/EditTable.js +6 -4
- package/es/IconFont/font/iconfont.css +105 -5
- package/es/IconFont/font/iconfont.js +16 -16
- package/es/IconFont/font/iconfont.ttf +0 -0
- package/es/IconFont/font/iconfont.woff +0 -0
- package/es/IconFont/font/iconfont.woff2 +0 -0
- package/es/LeftTable/style/style.css +1 -1
- package/es/LmTable/ImgList/footer.js +9 -7
- package/es/LmTable/ImgList/imgCell.js +3 -0
- package/es/LmTable/ImgList/imgTable.js +7 -2
- package/es/LmTable/Table.js +108 -13
- package/es/LmTable/style/style.css +435 -395
- package/es/Pagination/index.js +2 -1
- package/es/ProTable/style/style.css +0 -3
- package/es/Radio/style/style.css +3 -4
- package/es/Spin/index.d.ts +7 -0
- package/es/Spin/index.js +3 -0
- package/es/Spin/style/index.css +505 -0
- package/es/Spin/style/index.d.ts +1 -0
- package/es/Spin/style/index.js +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/Button/style/style.css +4 -1
- package/lib/CkFilter/style/style.css +2 -2
- package/lib/CustomTableOption/index.js +8 -9
- package/lib/Dropdown/index.js +10 -2
- package/lib/EditTable/EditTable.js +6 -4
- package/lib/IconFont/font/iconfont.css +105 -5
- package/lib/IconFont/font/iconfont.js +16 -16
- package/lib/IconFont/font/iconfont.ttf +0 -0
- package/lib/IconFont/font/iconfont.woff +0 -0
- package/lib/IconFont/font/iconfont.woff2 +0 -0
- package/lib/LeftTable/style/style.css +1 -1
- package/lib/LmTable/ImgList/footer.js +9 -7
- package/lib/LmTable/ImgList/imgCell.js +3 -0
- package/lib/LmTable/ImgList/imgTable.js +7 -2
- package/lib/LmTable/Table.js +108 -13
- package/lib/LmTable/style/style.css +435 -395
- package/lib/Pagination/index.js +2 -1
- package/lib/ProTable/style/style.css +0 -3
- package/lib/Radio/style/style.css +3 -4
- package/lib/Spin/index.d.ts +7 -0
- package/lib/Spin/index.js +15 -0
- package/lib/Spin/style/index.css +505 -0
- package/lib/Spin/style/index.d.ts +1 -0
- package/lib/Spin/style/index.js +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +9 -1
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd/es/button/style'), require('antd/es/button'), require('react'), require('antd/es/card/style'), require('antd/es/card'), require('antd/es/cascader/style'), require('antd/es/cascader'), require('antd/es/checkbox/style'), require('antd/es/checkbox'), require('antd/es/date-picker/style'), require('antd/es/date-picker'), require('react-dom'), require('antd/es/drawer/style'), require('antd/es/drawer'), require('antd/es/space/style'), require('antd/es/space'), require('antd/es/tag/style'), require('antd/es/tag'), require('antd/es/form/style'), require('antd/es/form'), require('antd/es/input/style'), require('antd/es/input'), require('antd/es/dropdown/style'), require('antd/es/dropdown'), require('antd/es/table/style'), require('antd/es/table'), require('antd/es/radio/style'), require('antd/es/radio'), require('antd/es/select/style'), require('antd/es/select'), require('antd/es/input-number/style'), require('antd/es/input-number'), require('antd/es/spin/style'), require('antd/es/spin'), require('antd/es/message/style'), require('antd/es/message'), require('antd/es/image/style'), require('antd/es/image'), require('antd/es/empty/style'), require('antd/es/empty'), require('antd/es/modal/style'), require('antd/es/modal'), require('antd/es/row/style'), require('antd/es/row'), require('antd/es/col/style'), require('antd/es/col'), require('antd/es/divider/style'), require('antd/es/divider'), require('antd/es/list/style'), require('antd/es/list'), require('antd/es/popover/style'), require('antd/es/popover'), require('antd/es/tree/style'), require('antd/es/tree'), require('antd/es/time-picker/style'), require('antd/es/time-picker'), require('antd/es/config-provider/style'), require('antd/es/config-provider'), require('antd/es/avatar/style'), require('antd/es/avatar'), require('react/jsx-runtime'), require('antd/es/locale/zh_CN'), require('antd/es/result/style'), require('antd/es/result'), require('antd/es/tooltip/style'), require('antd/es/tooltip'), require('antd/es/typography/style'), require('antd/es/typography'), require('antd/es/popconfirm/style'), require('antd/es/popconfirm'), require('antd/es/table/hooks/useLazyKVMap'), require('antd/es/badge/style'), require('antd/es/badge'), require('antd/es/progress/style'), require('antd/es/progress'), require('antd/es/rate/style'), require('antd/es/rate'), require('antd/es/switch/style'), require('antd/es/switch'), require('antd/es/tree-select/style'), require('antd/es/tree-select'), require('antd/es/tabs/style'), require('antd/es/tabs'), require('antd/es/grid/style'), require('antd/es/grid'), require('antd/es/steps/style'), require('antd/es/steps'), require('antd/es/upload/style'), require('antd/es/upload'), require('antd/es/alert/style'), require('antd/es/alert'), require('antd/es/menu/style'), require('antd/es/menu'), require('antd/es/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'antd/es/button/style', 'antd/es/button', 'react', 'antd/es/card/style', 'antd/es/card', 'antd/es/cascader/style', 'antd/es/cascader', 'antd/es/checkbox/style', 'antd/es/checkbox', 'antd/es/date-picker/style', 'antd/es/date-picker', 'react-dom', 'antd/es/drawer/style', 'antd/es/drawer', 'antd/es/space/style', 'antd/es/space', 'antd/es/tag/style', 'antd/es/tag', 'antd/es/form/style', 'antd/es/form', 'antd/es/input/style', 'antd/es/input', 'antd/es/dropdown/style', 'antd/es/dropdown', 'antd/es/table/style', 'antd/es/table', 'antd/es/radio/style', 'antd/es/radio', 'antd/es/select/style', 'antd/es/select', 'antd/es/input-number/style', 'antd/es/input-number', 'antd/es/spin/style', 'antd/es/spin', 'antd/es/message/style', 'antd/es/message', 'antd/es/image/style', 'antd/es/image', 'antd/es/empty/style', 'antd/es/empty', 'antd/es/modal/style', 'antd/es/modal', 'antd/es/row/style', 'antd/es/row', 'antd/es/col/style', 'antd/es/col', 'antd/es/divider/style', 'antd/es/divider', 'antd/es/list/style', 'antd/es/list', 'antd/es/popover/style', 'antd/es/popover', 'antd/es/tree/style', 'antd/es/tree', 'antd/es/time-picker/style', 'antd/es/time-picker', 'antd/es/config-provider/style', 'antd/es/config-provider', 'antd/es/avatar/style', 'antd/es/avatar', 'react/jsx-runtime', 'antd/es/locale/zh_CN', 'antd/es/result/style', 'antd/es/result', 'antd/es/tooltip/style', 'antd/es/tooltip', 'antd/es/typography/style', 'antd/es/typography', 'antd/es/popconfirm/style', 'antd/es/popconfirm', 'antd/es/table/hooks/useLazyKVMap', 'antd/es/badge/style', 'antd/es/badge', 'antd/es/progress/style', 'antd/es/progress', 'antd/es/rate/style', 'antd/es/rate', 'antd/es/switch/style', 'antd/es/switch', 'antd/es/tree-select/style', 'antd/es/tree-select', 'antd/es/tabs/style', 'antd/es/tabs', 'antd/es/grid/style', 'antd/es/grid', 'antd/es/steps/style', 'antd/es/steps', 'antd/es/upload/style', 'antd/es/upload', 'antd/es/alert/style', 'antd/es/alert', 'antd/es/menu/style', 'antd/es/menu', 'antd/es/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.linkmoreDesign = {}, null, global._Button, global.React, null, global._Card, null, global._Cascader, null, global._Checkbox, null, global._DatePicker, global.require$$2, null, global._Drawer, null, global._Space, null, global._Tag, null, global._Form, null, global._Input, null, global._Dropdown, null, global._Table, null, global._Radio, null, global._Select, null, global._InputNumber, null, global._Spin, null, global._message, null, global._Image, null, global._Empty, null, global._Modal, null, global._Row, null, global._Col, null, global._Divider, null, global._List, null, global._Popover, null, global._Tree, null, global._TimePicker, null, global._ConfigProvider, null, global._Avatar, global.jsxRuntime, global.zh_CN, null, global._Result, null, global._Tooltip, null, global._Typography, null, global._Popconfirm, global.useLazyKVMap, null, global._Badge, null, global._Progress, null, global._Rate, null, global._Switch, null, global._TreeSelect, null, global._Tabs, null, global._Grid, null, global._Steps, null, global._Upload, null, global._Alert, null, global._Menu, null, global.
|
|
5
|
-
}(this, (function (exports, style, _Button, React, style$1, _Card, style$2, _Cascader, style$3, _Checkbox, style$4, _DatePicker, require$$2, style$5, _Drawer, style$6, _Space, style$7, _Tag, style$8, _Form, style$9, _Input, style$a, _Dropdown, style$b, _Table, style$c, _Radio, style$d, _Select, style$e, _InputNumber, style$f, _Spin, style$g, _message, style$h, _Image, style$i, _Empty, style$j, _Modal, style$k, _Row, style$l, _Col, style$m, _Divider, style$n, _List, style$o, _Popover, style$p, _Tree, style$q, _TimePicker, style$r, _ConfigProvider, style$s, _Avatar, jsxRuntime, zh_CN, style$t, _Result, style$u, _Tooltip, style$v, _Typography, style$w, _Popconfirm, useLazyKVMap, style$x, _Badge, style$y, _Progress, style$z, _Rate, style$A, _Switch, style$B, _TreeSelect, style$C, _Tabs, style$D, _Grid, style$E, _Steps, style$F, _Upload, style$G, _Alert, style$H, _Menu, style$I,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('antd/es/button/style'), require('antd/es/button'), require('react'), require('antd/es/card/style'), require('antd/es/card'), require('antd/es/cascader/style'), require('antd/es/cascader'), require('antd/es/checkbox/style'), require('antd/es/checkbox'), require('antd/es/date-picker/style'), require('antd/es/date-picker'), require('react-dom'), require('antd/es/drawer/style'), require('antd/es/drawer'), require('antd/es/space/style'), require('antd/es/space'), require('antd/es/tag/style'), require('antd/es/tag'), require('antd/es/form/style'), require('antd/es/form'), require('antd/es/input/style'), require('antd/es/input'), require('antd/es/dropdown/style'), require('antd/es/dropdown'), require('antd/es/table/style'), require('antd/es/table'), require('antd/es/radio/style'), require('antd/es/radio'), require('antd/es/select/style'), require('antd/es/select'), require('antd/es/input-number/style'), require('antd/es/input-number'), require('antd/es/spin/style'), require('antd/es/spin'), require('antd/es/message/style'), require('antd/es/message'), require('antd/es/image/style'), require('antd/es/image'), require('antd/es/empty/style'), require('antd/es/empty'), require('antd/es/modal/style'), require('antd/es/modal'), require('antd/es/row/style'), require('antd/es/row'), require('antd/es/col/style'), require('antd/es/col'), require('antd/es/divider/style'), require('antd/es/divider'), require('antd/es/list/style'), require('antd/es/list'), require('antd/es/popover/style'), require('antd/es/popover'), require('antd/es/tree/style'), require('antd/es/tree'), require('antd/es/time-picker/style'), require('antd/es/time-picker'), require('antd/es/config-provider/style'), require('antd/es/config-provider'), require('antd/es/avatar/style'), require('antd/es/avatar'), require('react/jsx-runtime'), require('antd/es/locale/zh_CN'), require('antd/es/result/style'), require('antd/es/result'), require('antd/es/tooltip/style'), require('antd/es/tooltip'), require('antd/es/typography/style'), require('antd/es/typography'), require('antd/es/popconfirm/style'), require('antd/es/popconfirm'), require('antd/es/table/hooks/useLazyKVMap'), require('antd/es/badge/style'), require('antd/es/badge'), require('antd/es/progress/style'), require('antd/es/progress'), require('antd/es/rate/style'), require('antd/es/rate'), require('antd/es/switch/style'), require('antd/es/switch'), require('antd/es/tree-select/style'), require('antd/es/tree-select'), require('antd/es/tabs/style'), require('antd/es/tabs'), require('antd/es/grid/style'), require('antd/es/grid'), require('antd/es/steps/style'), require('antd/es/steps'), require('antd/es/upload/style'), require('antd/es/upload'), require('antd/es/alert/style'), require('antd/es/alert'), require('antd/es/menu/style'), require('antd/es/menu'), require('antd/es/notification/style'), require('antd/es/notification'), require('antd/es/pagination/style'), require('antd/es/pagination'), require('antd/lib/form/hooks/useFormInstance'), require('antd/lib/form/context'), require('antd/lib/form/Form')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'antd/es/button/style', 'antd/es/button', 'react', 'antd/es/card/style', 'antd/es/card', 'antd/es/cascader/style', 'antd/es/cascader', 'antd/es/checkbox/style', 'antd/es/checkbox', 'antd/es/date-picker/style', 'antd/es/date-picker', 'react-dom', 'antd/es/drawer/style', 'antd/es/drawer', 'antd/es/space/style', 'antd/es/space', 'antd/es/tag/style', 'antd/es/tag', 'antd/es/form/style', 'antd/es/form', 'antd/es/input/style', 'antd/es/input', 'antd/es/dropdown/style', 'antd/es/dropdown', 'antd/es/table/style', 'antd/es/table', 'antd/es/radio/style', 'antd/es/radio', 'antd/es/select/style', 'antd/es/select', 'antd/es/input-number/style', 'antd/es/input-number', 'antd/es/spin/style', 'antd/es/spin', 'antd/es/message/style', 'antd/es/message', 'antd/es/image/style', 'antd/es/image', 'antd/es/empty/style', 'antd/es/empty', 'antd/es/modal/style', 'antd/es/modal', 'antd/es/row/style', 'antd/es/row', 'antd/es/col/style', 'antd/es/col', 'antd/es/divider/style', 'antd/es/divider', 'antd/es/list/style', 'antd/es/list', 'antd/es/popover/style', 'antd/es/popover', 'antd/es/tree/style', 'antd/es/tree', 'antd/es/time-picker/style', 'antd/es/time-picker', 'antd/es/config-provider/style', 'antd/es/config-provider', 'antd/es/avatar/style', 'antd/es/avatar', 'react/jsx-runtime', 'antd/es/locale/zh_CN', 'antd/es/result/style', 'antd/es/result', 'antd/es/tooltip/style', 'antd/es/tooltip', 'antd/es/typography/style', 'antd/es/typography', 'antd/es/popconfirm/style', 'antd/es/popconfirm', 'antd/es/table/hooks/useLazyKVMap', 'antd/es/badge/style', 'antd/es/badge', 'antd/es/progress/style', 'antd/es/progress', 'antd/es/rate/style', 'antd/es/rate', 'antd/es/switch/style', 'antd/es/switch', 'antd/es/tree-select/style', 'antd/es/tree-select', 'antd/es/tabs/style', 'antd/es/tabs', 'antd/es/grid/style', 'antd/es/grid', 'antd/es/steps/style', 'antd/es/steps', 'antd/es/upload/style', 'antd/es/upload', 'antd/es/alert/style', 'antd/es/alert', 'antd/es/menu/style', 'antd/es/menu', 'antd/es/notification/style', 'antd/es/notification', 'antd/es/pagination/style', 'antd/es/pagination', 'antd/lib/form/hooks/useFormInstance', 'antd/lib/form/context', 'antd/lib/form/Form'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.linkmoreDesign = {}, null, global._Button, global.React, null, global._Card, null, global._Cascader, null, global._Checkbox, null, global._DatePicker, global.require$$2, null, global._Drawer, null, global._Space, null, global._Tag, null, global._Form, null, global._Input, null, global._Dropdown, null, global._Table, null, global._Radio, null, global._Select, null, global._InputNumber, null, global._Spin, null, global._message, null, global._Image, null, global._Empty, null, global._Modal, null, global._Row, null, global._Col, null, global._Divider, null, global._List, null, global._Popover, null, global._Tree, null, global._TimePicker, null, global._ConfigProvider, null, global._Avatar, global.jsxRuntime, global.zh_CN, null, global._Result, null, global._Tooltip, null, global._Typography, null, global._Popconfirm, global.useLazyKVMap, null, global._Badge, null, global._Progress, null, global._Rate, null, global._Switch, null, global._TreeSelect, null, global._Tabs, null, global._Grid, null, global._Steps, null, global._Upload, null, global._Alert, null, global._Menu, null, global._notification, null, global._Pagination, global.useFormInstance, global.context$2, global.Form$2));
|
|
5
|
+
}(this, (function (exports, style, _Button, React, style$1, _Card, style$2, _Cascader, style$3, _Checkbox, style$4, _DatePicker, require$$2, style$5, _Drawer, style$6, _Space, style$7, _Tag, style$8, _Form, style$9, _Input, style$a, _Dropdown, style$b, _Table, style$c, _Radio, style$d, _Select, style$e, _InputNumber, style$f, _Spin, style$g, _message, style$h, _Image, style$i, _Empty, style$j, _Modal, style$k, _Row, style$l, _Col, style$m, _Divider, style$n, _List, style$o, _Popover, style$p, _Tree, style$q, _TimePicker, style$r, _ConfigProvider, style$s, _Avatar, jsxRuntime, zh_CN, style$t, _Result, style$u, _Tooltip, style$v, _Typography, style$w, _Popconfirm, useLazyKVMap, style$x, _Badge, style$y, _Progress, style$z, _Rate, style$A, _Switch, style$B, _TreeSelect, style$C, _Tabs, style$D, _Grid, style$E, _Steps, style$F, _Upload, style$G, _Alert, style$H, _Menu, style$I, _notification, style$J, _Pagination, useFormInstance, context$2, Form$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
var _Upload__default = /*#__PURE__*/_interopDefaultLegacy(_Upload);
|
|
55
55
|
var _Alert__default = /*#__PURE__*/_interopDefaultLegacy(_Alert);
|
|
56
56
|
var _Menu__default = /*#__PURE__*/_interopDefaultLegacy(_Menu);
|
|
57
|
-
var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
|
|
58
57
|
var _notification__default = /*#__PURE__*/_interopDefaultLegacy(_notification);
|
|
58
|
+
var _Pagination__default = /*#__PURE__*/_interopDefaultLegacy(_Pagination);
|
|
59
59
|
var useFormInstance__default = /*#__PURE__*/_interopDefaultLegacy(useFormInstance);
|
|
60
60
|
|
|
61
61
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -2238,6 +2238,19 @@
|
|
|
2238
2238
|
LoadingOutlined$1.displayName = 'LoadingOutlined';
|
|
2239
2239
|
var LoadingOutlined$2 = /*#__PURE__*/React.forwardRef(LoadingOutlined$1);
|
|
2240
2240
|
|
|
2241
|
+
// This icon file is generated automatically.
|
|
2242
|
+
var MenuOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" } }] }, "name": "menu", "theme": "outlined" };
|
|
2243
|
+
|
|
2244
|
+
var MenuOutlined$1 = function MenuOutlined$1(props, ref) {
|
|
2245
|
+
return /*#__PURE__*/React.createElement(Icon, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2246
|
+
ref: ref,
|
|
2247
|
+
icon: MenuOutlined
|
|
2248
|
+
}));
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
MenuOutlined$1.displayName = 'MenuOutlined';
|
|
2252
|
+
var MenuOutlined$2 = /*#__PURE__*/React.forwardRef(MenuOutlined$1);
|
|
2253
|
+
|
|
2241
2254
|
// This icon file is generated automatically.
|
|
2242
2255
|
var MessageOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" } }] }, "name": "message", "theme": "outlined" };
|
|
2243
2256
|
|
|
@@ -2632,7 +2645,7 @@
|
|
|
2632
2645
|
return Iconfont;
|
|
2633
2646
|
}
|
|
2634
2647
|
|
|
2635
|
-
var IconFont
|
|
2648
|
+
var IconFont = create({
|
|
2636
2649
|
// scriptUrl: '//at.alicdn.com/t/font_2966019_8aij0300kjo.js', // 在 iconfont.cn 上生成
|
|
2637
2650
|
scriptUrl: require('./font/iconfont.js')
|
|
2638
2651
|
});
|
|
@@ -29843,7 +29856,7 @@
|
|
|
29843
29856
|
className: "filter_item-content"
|
|
29844
29857
|
}, virItem.title), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29845
29858
|
className: "filter_item_operate"
|
|
29846
|
-
}, isTop(virItem) && /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
29859
|
+
}, isTop(virItem) && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
29847
29860
|
type: "lmweb-vertical-align-top",
|
|
29848
29861
|
className: "hover_show icon_top",
|
|
29849
29862
|
onClick: function onClick(e) {
|
|
@@ -30120,7 +30133,7 @@
|
|
|
30120
30133
|
className: "filter_item-content"
|
|
30121
30134
|
}, item.label), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30122
30135
|
className: "filter_item_operate"
|
|
30123
|
-
}, item.default ? '默认' : /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
30136
|
+
}, item.default ? '默认' : /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
30124
30137
|
type: "lmweb-edit",
|
|
30125
30138
|
className: "hover_show icon_top",
|
|
30126
30139
|
onClick: function onClick(e) {
|
|
@@ -30134,7 +30147,7 @@
|
|
|
30134
30147
|
}
|
|
30135
30148
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30136
30149
|
className: "filter_item-content"
|
|
30137
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
30150
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
30138
30151
|
type: "lmweb-plus"
|
|
30139
30152
|
}), "\u65B0\u589E\u81EA\u5B9A\u4E49\u67E5\u8BE2")), !filters.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty, null)));
|
|
30140
30153
|
}; // 下拉多选过滤器: 要过滤的数据, 当前选中项, 触发过滤, 过滤前的数据
|
|
@@ -30449,7 +30462,7 @@
|
|
|
30449
30462
|
|
|
30450
30463
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_DatePicker__default['default'].RangePicker, _extends({
|
|
30451
30464
|
picker: "date",
|
|
30452
|
-
separator: /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
30465
|
+
separator: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
30453
30466
|
type: "lmweb-swap-right",
|
|
30454
30467
|
style: {
|
|
30455
30468
|
color: 'var(--text-color)'
|
|
@@ -30621,7 +30634,7 @@
|
|
|
30621
30634
|
className: "filter_item_value"
|
|
30622
30635
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30623
30636
|
className: "checked"
|
|
30624
|
-
}, isFiltering ? text : '全部'), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
30637
|
+
}, isFiltering ? text : '全部'), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
30625
30638
|
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
30626
30639
|
className: "addonAfter",
|
|
30627
30640
|
onClick: handleClear
|
|
@@ -30846,7 +30859,7 @@
|
|
|
30846
30859
|
className: "filter_item_value"
|
|
30847
30860
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
30848
30861
|
className: "checked"
|
|
30849
|
-
}, checkedValue), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
30862
|
+
}, checkedValue), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
30850
30863
|
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
30851
30864
|
className: "addonAfter",
|
|
30852
30865
|
onClick: handleClear
|
|
@@ -32066,7 +32079,7 @@
|
|
|
32066
32079
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], {
|
|
32067
32080
|
className: "site-tag-plus",
|
|
32068
32081
|
onClick: handleAdd
|
|
32069
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32082
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32070
32083
|
type: "lmweb-plus-circle"
|
|
32071
32084
|
}), " \u65B0\u589E"), checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues.map(function (v) {
|
|
32072
32085
|
return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], {
|
|
@@ -32090,7 +32103,7 @@
|
|
|
32090
32103
|
className: "item_header"
|
|
32091
32104
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32092
32105
|
className: "item_header_title"
|
|
32093
|
-
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32106
|
+
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32094
32107
|
type: "lmweb-close1",
|
|
32095
32108
|
onClick: handleDelete,
|
|
32096
32109
|
className: "item_header_icon"
|
|
@@ -32167,7 +32180,7 @@
|
|
|
32167
32180
|
className: "item_header"
|
|
32168
32181
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32169
32182
|
className: "item_header_title"
|
|
32170
|
-
}, item.title), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32183
|
+
}, item.title), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32171
32184
|
type: "lmweb-plus",
|
|
32172
32185
|
className: "item_header_icon icon_plus"
|
|
32173
32186
|
}))));
|
|
@@ -32308,7 +32321,7 @@
|
|
|
32308
32321
|
onClick: handleClick
|
|
32309
32322
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32310
32323
|
className: "filter_item_value"
|
|
32311
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32324
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32312
32325
|
type: "lmweb-filter",
|
|
32313
32326
|
className: "addonBefore"
|
|
32314
32327
|
}), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -32449,7 +32462,7 @@
|
|
|
32449
32462
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], {
|
|
32450
32463
|
className: "site-tag-plus",
|
|
32451
32464
|
onClick: handleAdd
|
|
32452
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32465
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32453
32466
|
type: "lmweb-plus-circle"
|
|
32454
32467
|
}), " \u65B0\u589E"), checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues.map(function (v) {
|
|
32455
32468
|
return /*#__PURE__*/React__default['default'].createElement(_Tag__default['default'], {
|
|
@@ -32473,7 +32486,7 @@
|
|
|
32473
32486
|
className: "item_header"
|
|
32474
32487
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32475
32488
|
className: "item_header_title"
|
|
32476
|
-
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32489
|
+
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32477
32490
|
type: "lmweb-close1",
|
|
32478
32491
|
onClick: handleDelete,
|
|
32479
32492
|
className: "item_header_icon"
|
|
@@ -32649,7 +32662,7 @@
|
|
|
32649
32662
|
block: true,
|
|
32650
32663
|
type: "dashed",
|
|
32651
32664
|
onClick: addEvent,
|
|
32652
|
-
icon: /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32665
|
+
icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32653
32666
|
type: "lmweb-plus-circle"
|
|
32654
32667
|
}),
|
|
32655
32668
|
size: "middle"
|
|
@@ -32759,7 +32772,7 @@
|
|
|
32759
32772
|
})
|
|
32760
32773
|
}, filterItem.label)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32761
32774
|
className: "custom_icon"
|
|
32762
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
32775
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
32763
32776
|
type: "lmweb-down"
|
|
32764
32777
|
})))), /*#__PURE__*/React__default['default'].createElement(Index$1, null));
|
|
32765
32778
|
};
|
|
@@ -33313,7 +33326,7 @@
|
|
|
33313
33326
|
}, others), children);
|
|
33314
33327
|
};
|
|
33315
33328
|
|
|
33316
|
-
var _excluded$f = ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon"];
|
|
33329
|
+
var _excluded$f = ["children", "className", "overlayClassName", "dropdownmatchwidth", "onlyIcon", "trigger"];
|
|
33317
33330
|
var prefixCls$2 = 'lm_dropdown';
|
|
33318
33331
|
|
|
33319
33332
|
var CLMDropdown = function CLMDropdown(props) {
|
|
@@ -33324,6 +33337,8 @@
|
|
|
33324
33337
|
dropdownmatchwidth = _props$dropdownmatchw === void 0 ? false : _props$dropdownmatchw,
|
|
33325
33338
|
_props$onlyIcon = props.onlyIcon,
|
|
33326
33339
|
onlyIcon = _props$onlyIcon === void 0 ? false : _props$onlyIcon,
|
|
33340
|
+
_props$trigger = props.trigger,
|
|
33341
|
+
trigger = _props$trigger === void 0 ? ['click'] : _props$trigger,
|
|
33327
33342
|
others = _objectWithoutProperties(props, _excluded$f);
|
|
33328
33343
|
|
|
33329
33344
|
var dropdownRef = React.useRef(null);
|
|
@@ -33351,6 +33366,7 @@
|
|
|
33351
33366
|
return /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'], _objectSpread(_objectSpread({
|
|
33352
33367
|
className: classnames(className, prefixCls$2, onlyIcon && 'only_icon')
|
|
33353
33368
|
}, others), {}, {
|
|
33369
|
+
trigger: trigger,
|
|
33354
33370
|
overlayClassName: classnames(overlayClassName, 'lm_dropdown_overlay')
|
|
33355
33371
|
}), children);
|
|
33356
33372
|
}
|
|
@@ -33360,6 +33376,7 @@
|
|
|
33360
33376
|
}, /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'], _objectSpread(_objectSpread({
|
|
33361
33377
|
className: classnames(className, prefixCls$2, onlyIcon && 'only_icon')
|
|
33362
33378
|
}, others), {}, {
|
|
33379
|
+
trigger: trigger,
|
|
33363
33380
|
overlayClassName: classnames(overlayClassName, 'lm_dropdown_overlay'),
|
|
33364
33381
|
overlayStyle: minwidth ? _objectSpread({
|
|
33365
33382
|
minWidth: minwidth
|
|
@@ -33372,7 +33389,9 @@
|
|
|
33372
33389
|
LMDropdown.Button = function (props) {
|
|
33373
33390
|
var _props$dropdownmatchw2 = props.dropdownmatchwidth,
|
|
33374
33391
|
dropdownmatchwidth = _props$dropdownmatchw2 === void 0 ? false : _props$dropdownmatchw2,
|
|
33375
|
-
icon = props.icon
|
|
33392
|
+
icon = props.icon,
|
|
33393
|
+
_props$trigger2 = props.trigger,
|
|
33394
|
+
trigger = _props$trigger2 === void 0 ? ['click'] : _props$trigger2;
|
|
33376
33395
|
var dropdownRef = React.useRef(null);
|
|
33377
33396
|
|
|
33378
33397
|
var _useState3 = React.useState(''),
|
|
@@ -33396,7 +33415,8 @@
|
|
|
33396
33415
|
|
|
33397
33416
|
if (!dropdownmatchwidth) {
|
|
33398
33417
|
return /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'].Button, _objectSpread(_objectSpread({}, props), {}, {
|
|
33399
|
-
|
|
33418
|
+
trigger: trigger,
|
|
33419
|
+
icon: icon || /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33400
33420
|
className: 'lm_default_icon',
|
|
33401
33421
|
type: 'lmweb-down'
|
|
33402
33422
|
}),
|
|
@@ -33408,7 +33428,8 @@
|
|
|
33408
33428
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
33409
33429
|
ref: dropdownRef
|
|
33410
33430
|
}, /*#__PURE__*/React__default['default'].createElement(_Dropdown__default['default'].Button, _objectSpread(_objectSpread({}, props), {}, {
|
|
33411
|
-
|
|
33431
|
+
trigger: trigger,
|
|
33432
|
+
icon: icon || /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33412
33433
|
className: 'lm_default_icon',
|
|
33413
33434
|
type: 'lmweb-down'
|
|
33414
33435
|
}),
|
|
@@ -33427,7 +33448,7 @@
|
|
|
33427
33448
|
_props$label = props.label,
|
|
33428
33449
|
label = _props$label === void 0 ? '上传文件' : _props$label,
|
|
33429
33450
|
_props$icon = props.icon,
|
|
33430
|
-
icon = _props$icon === void 0 ? /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
33451
|
+
icon = _props$icon === void 0 ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33431
33452
|
type: "lmweb-cloud-upload",
|
|
33432
33453
|
className: "upload_btn_icon"
|
|
33433
33454
|
}) : _props$icon,
|
|
@@ -33609,12 +33630,12 @@
|
|
|
33609
33630
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
33610
33631
|
className: "view_item_preview",
|
|
33611
33632
|
onClick: handlePreview
|
|
33612
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
33633
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33613
33634
|
type: "lmweb-eye"
|
|
33614
33635
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
33615
33636
|
className: "view_item_delete",
|
|
33616
33637
|
onClick: handleDelete
|
|
33617
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
33638
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33618
33639
|
type: "lmweb-delete"
|
|
33619
33640
|
}))), previewChildren && previewChildren(props)))));
|
|
33620
33641
|
};
|
|
@@ -33701,7 +33722,7 @@
|
|
|
33701
33722
|
|
|
33702
33723
|
|
|
33703
33724
|
var UploadPlaceholder = function UploadPlaceholder() {
|
|
33704
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
33725
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
33705
33726
|
type: "lmweb-plus",
|
|
33706
33727
|
style: {
|
|
33707
33728
|
fontSize: size > 48 ? 24 : 16
|
|
@@ -35271,7 +35292,7 @@
|
|
|
35271
35292
|
className: !!showTitle() || useVisible ? 'btn btn_active' : 'btn btn_not_active'
|
|
35272
35293
|
}, showLabel(), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
35273
35294
|
className: "btn_value"
|
|
35274
|
-
}, showValue()), showTitle() !== null ? /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
35295
|
+
}, showValue()), showTitle() !== null ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
35275
35296
|
className: "btn_icon_close",
|
|
35276
35297
|
type: "lmweb-close-circle-fill",
|
|
35277
35298
|
onClick: handleClear
|
|
@@ -38997,7 +39018,7 @@
|
|
|
38997
39018
|
return setActive("lmweb-".concat(v.font_class));
|
|
38998
39019
|
},
|
|
38999
39020
|
onDoubleClick: onDoubleClick
|
|
39000
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
39021
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
39001
39022
|
type: "lmweb-".concat(v.font_class)
|
|
39002
39023
|
})));
|
|
39003
39024
|
}));
|
|
@@ -39024,7 +39045,7 @@
|
|
|
39024
39045
|
rest = _objectWithoutProperties(props, _excluded2$4);
|
|
39025
39046
|
|
|
39026
39047
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Search, _objectSpread(_objectSpread({
|
|
39027
|
-
enterButton: /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
39048
|
+
enterButton: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
39028
39049
|
type: "lmweb-search"
|
|
39029
39050
|
})
|
|
39030
39051
|
}, rest), {}, {
|
|
@@ -39042,9 +39063,9 @@
|
|
|
39042
39063
|
return /*#__PURE__*/React__default['default'].createElement(_Input__default['default'].Password, _objectSpread(_objectSpread({
|
|
39043
39064
|
className: "lm_input_password",
|
|
39044
39065
|
iconRender: function iconRender(visible) {
|
|
39045
|
-
return visible ? /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
39066
|
+
return visible ? /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
39046
39067
|
type: "lmweb-eye"
|
|
39047
|
-
}) : /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
39068
|
+
}) : /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
39048
39069
|
type: "lmweb-eye-close"
|
|
39049
39070
|
});
|
|
39050
39071
|
}
|
|
@@ -56776,6 +56797,62 @@
|
|
|
56776
56797
|
return _extends$5.apply(this, arguments);
|
|
56777
56798
|
}
|
|
56778
56799
|
|
|
56800
|
+
function _objectSpread$7(target) {
|
|
56801
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
56802
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
56803
|
+
var ownKeys = Object.keys(source);
|
|
56804
|
+
|
|
56805
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
56806
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
56807
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
56808
|
+
}));
|
|
56809
|
+
}
|
|
56810
|
+
|
|
56811
|
+
ownKeys.forEach(function (key) {
|
|
56812
|
+
_defineProperty$1(target, key, source[key]);
|
|
56813
|
+
});
|
|
56814
|
+
}
|
|
56815
|
+
|
|
56816
|
+
return target;
|
|
56817
|
+
}
|
|
56818
|
+
|
|
56819
|
+
/**
|
|
56820
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
56821
|
+
*
|
|
56822
|
+
* This source code is licensed under the MIT license found in the
|
|
56823
|
+
* LICENSE file in the root directory of this source tree.
|
|
56824
|
+
*/
|
|
56825
|
+
|
|
56826
|
+
var invariant = function(condition, format, a, b, c, d, e, f) {
|
|
56827
|
+
{
|
|
56828
|
+
if (format === undefined) {
|
|
56829
|
+
throw new Error('invariant requires an error message argument');
|
|
56830
|
+
}
|
|
56831
|
+
}
|
|
56832
|
+
|
|
56833
|
+
if (!condition) {
|
|
56834
|
+
var error;
|
|
56835
|
+
if (format === undefined) {
|
|
56836
|
+
error = new Error(
|
|
56837
|
+
'Minified exception occurred; use the non-minified dev environment ' +
|
|
56838
|
+
'for the full error message and additional helpful warnings.'
|
|
56839
|
+
);
|
|
56840
|
+
} else {
|
|
56841
|
+
var args = [a, b, c, d, e, f];
|
|
56842
|
+
var argIndex = 0;
|
|
56843
|
+
error = new Error(
|
|
56844
|
+
format.replace(/%s/g, function() { return args[argIndex++]; })
|
|
56845
|
+
);
|
|
56846
|
+
error.name = 'Invariant Violation';
|
|
56847
|
+
}
|
|
56848
|
+
|
|
56849
|
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
56850
|
+
throw error;
|
|
56851
|
+
}
|
|
56852
|
+
};
|
|
56853
|
+
|
|
56854
|
+
var invariant_1 = invariant;
|
|
56855
|
+
|
|
56779
56856
|
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
56780
56857
|
|
|
56781
56858
|
|
|
@@ -57766,6 +57843,1583 @@
|
|
|
57766
57843
|
}
|
|
57767
57844
|
});
|
|
57768
57845
|
|
|
57846
|
+
var Manager = function () {
|
|
57847
|
+
function Manager() {
|
|
57848
|
+
_classCallCheck(this, Manager);
|
|
57849
|
+
|
|
57850
|
+
_defineProperty$1(this, "refs", {});
|
|
57851
|
+
}
|
|
57852
|
+
|
|
57853
|
+
_createClass(Manager, [{
|
|
57854
|
+
key: "add",
|
|
57855
|
+
value: function add(collection, ref) {
|
|
57856
|
+
if (!this.refs[collection]) {
|
|
57857
|
+
this.refs[collection] = [];
|
|
57858
|
+
}
|
|
57859
|
+
|
|
57860
|
+
this.refs[collection].push(ref);
|
|
57861
|
+
}
|
|
57862
|
+
}, {
|
|
57863
|
+
key: "remove",
|
|
57864
|
+
value: function remove(collection, ref) {
|
|
57865
|
+
var index = this.getIndex(collection, ref);
|
|
57866
|
+
|
|
57867
|
+
if (index !== -1) {
|
|
57868
|
+
this.refs[collection].splice(index, 1);
|
|
57869
|
+
}
|
|
57870
|
+
}
|
|
57871
|
+
}, {
|
|
57872
|
+
key: "isActive",
|
|
57873
|
+
value: function isActive() {
|
|
57874
|
+
return this.active;
|
|
57875
|
+
}
|
|
57876
|
+
}, {
|
|
57877
|
+
key: "getActive",
|
|
57878
|
+
value: function getActive() {
|
|
57879
|
+
var _this = this;
|
|
57880
|
+
|
|
57881
|
+
return this.refs[this.active.collection].find(function (_ref) {
|
|
57882
|
+
var node = _ref.node;
|
|
57883
|
+
return node.sortableInfo.index == _this.active.index;
|
|
57884
|
+
});
|
|
57885
|
+
}
|
|
57886
|
+
}, {
|
|
57887
|
+
key: "getIndex",
|
|
57888
|
+
value: function getIndex(collection, ref) {
|
|
57889
|
+
return this.refs[collection].indexOf(ref);
|
|
57890
|
+
}
|
|
57891
|
+
}, {
|
|
57892
|
+
key: "getOrderedRefs",
|
|
57893
|
+
value: function getOrderedRefs() {
|
|
57894
|
+
var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.active.collection;
|
|
57895
|
+
return this.refs[collection].sort(sortByIndex);
|
|
57896
|
+
}
|
|
57897
|
+
}]);
|
|
57898
|
+
|
|
57899
|
+
return Manager;
|
|
57900
|
+
}();
|
|
57901
|
+
|
|
57902
|
+
function sortByIndex(_ref2, _ref3) {
|
|
57903
|
+
var index1 = _ref2.node.sortableInfo.index;
|
|
57904
|
+
var index2 = _ref3.node.sortableInfo.index;
|
|
57905
|
+
return index1 - index2;
|
|
57906
|
+
}
|
|
57907
|
+
function omit$1(obj, keysToOmit) {
|
|
57908
|
+
return Object.keys(obj).reduce(function (acc, key) {
|
|
57909
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
57910
|
+
acc[key] = obj[key];
|
|
57911
|
+
}
|
|
57912
|
+
|
|
57913
|
+
return acc;
|
|
57914
|
+
}, {});
|
|
57915
|
+
}
|
|
57916
|
+
var events$1 = {
|
|
57917
|
+
end: ['touchend', 'touchcancel', 'mouseup'],
|
|
57918
|
+
move: ['touchmove', 'mousemove'],
|
|
57919
|
+
start: ['touchstart', 'mousedown']
|
|
57920
|
+
};
|
|
57921
|
+
var vendorPrefix = function () {
|
|
57922
|
+
if (typeof window === 'undefined' || typeof document === 'undefined') {
|
|
57923
|
+
return '';
|
|
57924
|
+
}
|
|
57925
|
+
|
|
57926
|
+
var styles = window.getComputedStyle(document.documentElement, '') || ['-moz-hidden-iframe'];
|
|
57927
|
+
var pre = (Array.prototype.slice.call(styles).join('').match(/-(moz|webkit|ms)-/) || styles.OLink === '' && ['', 'o'])[1];
|
|
57928
|
+
|
|
57929
|
+
switch (pre) {
|
|
57930
|
+
case 'ms':
|
|
57931
|
+
return 'ms';
|
|
57932
|
+
|
|
57933
|
+
default:
|
|
57934
|
+
return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : '';
|
|
57935
|
+
}
|
|
57936
|
+
}();
|
|
57937
|
+
function setInlineStyles(node, styles) {
|
|
57938
|
+
Object.keys(styles).forEach(function (key) {
|
|
57939
|
+
node.style[key] = styles[key];
|
|
57940
|
+
});
|
|
57941
|
+
}
|
|
57942
|
+
function setTranslate3d(node, translate) {
|
|
57943
|
+
node.style["".concat(vendorPrefix, "Transform")] = translate == null ? '' : "translate3d(".concat(translate.x, "px,").concat(translate.y, "px,0)");
|
|
57944
|
+
}
|
|
57945
|
+
function setTransitionDuration(node, duration) {
|
|
57946
|
+
node.style["".concat(vendorPrefix, "TransitionDuration")] = duration == null ? '' : "".concat(duration, "ms");
|
|
57947
|
+
}
|
|
57948
|
+
function closest(el, fn) {
|
|
57949
|
+
while (el) {
|
|
57950
|
+
if (fn(el)) {
|
|
57951
|
+
return el;
|
|
57952
|
+
}
|
|
57953
|
+
|
|
57954
|
+
el = el.parentNode;
|
|
57955
|
+
}
|
|
57956
|
+
|
|
57957
|
+
return null;
|
|
57958
|
+
}
|
|
57959
|
+
function limit(min, max, value) {
|
|
57960
|
+
return Math.max(min, Math.min(value, max));
|
|
57961
|
+
}
|
|
57962
|
+
|
|
57963
|
+
function getPixelValue(stringValue) {
|
|
57964
|
+
if (stringValue.substr(-2) === 'px') {
|
|
57965
|
+
return parseFloat(stringValue);
|
|
57966
|
+
}
|
|
57967
|
+
|
|
57968
|
+
return 0;
|
|
57969
|
+
}
|
|
57970
|
+
|
|
57971
|
+
function getElementMargin(element) {
|
|
57972
|
+
var style = window.getComputedStyle(element);
|
|
57973
|
+
return {
|
|
57974
|
+
bottom: getPixelValue(style.marginBottom),
|
|
57975
|
+
left: getPixelValue(style.marginLeft),
|
|
57976
|
+
right: getPixelValue(style.marginRight),
|
|
57977
|
+
top: getPixelValue(style.marginTop)
|
|
57978
|
+
};
|
|
57979
|
+
}
|
|
57980
|
+
function provideDisplayName(prefix, Component$$1) {
|
|
57981
|
+
var componentName = Component$$1.displayName || Component$$1.name;
|
|
57982
|
+
return componentName ? "".concat(prefix, "(").concat(componentName, ")") : prefix;
|
|
57983
|
+
}
|
|
57984
|
+
function getScrollAdjustedBoundingClientRect(node, scrollDelta) {
|
|
57985
|
+
var boundingClientRect = node.getBoundingClientRect();
|
|
57986
|
+
return {
|
|
57987
|
+
top: boundingClientRect.top + scrollDelta.top,
|
|
57988
|
+
left: boundingClientRect.left + scrollDelta.left
|
|
57989
|
+
};
|
|
57990
|
+
}
|
|
57991
|
+
function getPosition(event) {
|
|
57992
|
+
if (event.touches && event.touches.length) {
|
|
57993
|
+
return {
|
|
57994
|
+
x: event.touches[0].pageX,
|
|
57995
|
+
y: event.touches[0].pageY
|
|
57996
|
+
};
|
|
57997
|
+
} else if (event.changedTouches && event.changedTouches.length) {
|
|
57998
|
+
return {
|
|
57999
|
+
x: event.changedTouches[0].pageX,
|
|
58000
|
+
y: event.changedTouches[0].pageY
|
|
58001
|
+
};
|
|
58002
|
+
} else {
|
|
58003
|
+
return {
|
|
58004
|
+
x: event.pageX,
|
|
58005
|
+
y: event.pageY
|
|
58006
|
+
};
|
|
58007
|
+
}
|
|
58008
|
+
}
|
|
58009
|
+
function isTouchEvent$1(event) {
|
|
58010
|
+
return event.touches && event.touches.length || event.changedTouches && event.changedTouches.length;
|
|
58011
|
+
}
|
|
58012
|
+
function getEdgeOffset(node, parent) {
|
|
58013
|
+
var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
58014
|
+
left: 0,
|
|
58015
|
+
top: 0
|
|
58016
|
+
};
|
|
58017
|
+
|
|
58018
|
+
if (!node) {
|
|
58019
|
+
return undefined;
|
|
58020
|
+
}
|
|
58021
|
+
|
|
58022
|
+
var nodeOffset = {
|
|
58023
|
+
left: offset.left + node.offsetLeft,
|
|
58024
|
+
top: offset.top + node.offsetTop
|
|
58025
|
+
};
|
|
58026
|
+
|
|
58027
|
+
if (node.parentNode === parent) {
|
|
58028
|
+
return nodeOffset;
|
|
58029
|
+
}
|
|
58030
|
+
|
|
58031
|
+
return getEdgeOffset(node.parentNode, parent, nodeOffset);
|
|
58032
|
+
}
|
|
58033
|
+
function getTargetIndex(newIndex, prevIndex, oldIndex) {
|
|
58034
|
+
if (newIndex < oldIndex && newIndex > prevIndex) {
|
|
58035
|
+
return newIndex - 1;
|
|
58036
|
+
} else if (newIndex > oldIndex && newIndex < prevIndex) {
|
|
58037
|
+
return newIndex + 1;
|
|
58038
|
+
} else {
|
|
58039
|
+
return newIndex;
|
|
58040
|
+
}
|
|
58041
|
+
}
|
|
58042
|
+
function getLockPixelOffset(_ref) {
|
|
58043
|
+
var lockOffset = _ref.lockOffset,
|
|
58044
|
+
width = _ref.width,
|
|
58045
|
+
height = _ref.height;
|
|
58046
|
+
var offsetX = lockOffset;
|
|
58047
|
+
var offsetY = lockOffset;
|
|
58048
|
+
var unit = 'px';
|
|
58049
|
+
|
|
58050
|
+
if (typeof lockOffset === 'string') {
|
|
58051
|
+
var match = /^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(lockOffset);
|
|
58052
|
+
invariant_1(match !== null, 'lockOffset value should be a number or a string of a ' + 'number followed by "px" or "%". Given %s', lockOffset);
|
|
58053
|
+
offsetX = parseFloat(lockOffset);
|
|
58054
|
+
offsetY = parseFloat(lockOffset);
|
|
58055
|
+
unit = match[1];
|
|
58056
|
+
}
|
|
58057
|
+
|
|
58058
|
+
invariant_1(isFinite(offsetX) && isFinite(offsetY), 'lockOffset value should be a finite. Given %s', lockOffset);
|
|
58059
|
+
|
|
58060
|
+
if (unit === '%') {
|
|
58061
|
+
offsetX = offsetX * width / 100;
|
|
58062
|
+
offsetY = offsetY * height / 100;
|
|
58063
|
+
}
|
|
58064
|
+
|
|
58065
|
+
return {
|
|
58066
|
+
x: offsetX,
|
|
58067
|
+
y: offsetY
|
|
58068
|
+
};
|
|
58069
|
+
}
|
|
58070
|
+
function getLockPixelOffsets(_ref2) {
|
|
58071
|
+
var height = _ref2.height,
|
|
58072
|
+
width = _ref2.width,
|
|
58073
|
+
lockOffset = _ref2.lockOffset;
|
|
58074
|
+
var offsets = Array.isArray(lockOffset) ? lockOffset : [lockOffset, lockOffset];
|
|
58075
|
+
invariant_1(offsets.length === 2, 'lockOffset prop of SortableContainer should be a single ' + 'value or an array of exactly two values. Given %s', lockOffset);
|
|
58076
|
+
|
|
58077
|
+
var _offsets = _slicedToArray$1(offsets, 2),
|
|
58078
|
+
minLockOffset = _offsets[0],
|
|
58079
|
+
maxLockOffset = _offsets[1];
|
|
58080
|
+
|
|
58081
|
+
return [getLockPixelOffset({
|
|
58082
|
+
height: height,
|
|
58083
|
+
lockOffset: minLockOffset,
|
|
58084
|
+
width: width
|
|
58085
|
+
}), getLockPixelOffset({
|
|
58086
|
+
height: height,
|
|
58087
|
+
lockOffset: maxLockOffset,
|
|
58088
|
+
width: width
|
|
58089
|
+
})];
|
|
58090
|
+
}
|
|
58091
|
+
|
|
58092
|
+
function isScrollable$1(el) {
|
|
58093
|
+
var computedStyle = window.getComputedStyle(el);
|
|
58094
|
+
var overflowRegex = /(auto|scroll)/;
|
|
58095
|
+
var properties = ['overflow', 'overflowX', 'overflowY'];
|
|
58096
|
+
return properties.find(function (property) {
|
|
58097
|
+
return overflowRegex.test(computedStyle[property]);
|
|
58098
|
+
});
|
|
58099
|
+
}
|
|
58100
|
+
|
|
58101
|
+
function getScrollingParent(el) {
|
|
58102
|
+
if (!(el instanceof HTMLElement)) {
|
|
58103
|
+
return null;
|
|
58104
|
+
} else if (isScrollable$1(el)) {
|
|
58105
|
+
return el;
|
|
58106
|
+
} else {
|
|
58107
|
+
return getScrollingParent(el.parentNode);
|
|
58108
|
+
}
|
|
58109
|
+
}
|
|
58110
|
+
function getContainerGridGap(element) {
|
|
58111
|
+
var style = window.getComputedStyle(element);
|
|
58112
|
+
|
|
58113
|
+
if (style.display === 'grid') {
|
|
58114
|
+
return {
|
|
58115
|
+
x: getPixelValue(style.gridColumnGap),
|
|
58116
|
+
y: getPixelValue(style.gridRowGap)
|
|
58117
|
+
};
|
|
58118
|
+
}
|
|
58119
|
+
|
|
58120
|
+
return {
|
|
58121
|
+
x: 0,
|
|
58122
|
+
y: 0
|
|
58123
|
+
};
|
|
58124
|
+
}
|
|
58125
|
+
var KEYCODE = {
|
|
58126
|
+
TAB: 9,
|
|
58127
|
+
ESC: 27,
|
|
58128
|
+
SPACE: 32,
|
|
58129
|
+
LEFT: 37,
|
|
58130
|
+
UP: 38,
|
|
58131
|
+
RIGHT: 39,
|
|
58132
|
+
DOWN: 40
|
|
58133
|
+
};
|
|
58134
|
+
var NodeType = {
|
|
58135
|
+
Anchor: 'A',
|
|
58136
|
+
Button: 'BUTTON',
|
|
58137
|
+
Canvas: 'CANVAS',
|
|
58138
|
+
Input: 'INPUT',
|
|
58139
|
+
Option: 'OPTION',
|
|
58140
|
+
Textarea: 'TEXTAREA',
|
|
58141
|
+
Select: 'SELECT'
|
|
58142
|
+
};
|
|
58143
|
+
function cloneNode(node) {
|
|
58144
|
+
var selector = 'input, textarea, select, canvas, [contenteditable]';
|
|
58145
|
+
var fields = node.querySelectorAll(selector);
|
|
58146
|
+
var clonedNode = node.cloneNode(true);
|
|
58147
|
+
|
|
58148
|
+
var clonedFields = _toConsumableArray$1(clonedNode.querySelectorAll(selector));
|
|
58149
|
+
|
|
58150
|
+
clonedFields.forEach(function (field, i) {
|
|
58151
|
+
if (field.type !== 'file') {
|
|
58152
|
+
field.value = fields[i].value;
|
|
58153
|
+
}
|
|
58154
|
+
|
|
58155
|
+
if (field.type === 'radio' && field.name) {
|
|
58156
|
+
field.name = "__sortableClone__".concat(field.name);
|
|
58157
|
+
}
|
|
58158
|
+
|
|
58159
|
+
if (field.tagName === NodeType.Canvas && fields[i].width > 0 && fields[i].height > 0) {
|
|
58160
|
+
var destCtx = field.getContext('2d');
|
|
58161
|
+
destCtx.drawImage(fields[i], 0, 0);
|
|
58162
|
+
}
|
|
58163
|
+
});
|
|
58164
|
+
return clonedNode;
|
|
58165
|
+
}
|
|
58166
|
+
|
|
58167
|
+
function sortableHandle(WrappedComponent) {
|
|
58168
|
+
var _class, _temp;
|
|
58169
|
+
|
|
58170
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
58171
|
+
withRef: false
|
|
58172
|
+
};
|
|
58173
|
+
return _temp = _class = function (_React$Component) {
|
|
58174
|
+
_inherits(WithSortableHandle, _React$Component);
|
|
58175
|
+
|
|
58176
|
+
function WithSortableHandle() {
|
|
58177
|
+
var _getPrototypeOf2;
|
|
58178
|
+
|
|
58179
|
+
var _this;
|
|
58180
|
+
|
|
58181
|
+
_classCallCheck(this, WithSortableHandle);
|
|
58182
|
+
|
|
58183
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
58184
|
+
args[_key] = arguments[_key];
|
|
58185
|
+
}
|
|
58186
|
+
|
|
58187
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WithSortableHandle)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
58188
|
+
|
|
58189
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "wrappedInstance", React.createRef());
|
|
58190
|
+
|
|
58191
|
+
return _this;
|
|
58192
|
+
}
|
|
58193
|
+
|
|
58194
|
+
_createClass(WithSortableHandle, [{
|
|
58195
|
+
key: "componentDidMount",
|
|
58196
|
+
value: function componentDidMount() {
|
|
58197
|
+
var node = require$$2.findDOMNode(this);
|
|
58198
|
+
node.sortableHandle = true;
|
|
58199
|
+
}
|
|
58200
|
+
}, {
|
|
58201
|
+
key: "getWrappedInstance",
|
|
58202
|
+
value: function getWrappedInstance() {
|
|
58203
|
+
invariant_1(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call');
|
|
58204
|
+
return this.wrappedInstance.current;
|
|
58205
|
+
}
|
|
58206
|
+
}, {
|
|
58207
|
+
key: "render",
|
|
58208
|
+
value: function render() {
|
|
58209
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
58210
|
+
return React.createElement(WrappedComponent, _extends$5({
|
|
58211
|
+
ref: ref
|
|
58212
|
+
}, this.props));
|
|
58213
|
+
}
|
|
58214
|
+
}]);
|
|
58215
|
+
|
|
58216
|
+
return WithSortableHandle;
|
|
58217
|
+
}(React.Component), _defineProperty$1(_class, "displayName", provideDisplayName('sortableHandle', WrappedComponent)), _temp;
|
|
58218
|
+
}
|
|
58219
|
+
function isSortableHandle(node) {
|
|
58220
|
+
return node.sortableHandle != null;
|
|
58221
|
+
}
|
|
58222
|
+
|
|
58223
|
+
var AutoScroller = function () {
|
|
58224
|
+
function AutoScroller(container, onScrollCallback) {
|
|
58225
|
+
_classCallCheck(this, AutoScroller);
|
|
58226
|
+
|
|
58227
|
+
this.container = container;
|
|
58228
|
+
this.onScrollCallback = onScrollCallback;
|
|
58229
|
+
}
|
|
58230
|
+
|
|
58231
|
+
_createClass(AutoScroller, [{
|
|
58232
|
+
key: "clear",
|
|
58233
|
+
value: function clear() {
|
|
58234
|
+
if (this.interval == null) {
|
|
58235
|
+
return;
|
|
58236
|
+
}
|
|
58237
|
+
|
|
58238
|
+
clearInterval(this.interval);
|
|
58239
|
+
this.interval = null;
|
|
58240
|
+
}
|
|
58241
|
+
}, {
|
|
58242
|
+
key: "update",
|
|
58243
|
+
value: function update(_ref) {
|
|
58244
|
+
var _this = this;
|
|
58245
|
+
|
|
58246
|
+
var translate = _ref.translate,
|
|
58247
|
+
minTranslate = _ref.minTranslate,
|
|
58248
|
+
maxTranslate = _ref.maxTranslate,
|
|
58249
|
+
width = _ref.width,
|
|
58250
|
+
height = _ref.height;
|
|
58251
|
+
var direction = {
|
|
58252
|
+
x: 0,
|
|
58253
|
+
y: 0
|
|
58254
|
+
};
|
|
58255
|
+
var speed = {
|
|
58256
|
+
x: 1,
|
|
58257
|
+
y: 1
|
|
58258
|
+
};
|
|
58259
|
+
var acceleration = {
|
|
58260
|
+
x: 10,
|
|
58261
|
+
y: 10
|
|
58262
|
+
};
|
|
58263
|
+
var _this$container = this.container,
|
|
58264
|
+
scrollTop = _this$container.scrollTop,
|
|
58265
|
+
scrollLeft = _this$container.scrollLeft,
|
|
58266
|
+
scrollHeight = _this$container.scrollHeight,
|
|
58267
|
+
scrollWidth = _this$container.scrollWidth,
|
|
58268
|
+
clientHeight = _this$container.clientHeight,
|
|
58269
|
+
clientWidth = _this$container.clientWidth;
|
|
58270
|
+
var isTop = scrollTop === 0;
|
|
58271
|
+
var isBottom = scrollHeight - scrollTop - clientHeight === 0;
|
|
58272
|
+
var isLeft = scrollLeft === 0;
|
|
58273
|
+
var isRight = scrollWidth - scrollLeft - clientWidth === 0;
|
|
58274
|
+
|
|
58275
|
+
if (translate.y >= maxTranslate.y - height / 2 && !isBottom) {
|
|
58276
|
+
direction.y = 1;
|
|
58277
|
+
speed.y = acceleration.y * Math.abs((maxTranslate.y - height / 2 - translate.y) / height);
|
|
58278
|
+
} else if (translate.x >= maxTranslate.x - width / 2 && !isRight) {
|
|
58279
|
+
direction.x = 1;
|
|
58280
|
+
speed.x = acceleration.x * Math.abs((maxTranslate.x - width / 2 - translate.x) / width);
|
|
58281
|
+
} else if (translate.y <= minTranslate.y + height / 2 && !isTop) {
|
|
58282
|
+
direction.y = -1;
|
|
58283
|
+
speed.y = acceleration.y * Math.abs((translate.y - height / 2 - minTranslate.y) / height);
|
|
58284
|
+
} else if (translate.x <= minTranslate.x + width / 2 && !isLeft) {
|
|
58285
|
+
direction.x = -1;
|
|
58286
|
+
speed.x = acceleration.x * Math.abs((translate.x - width / 2 - minTranslate.x) / width);
|
|
58287
|
+
}
|
|
58288
|
+
|
|
58289
|
+
if (this.interval) {
|
|
58290
|
+
this.clear();
|
|
58291
|
+
this.isAutoScrolling = false;
|
|
58292
|
+
}
|
|
58293
|
+
|
|
58294
|
+
if (direction.x !== 0 || direction.y !== 0) {
|
|
58295
|
+
this.interval = setInterval(function () {
|
|
58296
|
+
_this.isAutoScrolling = true;
|
|
58297
|
+
var offset = {
|
|
58298
|
+
left: speed.x * direction.x,
|
|
58299
|
+
top: speed.y * direction.y
|
|
58300
|
+
};
|
|
58301
|
+
_this.container.scrollTop += offset.top;
|
|
58302
|
+
_this.container.scrollLeft += offset.left;
|
|
58303
|
+
|
|
58304
|
+
_this.onScrollCallback(offset);
|
|
58305
|
+
}, 5);
|
|
58306
|
+
}
|
|
58307
|
+
}
|
|
58308
|
+
}]);
|
|
58309
|
+
|
|
58310
|
+
return AutoScroller;
|
|
58311
|
+
}();
|
|
58312
|
+
|
|
58313
|
+
function defaultGetHelperDimensions(_ref) {
|
|
58314
|
+
var node = _ref.node;
|
|
58315
|
+
return {
|
|
58316
|
+
height: node.offsetHeight,
|
|
58317
|
+
width: node.offsetWidth
|
|
58318
|
+
};
|
|
58319
|
+
}
|
|
58320
|
+
|
|
58321
|
+
function defaultShouldCancelStart(event) {
|
|
58322
|
+
var interactiveElements = [NodeType.Input, NodeType.Textarea, NodeType.Select, NodeType.Option, NodeType.Button];
|
|
58323
|
+
|
|
58324
|
+
if (interactiveElements.indexOf(event.target.tagName) !== -1) {
|
|
58325
|
+
return true;
|
|
58326
|
+
}
|
|
58327
|
+
|
|
58328
|
+
if (closest(event.target, function (el) {
|
|
58329
|
+
return el.contentEditable === 'true';
|
|
58330
|
+
})) {
|
|
58331
|
+
return true;
|
|
58332
|
+
}
|
|
58333
|
+
|
|
58334
|
+
return false;
|
|
58335
|
+
}
|
|
58336
|
+
|
|
58337
|
+
var propTypes$1 = {
|
|
58338
|
+
axis: propTypes.oneOf(['x', 'y', 'xy']),
|
|
58339
|
+
contentWindow: propTypes.any,
|
|
58340
|
+
disableAutoscroll: propTypes.bool,
|
|
58341
|
+
distance: propTypes.number,
|
|
58342
|
+
getContainer: propTypes.func,
|
|
58343
|
+
getHelperDimensions: propTypes.func,
|
|
58344
|
+
helperClass: propTypes.string,
|
|
58345
|
+
helperContainer: propTypes.oneOfType([propTypes.func, typeof HTMLElement === 'undefined' ? propTypes.any : propTypes.instanceOf(HTMLElement)]),
|
|
58346
|
+
hideSortableGhost: propTypes.bool,
|
|
58347
|
+
keyboardSortingTransitionDuration: propTypes.number,
|
|
58348
|
+
lockAxis: propTypes.string,
|
|
58349
|
+
lockOffset: propTypes.oneOfType([propTypes.number, propTypes.string, propTypes.arrayOf(propTypes.oneOfType([propTypes.number, propTypes.string]))]),
|
|
58350
|
+
lockToContainerEdges: propTypes.bool,
|
|
58351
|
+
onSortEnd: propTypes.func,
|
|
58352
|
+
onSortMove: propTypes.func,
|
|
58353
|
+
onSortOver: propTypes.func,
|
|
58354
|
+
onSortStart: propTypes.func,
|
|
58355
|
+
pressDelay: propTypes.number,
|
|
58356
|
+
pressThreshold: propTypes.number,
|
|
58357
|
+
keyCodes: propTypes.shape({
|
|
58358
|
+
lift: propTypes.arrayOf(propTypes.number),
|
|
58359
|
+
drop: propTypes.arrayOf(propTypes.number),
|
|
58360
|
+
cancel: propTypes.arrayOf(propTypes.number),
|
|
58361
|
+
up: propTypes.arrayOf(propTypes.number),
|
|
58362
|
+
down: propTypes.arrayOf(propTypes.number)
|
|
58363
|
+
}),
|
|
58364
|
+
shouldCancelStart: propTypes.func,
|
|
58365
|
+
transitionDuration: propTypes.number,
|
|
58366
|
+
updateBeforeSortStart: propTypes.func,
|
|
58367
|
+
useDragHandle: propTypes.bool,
|
|
58368
|
+
useWindowAsScrollContainer: propTypes.bool
|
|
58369
|
+
};
|
|
58370
|
+
var defaultKeyCodes = {
|
|
58371
|
+
lift: [KEYCODE.SPACE],
|
|
58372
|
+
drop: [KEYCODE.SPACE],
|
|
58373
|
+
cancel: [KEYCODE.ESC],
|
|
58374
|
+
up: [KEYCODE.UP, KEYCODE.LEFT],
|
|
58375
|
+
down: [KEYCODE.DOWN, KEYCODE.RIGHT]
|
|
58376
|
+
};
|
|
58377
|
+
var defaultProps = {
|
|
58378
|
+
axis: 'y',
|
|
58379
|
+
disableAutoscroll: false,
|
|
58380
|
+
distance: 0,
|
|
58381
|
+
getHelperDimensions: defaultGetHelperDimensions,
|
|
58382
|
+
hideSortableGhost: true,
|
|
58383
|
+
lockOffset: '50%',
|
|
58384
|
+
lockToContainerEdges: false,
|
|
58385
|
+
pressDelay: 0,
|
|
58386
|
+
pressThreshold: 5,
|
|
58387
|
+
keyCodes: defaultKeyCodes,
|
|
58388
|
+
shouldCancelStart: defaultShouldCancelStart,
|
|
58389
|
+
transitionDuration: 300,
|
|
58390
|
+
useWindowAsScrollContainer: false
|
|
58391
|
+
};
|
|
58392
|
+
var omittedProps = Object.keys(propTypes$1);
|
|
58393
|
+
function validateProps(props) {
|
|
58394
|
+
invariant_1(!(props.distance && props.pressDelay), 'Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.');
|
|
58395
|
+
}
|
|
58396
|
+
|
|
58397
|
+
function _finallyRethrows(body, finalizer) {
|
|
58398
|
+
try {
|
|
58399
|
+
var result = body();
|
|
58400
|
+
} catch (e) {
|
|
58401
|
+
return finalizer(true, e);
|
|
58402
|
+
}
|
|
58403
|
+
|
|
58404
|
+
if (result && result.then) {
|
|
58405
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
58406
|
+
}
|
|
58407
|
+
|
|
58408
|
+
return finalizer(false, value);
|
|
58409
|
+
}
|
|
58410
|
+
var SortableContext$1 = React.createContext({
|
|
58411
|
+
manager: {}
|
|
58412
|
+
});
|
|
58413
|
+
function sortableContainer(WrappedComponent) {
|
|
58414
|
+
var _class, _temp;
|
|
58415
|
+
|
|
58416
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
58417
|
+
withRef: false
|
|
58418
|
+
};
|
|
58419
|
+
return _temp = _class = function (_React$Component) {
|
|
58420
|
+
_inherits(WithSortableContainer, _React$Component);
|
|
58421
|
+
|
|
58422
|
+
function WithSortableContainer(props) {
|
|
58423
|
+
var _this;
|
|
58424
|
+
|
|
58425
|
+
_classCallCheck(this, WithSortableContainer);
|
|
58426
|
+
|
|
58427
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(WithSortableContainer).call(this, props));
|
|
58428
|
+
|
|
58429
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "state", {});
|
|
58430
|
+
|
|
58431
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleStart", function (event) {
|
|
58432
|
+
var _this$props = _this.props,
|
|
58433
|
+
distance = _this$props.distance,
|
|
58434
|
+
shouldCancelStart = _this$props.shouldCancelStart;
|
|
58435
|
+
|
|
58436
|
+
if (event.button === 2 || shouldCancelStart(event)) {
|
|
58437
|
+
return;
|
|
58438
|
+
}
|
|
58439
|
+
|
|
58440
|
+
_this.touched = true;
|
|
58441
|
+
_this.position = getPosition(event);
|
|
58442
|
+
var node = closest(event.target, function (el) {
|
|
58443
|
+
return el.sortableInfo != null;
|
|
58444
|
+
});
|
|
58445
|
+
|
|
58446
|
+
if (node && node.sortableInfo && _this.nodeIsChild(node) && !_this.state.sorting) {
|
|
58447
|
+
var useDragHandle = _this.props.useDragHandle;
|
|
58448
|
+
var _node$sortableInfo = node.sortableInfo,
|
|
58449
|
+
index = _node$sortableInfo.index,
|
|
58450
|
+
collection = _node$sortableInfo.collection,
|
|
58451
|
+
disabled = _node$sortableInfo.disabled;
|
|
58452
|
+
|
|
58453
|
+
if (disabled) {
|
|
58454
|
+
return;
|
|
58455
|
+
}
|
|
58456
|
+
|
|
58457
|
+
if (useDragHandle && !closest(event.target, isSortableHandle)) {
|
|
58458
|
+
return;
|
|
58459
|
+
}
|
|
58460
|
+
|
|
58461
|
+
_this.manager.active = {
|
|
58462
|
+
collection: collection,
|
|
58463
|
+
index: index
|
|
58464
|
+
};
|
|
58465
|
+
|
|
58466
|
+
if (!isTouchEvent$1(event) && event.target.tagName === NodeType.Anchor) {
|
|
58467
|
+
event.preventDefault();
|
|
58468
|
+
}
|
|
58469
|
+
|
|
58470
|
+
if (!distance) {
|
|
58471
|
+
if (_this.props.pressDelay === 0) {
|
|
58472
|
+
_this.handlePress(event);
|
|
58473
|
+
} else {
|
|
58474
|
+
_this.pressTimer = setTimeout(function () {
|
|
58475
|
+
return _this.handlePress(event);
|
|
58476
|
+
}, _this.props.pressDelay);
|
|
58477
|
+
}
|
|
58478
|
+
}
|
|
58479
|
+
}
|
|
58480
|
+
});
|
|
58481
|
+
|
|
58482
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "nodeIsChild", function (node) {
|
|
58483
|
+
return node.sortableInfo.manager === _this.manager;
|
|
58484
|
+
});
|
|
58485
|
+
|
|
58486
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleMove", function (event) {
|
|
58487
|
+
var _this$props2 = _this.props,
|
|
58488
|
+
distance = _this$props2.distance,
|
|
58489
|
+
pressThreshold = _this$props2.pressThreshold;
|
|
58490
|
+
|
|
58491
|
+
if (!_this.state.sorting && _this.touched && !_this._awaitingUpdateBeforeSortStart) {
|
|
58492
|
+
var position = getPosition(event);
|
|
58493
|
+
var delta = {
|
|
58494
|
+
x: _this.position.x - position.x,
|
|
58495
|
+
y: _this.position.y - position.y
|
|
58496
|
+
};
|
|
58497
|
+
var combinedDelta = Math.abs(delta.x) + Math.abs(delta.y);
|
|
58498
|
+
_this.delta = delta;
|
|
58499
|
+
|
|
58500
|
+
if (!distance && (!pressThreshold || combinedDelta >= pressThreshold)) {
|
|
58501
|
+
clearTimeout(_this.cancelTimer);
|
|
58502
|
+
_this.cancelTimer = setTimeout(_this.cancel, 0);
|
|
58503
|
+
} else if (distance && combinedDelta >= distance && _this.manager.isActive()) {
|
|
58504
|
+
_this.handlePress(event);
|
|
58505
|
+
}
|
|
58506
|
+
}
|
|
58507
|
+
});
|
|
58508
|
+
|
|
58509
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleEnd", function () {
|
|
58510
|
+
_this.touched = false;
|
|
58511
|
+
|
|
58512
|
+
_this.cancel();
|
|
58513
|
+
});
|
|
58514
|
+
|
|
58515
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "cancel", function () {
|
|
58516
|
+
var distance = _this.props.distance;
|
|
58517
|
+
var sorting = _this.state.sorting;
|
|
58518
|
+
|
|
58519
|
+
if (!sorting) {
|
|
58520
|
+
if (!distance) {
|
|
58521
|
+
clearTimeout(_this.pressTimer);
|
|
58522
|
+
}
|
|
58523
|
+
|
|
58524
|
+
_this.manager.active = null;
|
|
58525
|
+
}
|
|
58526
|
+
});
|
|
58527
|
+
|
|
58528
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handlePress", function (event) {
|
|
58529
|
+
try {
|
|
58530
|
+
var active = _this.manager.getActive();
|
|
58531
|
+
|
|
58532
|
+
var _temp6 = function () {
|
|
58533
|
+
if (active) {
|
|
58534
|
+
var _temp7 = function _temp7() {
|
|
58535
|
+
var index = _node.sortableInfo.index;
|
|
58536
|
+
var margin = getElementMargin(_node);
|
|
58537
|
+
var gridGap = getContainerGridGap(_this.container);
|
|
58538
|
+
|
|
58539
|
+
var containerBoundingRect = _this.scrollContainer.getBoundingClientRect();
|
|
58540
|
+
|
|
58541
|
+
var dimensions = _getHelperDimensions({
|
|
58542
|
+
index: index,
|
|
58543
|
+
node: _node,
|
|
58544
|
+
collection: _collection
|
|
58545
|
+
});
|
|
58546
|
+
|
|
58547
|
+
_this.node = _node;
|
|
58548
|
+
_this.margin = margin;
|
|
58549
|
+
_this.gridGap = gridGap;
|
|
58550
|
+
_this.width = dimensions.width;
|
|
58551
|
+
_this.height = dimensions.height;
|
|
58552
|
+
_this.marginOffset = {
|
|
58553
|
+
x: _this.margin.left + _this.margin.right + _this.gridGap.x,
|
|
58554
|
+
y: Math.max(_this.margin.top, _this.margin.bottom, _this.gridGap.y)
|
|
58555
|
+
};
|
|
58556
|
+
_this.boundingClientRect = _node.getBoundingClientRect();
|
|
58557
|
+
_this.containerBoundingRect = containerBoundingRect;
|
|
58558
|
+
_this.index = index;
|
|
58559
|
+
_this.newIndex = index;
|
|
58560
|
+
_this.axis = {
|
|
58561
|
+
x: _axis.indexOf('x') >= 0,
|
|
58562
|
+
y: _axis.indexOf('y') >= 0
|
|
58563
|
+
};
|
|
58564
|
+
_this.offsetEdge = getEdgeOffset(_node, _this.container);
|
|
58565
|
+
|
|
58566
|
+
if (_isKeySorting) {
|
|
58567
|
+
_this.initialOffset = getPosition(_objectSpread$7({}, event, {
|
|
58568
|
+
pageX: _this.boundingClientRect.left,
|
|
58569
|
+
pageY: _this.boundingClientRect.top
|
|
58570
|
+
}));
|
|
58571
|
+
} else {
|
|
58572
|
+
_this.initialOffset = getPosition(event);
|
|
58573
|
+
}
|
|
58574
|
+
|
|
58575
|
+
_this.initialScroll = {
|
|
58576
|
+
left: _this.scrollContainer.scrollLeft,
|
|
58577
|
+
top: _this.scrollContainer.scrollTop
|
|
58578
|
+
};
|
|
58579
|
+
_this.initialWindowScroll = {
|
|
58580
|
+
left: window.pageXOffset,
|
|
58581
|
+
top: window.pageYOffset
|
|
58582
|
+
};
|
|
58583
|
+
_this.helper = _this.helperContainer.appendChild(cloneNode(_node));
|
|
58584
|
+
setInlineStyles(_this.helper, {
|
|
58585
|
+
boxSizing: 'border-box',
|
|
58586
|
+
height: "".concat(_this.height, "px"),
|
|
58587
|
+
left: "".concat(_this.boundingClientRect.left - margin.left, "px"),
|
|
58588
|
+
pointerEvents: 'none',
|
|
58589
|
+
position: 'fixed',
|
|
58590
|
+
top: "".concat(_this.boundingClientRect.top - margin.top, "px"),
|
|
58591
|
+
width: "".concat(_this.width, "px")
|
|
58592
|
+
});
|
|
58593
|
+
|
|
58594
|
+
if (_isKeySorting) {
|
|
58595
|
+
_this.helper.focus();
|
|
58596
|
+
}
|
|
58597
|
+
|
|
58598
|
+
if (_hideSortableGhost) {
|
|
58599
|
+
_this.sortableGhost = _node;
|
|
58600
|
+
setInlineStyles(_node, {
|
|
58601
|
+
opacity: 0,
|
|
58602
|
+
visibility: 'hidden'
|
|
58603
|
+
});
|
|
58604
|
+
}
|
|
58605
|
+
|
|
58606
|
+
_this.minTranslate = {};
|
|
58607
|
+
_this.maxTranslate = {};
|
|
58608
|
+
|
|
58609
|
+
if (_isKeySorting) {
|
|
58610
|
+
var _ref = _useWindowAsScrollContainer ? {
|
|
58611
|
+
top: 0,
|
|
58612
|
+
left: 0,
|
|
58613
|
+
width: _this.contentWindow.innerWidth,
|
|
58614
|
+
height: _this.contentWindow.innerHeight
|
|
58615
|
+
} : _this.containerBoundingRect,
|
|
58616
|
+
containerTop = _ref.top,
|
|
58617
|
+
containerLeft = _ref.left,
|
|
58618
|
+
containerWidth = _ref.width,
|
|
58619
|
+
containerHeight = _ref.height;
|
|
58620
|
+
|
|
58621
|
+
var containerBottom = containerTop + containerHeight;
|
|
58622
|
+
var containerRight = containerLeft + containerWidth;
|
|
58623
|
+
|
|
58624
|
+
if (_this.axis.x) {
|
|
58625
|
+
_this.minTranslate.x = containerLeft - _this.boundingClientRect.left;
|
|
58626
|
+
_this.maxTranslate.x = containerRight - (_this.boundingClientRect.left + _this.width);
|
|
58627
|
+
}
|
|
58628
|
+
|
|
58629
|
+
if (_this.axis.y) {
|
|
58630
|
+
_this.minTranslate.y = containerTop - _this.boundingClientRect.top;
|
|
58631
|
+
_this.maxTranslate.y = containerBottom - (_this.boundingClientRect.top + _this.height);
|
|
58632
|
+
}
|
|
58633
|
+
} else {
|
|
58634
|
+
if (_this.axis.x) {
|
|
58635
|
+
_this.minTranslate.x = (_useWindowAsScrollContainer ? 0 : containerBoundingRect.left) - _this.boundingClientRect.left - _this.width / 2;
|
|
58636
|
+
_this.maxTranslate.x = (_useWindowAsScrollContainer ? _this.contentWindow.innerWidth : containerBoundingRect.left + containerBoundingRect.width) - _this.boundingClientRect.left - _this.width / 2;
|
|
58637
|
+
}
|
|
58638
|
+
|
|
58639
|
+
if (_this.axis.y) {
|
|
58640
|
+
_this.minTranslate.y = (_useWindowAsScrollContainer ? 0 : containerBoundingRect.top) - _this.boundingClientRect.top - _this.height / 2;
|
|
58641
|
+
_this.maxTranslate.y = (_useWindowAsScrollContainer ? _this.contentWindow.innerHeight : containerBoundingRect.top + containerBoundingRect.height) - _this.boundingClientRect.top - _this.height / 2;
|
|
58642
|
+
}
|
|
58643
|
+
}
|
|
58644
|
+
|
|
58645
|
+
if (_helperClass) {
|
|
58646
|
+
_helperClass.split(' ').forEach(function (className) {
|
|
58647
|
+
return _this.helper.classList.add(className);
|
|
58648
|
+
});
|
|
58649
|
+
}
|
|
58650
|
+
|
|
58651
|
+
_this.listenerNode = event.touches ? event.target : _this.contentWindow;
|
|
58652
|
+
|
|
58653
|
+
if (_isKeySorting) {
|
|
58654
|
+
_this.listenerNode.addEventListener('wheel', _this.handleKeyEnd, true);
|
|
58655
|
+
|
|
58656
|
+
_this.listenerNode.addEventListener('mousedown', _this.handleKeyEnd, true);
|
|
58657
|
+
|
|
58658
|
+
_this.listenerNode.addEventListener('keydown', _this.handleKeyDown);
|
|
58659
|
+
} else {
|
|
58660
|
+
events$1.move.forEach(function (eventName) {
|
|
58661
|
+
return _this.listenerNode.addEventListener(eventName, _this.handleSortMove, false);
|
|
58662
|
+
});
|
|
58663
|
+
events$1.end.forEach(function (eventName) {
|
|
58664
|
+
return _this.listenerNode.addEventListener(eventName, _this.handleSortEnd, false);
|
|
58665
|
+
});
|
|
58666
|
+
}
|
|
58667
|
+
|
|
58668
|
+
_this.setState({
|
|
58669
|
+
sorting: true,
|
|
58670
|
+
sortingIndex: index
|
|
58671
|
+
});
|
|
58672
|
+
|
|
58673
|
+
if (_onSortStart) {
|
|
58674
|
+
_onSortStart({
|
|
58675
|
+
node: _node,
|
|
58676
|
+
index: index,
|
|
58677
|
+
collection: _collection,
|
|
58678
|
+
isKeySorting: _isKeySorting,
|
|
58679
|
+
nodes: _this.manager.getOrderedRefs(),
|
|
58680
|
+
helper: _this.helper
|
|
58681
|
+
}, event);
|
|
58682
|
+
}
|
|
58683
|
+
|
|
58684
|
+
if (_isKeySorting) {
|
|
58685
|
+
_this.keyMove(0);
|
|
58686
|
+
}
|
|
58687
|
+
};
|
|
58688
|
+
|
|
58689
|
+
var _this$props3 = _this.props,
|
|
58690
|
+
_axis = _this$props3.axis,
|
|
58691
|
+
_getHelperDimensions = _this$props3.getHelperDimensions,
|
|
58692
|
+
_helperClass = _this$props3.helperClass,
|
|
58693
|
+
_hideSortableGhost = _this$props3.hideSortableGhost,
|
|
58694
|
+
updateBeforeSortStart = _this$props3.updateBeforeSortStart,
|
|
58695
|
+
_onSortStart = _this$props3.onSortStart,
|
|
58696
|
+
_useWindowAsScrollContainer = _this$props3.useWindowAsScrollContainer;
|
|
58697
|
+
var _node = active.node,
|
|
58698
|
+
_collection = active.collection;
|
|
58699
|
+
var _isKeySorting = _this.manager.isKeySorting;
|
|
58700
|
+
|
|
58701
|
+
var _temp8 = function () {
|
|
58702
|
+
if (typeof updateBeforeSortStart === 'function') {
|
|
58703
|
+
_this._awaitingUpdateBeforeSortStart = true;
|
|
58704
|
+
|
|
58705
|
+
var _temp9 = _finallyRethrows(function () {
|
|
58706
|
+
var index = _node.sortableInfo.index;
|
|
58707
|
+
return Promise.resolve(updateBeforeSortStart({
|
|
58708
|
+
collection: _collection,
|
|
58709
|
+
index: index,
|
|
58710
|
+
node: _node,
|
|
58711
|
+
isKeySorting: _isKeySorting
|
|
58712
|
+
}, event)).then(function () {});
|
|
58713
|
+
}, function (_wasThrown, _result) {
|
|
58714
|
+
_this._awaitingUpdateBeforeSortStart = false;
|
|
58715
|
+
if (_wasThrown) throw _result;
|
|
58716
|
+
return _result;
|
|
58717
|
+
});
|
|
58718
|
+
|
|
58719
|
+
if (_temp9 && _temp9.then) return _temp9.then(function () {});
|
|
58720
|
+
}
|
|
58721
|
+
}();
|
|
58722
|
+
|
|
58723
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8);
|
|
58724
|
+
}
|
|
58725
|
+
}();
|
|
58726
|
+
|
|
58727
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
58728
|
+
} catch (e) {
|
|
58729
|
+
return Promise.reject(e);
|
|
58730
|
+
}
|
|
58731
|
+
});
|
|
58732
|
+
|
|
58733
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleSortMove", function (event) {
|
|
58734
|
+
var onSortMove = _this.props.onSortMove;
|
|
58735
|
+
|
|
58736
|
+
if (typeof event.preventDefault === 'function' && event.cancelable) {
|
|
58737
|
+
event.preventDefault();
|
|
58738
|
+
}
|
|
58739
|
+
|
|
58740
|
+
_this.updateHelperPosition(event);
|
|
58741
|
+
|
|
58742
|
+
_this.animateNodes();
|
|
58743
|
+
|
|
58744
|
+
_this.autoscroll();
|
|
58745
|
+
|
|
58746
|
+
if (onSortMove) {
|
|
58747
|
+
onSortMove(event);
|
|
58748
|
+
}
|
|
58749
|
+
});
|
|
58750
|
+
|
|
58751
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleSortEnd", function (event) {
|
|
58752
|
+
var _this$props4 = _this.props,
|
|
58753
|
+
hideSortableGhost = _this$props4.hideSortableGhost,
|
|
58754
|
+
onSortEnd = _this$props4.onSortEnd;
|
|
58755
|
+
var _this$manager = _this.manager,
|
|
58756
|
+
collection = _this$manager.active.collection,
|
|
58757
|
+
isKeySorting = _this$manager.isKeySorting;
|
|
58758
|
+
|
|
58759
|
+
var nodes = _this.manager.getOrderedRefs();
|
|
58760
|
+
|
|
58761
|
+
if (_this.listenerNode) {
|
|
58762
|
+
if (isKeySorting) {
|
|
58763
|
+
_this.listenerNode.removeEventListener('wheel', _this.handleKeyEnd, true);
|
|
58764
|
+
|
|
58765
|
+
_this.listenerNode.removeEventListener('mousedown', _this.handleKeyEnd, true);
|
|
58766
|
+
|
|
58767
|
+
_this.listenerNode.removeEventListener('keydown', _this.handleKeyDown);
|
|
58768
|
+
} else {
|
|
58769
|
+
events$1.move.forEach(function (eventName) {
|
|
58770
|
+
return _this.listenerNode.removeEventListener(eventName, _this.handleSortMove);
|
|
58771
|
+
});
|
|
58772
|
+
events$1.end.forEach(function (eventName) {
|
|
58773
|
+
return _this.listenerNode.removeEventListener(eventName, _this.handleSortEnd);
|
|
58774
|
+
});
|
|
58775
|
+
}
|
|
58776
|
+
}
|
|
58777
|
+
|
|
58778
|
+
_this.helper.parentNode.removeChild(_this.helper);
|
|
58779
|
+
|
|
58780
|
+
if (hideSortableGhost && _this.sortableGhost) {
|
|
58781
|
+
setInlineStyles(_this.sortableGhost, {
|
|
58782
|
+
opacity: '',
|
|
58783
|
+
visibility: ''
|
|
58784
|
+
});
|
|
58785
|
+
}
|
|
58786
|
+
|
|
58787
|
+
for (var i = 0, len = nodes.length; i < len; i++) {
|
|
58788
|
+
var _node2 = nodes[i];
|
|
58789
|
+
var el = _node2.node;
|
|
58790
|
+
_node2.edgeOffset = null;
|
|
58791
|
+
_node2.boundingClientRect = null;
|
|
58792
|
+
setTranslate3d(el, null);
|
|
58793
|
+
setTransitionDuration(el, null);
|
|
58794
|
+
_node2.translate = null;
|
|
58795
|
+
}
|
|
58796
|
+
|
|
58797
|
+
_this.autoScroller.clear();
|
|
58798
|
+
|
|
58799
|
+
_this.manager.active = null;
|
|
58800
|
+
_this.manager.isKeySorting = false;
|
|
58801
|
+
|
|
58802
|
+
_this.setState({
|
|
58803
|
+
sorting: false,
|
|
58804
|
+
sortingIndex: null
|
|
58805
|
+
});
|
|
58806
|
+
|
|
58807
|
+
if (typeof onSortEnd === 'function') {
|
|
58808
|
+
onSortEnd({
|
|
58809
|
+
collection: collection,
|
|
58810
|
+
newIndex: _this.newIndex,
|
|
58811
|
+
oldIndex: _this.index,
|
|
58812
|
+
isKeySorting: isKeySorting,
|
|
58813
|
+
nodes: nodes
|
|
58814
|
+
}, event);
|
|
58815
|
+
}
|
|
58816
|
+
|
|
58817
|
+
_this.touched = false;
|
|
58818
|
+
});
|
|
58819
|
+
|
|
58820
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "autoscroll", function () {
|
|
58821
|
+
var disableAutoscroll = _this.props.disableAutoscroll;
|
|
58822
|
+
var isKeySorting = _this.manager.isKeySorting;
|
|
58823
|
+
|
|
58824
|
+
if (disableAutoscroll) {
|
|
58825
|
+
_this.autoScroller.clear();
|
|
58826
|
+
|
|
58827
|
+
return;
|
|
58828
|
+
}
|
|
58829
|
+
|
|
58830
|
+
if (isKeySorting) {
|
|
58831
|
+
var translate = _objectSpread$7({}, _this.translate);
|
|
58832
|
+
|
|
58833
|
+
var scrollX = 0;
|
|
58834
|
+
var scrollY = 0;
|
|
58835
|
+
|
|
58836
|
+
if (_this.axis.x) {
|
|
58837
|
+
translate.x = Math.min(_this.maxTranslate.x, Math.max(_this.minTranslate.x, _this.translate.x));
|
|
58838
|
+
scrollX = _this.translate.x - translate.x;
|
|
58839
|
+
}
|
|
58840
|
+
|
|
58841
|
+
if (_this.axis.y) {
|
|
58842
|
+
translate.y = Math.min(_this.maxTranslate.y, Math.max(_this.minTranslate.y, _this.translate.y));
|
|
58843
|
+
scrollY = _this.translate.y - translate.y;
|
|
58844
|
+
}
|
|
58845
|
+
|
|
58846
|
+
_this.translate = translate;
|
|
58847
|
+
setTranslate3d(_this.helper, _this.translate);
|
|
58848
|
+
_this.scrollContainer.scrollLeft += scrollX;
|
|
58849
|
+
_this.scrollContainer.scrollTop += scrollY;
|
|
58850
|
+
return;
|
|
58851
|
+
}
|
|
58852
|
+
|
|
58853
|
+
_this.autoScroller.update({
|
|
58854
|
+
height: _this.height,
|
|
58855
|
+
maxTranslate: _this.maxTranslate,
|
|
58856
|
+
minTranslate: _this.minTranslate,
|
|
58857
|
+
translate: _this.translate,
|
|
58858
|
+
width: _this.width
|
|
58859
|
+
});
|
|
58860
|
+
});
|
|
58861
|
+
|
|
58862
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "onAutoScroll", function (offset) {
|
|
58863
|
+
_this.translate.x += offset.left;
|
|
58864
|
+
_this.translate.y += offset.top;
|
|
58865
|
+
|
|
58866
|
+
_this.animateNodes();
|
|
58867
|
+
});
|
|
58868
|
+
|
|
58869
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleKeyDown", function (event) {
|
|
58870
|
+
var keyCode = event.keyCode;
|
|
58871
|
+
var _this$props5 = _this.props,
|
|
58872
|
+
shouldCancelStart = _this$props5.shouldCancelStart,
|
|
58873
|
+
_this$props5$keyCodes = _this$props5.keyCodes,
|
|
58874
|
+
customKeyCodes = _this$props5$keyCodes === void 0 ? {} : _this$props5$keyCodes;
|
|
58875
|
+
|
|
58876
|
+
var keyCodes = _objectSpread$7({}, defaultKeyCodes, customKeyCodes);
|
|
58877
|
+
|
|
58878
|
+
if (_this.manager.active && !_this.manager.isKeySorting || !_this.manager.active && (!keyCodes.lift.includes(keyCode) || shouldCancelStart(event) || !_this.isValidSortingTarget(event))) {
|
|
58879
|
+
return;
|
|
58880
|
+
}
|
|
58881
|
+
|
|
58882
|
+
event.stopPropagation();
|
|
58883
|
+
event.preventDefault();
|
|
58884
|
+
|
|
58885
|
+
if (keyCodes.lift.includes(keyCode) && !_this.manager.active) {
|
|
58886
|
+
_this.keyLift(event);
|
|
58887
|
+
} else if (keyCodes.drop.includes(keyCode) && _this.manager.active) {
|
|
58888
|
+
_this.keyDrop(event);
|
|
58889
|
+
} else if (keyCodes.cancel.includes(keyCode)) {
|
|
58890
|
+
_this.newIndex = _this.manager.active.index;
|
|
58891
|
+
|
|
58892
|
+
_this.keyDrop(event);
|
|
58893
|
+
} else if (keyCodes.up.includes(keyCode)) {
|
|
58894
|
+
_this.keyMove(-1);
|
|
58895
|
+
} else if (keyCodes.down.includes(keyCode)) {
|
|
58896
|
+
_this.keyMove(1);
|
|
58897
|
+
}
|
|
58898
|
+
});
|
|
58899
|
+
|
|
58900
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "keyLift", function (event) {
|
|
58901
|
+
var target = event.target;
|
|
58902
|
+
var node = closest(target, function (el) {
|
|
58903
|
+
return el.sortableInfo != null;
|
|
58904
|
+
});
|
|
58905
|
+
var _node$sortableInfo2 = node.sortableInfo,
|
|
58906
|
+
index = _node$sortableInfo2.index,
|
|
58907
|
+
collection = _node$sortableInfo2.collection;
|
|
58908
|
+
_this.initialFocusedNode = target;
|
|
58909
|
+
_this.manager.isKeySorting = true;
|
|
58910
|
+
_this.manager.active = {
|
|
58911
|
+
index: index,
|
|
58912
|
+
collection: collection
|
|
58913
|
+
};
|
|
58914
|
+
|
|
58915
|
+
_this.handlePress(event);
|
|
58916
|
+
});
|
|
58917
|
+
|
|
58918
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "keyMove", function (shift) {
|
|
58919
|
+
var nodes = _this.manager.getOrderedRefs();
|
|
58920
|
+
|
|
58921
|
+
var lastIndex = nodes[nodes.length - 1].node.sortableInfo.index;
|
|
58922
|
+
var newIndex = _this.newIndex + shift;
|
|
58923
|
+
var prevIndex = _this.newIndex;
|
|
58924
|
+
|
|
58925
|
+
if (newIndex < 0 || newIndex > lastIndex) {
|
|
58926
|
+
return;
|
|
58927
|
+
}
|
|
58928
|
+
|
|
58929
|
+
_this.prevIndex = prevIndex;
|
|
58930
|
+
_this.newIndex = newIndex;
|
|
58931
|
+
var targetIndex = getTargetIndex(_this.newIndex, _this.prevIndex, _this.index);
|
|
58932
|
+
var target = nodes.find(function (_ref2) {
|
|
58933
|
+
var node = _ref2.node;
|
|
58934
|
+
return node.sortableInfo.index === targetIndex;
|
|
58935
|
+
});
|
|
58936
|
+
var targetNode = target.node;
|
|
58937
|
+
var scrollDelta = _this.containerScrollDelta;
|
|
58938
|
+
var targetBoundingClientRect = target.boundingClientRect || getScrollAdjustedBoundingClientRect(targetNode, scrollDelta);
|
|
58939
|
+
var targetTranslate = target.translate || {
|
|
58940
|
+
x: 0,
|
|
58941
|
+
y: 0
|
|
58942
|
+
};
|
|
58943
|
+
var targetPosition = {
|
|
58944
|
+
top: targetBoundingClientRect.top + targetTranslate.y - scrollDelta.top,
|
|
58945
|
+
left: targetBoundingClientRect.left + targetTranslate.x - scrollDelta.left
|
|
58946
|
+
};
|
|
58947
|
+
var shouldAdjustForSize = prevIndex < newIndex;
|
|
58948
|
+
var sizeAdjustment = {
|
|
58949
|
+
x: shouldAdjustForSize && _this.axis.x ? targetNode.offsetWidth - _this.width : 0,
|
|
58950
|
+
y: shouldAdjustForSize && _this.axis.y ? targetNode.offsetHeight - _this.height : 0
|
|
58951
|
+
};
|
|
58952
|
+
|
|
58953
|
+
_this.handleSortMove({
|
|
58954
|
+
pageX: targetPosition.left + sizeAdjustment.x,
|
|
58955
|
+
pageY: targetPosition.top + sizeAdjustment.y,
|
|
58956
|
+
ignoreTransition: shift === 0
|
|
58957
|
+
});
|
|
58958
|
+
});
|
|
58959
|
+
|
|
58960
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "keyDrop", function (event) {
|
|
58961
|
+
_this.handleSortEnd(event);
|
|
58962
|
+
|
|
58963
|
+
if (_this.initialFocusedNode) {
|
|
58964
|
+
_this.initialFocusedNode.focus();
|
|
58965
|
+
}
|
|
58966
|
+
});
|
|
58967
|
+
|
|
58968
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "handleKeyEnd", function (event) {
|
|
58969
|
+
if (_this.manager.active) {
|
|
58970
|
+
_this.keyDrop(event);
|
|
58971
|
+
}
|
|
58972
|
+
});
|
|
58973
|
+
|
|
58974
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "isValidSortingTarget", function (event) {
|
|
58975
|
+
var useDragHandle = _this.props.useDragHandle;
|
|
58976
|
+
var target = event.target;
|
|
58977
|
+
var node = closest(target, function (el) {
|
|
58978
|
+
return el.sortableInfo != null;
|
|
58979
|
+
});
|
|
58980
|
+
return node && node.sortableInfo && !node.sortableInfo.disabled && (useDragHandle ? isSortableHandle(target) : target.sortableInfo);
|
|
58981
|
+
});
|
|
58982
|
+
|
|
58983
|
+
var manager = new Manager();
|
|
58984
|
+
validateProps(props);
|
|
58985
|
+
_this.manager = manager;
|
|
58986
|
+
_this.wrappedInstance = React.createRef();
|
|
58987
|
+
_this.sortableContextValue = {
|
|
58988
|
+
manager: manager
|
|
58989
|
+
};
|
|
58990
|
+
_this.events = {
|
|
58991
|
+
end: _this.handleEnd,
|
|
58992
|
+
move: _this.handleMove,
|
|
58993
|
+
start: _this.handleStart
|
|
58994
|
+
};
|
|
58995
|
+
return _this;
|
|
58996
|
+
}
|
|
58997
|
+
|
|
58998
|
+
_createClass(WithSortableContainer, [{
|
|
58999
|
+
key: "componentDidMount",
|
|
59000
|
+
value: function componentDidMount() {
|
|
59001
|
+
var _this2 = this;
|
|
59002
|
+
|
|
59003
|
+
var useWindowAsScrollContainer = this.props.useWindowAsScrollContainer;
|
|
59004
|
+
var container = this.getContainer();
|
|
59005
|
+
Promise.resolve(container).then(function (containerNode) {
|
|
59006
|
+
_this2.container = containerNode;
|
|
59007
|
+
_this2.document = _this2.container.ownerDocument || document;
|
|
59008
|
+
var contentWindow = _this2.props.contentWindow || _this2.document.defaultView || window;
|
|
59009
|
+
_this2.contentWindow = typeof contentWindow === 'function' ? contentWindow() : contentWindow;
|
|
59010
|
+
_this2.scrollContainer = useWindowAsScrollContainer ? _this2.document.scrollingElement || _this2.document.documentElement : getScrollingParent(_this2.container) || _this2.container;
|
|
59011
|
+
_this2.autoScroller = new AutoScroller(_this2.scrollContainer, _this2.onAutoScroll);
|
|
59012
|
+
Object.keys(_this2.events).forEach(function (key) {
|
|
59013
|
+
return events$1[key].forEach(function (eventName) {
|
|
59014
|
+
return _this2.container.addEventListener(eventName, _this2.events[key], false);
|
|
59015
|
+
});
|
|
59016
|
+
});
|
|
59017
|
+
|
|
59018
|
+
_this2.container.addEventListener('keydown', _this2.handleKeyDown);
|
|
59019
|
+
});
|
|
59020
|
+
}
|
|
59021
|
+
}, {
|
|
59022
|
+
key: "componentWillUnmount",
|
|
59023
|
+
value: function componentWillUnmount() {
|
|
59024
|
+
var _this3 = this;
|
|
59025
|
+
|
|
59026
|
+
if (this.helper && this.helper.parentNode) {
|
|
59027
|
+
this.helper.parentNode.removeChild(this.helper);
|
|
59028
|
+
}
|
|
59029
|
+
|
|
59030
|
+
if (!this.container) {
|
|
59031
|
+
return;
|
|
59032
|
+
}
|
|
59033
|
+
|
|
59034
|
+
Object.keys(this.events).forEach(function (key) {
|
|
59035
|
+
return events$1[key].forEach(function (eventName) {
|
|
59036
|
+
return _this3.container.removeEventListener(eventName, _this3.events[key]);
|
|
59037
|
+
});
|
|
59038
|
+
});
|
|
59039
|
+
this.container.removeEventListener('keydown', this.handleKeyDown);
|
|
59040
|
+
}
|
|
59041
|
+
}, {
|
|
59042
|
+
key: "updateHelperPosition",
|
|
59043
|
+
value: function updateHelperPosition(event) {
|
|
59044
|
+
var _this$props6 = this.props,
|
|
59045
|
+
lockAxis = _this$props6.lockAxis,
|
|
59046
|
+
lockOffset = _this$props6.lockOffset,
|
|
59047
|
+
lockToContainerEdges = _this$props6.lockToContainerEdges,
|
|
59048
|
+
transitionDuration = _this$props6.transitionDuration,
|
|
59049
|
+
_this$props6$keyboard = _this$props6.keyboardSortingTransitionDuration,
|
|
59050
|
+
keyboardSortingTransitionDuration = _this$props6$keyboard === void 0 ? transitionDuration : _this$props6$keyboard;
|
|
59051
|
+
var isKeySorting = this.manager.isKeySorting;
|
|
59052
|
+
var ignoreTransition = event.ignoreTransition;
|
|
59053
|
+
var offset = getPosition(event);
|
|
59054
|
+
var translate = {
|
|
59055
|
+
x: offset.x - this.initialOffset.x,
|
|
59056
|
+
y: offset.y - this.initialOffset.y
|
|
59057
|
+
};
|
|
59058
|
+
translate.y -= window.pageYOffset - this.initialWindowScroll.top;
|
|
59059
|
+
translate.x -= window.pageXOffset - this.initialWindowScroll.left;
|
|
59060
|
+
this.translate = translate;
|
|
59061
|
+
|
|
59062
|
+
if (lockToContainerEdges) {
|
|
59063
|
+
var _getLockPixelOffsets = getLockPixelOffsets({
|
|
59064
|
+
height: this.height,
|
|
59065
|
+
lockOffset: lockOffset,
|
|
59066
|
+
width: this.width
|
|
59067
|
+
}),
|
|
59068
|
+
_getLockPixelOffsets2 = _slicedToArray$1(_getLockPixelOffsets, 2),
|
|
59069
|
+
minLockOffset = _getLockPixelOffsets2[0],
|
|
59070
|
+
maxLockOffset = _getLockPixelOffsets2[1];
|
|
59071
|
+
|
|
59072
|
+
var minOffset = {
|
|
59073
|
+
x: this.width / 2 - minLockOffset.x,
|
|
59074
|
+
y: this.height / 2 - minLockOffset.y
|
|
59075
|
+
};
|
|
59076
|
+
var maxOffset = {
|
|
59077
|
+
x: this.width / 2 - maxLockOffset.x,
|
|
59078
|
+
y: this.height / 2 - maxLockOffset.y
|
|
59079
|
+
};
|
|
59080
|
+
translate.x = limit(this.minTranslate.x + minOffset.x, this.maxTranslate.x - maxOffset.x, translate.x);
|
|
59081
|
+
translate.y = limit(this.minTranslate.y + minOffset.y, this.maxTranslate.y - maxOffset.y, translate.y);
|
|
59082
|
+
}
|
|
59083
|
+
|
|
59084
|
+
if (lockAxis === 'x') {
|
|
59085
|
+
translate.y = 0;
|
|
59086
|
+
} else if (lockAxis === 'y') {
|
|
59087
|
+
translate.x = 0;
|
|
59088
|
+
}
|
|
59089
|
+
|
|
59090
|
+
if (isKeySorting && keyboardSortingTransitionDuration && !ignoreTransition) {
|
|
59091
|
+
setTransitionDuration(this.helper, keyboardSortingTransitionDuration);
|
|
59092
|
+
}
|
|
59093
|
+
|
|
59094
|
+
setTranslate3d(this.helper, translate);
|
|
59095
|
+
}
|
|
59096
|
+
}, {
|
|
59097
|
+
key: "animateNodes",
|
|
59098
|
+
value: function animateNodes() {
|
|
59099
|
+
var _this$props7 = this.props,
|
|
59100
|
+
transitionDuration = _this$props7.transitionDuration,
|
|
59101
|
+
hideSortableGhost = _this$props7.hideSortableGhost,
|
|
59102
|
+
onSortOver = _this$props7.onSortOver;
|
|
59103
|
+
var containerScrollDelta = this.containerScrollDelta,
|
|
59104
|
+
windowScrollDelta = this.windowScrollDelta;
|
|
59105
|
+
var nodes = this.manager.getOrderedRefs();
|
|
59106
|
+
var sortingOffset = {
|
|
59107
|
+
left: this.offsetEdge.left + this.translate.x + containerScrollDelta.left,
|
|
59108
|
+
top: this.offsetEdge.top + this.translate.y + containerScrollDelta.top
|
|
59109
|
+
};
|
|
59110
|
+
var isKeySorting = this.manager.isKeySorting;
|
|
59111
|
+
var prevIndex = this.newIndex;
|
|
59112
|
+
this.newIndex = null;
|
|
59113
|
+
|
|
59114
|
+
for (var i = 0, len = nodes.length; i < len; i++) {
|
|
59115
|
+
var _node3 = nodes[i].node;
|
|
59116
|
+
var index = _node3.sortableInfo.index;
|
|
59117
|
+
var width = _node3.offsetWidth;
|
|
59118
|
+
var height = _node3.offsetHeight;
|
|
59119
|
+
var offset = {
|
|
59120
|
+
height: this.height > height ? height / 2 : this.height / 2,
|
|
59121
|
+
width: this.width > width ? width / 2 : this.width / 2
|
|
59122
|
+
};
|
|
59123
|
+
var mustShiftBackward = isKeySorting && index > this.index && index <= prevIndex;
|
|
59124
|
+
var mustShiftForward = isKeySorting && index < this.index && index >= prevIndex;
|
|
59125
|
+
var translate = {
|
|
59126
|
+
x: 0,
|
|
59127
|
+
y: 0
|
|
59128
|
+
};
|
|
59129
|
+
var edgeOffset = nodes[i].edgeOffset;
|
|
59130
|
+
|
|
59131
|
+
if (!edgeOffset) {
|
|
59132
|
+
edgeOffset = getEdgeOffset(_node3, this.container);
|
|
59133
|
+
nodes[i].edgeOffset = edgeOffset;
|
|
59134
|
+
|
|
59135
|
+
if (isKeySorting) {
|
|
59136
|
+
nodes[i].boundingClientRect = getScrollAdjustedBoundingClientRect(_node3, containerScrollDelta);
|
|
59137
|
+
}
|
|
59138
|
+
}
|
|
59139
|
+
|
|
59140
|
+
var nextNode = i < nodes.length - 1 && nodes[i + 1];
|
|
59141
|
+
var prevNode = i > 0 && nodes[i - 1];
|
|
59142
|
+
|
|
59143
|
+
if (nextNode && !nextNode.edgeOffset) {
|
|
59144
|
+
nextNode.edgeOffset = getEdgeOffset(nextNode.node, this.container);
|
|
59145
|
+
|
|
59146
|
+
if (isKeySorting) {
|
|
59147
|
+
nextNode.boundingClientRect = getScrollAdjustedBoundingClientRect(nextNode.node, containerScrollDelta);
|
|
59148
|
+
}
|
|
59149
|
+
}
|
|
59150
|
+
|
|
59151
|
+
if (index === this.index) {
|
|
59152
|
+
if (hideSortableGhost) {
|
|
59153
|
+
this.sortableGhost = _node3;
|
|
59154
|
+
setInlineStyles(_node3, {
|
|
59155
|
+
opacity: 0,
|
|
59156
|
+
visibility: 'hidden'
|
|
59157
|
+
});
|
|
59158
|
+
}
|
|
59159
|
+
|
|
59160
|
+
continue;
|
|
59161
|
+
}
|
|
59162
|
+
|
|
59163
|
+
if (transitionDuration) {
|
|
59164
|
+
setTransitionDuration(_node3, transitionDuration);
|
|
59165
|
+
}
|
|
59166
|
+
|
|
59167
|
+
if (this.axis.x) {
|
|
59168
|
+
if (this.axis.y) {
|
|
59169
|
+
if (mustShiftForward || index < this.index && (sortingOffset.left + windowScrollDelta.left - offset.width <= edgeOffset.left && sortingOffset.top + windowScrollDelta.top <= edgeOffset.top + offset.height || sortingOffset.top + windowScrollDelta.top + offset.height <= edgeOffset.top)) {
|
|
59170
|
+
translate.x = this.width + this.marginOffset.x;
|
|
59171
|
+
|
|
59172
|
+
if (edgeOffset.left + translate.x > this.containerBoundingRect.width - offset.width) {
|
|
59173
|
+
if (nextNode) {
|
|
59174
|
+
translate.x = nextNode.edgeOffset.left - edgeOffset.left;
|
|
59175
|
+
translate.y = nextNode.edgeOffset.top - edgeOffset.top;
|
|
59176
|
+
}
|
|
59177
|
+
}
|
|
59178
|
+
|
|
59179
|
+
if (this.newIndex === null) {
|
|
59180
|
+
this.newIndex = index;
|
|
59181
|
+
}
|
|
59182
|
+
} else if (mustShiftBackward || index > this.index && (sortingOffset.left + windowScrollDelta.left + offset.width >= edgeOffset.left && sortingOffset.top + windowScrollDelta.top + offset.height >= edgeOffset.top || sortingOffset.top + windowScrollDelta.top + offset.height >= edgeOffset.top + height)) {
|
|
59183
|
+
translate.x = -(this.width + this.marginOffset.x);
|
|
59184
|
+
|
|
59185
|
+
if (edgeOffset.left + translate.x < this.containerBoundingRect.left + offset.width) {
|
|
59186
|
+
if (prevNode) {
|
|
59187
|
+
translate.x = prevNode.edgeOffset.left - edgeOffset.left;
|
|
59188
|
+
translate.y = prevNode.edgeOffset.top - edgeOffset.top;
|
|
59189
|
+
}
|
|
59190
|
+
}
|
|
59191
|
+
|
|
59192
|
+
this.newIndex = index;
|
|
59193
|
+
}
|
|
59194
|
+
} else {
|
|
59195
|
+
if (mustShiftBackward || index > this.index && sortingOffset.left + windowScrollDelta.left + offset.width >= edgeOffset.left) {
|
|
59196
|
+
translate.x = -(this.width + this.marginOffset.x);
|
|
59197
|
+
this.newIndex = index;
|
|
59198
|
+
} else if (mustShiftForward || index < this.index && sortingOffset.left + windowScrollDelta.left <= edgeOffset.left + offset.width) {
|
|
59199
|
+
translate.x = this.width + this.marginOffset.x;
|
|
59200
|
+
|
|
59201
|
+
if (this.newIndex == null) {
|
|
59202
|
+
this.newIndex = index;
|
|
59203
|
+
}
|
|
59204
|
+
}
|
|
59205
|
+
}
|
|
59206
|
+
} else if (this.axis.y) {
|
|
59207
|
+
if (mustShiftBackward || index > this.index && sortingOffset.top + windowScrollDelta.top + offset.height >= edgeOffset.top) {
|
|
59208
|
+
translate.y = -(this.height + this.marginOffset.y);
|
|
59209
|
+
this.newIndex = index;
|
|
59210
|
+
} else if (mustShiftForward || index < this.index && sortingOffset.top + windowScrollDelta.top <= edgeOffset.top + offset.height) {
|
|
59211
|
+
translate.y = this.height + this.marginOffset.y;
|
|
59212
|
+
|
|
59213
|
+
if (this.newIndex == null) {
|
|
59214
|
+
this.newIndex = index;
|
|
59215
|
+
}
|
|
59216
|
+
}
|
|
59217
|
+
}
|
|
59218
|
+
|
|
59219
|
+
setTranslate3d(_node3, translate);
|
|
59220
|
+
nodes[i].translate = translate;
|
|
59221
|
+
}
|
|
59222
|
+
|
|
59223
|
+
if (this.newIndex == null) {
|
|
59224
|
+
this.newIndex = this.index;
|
|
59225
|
+
}
|
|
59226
|
+
|
|
59227
|
+
if (isKeySorting) {
|
|
59228
|
+
this.newIndex = prevIndex;
|
|
59229
|
+
}
|
|
59230
|
+
|
|
59231
|
+
var oldIndex = isKeySorting ? this.prevIndex : prevIndex;
|
|
59232
|
+
|
|
59233
|
+
if (onSortOver && this.newIndex !== oldIndex) {
|
|
59234
|
+
onSortOver({
|
|
59235
|
+
collection: this.manager.active.collection,
|
|
59236
|
+
index: this.index,
|
|
59237
|
+
newIndex: this.newIndex,
|
|
59238
|
+
oldIndex: oldIndex,
|
|
59239
|
+
isKeySorting: isKeySorting,
|
|
59240
|
+
nodes: nodes,
|
|
59241
|
+
helper: this.helper
|
|
59242
|
+
});
|
|
59243
|
+
}
|
|
59244
|
+
}
|
|
59245
|
+
}, {
|
|
59246
|
+
key: "getWrappedInstance",
|
|
59247
|
+
value: function getWrappedInstance() {
|
|
59248
|
+
invariant_1(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call');
|
|
59249
|
+
return this.wrappedInstance.current;
|
|
59250
|
+
}
|
|
59251
|
+
}, {
|
|
59252
|
+
key: "getContainer",
|
|
59253
|
+
value: function getContainer() {
|
|
59254
|
+
var getContainer = this.props.getContainer;
|
|
59255
|
+
|
|
59256
|
+
if (typeof getContainer !== 'function') {
|
|
59257
|
+
return require$$2.findDOMNode(this);
|
|
59258
|
+
}
|
|
59259
|
+
|
|
59260
|
+
return getContainer(config.withRef ? this.getWrappedInstance() : undefined);
|
|
59261
|
+
}
|
|
59262
|
+
}, {
|
|
59263
|
+
key: "render",
|
|
59264
|
+
value: function render() {
|
|
59265
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
59266
|
+
return React.createElement(SortableContext$1.Provider, {
|
|
59267
|
+
value: this.sortableContextValue
|
|
59268
|
+
}, React.createElement(WrappedComponent, _extends$5({
|
|
59269
|
+
ref: ref
|
|
59270
|
+
}, omit$1(this.props, omittedProps))));
|
|
59271
|
+
}
|
|
59272
|
+
}, {
|
|
59273
|
+
key: "helperContainer",
|
|
59274
|
+
get: function get() {
|
|
59275
|
+
var helperContainer = this.props.helperContainer;
|
|
59276
|
+
|
|
59277
|
+
if (typeof helperContainer === 'function') {
|
|
59278
|
+
return helperContainer();
|
|
59279
|
+
}
|
|
59280
|
+
|
|
59281
|
+
return this.props.helperContainer || this.document.body;
|
|
59282
|
+
}
|
|
59283
|
+
}, {
|
|
59284
|
+
key: "containerScrollDelta",
|
|
59285
|
+
get: function get() {
|
|
59286
|
+
var useWindowAsScrollContainer = this.props.useWindowAsScrollContainer;
|
|
59287
|
+
|
|
59288
|
+
if (useWindowAsScrollContainer) {
|
|
59289
|
+
return {
|
|
59290
|
+
left: 0,
|
|
59291
|
+
top: 0
|
|
59292
|
+
};
|
|
59293
|
+
}
|
|
59294
|
+
|
|
59295
|
+
return {
|
|
59296
|
+
left: this.scrollContainer.scrollLeft - this.initialScroll.left,
|
|
59297
|
+
top: this.scrollContainer.scrollTop - this.initialScroll.top
|
|
59298
|
+
};
|
|
59299
|
+
}
|
|
59300
|
+
}, {
|
|
59301
|
+
key: "windowScrollDelta",
|
|
59302
|
+
get: function get() {
|
|
59303
|
+
return {
|
|
59304
|
+
left: this.contentWindow.pageXOffset - this.initialWindowScroll.left,
|
|
59305
|
+
top: this.contentWindow.pageYOffset - this.initialWindowScroll.top
|
|
59306
|
+
};
|
|
59307
|
+
}
|
|
59308
|
+
}]);
|
|
59309
|
+
|
|
59310
|
+
return WithSortableContainer;
|
|
59311
|
+
}(React.Component), _defineProperty$1(_class, "displayName", provideDisplayName('sortableList', WrappedComponent)), _defineProperty$1(_class, "defaultProps", defaultProps), _defineProperty$1(_class, "propTypes", propTypes$1), _temp;
|
|
59312
|
+
}
|
|
59313
|
+
|
|
59314
|
+
var propTypes$1$1 = {
|
|
59315
|
+
index: propTypes.number.isRequired,
|
|
59316
|
+
collection: propTypes.oneOfType([propTypes.number, propTypes.string]),
|
|
59317
|
+
disabled: propTypes.bool
|
|
59318
|
+
};
|
|
59319
|
+
var omittedProps$1 = Object.keys(propTypes$1$1);
|
|
59320
|
+
function sortableElement(WrappedComponent) {
|
|
59321
|
+
var _class, _temp;
|
|
59322
|
+
|
|
59323
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
59324
|
+
withRef: false
|
|
59325
|
+
};
|
|
59326
|
+
return _temp = _class = function (_React$Component) {
|
|
59327
|
+
_inherits(WithSortableElement, _React$Component);
|
|
59328
|
+
|
|
59329
|
+
function WithSortableElement() {
|
|
59330
|
+
var _getPrototypeOf2;
|
|
59331
|
+
|
|
59332
|
+
var _this;
|
|
59333
|
+
|
|
59334
|
+
_classCallCheck(this, WithSortableElement);
|
|
59335
|
+
|
|
59336
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59337
|
+
args[_key] = arguments[_key];
|
|
59338
|
+
}
|
|
59339
|
+
|
|
59340
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WithSortableElement)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
59341
|
+
|
|
59342
|
+
_defineProperty$1(_assertThisInitialized(_assertThisInitialized(_this)), "wrappedInstance", React.createRef());
|
|
59343
|
+
|
|
59344
|
+
return _this;
|
|
59345
|
+
}
|
|
59346
|
+
|
|
59347
|
+
_createClass(WithSortableElement, [{
|
|
59348
|
+
key: "componentDidMount",
|
|
59349
|
+
value: function componentDidMount() {
|
|
59350
|
+
this.register();
|
|
59351
|
+
}
|
|
59352
|
+
}, {
|
|
59353
|
+
key: "componentDidUpdate",
|
|
59354
|
+
value: function componentDidUpdate(prevProps) {
|
|
59355
|
+
if (this.node) {
|
|
59356
|
+
if (prevProps.index !== this.props.index) {
|
|
59357
|
+
this.node.sortableInfo.index = this.props.index;
|
|
59358
|
+
}
|
|
59359
|
+
|
|
59360
|
+
if (prevProps.disabled !== this.props.disabled) {
|
|
59361
|
+
this.node.sortableInfo.disabled = this.props.disabled;
|
|
59362
|
+
}
|
|
59363
|
+
}
|
|
59364
|
+
|
|
59365
|
+
if (prevProps.collection !== this.props.collection) {
|
|
59366
|
+
this.unregister(prevProps.collection);
|
|
59367
|
+
this.register();
|
|
59368
|
+
}
|
|
59369
|
+
}
|
|
59370
|
+
}, {
|
|
59371
|
+
key: "componentWillUnmount",
|
|
59372
|
+
value: function componentWillUnmount() {
|
|
59373
|
+
this.unregister();
|
|
59374
|
+
}
|
|
59375
|
+
}, {
|
|
59376
|
+
key: "register",
|
|
59377
|
+
value: function register() {
|
|
59378
|
+
var _this$props = this.props,
|
|
59379
|
+
collection = _this$props.collection,
|
|
59380
|
+
disabled = _this$props.disabled,
|
|
59381
|
+
index = _this$props.index;
|
|
59382
|
+
var node = require$$2.findDOMNode(this);
|
|
59383
|
+
node.sortableInfo = {
|
|
59384
|
+
collection: collection,
|
|
59385
|
+
disabled: disabled,
|
|
59386
|
+
index: index,
|
|
59387
|
+
manager: this.context.manager
|
|
59388
|
+
};
|
|
59389
|
+
this.node = node;
|
|
59390
|
+
this.ref = {
|
|
59391
|
+
node: node
|
|
59392
|
+
};
|
|
59393
|
+
this.context.manager.add(collection, this.ref);
|
|
59394
|
+
}
|
|
59395
|
+
}, {
|
|
59396
|
+
key: "unregister",
|
|
59397
|
+
value: function unregister() {
|
|
59398
|
+
var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.collection;
|
|
59399
|
+
this.context.manager.remove(collection, this.ref);
|
|
59400
|
+
}
|
|
59401
|
+
}, {
|
|
59402
|
+
key: "getWrappedInstance",
|
|
59403
|
+
value: function getWrappedInstance() {
|
|
59404
|
+
invariant_1(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call');
|
|
59405
|
+
return this.wrappedInstance.current;
|
|
59406
|
+
}
|
|
59407
|
+
}, {
|
|
59408
|
+
key: "render",
|
|
59409
|
+
value: function render() {
|
|
59410
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
59411
|
+
return React.createElement(WrappedComponent, _extends$5({
|
|
59412
|
+
ref: ref
|
|
59413
|
+
}, omit$1(this.props, omittedProps$1)));
|
|
59414
|
+
}
|
|
59415
|
+
}]);
|
|
59416
|
+
|
|
59417
|
+
return WithSortableElement;
|
|
59418
|
+
}(React.Component), _defineProperty$1(_class, "displayName", provideDisplayName('sortableElement', WrappedComponent)), _defineProperty$1(_class, "contextType", SortableContext$1), _defineProperty$1(_class, "propTypes", propTypes$1$1), _defineProperty$1(_class, "defaultProps", {
|
|
59419
|
+
collection: 0
|
|
59420
|
+
}), _temp;
|
|
59421
|
+
}
|
|
59422
|
+
|
|
57769
59423
|
var ProCardActions = function ProCardActions(props) {
|
|
57770
59424
|
var actions = props.actions,
|
|
57771
59425
|
prefixCls = props.prefixCls;
|
|
@@ -73993,8 +75647,26 @@
|
|
|
73993
75647
|
editConfig: editConfig
|
|
73994
75648
|
};
|
|
73995
75649
|
|
|
73996
|
-
var _excluded$$ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck", "rowSelection", "columnsState", "tableRowType"]
|
|
75650
|
+
var _excluded$$ = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "customCheck", "rowSelection", "columnsState", "onChange", "tableRowType", "size"],
|
|
75651
|
+
_excluded2$h = ["className", "style"];
|
|
73997
75652
|
var Summary = ProviderWarp.Summary;
|
|
75653
|
+
var DragHandle = sortableHandle(function () {
|
|
75654
|
+
return /*#__PURE__*/React__default['default'].createElement(MenuOutlined$2, {
|
|
75655
|
+
style: {
|
|
75656
|
+
cursor: 'grab',
|
|
75657
|
+
color: '#999'
|
|
75658
|
+
}
|
|
75659
|
+
});
|
|
75660
|
+
});
|
|
75661
|
+
var sortDefaultColumnItem = {
|
|
75662
|
+
title: '排序',
|
|
75663
|
+
dataIndex: 'sort',
|
|
75664
|
+
width: 60,
|
|
75665
|
+
className: 'drag-visible',
|
|
75666
|
+
render: function render() {
|
|
75667
|
+
return /*#__PURE__*/React__default['default'].createElement(DragHandle, null);
|
|
75668
|
+
}
|
|
75669
|
+
};
|
|
73998
75670
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
73999
75671
|
var dataSource = props.dataSource,
|
|
74000
75672
|
autoSize = props.autoSize,
|
|
@@ -74007,12 +75679,16 @@
|
|
|
74007
75679
|
hiddenPage = props.hiddenPage,
|
|
74008
75680
|
loading = props.loading,
|
|
74009
75681
|
_props$virtual = props.virtual,
|
|
74010
|
-
|
|
75682
|
+
_props$sortOpen = props.sortOpen,
|
|
75683
|
+
sortOpen = _props$sortOpen === void 0 ? false : _props$sortOpen,
|
|
74011
75684
|
customCheck = props.customCheck,
|
|
74012
75685
|
rowSelection = props.rowSelection,
|
|
74013
75686
|
columnsState = props.columnsState,
|
|
75687
|
+
onChange = props.onChange,
|
|
74014
75688
|
_props$tableRowType = props.tableRowType,
|
|
74015
75689
|
tableRowType = _props$tableRowType === void 0 ? 'default' : _props$tableRowType,
|
|
75690
|
+
_props$size = props.size,
|
|
75691
|
+
size = _props$size === void 0 ? 'default' : _props$size,
|
|
74016
75692
|
resetProps = _objectWithoutProperties(props, _excluded$$);
|
|
74017
75693
|
|
|
74018
75694
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
@@ -74041,7 +75717,49 @@
|
|
|
74041
75717
|
var _useState7 = React.useState(),
|
|
74042
75718
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
74043
75719
|
columnsStateMap = _useState8[0],
|
|
74044
|
-
setColumnsStateMap = _useState8[1];
|
|
75720
|
+
setColumnsStateMap = _useState8[1];
|
|
75721
|
+
|
|
75722
|
+
var SortableItem = sortableElement(function (props) {
|
|
75723
|
+
return /*#__PURE__*/React__default['default'].createElement("tr", props);
|
|
75724
|
+
});
|
|
75725
|
+
var SortContainer = sortableContainer(function (props) {
|
|
75726
|
+
return /*#__PURE__*/React__default['default'].createElement("tbody", props);
|
|
75727
|
+
});
|
|
75728
|
+
|
|
75729
|
+
var onSortEnd = function onSortEnd(_ref) {
|
|
75730
|
+
var oldIndex = _ref.oldIndex,
|
|
75731
|
+
newIndex = _ref.newIndex;
|
|
75732
|
+
|
|
75733
|
+
if (oldIndex !== newIndex) {
|
|
75734
|
+
var newData = arrayMove(dataSource, oldIndex, newIndex).filter(function (el) {
|
|
75735
|
+
return !!el;
|
|
75736
|
+
});
|
|
75737
|
+
console.log(newData, 'nnnnnn'); // setDataSource([...newData])
|
|
75738
|
+
}
|
|
75739
|
+
};
|
|
75740
|
+
|
|
75741
|
+
var DraggableContainer = function DraggableContainer(props) {
|
|
75742
|
+
return /*#__PURE__*/React__default['default'].createElement(SortContainer, _extends({
|
|
75743
|
+
useDragHandle: true,
|
|
75744
|
+
disableAutoscroll: true,
|
|
75745
|
+
helperClass: "row-dragging",
|
|
75746
|
+
onSortEnd: onSortEnd
|
|
75747
|
+
}, props));
|
|
75748
|
+
};
|
|
75749
|
+
|
|
75750
|
+
var DraggableBodyRow = function DraggableBodyRow(props) {
|
|
75751
|
+
var className = props.className,
|
|
75752
|
+
style = props.style,
|
|
75753
|
+
restProps = _objectWithoutProperties(props, _excluded2$h);
|
|
75754
|
+
|
|
75755
|
+
var index = dataSource.findIndex(function (x) {
|
|
75756
|
+
return x[rowKey || 'index'] === restProps['data-row-key'];
|
|
75757
|
+
});
|
|
75758
|
+
console.log(dataSource, restProps, 222, index);
|
|
75759
|
+
return /*#__PURE__*/React__default['default'].createElement(SortableItem, _extends({
|
|
75760
|
+
index: index
|
|
75761
|
+
}, restProps));
|
|
75762
|
+
}; // 原宽度,先宽度,序号
|
|
74045
75763
|
|
|
74046
75764
|
|
|
74047
75765
|
var handleResize = function handleResize(sc, size, index) {
|
|
@@ -74058,7 +75776,7 @@
|
|
|
74058
75776
|
};
|
|
74059
75777
|
|
|
74060
75778
|
var resetColumns = React.useCallback(function () {
|
|
74061
|
-
|
|
75779
|
+
var result = useColumns.filter(function (item) {
|
|
74062
75780
|
return item.show !== false;
|
|
74063
75781
|
}).map(function (col, index) {
|
|
74064
75782
|
return _objectSpread(_objectSpread({}, col), {}, {
|
|
@@ -74073,7 +75791,9 @@
|
|
|
74073
75791
|
}
|
|
74074
75792
|
});
|
|
74075
75793
|
});
|
|
74076
|
-
|
|
75794
|
+
console.log(sortOpen ? [sortDefaultColumnItem].concat(_toConsumableArray(result)) : result, sortOpen, 111);
|
|
75795
|
+
return sortOpen ? [sortDefaultColumnItem].concat(_toConsumableArray(result)) : result;
|
|
75796
|
+
}, [useColumns, sortOpen]);
|
|
74077
75797
|
React.useEffect(function () {
|
|
74078
75798
|
setColumns(columns);
|
|
74079
75799
|
}, [columns]); // 行点击事件
|
|
@@ -74130,7 +75850,6 @@
|
|
|
74130
75850
|
columnsState: {
|
|
74131
75851
|
value: columnsStateMap,
|
|
74132
75852
|
onChange: function onChange(k) {
|
|
74133
|
-
console.log(k, 'kkk');
|
|
74134
75853
|
setColumnsStateMap(k);
|
|
74135
75854
|
}
|
|
74136
75855
|
},
|
|
@@ -74175,7 +75894,8 @@
|
|
|
74175
75894
|
rowClassName: function rowClassName(record) {
|
|
74176
75895
|
return record[rowKey] === useActiveKey ? 'row-active' : '';
|
|
74177
75896
|
},
|
|
74178
|
-
columns: resetColumns()
|
|
75897
|
+
columns: resetColumns(),
|
|
75898
|
+
size: size
|
|
74179
75899
|
}, resetProps);
|
|
74180
75900
|
}, [useColumns, useSelectedRows, columnsStateMap, resetProps, autoSize.height]);
|
|
74181
75901
|
var resultColumns = React.useMemo(function () {
|
|
@@ -74211,10 +75931,10 @@
|
|
|
74211
75931
|
|
|
74212
75932
|
columns === null || columns === void 0 ? void 0 : columns.forEach(function (item) {
|
|
74213
75933
|
/** 目前支持三种 */
|
|
74214
|
-
var
|
|
74215
|
-
order =
|
|
74216
|
-
show =
|
|
74217
|
-
fixed =
|
|
75934
|
+
var _ref2 = obj[item.dataIndex || item.key] || {},
|
|
75935
|
+
order = _ref2.order,
|
|
75936
|
+
show = _ref2.show,
|
|
75937
|
+
fixed = _ref2.fixed;
|
|
74218
75938
|
|
|
74219
75939
|
obj[item.dataIndex || item.key] = {
|
|
74220
75940
|
fixed: fixed || item.fixed,
|
|
@@ -74272,6 +75992,23 @@
|
|
|
74272
75992
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u6682\u65E0\u6570\u636E"));
|
|
74273
75993
|
};
|
|
74274
75994
|
|
|
75995
|
+
var onTableChange = function onTableChange(pagination, filters, sorter, extra) {
|
|
75996
|
+
var resultColumns = useColumns.map(function (item) {
|
|
75997
|
+
var obj = _objectSpread({}, item);
|
|
75998
|
+
|
|
75999
|
+
if (filters[obj.dataIndex]) {
|
|
76000
|
+
obj['filteredValue'] = filters[obj.dataIndex];
|
|
76001
|
+
}
|
|
76002
|
+
|
|
76003
|
+
if ((sorter === null || sorter === void 0 ? void 0 : sorter.field) === obj.dataIndex) {
|
|
76004
|
+
obj['sortOrder'] = sorter.order;
|
|
76005
|
+
}
|
|
76006
|
+
|
|
76007
|
+
return obj;
|
|
76008
|
+
});
|
|
76009
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(resultColumns, pagination, filters, sorter, extra);
|
|
76010
|
+
};
|
|
76011
|
+
|
|
74275
76012
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
74276
76013
|
style: {
|
|
74277
76014
|
height: '100%',
|
|
@@ -74282,7 +76019,13 @@
|
|
|
74282
76019
|
}, /*#__PURE__*/React__default['default'].createElement(ProviderWarp, _extends({}, config, {
|
|
74283
76020
|
loading: loading,
|
|
74284
76021
|
dataSource: dataSource,
|
|
74285
|
-
components:
|
|
76022
|
+
components: sortOpen ? {
|
|
76023
|
+
body: {
|
|
76024
|
+
wrapper: DraggableContainer,
|
|
76025
|
+
row: DraggableBodyRow
|
|
76026
|
+
}
|
|
76027
|
+
} : null,
|
|
76028
|
+
onChange: onTableChange,
|
|
74286
76029
|
tableClassName: "lm_protable",
|
|
74287
76030
|
summary: function summary(pageData) {
|
|
74288
76031
|
return _summary && _summary(pageData, resultColumns);
|
|
@@ -75959,7 +77702,7 @@
|
|
|
75959
77702
|
case 'ok':
|
|
75960
77703
|
return /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
|
|
75961
77704
|
size: 4
|
|
75962
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
77705
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
75963
77706
|
type: "lmweb-check-circle-fill",
|
|
75964
77707
|
style: {
|
|
75965
77708
|
color: '#51c41a',
|
|
@@ -75970,7 +77713,7 @@
|
|
|
75970
77713
|
case 'wait':
|
|
75971
77714
|
return /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
|
|
75972
77715
|
size: 4
|
|
75973
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
77716
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
75974
77717
|
type: "lmweb-time-circle-fill",
|
|
75975
77718
|
style: {
|
|
75976
77719
|
color: '#1890fc',
|
|
@@ -75981,7 +77724,7 @@
|
|
|
75981
77724
|
case 'disable':
|
|
75982
77725
|
return /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
|
|
75983
77726
|
size: 4
|
|
75984
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
77727
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
75985
77728
|
type: "lmweb-stop",
|
|
75986
77729
|
style: {
|
|
75987
77730
|
fontSize: 14
|
|
@@ -75991,7 +77734,7 @@
|
|
|
75991
77734
|
default:
|
|
75992
77735
|
return /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], {
|
|
75993
77736
|
size: 4
|
|
75994
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
77737
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
75995
77738
|
type: "lmweb-check-circle-fill",
|
|
75996
77739
|
style: {
|
|
75997
77740
|
color: '#51c41a',
|
|
@@ -76219,11 +77962,14 @@
|
|
|
76219
77962
|
code: 'code',
|
|
76220
77963
|
state: 'state',
|
|
76221
77964
|
tags: 'tags',
|
|
77965
|
+
|
|
77966
|
+
/** 是否支持选择 */
|
|
76222
77967
|
checkbox: false,
|
|
76223
77968
|
singleRender: stateRender,
|
|
76224
77969
|
mapRender: function mapRender(v, i) {
|
|
76225
77970
|
return /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
76226
77971
|
key: i,
|
|
77972
|
+
size: 'small',
|
|
76227
77973
|
icon: v.icon || /*#__PURE__*/React__default['default'].createElement(StarFilled$2, {
|
|
76228
77974
|
style: {
|
|
76229
77975
|
color: 'rgb(253,77,78)'
|
|
@@ -76374,7 +78120,9 @@
|
|
|
76374
78120
|
}));
|
|
76375
78121
|
};
|
|
76376
78122
|
|
|
76377
|
-
var Footer = function Footer() {
|
|
78123
|
+
var Footer = function Footer(_ref) {
|
|
78124
|
+
var customCheck = _ref.customCheck;
|
|
78125
|
+
|
|
76378
78126
|
var _useContext = React.useContext(Context$4),
|
|
76379
78127
|
dispatch = _useContext.dispatch,
|
|
76380
78128
|
data = _useContext.data,
|
|
@@ -76399,7 +78147,9 @@
|
|
|
76399
78147
|
pageSize: (defaultPage === null || defaultPage === void 0 ? void 0 : defaultPage.pageSize) || 20
|
|
76400
78148
|
};
|
|
76401
78149
|
}, [defaultPage]);
|
|
76402
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
78150
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !!customCheck && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
78151
|
+
className: "lm_customCheck"
|
|
78152
|
+
}, customCheck), /*#__PURE__*/React__default['default'].createElement(LMPagination, _extends({
|
|
76403
78153
|
showSizeChanger: true,
|
|
76404
78154
|
showQuickJumper: true,
|
|
76405
78155
|
showTotal: function showTotal(total) {
|
|
@@ -76407,10 +78157,10 @@
|
|
|
76407
78157
|
},
|
|
76408
78158
|
size: "small",
|
|
76409
78159
|
onChange: onPageChange
|
|
76410
|
-
}, config));
|
|
78160
|
+
}, config)));
|
|
76411
78161
|
};
|
|
76412
78162
|
|
|
76413
|
-
var _excluded$11 = ["style", "defaultPage"];
|
|
78163
|
+
var _excluded$11 = ["style", "defaultPage", "customCheck", "rowSelection"];
|
|
76414
78164
|
var initialState$2 = {
|
|
76415
78165
|
// 选中的数据
|
|
76416
78166
|
checkList: [],
|
|
@@ -76451,6 +78201,8 @@
|
|
|
76451
78201
|
var ImgTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
76452
78202
|
var style = props.style,
|
|
76453
78203
|
defaultPage = props.defaultPage,
|
|
78204
|
+
customCheck = props.customCheck,
|
|
78205
|
+
rowSelection = props.rowSelection,
|
|
76454
78206
|
resetProps = _objectWithoutProperties(props, _excluded$11);
|
|
76455
78207
|
|
|
76456
78208
|
var _useReducer = React.useReducer(reducer$3, initialState$2),
|
|
@@ -76472,6 +78224,7 @@
|
|
|
76472
78224
|
}
|
|
76473
78225
|
};
|
|
76474
78226
|
});
|
|
78227
|
+
React.useEffect(function () {}, []);
|
|
76475
78228
|
return /*#__PURE__*/React__default['default'].createElement(Context$4.Provider, {
|
|
76476
78229
|
value: _objectSpread(_objectSpread({
|
|
76477
78230
|
dispatch: dispatch
|
|
@@ -76488,7 +78241,9 @@
|
|
|
76488
78241
|
})
|
|
76489
78242
|
}, /*#__PURE__*/React__default['default'].createElement(ResizeSize$1, null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
76490
78243
|
className: "lm_img_footer"
|
|
76491
|
-
}, /*#__PURE__*/React__default['default'].createElement(Footer,
|
|
78244
|
+
}, /*#__PURE__*/React__default['default'].createElement(Footer, {
|
|
78245
|
+
customCheck: customCheck
|
|
78246
|
+
}))));
|
|
76492
78247
|
});
|
|
76493
78248
|
|
|
76494
78249
|
Table.ImgTable = ImgTable;
|
|
@@ -76731,7 +78486,7 @@
|
|
|
76731
78486
|
};
|
|
76732
78487
|
|
|
76733
78488
|
var _excluded$12 = ["item"],
|
|
76734
|
-
_excluded2$
|
|
78489
|
+
_excluded2$i = ["item"],
|
|
76735
78490
|
_excluded3$4 = ["type"];
|
|
76736
78491
|
|
|
76737
78492
|
var imgEmpty$1 = require('./icon_placeholder.png');
|
|
@@ -76913,7 +78668,7 @@
|
|
|
76913
78668
|
className: "filter_list"
|
|
76914
78669
|
}, function (_ref6) {
|
|
76915
78670
|
var item = _ref6.item,
|
|
76916
|
-
resetProps = _objectWithoutProperties(_ref6, _excluded2$
|
|
78671
|
+
resetProps = _objectWithoutProperties(_ref6, _excluded2$i);
|
|
76917
78672
|
|
|
76918
78673
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
76919
78674
|
className: classnames('filter_item', {
|
|
@@ -77070,7 +78825,7 @@
|
|
|
77070
78825
|
className: "filter_item_value"
|
|
77071
78826
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77072
78827
|
className: "checked"
|
|
77073
|
-
}, isFiltering ? text : '全部'), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
78828
|
+
}, isFiltering ? text : '全部'), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77074
78829
|
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
77075
78830
|
className: "addonAfter",
|
|
77076
78831
|
onClick: handleClear
|
|
@@ -77221,7 +78976,7 @@
|
|
|
77221
78976
|
className: "filter_item_value"
|
|
77222
78977
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
77223
78978
|
className: "checked"
|
|
77224
|
-
}, checkedValue), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
78979
|
+
}, checkedValue), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77225
78980
|
type: isFiltering ? 'lmweb-close-circle-fill' : 'lmweb-down',
|
|
77226
78981
|
className: "addonAfter",
|
|
77227
78982
|
onClick: handleClear
|
|
@@ -77566,7 +79321,7 @@
|
|
|
77566
79321
|
var Icon = function Icon() {
|
|
77567
79322
|
switch (type) {
|
|
77568
79323
|
case 'success':
|
|
77569
|
-
return /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79324
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77570
79325
|
type: "lmweb-check-circle",
|
|
77571
79326
|
style: {
|
|
77572
79327
|
color: '#56C22D'
|
|
@@ -77574,7 +79329,7 @@
|
|
|
77574
79329
|
});
|
|
77575
79330
|
|
|
77576
79331
|
case 'error':
|
|
77577
|
-
return /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79332
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77578
79333
|
type: "lmweb-close-circle",
|
|
77579
79334
|
style: {
|
|
77580
79335
|
color: '#FA4F53'
|
|
@@ -77582,7 +79337,7 @@
|
|
|
77582
79337
|
});
|
|
77583
79338
|
|
|
77584
79339
|
case 'warning':
|
|
77585
|
-
return /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79340
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77586
79341
|
type: "lmweb-info-circle",
|
|
77587
79342
|
style: {
|
|
77588
79343
|
color: '#FD9727'
|
|
@@ -77590,7 +79345,7 @@
|
|
|
77590
79345
|
});
|
|
77591
79346
|
|
|
77592
79347
|
case 'info':
|
|
77593
|
-
return /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79348
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77594
79349
|
type: "lmweb-info-circle",
|
|
77595
79350
|
style: {
|
|
77596
79351
|
color: '#1890fc'
|
|
@@ -77598,7 +79353,7 @@
|
|
|
77598
79353
|
});
|
|
77599
79354
|
|
|
77600
79355
|
default:
|
|
77601
|
-
return /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79356
|
+
return /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77602
79357
|
type: "lmweb-info-circle",
|
|
77603
79358
|
style: {
|
|
77604
79359
|
color: '#FD9727'
|
|
@@ -77720,7 +79475,7 @@
|
|
|
77720
79475
|
|
|
77721
79476
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77722
79477
|
className: "import_box"
|
|
77723
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79478
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77724
79479
|
type: "lmweb-inbox",
|
|
77725
79480
|
className: "import_icon"
|
|
77726
79481
|
}), /*#__PURE__*/React__default['default'].createElement("input", {
|
|
@@ -77832,7 +79587,7 @@
|
|
|
77832
79587
|
onClick: function onClick() {
|
|
77833
79588
|
return downEvent(v);
|
|
77834
79589
|
}
|
|
77835
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79590
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77836
79591
|
type: "lmweb-file-excel"
|
|
77837
79592
|
}), /*#__PURE__*/React__default['default'].createElement("div", null, v.label));
|
|
77838
79593
|
})))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -77855,9 +79610,9 @@
|
|
|
77855
79610
|
className: "file_view_item"
|
|
77856
79611
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
77857
79612
|
className: "file_view_item_label"
|
|
77858
|
-
}, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79613
|
+
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77859
79614
|
type: "lmweb-file-excel"
|
|
77860
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", null, v.name)), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
79615
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, v.name)), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
77861
79616
|
type: "lmweb-close1",
|
|
77862
79617
|
className: "file_view_item_close",
|
|
77863
79618
|
onClick: function onClick() {
|
|
@@ -77915,7 +79670,8 @@
|
|
|
77915
79670
|
}, others), {}, {
|
|
77916
79671
|
locale: {
|
|
77917
79672
|
items_per_page: '/条',
|
|
77918
|
-
jump_to: '前往'
|
|
79673
|
+
jump_to: '前往',
|
|
79674
|
+
page: '页'
|
|
77919
79675
|
}
|
|
77920
79676
|
}));
|
|
77921
79677
|
};
|
|
@@ -79970,7 +81726,7 @@
|
|
|
79970
81726
|
}
|
|
79971
81727
|
});
|
|
79972
81728
|
|
|
79973
|
-
var propTypes$
|
|
81729
|
+
var propTypes$2 = createCommonjsModule(function (module, exports) {
|
|
79974
81730
|
|
|
79975
81731
|
exports.__esModule = true;
|
|
79976
81732
|
exports.resizableProps = void 0;
|
|
@@ -80358,7 +82114,7 @@
|
|
|
80358
82114
|
}(React.Component);
|
|
80359
82115
|
|
|
80360
82116
|
exports.default = Resizable;
|
|
80361
|
-
Resizable.propTypes = propTypes$
|
|
82117
|
+
Resizable.propTypes = propTypes$2.resizableProps;
|
|
80362
82118
|
Resizable.defaultProps = {
|
|
80363
82119
|
axis: 'both',
|
|
80364
82120
|
handleSize: [20, 20],
|
|
@@ -80505,7 +82261,7 @@
|
|
|
80505
82261
|
}(React.Component);
|
|
80506
82262
|
|
|
80507
82263
|
exports.default = ResizableBox;
|
|
80508
|
-
ResizableBox.propTypes = _objectSpread(_objectSpread({}, propTypes$
|
|
82264
|
+
ResizableBox.propTypes = _objectSpread(_objectSpread({}, propTypes$2.resizableProps), {}, {
|
|
80509
82265
|
children: _propTypes.default.element
|
|
80510
82266
|
});
|
|
80511
82267
|
});
|
|
@@ -80514,7 +82270,7 @@
|
|
|
80514
82270
|
var ResizableBox = ResizableBox_1.default;
|
|
80515
82271
|
|
|
80516
82272
|
var _excluded$1e = ["width", "onResize", "children"],
|
|
80517
|
-
_excluded2$
|
|
82273
|
+
_excluded2$j = ["children"],
|
|
80518
82274
|
_excluded3$5 = ["children", "style"],
|
|
80519
82275
|
_excluded4$2 = ["children"],
|
|
80520
82276
|
_excluded5$1 = ["style", "children"],
|
|
@@ -80681,7 +82437,7 @@
|
|
|
80681
82437
|
|
|
80682
82438
|
var VCell = function VCell(props) {
|
|
80683
82439
|
var children = props.children,
|
|
80684
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
82440
|
+
restProps = _objectWithoutProperties(props, _excluded2$j);
|
|
80685
82441
|
|
|
80686
82442
|
return /*#__PURE__*/React__default['default'].createElement("td", restProps, children);
|
|
80687
82443
|
};
|
|
@@ -81882,7 +83638,7 @@
|
|
|
81882
83638
|
ResizeSize$2.Summary = Summary$1;
|
|
81883
83639
|
|
|
81884
83640
|
var _excluded$1i = ["children"],
|
|
81885
|
-
_excluded2$
|
|
83641
|
+
_excluded2$k = ["children", "size", "buttonStyle", "direction", "className"];
|
|
81886
83642
|
|
|
81887
83643
|
var LMRadio = function LMRadio(props) {
|
|
81888
83644
|
var children = props.children,
|
|
@@ -81901,7 +83657,7 @@
|
|
|
81901
83657
|
_props$direction = props.direction,
|
|
81902
83658
|
direction = _props$direction === void 0 ? 'row' : _props$direction,
|
|
81903
83659
|
className = props.className,
|
|
81904
|
-
restProps = _objectWithoutProperties(props, _excluded2$
|
|
83660
|
+
restProps = _objectWithoutProperties(props, _excluded2$k);
|
|
81905
83661
|
|
|
81906
83662
|
console.log(children, 'rrr');
|
|
81907
83663
|
return /*#__PURE__*/React__default['default'].createElement(_Radio__default['default'].Group, _extends({
|
|
@@ -82012,14 +83768,14 @@
|
|
|
82012
83768
|
return props.toggleShow(e.target.checked, props.id);
|
|
82013
83769
|
},
|
|
82014
83770
|
className: "filter_item-content"
|
|
82015
|
-
}, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, ((_props$item3 = props.item) === null || _props$item3 === void 0 ? void 0 : _props$item3.fixed) && /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
83771
|
+
}, (_props$item2 = props.item) === null || _props$item2 === void 0 ? void 0 : _props$item2.title), /*#__PURE__*/React__default['default'].createElement("div", null, ((_props$item3 = props.item) === null || _props$item3 === void 0 ? void 0 : _props$item3.fixed) && /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
82016
83772
|
type: "lmweb-vertical-align-middl",
|
|
82017
83773
|
className: "lm_custom_icon hover_show",
|
|
82018
83774
|
onClick: function onClick(e) {
|
|
82019
83775
|
e.stopPropagation();
|
|
82020
83776
|
props.clearFiexd(props.id);
|
|
82021
83777
|
}
|
|
82022
|
-
}), !((_props$item4 = props.item) === null || _props$item4 === void 0 ? void 0 : _props$item4.fixed) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
83778
|
+
}), !((_props$item4 = props.item) === null || _props$item4 === void 0 ? void 0 : _props$item4.fixed) && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
82023
83779
|
type: "lmweb-vertical-align-top",
|
|
82024
83780
|
className: "lm_custom_icon hover_show icon_top",
|
|
82025
83781
|
onClick: function onClick(e) {
|
|
@@ -82027,7 +83783,7 @@
|
|
|
82027
83783
|
e.stopPropagation();
|
|
82028
83784
|
props.addFiexd(props.id, 'left');
|
|
82029
83785
|
}
|
|
82030
|
-
}), /*#__PURE__*/React__default['default'].createElement(IconFont
|
|
83786
|
+
}), /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
82031
83787
|
type: "lmweb-vertical-align-botto",
|
|
82032
83788
|
className: "lm_custom_icon hover_show icon_bottom",
|
|
82033
83789
|
onClick: function onClick(e) {
|
|
@@ -82572,7 +84328,7 @@
|
|
|
82572
84328
|
/** 是否记住页面使用状态 */
|
|
82573
84329
|
|
|
82574
84330
|
|
|
82575
|
-
var _useState3 = React.useState(
|
|
84331
|
+
var _useState3 = React.useState(true),
|
|
82576
84332
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
82577
84333
|
saveSetting = _useState4[0],
|
|
82578
84334
|
setSaveSetting = _useState4[1];
|
|
@@ -82621,15 +84377,14 @@
|
|
|
82621
84377
|
setVisible(false);
|
|
82622
84378
|
};
|
|
82623
84379
|
|
|
82624
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(
|
|
82625
|
-
|
|
82626
|
-
|
|
82627
|
-
|
|
82628
|
-
}
|
|
82629
|
-
onClick: openSetting
|
|
84380
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
84381
|
+
onClick: openSetting,
|
|
84382
|
+
icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
84383
|
+
type: 'lmweb-setting'
|
|
84384
|
+
})
|
|
82630
84385
|
}), /*#__PURE__*/React__default['default'].createElement(LMDrawer, {
|
|
82631
84386
|
className: classnames(className, prefixCls$b),
|
|
82632
|
-
title: "\
|
|
84387
|
+
title: "\u7B5B\u9009\u8BBE\u7F6E",
|
|
82633
84388
|
visible: visible,
|
|
82634
84389
|
extra: /*#__PURE__*/React__default['default'].createElement(_Space__default['default'], null, /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
82635
84390
|
size: "small",
|
|
@@ -82655,7 +84410,7 @@
|
|
|
82655
84410
|
ref: filterRef,
|
|
82656
84411
|
filter: lmOptions.filter
|
|
82657
84412
|
})), /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
|
|
82658
|
-
tab: "\u5217\u5B57\u6BB5\u8BBE\u7F6E",
|
|
84413
|
+
tab: "\u5217\u8868\u5B57\u6BB5\u8BBE\u7F6E",
|
|
82659
84414
|
key: "2",
|
|
82660
84415
|
forceRender: true
|
|
82661
84416
|
}, /*#__PURE__*/React__default['default'].createElement(ColumnsSort, {
|
|
@@ -82762,6 +84517,12 @@
|
|
|
82762
84517
|
return _Table__default['default'];
|
|
82763
84518
|
}
|
|
82764
84519
|
});
|
|
84520
|
+
Object.defineProperty(exports, 'Spin', {
|
|
84521
|
+
enumerable: true,
|
|
84522
|
+
get: function () {
|
|
84523
|
+
return _Spin__default['default'];
|
|
84524
|
+
}
|
|
84525
|
+
});
|
|
82765
84526
|
Object.defineProperty(exports, 'message', {
|
|
82766
84527
|
enumerable: true,
|
|
82767
84528
|
get: function () {
|
|
@@ -82818,7 +84579,7 @@
|
|
|
82818
84579
|
exports.Filter = Index$g;
|
|
82819
84580
|
exports.Form = Form$1;
|
|
82820
84581
|
exports.Icon = Icon$2;
|
|
82821
|
-
exports.IconFont = IconFont
|
|
84582
|
+
exports.IconFont = IconFont;
|
|
82822
84583
|
exports.IconSelect = IconSelect;
|
|
82823
84584
|
exports.Input = LmInput;
|
|
82824
84585
|
exports.InputNumber = CInputNumber;
|