acud 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -0
- package/dist/acud.css +543 -246
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +18655 -17994
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +11 -11
- package/dist/acud.min.js.map +1 -1
- package/es/avatar/SizeContext.d.ts +10 -0
- package/es/avatar/SizeContext.js +12 -0
- package/es/avatar/avatar.d.ts +25 -0
- package/es/avatar/avatar.js +206 -0
- package/es/avatar/group.d.ts +15 -0
- package/es/avatar/group.js +64 -0
- package/es/avatar/index.d.ts +11 -0
- package/es/avatar/index.js +6 -0
- package/es/avatar/style/css.js +5 -0
- package/es/avatar/style/group.less +17 -0
- package/es/avatar/style/index.css +108 -0
- package/es/avatar/style/index.d.ts +3 -0
- package/es/avatar/style/index.js +5 -0
- package/es/avatar/style/index.less +68 -0
- package/es/avatar/style/rtl.less +15 -0
- package/es/divider/index.d.ts +14 -0
- package/es/divider/index.js +63 -0
- package/es/divider/style/css.js +2 -0
- package/es/divider/style/index.css +126 -0
- package/es/divider/style/index.d.ts +2 -0
- package/es/divider/style/index.js +2 -0
- package/es/divider/style/index.less +137 -0
- package/es/divider/style/rtl.less +38 -0
- package/es/dropdown/style/index.css +4 -4
- package/es/dropdown/style/index.less +5 -5
- package/es/grid/hooks/useBreakpoint.d.ts +1 -1
- package/es/grid/hooks/useBreakpoint.js +11 -9
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/menu/style/index.css +16 -12
- package/es/menu/style/index.less +5 -3
- package/es/menu/style/sider.less +2 -0
- package/es/modal/DialogBox.d.ts +2 -2
- package/es/modal/DialogBox.js +3 -2
- package/es/pagination/rc-pagination/Pagination.js +0 -1
- package/es/style/themes/default/components/avatar.less +13 -0
- package/es/style/themes/default/components/divider.less +6 -0
- package/es/style/themes/default/components/index.less +2 -0
- package/es/table/style/index.css +4 -3
- package/es/table/style/index.less +4 -0
- package/es/tag/style/index.css +46 -0
- package/es/tag/style/index.less +37 -0
- package/es/tree-select/index.d.ts +4 -4
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/src/LegacyContext.d.ts +24 -0
- package/es/tree-select/src/LegacyContext.js +3 -0
- package/es/tree-select/src/OptionList.d.ts +8 -0
- package/es/tree-select/src/OptionList.js +340 -0
- package/es/tree-select/src/TreeNode.d.ts +9 -0
- package/es/tree-select/src/TreeNode.js +6 -0
- package/es/tree-select/src/TreeSelect.d.ts +122 -0
- package/es/tree-select/src/TreeSelect.js +534 -0
- package/es/tree-select/src/TreeSelectContext.d.ts +16 -0
- package/es/tree-select/src/TreeSelectContext.js +3 -0
- package/es/tree-select/src/hooks/useCache.d.ts +7 -0
- package/es/tree-select/src/hooks/useCache.js +29 -0
- package/es/tree-select/src/hooks/useCheckedKeys.d.ts +5 -0
- package/es/tree-select/src/hooks/useCheckedKeys.js +29 -0
- package/es/tree-select/src/hooks/useDataEntities.d.ts +7 -0
- package/es/tree-select/src/hooks/useDataEntities.js +30 -0
- package/es/tree-select/src/hooks/useFilterTreeData.d.ts +7 -0
- package/es/tree-select/src/hooks/useFilterTreeData.js +49 -0
- package/es/tree-select/src/hooks/useRefFunc.d.ts +5 -0
- package/es/tree-select/src/hooks/useRefFunc.js +14 -0
- package/es/tree-select/src/hooks/useTreeData.d.ts +8 -0
- package/es/tree-select/src/hooks/useTreeData.js +55 -0
- package/es/tree-select/src/index.d.ts +7 -0
- package/es/tree-select/src/index.js +9 -0
- package/es/tree-select/src/interface.d.ts +77 -0
- package/es/tree-select/src/interface.js +1 -0
- package/es/tree-select/src/utils/legacyUtil.d.ts +6 -0
- package/es/tree-select/src/utils/legacyUtil.js +144 -0
- package/es/tree-select/src/utils/strategyUtil.d.ts +9 -0
- package/es/tree-select/src/utils/strategyUtil.js +40 -0
- package/es/tree-select/src/utils/valueUtil.d.ts +14 -0
- package/es/tree-select/src/utils/valueUtil.js +46 -0
- package/es/tree-select/src/utils/warningPropsUtil.d.ts +5 -0
- package/es/tree-select/src/utils/warningPropsUtil.js +31 -0
- package/es/tree-select/style/index.css +10 -0
- package/es/tree-select/style/index.less +11 -0
- package/lib/avatar/SizeContext.d.ts +10 -0
- package/lib/avatar/SizeContext.js +26 -0
- package/lib/avatar/avatar.d.ts +25 -0
- package/lib/avatar/avatar.js +233 -0
- package/lib/avatar/group.d.ts +15 -0
- package/lib/avatar/group.js +88 -0
- package/lib/avatar/index.d.ts +11 -0
- package/lib/avatar/index.js +23 -0
- package/lib/avatar/style/css.js +7 -0
- package/lib/avatar/style/group.less +17 -0
- package/lib/avatar/style/index.css +108 -0
- package/lib/avatar/style/index.d.ts +3 -0
- package/lib/avatar/style/index.js +7 -0
- package/lib/avatar/style/index.less +68 -0
- package/lib/avatar/style/rtl.less +15 -0
- package/lib/divider/index.d.ts +14 -0
- package/lib/divider/index.js +74 -0
- package/lib/divider/style/css.js +5 -0
- package/lib/divider/style/index.css +126 -0
- package/lib/divider/style/index.d.ts +2 -0
- package/lib/divider/style/index.js +5 -0
- package/lib/divider/style/index.less +137 -0
- package/lib/divider/style/rtl.less +38 -0
- package/lib/dropdown/style/index.css +4 -4
- package/lib/dropdown/style/index.less +5 -5
- package/lib/grid/hooks/useBreakpoint.d.ts +1 -1
- package/lib/grid/hooks/useBreakpoint.js +11 -9
- package/lib/index.d.ts +2 -0
- package/lib/index.js +16 -0
- package/lib/menu/style/index.css +16 -12
- package/lib/menu/style/index.less +5 -3
- package/lib/menu/style/sider.less +2 -0
- package/lib/modal/DialogBox.d.ts +2 -2
- package/lib/modal/DialogBox.js +3 -2
- package/lib/pagination/rc-pagination/Pagination.js +0 -1
- package/lib/style/components.less +2 -0
- package/lib/style/themes/default/components/avatar.less +13 -0
- package/lib/style/themes/default/components/divider.less +6 -0
- package/lib/style/themes/default/components/index.less +2 -0
- package/lib/table/style/index.css +4 -3
- package/lib/table/style/index.less +4 -0
- package/lib/tag/style/index.css +46 -0
- package/lib/tag/style/index.less +37 -0
- package/lib/tree-select/index.d.ts +4 -4
- package/lib/tree-select/index.js +7 -7
- package/lib/tree-select/src/LegacyContext.d.ts +24 -0
- package/lib/tree-select/src/LegacyContext.js +18 -0
- package/lib/tree-select/src/OptionList.d.ts +8 -0
- package/lib/tree-select/src/OptionList.js +368 -0
- package/lib/tree-select/src/TreeNode.d.ts +9 -0
- package/lib/tree-select/src/TreeNode.js +14 -0
- package/lib/tree-select/src/TreeSelect.d.ts +122 -0
- package/lib/tree-select/src/TreeSelect.js +572 -0
- package/lib/tree-select/src/TreeSelectContext.d.ts +16 -0
- package/lib/tree-select/src/TreeSelectContext.js +18 -0
- package/lib/tree-select/src/hooks/useCache.d.ts +7 -0
- package/lib/tree-select/src/hooks/useCache.js +47 -0
- package/lib/tree-select/src/hooks/useCheckedKeys.d.ts +5 -0
- package/lib/tree-select/src/hooks/useCheckedKeys.js +49 -0
- package/lib/tree-select/src/hooks/useDataEntities.d.ts +7 -0
- package/lib/tree-select/src/hooks/useDataEntities.js +52 -0
- package/lib/tree-select/src/hooks/useFilterTreeData.d.ts +7 -0
- package/lib/tree-select/src/hooks/useFilterTreeData.js +70 -0
- package/lib/tree-select/src/hooks/useRefFunc.d.ts +5 -0
- package/lib/tree-select/src/hooks/useRefFunc.js +27 -0
- package/lib/tree-select/src/hooks/useTreeData.d.ts +8 -0
- package/lib/tree-select/src/hooks/useTreeData.js +71 -0
- package/lib/tree-select/src/index.d.ts +7 -0
- package/lib/tree-select/src/index.js +45 -0
- package/lib/tree-select/src/interface.d.ts +77 -0
- package/lib/tree-select/src/interface.js +5 -0
- package/lib/tree-select/src/utils/legacyUtil.d.ts +6 -0
- package/lib/tree-select/src/utils/legacyUtil.js +166 -0
- package/lib/tree-select/src/utils/strategyUtil.d.ts +9 -0
- package/lib/tree-select/src/utils/strategyUtil.js +53 -0
- package/lib/tree-select/src/utils/valueUtil.d.ts +14 -0
- package/lib/tree-select/src/utils/valueUtil.js +61 -0
- package/lib/tree-select/src/utils/warningPropsUtil.d.ts +5 -0
- package/lib/tree-select/src/utils/warningPropsUtil.js +43 -0
- package/lib/tree-select/style/index.css +10 -0
- package/lib/tree-select/style/index.less +11 -0
- package/package.json +1 -1
package/lib/modal/DialogBox.js
CHANGED
|
@@ -109,7 +109,8 @@ var DialogBox = function DialogBox(props) {
|
|
|
109
109
|
confirmLoading = props.confirmLoading,
|
|
110
110
|
onOk = props.onOk,
|
|
111
111
|
onClose = props.onClose,
|
|
112
|
-
|
|
112
|
+
icon = props.icon,
|
|
113
|
+
restProps = __rest(props, ["visible", "className", "title", "content", "type", "cancelBtn", "okText", "confirmLoading", "onOk", "onClose", "icon"]);
|
|
113
114
|
|
|
114
115
|
var _React$useState = React.useState(false),
|
|
115
116
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
@@ -148,7 +149,7 @@ var DialogBox = function DialogBox(props) {
|
|
|
148
149
|
}, [onClose]);
|
|
149
150
|
var titleNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
150
151
|
className: "".concat(prefixCls, "-icon")
|
|
151
|
-
}, DialogType[type].icon), /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
}, icon || DialogType[type].icon), /*#__PURE__*/React.createElement("div", {
|
|
152
153
|
className: "".concat(prefixCls, "-title")
|
|
153
154
|
}, title));
|
|
154
155
|
var footer = React.useMemo(function () {
|
|
@@ -167,7 +167,6 @@ var Pagination = function Pagination(_a) {
|
|
|
167
167
|
var allPages = (0, _react.useMemo)(function () {
|
|
168
168
|
return calculatePage(undefined, curState, props);
|
|
169
169
|
}, [props, curState]);
|
|
170
|
-
console.log(allPages);
|
|
171
170
|
var prevPage = current - 1 > 0 ? current - 1 : 0;
|
|
172
171
|
var nextPage = current + 1 < allPages ? current + 1 : allPages;
|
|
173
172
|
var hasOnChange = (0, _react.useMemo)(function () {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "../affix/style/index.less";
|
|
2
2
|
@import "../alert/style/index.less";
|
|
3
3
|
@import "../anchor/style/index.less";
|
|
4
|
+
@import "../avatar/style/index.less";
|
|
4
5
|
@import "../back-top/style/index.less";
|
|
5
6
|
@import "../badge/style/index.less";
|
|
6
7
|
@import "../breadcrumb/style/index.less";
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
@import "../config-provider/style/index.less";
|
|
15
16
|
@import "../date-picker/style/index.less";
|
|
16
17
|
@import "../dialog-box/style/index.less";
|
|
18
|
+
@import "../divider/style/index.less";
|
|
17
19
|
@import "../drawer/style/index.less";
|
|
18
20
|
@import "../dropdown/style/index.less";
|
|
19
21
|
@import "../empty/style/index.less";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
@avatar-size-base: 32px;
|
|
3
|
+
@avatar-size-lg: 40px;
|
|
4
|
+
@avatar-size-sm: 24px;
|
|
5
|
+
@avatar-font-size-base: 18px;
|
|
6
|
+
@avatar-font-size-lg: 24px;
|
|
7
|
+
@avatar-font-size-sm: 14px;
|
|
8
|
+
@avatar-bg: #ccc;
|
|
9
|
+
@avatar-color: #fff;
|
|
10
|
+
@avatar-border-radius: @border-radius-base;
|
|
11
|
+
@avatar-group-overlapping: -8px;
|
|
12
|
+
@avatar-group-space: 3px;
|
|
13
|
+
@avatar-group-border-color: #fff;
|
|
@@ -340,12 +340,14 @@ div.acud-table-summary {
|
|
|
340
340
|
.acud-table-filter-column {
|
|
341
341
|
display: flex;
|
|
342
342
|
justify-content: flex-start;
|
|
343
|
+
align-items: center;
|
|
343
344
|
}
|
|
344
345
|
.acud-table-filter-column .acud-dropdown-trigger {
|
|
345
346
|
display: flex;
|
|
346
347
|
}
|
|
347
348
|
.acud-table-filter-column .acud-dropdown-trigger .acudicon-outlined-funnel {
|
|
348
349
|
display: flex;
|
|
350
|
+
height: 16px;
|
|
349
351
|
}
|
|
350
352
|
.acud-table-filter-trigger {
|
|
351
353
|
position: relative;
|
|
@@ -465,9 +467,11 @@ table tr th.acud-table-selection-column::after {
|
|
|
465
467
|
padding-inline-start: 4px;
|
|
466
468
|
margin-left: 0;
|
|
467
469
|
display: flex;
|
|
470
|
+
align-items: center;
|
|
468
471
|
}
|
|
469
472
|
.acud-table-selection-extra .acud-dropdown-trigger {
|
|
470
473
|
display: flex;
|
|
474
|
+
height: 16px;
|
|
471
475
|
}
|
|
472
476
|
.acud-table-selection-extra .acudicon {
|
|
473
477
|
color: #84868C;
|
|
@@ -542,7 +546,6 @@ tr.acud-table-expanded-row .acud-descriptions-view table {
|
|
|
542
546
|
}
|
|
543
547
|
.acud-table-cell-fix-left,
|
|
544
548
|
.acud-table-cell-fix-right {
|
|
545
|
-
position: -webkit-sticky !important;
|
|
546
549
|
position: sticky !important;
|
|
547
550
|
z-index: 2;
|
|
548
551
|
background: #FFFFFF;
|
|
@@ -612,13 +615,11 @@ tr.acud-table-expanded-row .acud-descriptions-view table {
|
|
|
612
615
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
613
616
|
}
|
|
614
617
|
.acud-table-sticky-holder {
|
|
615
|
-
position: -webkit-sticky;
|
|
616
618
|
position: sticky;
|
|
617
619
|
z-index: calc(2 + 1);
|
|
618
620
|
background: #FFFFFF;
|
|
619
621
|
}
|
|
620
622
|
.acud-table-sticky-scroll {
|
|
621
|
-
position: -webkit-sticky;
|
|
622
623
|
position: sticky;
|
|
623
624
|
bottom: 0;
|
|
624
625
|
z-index: calc(2 + 1);
|
|
@@ -388,10 +388,12 @@
|
|
|
388
388
|
&-filter-column {
|
|
389
389
|
display: flex;
|
|
390
390
|
justify-content: flex-start;
|
|
391
|
+
align-items: center;
|
|
391
392
|
.@{dropdown-prefix-cls}-trigger {
|
|
392
393
|
display: flex;
|
|
393
394
|
.@{acud-prefix}icon-outlined-funnel {
|
|
394
395
|
display: flex;
|
|
396
|
+
height: 4 * @P;
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
399
|
}
|
|
@@ -559,9 +561,11 @@
|
|
|
559
561
|
padding-inline-start: @padding-xss;
|
|
560
562
|
margin-left: 0;
|
|
561
563
|
display: flex;
|
|
564
|
+
align-items: center;
|
|
562
565
|
|
|
563
566
|
.@{acud-prefix}-dropdown-trigger {
|
|
564
567
|
display: flex;
|
|
568
|
+
height: 4 * @P;
|
|
565
569
|
}
|
|
566
570
|
|
|
567
571
|
.@{iconfont-css-prefix} {
|
package/lib/tag/style/index.css
CHANGED
|
@@ -321,6 +321,52 @@
|
|
|
321
321
|
color: #84868C;
|
|
322
322
|
background-color: #E8E9EB;
|
|
323
323
|
}
|
|
324
|
+
.acud-tag .circle {
|
|
325
|
+
display: inline-block;
|
|
326
|
+
width: 8px;
|
|
327
|
+
height: 8px;
|
|
328
|
+
border-radius: 8px;
|
|
329
|
+
margin-right: 8px;
|
|
330
|
+
}
|
|
331
|
+
.acud-tag .circle.status-inactive {
|
|
332
|
+
background: #D4D6D9;
|
|
333
|
+
}
|
|
334
|
+
.acud-tag .circle.status-active {
|
|
335
|
+
background: #2468F2;
|
|
336
|
+
}
|
|
337
|
+
.acud-tag .circle.status-processing {
|
|
338
|
+
background: #528EFF;
|
|
339
|
+
}
|
|
340
|
+
.acud-tag .circle.status-success {
|
|
341
|
+
background: #30BF13;
|
|
342
|
+
}
|
|
343
|
+
.acud-tag .circle.status-error {
|
|
344
|
+
background: #F33E3E;
|
|
345
|
+
}
|
|
346
|
+
.acud-tag .circle.status-warning {
|
|
347
|
+
background: #FF9326;
|
|
348
|
+
}
|
|
349
|
+
.acud-tag .circle.status-processing {
|
|
350
|
+
box-shadow: 0 0 0 2px #D4E5FF;
|
|
351
|
+
-webkit-animation: flash 1s ease infinite;
|
|
352
|
+
animation: flash 1s ease infinite;
|
|
353
|
+
}
|
|
354
|
+
@-webkit-keyframes flash {
|
|
355
|
+
from {
|
|
356
|
+
transform: scale(0.7);
|
|
357
|
+
}
|
|
358
|
+
to {
|
|
359
|
+
transform: scale(1);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
@keyframes flash {
|
|
363
|
+
from {
|
|
364
|
+
transform: scale(0.7);
|
|
365
|
+
}
|
|
366
|
+
to {
|
|
367
|
+
transform: scale(1);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
324
370
|
.acud-tag.acud-tag-rtl {
|
|
325
371
|
margin-right: 0;
|
|
326
372
|
margin-left: 8px;
|
package/lib/tag/style/index.less
CHANGED
|
@@ -196,6 +196,43 @@
|
|
|
196
196
|
background-color: @G8;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
+
|
|
200
|
+
.circle {
|
|
201
|
+
display: inline-block;
|
|
202
|
+
width: 8px;
|
|
203
|
+
height: 8px;
|
|
204
|
+
border-radius: 8px;
|
|
205
|
+
margin-right: 8px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.make-status-color-classes(@status) {
|
|
209
|
+
@color: 'tag-@{status}-color';
|
|
210
|
+
.circle.status-@{status} {
|
|
211
|
+
background: @@color;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.make-status-color-classes(inactive);
|
|
215
|
+
.make-status-color-classes(active);
|
|
216
|
+
.make-status-color-classes(processing);
|
|
217
|
+
.make-status-color-classes(success);
|
|
218
|
+
.make-status-color-classes(error);
|
|
219
|
+
.make-status-color-classes(warning);
|
|
220
|
+
|
|
221
|
+
// processing 动效
|
|
222
|
+
.circle.status-processing {
|
|
223
|
+
box-shadow: 0 0 0 2px #D4E5FF;
|
|
224
|
+
animation: flash 1s ease infinite;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes flash {
|
|
228
|
+
from {
|
|
229
|
+
transform: scale(0.7);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
to {
|
|
233
|
+
transform: scale(1);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
199
236
|
}
|
|
200
237
|
|
|
201
238
|
@import './rtl';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @author chenqiang(chenqiang03@baidu.com)
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import type { TreeSelectProps as RcTreeSelectProps } from '
|
|
7
|
-
import { TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD } from '
|
|
8
|
-
import type { BaseOptionType, DefaultOptionType } from '
|
|
6
|
+
import type { TreeSelectProps as RcTreeSelectProps } from './src';
|
|
7
|
+
import { TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD } from './src';
|
|
8
|
+
import type { BaseOptionType, DefaultOptionType } from './src/TreeSelect';
|
|
9
9
|
import type { BaseSelectRef } from 'rc-select';
|
|
10
10
|
import type { TreeProps } from '../tree/tree';
|
|
11
11
|
import type { SizeType } from '../config-provider/SizeContext';
|
|
@@ -31,7 +31,7 @@ export interface TreeSelectProps<ValueType = any, OptionType extends BaseOptionT
|
|
|
31
31
|
status?: InputStatus;
|
|
32
32
|
switcherIcon?: SwitcherIcon;
|
|
33
33
|
}
|
|
34
|
-
declare const TreeSelectRef: <ValueType = any, OptionType extends
|
|
34
|
+
declare const TreeSelectRef: <ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: TreeSelectProps<ValueType, OptionType> & {
|
|
35
35
|
children?: React.ReactNode;
|
|
36
36
|
} & {
|
|
37
37
|
ref?: React.Ref<BaseSelectRef>;
|
package/lib/tree-select/index.js
CHANGED
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
10
|
Object.defineProperty(exports, "TreeNode", {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function get() {
|
|
13
|
-
return
|
|
13
|
+
return _src.TreeNode;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
exports["default"] = void 0;
|
|
@@ -21,7 +21,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
21
21
|
|
|
22
22
|
var React = _interopRequireWildcard(require("react"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _src = _interopRequireWildcard(require("./src"));
|
|
25
25
|
|
|
26
26
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
27
|
|
|
@@ -171,7 +171,7 @@ var InternalTreeSelect = function InternalTreeSelect(_a, ref) {
|
|
|
171
171
|
var mergedDisabled = customDisabled || disabled;
|
|
172
172
|
var mergedClassName = (0, _classnames["default"])(!customizePrefixCls && treeSelectPrefixCls, (_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-in-form-item"), isFormItemInput), _classNames2), (0, _statusUtils.getStatusClassNames)(prefixCls, mergedStatus, hasFeedback), className);
|
|
173
173
|
var rootPrefixCls = getPrefixCls();
|
|
174
|
-
return /*#__PURE__*/React.createElement(
|
|
174
|
+
return /*#__PURE__*/React.createElement(_src["default"], (0, _extends2["default"])({
|
|
175
175
|
virtual: virtual,
|
|
176
176
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
177
177
|
disabled: mergedDisabled
|
|
@@ -207,9 +207,9 @@ var InternalTreeSelect = function InternalTreeSelect(_a, ref) {
|
|
|
207
207
|
|
|
208
208
|
var TreeSelectRef = /*#__PURE__*/React.forwardRef(InternalTreeSelect);
|
|
209
209
|
var TreeSelect = TreeSelectRef;
|
|
210
|
-
TreeSelect.TreeNode =
|
|
211
|
-
TreeSelect.SHOW_ALL =
|
|
212
|
-
TreeSelect.SHOW_PARENT =
|
|
213
|
-
TreeSelect.SHOW_CHILD =
|
|
210
|
+
TreeSelect.TreeNode = _src.TreeNode;
|
|
211
|
+
TreeSelect.SHOW_ALL = _src.SHOW_ALL;
|
|
212
|
+
TreeSelect.SHOW_PARENT = _src.SHOW_PARENT;
|
|
213
|
+
TreeSelect.SHOW_CHILD = _src.SHOW_CHILD;
|
|
214
214
|
var _default = TreeSelect;
|
|
215
215
|
exports["default"] = _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DataEntity, IconType } from 'rc-tree/lib/interface';
|
|
3
|
+
import type { Key, LegacyDataNode, RawValueType } from './interface';
|
|
4
|
+
interface LegacyContextProps {
|
|
5
|
+
checkable: boolean | React.ReactNode;
|
|
6
|
+
checkedKeys: Key[];
|
|
7
|
+
halfCheckedKeys: Key[];
|
|
8
|
+
treeExpandedKeys: Key[];
|
|
9
|
+
treeDefaultExpandedKeys: Key[];
|
|
10
|
+
onTreeExpand: (keys: Key[]) => void;
|
|
11
|
+
treeDefaultExpandAll: boolean;
|
|
12
|
+
treeIcon: IconType;
|
|
13
|
+
showTreeIcon: boolean;
|
|
14
|
+
switcherIcon: IconType;
|
|
15
|
+
treeLine: boolean;
|
|
16
|
+
treeNodeFilterProp: string;
|
|
17
|
+
treeLoadedKeys: Key[];
|
|
18
|
+
treeMotion: any;
|
|
19
|
+
loadData: (treeNode: LegacyDataNode) => Promise<unknown>;
|
|
20
|
+
onTreeLoad: (loadedKeys: Key[]) => void;
|
|
21
|
+
keyEntities: Record<RawValueType, DataEntity<any>>;
|
|
22
|
+
}
|
|
23
|
+
declare const LegacySelectContext: React.Context<LegacyContextProps>;
|
|
24
|
+
export default LegacySelectContext;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
|
|
16
|
+
var LegacySelectContext = /*#__PURE__*/React.createContext(null);
|
|
17
|
+
var _default = LegacySelectContext;
|
|
18
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { RefOptionListProps } from 'rc-select/lib/OptionList';
|
|
3
|
+
import type { ScrollTo } from 'rc-tree/lib/interface';
|
|
4
|
+
declare type ReviseRefOptionListProps = Omit<RefOptionListProps, 'scrollTo'> & {
|
|
5
|
+
scrollTo: ScrollTo;
|
|
6
|
+
};
|
|
7
|
+
declare const RefOptionList: React.ForwardRefExoticComponent<React.RefAttributes<ReviseRefOptionListProps>>;
|
|
8
|
+
export default RefOptionList;
|