@douyinfe/semi-ui 2.36.0 → 2.37.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 +39 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +850 -503
- 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/_base/baseComponent.d.ts +1 -0
- package/lib/cjs/_base/baseComponent.js +4 -0
- package/lib/cjs/anchor/index.js +2 -2
- package/lib/cjs/autoComplete/index.js +2 -2
- package/lib/cjs/banner/index.js +2 -2
- package/lib/cjs/breadcrumb/index.js +2 -2
- package/lib/cjs/breadcrumb/item.js +1 -1
- package/lib/cjs/calendar/dayCalendar.js +2 -2
- package/lib/cjs/calendar/monthCalendar.js +2 -2
- package/lib/cjs/calendar/rangeCalendar.js +2 -2
- package/lib/cjs/calendar/weekCalendar.d.ts +1 -1
- package/lib/cjs/calendar/weekCalendar.js +2 -2
- package/lib/cjs/carousel/index.js +2 -2
- package/lib/cjs/cascader/index.js +1 -1
- package/lib/cjs/checkbox/checkbox.js +2 -2
- package/lib/cjs/checkbox/checkboxGroup.js +2 -2
- package/lib/cjs/collapse/index.js +2 -2
- package/lib/cjs/collapsible/index.js +2 -2
- package/lib/cjs/datePicker/dateInput.d.ts +1 -0
- package/lib/cjs/datePicker/dateInput.js +10 -6
- package/lib/cjs/datePicker/datePicker.js +23 -11
- package/lib/cjs/datePicker/quickControl.d.ts +2 -0
- package/lib/cjs/datePicker/quickControl.js +5 -3
- package/lib/cjs/descriptions/index.js +22 -11
- package/lib/cjs/descriptions/item.js +22 -11
- package/lib/cjs/empty/index.js +23 -13
- package/lib/cjs/input/index.d.ts +3 -1
- package/lib/cjs/input/index.js +19 -16
- package/lib/cjs/list/index.js +30 -20
- package/lib/cjs/list/item.js +18 -15
- package/lib/cjs/locale/interface.d.ts +1 -0
- package/lib/cjs/locale/source/ar.js +1 -0
- package/lib/cjs/locale/source/de.js +1 -0
- package/lib/cjs/locale/source/en_GB.js +1 -0
- package/lib/cjs/locale/source/en_US.js +1 -0
- package/lib/cjs/locale/source/es.js +1 -0
- package/lib/cjs/locale/source/fr.js +1 -0
- package/lib/cjs/locale/source/id_ID.js +1 -0
- package/lib/cjs/locale/source/it.js +1 -0
- package/lib/cjs/locale/source/ja_JP.js +1 -0
- package/lib/cjs/locale/source/ko_KR.js +1 -0
- package/lib/cjs/locale/source/ms_MY.js +1 -0
- package/lib/cjs/locale/source/nl_NL.js +1 -0
- package/lib/cjs/locale/source/pl_PL.js +1 -0
- package/lib/cjs/locale/source/pt_BR.js +1 -0
- package/lib/cjs/locale/source/ro.d.ts +1 -0
- package/lib/cjs/locale/source/ro.js +1 -0
- package/lib/cjs/locale/source/ru_RU.js +1 -0
- package/lib/cjs/locale/source/sv_SE.js +1 -0
- package/lib/cjs/locale/source/th_TH.js +1 -0
- package/lib/cjs/locale/source/tr_TR.js +1 -0
- package/lib/cjs/locale/source/vi_VN.js +1 -0
- package/lib/cjs/locale/source/zh_CN.js +1 -0
- package/lib/cjs/locale/source/zh_TW.js +1 -0
- package/lib/cjs/modal/ModalContent.js +12 -9
- package/lib/cjs/navigation/index.js +34 -24
- package/lib/cjs/pagination/index.d.ts +3 -0
- package/lib/cjs/pagination/index.js +73 -39
- package/lib/cjs/progress/index.js +44 -31
- package/lib/cjs/radio/radio.js +27 -17
- package/lib/cjs/radio/radioGroup.js +24 -14
- package/lib/cjs/rating/index.js +21 -11
- package/lib/cjs/scrollList/index.js +21 -11
- package/lib/cjs/select/index.js +30 -21
- package/lib/cjs/sideSheet/SideSheetContent.js +27 -7
- package/lib/cjs/slider/index.js +20 -11
- package/lib/cjs/spin/index.js +19 -9
- package/lib/cjs/steps/basicSteps.js +24 -14
- package/lib/cjs/steps/fillSteps.js +22 -12
- package/lib/cjs/steps/navSteps.js +21 -11
- package/lib/cjs/switch/index.js +23 -13
- package/lib/cjs/table/Table.d.ts +1 -0
- package/lib/cjs/table/Table.js +3 -2
- package/lib/cjs/tabs/index.js +1 -2
- package/lib/cjs/tagInput/index.js +20 -10
- package/lib/cjs/timeline/index.js +20 -9
- package/lib/cjs/timeline/item.js +24 -13
- package/lib/cjs/toast/index.d.ts +4 -0
- package/lib/cjs/tooltip/index.js +3 -1
- package/lib/cjs/transfer/index.js +19 -9
- package/lib/cjs/tree/index.js +32 -22
- package/lib/cjs/treeSelect/index.js +32 -20
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/cjs/upload/index.js +28 -18
- package/lib/es/_base/baseComponent.d.ts +1 -0
- package/lib/es/_base/baseComponent.js +4 -0
- package/lib/es/anchor/index.js +2 -2
- package/lib/es/autoComplete/index.js +2 -2
- package/lib/es/banner/index.js +2 -2
- package/lib/es/breadcrumb/index.js +2 -2
- package/lib/es/breadcrumb/item.js +1 -1
- package/lib/es/calendar/dayCalendar.js +2 -2
- package/lib/es/calendar/monthCalendar.js +2 -2
- package/lib/es/calendar/rangeCalendar.js +2 -2
- package/lib/es/calendar/weekCalendar.d.ts +1 -1
- package/lib/es/calendar/weekCalendar.js +2 -2
- package/lib/es/carousel/index.js +2 -2
- package/lib/es/cascader/index.js +1 -1
- package/lib/es/checkbox/checkbox.js +2 -2
- package/lib/es/checkbox/checkboxGroup.js +2 -2
- package/lib/es/collapse/index.js +2 -2
- package/lib/es/collapsible/index.js +2 -2
- package/lib/es/datePicker/dateInput.d.ts +1 -0
- package/lib/es/datePicker/dateInput.js +10 -6
- package/lib/es/datePicker/datePicker.js +23 -10
- package/lib/es/datePicker/quickControl.d.ts +2 -0
- package/lib/es/datePicker/quickControl.js +5 -3
- package/lib/es/descriptions/index.js +22 -11
- package/lib/es/descriptions/item.js +22 -11
- package/lib/es/empty/index.js +23 -13
- package/lib/es/input/index.d.ts +3 -1
- package/lib/es/input/index.js +19 -16
- package/lib/es/list/index.js +30 -20
- package/lib/es/list/item.js +18 -15
- package/lib/es/locale/interface.d.ts +1 -0
- package/lib/es/locale/source/ar.js +1 -0
- package/lib/es/locale/source/de.js +1 -0
- package/lib/es/locale/source/en_GB.js +1 -0
- package/lib/es/locale/source/en_US.js +1 -0
- package/lib/es/locale/source/es.js +1 -0
- package/lib/es/locale/source/fr.js +1 -0
- package/lib/es/locale/source/id_ID.js +1 -0
- package/lib/es/locale/source/it.js +1 -0
- package/lib/es/locale/source/ja_JP.js +1 -0
- package/lib/es/locale/source/ko_KR.js +1 -0
- package/lib/es/locale/source/ms_MY.js +1 -0
- package/lib/es/locale/source/nl_NL.js +1 -0
- package/lib/es/locale/source/pl_PL.js +1 -0
- package/lib/es/locale/source/pt_BR.js +1 -0
- package/lib/es/locale/source/ro.d.ts +1 -0
- package/lib/es/locale/source/ro.js +1 -0
- package/lib/es/locale/source/ru_RU.js +1 -0
- package/lib/es/locale/source/sv_SE.js +1 -0
- package/lib/es/locale/source/th_TH.js +1 -0
- package/lib/es/locale/source/tr_TR.js +1 -0
- package/lib/es/locale/source/vi_VN.js +1 -0
- package/lib/es/locale/source/zh_CN.js +1 -0
- package/lib/es/locale/source/zh_TW.js +1 -0
- package/lib/es/modal/ModalContent.js +12 -9
- package/lib/es/navigation/index.js +34 -24
- package/lib/es/pagination/index.d.ts +3 -0
- package/lib/es/pagination/index.js +73 -38
- package/lib/es/progress/index.js +44 -31
- package/lib/es/radio/radio.js +27 -17
- package/lib/es/radio/radioGroup.js +24 -14
- package/lib/es/rating/index.js +21 -11
- package/lib/es/scrollList/index.js +21 -11
- package/lib/es/select/index.js +30 -20
- package/lib/es/sideSheet/SideSheetContent.js +27 -7
- package/lib/es/slider/index.js +20 -10
- package/lib/es/spin/index.js +19 -9
- package/lib/es/steps/basicSteps.js +24 -14
- package/lib/es/steps/fillSteps.js +22 -12
- package/lib/es/steps/navSteps.js +21 -11
- package/lib/es/switch/index.js +23 -13
- package/lib/es/table/Table.d.ts +1 -0
- package/lib/es/table/Table.js +3 -2
- package/lib/es/tabs/index.js +1 -2
- package/lib/es/tagInput/index.js +20 -10
- package/lib/es/timeline/index.js +20 -9
- package/lib/es/timeline/item.js +24 -13
- package/lib/es/toast/index.d.ts +4 -0
- package/lib/es/tooltip/index.js +3 -1
- package/lib/es/transfer/index.js +19 -9
- package/lib/es/tree/index.js +32 -22
- package/lib/es/treeSelect/index.js +32 -20
- package/lib/es/typography/title.d.ts +1 -1
- package/lib/es/upload/index.js +28 -18
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -17886,6 +17886,15 @@ class AnchorFoundation extends foundation {
|
|
|
17886
17886
|
};
|
|
17887
17887
|
}
|
|
17888
17888
|
}
|
|
17889
|
+
;// CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
|
|
17890
|
+
function getDataAttr(props) {
|
|
17891
|
+
return Object.keys(props).reduce((prev, key) => {
|
|
17892
|
+
if (key.substr(0, 5) === 'data-') {
|
|
17893
|
+
prev[key] = props[key];
|
|
17894
|
+
}
|
|
17895
|
+
return prev;
|
|
17896
|
+
}, {});
|
|
17897
|
+
}
|
|
17889
17898
|
;// CONCATENATED MODULE: ./_base/baseComponent.tsx
|
|
17890
17899
|
/**
|
|
17891
17900
|
* The Semi Foundation / Adapter architecture split was inspired by Material Component For Web. (https://github.com/material-components/material-components-web)
|
|
@@ -17893,6 +17902,7 @@ class AnchorFoundation extends foundation {
|
|
|
17893
17902
|
*/
|
|
17894
17903
|
|
|
17895
17904
|
|
|
17905
|
+
|
|
17896
17906
|
const {
|
|
17897
17907
|
hasOwnProperty: baseComponent_hasOwnProperty
|
|
17898
17908
|
} = Object.prototype;
|
|
@@ -17946,6 +17956,9 @@ class BaseComponent extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
17946
17956
|
}
|
|
17947
17957
|
return utils_log(text, ...rest);
|
|
17948
17958
|
}
|
|
17959
|
+
getDataAttr(props) {
|
|
17960
|
+
return getDataAttr(props);
|
|
17961
|
+
}
|
|
17949
17962
|
}
|
|
17950
17963
|
BaseComponent.propTypes = {};
|
|
17951
17964
|
BaseComponent.defaultProps = {};
|
|
@@ -20305,7 +20318,9 @@ class Tooltip extends BaseComponent {
|
|
|
20305
20318
|
role: role,
|
|
20306
20319
|
"x-placement": placement,
|
|
20307
20320
|
id: id
|
|
20308
|
-
}),
|
|
20321
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
20322
|
+
className: `${prefix}-content`
|
|
20323
|
+
}, contentNode), icon);
|
|
20309
20324
|
});
|
|
20310
20325
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(_portal, {
|
|
20311
20326
|
getPopupContainer: this.props.getPopupContainer,
|
|
@@ -21468,6 +21483,7 @@ const local = {
|
|
|
21468
21483
|
dateTimeRange: ['开始日期', '结束日期'],
|
|
21469
21484
|
monthRange: ['开始月份', '结束月份']
|
|
21470
21485
|
},
|
|
21486
|
+
presets: '快捷选择',
|
|
21471
21487
|
footer: {
|
|
21472
21488
|
confirm: '确定',
|
|
21473
21489
|
cancel: '取消'
|
|
@@ -26534,13 +26550,13 @@ class Anchor extends BaseComponent {
|
|
|
26534
26550
|
addLink: this.addLink,
|
|
26535
26551
|
removeLink: this.removeLink
|
|
26536
26552
|
}
|
|
26537
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
26553
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
26538
26554
|
role: "navigation",
|
|
26539
26555
|
"aria-label": ariaLabel || 'Side navigation',
|
|
26540
26556
|
className: wrapperCls,
|
|
26541
26557
|
style: wrapperStyle,
|
|
26542
26558
|
id: this.anchorID
|
|
26543
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
26559
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
26544
26560
|
"aria-hidden": true,
|
|
26545
26561
|
className: slideCls,
|
|
26546
26562
|
style: {
|
|
@@ -27138,6 +27154,14 @@ function icon_Icon() {
|
|
|
27138
27154
|
// EXTERNAL MODULE: ../semi-foundation/spin/spin.scss
|
|
27139
27155
|
var spin = __webpack_require__("6Z2J");
|
|
27140
27156
|
;// CONCATENATED MODULE: ./spin/index.tsx
|
|
27157
|
+
var spin_rest = undefined && undefined.__rest || function (s, e) {
|
|
27158
|
+
var t = {};
|
|
27159
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
27160
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
27161
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
27162
|
+
}
|
|
27163
|
+
return t;
|
|
27164
|
+
};
|
|
27141
27165
|
|
|
27142
27166
|
|
|
27143
27167
|
|
|
@@ -27203,13 +27227,15 @@ class Spin extends BaseComponent {
|
|
|
27203
27227
|
}
|
|
27204
27228
|
render() {
|
|
27205
27229
|
this.foundation.updateLoadingIfNeedDelay();
|
|
27206
|
-
const
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
|
|
27212
|
-
|
|
27230
|
+
const _a = this.props,
|
|
27231
|
+
{
|
|
27232
|
+
children,
|
|
27233
|
+
style,
|
|
27234
|
+
wrapperClassName,
|
|
27235
|
+
childStyle,
|
|
27236
|
+
size
|
|
27237
|
+
} = _a,
|
|
27238
|
+
rest = spin_rest(_a, ["children", "style", "wrapperClassName", "childStyle", "size"]);
|
|
27213
27239
|
const {
|
|
27214
27240
|
loading
|
|
27215
27241
|
} = this.state;
|
|
@@ -27218,10 +27244,10 @@ class Spin extends BaseComponent {
|
|
|
27218
27244
|
[`${spin_prefixCls}-block`]: children,
|
|
27219
27245
|
[`${spin_prefixCls}-hidden`]: !loading
|
|
27220
27246
|
});
|
|
27221
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
27247
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
27222
27248
|
className: spinCls,
|
|
27223
27249
|
style: style
|
|
27224
|
-
}, this.renderSpin(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
27250
|
+
}, this.getDataAttr(rest)), this.renderSpin(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
27225
27251
|
className: `${spin_prefixCls}-children`,
|
|
27226
27252
|
style: childStyle,
|
|
27227
27253
|
"x-semi-prop": "children"
|
|
@@ -27518,9 +27544,10 @@ class InputFoundation extends foundation {
|
|
|
27518
27544
|
} = this._adapter.getStates();
|
|
27519
27545
|
const {
|
|
27520
27546
|
showClear,
|
|
27521
|
-
disabled
|
|
27547
|
+
disabled,
|
|
27548
|
+
showClearIgnoreDisabled
|
|
27522
27549
|
} = this._adapter.getProps();
|
|
27523
|
-
const allowClear = value && showClear && !disabled && (isFocus || isHovering);
|
|
27550
|
+
const allowClear = value && showClear && (!disabled || showClearIgnoreDisabled) && (isFocus || isHovering);
|
|
27524
27551
|
return allowClear;
|
|
27525
27552
|
}
|
|
27526
27553
|
handleClickPrefixOrSuffix(e) {
|
|
@@ -27697,6 +27724,21 @@ class Input extends BaseComponent {
|
|
|
27697
27724
|
this.handleModeChange(mode);
|
|
27698
27725
|
}
|
|
27699
27726
|
}
|
|
27727
|
+
componentDidMount() {
|
|
27728
|
+
// autofocus is changed from the original support of input to the support of manually calling the focus method,
|
|
27729
|
+
// so that preventScroll can still take effect under the setting of autofocus
|
|
27730
|
+
this.foundation.init();
|
|
27731
|
+
const {
|
|
27732
|
+
disabled,
|
|
27733
|
+
autofocus,
|
|
27734
|
+
preventScroll
|
|
27735
|
+
} = this.props;
|
|
27736
|
+
if (!disabled && autofocus) {
|
|
27737
|
+
this.inputRef.current.focus({
|
|
27738
|
+
preventScroll
|
|
27739
|
+
});
|
|
27740
|
+
}
|
|
27741
|
+
}
|
|
27700
27742
|
renderPrepend() {
|
|
27701
27743
|
const {
|
|
27702
27744
|
addonBefore
|
|
@@ -27805,18 +27847,6 @@ class Input extends BaseComponent {
|
|
|
27805
27847
|
}, labelNode)
|
|
27806
27848
|
);
|
|
27807
27849
|
}
|
|
27808
|
-
showClearBtn() {
|
|
27809
|
-
const {
|
|
27810
|
-
value,
|
|
27811
|
-
isFocus,
|
|
27812
|
-
isHovering
|
|
27813
|
-
} = this.state;
|
|
27814
|
-
const {
|
|
27815
|
-
disabled,
|
|
27816
|
-
showClear
|
|
27817
|
-
} = this.props;
|
|
27818
|
-
return Boolean(value) && showClear && !disabled && (isFocus || isHovering);
|
|
27819
|
-
}
|
|
27820
27850
|
renderSuffix(suffixAllowClear) {
|
|
27821
27851
|
const {
|
|
27822
27852
|
suffix,
|
|
@@ -27891,15 +27921,16 @@ class Input extends BaseComponent {
|
|
|
27891
27921
|
maxLength,
|
|
27892
27922
|
getValueLength,
|
|
27893
27923
|
preventScroll,
|
|
27894
|
-
borderless
|
|
27924
|
+
borderless,
|
|
27925
|
+
showClearIgnoreDisabled
|
|
27895
27926
|
} = _a,
|
|
27896
|
-
rest = input_rest(_a, ["addonAfter", "addonBefore", "autofocus", "clearIcon", "className", "disabled", "defaultValue", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength", "preventScroll", "borderless"]);
|
|
27927
|
+
rest = input_rest(_a, ["addonAfter", "addonBefore", "autofocus", "clearIcon", "className", "disabled", "defaultValue", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength", "preventScroll", "borderless", "showClearIgnoreDisabled"]);
|
|
27897
27928
|
const {
|
|
27898
27929
|
value,
|
|
27899
27930
|
isFocus,
|
|
27900
27931
|
minLength: stateMinLength
|
|
27901
27932
|
} = this.state;
|
|
27902
|
-
const suffixAllowClear = this.
|
|
27933
|
+
const suffixAllowClear = this.foundation.isAllowClear();
|
|
27903
27934
|
const suffixIsIcon = isSemiIcon(suffix);
|
|
27904
27935
|
const ref = this.getInputRef();
|
|
27905
27936
|
const wrapperPrefix = `${input_prefixCls}-wrapper`;
|
|
@@ -27932,7 +27963,6 @@ class Input extends BaseComponent {
|
|
|
27932
27963
|
const inputValue = value === null || value === undefined ? '' : value;
|
|
27933
27964
|
const inputProps = Object.assign(Object.assign({}, rest), {
|
|
27934
27965
|
style: inputStyle,
|
|
27935
|
-
autoFocus: autofocus,
|
|
27936
27966
|
className: inputCls,
|
|
27937
27967
|
disabled,
|
|
27938
27968
|
readOnly: readonly,
|
|
@@ -28439,7 +28469,7 @@ class AutoComplete extends BaseComponent {
|
|
|
28439
28469
|
selection
|
|
28440
28470
|
} = this.state;
|
|
28441
28471
|
const useCustomTrigger = typeof triggerRender === 'function';
|
|
28442
|
-
const outerProps = Object.assign(Object.assign({
|
|
28472
|
+
const outerProps = Object.assign(Object.assign(Object.assign({
|
|
28443
28473
|
style,
|
|
28444
28474
|
className: useCustomTrigger ? classnames_default()(className) : classnames_default()({
|
|
28445
28475
|
[autoComplete_prefixCls]: true,
|
|
@@ -28451,7 +28481,7 @@ class AutoComplete extends BaseComponent {
|
|
|
28451
28481
|
}, keyboardEventSet), {
|
|
28452
28482
|
// tooltip give tabindex 0 to children by default, autoComplete just need the input get focus, so outer div's tabindex set to -1
|
|
28453
28483
|
tabIndex: -1
|
|
28454
|
-
});
|
|
28484
|
+
}), this.getDataAttr(this.props));
|
|
28455
28485
|
const innerProps = {
|
|
28456
28486
|
disabled,
|
|
28457
28487
|
placeholder,
|
|
@@ -30356,11 +30386,11 @@ class Banner extends BaseComponent {
|
|
|
30356
30386
|
[`${banner_prefixCls}-in-container`]: !fullMode,
|
|
30357
30387
|
[`${banner_prefixCls}-bordered`]: !fullMode && bordered
|
|
30358
30388
|
});
|
|
30359
|
-
const banner = visible ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30389
|
+
const banner = visible ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
30360
30390
|
className: wrapper,
|
|
30361
30391
|
style: style,
|
|
30362
30392
|
role: "alert"
|
|
30363
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30393
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30364
30394
|
className: `${banner_prefixCls}-content-wrapper`
|
|
30365
30395
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30366
30396
|
className: `${banner_prefixCls}-content`
|
|
@@ -30637,7 +30667,7 @@ class BreadcrumbItem extends BaseComponent {
|
|
|
30637
30667
|
|
|
30638
30668
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
|
|
30639
30669
|
className: wrapperCLs
|
|
30640
|
-
}, pageLabel), item, shouldRenderSeparator && separator);
|
|
30670
|
+
}, pageLabel, this.getDataAttr(this.props)), item, shouldRenderSeparator && separator);
|
|
30641
30671
|
}
|
|
30642
30672
|
}
|
|
30643
30673
|
BreadcrumbItem.isBreadcrumbItem = true;
|
|
@@ -30830,11 +30860,11 @@ class Breadcrumb extends BaseComponent {
|
|
|
30830
30860
|
compact,
|
|
30831
30861
|
separator
|
|
30832
30862
|
}
|
|
30833
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("nav", {
|
|
30863
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("nav", Object.assign({
|
|
30834
30864
|
"aria-label": this.props['aria-label'],
|
|
30835
30865
|
className: sizeCls,
|
|
30836
30866
|
style: style
|
|
30837
|
-
}, breadcrumbs));
|
|
30867
|
+
}, this.getDataAttr(this.props)), breadcrumbs));
|
|
30838
30868
|
}
|
|
30839
30869
|
}
|
|
30840
30870
|
Breadcrumb.contextType = bread_context;
|
|
@@ -35191,11 +35221,11 @@ class DayCalendar extends BaseComponent {
|
|
|
35191
35221
|
scrollHeight
|
|
35192
35222
|
} = this.state;
|
|
35193
35223
|
this.isWeekend = markWeekend && this.checkWeekend(displayValue);
|
|
35194
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35224
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35195
35225
|
className: dayCls,
|
|
35196
35226
|
style: dayStyle,
|
|
35197
35227
|
ref: this.dom
|
|
35198
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35228
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35199
35229
|
className: `${dayCalendar_prefixCls}-sticky-top`
|
|
35200
35230
|
}, header, this.renderAllDay(parsedEvents.allDay)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35201
35231
|
className: `${dayCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -35475,11 +35505,11 @@ class WeekCalendar extends BaseComponent {
|
|
|
35475
35505
|
}, style);
|
|
35476
35506
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
35477
35507
|
componentName: "Calendar"
|
|
35478
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35508
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35479
35509
|
className: weekCls,
|
|
35480
35510
|
style: weekStyle,
|
|
35481
35511
|
ref: this.dom
|
|
35482
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35512
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35483
35513
|
className: `${weekCalendar_prefixCls}-sticky-top`
|
|
35484
35514
|
}, header, this.renderHeader(dateFnsLocale), this.renderAllDay(locale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35485
35515
|
className: `${weekCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -35889,12 +35919,12 @@ class monthCalendar extends BaseComponent {
|
|
|
35889
35919
|
}, style);
|
|
35890
35920
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
35891
35921
|
componentName: "Calendar"
|
|
35892
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35922
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35893
35923
|
role: "grid",
|
|
35894
35924
|
className: monthCls,
|
|
35895
35925
|
key: this.state.itemLimit,
|
|
35896
35926
|
style: monthStyle
|
|
35897
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35927
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35898
35928
|
role: "presentation",
|
|
35899
35929
|
className: `${monthCalendar_prefixCls}-sticky-top`
|
|
35900
35930
|
}, header, this.renderHeader(dateFnsLocale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
@@ -36158,11 +36188,11 @@ class RangeCalendar extends BaseComponent {
|
|
|
36158
36188
|
}, style);
|
|
36159
36189
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
36160
36190
|
componentName: "Calendar"
|
|
36161
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36191
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
36162
36192
|
className: weekCls,
|
|
36163
36193
|
style: weekStyle,
|
|
36164
36194
|
ref: this.dom
|
|
36165
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36195
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36166
36196
|
className: `${rangeCalendar_prefixCls}-sticky-top`
|
|
36167
36197
|
}, header, this.renderHeader(dateFnsLocale), this.renderAllDay(locale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36168
36198
|
className: `${rangeCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -36523,15 +36553,6 @@ const flatten = children => {
|
|
|
36523
36553
|
});
|
|
36524
36554
|
return res;
|
|
36525
36555
|
};
|
|
36526
|
-
;// CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
|
|
36527
|
-
function getDataAttr(props) {
|
|
36528
|
-
return Object.keys(props).reduce((prev, key) => {
|
|
36529
|
-
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
|
36530
|
-
prev[key] = props[key];
|
|
36531
|
-
}
|
|
36532
|
-
return prev;
|
|
36533
|
-
}, {});
|
|
36534
|
-
}
|
|
36535
36556
|
;// CONCATENATED MODULE: ./space/index.tsx
|
|
36536
36557
|
|
|
36537
36558
|
|
|
@@ -37418,14 +37439,14 @@ class Carousel extends BaseComponent {
|
|
|
37418
37439
|
const carouselWrapperCls = classnames_default()(className, {
|
|
37419
37440
|
[carousel_constants_cssClasses.CAROUSEL]: true
|
|
37420
37441
|
});
|
|
37421
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37442
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
37422
37443
|
// role='listbox'
|
|
37423
37444
|
// tabIndex={0}
|
|
37424
37445
|
className: carouselWrapperCls,
|
|
37425
37446
|
style: style,
|
|
37426
37447
|
onMouseEnter: debounce_default()(this.handleMouseEnter, 400),
|
|
37427
37448
|
onMouseLeave: debounce_default()(this.handleMouseLeave, 400)
|
|
37428
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37449
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37429
37450
|
className: classnames_default()([`${carousel_constants_cssClasses.CAROUSEL_CONTENT}-${animation}`], {
|
|
37430
37451
|
[`${carousel_constants_cssClasses.CAROUSEL_CONTENT}`]: true,
|
|
37431
37452
|
[`${carousel_constants_cssClasses.CAROUSEL_CONTENT}-reverse`]: slideDirection === 'left' ? isReverse : !isReverse
|
|
@@ -39544,7 +39565,7 @@ class Checkbox extends BaseComponent {
|
|
|
39544
39565
|
return (
|
|
39545
39566
|
/*#__PURE__*/
|
|
39546
39567
|
// label is better than span, however span is here which is to solve gitlab issue #364
|
|
39547
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
39568
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
|
|
39548
39569
|
role: role,
|
|
39549
39570
|
tabIndex: tabIndex,
|
|
39550
39571
|
style: style,
|
|
@@ -39555,7 +39576,7 @@ class Checkbox extends BaseComponent {
|
|
|
39555
39576
|
onClick: this.handleChange,
|
|
39556
39577
|
onKeyPress: this.handleEnterPress,
|
|
39557
39578
|
"aria-labelledby": this.props['aria-labelledby']
|
|
39558
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(checkboxInner, Object.assign({}, this.props, props, {
|
|
39579
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(checkboxInner, Object.assign({}, this.props, props, {
|
|
39559
39580
|
addonId: children && addonId,
|
|
39560
39581
|
extraId: extra && extraId,
|
|
39561
39582
|
isPureCardType: props.isPureCardType,
|
|
@@ -39775,7 +39796,7 @@ class CheckboxGroup extends BaseComponent {
|
|
|
39775
39796
|
role: 'listitem'
|
|
39776
39797
|
}));
|
|
39777
39798
|
}
|
|
39778
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
39799
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
39779
39800
|
id: id,
|
|
39780
39801
|
role: "list",
|
|
39781
39802
|
"aria-label": this.props['aria-label'],
|
|
@@ -39783,7 +39804,7 @@ class CheckboxGroup extends BaseComponent {
|
|
|
39783
39804
|
style: style,
|
|
39784
39805
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
39785
39806
|
"aria-describedby": this.props['aria-describedby']
|
|
39786
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Context.Provider, {
|
|
39807
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Context.Provider, {
|
|
39787
39808
|
value: {
|
|
39788
39809
|
checkboxGroup: {
|
|
39789
39810
|
onChange: this.onChange,
|
|
@@ -42547,6 +42568,14 @@ function sortableElement(WrappedComponent) {
|
|
|
42547
42568
|
|
|
42548
42569
|
|
|
42549
42570
|
|
|
42571
|
+
var tagInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
42572
|
+
var t = {};
|
|
42573
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
42574
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42575
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
42576
|
+
}
|
|
42577
|
+
return t;
|
|
42578
|
+
};
|
|
42550
42579
|
|
|
42551
42580
|
|
|
42552
42581
|
|
|
@@ -42967,14 +42996,16 @@ class TagInput extends BaseComponent {
|
|
|
42967
42996
|
}
|
|
42968
42997
|
}
|
|
42969
42998
|
render() {
|
|
42970
|
-
const
|
|
42971
|
-
|
|
42972
|
-
|
|
42973
|
-
|
|
42974
|
-
|
|
42975
|
-
|
|
42976
|
-
|
|
42977
|
-
|
|
42999
|
+
const _a = this.props,
|
|
43000
|
+
{
|
|
43001
|
+
size,
|
|
43002
|
+
style,
|
|
43003
|
+
className,
|
|
43004
|
+
disabled,
|
|
43005
|
+
placeholder,
|
|
43006
|
+
validateStatus
|
|
43007
|
+
} = _a,
|
|
43008
|
+
rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus"]);
|
|
42978
43009
|
const {
|
|
42979
43010
|
focusing,
|
|
42980
43011
|
hovering,
|
|
@@ -42996,7 +43027,7 @@ class TagInput extends BaseComponent {
|
|
|
42996
43027
|
return (
|
|
42997
43028
|
/*#__PURE__*/
|
|
42998
43029
|
// eslint-disable-next-line
|
|
42999
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43030
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
43000
43031
|
ref: this.tagInputRef,
|
|
43001
43032
|
style: style,
|
|
43002
43033
|
className: tagInputCls,
|
|
@@ -43012,7 +43043,7 @@ class TagInput extends BaseComponent {
|
|
|
43012
43043
|
onClick: e => {
|
|
43013
43044
|
this.handleClick(e);
|
|
43014
43045
|
}
|
|
43015
|
-
}, this.renderPrefix(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43046
|
+
}, this.getDataAttr(rest)), this.renderPrefix(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43016
43047
|
className: wrapperCls
|
|
43017
43048
|
}, this.renderTags(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(input_0, {
|
|
43018
43049
|
"aria-label": 'input value',
|
|
@@ -43567,7 +43598,7 @@ class Cascader extends BaseComponent {
|
|
|
43567
43598
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
43568
43599
|
role: "combobox",
|
|
43569
43600
|
tabIndex: 0
|
|
43570
|
-
}), inner);
|
|
43601
|
+
}, this.getDataAttr(this.props)), inner);
|
|
43571
43602
|
};
|
|
43572
43603
|
this.state = {
|
|
43573
43604
|
disabledKeys: new Set(),
|
|
@@ -44305,7 +44336,7 @@ class Collapsible extends BaseComponent {
|
|
|
44305
44336
|
const wrapperCls = classnames_default()(`${collapsible_constants_cssClasses.PREFIX}-wrapper`, {
|
|
44306
44337
|
[`${collapsible_constants_cssClasses.PREFIX}-transition`]: this.props.motion && this.state.isTransitioning
|
|
44307
44338
|
}, this.props.className);
|
|
44308
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44339
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
44309
44340
|
className: wrapperCls,
|
|
44310
44341
|
style: wrapperStyle,
|
|
44311
44342
|
onTransitionEnd: () => {
|
|
@@ -44316,7 +44347,7 @@ class Collapsible extends BaseComponent {
|
|
|
44316
44347
|
this.foundation.updateIsTransitioning(false);
|
|
44317
44348
|
(_b = (_a = this.props).onMotionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
44318
44349
|
}
|
|
44319
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44350
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44320
44351
|
"x-semi-prop": "children",
|
|
44321
44352
|
ref: this.domRef,
|
|
44322
44353
|
style: {
|
|
@@ -44585,10 +44616,10 @@ class Collapse extends BaseComponent {
|
|
|
44585
44616
|
const {
|
|
44586
44617
|
activeSet
|
|
44587
44618
|
} = this.state;
|
|
44588
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44619
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
44589
44620
|
className: clsPrefix,
|
|
44590
44621
|
style: style
|
|
44591
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(collapse_context.Provider, {
|
|
44622
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(collapse_context.Provider, {
|
|
44592
44623
|
value: {
|
|
44593
44624
|
activeSet,
|
|
44594
44625
|
expandIcon,
|
|
@@ -49038,9 +49069,11 @@ class DatePickerFoundation extends foundation {
|
|
|
49038
49069
|
const inputValue = '';
|
|
49039
49070
|
if (!this._isControlledComponent('value')) {
|
|
49040
49071
|
this._updateValueAndInput(value, true, inputValue);
|
|
49072
|
+
this._adapter.updateInsetInputValue(null);
|
|
49041
49073
|
this.resetCachedSelectedValue(value);
|
|
49042
49074
|
}
|
|
49043
49075
|
this._notifyChange(value);
|
|
49076
|
+
this._adapter.setRangeInputFocus(false);
|
|
49044
49077
|
this._adapter.notifyClear(e);
|
|
49045
49078
|
}
|
|
49046
49079
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -50169,6 +50202,7 @@ class inputFoundation_InputFoundation extends foundation {
|
|
|
50169
50202
|
case 'dateTime':
|
|
50170
50203
|
case 'dateTimeRange':
|
|
50171
50204
|
[datePlaceholder, timePlaceholder] = insetInputFormat.split(' ');
|
|
50205
|
+
break;
|
|
50172
50206
|
case 'monthRange':
|
|
50173
50207
|
datePlaceholder = insetInputFormat + rangeSeparator + insetInputFormat;
|
|
50174
50208
|
break;
|
|
@@ -50476,15 +50510,17 @@ class DateInput extends BaseComponent {
|
|
|
50476
50510
|
showClear,
|
|
50477
50511
|
prefixCls,
|
|
50478
50512
|
disabled,
|
|
50479
|
-
clearIcon
|
|
50513
|
+
clearIcon,
|
|
50514
|
+
showClearIgnoreDisabled
|
|
50480
50515
|
} = this.props;
|
|
50481
|
-
const
|
|
50482
|
-
|
|
50516
|
+
const isRealDisabled = disabled && !showClearIgnoreDisabled;
|
|
50517
|
+
const allowClear = (rangeStart || rangeEnd) && showClear && !isRealDisabled;
|
|
50518
|
+
return allowClear ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
50483
50519
|
role: "button",
|
|
50484
50520
|
tabIndex: 0,
|
|
50485
50521
|
"aria-label": "Clear range input value",
|
|
50486
50522
|
className: `${prefixCls}-range-input-clearbtn`,
|
|
50487
|
-
onMouseDown: e =>
|
|
50523
|
+
onMouseDown: e => this.handleRangeInputClear(e)
|
|
50488
50524
|
}, clearIcon ? clearIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconClear, {
|
|
50489
50525
|
"aria-hidden": true
|
|
50490
50526
|
})) : null;
|
|
@@ -50682,9 +50718,10 @@ class DateInput extends BaseComponent {
|
|
|
50682
50718
|
rangeSeparator,
|
|
50683
50719
|
insetInput,
|
|
50684
50720
|
insetInputValue,
|
|
50685
|
-
defaultPickerValue
|
|
50721
|
+
defaultPickerValue,
|
|
50722
|
+
showClearIgnoreDisabled
|
|
50686
50723
|
} = _a,
|
|
50687
|
-
rest = dateInput_rest(_a, ["placeholder", "type", "value", "inputValue", "inputStyle", "disabled", "showClear", "inputReadOnly", "insetLabel", "validateStatus", "block", "prefixCls", "multiple", "dateFnsLocale", "onBlur", "onClear", "onFocus", "prefix", "autofocus", "size", "inputRef", "rangeInputStartRef", "rangeInputEndRef", "onRangeClear", "onRangeBlur", "onRangeEndTabPress", "rangeInputFocus", "rangeSeparator", "insetInput", "insetInputValue", "defaultPickerValue"]);
|
|
50724
|
+
rest = dateInput_rest(_a, ["placeholder", "type", "value", "inputValue", "inputStyle", "disabled", "showClear", "inputReadOnly", "insetLabel", "validateStatus", "block", "prefixCls", "multiple", "dateFnsLocale", "onBlur", "onClear", "onFocus", "prefix", "autofocus", "size", "inputRef", "rangeInputStartRef", "rangeInputEndRef", "onRangeClear", "onRangeBlur", "onRangeEndTabPress", "rangeInputFocus", "rangeSeparator", "insetInput", "insetInputValue", "defaultPickerValue", "showClearIgnoreDisabled"]);
|
|
50688
50725
|
const dateIcon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconCalendar, {
|
|
50689
50726
|
"aria-hidden": true
|
|
50690
50727
|
});
|
|
@@ -50711,6 +50748,7 @@ class DateInput extends BaseComponent {
|
|
|
50711
50748
|
ref: inputRef,
|
|
50712
50749
|
insetLabel: insetLabel,
|
|
50713
50750
|
disabled: disabled,
|
|
50751
|
+
showClearIgnoreDisabled: showClearIgnoreDisabled,
|
|
50714
50752
|
readonly: inputReadOnly,
|
|
50715
50753
|
className: inputCls,
|
|
50716
50754
|
style: inputStyle,
|
|
@@ -53602,6 +53640,14 @@ class ScrollListFoundation extends foundation {}
|
|
|
53602
53640
|
// EXTERNAL MODULE: ../semi-foundation/scrollList/scrollList.scss
|
|
53603
53641
|
var scrollList = __webpack_require__("AadH");
|
|
53604
53642
|
;// CONCATENATED MODULE: ./scrollList/index.tsx
|
|
53643
|
+
var scrollList_rest = undefined && undefined.__rest || function (s, e) {
|
|
53644
|
+
var t = {};
|
|
53645
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
53646
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53647
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
53648
|
+
}
|
|
53649
|
+
return t;
|
|
53650
|
+
};
|
|
53605
53651
|
|
|
53606
53652
|
|
|
53607
53653
|
|
|
@@ -53617,25 +53663,27 @@ class ScrollList extends BaseComponent {
|
|
|
53617
53663
|
this.foundation = new ScrollListFoundation(this.adapter);
|
|
53618
53664
|
}
|
|
53619
53665
|
render() {
|
|
53620
|
-
const
|
|
53621
|
-
|
|
53622
|
-
|
|
53623
|
-
|
|
53624
|
-
|
|
53625
|
-
|
|
53626
|
-
|
|
53627
|
-
|
|
53628
|
-
|
|
53666
|
+
const _a = this.props,
|
|
53667
|
+
{
|
|
53668
|
+
children,
|
|
53669
|
+
header,
|
|
53670
|
+
footer,
|
|
53671
|
+
prefixCls,
|
|
53672
|
+
bodyHeight,
|
|
53673
|
+
className,
|
|
53674
|
+
style
|
|
53675
|
+
} = _a,
|
|
53676
|
+
rest = scrollList_rest(_a, ["children", "header", "footer", "prefixCls", "bodyHeight", "className", "style"]);
|
|
53629
53677
|
const clsWrapper = classnames_default()(className, {
|
|
53630
53678
|
[prefixCls || scrollList_constants_cssClasses.PREFIX]: true
|
|
53631
53679
|
});
|
|
53632
53680
|
const clsHeader = classnames_default()({
|
|
53633
53681
|
[`${prefixCls || scrollList_constants_cssClasses.PREFIX}-header`]: true
|
|
53634
53682
|
});
|
|
53635
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53683
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
53636
53684
|
className: clsWrapper,
|
|
53637
53685
|
style: style
|
|
53638
|
-
}, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53686
|
+
}, this.getDataAttr(rest)), header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53639
53687
|
className: clsHeader
|
|
53640
53688
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53641
53689
|
className: `${clsHeader}-title`,
|
|
@@ -55159,7 +55207,8 @@ class QuickControl extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
55159
55207
|
onPresetClick,
|
|
55160
55208
|
type,
|
|
55161
55209
|
presetPosition,
|
|
55162
|
-
insetInput
|
|
55210
|
+
insetInput,
|
|
55211
|
+
locale
|
|
55163
55212
|
} = this.props;
|
|
55164
55213
|
const isTypeRange = type === 'dateRange' || type === 'dateTimeRange';
|
|
55165
55214
|
const isPanelTopAndBottom = presetPosition === 'top' || presetPosition === 'bottom';
|
|
@@ -55199,7 +55248,7 @@ class QuickControl extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
55199
55248
|
"x-insetinput": insetInput ? "true" : "false"
|
|
55200
55249
|
}, !isPanelTopAndBottom && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55201
55250
|
className: headerCls
|
|
55202
|
-
},
|
|
55251
|
+
}, locale.presets), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55203
55252
|
className: contentWrapperCls
|
|
55204
55253
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55205
55254
|
className: contentCls
|
|
@@ -55226,7 +55275,8 @@ QuickControl.propTypes = {
|
|
|
55226
55275
|
presetPosition: prop_types_default().oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
|
|
55227
55276
|
onPresetClick: (prop_types_default()).func,
|
|
55228
55277
|
type: (prop_types_default()).string,
|
|
55229
|
-
insetInput: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).object])
|
|
55278
|
+
insetInput: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).object]),
|
|
55279
|
+
locale: (prop_types_default()).object
|
|
55230
55280
|
};
|
|
55231
55281
|
QuickControl.defaultProps = {
|
|
55232
55282
|
presets: [],
|
|
@@ -55268,6 +55318,14 @@ var datePicker = __webpack_require__("jUTk");
|
|
|
55268
55318
|
|
|
55269
55319
|
|
|
55270
55320
|
|
|
55321
|
+
var datePicker_rest = undefined && undefined.__rest || function (s, e) {
|
|
55322
|
+
var t = {};
|
|
55323
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
55324
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55325
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
55326
|
+
}
|
|
55327
|
+
return t;
|
|
55328
|
+
};
|
|
55271
55329
|
/* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/interactive-supports-focus */
|
|
55272
55330
|
/* eslint-disable max-len */
|
|
55273
55331
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
@@ -55846,14 +55904,16 @@ class DatePicker extends BaseComponent {
|
|
|
55846
55904
|
presets,
|
|
55847
55905
|
type,
|
|
55848
55906
|
presetPosition,
|
|
55849
|
-
insetInput
|
|
55907
|
+
insetInput,
|
|
55908
|
+
locale
|
|
55850
55909
|
} = this.props;
|
|
55851
55910
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(quickControl, {
|
|
55852
55911
|
type: type,
|
|
55853
55912
|
presets: presets,
|
|
55854
55913
|
insetInput: insetInput,
|
|
55855
55914
|
presetPosition: presetPosition,
|
|
55856
|
-
onPresetClick: (item, e) => this.foundation.handlePresetClick(item, e)
|
|
55915
|
+
onPresetClick: (item, e) => this.foundation.handlePresetClick(item, e),
|
|
55916
|
+
locale: locale
|
|
55857
55917
|
});
|
|
55858
55918
|
}
|
|
55859
55919
|
renderDateInput() {
|
|
@@ -55933,6 +55993,7 @@ class DatePicker extends BaseComponent {
|
|
|
55933
55993
|
const phText = placeholder || locale.placeholder[type]; // i18n
|
|
55934
55994
|
// These values should be passed to triggerRender, do not delete any key if it is not necessary
|
|
55935
55995
|
const props = Object.assign(Object.assign({}, extraProps), {
|
|
55996
|
+
showClearIgnoreDisabled: Boolean(insetInput),
|
|
55936
55997
|
placeholder: phText,
|
|
55937
55998
|
clearIcon,
|
|
55938
55999
|
disabled: inputDisabled,
|
|
@@ -55984,13 +56045,15 @@ class DatePicker extends BaseComponent {
|
|
|
55984
56045
|
})) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(DateInput, Object.assign({}, props)));
|
|
55985
56046
|
}
|
|
55986
56047
|
render() {
|
|
55987
|
-
const
|
|
55988
|
-
|
|
55989
|
-
|
|
55990
|
-
|
|
55991
|
-
|
|
55992
|
-
|
|
55993
|
-
|
|
56048
|
+
const _a = this.props,
|
|
56049
|
+
{
|
|
56050
|
+
style,
|
|
56051
|
+
className,
|
|
56052
|
+
prefixCls,
|
|
56053
|
+
type
|
|
56054
|
+
} = _a,
|
|
56055
|
+
rest = datePicker_rest(_a, ["style", "className", "prefixCls", "type"]);
|
|
56056
|
+
const outerProps = Object.assign({
|
|
55994
56057
|
style,
|
|
55995
56058
|
className: classnames_default()(className, {
|
|
55996
56059
|
[prefixCls]: true
|
|
@@ -56001,7 +56064,7 @@ class DatePicker extends BaseComponent {
|
|
|
56001
56064
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
56002
56065
|
'aria-describedby': this.props['aria-describedby'],
|
|
56003
56066
|
'aria-required': this.props['aria-required']
|
|
56004
|
-
};
|
|
56067
|
+
}, this.getDataAttr(rest));
|
|
56005
56068
|
const innerPropKeys = [];
|
|
56006
56069
|
if (!type.toLowerCase().includes("range")) {
|
|
56007
56070
|
innerPropKeys.push("borderless");
|
|
@@ -56206,6 +56269,15 @@ var descriptions = __webpack_require__("3/Sr");
|
|
|
56206
56269
|
const DescriptionsContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null);
|
|
56207
56270
|
/* harmony default export */ const descriptions_context = (DescriptionsContext);
|
|
56208
56271
|
;// CONCATENATED MODULE: ./descriptions/item.tsx
|
|
56272
|
+
var descriptions_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
56273
|
+
var t = {};
|
|
56274
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56275
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56276
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56277
|
+
}
|
|
56278
|
+
return t;
|
|
56279
|
+
};
|
|
56280
|
+
|
|
56209
56281
|
|
|
56210
56282
|
|
|
56211
56283
|
|
|
@@ -56216,32 +56288,34 @@ const keyCls = `${item_prefixCls}-key`;
|
|
|
56216
56288
|
const valCls = `${item_prefixCls}-value`;
|
|
56217
56289
|
class item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
56218
56290
|
render() {
|
|
56219
|
-
const
|
|
56220
|
-
|
|
56221
|
-
|
|
56222
|
-
|
|
56223
|
-
|
|
56224
|
-
|
|
56225
|
-
|
|
56291
|
+
const _a = this.props,
|
|
56292
|
+
{
|
|
56293
|
+
itemKey,
|
|
56294
|
+
hidden,
|
|
56295
|
+
className,
|
|
56296
|
+
style,
|
|
56297
|
+
children
|
|
56298
|
+
} = _a,
|
|
56299
|
+
rest = descriptions_item_rest(_a, ["itemKey", "hidden", "className", "style", "children"]);
|
|
56226
56300
|
const {
|
|
56227
56301
|
align
|
|
56228
56302
|
} = this.context;
|
|
56229
56303
|
if (hidden) {
|
|
56230
56304
|
return null;
|
|
56231
56305
|
}
|
|
56232
|
-
const item = align === 'plain' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", {
|
|
56306
|
+
const item = align === 'plain' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", Object.assign({
|
|
56233
56307
|
className: className,
|
|
56234
56308
|
style: style
|
|
56235
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("td", {
|
|
56309
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("td", {
|
|
56236
56310
|
className: `${item_prefixCls}-item`
|
|
56237
56311
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56238
56312
|
className: keyCls
|
|
56239
56313
|
}, itemKey, ":"), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56240
56314
|
className: valCls
|
|
56241
|
-
}, typeof children === 'function' ? children() : children))) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", {
|
|
56315
|
+
}, typeof children === 'function' ? children() : children))) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", Object.assign({
|
|
56242
56316
|
className: className,
|
|
56243
56317
|
style: style
|
|
56244
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("th", {
|
|
56318
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("th", {
|
|
56245
56319
|
className: `${item_prefixCls}-item ${item_prefixCls}-item-th`
|
|
56246
56320
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56247
56321
|
className: keyCls
|
|
@@ -56262,6 +56336,15 @@ item_Item.propTypes = {
|
|
|
56262
56336
|
item_Item.contextType = descriptions_context;
|
|
56263
56337
|
;// CONCATENATED MODULE: ./descriptions/index.tsx
|
|
56264
56338
|
|
|
56339
|
+
var descriptions_rest = undefined && undefined.__rest || function (s, e) {
|
|
56340
|
+
var t = {};
|
|
56341
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56342
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56343
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56344
|
+
}
|
|
56345
|
+
return t;
|
|
56346
|
+
};
|
|
56347
|
+
|
|
56265
56348
|
|
|
56266
56349
|
|
|
56267
56350
|
|
|
@@ -56272,15 +56355,17 @@ item_Item.contextType = descriptions_context;
|
|
|
56272
56355
|
const descriptions_prefixCls = descriptions_constants_cssClasses.PREFIX;
|
|
56273
56356
|
class Descriptions extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
56274
56357
|
render() {
|
|
56275
|
-
const
|
|
56276
|
-
|
|
56277
|
-
|
|
56278
|
-
|
|
56279
|
-
|
|
56280
|
-
|
|
56281
|
-
|
|
56282
|
-
|
|
56283
|
-
|
|
56358
|
+
const _a = this.props,
|
|
56359
|
+
{
|
|
56360
|
+
align,
|
|
56361
|
+
row,
|
|
56362
|
+
size,
|
|
56363
|
+
className,
|
|
56364
|
+
style,
|
|
56365
|
+
children,
|
|
56366
|
+
data
|
|
56367
|
+
} = _a,
|
|
56368
|
+
rest = descriptions_rest(_a, ["align", "row", "size", "className", "style", "children", "data"]);
|
|
56284
56369
|
const classNames = classnames_default()(descriptions_prefixCls, className, {
|
|
56285
56370
|
[`${descriptions_prefixCls}-${align}`]: !row,
|
|
56286
56371
|
[`${descriptions_prefixCls}-double`]: row,
|
|
@@ -56291,10 +56376,10 @@ class Descriptions extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
56291
56376
|
}, item, {
|
|
56292
56377
|
key: index
|
|
56293
56378
|
}), item.value) : null) : children;
|
|
56294
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56379
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
56295
56380
|
className: classNames,
|
|
56296
56381
|
style: style
|
|
56297
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("table", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tbody", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(descriptions_context.Provider, {
|
|
56382
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("table", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tbody", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(descriptions_context.Provider, {
|
|
56298
56383
|
value: {
|
|
56299
56384
|
align
|
|
56300
56385
|
}
|
|
@@ -56402,6 +56487,14 @@ const empty_constants_strings = {
|
|
|
56402
56487
|
// EXTERNAL MODULE: ../semi-foundation/empty/empty.scss
|
|
56403
56488
|
var empty_empty = __webpack_require__("vbeS");
|
|
56404
56489
|
;// CONCATENATED MODULE: ./empty/index.tsx
|
|
56490
|
+
var empty_rest = undefined && undefined.__rest || function (s, e) {
|
|
56491
|
+
var t = {};
|
|
56492
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56493
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56494
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56495
|
+
}
|
|
56496
|
+
return t;
|
|
56497
|
+
};
|
|
56405
56498
|
|
|
56406
56499
|
|
|
56407
56500
|
|
|
@@ -56448,17 +56541,19 @@ class Empty extends BaseComponent {
|
|
|
56448
56541
|
this.observer && this.observer.disconnect();
|
|
56449
56542
|
}
|
|
56450
56543
|
render() {
|
|
56451
|
-
const
|
|
56452
|
-
|
|
56453
|
-
|
|
56454
|
-
|
|
56455
|
-
|
|
56456
|
-
|
|
56457
|
-
|
|
56458
|
-
|
|
56459
|
-
|
|
56460
|
-
|
|
56461
|
-
|
|
56544
|
+
const _a = this.props,
|
|
56545
|
+
{
|
|
56546
|
+
className,
|
|
56547
|
+
image,
|
|
56548
|
+
description,
|
|
56549
|
+
style,
|
|
56550
|
+
title,
|
|
56551
|
+
imageStyle,
|
|
56552
|
+
children,
|
|
56553
|
+
layout,
|
|
56554
|
+
darkModeImage
|
|
56555
|
+
} = _a,
|
|
56556
|
+
rest = empty_rest(_a, ["className", "image", "description", "style", "title", "imageStyle", "children", "layout", "darkModeImage"]);
|
|
56462
56557
|
const alt = typeof description === 'string' ? description : 'empty';
|
|
56463
56558
|
const imgSrc = this.state.mode === 'dark' && darkModeImage ? darkModeImage : image;
|
|
56464
56559
|
let imageNode = null;
|
|
@@ -56487,10 +56582,10 @@ class Empty extends BaseComponent {
|
|
|
56487
56582
|
fontWeight: 400
|
|
56488
56583
|
}
|
|
56489
56584
|
};
|
|
56490
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56585
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
56491
56586
|
className: wrapperCls,
|
|
56492
56587
|
style: style
|
|
56493
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56588
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56494
56589
|
className: `${empty_prefixCls}-image`,
|
|
56495
56590
|
style: imageStyle,
|
|
56496
56591
|
"x-semi-prop": "image,darkModeImage"
|
|
@@ -57059,13 +57154,15 @@ class ModalContent extends BaseComponent {
|
|
|
57059
57154
|
this.foundation.destroy();
|
|
57060
57155
|
}
|
|
57061
57156
|
render() {
|
|
57062
|
-
const
|
|
57063
|
-
|
|
57064
|
-
|
|
57065
|
-
|
|
57066
|
-
|
|
57067
|
-
|
|
57068
|
-
|
|
57157
|
+
const _a = this.props,
|
|
57158
|
+
{
|
|
57159
|
+
maskClosable,
|
|
57160
|
+
className,
|
|
57161
|
+
getPopupContainer,
|
|
57162
|
+
maskFixed,
|
|
57163
|
+
getContainerContext
|
|
57164
|
+
} = _a,
|
|
57165
|
+
rest = ModalContent_rest(_a, ["maskClosable", "className", "getPopupContainer", "maskFixed", "getContainerContext"]);
|
|
57069
57166
|
const {
|
|
57070
57167
|
direction
|
|
57071
57168
|
} = this.context;
|
|
@@ -57075,9 +57172,10 @@ class ModalContent extends BaseComponent {
|
|
|
57075
57172
|
[`${modal_constants_cssClasses.DIALOG}-rtl`]: direction === 'rtl'
|
|
57076
57173
|
});
|
|
57077
57174
|
const containerContext = getContainerContext();
|
|
57078
|
-
const
|
|
57175
|
+
const dataAttr = this.getDataAttr(rest);
|
|
57176
|
+
const elem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57079
57177
|
className: classList
|
|
57080
|
-
}, this.getMaskElement(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57178
|
+
}, dataAttr), this.getMaskElement(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57081
57179
|
role: "none",
|
|
57082
57180
|
className: classnames_default()({
|
|
57083
57181
|
[`${modal_constants_cssClasses.DIALOG}-wrap`]: true,
|
|
@@ -57793,6 +57891,9 @@ class DropdownFoundation extends foundation {
|
|
|
57793
57891
|
handleKeyDown(event) {
|
|
57794
57892
|
var _a, _b;
|
|
57795
57893
|
const id = (_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.attributes['data-popupid']) === null || _b === void 0 ? void 0 : _b.value;
|
|
57894
|
+
const {
|
|
57895
|
+
visible
|
|
57896
|
+
} = this._adapter.getStates();
|
|
57796
57897
|
switch (event.key) {
|
|
57797
57898
|
case ' ':
|
|
57798
57899
|
case 'Enter':
|
|
@@ -57802,11 +57903,11 @@ class DropdownFoundation extends foundation {
|
|
|
57802
57903
|
break;
|
|
57803
57904
|
case 'ArrowDown':
|
|
57804
57905
|
this.setFocusToFirstMenuItem(id);
|
|
57805
|
-
handlePrevent(event);
|
|
57906
|
+
visible && handlePrevent(event);
|
|
57806
57907
|
break;
|
|
57807
57908
|
case 'ArrowUp':
|
|
57808
57909
|
this.setFocusToLastMenuItem(id);
|
|
57809
|
-
handlePrevent(event);
|
|
57910
|
+
visible && handlePrevent(event);
|
|
57810
57911
|
break;
|
|
57811
57912
|
default:
|
|
57812
57913
|
break;
|
|
@@ -58889,6 +58990,7 @@ var list_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
58889
58990
|
|
|
58890
58991
|
|
|
58891
58992
|
|
|
58993
|
+
|
|
58892
58994
|
const list_item_prefixCls = list_constants_cssClasses.PREFIX;
|
|
58893
58995
|
class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
58894
58996
|
wrapWithGrid(content) {
|
|
@@ -58905,19 +59007,21 @@ class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
58905
59007
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(col, Object.assign({}, rest), content);
|
|
58906
59008
|
}
|
|
58907
59009
|
render() {
|
|
58908
|
-
const
|
|
58909
|
-
|
|
58910
|
-
|
|
58911
|
-
|
|
58912
|
-
|
|
58913
|
-
|
|
58914
|
-
|
|
58915
|
-
|
|
58916
|
-
|
|
58917
|
-
|
|
58918
|
-
|
|
58919
|
-
|
|
58920
|
-
|
|
59010
|
+
const _a = this.props,
|
|
59011
|
+
{
|
|
59012
|
+
header,
|
|
59013
|
+
main,
|
|
59014
|
+
className,
|
|
59015
|
+
style,
|
|
59016
|
+
extra,
|
|
59017
|
+
children,
|
|
59018
|
+
align,
|
|
59019
|
+
onClick,
|
|
59020
|
+
onRightClick,
|
|
59021
|
+
onMouseEnter,
|
|
59022
|
+
onMouseLeave
|
|
59023
|
+
} = _a,
|
|
59024
|
+
rest = list_item_rest(_a, ["header", "main", "className", "style", "extra", "children", "align", "onClick", "onRightClick", "onMouseEnter", "onMouseLeave"]);
|
|
58921
59025
|
const {
|
|
58922
59026
|
onRightClick: contextOnRightClick,
|
|
58923
59027
|
onClick: contextOnClick,
|
|
@@ -58942,14 +59046,14 @@ class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
58942
59046
|
let content =
|
|
58943
59047
|
/*#__PURE__*/
|
|
58944
59048
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
58945
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
59049
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", Object.assign({
|
|
58946
59050
|
className: itemCls,
|
|
58947
59051
|
style: style,
|
|
58948
59052
|
onClick: handleClick,
|
|
58949
59053
|
onContextMenu: handleContextMenu,
|
|
58950
59054
|
onMouseEnter: onMouseEnter,
|
|
58951
59055
|
onMouseLeave: onMouseLeave
|
|
58952
|
-
}, body ? body : null, children, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59056
|
+
}, getDataAttr(rest)), body ? body : null, children, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
58953
59057
|
className: `${list_item_prefixCls}-item-extra`
|
|
58954
59058
|
}, extra) : null);
|
|
58955
59059
|
if (this.context && contextGrid) {
|
|
@@ -58979,6 +59083,14 @@ ListItem.defaultProps = {
|
|
|
58979
59083
|
};
|
|
58980
59084
|
;// CONCATENATED MODULE: ./list/index.tsx
|
|
58981
59085
|
|
|
59086
|
+
var list_rest = undefined && undefined.__rest || function (s, e) {
|
|
59087
|
+
var t = {};
|
|
59088
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
59089
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59090
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
59091
|
+
}
|
|
59092
|
+
return t;
|
|
59093
|
+
};
|
|
58982
59094
|
|
|
58983
59095
|
|
|
58984
59096
|
|
|
@@ -59032,24 +59144,26 @@ class List extends BaseComponent {
|
|
|
59032
59144
|
}, childrenList ? childrenList : null, children);
|
|
59033
59145
|
}
|
|
59034
59146
|
render() {
|
|
59035
|
-
const
|
|
59036
|
-
|
|
59037
|
-
|
|
59038
|
-
|
|
59039
|
-
|
|
59040
|
-
|
|
59041
|
-
|
|
59042
|
-
|
|
59043
|
-
|
|
59044
|
-
|
|
59045
|
-
|
|
59046
|
-
|
|
59047
|
-
|
|
59048
|
-
|
|
59049
|
-
|
|
59050
|
-
|
|
59051
|
-
|
|
59052
|
-
|
|
59147
|
+
const _a = this.props,
|
|
59148
|
+
{
|
|
59149
|
+
style,
|
|
59150
|
+
className,
|
|
59151
|
+
header,
|
|
59152
|
+
loading,
|
|
59153
|
+
onRightClick,
|
|
59154
|
+
onClick,
|
|
59155
|
+
footer,
|
|
59156
|
+
layout,
|
|
59157
|
+
grid,
|
|
59158
|
+
size,
|
|
59159
|
+
split,
|
|
59160
|
+
loadMore,
|
|
59161
|
+
bordered,
|
|
59162
|
+
dataSource,
|
|
59163
|
+
renderItem,
|
|
59164
|
+
children
|
|
59165
|
+
} = _a,
|
|
59166
|
+
rest = list_rest(_a, ["style", "className", "header", "loading", "onRightClick", "onClick", "footer", "layout", "grid", "size", "split", "loadMore", "bordered", "dataSource", "renderItem", "children"]);
|
|
59053
59167
|
const wrapperCls = classnames_default()(list_prefixCls, className, {
|
|
59054
59168
|
[`${list_prefixCls}-flex`]: layout === 'horizontal',
|
|
59055
59169
|
[`${list_prefixCls}-${size}`]: size,
|
|
@@ -59070,10 +59184,10 @@ class List extends BaseComponent {
|
|
|
59070
59184
|
} else if (!children && !loading) {
|
|
59071
59185
|
childrenList = this.renderEmpty();
|
|
59072
59186
|
}
|
|
59073
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59187
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
59074
59188
|
className: wrapperCls,
|
|
59075
59189
|
style: style
|
|
59076
|
-
}, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59190
|
+
}, this.getDataAttr(rest)), header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59077
59191
|
className: `${list_constants_cssClasses.PREFIX}-header`,
|
|
59078
59192
|
"x-semi-prop": "header"
|
|
59079
59193
|
}, header) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(list_context.Provider, {
|
|
@@ -62332,6 +62446,14 @@ NavHeader.elementType = "NavHeader";
|
|
|
62332
62446
|
|
|
62333
62447
|
|
|
62334
62448
|
|
|
62449
|
+
var navigation_rest = undefined && undefined.__rest || function (s, e) {
|
|
62450
|
+
var t = {};
|
|
62451
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
62452
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
62453
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
62454
|
+
}
|
|
62455
|
+
return t;
|
|
62456
|
+
};
|
|
62335
62457
|
/* eslint-disable max-lines-per-function */
|
|
62336
62458
|
|
|
62337
62459
|
|
|
@@ -62498,28 +62620,30 @@ class Nav extends BaseComponent {
|
|
|
62498
62620
|
return finalDom;
|
|
62499
62621
|
}
|
|
62500
62622
|
render() {
|
|
62501
|
-
const
|
|
62502
|
-
|
|
62503
|
-
|
|
62504
|
-
|
|
62505
|
-
|
|
62506
|
-
|
|
62507
|
-
|
|
62508
|
-
|
|
62509
|
-
|
|
62510
|
-
|
|
62511
|
-
|
|
62512
|
-
|
|
62513
|
-
|
|
62514
|
-
|
|
62515
|
-
|
|
62516
|
-
|
|
62517
|
-
|
|
62518
|
-
|
|
62519
|
-
|
|
62520
|
-
|
|
62521
|
-
|
|
62522
|
-
|
|
62623
|
+
const _a = this.props,
|
|
62624
|
+
{
|
|
62625
|
+
children: originChildren,
|
|
62626
|
+
mode,
|
|
62627
|
+
onOpenChange,
|
|
62628
|
+
onSelect,
|
|
62629
|
+
onClick,
|
|
62630
|
+
style,
|
|
62631
|
+
className,
|
|
62632
|
+
subNavCloseDelay,
|
|
62633
|
+
subNavOpenDelay,
|
|
62634
|
+
subNavMotion,
|
|
62635
|
+
tooltipShowDelay,
|
|
62636
|
+
tooltipHideDelay,
|
|
62637
|
+
prefixCls,
|
|
62638
|
+
bodyStyle,
|
|
62639
|
+
footer,
|
|
62640
|
+
header,
|
|
62641
|
+
toggleIconPosition,
|
|
62642
|
+
limitIndent,
|
|
62643
|
+
renderWrapper,
|
|
62644
|
+
getPopupContainer
|
|
62645
|
+
} = _a,
|
|
62646
|
+
rest = navigation_rest(_a, ["children", "mode", "onOpenChange", "onSelect", "onClick", "style", "className", "subNavCloseDelay", "subNavOpenDelay", "subNavMotion", "tooltipShowDelay", "tooltipHideDelay", "prefixCls", "bodyStyle", "footer", "header", "toggleIconPosition", "limitIndent", "renderWrapper", "getPopupContainer"]);
|
|
62523
62647
|
const {
|
|
62524
62648
|
selectedKeys,
|
|
62525
62649
|
openKeys,
|
|
@@ -62619,10 +62743,10 @@ class Nav extends BaseComponent {
|
|
|
62619
62743
|
renderWrapper,
|
|
62620
62744
|
getPopupContainer
|
|
62621
62745
|
}
|
|
62622
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62746
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
62623
62747
|
className: finalCls,
|
|
62624
62748
|
style: finalStyle
|
|
62625
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62749
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62626
62750
|
className: `${prefixCls}-inner`
|
|
62627
62751
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62628
62752
|
className: headerListOuterCls
|
|
@@ -67868,6 +67992,14 @@ var select_select = __webpack_require__("mSc3");
|
|
|
67868
67992
|
|
|
67869
67993
|
|
|
67870
67994
|
|
|
67995
|
+
var select_rest = undefined && undefined.__rest || function (s, e) {
|
|
67996
|
+
var t = {};
|
|
67997
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
67998
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67999
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
68000
|
+
}
|
|
68001
|
+
return t;
|
|
68002
|
+
};
|
|
67871
68003
|
/* eslint-disable max-len */
|
|
67872
68004
|
/* eslint-disable max-lines-per-function */
|
|
67873
68005
|
|
|
@@ -68885,25 +69017,27 @@ class Select extends BaseComponent {
|
|
|
68885
69017
|
}, labelNode);
|
|
68886
69018
|
}
|
|
68887
69019
|
renderSelection() {
|
|
68888
|
-
const
|
|
68889
|
-
|
|
68890
|
-
|
|
68891
|
-
|
|
68892
|
-
|
|
68893
|
-
|
|
68894
|
-
|
|
68895
|
-
|
|
68896
|
-
|
|
68897
|
-
|
|
68898
|
-
|
|
68899
|
-
|
|
68900
|
-
|
|
68901
|
-
|
|
68902
|
-
|
|
68903
|
-
|
|
68904
|
-
|
|
68905
|
-
|
|
68906
|
-
|
|
69020
|
+
const _a = this.props,
|
|
69021
|
+
{
|
|
69022
|
+
disabled,
|
|
69023
|
+
multiple,
|
|
69024
|
+
filter,
|
|
69025
|
+
style,
|
|
69026
|
+
id,
|
|
69027
|
+
size,
|
|
69028
|
+
className,
|
|
69029
|
+
validateStatus,
|
|
69030
|
+
showArrow,
|
|
69031
|
+
suffix,
|
|
69032
|
+
prefix,
|
|
69033
|
+
insetLabel,
|
|
69034
|
+
placeholder,
|
|
69035
|
+
triggerRender,
|
|
69036
|
+
arrowIcon,
|
|
69037
|
+
clearIcon,
|
|
69038
|
+
borderless
|
|
69039
|
+
} = _a,
|
|
69040
|
+
rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
|
|
68907
69041
|
const {
|
|
68908
69042
|
selections,
|
|
68909
69043
|
isOpen,
|
|
@@ -69003,7 +69137,7 @@ class Select extends BaseComponent {
|
|
|
69003
69137
|
onFocus: e => this.foundation.handleTriggerFocus(e),
|
|
69004
69138
|
onBlur: e => this.foundation.handleTriggerBlur(e),
|
|
69005
69139
|
onKeyPress: this.onKeyPress
|
|
69006
|
-
}, keyboardEventSet), inner)
|
|
69140
|
+
}, keyboardEventSet, this.getDataAttr(rest)), inner)
|
|
69007
69141
|
);
|
|
69008
69142
|
}
|
|
69009
69143
|
render() {
|
|
@@ -69194,6 +69328,14 @@ Select.defaultProps = {
|
|
|
69194
69328
|
/* harmony default export */ const select_0 = (Select);
|
|
69195
69329
|
;// CONCATENATED MODULE: ./pagination/index.tsx
|
|
69196
69330
|
|
|
69331
|
+
var pagination_rest = undefined && undefined.__rest || function (s, e) {
|
|
69332
|
+
var t = {};
|
|
69333
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
69334
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69335
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
69336
|
+
}
|
|
69337
|
+
return t;
|
|
69338
|
+
};
|
|
69197
69339
|
/* eslint-disable max-len */
|
|
69198
69340
|
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
|
|
69199
69341
|
|
|
@@ -69318,21 +69460,23 @@ class Pagination extends BaseComponent {
|
|
|
69318
69460
|
}
|
|
69319
69461
|
renderPrevBtn() {
|
|
69320
69462
|
const {
|
|
69321
|
-
prevText
|
|
69463
|
+
prevText,
|
|
69464
|
+
disabled
|
|
69322
69465
|
} = this.props;
|
|
69323
69466
|
const {
|
|
69324
69467
|
prevDisabled
|
|
69325
69468
|
} = this.state;
|
|
69469
|
+
const isDisabled = prevDisabled || disabled;
|
|
69326
69470
|
const preClassName = classnames_default()({
|
|
69327
69471
|
[`${pagination_prefixCls}-item`]: true,
|
|
69328
69472
|
[`${pagination_prefixCls}-prev`]: true,
|
|
69329
|
-
[`${pagination_prefixCls}-item-disabled`]:
|
|
69473
|
+
[`${pagination_prefixCls}-item-disabled`]: isDisabled
|
|
69330
69474
|
});
|
|
69331
69475
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69332
69476
|
role: "button",
|
|
69333
|
-
"aria-disabled":
|
|
69477
|
+
"aria-disabled": isDisabled ? true : false,
|
|
69334
69478
|
"aria-label": "Previous",
|
|
69335
|
-
onClick: e => !
|
|
69479
|
+
onClick: e => !isDisabled && this.foundation.goPrev(e),
|
|
69336
69480
|
className: preClassName,
|
|
69337
69481
|
"x-semi-prop": "prevText"
|
|
69338
69482
|
}, prevText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronLeft, {
|
|
@@ -69341,21 +69485,23 @@ class Pagination extends BaseComponent {
|
|
|
69341
69485
|
}
|
|
69342
69486
|
renderNextBtn() {
|
|
69343
69487
|
const {
|
|
69344
|
-
nextText
|
|
69488
|
+
nextText,
|
|
69489
|
+
disabled
|
|
69345
69490
|
} = this.props;
|
|
69346
69491
|
const {
|
|
69347
69492
|
nextDisabled
|
|
69348
69493
|
} = this.state;
|
|
69494
|
+
const isDisabled = nextDisabled || disabled;
|
|
69349
69495
|
const nextClassName = classnames_default()({
|
|
69350
69496
|
[`${pagination_prefixCls}-item`]: true,
|
|
69351
|
-
[`${pagination_prefixCls}-item-disabled`]:
|
|
69497
|
+
[`${pagination_prefixCls}-item-disabled`]: isDisabled,
|
|
69352
69498
|
[`${pagination_prefixCls}-next`]: true
|
|
69353
69499
|
});
|
|
69354
69500
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69355
69501
|
role: "button",
|
|
69356
|
-
"aria-disabled":
|
|
69502
|
+
"aria-disabled": isDisabled ? true : false,
|
|
69357
69503
|
"aria-label": "Next",
|
|
69358
|
-
onClick: e => !
|
|
69504
|
+
onClick: e => !isDisabled && this.foundation.goNext(e),
|
|
69359
69505
|
className: nextClassName,
|
|
69360
69506
|
"x-semi-prop": "prevText"
|
|
69361
69507
|
}, nextText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronRight, {
|
|
@@ -69370,7 +69516,8 @@ class Pagination extends BaseComponent {
|
|
|
69370
69516
|
const defaultPopoverPosition = direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
69371
69517
|
const {
|
|
69372
69518
|
showSizeChanger,
|
|
69373
|
-
popoverPosition = defaultPopoverPosition
|
|
69519
|
+
popoverPosition = defaultPopoverPosition,
|
|
69520
|
+
disabled
|
|
69374
69521
|
} = this.props;
|
|
69375
69522
|
const {
|
|
69376
69523
|
pageSize
|
|
@@ -69390,6 +69537,7 @@ class Pagination extends BaseComponent {
|
|
|
69390
69537
|
className: switchCls
|
|
69391
69538
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(select_0, {
|
|
69392
69539
|
"aria-label": "Page size selector",
|
|
69540
|
+
disabled: disabled,
|
|
69393
69541
|
onChange: newPageSize => this.foundation.changePageSize(newPageSize),
|
|
69394
69542
|
value: pageSize,
|
|
69395
69543
|
key: pageSize,
|
|
@@ -69400,7 +69548,8 @@ class Pagination extends BaseComponent {
|
|
|
69400
69548
|
}
|
|
69401
69549
|
renderQuickJump(locale) {
|
|
69402
69550
|
const {
|
|
69403
|
-
showQuickJumper
|
|
69551
|
+
showQuickJumper,
|
|
69552
|
+
disabled
|
|
69404
69553
|
} = this.props;
|
|
69405
69554
|
const {
|
|
69406
69555
|
quickJumpPage,
|
|
@@ -69411,7 +69560,7 @@ class Pagination extends BaseComponent {
|
|
|
69411
69560
|
return null;
|
|
69412
69561
|
}
|
|
69413
69562
|
const totalPageNum = this.foundation._getTotalPageNumber(total, pageSize);
|
|
69414
|
-
const isDisabled = totalPageNum === 1;
|
|
69563
|
+
const isDisabled = totalPageNum === 1 || disabled;
|
|
69415
69564
|
const quickJumpCls = classnames_default()({
|
|
69416
69565
|
[`${pagination_prefixCls}-quickjump`]: true,
|
|
69417
69566
|
[`${pagination_prefixCls}-quickjump-disabled`]: isDisabled
|
|
@@ -69437,22 +69586,25 @@ class Pagination extends BaseComponent {
|
|
|
69437
69586
|
} = this.state;
|
|
69438
69587
|
const {
|
|
69439
69588
|
popoverPosition,
|
|
69440
|
-
popoverZIndex
|
|
69589
|
+
popoverZIndex,
|
|
69590
|
+
disabled
|
|
69441
69591
|
} = this.props;
|
|
69442
69592
|
return pageList.map((page, i) => {
|
|
69443
69593
|
const pageListClassName = classnames_default()(`${pagination_prefixCls}-item`, {
|
|
69444
|
-
[`${pagination_prefixCls}-item-active`]: currentPage === page
|
|
69594
|
+
[`${pagination_prefixCls}-item-active`]: currentPage === page,
|
|
69595
|
+
[`${pagination_prefixCls}-item-all-disabled`]: disabled,
|
|
69596
|
+
[`${pagination_prefixCls}-item-all-disabled-active`]: currentPage === page && disabled
|
|
69445
69597
|
// [`${prefixCls}-item-rest-opening`]: (i < 3 && isLeftRestHover && page ==='...') || (i > 3 && isRightRestHover && page === '...')
|
|
69446
69598
|
});
|
|
69447
69599
|
|
|
69448
69600
|
const pageEl = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69449
69601
|
key: `${page}${i}`,
|
|
69450
|
-
onClick: () => this.foundation.goPage(page, i),
|
|
69602
|
+
onClick: () => !disabled && this.foundation.goPage(page, i),
|
|
69451
69603
|
className: pageListClassName,
|
|
69452
69604
|
"aria-label": page === '...' ? 'More' : `Page ${page}`,
|
|
69453
69605
|
"aria-current": currentPage === page ? "page" : false
|
|
69454
69606
|
}, page);
|
|
69455
|
-
if (page === '...') {
|
|
69607
|
+
if (page === '...' && !disabled) {
|
|
69456
69608
|
let content;
|
|
69457
69609
|
i < 3 ? content = restLeftPageList : content = restRightPageList;
|
|
69458
69610
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
@@ -69508,14 +69660,19 @@ class Pagination extends BaseComponent {
|
|
|
69508
69660
|
);
|
|
69509
69661
|
}
|
|
69510
69662
|
renderSmallPage(locale) {
|
|
69511
|
-
const
|
|
69512
|
-
|
|
69513
|
-
|
|
69514
|
-
|
|
69515
|
-
|
|
69516
|
-
|
|
69517
|
-
|
|
69518
|
-
|
|
69663
|
+
const _a = this.props,
|
|
69664
|
+
{
|
|
69665
|
+
className,
|
|
69666
|
+
style,
|
|
69667
|
+
hideOnSinglePage,
|
|
69668
|
+
hoverShowPageSelect,
|
|
69669
|
+
showSizeChanger,
|
|
69670
|
+
disabled
|
|
69671
|
+
} = _a,
|
|
69672
|
+
rest = pagination_rest(_a, ["className", "style", "hideOnSinglePage", "hoverShowPageSelect", "showSizeChanger", "disabled"]);
|
|
69673
|
+
const paginationCls = classnames_default()(`${pagination_prefixCls}-small`, pagination_prefixCls, className, {
|
|
69674
|
+
[`${pagination_prefixCls}-disabled`]: disabled
|
|
69675
|
+
});
|
|
69519
69676
|
const {
|
|
69520
69677
|
currentPage,
|
|
69521
69678
|
total,
|
|
@@ -69529,13 +69686,18 @@ class Pagination extends BaseComponent {
|
|
|
69529
69686
|
length: Math.ceil(total / pageSize)
|
|
69530
69687
|
}, (v, i) => i + 1);
|
|
69531
69688
|
const pageList = this.renderRestPageList(pageNumbers);
|
|
69689
|
+
const pageCls = classnames_default()({
|
|
69690
|
+
[`${pagination_prefixCls}-item`]: true,
|
|
69691
|
+
[`${pagination_prefixCls}-item-small`]: true,
|
|
69692
|
+
[`${pagination_prefixCls}-item-all-disabled`]: disabled
|
|
69693
|
+
});
|
|
69532
69694
|
const page = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
69533
|
-
className:
|
|
69695
|
+
className: pageCls
|
|
69534
69696
|
}, currentPage, "/", totalPageNum, " ");
|
|
69535
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
69697
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
69536
69698
|
className: paginationCls,
|
|
69537
69699
|
style: style
|
|
69538
|
-
}, this.renderPrevBtn(), hoverShowPageSelect ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
69700
|
+
}, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
69539
69701
|
content: pageList
|
|
69540
69702
|
}, page) : page, this.renderNextBtn(), this.renderQuickJump(locale));
|
|
69541
69703
|
}
|
|
@@ -69544,14 +69706,19 @@ class Pagination extends BaseComponent {
|
|
|
69544
69706
|
total,
|
|
69545
69707
|
pageSize
|
|
69546
69708
|
} = this.state;
|
|
69547
|
-
const
|
|
69548
|
-
|
|
69549
|
-
|
|
69550
|
-
|
|
69551
|
-
|
|
69552
|
-
|
|
69553
|
-
|
|
69554
|
-
|
|
69709
|
+
const _a = this.props,
|
|
69710
|
+
{
|
|
69711
|
+
showTotal,
|
|
69712
|
+
className,
|
|
69713
|
+
style,
|
|
69714
|
+
hideOnSinglePage,
|
|
69715
|
+
showSizeChanger,
|
|
69716
|
+
disabled
|
|
69717
|
+
} = _a,
|
|
69718
|
+
rest = pagination_rest(_a, ["showTotal", "className", "style", "hideOnSinglePage", "showSizeChanger", "disabled"]);
|
|
69719
|
+
const paginationCls = classnames_default()(className, `${pagination_prefixCls}`, {
|
|
69720
|
+
[`${pagination_prefixCls}-disabled`]: disabled
|
|
69721
|
+
});
|
|
69555
69722
|
const showTotalCls = `${pagination_prefixCls}-total`;
|
|
69556
69723
|
const totalPageNum = Math.ceil(total / pageSize);
|
|
69557
69724
|
if (totalPageNum < 2 && hideOnSinglePage && !showSizeChanger) {
|
|
@@ -69559,10 +69726,10 @@ class Pagination extends BaseComponent {
|
|
|
69559
69726
|
}
|
|
69560
69727
|
const totalNum = Math.ceil(total / pageSize);
|
|
69561
69728
|
const totalToken = locale.total.replace('${total}', totalNum.toString());
|
|
69562
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
69729
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
69563
69730
|
className: paginationCls,
|
|
69564
69731
|
style: style
|
|
69565
|
-
}, showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
69732
|
+
}, this.getDataAttr(rest)), showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
69566
69733
|
className: showTotalCls
|
|
69567
69734
|
}, totalToken) : null, this.renderPrevBtn(), this.renderPageList(), this.renderNextBtn(), this.renderPageSizeSwitch(locale), this.renderQuickJump(locale));
|
|
69568
69735
|
}
|
|
@@ -69596,7 +69763,8 @@ Pagination.propTypes = {
|
|
|
69596
69763
|
className: (prop_types_default()).string,
|
|
69597
69764
|
hideOnSinglePage: (prop_types_default()).bool,
|
|
69598
69765
|
hoverShowPageSelect: (prop_types_default()).bool,
|
|
69599
|
-
showQuickJumper: (prop_types_default()).bool
|
|
69766
|
+
showQuickJumper: (prop_types_default()).bool,
|
|
69767
|
+
disabled: (prop_types_default()).bool
|
|
69600
69768
|
};
|
|
69601
69769
|
Pagination.defaultProps = {
|
|
69602
69770
|
total: 1,
|
|
@@ -69612,7 +69780,8 @@ Pagination.defaultProps = {
|
|
|
69612
69780
|
showSizeChanger: false,
|
|
69613
69781
|
className: '',
|
|
69614
69782
|
hideOnSinglePage: false,
|
|
69615
|
-
showQuickJumper: false
|
|
69783
|
+
showQuickJumper: false,
|
|
69784
|
+
disabled: false
|
|
69616
69785
|
};
|
|
69617
69786
|
;// CONCATENATED MODULE: ../semi-foundation/popconfirm/constants.ts
|
|
69618
69787
|
|
|
@@ -70185,6 +70354,15 @@ const SEMI_DESIGN_TOKENS = {
|
|
|
70185
70354
|
};
|
|
70186
70355
|
|
|
70187
70356
|
;// CONCATENATED MODULE: ./progress/index.tsx
|
|
70357
|
+
var progress_rest = undefined && undefined.__rest || function (s, e) {
|
|
70358
|
+
var t = {};
|
|
70359
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
70360
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70361
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
70362
|
+
}
|
|
70363
|
+
return t;
|
|
70364
|
+
};
|
|
70365
|
+
|
|
70188
70366
|
|
|
70189
70367
|
|
|
70190
70368
|
|
|
@@ -70259,20 +70437,22 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70259
70437
|
this._mounted = false;
|
|
70260
70438
|
}
|
|
70261
70439
|
renderCircleProgress() {
|
|
70262
|
-
const
|
|
70263
|
-
|
|
70264
|
-
|
|
70265
|
-
|
|
70266
|
-
|
|
70267
|
-
|
|
70268
|
-
|
|
70269
|
-
|
|
70270
|
-
|
|
70271
|
-
|
|
70272
|
-
|
|
70273
|
-
|
|
70274
|
-
|
|
70275
|
-
|
|
70440
|
+
const _a = this.props,
|
|
70441
|
+
{
|
|
70442
|
+
strokeLinecap,
|
|
70443
|
+
style,
|
|
70444
|
+
className,
|
|
70445
|
+
strokeWidth,
|
|
70446
|
+
format,
|
|
70447
|
+
size,
|
|
70448
|
+
stroke,
|
|
70449
|
+
strokeGradient,
|
|
70450
|
+
showInfo,
|
|
70451
|
+
percent,
|
|
70452
|
+
orbitStroke,
|
|
70453
|
+
id
|
|
70454
|
+
} = _a,
|
|
70455
|
+
rest = progress_rest(_a, ["strokeLinecap", "style", "className", "strokeWidth", "format", "size", "stroke", "strokeGradient", "showInfo", "percent", "orbitStroke", "id"]);
|
|
70276
70456
|
const ariaLabel = this.props['aria-label'];
|
|
70277
70457
|
const ariaLabelledBy = this.props['aria-labelledby'];
|
|
70278
70458
|
const ariaValueText = this.props['aria-valuetext'];
|
|
@@ -70302,7 +70482,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70302
70482
|
const strokeDashoffset = (1 - perc / 100) * circumference; // Offset
|
|
70303
70483
|
const strokeDasharray = `${circumference} ${circumference}`;
|
|
70304
70484
|
const text = format(percNumber);
|
|
70305
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70485
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
70306
70486
|
id: id,
|
|
70307
70487
|
className: classNames.wrapper,
|
|
70308
70488
|
style: style,
|
|
@@ -70313,7 +70493,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70313
70493
|
"aria-labelledby": ariaLabelledBy,
|
|
70314
70494
|
"aria-label": ariaLabel,
|
|
70315
70495
|
"aria-valuetext": ariaValueText
|
|
70316
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
70496
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
70317
70497
|
key: size,
|
|
70318
70498
|
className: classNames.svg,
|
|
70319
70499
|
height: width,
|
|
@@ -70368,19 +70548,21 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70368
70548
|
return progress_constants_strings.STROKE_DEFAULT;
|
|
70369
70549
|
}
|
|
70370
70550
|
renderLineProgress() {
|
|
70371
|
-
const
|
|
70372
|
-
|
|
70373
|
-
|
|
70374
|
-
|
|
70375
|
-
|
|
70376
|
-
|
|
70377
|
-
|
|
70378
|
-
|
|
70379
|
-
|
|
70380
|
-
|
|
70381
|
-
|
|
70382
|
-
|
|
70383
|
-
|
|
70551
|
+
const _a = this.props,
|
|
70552
|
+
{
|
|
70553
|
+
className,
|
|
70554
|
+
style,
|
|
70555
|
+
stroke,
|
|
70556
|
+
strokeGradient,
|
|
70557
|
+
direction,
|
|
70558
|
+
format,
|
|
70559
|
+
showInfo,
|
|
70560
|
+
size,
|
|
70561
|
+
percent,
|
|
70562
|
+
orbitStroke,
|
|
70563
|
+
id
|
|
70564
|
+
} = _a,
|
|
70565
|
+
rest = progress_rest(_a, ["className", "style", "stroke", "strokeGradient", "direction", "format", "showInfo", "size", "percent", "orbitStroke", "id"]);
|
|
70384
70566
|
const ariaLabel = this.props['aria-label'];
|
|
70385
70567
|
const ariaLabelledBy = this.props['aria-labelledby'];
|
|
70386
70568
|
const ariaValueText = this.props['aria-valuetext'];
|
|
@@ -70409,7 +70591,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70409
70591
|
innerStyle.height = `${perc}%`;
|
|
70410
70592
|
}
|
|
70411
70593
|
const text = format(percNumber);
|
|
70412
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70594
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
70413
70595
|
id: id,
|
|
70414
70596
|
className: progressWrapperCls,
|
|
70415
70597
|
style: style,
|
|
@@ -70420,7 +70602,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70420
70602
|
"aria-labelledby": ariaLabelledBy,
|
|
70421
70603
|
"aria-label": ariaLabel,
|
|
70422
70604
|
"aria-valuetext": ariaValueText
|
|
70423
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70605
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70424
70606
|
className: progressTrackCls,
|
|
70425
70607
|
style: orbitStroke ? {
|
|
70426
70608
|
backgroundColor: orbitStroke
|
|
@@ -70802,6 +70984,14 @@ RadioInner.defaultProps = {
|
|
|
70802
70984
|
|
|
70803
70985
|
|
|
70804
70986
|
|
|
70987
|
+
var radio_rest = undefined && undefined.__rest || function (s, e) {
|
|
70988
|
+
var t = {};
|
|
70989
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
70990
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70991
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
70992
|
+
}
|
|
70993
|
+
return t;
|
|
70994
|
+
};
|
|
70805
70995
|
/* eslint-disable prefer-destructuring */
|
|
70806
70996
|
|
|
70807
70997
|
|
|
@@ -70905,21 +71095,23 @@ class Radio extends BaseComponent {
|
|
|
70905
71095
|
this.radioEntity.blur();
|
|
70906
71096
|
}
|
|
70907
71097
|
render() {
|
|
70908
|
-
const
|
|
70909
|
-
|
|
70910
|
-
|
|
70911
|
-
|
|
70912
|
-
|
|
70913
|
-
|
|
70914
|
-
|
|
70915
|
-
|
|
70916
|
-
|
|
70917
|
-
|
|
70918
|
-
|
|
70919
|
-
|
|
70920
|
-
|
|
70921
|
-
|
|
70922
|
-
|
|
71098
|
+
const _a = this.props,
|
|
71099
|
+
{
|
|
71100
|
+
addonClassName,
|
|
71101
|
+
addonStyle,
|
|
71102
|
+
disabled,
|
|
71103
|
+
style,
|
|
71104
|
+
className,
|
|
71105
|
+
prefixCls,
|
|
71106
|
+
displayMode,
|
|
71107
|
+
children,
|
|
71108
|
+
extra,
|
|
71109
|
+
mode,
|
|
71110
|
+
type,
|
|
71111
|
+
value: propValue,
|
|
71112
|
+
name
|
|
71113
|
+
} = _a,
|
|
71114
|
+
rest = radio_rest(_a, ["addonClassName", "addonStyle", "disabled", "style", "className", "prefixCls", "displayMode", "children", "extra", "mode", "type", "value", "name"]);
|
|
70923
71115
|
let realChecked, isDisabled, realMode, isButtonRadioGroup, isCardRadioGroup, isPureCardRadioGroup, isButtonRadioComponent, buttonSize, realPrefixCls;
|
|
70924
71116
|
const {
|
|
70925
71117
|
hover: isHover,
|
|
@@ -71000,12 +71192,12 @@ class Radio extends BaseComponent {
|
|
|
71000
71192
|
"x-semi-prop": "extra"
|
|
71001
71193
|
}, extra) : null);
|
|
71002
71194
|
};
|
|
71003
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", {
|
|
71195
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", Object.assign({
|
|
71004
71196
|
style: style,
|
|
71005
71197
|
className: wrapper,
|
|
71006
71198
|
onMouseEnter: this.handleMouseEnter,
|
|
71007
71199
|
onMouseLeave: this.handleMouseLeave
|
|
71008
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radioInner, Object.assign({}, this.props, props, {
|
|
71200
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radioInner, Object.assign({}, this.props, props, {
|
|
71009
71201
|
mode: realMode,
|
|
71010
71202
|
name: name !== null && name !== void 0 ? name : groupName,
|
|
71011
71203
|
isButtonRadio: isButtonRadio,
|
|
@@ -71058,6 +71250,14 @@ Radio.elementType = 'Radio';
|
|
|
71058
71250
|
/* harmony default export */ const radio_radio_0 = (Radio);
|
|
71059
71251
|
;// CONCATENATED MODULE: ./radio/radioGroup.tsx
|
|
71060
71252
|
|
|
71253
|
+
var radioGroup_rest = undefined && undefined.__rest || function (s, e) {
|
|
71254
|
+
var t = {};
|
|
71255
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
71256
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
71257
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
71258
|
+
}
|
|
71259
|
+
return t;
|
|
71260
|
+
};
|
|
71061
71261
|
|
|
71062
71262
|
|
|
71063
71263
|
|
|
@@ -71109,18 +71309,20 @@ class RadioGroup extends BaseComponent {
|
|
|
71109
71309
|
});
|
|
71110
71310
|
}
|
|
71111
71311
|
render() {
|
|
71112
|
-
const
|
|
71113
|
-
|
|
71114
|
-
|
|
71115
|
-
|
|
71116
|
-
|
|
71117
|
-
|
|
71118
|
-
|
|
71119
|
-
|
|
71120
|
-
|
|
71121
|
-
|
|
71122
|
-
|
|
71123
|
-
|
|
71312
|
+
const _a = this.props,
|
|
71313
|
+
{
|
|
71314
|
+
children,
|
|
71315
|
+
options,
|
|
71316
|
+
mode,
|
|
71317
|
+
prefixCls,
|
|
71318
|
+
className,
|
|
71319
|
+
style,
|
|
71320
|
+
direction,
|
|
71321
|
+
type,
|
|
71322
|
+
buttonSize,
|
|
71323
|
+
id
|
|
71324
|
+
} = _a,
|
|
71325
|
+
rest = radioGroup_rest(_a, ["children", "options", "mode", "prefixCls", "className", "style", "direction", "type", "buttonSize", "id"]);
|
|
71124
71326
|
const isButtonRadio = type === radio_constants_strings.TYPE_BUTTON;
|
|
71125
71327
|
const isPureCardRadio = type === radio_constants_strings.TYPE_PURECARD;
|
|
71126
71328
|
const isCardRadio = type === radio_constants_strings.TYPE_CARD || isPureCardRadio;
|
|
@@ -71160,7 +71362,7 @@ class RadioGroup extends BaseComponent {
|
|
|
71160
71362
|
key: index
|
|
71161
71363
|
}) : null);
|
|
71162
71364
|
}
|
|
71163
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
71365
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
71164
71366
|
className: prefixClsDisplay,
|
|
71165
71367
|
style: style,
|
|
71166
71368
|
id: id,
|
|
@@ -71170,7 +71372,7 @@ class RadioGroup extends BaseComponent {
|
|
|
71170
71372
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
71171
71373
|
"aria-describedby": this.props['aria-describedby'],
|
|
71172
71374
|
"aria-required": this.props['aria-required']
|
|
71173
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radio_context.Provider, {
|
|
71375
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radio_context.Provider, {
|
|
71174
71376
|
value: {
|
|
71175
71377
|
radioGroup: {
|
|
71176
71378
|
onChange: this.onChange,
|
|
@@ -71675,6 +71877,14 @@ rating_item_Item.propTypes = {
|
|
|
71675
71877
|
preventScroll: (prop_types_default()).bool
|
|
71676
71878
|
};
|
|
71677
71879
|
;// CONCATENATED MODULE: ./rating/index.tsx
|
|
71880
|
+
var rating_rest = undefined && undefined.__rest || function (s, e) {
|
|
71881
|
+
var t = {};
|
|
71882
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
71883
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
71884
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
71885
|
+
}
|
|
71886
|
+
return t;
|
|
71887
|
+
};
|
|
71678
71888
|
|
|
71679
71889
|
|
|
71680
71890
|
|
|
@@ -71911,15 +72121,17 @@ class Rating extends BaseComponent {
|
|
|
71911
72121
|
this.foundation.destroy();
|
|
71912
72122
|
}
|
|
71913
72123
|
render() {
|
|
71914
|
-
const
|
|
71915
|
-
|
|
71916
|
-
|
|
71917
|
-
|
|
71918
|
-
|
|
71919
|
-
|
|
71920
|
-
|
|
71921
|
-
|
|
71922
|
-
|
|
72124
|
+
const _a = this.props,
|
|
72125
|
+
{
|
|
72126
|
+
style,
|
|
72127
|
+
prefixCls,
|
|
72128
|
+
disabled,
|
|
72129
|
+
className,
|
|
72130
|
+
id,
|
|
72131
|
+
count,
|
|
72132
|
+
tabIndex
|
|
72133
|
+
} = _a,
|
|
72134
|
+
rest = rating_rest(_a, ["style", "prefixCls", "disabled", "className", "id", "count", "tabIndex"]);
|
|
71923
72135
|
const {
|
|
71924
72136
|
value,
|
|
71925
72137
|
emptyStarFocusVisible
|
|
@@ -71934,7 +72146,7 @@ class Rating extends BaseComponent {
|
|
|
71934
72146
|
return (
|
|
71935
72147
|
/*#__PURE__*/
|
|
71936
72148
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
71937
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
72149
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
71938
72150
|
"aria-label": ariaLabel,
|
|
71939
72151
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
71940
72152
|
"aria-describedby": this.props['aria-describedby'],
|
|
@@ -71947,7 +72159,7 @@ class Rating extends BaseComponent {
|
|
|
71947
72159
|
onKeyDown: disabled ? function_noop : this.onKeyDown,
|
|
71948
72160
|
ref: this.saveRate,
|
|
71949
72161
|
id: id
|
|
71950
|
-
}, itemList)
|
|
72162
|
+
}, this.getDataAttr(rest)), itemList)
|
|
71951
72163
|
);
|
|
71952
72164
|
}
|
|
71953
72165
|
}
|
|
@@ -72026,6 +72238,7 @@ var SideSheetContent_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
72026
72238
|
|
|
72027
72239
|
|
|
72028
72240
|
|
|
72241
|
+
|
|
72029
72242
|
let SideSheetContent_uuid = 0;
|
|
72030
72243
|
const SideSheetContent_prefixCls = sideSheet_constants_cssClasses.PREFIX;
|
|
72031
72244
|
class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
|
|
@@ -72133,11 +72346,29 @@ class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_rea
|
|
|
72133
72346
|
return dialogElement;
|
|
72134
72347
|
}
|
|
72135
72348
|
render() {
|
|
72136
|
-
const
|
|
72137
|
-
|
|
72138
|
-
|
|
72139
|
-
|
|
72140
|
-
|
|
72349
|
+
const _a = this.props,
|
|
72350
|
+
{
|
|
72351
|
+
mask,
|
|
72352
|
+
className,
|
|
72353
|
+
width,
|
|
72354
|
+
onClose,
|
|
72355
|
+
maskStyle,
|
|
72356
|
+
maskClosable,
|
|
72357
|
+
maskClassName,
|
|
72358
|
+
title,
|
|
72359
|
+
closable,
|
|
72360
|
+
headerStyle,
|
|
72361
|
+
height,
|
|
72362
|
+
style,
|
|
72363
|
+
size,
|
|
72364
|
+
bodyStyle,
|
|
72365
|
+
dialogClassName,
|
|
72366
|
+
children,
|
|
72367
|
+
footer,
|
|
72368
|
+
maskExtraProps,
|
|
72369
|
+
wrapperExtraProps
|
|
72370
|
+
} = _a,
|
|
72371
|
+
rest = SideSheetContent_rest(_a, ["mask", "className", "width", "onClose", "maskStyle", "maskClosable", "maskClassName", "title", "closable", "headerStyle", "height", "style", "size", "bodyStyle", "dialogClassName", "children", "footer", "maskExtraProps", "wrapperExtraProps"]);
|
|
72141
72372
|
const wrapperCls = classnames_default()(className, {
|
|
72142
72373
|
[`${SideSheetContent_prefixCls}-fixed`]: !mask,
|
|
72143
72374
|
[`${SideSheetContent_prefixCls}-size-${this.props.size}`]: !mask
|
|
@@ -72146,10 +72377,11 @@ class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_rea
|
|
|
72146
72377
|
if (!mask && width) {
|
|
72147
72378
|
wrapperStyle.width = width;
|
|
72148
72379
|
}
|
|
72149
|
-
|
|
72380
|
+
const dataAttr = getDataAttr(rest);
|
|
72381
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
72150
72382
|
className: wrapperCls,
|
|
72151
72383
|
style: wrapperStyle
|
|
72152
|
-
}, this.getMaskElement(), this.getDialogElement());
|
|
72384
|
+
}, dataAttr), this.getMaskElement(), this.getDialogElement());
|
|
72153
72385
|
}
|
|
72154
72386
|
}
|
|
72155
72387
|
SideSheetContent.propTypes = {
|
|
@@ -73273,6 +73505,14 @@ var slider = __webpack_require__("1MNb");
|
|
|
73273
73505
|
;// CONCATENATED MODULE: ./slider/index.tsx
|
|
73274
73506
|
|
|
73275
73507
|
|
|
73508
|
+
var slider_rest = undefined && undefined.__rest || function (s, e) {
|
|
73509
|
+
var t = {};
|
|
73510
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
73511
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
73512
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
73513
|
+
}
|
|
73514
|
+
return t;
|
|
73515
|
+
};
|
|
73276
73516
|
/* eslint-disable max-lines-per-function */
|
|
73277
73517
|
/* eslint-disable react/no-find-dom-node */
|
|
73278
73518
|
|
|
@@ -73811,14 +74051,16 @@ class Slider extends BaseComponent {
|
|
|
73811
74051
|
min,
|
|
73812
74052
|
max
|
|
73813
74053
|
} = this.state;
|
|
73814
|
-
const
|
|
73815
|
-
|
|
73816
|
-
|
|
73817
|
-
|
|
73818
|
-
|
|
73819
|
-
|
|
73820
|
-
|
|
73821
|
-
|
|
74054
|
+
const _a = this.props,
|
|
74055
|
+
{
|
|
74056
|
+
vertical,
|
|
74057
|
+
verticalReverse,
|
|
74058
|
+
style,
|
|
74059
|
+
railStyle,
|
|
74060
|
+
range,
|
|
74061
|
+
className
|
|
74062
|
+
} = _a,
|
|
74063
|
+
rest = slider_rest(_a, ["vertical", "verticalReverse", "style", "railStyle", "range", "className"]);
|
|
73822
74064
|
const wrapperClass = classnames_default()(`${slider_prefixCls}-wrapper`, {
|
|
73823
74065
|
[`${slider_prefixCls}-disabled`]: disabled,
|
|
73824
74066
|
[`${slider_constants_cssClasses.VERTICAL}-wrapper`]: vertical,
|
|
@@ -73832,14 +74074,14 @@ class Slider extends BaseComponent {
|
|
|
73832
74074
|
[slider_constants_cssClasses.VERTICAL]: vertical
|
|
73833
74075
|
});
|
|
73834
74076
|
const ariaLabel = range ? `Range: ${this._getAriaValueText(currentValue[0], 0)} to ${this._getAriaValueText(currentValue[1], 1)}` : undefined;
|
|
73835
|
-
const slider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74077
|
+
const slider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
73836
74078
|
className: wrapperClass,
|
|
73837
74079
|
style: style,
|
|
73838
74080
|
ref: this.sliderEl,
|
|
73839
74081
|
"aria-label": ariaLabel,
|
|
73840
74082
|
onMouseEnter: () => this.foundation.handleWrapperEnter(),
|
|
73841
74083
|
onMouseLeave: () => this.foundation.handleWrapperLeave()
|
|
73842
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74084
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
73843
74085
|
className: `${slider_prefixCls}-rail`,
|
|
73844
74086
|
onClick: this.foundation.handleWrapClick,
|
|
73845
74087
|
style: railStyle
|
|
@@ -74305,6 +74547,15 @@ const Step = props => {
|
|
|
74305
74547
|
// EXTERNAL MODULE: ../semi-foundation/steps/steps.scss
|
|
74306
74548
|
var steps = __webpack_require__("/wkG");
|
|
74307
74549
|
;// CONCATENATED MODULE: ./steps/fillSteps.tsx
|
|
74550
|
+
var fillSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74551
|
+
var t = {};
|
|
74552
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74553
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74554
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74555
|
+
}
|
|
74556
|
+
return t;
|
|
74557
|
+
};
|
|
74558
|
+
|
|
74308
74559
|
|
|
74309
74560
|
|
|
74310
74561
|
|
|
@@ -74312,16 +74563,17 @@ var steps = __webpack_require__("/wkG");
|
|
|
74312
74563
|
|
|
74313
74564
|
const Steps = props => {
|
|
74314
74565
|
const {
|
|
74315
|
-
|
|
74316
|
-
|
|
74317
|
-
|
|
74318
|
-
|
|
74319
|
-
|
|
74320
|
-
|
|
74321
|
-
|
|
74322
|
-
|
|
74323
|
-
|
|
74324
|
-
|
|
74566
|
+
current,
|
|
74567
|
+
status,
|
|
74568
|
+
children,
|
|
74569
|
+
prefixCls,
|
|
74570
|
+
initial,
|
|
74571
|
+
direction,
|
|
74572
|
+
className,
|
|
74573
|
+
style,
|
|
74574
|
+
onChange
|
|
74575
|
+
} = props,
|
|
74576
|
+
rest = fillSteps_rest(props, ["current", "status", "children", "prefixCls", "initial", "direction", "className", "style", "onChange"]);
|
|
74325
74577
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74326
74578
|
const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).filter(c => /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(c));
|
|
74327
74579
|
const colStyle = direction === 'vertical' ? null : {
|
|
@@ -74363,11 +74615,11 @@ const Steps = props => {
|
|
|
74363
74615
|
[prefixCls]: true,
|
|
74364
74616
|
[`${prefixCls}-${direction}`]: true
|
|
74365
74617
|
});
|
|
74366
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74618
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74367
74619
|
className: wrapperCls,
|
|
74368
74620
|
style: style,
|
|
74369
74621
|
"aria-label": props["aria-label"]
|
|
74370
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(row, {
|
|
74622
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(row, {
|
|
74371
74623
|
type: "flex",
|
|
74372
74624
|
justify: "start"
|
|
74373
74625
|
}, inner));
|
|
@@ -74390,24 +74642,34 @@ Steps.defaultProps = {
|
|
|
74390
74642
|
};
|
|
74391
74643
|
/* harmony default export */ const fillSteps = (Steps);
|
|
74392
74644
|
;// CONCATENATED MODULE: ./steps/basicSteps.tsx
|
|
74645
|
+
var basicSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74646
|
+
var t = {};
|
|
74647
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74648
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74649
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74650
|
+
}
|
|
74651
|
+
return t;
|
|
74652
|
+
};
|
|
74653
|
+
|
|
74393
74654
|
|
|
74394
74655
|
|
|
74395
74656
|
|
|
74396
74657
|
|
|
74397
74658
|
const basicSteps_Steps = props => {
|
|
74398
74659
|
const {
|
|
74399
|
-
|
|
74400
|
-
|
|
74401
|
-
|
|
74402
|
-
|
|
74403
|
-
|
|
74404
|
-
|
|
74405
|
-
|
|
74406
|
-
|
|
74407
|
-
|
|
74408
|
-
|
|
74409
|
-
|
|
74410
|
-
|
|
74660
|
+
size,
|
|
74661
|
+
current,
|
|
74662
|
+
status,
|
|
74663
|
+
children,
|
|
74664
|
+
prefixCls,
|
|
74665
|
+
initial,
|
|
74666
|
+
direction,
|
|
74667
|
+
className,
|
|
74668
|
+
style,
|
|
74669
|
+
hasLine,
|
|
74670
|
+
onChange
|
|
74671
|
+
} = props,
|
|
74672
|
+
rest = basicSteps_rest(props, ["size", "current", "status", "children", "prefixCls", "initial", "direction", "className", "style", "hasLine", "onChange"]);
|
|
74411
74673
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74412
74674
|
const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).filter(c => /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(c));
|
|
74413
74675
|
const content = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.map(filteredChildren, (child, index) => {
|
|
@@ -74448,11 +74710,11 @@ const basicSteps_Steps = props => {
|
|
|
74448
74710
|
[`${prefixCls}-${size}`]: size !== 'default',
|
|
74449
74711
|
[`${prefixCls}-hasline`]: hasLine
|
|
74450
74712
|
});
|
|
74451
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74713
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74452
74714
|
"aria-label": props["aria-label"],
|
|
74453
74715
|
className: wrapperCls,
|
|
74454
74716
|
style: style
|
|
74455
|
-
}, inner);
|
|
74717
|
+
}, getDataAttr(rest)), inner);
|
|
74456
74718
|
};
|
|
74457
74719
|
basicSteps_Steps.propTypes = {
|
|
74458
74720
|
prefixCls: (prop_types_default()).string,
|
|
@@ -74475,21 +74737,31 @@ basicSteps_Steps.defaultProps = {
|
|
|
74475
74737
|
};
|
|
74476
74738
|
/* harmony default export */ const basicSteps = (basicSteps_Steps);
|
|
74477
74739
|
;// CONCATENATED MODULE: ./steps/navSteps.tsx
|
|
74740
|
+
var navSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74741
|
+
var t = {};
|
|
74742
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74743
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74744
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74745
|
+
}
|
|
74746
|
+
return t;
|
|
74747
|
+
};
|
|
74748
|
+
|
|
74478
74749
|
|
|
74479
74750
|
|
|
74480
74751
|
|
|
74481
74752
|
|
|
74482
74753
|
const navSteps_Steps = props => {
|
|
74483
74754
|
const {
|
|
74484
|
-
|
|
74485
|
-
|
|
74486
|
-
|
|
74487
|
-
|
|
74488
|
-
|
|
74489
|
-
|
|
74490
|
-
|
|
74491
|
-
|
|
74492
|
-
|
|
74755
|
+
size,
|
|
74756
|
+
current,
|
|
74757
|
+
initial,
|
|
74758
|
+
children,
|
|
74759
|
+
prefixCls,
|
|
74760
|
+
className,
|
|
74761
|
+
style,
|
|
74762
|
+
onChange
|
|
74763
|
+
} = props,
|
|
74764
|
+
rest = navSteps_rest(props, ["size", "current", "initial", "children", "prefixCls", "className", "style", "onChange"]);
|
|
74493
74765
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74494
74766
|
const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).filter(c => /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(c));
|
|
74495
74767
|
const total = filteredChildren.length;
|
|
@@ -74515,11 +74787,11 @@ const navSteps_Steps = props => {
|
|
|
74515
74787
|
[`${prefixCls}-nav`]: true,
|
|
74516
74788
|
[`${prefixCls}-${size}`]: size !== 'default'
|
|
74517
74789
|
});
|
|
74518
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74790
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74519
74791
|
"aria-label": props["aria-label"],
|
|
74520
74792
|
className: wrapperCls,
|
|
74521
74793
|
style: style
|
|
74522
|
-
}, inner);
|
|
74794
|
+
}, getDataAttr(rest)), inner);
|
|
74523
74795
|
};
|
|
74524
74796
|
navSteps_Steps.propTypes = {
|
|
74525
74797
|
prefixCls: (prop_types_default()).string,
|
|
@@ -74667,6 +74939,14 @@ const switch_constants_strings = {
|
|
|
74667
74939
|
var switch_switch = __webpack_require__("HuwZ");
|
|
74668
74940
|
;// CONCATENATED MODULE: ./switch/index.tsx
|
|
74669
74941
|
|
|
74942
|
+
var switch_rest = undefined && undefined.__rest || function (s, e) {
|
|
74943
|
+
var t = {};
|
|
74944
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74945
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74946
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74947
|
+
}
|
|
74948
|
+
return t;
|
|
74949
|
+
};
|
|
74670
74950
|
/* eslint-disable max-len */
|
|
74671
74951
|
|
|
74672
74952
|
|
|
@@ -74735,17 +75015,19 @@ class Switch extends BaseComponent {
|
|
|
74735
75015
|
nativeControlDisabled,
|
|
74736
75016
|
focusVisible
|
|
74737
75017
|
} = this.state;
|
|
74738
|
-
const
|
|
74739
|
-
|
|
74740
|
-
|
|
74741
|
-
|
|
74742
|
-
|
|
74743
|
-
|
|
74744
|
-
|
|
74745
|
-
|
|
74746
|
-
|
|
74747
|
-
|
|
74748
|
-
|
|
75018
|
+
const _a = this.props,
|
|
75019
|
+
{
|
|
75020
|
+
className,
|
|
75021
|
+
style,
|
|
75022
|
+
onMouseEnter,
|
|
75023
|
+
onMouseLeave,
|
|
75024
|
+
size,
|
|
75025
|
+
checkedText,
|
|
75026
|
+
uncheckedText,
|
|
75027
|
+
loading,
|
|
75028
|
+
id
|
|
75029
|
+
} = _a,
|
|
75030
|
+
rest = switch_rest(_a, ["className", "style", "onMouseEnter", "onMouseLeave", "size", "checkedText", "uncheckedText", "loading", "id"]);
|
|
74749
75031
|
const wrapperCls = classnames_default()(className, {
|
|
74750
75032
|
[switch_constants_cssClasses.PREFIX]: true,
|
|
74751
75033
|
[switch_constants_cssClasses.CHECKED]: nativeControlChecked,
|
|
@@ -74763,12 +75045,12 @@ class Switch extends BaseComponent {
|
|
|
74763
75045
|
};
|
|
74764
75046
|
const showCheckedText = checkedText && nativeControlChecked && size !== 'small';
|
|
74765
75047
|
const showUncheckedText = uncheckedText && !nativeControlChecked && size !== 'small';
|
|
74766
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
75048
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74767
75049
|
className: wrapperCls,
|
|
74768
75050
|
style: style,
|
|
74769
75051
|
onMouseEnter: onMouseEnter,
|
|
74770
75052
|
onMouseLeave: onMouseLeave
|
|
74771
|
-
}, loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
75053
|
+
}, this.getDataAttr(rest)), loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
74772
75054
|
wrapperClassName: switch_constants_cssClasses.LOADING_SPIN,
|
|
74773
75055
|
size: size === 'default' ? 'middle' : size
|
|
74774
75056
|
}) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
@@ -80862,13 +81144,14 @@ class Table extends BaseComponent {
|
|
|
80862
81144
|
getVirtualizedListRef,
|
|
80863
81145
|
setBodyHasScrollbar: this.setBodyHasScrollbar
|
|
80864
81146
|
});
|
|
80865
|
-
|
|
81147
|
+
const dataAttr = this.getDataAttr(rest);
|
|
81148
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
80866
81149
|
ref: this.rootWrapRef,
|
|
80867
81150
|
className: classnames_default()(className, `${prefixCls}-wrapper`, `${prefixCls}-wrapper-${props.direction}`),
|
|
80868
81151
|
"data-column-fixed": anyColumnFixed,
|
|
80869
81152
|
style: wrapStyle,
|
|
80870
81153
|
id: id
|
|
80871
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(table_TableContextProvider, Object.assign({}, tableContextValue, {
|
|
81154
|
+
}, dataAttr), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(table_TableContextProvider, Object.assign({}, tableContextValue, {
|
|
80872
81155
|
direction: props.direction
|
|
80873
81156
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
80874
81157
|
spinning: loading,
|
|
@@ -81917,7 +82200,6 @@ var tabs_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81917
82200
|
|
|
81918
82201
|
|
|
81919
82202
|
|
|
81920
|
-
|
|
81921
82203
|
const panePickKeys = ['className', 'style', 'disabled', 'itemKey', 'tab', 'icon'];
|
|
81922
82204
|
|
|
81923
82205
|
class Tabs extends BaseComponent {
|
|
@@ -82176,7 +82458,7 @@ class Tabs extends BaseComponent {
|
|
|
82176
82458
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
82177
82459
|
className: tabWrapperCls,
|
|
82178
82460
|
style: style
|
|
82179
|
-
}, getDataAttr(restProps)), tabBar, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(tabs_context.Provider, {
|
|
82461
|
+
}, this.getDataAttr(restProps)), tabBar, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(tabs_context.Provider, {
|
|
82180
82462
|
value: {
|
|
82181
82463
|
activeKey,
|
|
82182
82464
|
lazyRender,
|
|
@@ -82248,6 +82530,15 @@ const timeline_constants_strings = {
|
|
|
82248
82530
|
|
|
82249
82531
|
;// CONCATENATED MODULE: ./timeline/item.tsx
|
|
82250
82532
|
|
|
82533
|
+
var timeline_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
82534
|
+
var t = {};
|
|
82535
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
82536
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82537
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
82538
|
+
}
|
|
82539
|
+
return t;
|
|
82540
|
+
};
|
|
82541
|
+
|
|
82251
82542
|
|
|
82252
82543
|
|
|
82253
82544
|
|
|
@@ -82256,17 +82547,19 @@ const timeline_constants_strings = {
|
|
|
82256
82547
|
const timeline_item_prefixCls = timeline_constants_cssClasses.ITEM;
|
|
82257
82548
|
class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
82258
82549
|
render() {
|
|
82259
|
-
const
|
|
82260
|
-
|
|
82261
|
-
|
|
82262
|
-
|
|
82263
|
-
|
|
82264
|
-
|
|
82265
|
-
|
|
82266
|
-
|
|
82267
|
-
|
|
82268
|
-
|
|
82269
|
-
|
|
82550
|
+
const _a = this.props,
|
|
82551
|
+
{
|
|
82552
|
+
className,
|
|
82553
|
+
color,
|
|
82554
|
+
children,
|
|
82555
|
+
dot,
|
|
82556
|
+
type,
|
|
82557
|
+
style,
|
|
82558
|
+
time,
|
|
82559
|
+
extra,
|
|
82560
|
+
onClick
|
|
82561
|
+
} = _a,
|
|
82562
|
+
rest = timeline_item_rest(_a, ["className", "color", "children", "dot", "type", "style", "time", "extra", "onClick"]);
|
|
82270
82563
|
const itemCls = classnames_default()(timeline_item_prefixCls, className);
|
|
82271
82564
|
const dotCls = classnames_default()({
|
|
82272
82565
|
[`${timeline_item_prefixCls}-head`]: true,
|
|
@@ -82278,11 +82571,11 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
|
|
|
82278
82571
|
backgroundColor: color
|
|
82279
82572
|
}
|
|
82280
82573
|
} : null;
|
|
82281
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
82574
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", Object.assign({
|
|
82282
82575
|
className: itemCls,
|
|
82283
82576
|
style: style,
|
|
82284
82577
|
onClick: onClick
|
|
82285
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
82578
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
82286
82579
|
className: `${timeline_item_prefixCls}-tail`,
|
|
82287
82580
|
"aria-hidden": true
|
|
82288
82581
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
@@ -82314,6 +82607,15 @@ timeline_item_Item.defaultProps = {
|
|
|
82314
82607
|
onClick: (noop_default())
|
|
82315
82608
|
};
|
|
82316
82609
|
;// CONCATENATED MODULE: ./timeline/index.tsx
|
|
82610
|
+
var timeline_rest = undefined && undefined.__rest || function (s, e) {
|
|
82611
|
+
var t = {};
|
|
82612
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
82613
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82614
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
82615
|
+
}
|
|
82616
|
+
return t;
|
|
82617
|
+
};
|
|
82618
|
+
|
|
82317
82619
|
|
|
82318
82620
|
|
|
82319
82621
|
|
|
@@ -82360,13 +82662,15 @@ class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
82360
82662
|
});
|
|
82361
82663
|
}
|
|
82362
82664
|
render() {
|
|
82363
|
-
const
|
|
82364
|
-
|
|
82365
|
-
|
|
82366
|
-
|
|
82367
|
-
|
|
82368
|
-
|
|
82369
|
-
|
|
82665
|
+
const _a = this.props,
|
|
82666
|
+
{
|
|
82667
|
+
children,
|
|
82668
|
+
className,
|
|
82669
|
+
style,
|
|
82670
|
+
mode,
|
|
82671
|
+
dataSource
|
|
82672
|
+
} = _a,
|
|
82673
|
+
rest = timeline_rest(_a, ["children", "className", "style", "mode", "dataSource"]);
|
|
82370
82674
|
const classString = classnames_default()(timeline_prefixCls, className, {
|
|
82371
82675
|
[`${timeline_prefixCls}-${mode}`]: mode
|
|
82372
82676
|
});
|
|
@@ -82378,11 +82682,11 @@ class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
82378
82682
|
childrenList = this.addClassName(items);
|
|
82379
82683
|
}
|
|
82380
82684
|
const items = childrenList || this.addClassName(children);
|
|
82381
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
82685
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
82382
82686
|
"aria-label": this.props['aria-label'],
|
|
82383
82687
|
style: style,
|
|
82384
82688
|
className: classString
|
|
82385
|
-
}, items);
|
|
82689
|
+
}, getDataAttr(rest)), items);
|
|
82386
82690
|
}
|
|
82387
82691
|
}
|
|
82388
82692
|
Timeline.contextType = context;
|
|
@@ -85555,6 +85859,14 @@ var tree = __webpack_require__("TKyF");
|
|
|
85555
85859
|
|
|
85556
85860
|
|
|
85557
85861
|
|
|
85862
|
+
var tree_rest = undefined && undefined.__rest || function (s, e) {
|
|
85863
|
+
var t = {};
|
|
85864
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
85865
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
85866
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
85867
|
+
}
|
|
85868
|
+
return t;
|
|
85869
|
+
};
|
|
85558
85870
|
/* eslint-disable max-lines-per-function */
|
|
85559
85871
|
|
|
85560
85872
|
|
|
@@ -86117,26 +86429,28 @@ class Tree extends BaseComponent {
|
|
|
86117
86429
|
checkedKeys,
|
|
86118
86430
|
realCheckedKeys
|
|
86119
86431
|
} = this.state;
|
|
86120
|
-
const
|
|
86121
|
-
|
|
86122
|
-
|
|
86123
|
-
|
|
86124
|
-
|
|
86125
|
-
|
|
86126
|
-
|
|
86127
|
-
|
|
86128
|
-
|
|
86129
|
-
|
|
86130
|
-
|
|
86131
|
-
|
|
86132
|
-
|
|
86133
|
-
|
|
86134
|
-
|
|
86135
|
-
|
|
86136
|
-
|
|
86137
|
-
|
|
86138
|
-
|
|
86139
|
-
|
|
86432
|
+
const _a = this.props,
|
|
86433
|
+
{
|
|
86434
|
+
blockNode,
|
|
86435
|
+
className,
|
|
86436
|
+
style,
|
|
86437
|
+
filterTreeNode,
|
|
86438
|
+
disabled,
|
|
86439
|
+
icon,
|
|
86440
|
+
directory,
|
|
86441
|
+
multiple,
|
|
86442
|
+
showFilteredOnly,
|
|
86443
|
+
motion,
|
|
86444
|
+
expandAction,
|
|
86445
|
+
loadData,
|
|
86446
|
+
renderLabel,
|
|
86447
|
+
draggable,
|
|
86448
|
+
renderFullLabel,
|
|
86449
|
+
labelEllipsis,
|
|
86450
|
+
virtualize,
|
|
86451
|
+
checkRelation
|
|
86452
|
+
} = _a,
|
|
86453
|
+
rest = tree_rest(_a, ["blockNode", "className", "style", "filterTreeNode", "disabled", "icon", "directory", "multiple", "showFilteredOnly", "motion", "expandAction", "loadData", "renderLabel", "draggable", "renderFullLabel", "labelEllipsis", "virtualize", "checkRelation"]);
|
|
86140
86454
|
const wrapperCls = classnames_default()(`${tree_prefixcls}-wrapper`, className);
|
|
86141
86455
|
const listCls = classnames_default()(`${tree_prefixcls}-option-list`, {
|
|
86142
86456
|
[`${tree_prefixcls}-option-list-block`]: blockNode
|
|
@@ -86185,11 +86499,11 @@ class Tree extends BaseComponent {
|
|
|
86185
86499
|
dropPosition,
|
|
86186
86500
|
labelEllipsis: typeof labelEllipsis === 'undefined' ? virtualize : labelEllipsis
|
|
86187
86501
|
}
|
|
86188
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
86502
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86189
86503
|
"aria-label": this.props['aria-label'],
|
|
86190
86504
|
className: wrapperCls,
|
|
86191
86505
|
style: style
|
|
86192
|
-
}, filterTreeNode ? this.renderInput() : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86506
|
+
}, this.getDataAttr(rest)), filterTreeNode ? this.renderInput() : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86193
86507
|
className: listCls
|
|
86194
86508
|
}, ariaAttr), noData ? this.renderEmpty() : multiple ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(checkboxGroup, {
|
|
86195
86509
|
value: Array.from(checkRelation === 'related' ? checkedKeys : realCheckedKeys)
|
|
@@ -87079,6 +87393,14 @@ var treeSelect = __webpack_require__("ZrYm");
|
|
|
87079
87393
|
|
|
87080
87394
|
|
|
87081
87395
|
|
|
87396
|
+
var treeSelect_rest = undefined && undefined.__rest || function (s, e) {
|
|
87397
|
+
var t = {};
|
|
87398
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
87399
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
87400
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
87401
|
+
}
|
|
87402
|
+
return t;
|
|
87403
|
+
};
|
|
87082
87404
|
|
|
87083
87405
|
|
|
87084
87406
|
|
|
@@ -87404,24 +87726,26 @@ class TreeSelect extends BaseComponent {
|
|
|
87404
87726
|
return null;
|
|
87405
87727
|
};
|
|
87406
87728
|
this.renderSelection = () => {
|
|
87407
|
-
const
|
|
87408
|
-
|
|
87409
|
-
|
|
87410
|
-
|
|
87411
|
-
|
|
87412
|
-
|
|
87413
|
-
|
|
87414
|
-
|
|
87415
|
-
|
|
87416
|
-
|
|
87417
|
-
|
|
87418
|
-
|
|
87419
|
-
|
|
87420
|
-
|
|
87421
|
-
|
|
87422
|
-
|
|
87423
|
-
|
|
87424
|
-
|
|
87729
|
+
const _a = this.props,
|
|
87730
|
+
{
|
|
87731
|
+
disabled,
|
|
87732
|
+
multiple,
|
|
87733
|
+
filterTreeNode,
|
|
87734
|
+
validateStatus,
|
|
87735
|
+
prefix,
|
|
87736
|
+
suffix,
|
|
87737
|
+
style,
|
|
87738
|
+
size,
|
|
87739
|
+
insetLabel,
|
|
87740
|
+
className,
|
|
87741
|
+
placeholder,
|
|
87742
|
+
showClear,
|
|
87743
|
+
leafOnly,
|
|
87744
|
+
searchPosition,
|
|
87745
|
+
triggerRender,
|
|
87746
|
+
borderless
|
|
87747
|
+
} = _a,
|
|
87748
|
+
rest = treeSelect_rest(_a, ["disabled", "multiple", "filterTreeNode", "validateStatus", "prefix", "suffix", "style", "size", "insetLabel", "className", "placeholder", "showClear", "leafOnly", "searchPosition", "triggerRender", "borderless"]);
|
|
87425
87749
|
const {
|
|
87426
87750
|
inputValue,
|
|
87427
87751
|
selectedKeys,
|
|
@@ -87503,7 +87827,7 @@ class TreeSelect extends BaseComponent {
|
|
|
87503
87827
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
87504
87828
|
"aria-describedby": this.props['aria-describedby'],
|
|
87505
87829
|
"aria-required": this.props['aria-required']
|
|
87506
|
-
}, mouseEvent), inner);
|
|
87830
|
+
}, mouseEvent, this.getDataAttr(rest)), inner);
|
|
87507
87831
|
};
|
|
87508
87832
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87509
87833
|
this.renderTagItem = (key, idx) => {
|
|
@@ -87625,7 +87949,8 @@ class TreeSelect extends BaseComponent {
|
|
|
87625
87949
|
searchPosition,
|
|
87626
87950
|
searchAutoFocus,
|
|
87627
87951
|
multiple,
|
|
87628
|
-
disabled
|
|
87952
|
+
disabled,
|
|
87953
|
+
preventScroll
|
|
87629
87954
|
} = this.props;
|
|
87630
87955
|
const isDropdownPositionSearch = searchPosition === treeSelect_constants_strings.SEARCH_POSITION_DROPDOWN;
|
|
87631
87956
|
const inputcls = classnames_default()({
|
|
@@ -87638,6 +87963,7 @@ class TreeSelect extends BaseComponent {
|
|
|
87638
87963
|
const baseInputProps = {
|
|
87639
87964
|
value: inputValue,
|
|
87640
87965
|
className: inputcls,
|
|
87966
|
+
preventScroll,
|
|
87641
87967
|
onChange: value => this.search(value)
|
|
87642
87968
|
};
|
|
87643
87969
|
const inputDropdownProps = {
|
|
@@ -89012,6 +89338,7 @@ class UploadFoundation extends foundation {
|
|
|
89012
89338
|
newFileList[index].fileInstance = fileInstance;
|
|
89013
89339
|
newFileList[index].size = getFileSize(fileInstance.size);
|
|
89014
89340
|
newFileList[index].name = fileInstance.name;
|
|
89341
|
+
newFileList[index].url = this._createURL(fileInstance);
|
|
89015
89342
|
}
|
|
89016
89343
|
newFileList[index].shouldUpload = shouldUpload;
|
|
89017
89344
|
}
|
|
@@ -89840,6 +90167,14 @@ var upload = __webpack_require__("kbHv");
|
|
|
89840
90167
|
;// CONCATENATED MODULE: ./upload/index.tsx
|
|
89841
90168
|
|
|
89842
90169
|
|
|
90170
|
+
var upload_rest = undefined && undefined.__rest || function (s, e) {
|
|
90171
|
+
var t = {};
|
|
90172
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
90173
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
90174
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
90175
|
+
}
|
|
90176
|
+
return t;
|
|
90177
|
+
};
|
|
89843
90178
|
/* eslint-disable max-len */
|
|
89844
90179
|
|
|
89845
90180
|
|
|
@@ -90293,22 +90628,24 @@ class Upload extends BaseComponent {
|
|
|
90293
90628
|
this.foundation.destroy();
|
|
90294
90629
|
}
|
|
90295
90630
|
render() {
|
|
90296
|
-
const
|
|
90297
|
-
|
|
90298
|
-
|
|
90299
|
-
|
|
90300
|
-
|
|
90301
|
-
|
|
90302
|
-
|
|
90303
|
-
|
|
90304
|
-
|
|
90305
|
-
|
|
90306
|
-
|
|
90307
|
-
|
|
90308
|
-
|
|
90309
|
-
|
|
90310
|
-
|
|
90311
|
-
|
|
90631
|
+
const _a = this.props,
|
|
90632
|
+
{
|
|
90633
|
+
style,
|
|
90634
|
+
className,
|
|
90635
|
+
multiple,
|
|
90636
|
+
accept,
|
|
90637
|
+
disabled,
|
|
90638
|
+
children,
|
|
90639
|
+
capture,
|
|
90640
|
+
listType,
|
|
90641
|
+
prompt,
|
|
90642
|
+
promptPosition,
|
|
90643
|
+
draggable,
|
|
90644
|
+
validateMessage,
|
|
90645
|
+
validateStatus,
|
|
90646
|
+
directory
|
|
90647
|
+
} = _a,
|
|
90648
|
+
rest = upload_rest(_a, ["style", "className", "multiple", "accept", "disabled", "children", "capture", "listType", "prompt", "promptPosition", "draggable", "validateMessage", "validateStatus", "directory"]);
|
|
90312
90649
|
const uploadCls = classnames_default()(upload_prefixCls, {
|
|
90313
90650
|
[`${upload_prefixCls}-picture`]: listType === upload_constants_strings.FILE_LIST_PIC,
|
|
90314
90651
|
[`${upload_prefixCls}-disabled`]: disabled,
|
|
@@ -90325,11 +90662,11 @@ class Upload extends BaseComponent {
|
|
|
90325
90662
|
directory: 'directory',
|
|
90326
90663
|
webkitdirectory: 'webkitdirectory'
|
|
90327
90664
|
} : {};
|
|
90328
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
90665
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
90329
90666
|
className: uploadCls,
|
|
90330
90667
|
style: style,
|
|
90331
90668
|
"x-prompt-pos": promptPosition
|
|
90332
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", Object.assign({
|
|
90669
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", Object.assign({
|
|
90333
90670
|
key: this.state.inputKey,
|
|
90334
90671
|
capture: capture,
|
|
90335
90672
|
multiple: multiple,
|
|
@@ -90754,6 +91091,14 @@ var transfer = __webpack_require__("4XZ2");
|
|
|
90754
91091
|
|
|
90755
91092
|
|
|
90756
91093
|
|
|
91094
|
+
var transfer_rest = undefined && undefined.__rest || function (s, e) {
|
|
91095
|
+
var t = {};
|
|
91096
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
91097
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
91098
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
91099
|
+
}
|
|
91100
|
+
return t;
|
|
91101
|
+
};
|
|
90757
91102
|
|
|
90758
91103
|
|
|
90759
91104
|
|
|
@@ -91295,23 +91640,25 @@ class Transfer extends BaseComponent {
|
|
|
91295
91640
|
}, headerCom, content);
|
|
91296
91641
|
}
|
|
91297
91642
|
render() {
|
|
91298
|
-
const
|
|
91299
|
-
|
|
91300
|
-
|
|
91301
|
-
|
|
91302
|
-
|
|
91303
|
-
|
|
91304
|
-
|
|
91643
|
+
const _a = this.props,
|
|
91644
|
+
{
|
|
91645
|
+
className,
|
|
91646
|
+
style,
|
|
91647
|
+
disabled,
|
|
91648
|
+
renderSelectedPanel,
|
|
91649
|
+
renderSourcePanel
|
|
91650
|
+
} = _a,
|
|
91651
|
+
rest = transfer_rest(_a, ["className", "style", "disabled", "renderSelectedPanel", "renderSourcePanel"]);
|
|
91305
91652
|
const transferCls = classnames_default()(transfer_prefixCls, className, {
|
|
91306
91653
|
[`${transfer_prefixCls}-disabled`]: disabled,
|
|
91307
91654
|
[`${transfer_prefixCls}-custom-panel`]: renderSelectedPanel && renderSourcePanel
|
|
91308
91655
|
});
|
|
91309
91656
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
91310
91657
|
componentName: "Transfer"
|
|
91311
|
-
}, locale => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
91658
|
+
}, locale => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
91312
91659
|
className: transferCls,
|
|
91313
91660
|
style: style
|
|
91314
|
-
}, this.renderLeft(locale), this.renderRight(locale)));
|
|
91661
|
+
}, this.getDataAttr(rest)), this.renderLeft(locale), this.renderRight(locale)));
|
|
91315
91662
|
}
|
|
91316
91663
|
}
|
|
91317
91664
|
Transfer.propTypes = {
|