@douyinfe/semi-ui 2.28.2 → 2.29.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 +94 -39
- 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: '确定',
|
|
@@ -52514,6 +52517,8 @@ function InsetTimeInput(props) {
|
|
|
52514
52517
|
});
|
|
52515
52518
|
}
|
|
52516
52519
|
// CONCATENATED MODULE: ./datePicker/dateInput.tsx
|
|
52520
|
+
|
|
52521
|
+
|
|
52517
52522
|
var dateInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
52518
52523
|
var t = {};
|
|
52519
52524
|
|
|
@@ -52788,7 +52793,8 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52788
52793
|
prefixCls,
|
|
52789
52794
|
rangeInputStartRef,
|
|
52790
52795
|
rangeInputEndRef,
|
|
52791
|
-
density
|
|
52796
|
+
density,
|
|
52797
|
+
insetInput
|
|
52792
52798
|
} = this.props;
|
|
52793
52799
|
|
|
52794
52800
|
const _isRangeType = type.includes('Range');
|
|
@@ -52797,6 +52803,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52797
52803
|
value,
|
|
52798
52804
|
insetInputValue
|
|
52799
52805
|
});
|
|
52806
|
+
|
|
52807
|
+
const {
|
|
52808
|
+
dateStart,
|
|
52809
|
+
dateEnd,
|
|
52810
|
+
timeStart,
|
|
52811
|
+
timeEnd
|
|
52812
|
+
} = get_default()(insetInput, 'placeholder', {});
|
|
52813
|
+
|
|
52800
52814
|
const {
|
|
52801
52815
|
datePlaceholder,
|
|
52802
52816
|
timePlaceholder
|
|
@@ -52809,14 +52823,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52809
52823
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetDateInput, {
|
|
52810
52824
|
forwardRef: rangeInputStartRef,
|
|
52811
52825
|
insetInputValue: newInsetInputValue,
|
|
52812
|
-
placeholder: datePlaceholder,
|
|
52826
|
+
placeholder: dateStart !== null && dateStart !== void 0 ? dateStart : datePlaceholder,
|
|
52813
52827
|
valuePath: 'monthLeft.dateInput',
|
|
52814
52828
|
onChange: this.handleInsetInputChange,
|
|
52815
52829
|
onFocus: e => handleInsetDateFocus(e, 'rangeStart')
|
|
52816
52830
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetTimeInput, {
|
|
52817
52831
|
disabled: !newInsetInputValue.monthLeft.dateInput,
|
|
52818
52832
|
insetInputValue: newInsetInputValue,
|
|
52819
|
-
placeholder: timePlaceholder,
|
|
52833
|
+
placeholder: timeStart !== null && timeStart !== void 0 ? timeStart : timePlaceholder,
|
|
52820
52834
|
type: type,
|
|
52821
52835
|
valuePath: 'monthLeft.timeInput',
|
|
52822
52836
|
onChange: this.handleInsetInputChange,
|
|
@@ -52826,14 +52840,14 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
|
|
|
52826
52840
|
}, density === 'compact' ? null : '-'), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetDateInput, {
|
|
52827
52841
|
forwardRef: rangeInputEndRef,
|
|
52828
52842
|
insetInputValue: newInsetInputValue,
|
|
52829
|
-
placeholder: datePlaceholder,
|
|
52843
|
+
placeholder: dateEnd !== null && dateEnd !== void 0 ? dateEnd : datePlaceholder,
|
|
52830
52844
|
valuePath: 'monthRight.dateInput',
|
|
52831
52845
|
onChange: this.handleInsetInputChange,
|
|
52832
52846
|
onFocus: e => handleInsetDateFocus(e, 'rangeEnd')
|
|
52833
52847
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(InsetTimeInput, {
|
|
52834
52848
|
disabled: !newInsetInputValue.monthRight.dateInput,
|
|
52835
52849
|
insetInputValue: newInsetInputValue,
|
|
52836
|
-
placeholder: timePlaceholder,
|
|
52850
|
+
placeholder: timeEnd !== null && timeEnd !== void 0 ? timeEnd : timePlaceholder,
|
|
52837
52851
|
type: type,
|
|
52838
52852
|
valuePath: 'monthRight.timeInput',
|
|
52839
52853
|
onChange: this.handleInsetInputChange,
|
|
@@ -52959,7 +52973,7 @@ dateInput_DateInput.propTypes = {
|
|
|
52959
52973
|
rangeInputStartRef: prop_types_default.a.object,
|
|
52960
52974
|
rangeInputEndRef: prop_types_default.a.object,
|
|
52961
52975
|
rangeSeparator: prop_types_default.a.string,
|
|
52962
|
-
insetInput: prop_types_default.a.bool,
|
|
52976
|
+
insetInput: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object]),
|
|
52963
52977
|
insetInputValue: prop_types_default.a.object,
|
|
52964
52978
|
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])
|
|
52965
52979
|
};
|
|
@@ -57993,7 +58007,7 @@ quickControl_QuickControl.propTypes = {
|
|
|
57993
58007
|
presetPosition: prop_types_default.a.oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
|
|
57994
58008
|
onPresetClick: prop_types_default.a.func,
|
|
57995
58009
|
type: prop_types_default.a.string,
|
|
57996
|
-
insetInput: prop_types_default.a.bool
|
|
58010
|
+
insetInput: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object])
|
|
57997
58011
|
};
|
|
57998
58012
|
quickControl_QuickControl.defaultProps = {
|
|
57999
58013
|
presets: [],
|
|
@@ -58634,7 +58648,7 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58634
58648
|
insetInputValue,
|
|
58635
58649
|
value
|
|
58636
58650
|
} = this.state;
|
|
58637
|
-
const
|
|
58651
|
+
const props = {
|
|
58638
58652
|
dateFnsLocale,
|
|
58639
58653
|
format,
|
|
58640
58654
|
insetInputValue,
|
|
@@ -58649,8 +58663,8 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58649
58663
|
density,
|
|
58650
58664
|
defaultPickerValue
|
|
58651
58665
|
};
|
|
58652
|
-
return insetInput ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(dateInput_DateInput, Object.assign({},
|
|
58653
|
-
insetInput:
|
|
58666
|
+
return insetInput ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(dateInput_DateInput, Object.assign({}, props, {
|
|
58667
|
+
insetInput: insetInput
|
|
58654
58668
|
})) : null;
|
|
58655
58669
|
}
|
|
58656
58670
|
|
|
@@ -58715,7 +58729,7 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
|
|
|
58715
58729
|
format,
|
|
58716
58730
|
multiple,
|
|
58717
58731
|
validateStatus,
|
|
58718
|
-
inputReadOnly: inputReadOnly || insetInput,
|
|
58732
|
+
inputReadOnly: inputReadOnly || Boolean(insetInput),
|
|
58719
58733
|
// onClick: this.handleOpenPanel,
|
|
58720
58734
|
onBlur: this.handleInputBlur,
|
|
58721
58735
|
onFocus: this.handleInputFocus,
|
|
@@ -73831,19 +73845,20 @@ class pagination_Pagination extends baseComponent_BaseComponent {
|
|
|
73831
73845
|
return null;
|
|
73832
73846
|
}
|
|
73833
73847
|
|
|
73834
|
-
const pageSizeText = locale.pageSize;
|
|
73835
73848
|
const newPageSizeOpts = this.foundation.pageSizeInOpts();
|
|
73849
|
+
const pageSizeToken = locale.pageSize; // Display pageSize in a specific language format order
|
|
73850
|
+
|
|
73836
73851
|
const options = newPageSizeOpts.map(size => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(pagination_Option, {
|
|
73837
73852
|
value: size,
|
|
73838
73853
|
key: size
|
|
73839
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null,
|
|
73854
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", null, pageSizeToken.replace('${pageSize}', size.toString()))));
|
|
73840
73855
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
73841
73856
|
className: switchCls
|
|
73842
73857
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(select_0, {
|
|
73843
73858
|
"aria-label": "Page size selector",
|
|
73844
73859
|
onChange: newPageSize => this.foundation.changePageSize(newPageSize),
|
|
73845
73860
|
value: pageSize,
|
|
73846
|
-
key:
|
|
73861
|
+
key: pageSize,
|
|
73847
73862
|
position: popoverPosition || 'bottomRight',
|
|
73848
73863
|
clickToHide: true,
|
|
73849
73864
|
dropdownClassName: `${pagination_prefixCls}-select-dropdown`
|
|
@@ -74023,12 +74038,14 @@ class pagination_Pagination extends baseComponent_BaseComponent {
|
|
|
74023
74038
|
return null;
|
|
74024
74039
|
}
|
|
74025
74040
|
|
|
74041
|
+
const totalNum = Math.ceil(total / pageSize);
|
|
74042
|
+
const totalToken = locale.total.replace('${total}', totalNum.toString());
|
|
74026
74043
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", {
|
|
74027
74044
|
className: paginationCls,
|
|
74028
74045
|
style: style
|
|
74029
74046
|
}, showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
74030
74047
|
className: showTotalCls
|
|
74031
|
-
},
|
|
74048
|
+
}, totalToken) : null, this.renderPrevBtn(), this.renderPageList(), this.renderNextBtn(), this.renderPageSizeSwitch(locale), this.renderQuickJump(locale));
|
|
74032
74049
|
}
|
|
74033
74050
|
|
|
74034
74051
|
render() {
|
|
@@ -78277,10 +78294,6 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78277
78294
|
tipVisible,
|
|
78278
78295
|
tipChildren
|
|
78279
78296
|
} = this.foundation.computeHandleVisibleVal(tooltipVisible && isInRenderTree, tipFormatter, range);
|
|
78280
|
-
const transform = {
|
|
78281
|
-
top: 'translateY(-50%)',
|
|
78282
|
-
left: 'translateX(-50%)'
|
|
78283
|
-
};
|
|
78284
78297
|
const minClass = classnames_default()(slider_constants_cssClasses.HANDLE, {
|
|
78285
78298
|
[`${slider_constants_cssClasses.HANDLE}-clicked`]: chooseMovePos === 'min' && isDrag
|
|
78286
78299
|
});
|
|
@@ -78313,8 +78326,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78313
78326
|
className: minClass,
|
|
78314
78327
|
style: {
|
|
78315
78328
|
[stylePos]: `${minPercent * 100}%`,
|
|
78316
|
-
zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
|
|
78317
|
-
transform: transform[stylePos]
|
|
78329
|
+
zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
|
|
78318
78330
|
},
|
|
78319
78331
|
onMouseDown: e => {
|
|
78320
78332
|
this.foundation.onHandleDown(e, 'min');
|
|
@@ -78365,8 +78377,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78365
78377
|
className: minClass,
|
|
78366
78378
|
style: {
|
|
78367
78379
|
[stylePos]: `${minPercent * 100}%`,
|
|
78368
|
-
zIndex: chooseMovePos === 'min' ? 2 : 1
|
|
78369
|
-
transform: transform[stylePos]
|
|
78380
|
+
zIndex: chooseMovePos === 'min' ? 2 : 1
|
|
78370
78381
|
},
|
|
78371
78382
|
onMouseDown: e => {
|
|
78372
78383
|
this.foundation.onHandleDown(e, 'min');
|
|
@@ -78417,8 +78428,7 @@ class slider_Slider extends baseComponent_BaseComponent {
|
|
|
78417
78428
|
className: maxClass,
|
|
78418
78429
|
style: {
|
|
78419
78430
|
[stylePos]: `${maxPercent * 100}%`,
|
|
78420
|
-
zIndex: chooseMovePos === 'max' ? 2 : 1
|
|
78421
|
-
transform: transform[stylePos]
|
|
78431
|
+
zIndex: chooseMovePos === 'max' ? 2 : 1
|
|
78422
78432
|
},
|
|
78423
78433
|
onMouseDown: e => {
|
|
78424
78434
|
this.foundation.onHandleDown(e, 'max');
|
|
@@ -98252,7 +98262,9 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98252
98262
|
|
|
98253
98263
|
renderHeader(headerConfig) {
|
|
98254
98264
|
const {
|
|
98255
|
-
disabled
|
|
98265
|
+
disabled,
|
|
98266
|
+
renderSourceHeader,
|
|
98267
|
+
renderSelectedHeader
|
|
98256
98268
|
} = this.props;
|
|
98257
98269
|
const {
|
|
98258
98270
|
totalContent,
|
|
@@ -98266,6 +98278,35 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98266
98278
|
[`${transfer_prefixCls}-right-header`]: type === 'right',
|
|
98267
98279
|
[`${transfer_prefixCls}-left-header`]: type === 'left'
|
|
98268
98280
|
});
|
|
98281
|
+
|
|
98282
|
+
if (type === 'left' && typeof renderSourceHeader === 'function') {
|
|
98283
|
+
const {
|
|
98284
|
+
num,
|
|
98285
|
+
showButton,
|
|
98286
|
+
allChecked,
|
|
98287
|
+
onAllClick
|
|
98288
|
+
} = headerConfig;
|
|
98289
|
+
return renderSourceHeader({
|
|
98290
|
+
num,
|
|
98291
|
+
showButton,
|
|
98292
|
+
allChecked,
|
|
98293
|
+
onAllClick
|
|
98294
|
+
});
|
|
98295
|
+
}
|
|
98296
|
+
|
|
98297
|
+
if (type === 'right' && typeof renderSelectedHeader === 'function') {
|
|
98298
|
+
const {
|
|
98299
|
+
num,
|
|
98300
|
+
showButton,
|
|
98301
|
+
onAllClick: onClear
|
|
98302
|
+
} = headerConfig;
|
|
98303
|
+
return renderSelectedHeader({
|
|
98304
|
+
num,
|
|
98305
|
+
showButton,
|
|
98306
|
+
onClear
|
|
98307
|
+
});
|
|
98308
|
+
}
|
|
98309
|
+
|
|
98269
98310
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
98270
98311
|
className: headerCls
|
|
98271
98312
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
@@ -98341,7 +98382,9 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98341
98382
|
allContent: leftContainesNotInSelected ? locale.selectAll : locale.clearSelectAll,
|
|
98342
98383
|
onAllClick: () => this.foundation.handleAll(leftContainesNotInSelected),
|
|
98343
98384
|
type: 'left',
|
|
98344
|
-
showButton: type !== transfer_constants_strings.TYPE_TREE_TO_LIST
|
|
98385
|
+
showButton: type !== transfer_constants_strings.TYPE_TREE_TO_LIST,
|
|
98386
|
+
num: showNumber,
|
|
98387
|
+
allChecked: !leftContainesNotInSelected
|
|
98345
98388
|
};
|
|
98346
98389
|
const inputCom = this.renderFilter(locale);
|
|
98347
98390
|
const headerCom = this.renderHeader(headerConfig);
|
|
@@ -98589,7 +98632,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
98589
98632
|
allContent: locale.clear,
|
|
98590
98633
|
onAllClick: () => this.foundation.handleClear(),
|
|
98591
98634
|
type: 'right',
|
|
98592
|
-
showButton: Boolean(selectedData.length)
|
|
98635
|
+
showButton: Boolean(selectedData.length),
|
|
98636
|
+
num: selectedData.length
|
|
98593
98637
|
};
|
|
98594
98638
|
const headerCom = this.renderHeader(headerConfig);
|
|
98595
98639
|
const emptyCom = this.renderEmpty('right', emptyContent.right ? emptyContent.right : locale.emptyRight);
|
|
@@ -100203,9 +100247,11 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100203
100247
|
const _a = this.props,
|
|
100204
100248
|
{
|
|
100205
100249
|
children,
|
|
100206
|
-
label
|
|
100250
|
+
label,
|
|
100251
|
+
extraText,
|
|
100252
|
+
extraTextPosition
|
|
100207
100253
|
} = _a,
|
|
100208
|
-
rest = group_rest(_a, ["children", "label"]);
|
|
100254
|
+
rest = group_rest(_a, ["children", "label", "extraText", "extraTextPosition"]);
|
|
100209
100255
|
|
|
100210
100256
|
const updater = this.context;
|
|
100211
100257
|
const formProps = updater.getFormProps(['labelPosition', 'labelWidth', 'labelAlign', 'showValidateIcon', 'wrapperCol', 'labelCol']);
|
|
@@ -100238,11 +100284,20 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100238
100284
|
showValidateIcon: formProps.showValidateIcon,
|
|
100239
100285
|
isInInputGroup: true
|
|
100240
100286
|
});
|
|
100287
|
+
const extraCls = classnames_default()(`${group_prefix}-field-extra`, {
|
|
100288
|
+
[`${group_prefix}-field-extra-string`]: typeof extraText === 'string',
|
|
100289
|
+
[`${group_prefix}-field-extra-middle`]: extraTextPosition === 'middle',
|
|
100290
|
+
[`${group_prefix}-field-extra-bottom`]: extraTextPosition === 'bottom'
|
|
100291
|
+
});
|
|
100292
|
+
const extraContent = extraText ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
100293
|
+
className: extraCls,
|
|
100294
|
+
"x-semi-prop": "extraText"
|
|
100295
|
+
}, extraText) : null;
|
|
100241
100296
|
let content;
|
|
100242
100297
|
|
|
100243
100298
|
switch (true) {
|
|
100244
100299
|
case !appendCol:
|
|
100245
|
-
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));
|
|
100300
|
+
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));
|
|
100246
100301
|
break;
|
|
100247
100302
|
|
|
100248
100303
|
case appendCol && labelPosition === 'top':
|
|
@@ -100253,13 +100308,13 @@ class group_FormInputGroup extends external_root_React_commonjs2_react_commonjs_
|
|
|
100253
100308
|
}
|
|
100254
100309
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, labelCol, {
|
|
100255
100310
|
className: labelColCls
|
|
100256
|
-
}), labelContent)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
100311
|
+
}), 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));
|
|
100257
100312
|
break;
|
|
100258
100313
|
|
|
100259
100314
|
case appendCol && labelPosition !== 'top':
|
|
100260
100315
|
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, {
|
|
100261
100316
|
className: labelColCls
|
|
100262
|
-
}), labelContent), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, Object.assign({}, wrapperCol), inputGroupContent, groupErrorContent));
|
|
100317
|
+
}), 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));
|
|
100263
100318
|
break;
|
|
100264
100319
|
|
|
100265
100320
|
default:
|