uiw 4.13.12 → 4.14.0

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/cjs/index.d.ts CHANGED
@@ -56,6 +56,7 @@ export * from '@uiw/react-tooltip';
56
56
  export * from '@uiw/react-tree';
57
57
  export * from '@uiw/react-tree-checked';
58
58
  export * from '@uiw/react-search-tree';
59
+ export * from '@uiw/react-transfer';
59
60
  export { default as Affix } from '@uiw/react-affix';
60
61
  export { default as Alert } from '@uiw/react-alert';
61
62
  export { default as AutoLink } from '@uiw/react-auto-link';
@@ -113,3 +114,4 @@ export { default as Tooltip } from '@uiw/react-tooltip';
113
114
  export { default as Tree } from '@uiw/react-tree';
114
115
  export { default as TreeChecked } from '@uiw/react-tree-checked';
115
116
  export { default as SearchTree } from '@uiw/react-search-tree';
117
+ export { default as Transfer } from '@uiw/react-transfer';
package/cjs/index.js CHANGED
@@ -64,6 +64,7 @@ var _exportNames = {
64
64
  Tree: true,
65
65
  TreeChecked: true,
66
66
  SearchTree: true,
67
+ Transfer: true,
67
68
  formatter: true
68
69
  };
69
70
  Object.defineProperty(exports, "Affix", {
@@ -390,6 +391,12 @@ Object.defineProperty(exports, "Tooltip", {
390
391
  return _reactTooltip.default;
391
392
  }
392
393
  });
394
+ Object.defineProperty(exports, "Transfer", {
395
+ enumerable: true,
396
+ get: function get() {
397
+ return _reactTransfer.default;
398
+ }
399
+ });
393
400
  Object.defineProperty(exports, "Tree", {
394
401
  enumerable: true,
395
402
  get: function get() {
@@ -1221,5 +1228,19 @@ Object.keys(_reactSearchTree).forEach(function (key) {
1221
1228
  });
1222
1229
  });
1223
1230
 
1231
+ var _reactTransfer = _interopRequireWildcard(require("@uiw/react-transfer"));
1232
+
1233
+ Object.keys(_reactTransfer).forEach(function (key) {
1234
+ if (key === "default" || key === "__esModule") return;
1235
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1236
+ if (key in exports && exports[key] === _reactTransfer[key]) return;
1237
+ Object.defineProperty(exports, key, {
1238
+ enumerable: true,
1239
+ get: function get() {
1240
+ return _reactTransfer[key];
1241
+ }
1242
+ });
1243
+ });
1244
+
1224
1245
  var _formatter = _interopRequireDefault(require("@uiw/formatter"));
1225
1246
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -4,8 +4,8 @@
4
4
  "../src/index.ts"
5
5
  ],
6
6
  "names": [],
7
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;A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A;AAAA;AAAA;AAAA;;AAuBA",
8
8
  "sourcesContent": [
9
- "export * from '@uiw/react-affix';\nexport * from '@uiw/react-alert';\nexport * from '@uiw/react-auto-link';\nexport * from '@uiw/react-avatar';\nexport * from '@uiw/react-back-top';\nexport * from '@uiw/react-badge';\nexport * from '@uiw/react-breadcrumb';\nexport * from '@uiw/react-button';\nexport * from '@uiw/react-button-group';\nexport * from '@uiw/react-calendar';\nexport * from '@uiw/react-card';\nexport * from '@uiw/react-checkbox';\nexport * from '@uiw/react-collapse';\nexport * from '@uiw/react-copy-to-clipboard';\nexport * from '@uiw/react-date-input';\nexport * from '@uiw/react-date-picker';\nexport * from '@uiw/react-descriptions';\nexport * from '@uiw/react-divider';\nexport * from '@uiw/react-drawer';\nexport * from '@uiw/react-dropdown';\nexport * from '@uiw/react-empty';\nexport * from '@uiw/react-file-input';\nexport * from '@uiw/react-form';\nexport * from '@uiw/react-grid';\nexport * from '@uiw/react-icon';\nexport * from '@uiw/react-input';\nexport * from '@uiw/react-list';\nexport * from '@uiw/react-layout';\nexport * from '@uiw/react-loader';\nexport * from '@uiw/react-menu';\nexport * from '@uiw/react-message';\nexport * from '@uiw/react-modal';\nexport * from '@uiw/react-month-picker';\nexport * from '@uiw/react-notify';\nexport * from '@uiw/react-overlay';\nexport * from '@uiw/react-overlay-trigger';\nexport * from '@uiw/react-pagination';\nexport * from '@uiw/react-pin-code';\nexport * from '@uiw/react-popover';\nexport * from '@uiw/react-portal';\nexport * from '@uiw/react-progress';\nexport * from '@uiw/react-radio';\nexport * from '@uiw/react-rate';\nexport * from '@uiw/react-search-select';\nexport * from '@uiw/react-select';\nexport * from '@uiw/react-split';\nexport * from '@uiw/react-steps';\nexport * from '@uiw/react-slider';\nexport * from '@uiw/react-switch';\nexport * from '@uiw/react-table';\nexport * from '@uiw/react-tabs';\nexport * from '@uiw/react-tag';\nexport * from '@uiw/react-textarea';\nexport * from '@uiw/react-time-picker';\nexport * from '@uiw/react-tooltip';\nexport * from '@uiw/react-tree';\nexport * from '@uiw/react-tree-checked';\nexport * from '@uiw/react-search-tree';\n\nexport { default as Affix } from '@uiw/react-affix';\nexport { default as Alert } from '@uiw/react-alert';\nexport { default as AutoLink } from '@uiw/react-auto-link';\nexport { default as Avatar } from '@uiw/react-avatar';\nexport { default as BackTop } from '@uiw/react-back-top';\nexport { default as Badge } from '@uiw/react-badge';\nexport { default as Breadcrumb } from '@uiw/react-breadcrumb';\nexport { default as Button } from '@uiw/react-button';\nexport { default as ButtonGroup } from '@uiw/react-button-group';\nexport { default as Calendar } from '@uiw/react-calendar';\nexport { default as Card } from '@uiw/react-card';\nexport { default as Checkbox } from '@uiw/react-checkbox';\nexport { default as Collapse } from '@uiw/react-collapse';\nexport { default as CopyToClipboard } from '@uiw/react-copy-to-clipboard';\nexport { default as DateInput } from '@uiw/react-date-input';\nexport { default as DatePicker } from '@uiw/react-date-picker';\nexport { default as Descriptions } from '@uiw/react-descriptions';\nexport { default as Divider } from '@uiw/react-divider';\nexport { default as Drawer } from '@uiw/react-drawer';\nexport { default as Dropdown } from '@uiw/react-dropdown';\nexport { default as Empty } from '@uiw/react-empty';\nexport { default as formatter } from '@uiw/formatter';\nexport { default as FileInput } from '@uiw/react-file-input';\nexport { default as Form } from '@uiw/react-form';\nexport { default as Icon } from '@uiw/react-icon';\nexport { default as Input } from '@uiw/react-input';\nexport { default as Layout } from '@uiw/react-layout';\nexport { default as List } from '@uiw/react-list';\nexport { default as Loader } from '@uiw/react-loader';\nexport { default as Menu } from '@uiw/react-menu';\nexport { default as Message } from '@uiw/react-message';\nexport { default as Modal } from '@uiw/react-modal';\nexport { default as MonthPicker } from '@uiw/react-month-picker';\nexport { default as Notify } from '@uiw/react-notify';\nexport { default as Overlay } from '@uiw/react-overlay';\nexport { default as OverlayTrigger } from '@uiw/react-overlay-trigger';\nexport { default as Pagination } from '@uiw/react-pagination';\nexport { default as PinCode } from '@uiw/react-pin-code';\nexport { default as Popover } from '@uiw/react-popover';\nexport { default as Portal } from '@uiw/react-portal';\nexport { default as Progress } from '@uiw/react-progress';\nexport { default as Rate } from '@uiw/react-rate';\nexport { default as SearchSelect } from '@uiw/react-search-select';\nexport { default as Select } from '@uiw/react-select';\nexport { default as Split } from '@uiw/react-split';\nexport { default as Steps } from '@uiw/react-steps';\nexport { default as Slider } from '@uiw/react-slider';\nexport { default as Switch } from '@uiw/react-switch';\nexport { default as Table } from '@uiw/react-table';\nexport { default as Tabs } from '@uiw/react-tabs';\nexport { default as Tag } from '@uiw/react-tag';\nexport { default as Textarea } from '@uiw/react-textarea';\nexport { default as TimePicker } from '@uiw/react-time-picker';\nexport { default as Tooltip } from '@uiw/react-tooltip';\nexport { default as Tree } from '@uiw/react-tree';\nexport { default as TreeChecked } from '@uiw/react-tree-checked';\nexport { default as SearchTree } from '@uiw/react-search-tree';\n"
9
+ "export * from '@uiw/react-affix';\nexport * from '@uiw/react-alert';\nexport * from '@uiw/react-auto-link';\nexport * from '@uiw/react-avatar';\nexport * from '@uiw/react-back-top';\nexport * from '@uiw/react-badge';\nexport * from '@uiw/react-breadcrumb';\nexport * from '@uiw/react-button';\nexport * from '@uiw/react-button-group';\nexport * from '@uiw/react-calendar';\nexport * from '@uiw/react-card';\nexport * from '@uiw/react-checkbox';\nexport * from '@uiw/react-collapse';\nexport * from '@uiw/react-copy-to-clipboard';\nexport * from '@uiw/react-date-input';\nexport * from '@uiw/react-date-picker';\nexport * from '@uiw/react-descriptions';\nexport * from '@uiw/react-divider';\nexport * from '@uiw/react-drawer';\nexport * from '@uiw/react-dropdown';\nexport * from '@uiw/react-empty';\nexport * from '@uiw/react-file-input';\nexport * from '@uiw/react-form';\nexport * from '@uiw/react-grid';\nexport * from '@uiw/react-icon';\nexport * from '@uiw/react-input';\nexport * from '@uiw/react-list';\nexport * from '@uiw/react-layout';\nexport * from '@uiw/react-loader';\nexport * from '@uiw/react-menu';\nexport * from '@uiw/react-message';\nexport * from '@uiw/react-modal';\nexport * from '@uiw/react-month-picker';\nexport * from '@uiw/react-notify';\nexport * from '@uiw/react-overlay';\nexport * from '@uiw/react-overlay-trigger';\nexport * from '@uiw/react-pagination';\nexport * from '@uiw/react-pin-code';\nexport * from '@uiw/react-popover';\nexport * from '@uiw/react-portal';\nexport * from '@uiw/react-progress';\nexport * from '@uiw/react-radio';\nexport * from '@uiw/react-rate';\nexport * from '@uiw/react-search-select';\nexport * from '@uiw/react-select';\nexport * from '@uiw/react-split';\nexport * from '@uiw/react-steps';\nexport * from '@uiw/react-slider';\nexport * from '@uiw/react-switch';\nexport * from '@uiw/react-table';\nexport * from '@uiw/react-tabs';\nexport * from '@uiw/react-tag';\nexport * from '@uiw/react-textarea';\nexport * from '@uiw/react-time-picker';\nexport * from '@uiw/react-tooltip';\nexport * from '@uiw/react-tree';\nexport * from '@uiw/react-tree-checked';\nexport * from '@uiw/react-search-tree';\nexport * from '@uiw/react-transfer';\n\nexport { default as Affix } from '@uiw/react-affix';\nexport { default as Alert } from '@uiw/react-alert';\nexport { default as AutoLink } from '@uiw/react-auto-link';\nexport { default as Avatar } from '@uiw/react-avatar';\nexport { default as BackTop } from '@uiw/react-back-top';\nexport { default as Badge } from '@uiw/react-badge';\nexport { default as Breadcrumb } from '@uiw/react-breadcrumb';\nexport { default as Button } from '@uiw/react-button';\nexport { default as ButtonGroup } from '@uiw/react-button-group';\nexport { default as Calendar } from '@uiw/react-calendar';\nexport { default as Card } from '@uiw/react-card';\nexport { default as Checkbox } from '@uiw/react-checkbox';\nexport { default as Collapse } from '@uiw/react-collapse';\nexport { default as CopyToClipboard } from '@uiw/react-copy-to-clipboard';\nexport { default as DateInput } from '@uiw/react-date-input';\nexport { default as DatePicker } from '@uiw/react-date-picker';\nexport { default as Descriptions } from '@uiw/react-descriptions';\nexport { default as Divider } from '@uiw/react-divider';\nexport { default as Drawer } from '@uiw/react-drawer';\nexport { default as Dropdown } from '@uiw/react-dropdown';\nexport { default as Empty } from '@uiw/react-empty';\nexport { default as formatter } from '@uiw/formatter';\nexport { default as FileInput } from '@uiw/react-file-input';\nexport { default as Form } from '@uiw/react-form';\nexport { default as Icon } from '@uiw/react-icon';\nexport { default as Input } from '@uiw/react-input';\nexport { default as Layout } from '@uiw/react-layout';\nexport { default as List } from '@uiw/react-list';\nexport { default as Loader } from '@uiw/react-loader';\nexport { default as Menu } from '@uiw/react-menu';\nexport { default as Message } from '@uiw/react-message';\nexport { default as Modal } from '@uiw/react-modal';\nexport { default as MonthPicker } from '@uiw/react-month-picker';\nexport { default as Notify } from '@uiw/react-notify';\nexport { default as Overlay } from '@uiw/react-overlay';\nexport { default as OverlayTrigger } from '@uiw/react-overlay-trigger';\nexport { default as Pagination } from '@uiw/react-pagination';\nexport { default as PinCode } from '@uiw/react-pin-code';\nexport { default as Popover } from '@uiw/react-popover';\nexport { default as Portal } from '@uiw/react-portal';\nexport { default as Progress } from '@uiw/react-progress';\nexport { default as Rate } from '@uiw/react-rate';\nexport { default as SearchSelect } from '@uiw/react-search-select';\nexport { default as Select } from '@uiw/react-select';\nexport { default as Split } from '@uiw/react-split';\nexport { default as Steps } from '@uiw/react-steps';\nexport { default as Slider } from '@uiw/react-slider';\nexport { default as Switch } from '@uiw/react-switch';\nexport { default as Table } from '@uiw/react-table';\nexport { default as Tabs } from '@uiw/react-tabs';\nexport { default as Tag } from '@uiw/react-tag';\nexport { default as Textarea } from '@uiw/react-textarea';\nexport { default as TimePicker } from '@uiw/react-time-picker';\nexport { default as Tooltip } from '@uiw/react-tooltip';\nexport { default as Tree } from '@uiw/react-tree';\nexport { default as TreeChecked } from '@uiw/react-tree-checked';\nexport { default as SearchTree } from '@uiw/react-search-tree';\nexport { default as Transfer } from '@uiw/react-transfer';\n"
10
10
  ]
11
11
  }
