@douyinfe/semi-ui 2.19.0-alpha.1 → 2.19.0-alpha.4
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/_story/checkbox.stories.js +2 -0
- package/checkbox/checkbox.tsx +22 -19
- package/checkbox/checkboxGroup.tsx +0 -2
- package/dist/css/semi.css +16 -10
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +144 -78
- 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 +18 -10
- package/lib/cjs/checkbox/checkboxGroup.js +2 -4
- 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 +2 -4
- 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 +18 -10
- package/lib/es/checkbox/checkboxGroup.js +2 -4
- 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 +2 -4
- 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 +0 -2
- 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,15 +49066,23 @@ 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
|
-
const renderContent = () =>
|
|
49070
|
-
|
|
49071
|
-
|
|
49072
|
-
|
|
49073
|
-
|
|
49074
|
-
|
|
49075
|
-
|
|
49076
|
-
"
|
|
49077
|
-
|
|
49069
|
+
const renderContent = () => {
|
|
49070
|
+
if (!children && !extra) {
|
|
49071
|
+
return null;
|
|
49072
|
+
}
|
|
49073
|
+
|
|
49074
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
49075
|
+
className: "".concat(prefix, "-content")
|
|
49076
|
+
}, children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
49077
|
+
id: addonId,
|
|
49078
|
+
className: "".concat(prefix, "-addon"),
|
|
49079
|
+
"x-semi-prop": xSemiPropChildren
|
|
49080
|
+
}, children) : null, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
49081
|
+
id: extraId,
|
|
49082
|
+
className: extraCls,
|
|
49083
|
+
"x-semi-prop": "extra"
|
|
49084
|
+
}, extra) : null);
|
|
49085
|
+
};
|
|
49078
49086
|
|
|
49079
49087
|
return (
|
|
49080
49088
|
/*#__PURE__*/
|
|
@@ -49100,7 +49108,7 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
49100
49108
|
focusInner: focusVisible && !focusOuter,
|
|
49101
49109
|
onInputFocus: this.handleFocusVisible,
|
|
49102
49110
|
onInputBlur: this.handleBlur
|
|
49103
|
-
})),
|
|
49111
|
+
})), renderContent())
|
|
49104
49112
|
);
|
|
49105
49113
|
}
|
|
49106
49114
|
|
|
@@ -49331,8 +49339,7 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
49331
49339
|
key: index,
|
|
49332
49340
|
disabled: this.props.disabled,
|
|
49333
49341
|
value: option,
|
|
49334
|
-
prefixCls: prefixCls
|
|
49335
|
-
type: type
|
|
49342
|
+
prefixCls: prefixCls
|
|
49336
49343
|
}, option);
|
|
49337
49344
|
} else {
|
|
49338
49345
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(checkbox_checkbox_0, {
|
|
@@ -49344,8 +49351,7 @@ class checkboxGroup_CheckboxGroup extends baseComponent_BaseComponent {
|
|
|
49344
49351
|
extra: option.extra,
|
|
49345
49352
|
className: option.className,
|
|
49346
49353
|
style: option.style,
|
|
49347
|
-
onChange: option.onChange
|
|
49348
|
-
type: type
|
|
49354
|
+
onChange: option.onChange
|
|
49349
49355
|
}, option.label);
|
|
49350
49356
|
}
|
|
49351
49357
|
});
|
|
@@ -82986,24 +82992,58 @@ const popconfirm_constants_numbers = {
|
|
|
82986
82992
|
DEFAULT_Z_INDEX: 1030
|
|
82987
82993
|
};
|
|
82988
82994
|
|
|
82995
|
+
// CONCATENATED MODULE: ../semi-foundation/utils/isObject.ts
|
|
82996
|
+
function isObject_isObject(obj) {
|
|
82997
|
+
return obj !== null && typeof obj === 'object';
|
|
82998
|
+
}
|
|
82999
|
+
// CONCATENATED MODULE: ../semi-foundation/utils/isPromise.ts
|
|
83000
|
+
|
|
83001
|
+
function isPromise(value) {
|
|
83002
|
+
return isObject_isObject(value) && typeof value.then === 'function';
|
|
83003
|
+
}
|
|
82989
83004
|
// CONCATENATED MODULE: ../semi-foundation/popconfirm/popconfirmFoundation.ts
|
|
82990
83005
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
82991
83006
|
|
|
83007
|
+
|
|
82992
83008
|
class popconfirmFoundation_PopConfirmFoundation extends foundation {
|
|
82993
83009
|
init() {}
|
|
82994
83010
|
|
|
82995
83011
|
destroy() {}
|
|
82996
83012
|
|
|
82997
83013
|
handleCancel(e) {
|
|
82998
|
-
this._adapter.notifyCancel(e);
|
|
83014
|
+
const maybePromise = this._adapter.notifyCancel(e);
|
|
82999
83015
|
|
|
83000
|
-
|
|
83016
|
+
if (isPromise(maybePromise)) {
|
|
83017
|
+
this._adapter.updateCancelLoading(true);
|
|
83018
|
+
|
|
83019
|
+
maybePromise.then(result => {
|
|
83020
|
+
this.handleVisibleChange(false);
|
|
83021
|
+
|
|
83022
|
+
this._adapter.updateCancelLoading(false);
|
|
83023
|
+
}, errors => {
|
|
83024
|
+
this._adapter.updateCancelLoading(false);
|
|
83025
|
+
});
|
|
83026
|
+
} else {
|
|
83027
|
+
this.handleVisibleChange(false);
|
|
83028
|
+
}
|
|
83001
83029
|
}
|
|
83002
83030
|
|
|
83003
83031
|
handleConfirm(e) {
|
|
83004
|
-
this._adapter.notifyConfirm(e);
|
|
83032
|
+
const maybePromise = this._adapter.notifyConfirm(e);
|
|
83033
|
+
|
|
83034
|
+
if (isPromise(maybePromise)) {
|
|
83035
|
+
this._adapter.updateConfirmLoading(true);
|
|
83005
83036
|
|
|
83006
|
-
|
|
83037
|
+
maybePromise.then(result => {
|
|
83038
|
+
this._adapter.updateConfirmLoading(false);
|
|
83039
|
+
|
|
83040
|
+
this.handleVisibleChange(false);
|
|
83041
|
+
}, errors => {
|
|
83042
|
+
this._adapter.updateConfirmLoading(false);
|
|
83043
|
+
});
|
|
83044
|
+
} else {
|
|
83045
|
+
this.handleVisibleChange(false);
|
|
83046
|
+
}
|
|
83007
83047
|
}
|
|
83008
83048
|
|
|
83009
83049
|
handleClickOutSide(e) {
|
|
@@ -83069,6 +83109,8 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83069
83109
|
this.stopImmediatePropagation = e => e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation();
|
|
83070
83110
|
|
|
83071
83111
|
this.state = {
|
|
83112
|
+
cancelLoading: false,
|
|
83113
|
+
confirmLoading: false,
|
|
83072
83114
|
visible: props.defaultVisible || false
|
|
83073
83115
|
};
|
|
83074
83116
|
this.foundation = new popconfirmFoundation_PopConfirmFoundation(this.adapter);
|
|
@@ -83092,6 +83134,12 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83092
83134
|
setVisible: visible => this.setState({
|
|
83093
83135
|
visible
|
|
83094
83136
|
}),
|
|
83137
|
+
updateConfirmLoading: loading => this.setState({
|
|
83138
|
+
confirmLoading: loading
|
|
83139
|
+
}),
|
|
83140
|
+
updateCancelLoading: loading => this.setState({
|
|
83141
|
+
cancelLoading: loading
|
|
83142
|
+
}),
|
|
83095
83143
|
notifyConfirm: e => this.props.onConfirm(e),
|
|
83096
83144
|
notifyCancel: e => this.props.onCancel(e),
|
|
83097
83145
|
notifyVisibleChange: visible => this.props.onVisibleChange(visible),
|
|
@@ -83108,15 +83156,21 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83108
83156
|
cancelButtonProps,
|
|
83109
83157
|
okButtonProps
|
|
83110
83158
|
} = this.props;
|
|
83159
|
+
const {
|
|
83160
|
+
cancelLoading,
|
|
83161
|
+
confirmLoading
|
|
83162
|
+
} = this.state;
|
|
83111
83163
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(localeConsumer_LocaleConsumer, {
|
|
83112
83164
|
componentName: "Popconfirm"
|
|
83113
83165
|
}, (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()({
|
|
83114
83166
|
type: cancelType,
|
|
83115
|
-
onClick: this.handleCancel
|
|
83167
|
+
onClick: this.handleCancel,
|
|
83168
|
+
loading: cancelLoading
|
|
83116
83169
|
}, cancelButtonProps), cancelText || get_default()(locale, 'cancel')), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, assign_default()({
|
|
83117
83170
|
type: okType,
|
|
83118
83171
|
theme: "solid",
|
|
83119
|
-
onClick: this.handleConfirm
|
|
83172
|
+
onClick: this.handleConfirm,
|
|
83173
|
+
loading: confirmLoading
|
|
83120
83174
|
}, okButtonProps), okText || get_default()(locale, 'confirm'))));
|
|
83121
83175
|
}
|
|
83122
83176
|
|
|
@@ -83138,35 +83192,39 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
|
|
|
83138
83192
|
});
|
|
83139
83193
|
const showTitle = title !== null && typeof title !== 'undefined';
|
|
83140
83194
|
const showContent = content !== null || typeof content !== 'undefined';
|
|
83141
|
-
return
|
|
83142
|
-
|
|
83143
|
-
|
|
83144
|
-
|
|
83145
|
-
|
|
83146
|
-
|
|
83147
|
-
|
|
83148
|
-
|
|
83149
|
-
|
|
83150
|
-
|
|
83151
|
-
|
|
83152
|
-
|
|
83153
|
-
|
|
83154
|
-
|
|
83155
|
-
|
|
83156
|
-
|
|
83157
|
-
|
|
83158
|
-
|
|
83159
|
-
|
|
83160
|
-
|
|
83161
|
-
|
|
83162
|
-
|
|
83163
|
-
|
|
83164
|
-
|
|
83165
|
-
|
|
83166
|
-
|
|
83167
|
-
|
|
83168
|
-
|
|
83169
|
-
|
|
83195
|
+
return (
|
|
83196
|
+
/*#__PURE__*/
|
|
83197
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
83198
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83199
|
+
className: popCardCls,
|
|
83200
|
+
onClick: this.stopImmediatePropagation,
|
|
83201
|
+
style: style
|
|
83202
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83203
|
+
className: "".concat(prefixCls, "-inner")
|
|
83204
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83205
|
+
className: "".concat(prefixCls, "-header")
|
|
83206
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("i", {
|
|
83207
|
+
className: "".concat(prefixCls, "-header-icon"),
|
|
83208
|
+
"x-semi-prop": "icon"
|
|
83209
|
+
}, /*#__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", {
|
|
83210
|
+
className: "".concat(prefixCls, "-header-body")
|
|
83211
|
+
}, showTitle ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83212
|
+
className: "".concat(prefixCls, "-header-title"),
|
|
83213
|
+
"x-semi-prop": "title"
|
|
83214
|
+
}, title) : null, showContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83215
|
+
className: "".concat(prefixCls, "-header-content"),
|
|
83216
|
+
"x-semi-prop": "content"
|
|
83217
|
+
}, content) : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, {
|
|
83218
|
+
className: "".concat(prefixCls, "-btn-close"),
|
|
83219
|
+
icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
|
|
83220
|
+
size: "small",
|
|
83221
|
+
theme: 'borderless',
|
|
83222
|
+
type: cancelType,
|
|
83223
|
+
onClick: this.handleCancel
|
|
83224
|
+
})), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
83225
|
+
className: "".concat(prefixCls, "-footer")
|
|
83226
|
+
}, this.renderControls())))
|
|
83227
|
+
);
|
|
83170
83228
|
}
|
|
83171
83229
|
|
|
83172
83230
|
render() {
|
|
@@ -84336,8 +84394,7 @@ class radioGroup_RadioGroup extends baseComponent_BaseComponent {
|
|
|
84336
84394
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(radio_radio_0, {
|
|
84337
84395
|
key: index,
|
|
84338
84396
|
disabled: this.props.disabled,
|
|
84339
|
-
value: option
|
|
84340
|
-
type: type
|
|
84397
|
+
value: option
|
|
84341
84398
|
}, option);
|
|
84342
84399
|
} else {
|
|
84343
84400
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(radio_radio_0, {
|
|
@@ -84346,8 +84403,7 @@ class radioGroup_RadioGroup extends baseComponent_BaseComponent {
|
|
|
84346
84403
|
value: option.value,
|
|
84347
84404
|
extra: option.extra,
|
|
84348
84405
|
className: option.className,
|
|
84349
|
-
style: option.style
|
|
84350
|
-
type: type
|
|
84406
|
+
style: option.style
|
|
84351
84407
|
}, option.label);
|
|
84352
84408
|
}
|
|
84353
84409
|
});
|
|
@@ -91282,12 +91338,14 @@ function ColumnFilter() {
|
|
|
91282
91338
|
} else {
|
|
91283
91339
|
iconElem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
91284
91340
|
className: finalCls
|
|
91285
|
-
},
|
|
91341
|
+
}, '\u200b'
|
|
91342
|
+
/* ZWSP(zero-width space) */
|
|
91343
|
+
, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconFilter, {
|
|
91286
91344
|
role: "button",
|
|
91287
91345
|
"aria-label": "Filter data with this column",
|
|
91288
91346
|
"aria-haspopup": "listbox",
|
|
91289
91347
|
tabIndex: -1,
|
|
91290
|
-
size: "
|
|
91348
|
+
size: "default"
|
|
91291
91349
|
}));
|
|
91292
91350
|
}
|
|
91293
91351
|
|
|
@@ -91313,9 +91371,10 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91313
91371
|
prefixCls,
|
|
91314
91372
|
onClick,
|
|
91315
91373
|
sortOrder,
|
|
91316
|
-
style
|
|
91374
|
+
style,
|
|
91375
|
+
title
|
|
91317
91376
|
} = this.props;
|
|
91318
|
-
const iconBtnSize = '
|
|
91377
|
+
const iconBtnSize = 'default';
|
|
91319
91378
|
const upCls = classnames_default()("".concat(prefixCls, "-column-sorter-up"), {
|
|
91320
91379
|
on: sortOrder === table_constants_strings.SORT_DIRECTIONS[0]
|
|
91321
91380
|
});
|
|
@@ -91334,11 +91393,13 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91334
91393
|
role: 'button'
|
|
91335
91394
|
}, ariaProps, {
|
|
91336
91395
|
tabIndex: -1,
|
|
91337
|
-
|
|
91338
|
-
className: "".concat(prefixCls, "-column-sorter"),
|
|
91396
|
+
className: "".concat(prefixCls, "-column-sorter-wrapper"),
|
|
91339
91397
|
onClick: onClick,
|
|
91340
91398
|
onKeyPress: e => utils_isEnterPress(e) && onClick(e)
|
|
91341
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("
|
|
91399
|
+
}), title, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
91400
|
+
style: style,
|
|
91401
|
+
className: "".concat(prefixCls, "-column-sorter")
|
|
91402
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
91342
91403
|
className: "".concat(upCls)
|
|
91343
91404
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCaretup, {
|
|
91344
91405
|
size: iconBtnSize
|
|
@@ -91346,7 +91407,7 @@ class ColumnSorter_ColumnSorter extends external_root_React_commonjs2_react_comm
|
|
|
91346
91407
|
className: "".concat(downCls)
|
|
91347
91408
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCaretdown, {
|
|
91348
91409
|
size: iconBtnSize
|
|
91349
|
-
})));
|
|
91410
|
+
}))));
|
|
91350
91411
|
}
|
|
91351
91412
|
|
|
91352
91413
|
}
|
|
@@ -94877,15 +94938,23 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
94877
94938
|
const defaultSortOrder = get_default()(curQuery, 'defaultSortOrder', false);
|
|
94878
94939
|
|
|
94879
94940
|
const sortOrder = _this.foundation.isSortOrderValid(stateSortOrder) ? stateSortOrder : defaultSortOrder;
|
|
94941
|
+
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, {
|
|
94942
|
+
key: table_constants_strings.DEFAULT_KEY_COLUMN_TITLE
|
|
94943
|
+
}, rawTitle);
|
|
94880
94944
|
|
|
94881
94945
|
if (typeof column.sorter === 'function' || column.sorter === true) {
|
|
94946
|
+
// In order to increase the click hot area of sorting, when sorting is required & useFullRender is false,
|
|
94947
|
+
// both the title and sorting areas are used as the click hot area for sorting。
|
|
94882
94948
|
const sorter = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(ColumnSorter_ColumnSorter, {
|
|
94883
94949
|
key: table_constants_strings.DEFAULT_KEY_COLUMN_SORTER,
|
|
94884
94950
|
sortOrder: sortOrder,
|
|
94885
|
-
onClick: e => _this.foundation.handleSort(column, e)
|
|
94951
|
+
onClick: e => _this.foundation.handleSort(column, e),
|
|
94952
|
+
title: TitleNode
|
|
94886
94953
|
});
|
|
94887
94954
|
useFullRender && (titleMap.sorter = sorter);
|
|
94888
94955
|
titleArr.push(sorter);
|
|
94956
|
+
} else {
|
|
94957
|
+
titleArr.push(TitleNode);
|
|
94889
94958
|
}
|
|
94890
94959
|
|
|
94891
94960
|
const stateFilteredValue = get_default()(curQuery, 'filteredValue');
|
|
@@ -94906,9 +94975,7 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
94906
94975
|
titleArr.push(filter);
|
|
94907
94976
|
}
|
|
94908
94977
|
|
|
94909
|
-
const newTitle = typeof rawTitle === 'function' ? () => rawTitle(titleMap) : titleArr
|
|
94910
|
-
key: table_constants_strings.DEFAULT_KEY_COLUMN_TITLE
|
|
94911
|
-
}, rawTitle)) && titleArr;
|
|
94978
|
+
const newTitle = typeof rawTitle === 'function' ? () => rawTitle(titleMap) : titleArr;
|
|
94912
94979
|
column = assign_default()(assign_default()({}, column), {
|
|
94913
94980
|
title: newTitle
|
|
94914
94981
|
});
|
|
@@ -96662,7 +96729,11 @@ class TabBar_TabBar extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
96662
96729
|
var _context5, _context6;
|
|
96663
96730
|
|
|
96664
96731
|
if (isEmpty_default()(items)) {
|
|
96665
|
-
return
|
|
96732
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, {
|
|
96733
|
+
disabled: true,
|
|
96734
|
+
icon: icon,
|
|
96735
|
+
theme: "borderless"
|
|
96736
|
+
});
|
|
96666
96737
|
}
|
|
96667
96738
|
|
|
96668
96739
|
const {
|
|
@@ -104567,15 +104638,6 @@ treeSelect_TreeSelect.defaultProps = {
|
|
|
104567
104638
|
var core_js_stable_url = __webpack_require__("QjT4");
|
|
104568
104639
|
var url_default = /*#__PURE__*/__webpack_require__.n(core_js_stable_url);
|
|
104569
104640
|
|
|
104570
|
-
// CONCATENATED MODULE: ../semi-foundation/utils/isObject.ts
|
|
104571
|
-
function isObject_isObject(obj) {
|
|
104572
|
-
return obj !== null && typeof obj === 'object';
|
|
104573
|
-
}
|
|
104574
|
-
// CONCATENATED MODULE: ../semi-foundation/utils/isPromise.ts
|
|
104575
|
-
|
|
104576
|
-
function isPromise(value) {
|
|
104577
|
-
return isObject_isObject(value) && typeof value.then === 'function';
|
|
104578
|
-
}
|
|
104579
104641
|
// CONCATENATED MODULE: ../semi-foundation/upload/constants.ts
|
|
104580
104642
|
|
|
104581
104643
|
const upload_constants_PREFIX = "".concat(BASE_CLASS_PREFIX, "-upload");
|
|
@@ -107737,7 +107799,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
107737
107799
|
const noMatch = inSearchMode && searchResult.size === 0;
|
|
107738
107800
|
const emptySearch = emptyContent.search ? emptyContent.search : locale.emptySearch;
|
|
107739
107801
|
const emptyLeft = emptyContent.left ? emptyContent.left : locale.emptyLeft;
|
|
107740
|
-
const
|
|
107802
|
+
const emptyDataCom = this.renderEmpty('left', emptyLeft);
|
|
107803
|
+
const emptySearchCom = this.renderEmpty('left', emptySearch);
|
|
107741
107804
|
const loadingCom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(spin_0, null);
|
|
107742
107805
|
let content = null;
|
|
107743
107806
|
|
|
@@ -107747,7 +107810,11 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
107747
107810
|
break;
|
|
107748
107811
|
|
|
107749
107812
|
case noMatch:
|
|
107750
|
-
content =
|
|
107813
|
+
content = emptySearchCom;
|
|
107814
|
+
break;
|
|
107815
|
+
|
|
107816
|
+
case data.length === 0:
|
|
107817
|
+
content = emptyDataCom;
|
|
107751
107818
|
break;
|
|
107752
107819
|
|
|
107753
107820
|
case type === transfer_constants_strings.TYPE_TREE_TO_LIST:
|
|
@@ -110379,7 +110446,6 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
110379
110446
|
|
|
110380
110447
|
componentWillUnmount() {
|
|
110381
110448
|
this.foundation.destroy();
|
|
110382
|
-
this.formApi = null;
|
|
110383
110449
|
}
|
|
110384
110450
|
|
|
110385
110451
|
get adapter() {
|