@douyinfe/semi-ui 2.19.0-alpha.2 → 2.19.0-alpha.3
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/checkbox/checkbox.tsx +7 -7
- package/checkbox/checkboxGroup.tsx +2 -11
- package/dist/css/semi.css +16 -10
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +141 -119
- 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/form/baseForm.tsx +0 -1
- package/lib/cjs/checkbox/checkbox.js +8 -2
- package/lib/cjs/checkbox/checkboxGroup.js +8 -31
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/baseForm.js +0 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/popconfirm/index.d.ts +4 -2
- package/lib/cjs/popconfirm/index.js +49 -31
- package/lib/cjs/radio/radioGroup.js +7 -34
- package/lib/cjs/table/ColumnFilter.js +4 -2
- package/lib/cjs/table/ColumnSorter.d.ts +1 -0
- package/lib/cjs/table/ColumnSorter.js +9 -6
- package/lib/cjs/table/Table.js +11 -4
- package/lib/cjs/tabs/TabBar.js +5 -1
- package/lib/cjs/transfer/index.js +7 -2
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/es/checkbox/checkbox.js +8 -2
- package/lib/es/checkbox/checkboxGroup.js +6 -27
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/baseForm.js +0 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/popconfirm/index.d.ts +4 -2
- package/lib/es/popconfirm/index.js +49 -31
- package/lib/es/radio/radioGroup.js +5 -30
- package/lib/es/table/ColumnFilter.js +4 -2
- package/lib/es/table/ColumnSorter.d.ts +1 -0
- package/lib/es/table/ColumnSorter.js +9 -6
- package/lib/es/table/Table.js +10 -4
- package/lib/es/tabs/TabBar.js +5 -1
- package/lib/es/transfer/index.js +7 -2
- package/lib/es/typography/title.d.ts +1 -1
- package/package.json +7 -7
- package/popconfirm/_story/popconfirm.stories.js +37 -1
- package/popconfirm/index.tsx +14 -6
- package/radio/radioGroup.tsx +4 -15
- package/table/ColumnFilter.tsx +2 -1
- package/table/ColumnSorter.tsx +16 -10
- package/table/Table.tsx +7 -4
- package/tabs/TabBar.tsx +7 -1
- package/transfer/index.tsx +7 -2
- package/webpack.config.js +3 -1
package/dist/umd/semi-ui.js
CHANGED
|
@@ -49066,7 +49066,13 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
49066
49066
|
const name = inGroup && this.context.checkboxGroup.name;
|
|
49067
49067
|
const xSemiPropChildren = this.props['x-semi-children-alias'] || 'children';
|
|
49068
49068
|
|
|
49069
|
-
|
|
49069
|
+
if (!children && !extra) {
|
|
49070
|
+
return null;
|
|
49071
|
+
}
|
|
49072
|
+
|
|
49073
|
+
const renderContent = () => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
49074
|
+
className: "".concat(prefix, "-content")
|
|
49075
|
+
}, children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
49070
49076
|
id: addonId,
|
|
49071
49077
|
className: "".concat(prefix, "-addon"),
|
|
49072
49078
|
"x-semi-prop": xSemiPropChildren
|
|
@@ -49100,7 +49106,7 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
49100
49106
|
focusInner: focusVisible && !focusOuter,
|
|
49101
49107
|
onInputFocus: this.handleFocusVisible,
|
|
49102
49108
|
onInputBlur: this.handleBlur
|
|
49103
|
-
})),
|
|
49109
|
+
})), renderContent())
|
|
49104
49110
|
);
|
|
49105
49111
|
}
|
|
49106
49112
|
|
|
@@ -49240,9 +49246,6 @@ class checkboxGroupFoundation_CheckboxGroupFoundation extends foundation {
|
|
|
49240
49246
|
|
|
49241
49247
|
|
|
49242
49248
|
|
|
49243
|
-
|
|
49244
|
-
|
|
49245
|
-
|
|
49246
49249
|
/* eslint-disable max-len */
|
|
49247
49250
|
|
|
49248
49251
|
|
|
@@ -49334,8 +49337,7 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
49334
49337
|
key: index,
|
|
49335
49338
|
disabled: this.props.disabled,
|
|
49336
49339
|
value: option,
|
|
49337
|
-
prefixCls: prefixCls
|
|
49338
|
-
type: type
|
|
49340
|
+
prefixCls: prefixCls
|
|
49339
49341
|
}, option);
|
|
49340
49342
|
} else {
|
|
49341
49343
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(checkbox_checkbox_0, {
|
|
@@ -49347,34 +49349,17 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
49347
49349
|
extra: option.extra,
|
|
49348
49350
|
className: option.className,
|
|
49349
49351
|
style: option.style,
|
|
49350
|
-
onChange: option.onChange
|
|
49351
|
-
type: type
|
|
49352
|
+
onChange: option.onChange
|
|
49352
49353
|
}, option.label);
|
|
49353
49354
|
}
|
|
49354
49355
|
});
|
|
49355
49356
|
} else if (children) {
|
|
49356
49357
|
var _context6;
|
|
49357
49358
|
|
|
49358
|
-
inner = map_default()(_context6 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)).call(_context6, (itm, index) => {
|
|
49359
|
-
|
|
49360
|
-
|
|
49361
|
-
|
|
49362
|
-
key: index,
|
|
49363
|
-
role: 'listitem'
|
|
49364
|
-
};
|
|
49365
|
-
|
|
49366
|
-
const isCheckboxComp = some_default()(_context7 = ['Checkbox', 'CheckboxWithGroup']).call(_context7, comp => {
|
|
49367
|
-
var _context8;
|
|
49368
|
-
|
|
49369
|
-
return includes_default()(_context8 = [get_default()(itm, 'type.displayName'), get_default()(itm, 'type.name')]).call(_context8, comp);
|
|
49370
|
-
});
|
|
49371
|
-
|
|
49372
|
-
if (isCheckboxComp) {
|
|
49373
|
-
props.type = type;
|
|
49374
|
-
}
|
|
49375
|
-
|
|
49376
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(itm, props);
|
|
49377
|
-
});
|
|
49359
|
+
inner = map_default()(_context6 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)).call(_context6, (itm, index) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(itm, {
|
|
49360
|
+
key: index,
|
|
49361
|
+
role: 'listitem'
|
|
49362
|
+
}));
|
|
49378
49363
|
}
|
|
49379
49364
|
|
|
49380
49365
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
@@ -83005,24 +82990,58 @@ const popconfirm_constants_numbers = {
|
|
|
83005
82990
|
DEFAULT_Z_INDEX: 1030
|
|
83006
82991
|
};
|
|
83007
82992
|
|
|
82993
|
+
// CONCATENATED MODULE: ../semi-foundation/utils/isObject.ts
|
|
82994
|
+
function isObject_isObject(obj) {
|
|
82995
|
+
return obj !== null && typeof obj === 'object';
|
|
82996
|
+
}
|
|
82997
|
+
// CONCATENATED MODULE: ../semi-foundation/utils/isPromise.ts
|
|
82998
|
+
|
|
82999
|
+
function isPromise(value) {
|
|
83000
|
+
return isObject_isObject(value) && typeof value.then === 'function';
|
|
83001
|
+
}
|
|
83008
83002
|
// CONCATENATED MODULE: ../semi-foundation/popconfirm/popconfirmFoundation.ts
|
|
83009
83003
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
83010
83004
|
|
|
83005
|
+
|
|
83011
83006
|
class popconfirmFoundation_PopConfirmFoundation extends foundation {
|
|
83012
83007
|
init() {}
|
|
83013
83008
|
|
|
83014
83009
|
destroy() {}
|
|
83015
83010
|
|
|
83016
83011
|
handleCancel(e) {
|
|
83017
|
-
this._adapter.notifyCancel(e);
|
|
83012
|
+
const maybePromise = this._adapter.notifyCancel(e);
|
|
83013
|
+
|
|
83014
|
+
if (isPromise(maybePromise)) {
|
|
83015
|
+
this._adapter.updateCancelLoading(true);
|
|
83018
83016
|
|
|
83019
|
-
|
|
83017
|
+
maybePromise.then(result => {
|
|
83018
|
+
this.handleVisibleChange(false);
|
|
83019
|
+
|
|
83020
|
+
this._adapter.updateCancelLoading(false);
|
|
83021
|
+
}, errors => {
|
|
83022
|
+
this._adapter.updateCancelLoading(false);
|
|
83023
|
+
});
|
|
83024
|
+
} else {
|
|
83025
|
+
this.handleVisibleChange(false);
|
|
83026
|
+
}
|
|
83020
83027
|
}
|
|
83021
83028
|
|
|
83022
83029
|
handleConfirm(e) {
|
|
83023
|
-
this._adapter.notifyConfirm(e);
|
|
83030
|
+
const maybePromise = this._adapter.notifyConfirm(e);
|
|
83031
|
+
|
|
83032
|
+
if (isPromise(maybePromise)) {
|
|
83033
|
+
this._adapter.updateConfirmLoading(true);
|
|
83034
|
+
|
|
83035
|
+
maybePromise.then(result => {
|
|
83036
|
+
this._adapter.updateConfirmLoading(false);
|
|
83024
83037
|
|
|
83025
|
-
|
|
83038
|
+
this.handleVisibleChange(false);
|
|
83039
|
+
}, errors => {
|
|
83040
|
+
this._adapter.updateConfirmLoading(false);
|
|
83041
|
+
});
|
|
83042
|
+
} else {
|
|
83043
|
+
this.handleVisibleChange(false);
|
|
83044
|
+
}
|
|
83026
83045
|
}
|
|
83027
83046
|
|
|
83028
83047
|
handleClickOutSide(e) {
|
|
@@ -83088,6 +83107,8 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83088
83107
|
this.stopImmediatePropagation = e => e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation();
|
|
83089
83108
|
|
|
83090
83109
|
this.state = {
|
|
83110
|
+
cancelLoading: false,
|
|
83111
|
+
confirmLoading: false,
|
|
83091
83112
|
visible: props.defaultVisible || false
|
|
83092
83113
|
};
|
|
83093
83114
|
this.foundation = new popconfirmFoundation_PopConfirmFoundation(this.adapter);
|
|
@@ -83111,6 +83132,12 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83111
83132
|
setVisible: visible => this.setState({
|
|
83112
83133
|
visible
|
|
83113
83134
|
}),
|
|
83135
|
+
updateConfirmLoading: loading => this.setState({
|
|
83136
|
+
confirmLoading: loading
|
|
83137
|
+
}),
|
|
83138
|
+
updateCancelLoading: loading => this.setState({
|
|
83139
|
+
cancelLoading: loading
|
|
83140
|
+
}),
|
|
83114
83141
|
notifyConfirm: e => this.props.onConfirm(e),
|
|
83115
83142
|
notifyCancel: e => this.props.onCancel(e),
|
|
83116
83143
|
notifyVisibleChange: visible => this.props.onVisibleChange(visible),
|
|
@@ -83127,15 +83154,21 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83127
83154
|
cancelButtonProps,
|
|
83128
83155
|
okButtonProps
|
|
83129
83156
|
} = this.props;
|
|
83157
|
+
const {
|
|
83158
|
+
cancelLoading,
|
|
83159
|
+
confirmLoading
|
|
83160
|
+
} = this.state;
|
|
83130
83161
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(localeConsumer_LocaleConsumer, {
|
|
83131
83162
|
componentName: "Popconfirm"
|
|
83132
83163
|
}, (locale, localeCode) => /*#__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(button_0, assign_default()({
|
|
83133
83164
|
type: cancelType,
|
|
83134
|
-
onClick: this.handleCancel
|
|
83165
|
+
onClick: this.handleCancel,
|
|
83166
|
+
loading: cancelLoading
|
|
83135
83167
|
}, cancelButtonProps), cancelText || get_default()(locale, 'cancel')), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, assign_default()({
|
|
83136
83168
|
type: okType,
|
|
83137
83169
|
theme: "solid",
|
|
83138
|
-
onClick: this.handleConfirm
|
|
83170
|
+
onClick: this.handleConfirm,
|
|
83171
|
+
loading: confirmLoading
|
|
83139
83172
|
}, okButtonProps), okText || get_default()(locale, 'confirm'))));
|
|
83140
83173
|
}
|
|
83141
83174
|
|
|
@@ -83157,35 +83190,39 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83157
83190
|
});
|
|
83158
83191
|
const showTitle = title !== null && typeof title !== 'undefined';
|
|
83159
83192
|
const showContent = content !== null || typeof content !== 'undefined';
|
|
83160
|
-
return
|
|
83161
|
-
|
|
83162
|
-
|
|
83163
|
-
|
|
83164
|
-
|
|
83165
|
-
|
|
83166
|
-
|
|
83167
|
-
|
|
83168
|
-
|
|
83169
|
-
|
|
83170
|
-
|
|
83171
|
-
|
|
83172
|
-
|
|
83173
|
-
|
|
83174
|
-
|
|
83175
|
-
|
|
83176
|
-
|
|
83177
|
-
|
|
83178
|
-
|
|
83179
|
-
|
|
83180
|
-
|
|
83181
|
-
|
|
83182
|
-
|
|
83183
|
-
|
|
83184
|
-
|
|
83185
|
-
|
|
83186
|
-
|
|
83187
|
-
|
|
83188
|
-
|
|
83193
|
+
return (
|
|
83194
|
+
/*#__PURE__*/
|
|
83195
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
83196
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83197
|
+
className: popCardCls,
|
|
83198
|
+
onClick: this.stopImmediatePropagation,
|
|
83199
|
+
style: style
|
|
83200
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83201
|
+
className: "".concat(prefixCls, "-inner")
|
|
83202
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83203
|
+
className: "".concat(prefixCls, "-header")
|
|
83204
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("i", {
|
|
83205
|
+
className: "".concat(prefixCls, "-header-icon"),
|
|
83206
|
+
"x-semi-prop": "icon"
|
|
83207
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(icon) ? icon : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83208
|
+
className: "".concat(prefixCls, "-header-body")
|
|
83209
|
+
}, showTitle ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83210
|
+
className: "".concat(prefixCls, "-header-title"),
|
|
83211
|
+
"x-semi-prop": "title"
|
|
83212
|
+
}, title) : null, showContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83213
|
+
className: "".concat(prefixCls, "-header-content"),
|
|
83214
|
+
"x-semi-prop": "content"
|
|
83215
|
+
}, content) : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, {
|
|
83216
|
+
className: "".concat(prefixCls, "-btn-close"),
|
|
83217
|
+
icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
|
|
83218
|
+
size: "small",
|
|
83219
|
+
theme: 'borderless',
|
|
83220
|
+
type: cancelType,
|
|
83221
|
+
onClick: this.handleCancel
|
|
83222
|
+
})), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83223
|
+
className: "".concat(prefixCls, "-footer")
|
|
83224
|
+
}, this.renderControls())))
|
|
83225
|
+
);
|
|
83189
83226
|
}
|
|
83190
83227
|
|
|
83191
83228
|
render() {
|
|
@@ -84265,9 +84302,6 @@ radio_Radio.defaultProps = {
|
|
|
84265
84302
|
|
|
84266
84303
|
|
|
84267
84304
|
|
|
84268
|
-
|
|
84269
|
-
|
|
84270
|
-
|
|
84271
84305
|
class radioGroup_RadioGroup extends baseComponent_BaseComponent {
|
|
84272
84306
|
constructor(props) {
|
|
84273
84307
|
super(props);
|
|
@@ -84358,8 +84392,7 @@ class radioGroup_RadioGroup extends baseComponent_BaseComponent {
|
|
|
84358
84392
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(radio_radio_0, {
|
|
84359
84393
|
key: index,
|
|
84360
84394
|
disabled: this.props.disabled,
|
|
84361
|
-
value: option
|
|
84362
|
-
type: type
|
|
84395
|
+
value: option
|
|
84363
84396
|
}, option);
|
|
84364
84397
|
} else {
|
|
84365
84398
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(radio_radio_0, {
|
|
@@ -84368,37 +84401,16 @@ class radioGroup_RadioGroup extends baseComponent_BaseComponent {
|
|
|
84368
84401
|
value: option.value,
|
|
84369
84402
|
extra: option.extra,
|
|
84370
84403
|
className: option.className,
|
|
84371
|
-
style: option.style
|
|
84372
|
-
type: type
|
|
84404
|
+
style: option.style
|
|
84373
84405
|
}, option.label);
|
|
84374
84406
|
}
|
|
84375
84407
|
});
|
|
84376
84408
|
} else if (children) {
|
|
84377
84409
|
var _context5;
|
|
84378
84410
|
|
|
84379
|
-
inner = map_default()(_context5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children).call(_context5, children, (itm, index) => {
|
|
84380
|
-
|
|
84381
|
-
|
|
84382
|
-
|
|
84383
|
-
const props = {
|
|
84384
|
-
key: index
|
|
84385
|
-
};
|
|
84386
|
-
|
|
84387
|
-
const isRadioComp = some_default()(_context6 = ['Radio', 'RadioWithGroup']).call(_context6, comp => {
|
|
84388
|
-
var _context7;
|
|
84389
|
-
|
|
84390
|
-
return includes_default()(_context7 = [get_default()(itm, 'type.displayName'), get_default()(itm, 'type.name')]).call(_context7, comp);
|
|
84391
|
-
});
|
|
84392
|
-
|
|
84393
|
-
if (isRadioComp) {
|
|
84394
|
-
props.type = type;
|
|
84395
|
-
}
|
|
84396
|
-
|
|
84397
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(itm, props);
|
|
84398
|
-
} else {
|
|
84399
|
-
return null;
|
|
84400
|
-
}
|
|
84401
|
-
});
|
|
84411
|
+
inner = map_default()(_context5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children).call(_context5, children, (itm, index) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(itm) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(itm, {
|
|
84412
|
+
key: index
|
|
84413
|
+
}) : null);
|
|
84402
84414
|
}
|
|
84403
84415
|
|
|
84404
84416
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
@@ -91324,12 +91336,14 @@ function ColumnFilter() {
|
|
|
91324
91336
|
} else {
|
|
91325
91337
|
iconElem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
91326
91338
|
className: finalCls
|
|
91327
|
-
},
|
|
91339
|
+
}, '\u200b'
|
|
91340
|
+
/* ZWSP(zero-width space) */
|
|
91341
|
+
, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconFilter, {
|
|
91328
91342
|
role: "button",
|
|
91329
91343
|
"aria-label": "Filter data with this column",
|
|
91330
91344
|
"aria-haspopup": "listbox",
|
|
91331
91345
|
tabIndex: -1,
|
|
91332
|
-
size: "
|
|
91346
|
+
size: "default"
|
|
91333
91347
|
}));
|
|
91334
91348
|
}
|
|
91335
91349
|
|
|
@@ -91355,9 +91369,10 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91355
91369
|
prefixCls,
|
|
91356
91370
|
onClick,
|
|
91357
91371
|
sortOrder,
|
|
91358
|
-
style
|
|
91372
|
+
style,
|
|
91373
|
+
title
|
|
91359
91374
|
} = this.props;
|
|
91360
|
-
const iconBtnSize = '
|
|
91375
|
+
const iconBtnSize = 'default';
|
|
91361
91376
|
const upCls = classnames_default()("".concat(prefixCls, "-column-sorter-up"), {
|
|
91362
91377
|
on: sortOrder === table_constants_strings.SORT_DIRECTIONS[0]
|
|
91363
91378
|
});
|
|
@@ -91376,11 +91391,13 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91376
91391
|
role: 'button'
|
|
91377
91392
|
}, ariaProps, {
|
|
91378
91393
|
tabIndex: -1,
|
|
91379
|
-
|
|
91380
|
-
className: "".concat(prefixCls, "-column-sorter"),
|
|
91394
|
+
className: "".concat(prefixCls, "-column-sorter-wrapper"),
|
|
91381
91395
|
onClick: onClick,
|
|
91382
91396
|
onKeyPress: e => utils_isEnterPress(e) && onClick(e)
|
|
91383
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("
|
|
91397
|
+
}), title, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
91398
|
+
style: style,
|
|
91399
|
+
className: "".concat(prefixCls, "-column-sorter")
|
|
91400
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
91384
91401
|
className: "".concat(upCls)
|
|
91385
91402
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCaretup, {
|
|
91386
91403
|
size: iconBtnSize
|
|
@@ -91388,7 +91405,7 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91388
91405
|
className: "".concat(downCls)
|
|
91389
91406
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCaretdown, {
|
|
91390
91407
|
size: iconBtnSize
|
|
91391
|
-
})));
|
|
91408
|
+
}))));
|
|
91392
91409
|
}
|
|
91393
91410
|
|
|
91394
91411
|
}
|
|
@@ -94919,15 +94936,23 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
94919
94936
|
const defaultSortOrder = get_default()(curQuery, 'defaultSortOrder', false);
|
|
94920
94937
|
|
|
94921
94938
|
const sortOrder = _this.foundation.isSortOrderValid(stateSortOrder) ? stateSortOrder : defaultSortOrder;
|
|
94939
|
+
const TitleNode = typeof rawTitle !== 'function' && /*#__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, {
|
|
94940
|
+
key: table_constants_strings.DEFAULT_KEY_COLUMN_TITLE
|
|
94941
|
+
}, rawTitle);
|
|
94922
94942
|
|
|
94923
94943
|
if (typeof column.sorter === 'function' || column.sorter === true) {
|
|
94944
|
+
// In order to increase the click hot area of sorting, when sorting is required & useFullRender is false,
|
|
94945
|
+
// both the title and sorting areas are used as the click hot area for sorting。
|
|
94924
94946
|
const sorter = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(ColumnSorter_ColumnSorter, {
|
|
94925
94947
|
key: table_constants_strings.DEFAULT_KEY_COLUMN_SORTER,
|
|
94926
94948
|
sortOrder: sortOrder,
|
|
94927
|
-
onClick: e => _this.foundation.handleSort(column, e)
|
|
94949
|
+
onClick: e => _this.foundation.handleSort(column, e),
|
|
94950
|
+
title: TitleNode
|
|
94928
94951
|
});
|
|
94929
94952
|
useFullRender && (titleMap.sorter = sorter);
|
|
94930
94953
|
titleArr.push(sorter);
|
|
94954
|
+
} else {
|
|
94955
|
+
titleArr.push(TitleNode);
|
|
94931
94956
|
}
|
|
94932
94957
|
|
|
94933
94958
|
const stateFilteredValue = get_default()(curQuery, 'filteredValue');
|
|
@@ -94948,9 +94973,7 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
94948
94973
|
titleArr.push(filter);
|
|
94949
94974
|
}
|
|
94950
94975
|
|
|
94951
|
-
const newTitle = typeof rawTitle === 'function' ? () => rawTitle(titleMap) : titleArr
|
|
94952
|
-
key: table_constants_strings.DEFAULT_KEY_COLUMN_TITLE
|
|
94953
|
-
}, rawTitle)) && titleArr;
|
|
94976
|
+
const newTitle = typeof rawTitle === 'function' ? () => rawTitle(titleMap) : titleArr;
|
|
94954
94977
|
column = assign_default()(assign_default()({}, column), {
|
|
94955
94978
|
title: newTitle
|
|
94956
94979
|
});
|
|
@@ -96704,7 +96727,11 @@ class TabBar_TabBar extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
96704
96727
|
var _context5, _context6;
|
|
96705
96728
|
|
|
96706
96729
|
if (isEmpty_default()(items)) {
|
|
96707
|
-
return
|
|
96730
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, {
|
|
96731
|
+
disabled: true,
|
|
96732
|
+
icon: icon,
|
|
96733
|
+
theme: "borderless"
|
|
96734
|
+
});
|
|
96708
96735
|
}
|
|
96709
96736
|
|
|
96710
96737
|
const {
|
|
@@ -104609,15 +104636,6 @@ treeSelect_TreeSelect.defaultProps = {
|
|
|
104609
104636
|
var core_js_stable_url = __webpack_require__("QjT4");
|
|
104610
104637
|
var url_default = /*#__PURE__*/__webpack_require__.n(core_js_stable_url);
|
|
104611
104638
|
|
|
104612
|
-
// CONCATENATED MODULE: ../semi-foundation/utils/isObject.ts
|
|
104613
|
-
function isObject_isObject(obj) {
|
|
104614
|
-
return obj !== null && typeof obj === 'object';
|
|
104615
|
-
}
|
|
104616
|
-
// CONCATENATED MODULE: ../semi-foundation/utils/isPromise.ts
|
|
104617
|
-
|
|
104618
|
-
function isPromise(value) {
|
|
104619
|
-
return isObject_isObject(value) && typeof value.then === 'function';
|
|
104620
|
-
}
|
|
104621
104639
|
// CONCATENATED MODULE: ../semi-foundation/upload/constants.ts
|
|
104622
104640
|
|
|
104623
104641
|
const upload_constants_PREFIX = "".concat(BASE_CLASS_PREFIX, "-upload");
|
|
@@ -107779,7 +107797,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
107779
107797
|
const noMatch = inSearchMode && searchResult.size === 0;
|
|
107780
107798
|
const emptySearch = emptyContent.search ? emptyContent.search : locale.emptySearch;
|
|
107781
107799
|
const emptyLeft = emptyContent.left ? emptyContent.left : locale.emptyLeft;
|
|
107782
|
-
const
|
|
107800
|
+
const emptyDataCom = this.renderEmpty('left', emptyLeft);
|
|
107801
|
+
const emptySearchCom = this.renderEmpty('left', emptySearch);
|
|
107783
107802
|
const loadingCom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(spin_0, null);
|
|
107784
107803
|
let content = null;
|
|
107785
107804
|
|
|
@@ -107789,7 +107808,11 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
107789
107808
|
break;
|
|
107790
107809
|
|
|
107791
107810
|
case noMatch:
|
|
107792
|
-
content =
|
|
107811
|
+
content = emptySearchCom;
|
|
107812
|
+
break;
|
|
107813
|
+
|
|
107814
|
+
case data.length === 0:
|
|
107815
|
+
content = emptyDataCom;
|
|
107793
107816
|
break;
|
|
107794
107817
|
|
|
107795
107818
|
case type === transfer_constants_strings.TYPE_TREE_TO_LIST:
|
|
@@ -110421,7 +110444,6 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
110421
110444
|
|
|
110422
110445
|
componentWillUnmount() {
|
|
110423
110446
|
this.foundation.destroy();
|
|
110424
|
-
this.formApi = null;
|
|
110425
110447
|
}
|
|
110426
110448
|
|
|
110427
110449
|
get adapter() {
|