package/dist/uiw.css CHANGED
@@ -4700,7 +4700,7 @@ a.w-list-item:hover:not(.w-disabled) {
4700
4700
  .w-tabs-line .w-tabs-slide {
4701
4701
  background-color: #108ee9;
4702
4702
  box-sizing: border-box;
4703
- bottom: 0;
4703
+ bottom: 45px;
4704
4704
  position: absolute;
4705
4705
  height: 1px;
4706
4706
  left: 0;
@@ -5031,3 +5031,29 @@ a.w-list-item:hover:not(.w-disabled) {
5031
5031
  align-content: center;
5032
5032
  }
5033
5033
 
5034
+ .w-transfer {
5035
+ display: flex;
5036
+ justify-content: space-between;
5037
+ }
5038
+ .w-transfer-card {
5039
+ width: 50%;
5040
+ }
5041
+ .w-transfer-cheked-content {
5042
+ height: 200px;
5043
+ overflow-y: auto;
5044
+ }
5045
+ .w-transfer-arrow-content {
5046
+ width: 50px;
5047
+ height: 50px;
5048
+ display: flex;
5049
+ flex-direction: column;
5050
+ align-self: center;
5051
+ justify-content: space-between;
5052
+ }
5053
+ .w-transfer-arrow-left:hover,
5054
+ .w-transfer-arrow-right:hover {
5055
+ cursor: pointer;
5056
+ border-radius: 3px;
5057
+ box-shadow: 0 0 0 1px #6e6e6e, 0 0 0 1px rgba(57, 62, 72, 0), inset 0 1px 1px rgba(16, 22, 26, 0.2);
5058
+ }
5059
+
package/dist/uiw.js CHANGED
@@ -388,6 +388,7 @@ __webpack_require__.d(__webpack_exports__, {
388
388
  "TimePicker": () => (/* reexport */ TimePicker),
389
389
  "TimePickerTime": () => (/* reexport */ TimePickerTime),
390
390
  "Tooltip": () => (/* reexport */ react_tooltip_esm),
391
+ "Transfer": () => (/* reexport */ react_transfer_esm),
391
392
  "Tree": () => (/* reexport */ Tree),
392
393
  "TreeChecked": () => (/* reexport */ TreeChecked),
393
394
  "canUseDOM": () => (/* reexport */ canUseDOM),
@@ -9066,14 +9067,47 @@ function getAllColumnsKeys(data, keys) {
9066
9067
  return keys;
9067
9068
  }
9068
9069
 
9070
+ ;// CONCATENATED MODULE: ../react-table/esm/Expandable.js
9071
+
9072
+
9073
+
9074
+ /**
9075
+ * 可展开配置
9076
+ */
9077
+ function ExpandableComponent(_ref) {
9078
+ var {
9079
+ defaultExpand,
9080
+ onClick: _onClick,
9081
+ expandIcon
9082
+ } = _ref;
9083
+ var [expand, setExpand] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(defaultExpand);
9084
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
9085
+ style: {
9086
+ display: 'flex',
9087
+ justifyContent: 'center',
9088
+ alignItems: 'center'
9089
+ },
9090
+ onClick: () => {
9091
+ setExpand(!expand);
9092
+
9093
+ _onClick(expand); // record: T, index: number, expanded: boolean
9094
+
9095
+ },
9096
+ children: expandIcon(expand)
9097
+ });
9098
+ }
9099
+
9069
9100
  ;// CONCATENATED MODULE: ../react-table/esm/index.js
9070
9101
 
9071
9102
 
9072
- var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead", "empty", "children"];
9103
+ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead", "empty", "children", "expandable", "rowKey"];
9104
+
9105
+
9073
9106
 
9074
9107
 
9075
9108
 
9076
9109
 
9110
+ // 展开配置
9077
9111
 
9078
9112
 
9079
9113
 
@@ -9093,17 +9127,117 @@ function Table(props) {
9093
9127
  bordered,
9094
9128
  onCell = noop,
9095
9129
  onCellHead = noop,
9096
- empty
9130
+ empty,
9131
+ expandable,
9132
+ rowKey
9097
9133
  } = props,
9098
9134
  other = _objectWithoutPropertiesLoose(props, react_table_esm_excluded);
9099
9135
 
9136
+ var [expandIndex, setExpandIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
9137
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
9138
+ if (expandable) {
9139
+ if (expandable.defaultExpandAllRows) {
9140
+ setExpandIndex(data.map((it, index) => rowKey ? it[rowKey] : index));
9141
+ return;
9142
+ }
9143
+
9144
+ if (expandable.defaultExpandedRowKeys) {
9145
+ setExpandIndex(expandable.defaultExpandedRowKeys);
9146
+ return;
9147
+ }
9148
+ }
9149
+ }, []);
9150
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
9151
+ if (expandable) {
9152
+ if (expandable.expandedRowKeys && JSON.stringify(expandable.expandedRowKeys) !== JSON.stringify(expandIndex)) {
9153
+ setExpandIndex(expandable.expandedRowKeys);
9154
+ }
9155
+ }
9156
+ }, [expandable == null ? void 0 : expandable.expandedRowKeys]);
9157
+ var isExpandedDom = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
9158
+ return (record, index) => {
9159
+ if (!expandable) {
9160
+ return false;
9161
+ }
9162
+
9163
+ if (!expandable.expandedRowRender) {
9164
+ return false;
9165
+ }
9166
+
9167
+ var flag = true;
9168
+
9169
+ if (expandable.rowExpandable) {
9170
+ flag = expandable.rowExpandable(record);
9171
+ }
9172
+
9173
+ return flag && /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
9174
+ style: expandIndex.includes(rowKey ? record[rowKey] : index) ? {} : {
9175
+ display: 'none'
9176
+ },
9177
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
9178
+ style: {
9179
+ paddingLeft: 16
9180
+ },
9181
+ colSpan: columns.length + 1,
9182
+ children: expandable.expandedRowRender(record, index, true)
9183
+ })
9184
+ });
9185
+ };
9186
+ }, [expandable, expandIndex]);
9187
+ var keys = getAllColumnsKeys(columns);
9188
+ var selfColumns = [];
9189
+
9190
+ if (expandable != null && expandable.expandedRowRender) {
9191
+ keys = ['uiw-expanded', ...keys];
9192
+ selfColumns = [{
9193
+ title: '',
9194
+ key: 'uiw-expanded',
9195
+ width: 50,
9196
+ align: 'center',
9197
+ render: (text, key, record, index) => {
9198
+ var _expandable$defaultEx;
9199
+
9200
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(ExpandableComponent, {
9201
+ defaultExpand: expandable.defaultExpandAllRows === undefined ? !!((_expandable$defaultEx = expandable.defaultExpandedRowKeys) != null && _expandable$defaultEx.includes(rowKey ? record[rowKey] : index)) : !!expandable.defaultExpandAllRows,
9202
+ onClick: expand => {
9203
+ expandable.onExpand == null ? void 0 : expandable.onExpand(expand, record, index);
9204
+
9205
+ if (expand) {
9206
+ var result = expandIndex.filter(it => rowKey ? it !== record[rowKey] : it !== index);
9207
+ expandable.onExpandedRowsChange ? expandable.onExpandedRowsChange(result) : setExpandIndex(result);
9208
+ } else {
9209
+ var _result = [...expandIndex, rowKey ? record[rowKey] : index];
9210
+ expandable.onExpandedRowsChange ? expandable.onExpandedRowsChange(_result) : setExpandIndex(_result);
9211
+ }
9212
+ },
9213
+ expandIcon: expand => {
9214
+ if (expandable.rowExpandable && !(expandable.rowExpandable != null && expandable.rowExpandable(record))) {
9215
+ return null;
9216
+ }
9217
+
9218
+ if (expandable.expandIcon) {
9219
+ return expandable.expandIcon(expand, record, index);
9220
+ }
9221
+
9222
+ return expand ? /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
9223
+ type: "minus-square-o"
9224
+ }) : /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
9225
+ type: "plus-square-o"
9226
+ });
9227
+ }
9228
+ });
9229
+ }
9230
+ }, ...columns];
9231
+ } else {
9232
+ selfColumns = [...columns];
9233
+ }
9234
+
9100
9235
  var cls = [prefixCls, className, bordered ? prefixCls + "-bordered" : null].filter(Boolean).join(' ').trim();
