@douyinfe/semi-ui 2.28.1 → 2.29.0-beta.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/dist/css/semi.css +17 -11
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +97 -42
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.js +15 -6
- package/lib/cjs/datePicker/datePicker.js +4 -4
- package/lib/cjs/datePicker/index.d.ts +1 -0
- package/lib/cjs/datePicker/quickControl.d.ts +3 -2
- package/lib/cjs/datePicker/quickControl.js +1 -1
- package/lib/cjs/form/group.d.ts +2 -0
- package/lib/cjs/form/group.js +16 -5
- package/lib/cjs/locale/interface.d.ts +1 -2
- package/lib/cjs/locale/source/ar.js +7 -8
- package/lib/cjs/locale/source/de.js +4 -5
- package/lib/cjs/locale/source/en_GB.js +4 -5
- package/lib/cjs/locale/source/en_US.js +4 -5
- package/lib/cjs/locale/source/es.js +4 -5
- package/lib/cjs/locale/source/fr.js +4 -5
- package/lib/cjs/locale/source/id_ID.js +4 -5
- package/lib/cjs/locale/source/it.js +4 -5
- package/lib/cjs/locale/source/ja_JP.js +4 -5
- package/lib/cjs/locale/source/ko_KR.js +4 -5
- package/lib/cjs/locale/source/ms_MY.js +4 -5
- package/lib/cjs/locale/source/nl_NL.d.ts +8 -0
- package/lib/cjs/locale/source/nl_NL.js +181 -0
- package/lib/cjs/locale/source/pl_PL.d.ts +8 -0
- package/lib/cjs/locale/source/pl_PL.js +181 -0
- package/lib/cjs/locale/source/pt_BR.js +4 -5
- package/lib/cjs/locale/source/ro.d.ts +1 -2
- package/lib/cjs/locale/source/ro.js +7 -8
- package/lib/cjs/locale/source/ru_RU.js +7 -8
- package/lib/cjs/locale/source/sv_SE.d.ts +7 -0
- package/lib/cjs/locale/source/sv_SE.js +180 -0
- package/lib/cjs/locale/source/th_TH.js +4 -5
- package/lib/cjs/locale/source/tr_TR.js +2 -3
- package/lib/cjs/locale/source/vi_VN.js +4 -5
- package/lib/cjs/locale/source/zh_CN.js +4 -5
- package/lib/cjs/locale/source/zh_TW.js +4 -5
- package/lib/cjs/pagination/index.js +7 -4
- package/lib/cjs/slider/index.js +3 -10
- package/lib/cjs/tooltip/index.js +5 -1
- package/lib/cjs/transfer/index.d.ts +16 -1
- package/lib/cjs/transfer/index.js +37 -3
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/dateInput.js +17 -6
- package/lib/es/datePicker/datePicker.js +4 -4
- package/lib/es/datePicker/index.d.ts +1 -0
- package/lib/es/datePicker/quickControl.d.ts +3 -2
- package/lib/es/datePicker/quickControl.js +1 -1
- package/lib/es/form/group.d.ts +2 -0
- package/lib/es/form/group.js +16 -5
- package/lib/es/locale/interface.d.ts +1 -2
- package/lib/es/locale/source/ar.js +7 -8
- package/lib/es/locale/source/de.js +4 -5
- package/lib/es/locale/source/en_GB.js +4 -5
- package/lib/es/locale/source/en_US.js +4 -5
- package/lib/es/locale/source/es.js +4 -5
- package/lib/es/locale/source/fr.js +4 -5
- package/lib/es/locale/source/id_ID.js +4 -5
- package/lib/es/locale/source/it.js +4 -5
- package/lib/es/locale/source/ja_JP.js +4 -5
- package/lib/es/locale/source/ko_KR.js +4 -5
- package/lib/es/locale/source/ms_MY.js +4 -5
- package/lib/es/locale/source/nl_NL.d.ts +8 -0
- package/lib/es/locale/source/nl_NL.js +173 -0
- package/lib/es/locale/source/pl_PL.d.ts +8 -0
- package/lib/es/locale/source/pl_PL.js +173 -0
- package/lib/es/locale/source/pt_BR.js +4 -5
- package/lib/es/locale/source/ro.d.ts +1 -2
- package/lib/es/locale/source/ro.js +7 -8
- package/lib/es/locale/source/ru_RU.js +7 -8
- package/lib/es/locale/source/sv_SE.d.ts +7 -0
- package/lib/es/locale/source/sv_SE.js +172 -0
- package/lib/es/locale/source/th_TH.js +4 -5
- package/lib/es/locale/source/tr_TR.js +2 -3
- package/lib/es/locale/source/vi_VN.js +4 -5
- package/lib/es/locale/source/zh_CN.js +4 -5
- package/lib/es/locale/source/zh_TW.js +4 -5
- package/lib/es/pagination/index.js +7 -4
- package/lib/es/slider/index.js +3 -10
- package/lib/es/tooltip/index.js +5 -1
- package/lib/es/transfer/index.d.ts +16 -1
- package/lib/es/transfer/index.js +37 -3
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -20511,7 +20511,11 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
|
|
|
20511
20511
|
Object(warning["a" /* default */])(this.props.mouseLeaveDelay < this.props.mouseEnterDelay, "[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden.");
|
|
20512
20512
|
|
|
20513
20513
|
if (prevProps.visible !== this.props.visible) {
|
|
20514
|
-
|
|
20514
|
+
if (['hover', 'focus'].includes(this.props.trigger)) {
|
|
20515
|
+
this.props.visible ? this.foundation.delayShow() : this.foundation.delayHide();
|
|
20516
|
+
} else {
|
|
20517
|
+
this.props.visible ? this.foundation.show() : this.foundation.hide();
|
|
20518
|
+
}
|
|
20515
20519
|
}
|
|
20516
20520
|
|
|
20517
20521
|
if (!isEqual_default()(prevProps.rePosKey, this.props.rePosKey)) {
|
|
@@ -21328,11 +21332,10 @@ const local = {
|
|
|
21328
21332
|
code: 'zh-CN',
|
|
21329
21333
|
dateFnsLocale: zh_CN,
|
|
21330
21334
|
Pagination: {
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
jumpTo: '跳至'
|
|
21335
|
+
pageSize: '${pageSize} 条/页',
|
|
21336
|
+
total: '共 ${total} 页',
|
|
21337
|
+
jumpTo: '跳至',
|
|
21338
|
+
page: '页'
|
|
21336
21339
|
},
|
|
21337
21340
|
Modal: {
|
|
21338
21341
|
confirm: '确定',
|
|
@@ -52511,6 +52514,8 @@ function InsetTimeInput(props) {
|
|
|
52511
52514
|
});
|
|
52512
52515
|
}
|
|
52513
52516
|
// CONCATENATED MODULE: ./datePicker/dateInput.tsx
|
|
52517
|
+
|
|
52518
|
+
|
|
52514
52519
|
var dateInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
52515
52520
|
var t = {};
|
|
52516
52521
|
|
|
@@ -52785,7 +52790,8 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52785
52790
|
prefixCls,
|
|
52786
52791
|
rangeInputStartRef,
|
|
52787
52792
|
rangeInputEndRef,
|
|
52788
|
-
density
|
|
52793
|
+
density,
|
|
52794
|
+
insetInput
|
|
52789
52795
|
} = this.props;
|
|
52790
52796
|
|
|
52791
52797
|
const _isRangeType = type.includes('Range');
|
|
@@ -52794,6 +52800,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52794
52800
|
value,
|
|
52795
52801
|
insetInputValue
|
|
52796
52802
|
});
|
|
52803
|
+
|
|
52804
|
+
const {
|
|
52805
|
+
dateStart,
|
|
52806
|
+
dateEnd,
|
|
52807
|
+
timeStart,
|
|
52808
|
+
timeEnd
|
|
52809
|
+
} = get_default()(insetInput, 'placeholder', {});
|
|
52810
|
+
|
|
52797
52811
|
const {
|
|
52798
52812
|
datePlaceholder,
|
|
52799
52813
|
timePlaceholder
|
|
@@ -52806,14 +52820,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52806
52820
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetDateInput, {
|
|
52807
52821
|
forwardRef: rangeInputStartRef,
|
|
52808
52822
|
insetInputValue: newInsetInputValue,
|
|
52809
|
-
placeholder: datePlaceholder,
|
|
52823
|
+
placeholder: dateStart !== null && dateStart !== void 0 ? dateStart : datePlaceholder,
|
|
52810
52824
|
valuePath: 'monthLeft.dateInput',
|
|
52811
52825
|
onChange: this.handleInsetInputChange,
|
|
52812
52826
|
onFocus: e => handleInsetDateFocus(e, 'rangeStart')
|
|
52813
52827
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetTimeInput, {
|
|
52814
52828
|
disabled: !newInsetInputValue.monthLeft.dateInput,
|
|
52815
52829
|
insetInputValue: newInsetInputValue,
|
|
52816
|
-
placeholder: timePlaceholder,
|
|
52830
|
+
placeholder: timeStart !== null && timeStart !== void 0 ? timeStart : timePlaceholder,
|
|
52817
52831
|
type: type,
|
|
52818
52832
|
valuePath: 'monthLeft.timeInput',
|
|
52819
52833
|
onChange: this.handleInsetInputChange,
|
|
@@ -52823,14 +52837,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52823
52837
|
}, density === 'compact' ? null : '-'), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetDateInput, {
|
|
52824
52838
|
forwardRef: rangeInputEndRef,
|
|
52825
52839
|
insetInputValue: newInsetInputValue,
|
|
52826
|
-
placeholder: datePlaceholder,
|
|
52840
|
+
placeholder: dateEnd !== null && dateEnd !== void 0 ? dateEnd : datePlaceholder,
|
|
52827
52841
|
valuePath: 'monthRight.dateInput',
|
|
52828
52842
|
onChange: this.handleInsetInputChange,
|
|
52829
52843
|
onFocus: e => handleInsetDateFocus(e, 'rangeEnd')
|
|
52830
52844
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetTimeInput, {
|
|
52831
52845
|
disabled: !newInsetInputValue.monthRight.dateInput,
|
|
52832
52846
|
insetInputValue: newInsetInputValue,
|
|
52833
|
-
placeholder: timePlaceholder,
|
|
52847
|
+
placeholder: timeEnd !== null && timeEnd !== void 0 ? timeEnd : timePlaceholder,
|
|
52834
52848
|
type: type,
|
|
52835
52849
|
valuePath: 'monthRight.timeInput',
|
|
52836
52850
|
onChange: this.handleInsetInputChange,
|
|
@@ -52956,7 +52970,7 @@ dateInput_DateInput.propTypes = {
|
|
|
52956
52970
|
rangeInputStartRef: prop_types_default.a.object,
|
|
52957
52971
|
rangeInputEndRef: prop_types_default.a.object,
|
|
52958
52972
|
rangeSeparator: prop_types_default.a.string,
|
|
52959
|
-
insetInput: prop_types_default.a.bool,
|
|
52973
|
+
insetInput: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object]),
|
|
52960
52974
|
insetInputValue: prop_types_default.a.object,
|
|
52961
52975
|
defaultPickerValue: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number, prop_types_default.a.object, prop_types_default.a.array])
|
|
52962
52976
|
};
|
|
@@ -53603,10 +53617,10 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
53603
53617
|
const selectedDate = values.find(item => item); // 如果日期不完整且输入日期不在面板范围内,则更新面板
|
|
53604
53618
|
|
|
53605
53619
|
if (selectedDate) {
|
|
53606
|
-
const
|
|
53607
|
-
const
|
|
53620
|
+
const notLeftPanelDate = Math.abs(differenceInCalendarMonths(selectedDate, monthLeft.pickerDate)) > 0;
|
|
53621
|
+
const notRightPanelDate = Math.abs(differenceInCalendarMonths(selectedDate, monthRight.pickerDate)) > 0;
|
|
53608
53622
|
|
|
53609
|
-
if (
|
|
53623
|
+
if (notLeftPanelDate && notRightPanelDate) {
|
|
53610
53624
|
this.handleShowDateAndTime(datePicker_constants_strings.PANEL_TYPE_LEFT, adjustResult.monthLeft.pickerDate);
|
|
53611
53625
|
this.handleShowDateAndTime(datePicker_constants_strings.PANEL_TYPE_RIGHT, adjustResult.monthRight.pickerDate);
|
|
53612
53626
|
}
|
|
@@ -57990,7 +58004,7 @@ quickControl_QuickControl.propTypes = {
|
|
|
57990
58004
|
presetPosition: prop_types_default.a.oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
|
|
57991
58005
|
onPresetClick: prop_types_default.a.func,
|
|
57992
58006
|
type: prop_types_default.a.string,
|
|
57993
|
-
insetInput: prop_types_default.a.bool
|
|
58007
|
+
insetInput: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object])
|
|
57994
58008
|
};
|
|
57995
58009
|
quickControl_QuickControl.defaultProps = {
|
|
57996
58010
|
presets: [],
|
|
@@ -58655,7 +58669,7 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58655
58669
|
insetInputValue,
|
|
58656
58670
|
value
|
|
58657
58671
|
} = this.state;
|
|
58658
|
-
const
|
|
58672
|
+
const props = {
|
|
58659
58673
|
dateFnsLocale,
|
|
58660
58674
|
format,
|
|
58661
58675
|
insetInputValue,
|
|
@@ -58670,8 +58684,8 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58670
58684
|
density,
|
|
58671
58685
|
defaultPickerValue
|
|
58672
58686
|
};
|
|
58673
|
-
return insetInput ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(dateInput_DateInput, Object.assign({},
|
|
58674
|
-
insetInput:
|
|
58687
|
+
return insetInput ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(dateInput_DateInput, Object.assign({}, props, {
|
|
58688
|
+
insetInput: insetInput
|
|
58675
58689
|
})) : null;
|
|
58676
58690
|
}
|
|
58677
58691
|
|
|
@@ -58736,7 +58750,7 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58736
58750
|
format,
|
|
58737
58751
|
multiple,
|
|
58738
58752
|
validateStatus,
|
|
58739
|
-
inputReadOnly: inputReadOnly || insetInput,
|
|
58753
|
+
inputReadOnly: inputReadOnly || Boolean(insetInput),
|
|
58740
58754
|
// onClick: this.handleOpenPanel,
|
|
58741
58755
|
onBlur: this.handleInputBlur,
|
|
58742
58756
|
onFocus: this.handleInputFocus,
|
|
@@ -73852,19 +73866,20 @@ class pagination_Pagination extends baseComponent_BaseComponent {
|
|
|
73852
73866
|
return null;
|
|
73853
73867
|
}
|
|
73854
73868
|
|
|
73855
|
-
const pageSizeText = locale.pageSize;
|
|
73856
73869
|
const newPageSizeOpts = this.foundation.pageSizeInOpts();
|
|
73870
|
+
const pageSizeToken = locale.pageSize; // Display pageSize in a specific language format order
|
|
73871
|
+
|
|
73857
73872
|
const options = newPageSizeOpts.map(size => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(pagination_Option, {
|
|
73858
73873
|
value: size,
|
|
73859
73874
|
key: size
|
|
73860
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null,
|
|
73875
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null, pageSizeToken.replace('${pageSize}', size.toString()))));
|
|
73861
73876
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
73862
73877
|
className: switchCls
|
|
73863
73878
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(select_0, {
|
|
73864
73879
|
"aria-label": "Page size selector",
|
|
73865
73880
|
onChange: newPageSize => this.foundation.changePageSize(newPageSize),
|
|
73866
73881
|
value: pageSize,
|
|
73867
|
-
key:
|
|
73882
|
+
key: pageSize,
|
|
73868
73883
|
position: popoverPosition || 'bottomRight',
|
|
73869
73884
|
clickToHide: true,
|
|
73870
73885
|
dropdownClassName: `${pagination_prefixCls}-select-dropdown`
|
|
@@ -74044,12 +74059,14 @@ class pagination_Pagination extends baseComponent_BaseComponent {
|
|
|
74044
74059
|
return null;
|
|
74045
74060
|
}
|
|
74046
74061
|
|
|
74062
|
+
const totalNum = Math.ceil(total / pageSize);
|
|
74063
|
+
const totalToken = locale.total.replace('${total}', totalNum.toString());
|
|
74047
74064
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", {
|
|
74048
74065
|
className: paginationCls,
|
|
74049
74066
|
style: style
|
|
74050
74067
|
}, showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
74051
74068
|
className: showTotalCls
|
|
74052
|
-
},
|
|
74069
|
+
}, totalToken) : null, this.renderPrevBtn(), this.renderPageList(), this.renderNextBtn(), this.renderPageSizeSwitch(locale), this.renderQuickJump(locale));
|
|
74053
74070
|
}
|
|
74054
74071
|
|
|
74055
74072
|
render() {
|
|
@@ -78298,10 +78315,6 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78298
78315
|
tipVisible,
|
|
78299
78316
|
tipChildren
|
|
78300
78317
|
} = this.foundation.computeHandleVisibleVal(tooltipVisible && isInRenderTree, tipFormatter, range);
|
|
78301
|
-
const transform = {
|
|
78302
|
-
top: 'translateY(-50%)',
|
|
78303
|
-
left: 'translateX(-50%)'
|
|
78304
|
-
};
|
|
78305
78318
|
const minClass = classnames_default()(slider_constants_cssClasses.HANDLE, {
|
|
78306
78319
|
[`${slider_constants_cssClasses.HANDLE}-clicked`]: chooseMovePos === 'min' && isDrag
|
|
78307
78320
|
});
|
|
@@ -78334,8 +78347,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78334
78347
|
className: minClass,
|
|
78335
78348
|
style: {
|
|
78336
78349
|
[stylePos]: `${minPercent * 100}%`,
|
|
78337
|
-
zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
|
|
78338
|
-
transform: transform[stylePos]
|
|
78350
|
+
zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
|
|
78339
78351
|
},
|
|
78340
78352
|
onMouseDown: e => {
|
|
78341
78353
|
this.foundation.onHandleDown(e, 'min');
|
|
@@ -78386,8 +78398,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78386
78398
|
className: minClass,
|
|
78387
78399
|
style: {
|
|
78388
78400
|
[stylePos]: `${minPercent * 100}%`,
|
|
78389
|
-
zIndex: chooseMovePos === 'min' ? 2 : 1
|
|
78390
|
-
transform: transform[stylePos]
|
|
78401
|
+
zIndex: chooseMovePos === 'min' ? 2 : 1
|
|
78391
78402
|
},
|
|
78392
78403
|
onMouseDown: e => {
|
|
78393
78404
|
this.foundation.onHandleDown(e, 'min');
|
|
@@ -78438,8 +78449,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78438
78449
|
className: maxClass,
|
|
78439
78450
|
style: {
|
|
78440
78451
|
[stylePos]: `${maxPercent * 100}%`,
|
|
78441
|
-
zIndex: chooseMovePos === 'max' ? 2 : 1
|
|
78442
|
-
transform: transform[stylePos]
|
|
78452
|
+
zIndex: chooseMovePos === 'max' ? 2 : 1
|
|
78443
78453
|
},
|
|
78444
78454
|
onMouseDown: e => {
|
|
78445
78455
|
this.foundation.onHandleDown(e, 'max');
|
|
@@ -98273,7 +98283,9 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98273
98283
|
|
|
98274
98284
|
renderHeader(headerConfig) {
|
|
98275
98285
|
const {
|
|
98276
|
-
disabled
|
|
98286
|
+
disabled,
|
|
98287
|
+
renderSourceHeader,
|
|
98288
|
+
renderSelectedHeader
|
|
98277
98289
|
} = this.props;
|
|
98278
98290
|
const {
|
|
98279
98291
|
totalContent,
|
|
@@ -98287,6 +98299,35 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98287
98299
|
[`${transfer_prefixCls}-right-header`]: type === 'right',
|
|
98288
98300
|
[`${transfer_prefixCls}-left-header`]: type === 'left'
|
|
98289
98301
|
});
|
|
98302
|
+
|
|
98303
|
+
if (type === 'left' && typeof renderSourceHeader === 'function') {
|
|
98304
|
+
const {
|
|
98305
|
+
num,
|
|
98306
|
+
showButton,
|
|
98307
|
+
allChecked,
|
|
98308
|
+
onAllClick
|
|
98309
|
+
} = headerConfig;
|
|
98310
|
+
return renderSourceHeader({
|
|
98311
|
+
num,
|
|
98312
|
+
showButton,
|
|
98313
|
+
allChecked,
|
|
98314
|
+
onAllClick
|
|
98315
|
+
});
|
|
98316
|
+
}
|
|
98317
|
+
|
|
98318
|
+
if (type === 'right' && typeof renderSelectedHeader === 'function') {
|
|
98319
|
+
const {
|
|
98320
|
+
num,
|
|
98321
|
+
showButton,
|
|
98322
|
+
onAllClick: onClear
|
|
98323
|
+
} = headerConfig;
|
|
98324
|
+
return renderSelectedHeader({
|
|
98325
|
+
num,
|
|
98326
|
+
showButton,
|
|
98327
|
+
onClear
|
|
98328
|
+
});
|
|
98329
|
+
}
|
|
98330
|
+
|
|
98290
98331
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
98291
98332
|
className: headerCls
|
|
98292
98333
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
@@ -98362,7 +98403,9 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98362
98403
|
allContent: leftContainesNotInSelected ? locale.selectAll : locale.clearSelectAll,
|
|
98363
98404
|
onAllClick: () => this.foundation.handleAll(leftContainesNotInSelected),
|
|
98364
98405
|
type: 'left',
|
|
98365
|
-
showButton: type !== transfer_constants_strings.TYPE_TREE_TO_LIST
|
|
98406
|
+
showButton: type !== transfer_constants_strings.TYPE_TREE_TO_LIST,
|
|
98407
|
+
num: showNumber,
|
|
98408
|
+
allChecked: !leftContainesNotInSelected
|
|
98366
98409
|
};
|
|
98367
98410
|
const inputCom = this.renderFilter(locale);
|
|
98368
98411
|
const headerCom = this.renderHeader(headerConfig);
|
|
@@ -98610,7 +98653,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98610
98653
|
allContent: locale.clear,
|
|
98611
98654
|
onAllClick: () => this.foundation.handleClear(),
|
|
98612
98655
|
type: 'right',
|
|
98613
|
-
showButton: Boolean(selectedData.length)
|
|
98656
|
+
showButton: Boolean(selectedData.length),
|
|
98657
|
+
num: selectedData.length
|
|
98614
98658
|
};
|
|
98615
98659
|
const headerCom = this.renderHeader(headerConfig);
|
|
98616
98660
|
const emptyCom = this.renderEmpty('right', emptyContent.right ? emptyContent.right : locale.emptyRight);
|
|
@@ -100224,9 +100268,11 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100224
100268
|
const _a = this.props,
|
|
100225
100269
|
{
|
|
100226
100270
|
children,
|
|
100227
|
-
label
|
|
100271
|
+
label,
|
|
100272
|
+
extraText,
|
|
100273
|
+
extraTextPosition
|
|
100228
100274
|
} = _a,
|
|
100229
|
-
rest = group_rest(_a, ["children", "label"]);
|
|
100275
|
+
rest = group_rest(_a, ["children", "label", "extraText", "extraTextPosition"]);
|
|
100230
100276
|
|
|
100231
100277
|
const updater = this.context;
|
|
100232
100278
|
const formProps = updater.getFormProps(['labelPosition', 'labelWidth', 'labelAlign', 'showValidateIcon', 'wrapperCol', 'labelCol']);
|
|
@@ -100259,11 +100305,20 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100259
100305
|
showValidateIcon: formProps.showValidateIcon,
|
|
100260
100306
|
isInInputGroup: true
|
|
100261
100307
|
});
|
|
100308
|
+
const extraCls = classnames_default()(`${group_prefix}-field-extra`, {
|
|
100309
|
+
[`${group_prefix}-field-extra-string`]: typeof extraText === 'string',
|
|
100310
|
+
[`${group_prefix}-field-extra-middle`]: extraTextPosition === 'middle',
|
|
100311
|
+
[`${group_prefix}-field-extra-bottom`]: extraTextPosition === 'bottom'
|
|
100312
|
+
});
|
|
100313
|
+
const extraContent = extraText ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
100314
|
+
className: extraCls,
|
|
100315
|
+
"x-semi-prop": "extraText"
|
|
100316
|
+
}, extraText) : null;
|
|
100262
100317
|
let content;
|
|
100263
100318
|
|
|
100264
100319
|
switch (true) {
|
|
100265
100320
|
case !appendCol:
|
|
100266
|
-
content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, labelContent, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", null, inputGroupContent, groupErrorContent));
|
|
100321
|
+
content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, labelContent, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", null, extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
100267
100322
|
break;
|
|
100268
100323
|
|
|
100269
100324
|
case appendCol && labelPosition === 'top':
|
|
@@ -100274,13 +100329,13 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100274
100329
|
}
|
|
100275
100330
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, labelCol, {
|
|
100276
100331
|
className: labelColCls
|
|
100277
|
-
}), labelContent)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
100332
|
+
}), labelContent)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
100278
100333
|
break;
|
|
100279
100334
|
|
|
100280
100335
|
case appendCol && labelPosition !== 'top':
|
|
100281
100336
|
content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, labelCol, {
|
|
100282
100337
|
className: labelColCls
|
|
100283
|
-
}), labelContent), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
100338
|
+
}), labelContent), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), extraTextPosition === 'middle' ? extraContent : null, inputGroupContent, extraTextPosition === 'bottom' ? extraContent : null, groupErrorContent));
|
|
100284
100339
|
break;
|
|
100285
100340
|
|
|
100286
100341
|
default:
|