9101
9236
  var {
9102
9237
  header,
9103
9238
  render,
9104
9239
  ellipsis
9105
- } = getLevelItems(columns);
9106
- var keys = getAllColumnsKeys(columns);
9240
+ } = getLevelItems(selfColumns);
9107
9241
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
9108
9242
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({
9109
9243
  style: {
@@ -9121,45 +9255,49 @@ function Table(props) {
9121
9255
  onCellHead: onCellHead,
9122
9256
  data: header
9123
9257
  }), data && data.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
9124
- children: data.map((trData, rowNum) => /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
9125
- children: keys.map((keyName, colNum) => {
9126
- var objs = {
9127
- children: trData[keyName]
9128
- };
9129
-
9130
- if (render[keyName]) {
9131
- var child = render[keyName](trData[keyName], keyName, trData, rowNum, colNum);
9132
-
9133
- if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) {
9134
- objs.children = child;
9135
- } else {
9136
- if (child.props) {
9137
- objs = _extends({}, child.props, {
9138
- children: objs.children
9139
- });
9140
- if (child.props.rowSpan === 0 || child.props.colSpan === 0) return null;
9258
+ children: data.map((trData, rowNum) => {
9259
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
9260
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
9261
+ children: keys.map((keyName, colNum) => {
9262
+ var objs = {
9263
+ children: trData[keyName]
9264
+ };
9265
+
9266
+ if (render[keyName]) {
9267
+ var child = render[keyName](trData[keyName], keyName, trData, rowNum, colNum);
9268
+
9269
+ if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) {
9270
+ objs.children = child;
9271
+ } else {
9272
+ if (child.props) {
9273
+ objs = _extends({}, child.props, {
9274
+ children: objs.children
9275
+ });
9276
+ if (child.props.rowSpan === 0 || child.props.colSpan === 0) return null;
9277
+ }
9278
+
9279
+ if (child.children) {
9280
+ objs.children = child.children;
9281
+ }
9282
+ }
9141
9283
  }
9142
9284
 
9143
- if (child.children) {
9144
- objs.children = child.children;
9285
+ if (ellipsis && ellipsis[keyName]) {
9286
+ objs.className = prefixCls + "-ellipsis";
9145
9287
  }
9146
- }
9147
- }
9148
-
9149
- if (ellipsis && ellipsis[keyName]) {
9150
- objs.className = prefixCls + "-ellipsis";
9151
- }
9152
-
9153
- return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)("td", _extends({}, objs, {
9154
- key: colNum,
9155
- onClick: evn => onCell(trData, {
9156
- rowNum,
9157
- colNum,
9158
- keyName
9159
- }, evn)
9160
- }));
9161
- })
9162
- }, rowNum))
9288
+
9289
+ return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)("td", _extends({}, objs, {
9290
+ key: colNum,
9291
+ onClick: evn => onCell(trData, {
9292
+ rowNum,
9293
+ colNum,
9294
+ keyName
9295
+ }, evn)
9296
+ }));
9297
+ })
9298
+ }, rowKey ? trData[rowKey] + '' : rowNum), isExpandedDom(trData, rowNum)]
9299
+ }, rowNum);
9300
+ })
9163
9301
  }), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
9164
9302
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
9165
9303
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
@@ -9308,7 +9446,7 @@ function Tabs(props) {
9308
9446
  if (activeItem.current && type === 'line') {
9309
9447
  setSlideStyle({
9310
9448
  width: activeItem.current.clientWidth,
9311
- left: activeItem.current.offsetLeft
9449
+ left: activeItem.current.offsetLeft + 15
9312
9450
  });
9313
9451
  }
9314
9452
  }
@@ -10268,6 +10406,217 @@ function SearchTree(props) {
10268
10406
 
10269
10407
  /* harmony default export */ const react_search_tree_esm = (SearchTree);
10270
10408
 
10409
+ ;// CONCATENATED MODULE: ../react-transfer/esm/style/index.css
10410
+ // extracted by mini-css-extract-plugin
10411
+ /* harmony default export */ const react_transfer_esm_style = ({});
10412
+ ;// CONCATENATED MODULE: ../react-transfer/esm/index.js
10413
+
10414
+
10415
+
10416
+
10417
+
10418
+
10419
+
10420
+
10421
+
10422
+
10423
+ function Transfer(props) {
10424
+ var {
10425
+ placeholder,
10426
+ options,
10427
+ value,
10428
+ showSearch = false,
10429
+ bodyStyle,
10430
+ style,
10431
+ className,
10432
+ prefixCls = 'w-transfer'
10433
+ } = props;
10434
+ var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
10435
+ var [searchValueLeft, searchValueLeftSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)('');
10436
+ var [searchValueRight, searchValueRightSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)('');
10437
+ var [selectedOptions, selectedOptionSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(options || []);
10438
+ var [selectOption, selectOptionSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(new Map());
10439
+ var [leftSelectedKeys, leftSelectedKeySet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
10440
+ var [rightSelectedKeys, rightSelectedKeySet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
10441
+ var [rightOpions, rightOpionSet] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
10442
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10443
+ leftSelectedKeySet([]);
10444
+ rightSelectedKeySet([]);
10445
+ rightOpionSet(value || []);
10446
+ value == null ? void 0 : value.forEach(selectd => selectOption.set(selectd.key, selectd.label));
10447
+ hiddenNode(child => !!(value != null && value.find(selectd => child.key === selectd.key)));
10448
+ }, [JSON.stringify(value)]);
10449
+
10450
+ var hiddenNode = callBackfn => {
10451
+ var hiddenNodeForSeach = childrens => {
10452
+ childrens.forEach(child => {
10453
+ var _child$children;
10454
+
10455
+ var isHide = callBackfn(child); // && parentIsHide;
10456
+
10457
+ if (!!((_child$children = child.children) != null && _child$children.length)) {
10458
+ hiddenNodeForSeach(child.children);
10459
+ var find = child.children.find(item => !item.hideNode);
10460
+ child.hideNode = isHide && !find;
10461
+ } else {
10462
+ child.hideNode = isHide;
10463
+ }
10464
+ });
10465
+ };
10466
+
10467
+ hiddenNodeForSeach(selectedOptions);
10468
+ selectedOptionSet([...selectedOptions]);
10469
+ };
10470
+
10471
+ var leftTreeOnSelected = (selectedKeys, _1, isChecked, evn) => {
10472
+ leftSelectedKeySet(selectedKeys);
10473
+ var selectOptionTemp = getOptionsRecursion([evn], selectOption, isChecked);
10474
+ selectOptionSet(selectOptionTemp);
10475
+ };
10476
+
10477
+ var rightTreeOnSelected = (selectedKeys, _1, _2, evn) => {
10478
+ rightSelectedKeySet(selectedKeys);
10479
+ selectedKeys.forEach(key => {
10480
+ selectOption.delete(key);
10481
+ });
10482
+ selectOptionSet(selectOption);
10483
+ };
10484
+
10485
+ var getOptionsRecursion = (childrens, selectOption, isAdd) => {
10486
+ var addOrDel = (key, label, isAdd) => {
10487
+ if (isAdd) {
10488
+ selectOption.set(key, label);
10489
+ } else {
10490
+ selectOption.delete(key);
10491
+ }
10492
+ };
10493
+
10494
+ var iteratorParent = child => {
10495
+ // 向上迭代
10496
+ if (child.parent) {
10497
+ var selectCount = child.parent.children.filter(child => !selectOption.get(child.key)).length;
10498
+ addOrDel(child.parent.key, child.parent.label, selectCount === 0);
10499
+ iteratorParent(child.parent);
10500
+ }
10501
+ };
10502
+
10503
+ childrens.forEach(child => {
10504
+ var _child$children2, _child$label;
10505
+
10506
+ if (!!((_child$children2 = child.children) != null && _child$children2.length)) {
10507
+ selectOption = getOptionsRecursion(child.children, selectOption, isAdd);
10508
+ }
10509
+
10510
+ addOrDel(child.key, (_child$label = child.label) == null ? void 0 : _child$label.toString(), isAdd);
10511
+ iteratorParent(child);
10512
+ });
10513
+ return selectOption;
10514
+ };
10515
+
10516
+ var transferClick = transferType => {
10517
+ var option = [];
10518
+ selectOption.forEach((label, key) => option.push({
10519
+ key,
10520
+ label
10521
+ }));
10522
+ props.onChange == null ? void 0 : props.onChange(transferType, option);
10523
+ };
10524
+
10525
+ var searchValueLeftChange = searchValue => {
10526
+ hiddenNode(child => {
10527
+ var searchIsMatch = !child.label.includes(searchValue.trim());
10528
+
10529
+ if (!searchIsMatch) {
10530
+ var isSekected = rightOpions.find(selected => selected.key === child.key);
10531
+ searchIsMatch = !!isSekected;
10532
+ }
10533
+
10534
+ return searchIsMatch;
10535
+ });
10536
+ searchValueLeftSet(searchValue);
10537
+ props.onSearch == null ? void 0 : props.onSearch('left', searchValue);
10538
+ };
10539
+
10540
+ var searchValueRightChange = searchValue => {
10541
+ searchValueRightSet(searchValue);
10542
+ rightOpions.forEach(option => {
10543
+ var isHide = !option.label.includes(searchValue.trim());
10544
+ option.hideNode = isHide;
10545
+ });
10546
+ console.log('rightOpions', rightOpions);
10547
+ rightOpionSet(rightOpions);
10548
+ props.onSearch == null ? void 0 : props.onSearch('right', searchValue);
10549
+ };
10550
+
10551
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
10552
+ className: cls,
10553
+ style: _extends({
10554
+ width: 400
10555
+ }, style),
10556
+ children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(react_card_esm, {
10557
+ bodyStyle: {
10558
+ padding: 5
10559
+ },
10560
+ title: leftSelectedKeys.length + "/" + selectedOptions.length,
10561
+ className: prefixCls + "-card",
10562
+ children: [showSearch && /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
10563
+ placeholder: placeholder,
10564
+ value: searchValueLeft,
10565
+ onChange: e => searchValueLeftChange(e.target.value)
10566
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
10567
+ className: prefixCls + "-cheked-content",
10568
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(TreeChecked, {
10569
+ defaultExpandAll: true,
10570
+ placeholder: placeholder || '搜索选项',
10571
+ data: selectedOptions,
10572
+ selectedKeys: leftSelectedKeys,
10573
+ onSelected: leftTreeOnSelected
10574
+ })
10575
+ })]
10576
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
10577
+ className: prefixCls + "-arrow-content",
10578
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
10579
+ onClick: () => transferClick('left'),
10580
+ type: "down-square-o",
10581
+ className: prefixCls + "-arrow-left",
10582
+ style: {
10583
+ transform: 'rotate(-90deg)',
10584
+ fontSize: 20
10585
+ }
10586
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
10587
+ onClick: () => transferClick('right'),
10588
+ type: "down-square-o",
10589
+ className: prefixCls + "-arrow-right",
10590
+ style: {
10591
+ transform: 'rotate(90deg)',
10592
+ fontSize: 20
10593
+ }
10594
+ })]
10595
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)(react_card_esm, {
10596
+ bodyStyle: {
10597
+ padding: 5
10598
+ },
10599
+ className: prefixCls + "-card",
10600
+ title: rightSelectedKeys.length + "/" + rightOpions.length,
10601
+ children: [showSearch && /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
10602
+ placeholder: placeholder,
10603
+ value: searchValueRight,
10604
+ onChange: e => searchValueRightChange(e.target.value)
10605
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
10606
+ className: prefixCls + "-cheked-content",
10607
+ style: bodyStyle,
10608
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(TreeChecked, {
10609
+ data: rightOpions,
10610
+ selectedKeys: rightSelectedKeys,
10611
+ onSelected: rightTreeOnSelected
10612
+ })
10613
+ })]
10614
+ })]
10615
+ });
10616
+ }
10617
+
10618
+ /* harmony default export */ const react_transfer_esm = (Transfer);
10619
+
10271
10620
  ;// CONCATENATED MODULE: ./src/index.ts
10272
10621
 
10273
10622
  })();