@douyinfe/semi-ui 2.36.0 → 2.37.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/semi.css +39 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +831 -501
- 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 +2 -1
- package/lib/cjs/input/index.js +4 -15
- 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 +29 -19
- 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 +2 -1
- package/lib/es/input/index.js +4 -15
- 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 +29 -19
- 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) {
|
|
@@ -27805,18 +27832,6 @@ class Input extends BaseComponent {
|
|
|
27805
27832
|
}, labelNode)
|
|
27806
27833
|
);
|
|
27807
27834
|
}
|
|
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
27835
|
renderSuffix(suffixAllowClear) {
|
|
27821
27836
|
const {
|
|
27822
27837
|
suffix,
|
|
@@ -27891,15 +27906,16 @@ class Input extends BaseComponent {
|
|
|
27891
27906
|
maxLength,
|
|
27892
27907
|
getValueLength,
|
|
27893
27908
|
preventScroll,
|
|
27894
|
-
borderless
|
|
27909
|
+
borderless,
|
|
27910
|
+
showClearIgnoreDisabled
|
|
27895
27911
|
} = _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"]);
|
|
27912
|
+
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
27913
|
const {
|
|
27898
27914
|
value,
|
|
27899
27915
|
isFocus,
|
|
27900
27916
|
minLength: stateMinLength
|
|
27901
27917
|
} = this.state;
|
|
27902
|
-
const suffixAllowClear = this.
|
|
27918
|
+
const suffixAllowClear = this.foundation.isAllowClear();
|
|
27903
27919
|
const suffixIsIcon = isSemiIcon(suffix);
|
|
27904
27920
|
const ref = this.getInputRef();
|
|
27905
27921
|
const wrapperPrefix = `${input_prefixCls}-wrapper`;
|
|
@@ -28439,7 +28455,7 @@ class AutoComplete extends BaseComponent {
|
|
|
28439
28455
|
selection
|
|
28440
28456
|
} = this.state;
|
|
28441
28457
|
const useCustomTrigger = typeof triggerRender === 'function';
|
|
28442
|
-
const outerProps = Object.assign(Object.assign({
|
|
28458
|
+
const outerProps = Object.assign(Object.assign(Object.assign({
|
|
28443
28459
|
style,
|
|
28444
28460
|
className: useCustomTrigger ? classnames_default()(className) : classnames_default()({
|
|
28445
28461
|
[autoComplete_prefixCls]: true,
|
|
@@ -28451,7 +28467,7 @@ class AutoComplete extends BaseComponent {
|
|
|
28451
28467
|
}, keyboardEventSet), {
|
|
28452
28468
|
// tooltip give tabindex 0 to children by default, autoComplete just need the input get focus, so outer div's tabindex set to -1
|
|
28453
28469
|
tabIndex: -1
|
|
28454
|
-
});
|
|
28470
|
+
}), this.getDataAttr(this.props));
|
|
28455
28471
|
const innerProps = {
|
|
28456
28472
|
disabled,
|
|
28457
28473
|
placeholder,
|
|
@@ -30356,11 +30372,11 @@ class Banner extends BaseComponent {
|
|
|
30356
30372
|
[`${banner_prefixCls}-in-container`]: !fullMode,
|
|
30357
30373
|
[`${banner_prefixCls}-bordered`]: !fullMode && bordered
|
|
30358
30374
|
});
|
|
30359
|
-
const banner = visible ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30375
|
+
const banner = visible ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
30360
30376
|
className: wrapper,
|
|
30361
30377
|
style: style,
|
|
30362
30378
|
role: "alert"
|
|
30363
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30379
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30364
30380
|
className: `${banner_prefixCls}-content-wrapper`
|
|
30365
30381
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
30366
30382
|
className: `${banner_prefixCls}-content`
|
|
@@ -30637,7 +30653,7 @@ class BreadcrumbItem extends BaseComponent {
|
|
|
30637
30653
|
|
|
30638
30654
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
|
|
30639
30655
|
className: wrapperCLs
|
|
30640
|
-
}, pageLabel), item, shouldRenderSeparator && separator);
|
|
30656
|
+
}, pageLabel, this.getDataAttr(this.props)), item, shouldRenderSeparator && separator);
|
|
30641
30657
|
}
|
|
30642
30658
|
}
|
|
30643
30659
|
BreadcrumbItem.isBreadcrumbItem = true;
|
|
@@ -30830,11 +30846,11 @@ class Breadcrumb extends BaseComponent {
|
|
|
30830
30846
|
compact,
|
|
30831
30847
|
separator
|
|
30832
30848
|
}
|
|
30833
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("nav", {
|
|
30849
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("nav", Object.assign({
|
|
30834
30850
|
"aria-label": this.props['aria-label'],
|
|
30835
30851
|
className: sizeCls,
|
|
30836
30852
|
style: style
|
|
30837
|
-
}, breadcrumbs));
|
|
30853
|
+
}, this.getDataAttr(this.props)), breadcrumbs));
|
|
30838
30854
|
}
|
|
30839
30855
|
}
|
|
30840
30856
|
Breadcrumb.contextType = bread_context;
|
|
@@ -35191,11 +35207,11 @@ class DayCalendar extends BaseComponent {
|
|
|
35191
35207
|
scrollHeight
|
|
35192
35208
|
} = this.state;
|
|
35193
35209
|
this.isWeekend = markWeekend && this.checkWeekend(displayValue);
|
|
35194
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35210
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35195
35211
|
className: dayCls,
|
|
35196
35212
|
style: dayStyle,
|
|
35197
35213
|
ref: this.dom
|
|
35198
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35214
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35199
35215
|
className: `${dayCalendar_prefixCls}-sticky-top`
|
|
35200
35216
|
}, header, this.renderAllDay(parsedEvents.allDay)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35201
35217
|
className: `${dayCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -35475,11 +35491,11 @@ class WeekCalendar extends BaseComponent {
|
|
|
35475
35491
|
}, style);
|
|
35476
35492
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
35477
35493
|
componentName: "Calendar"
|
|
35478
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35494
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35479
35495
|
className: weekCls,
|
|
35480
35496
|
style: weekStyle,
|
|
35481
35497
|
ref: this.dom
|
|
35482
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35498
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35483
35499
|
className: `${weekCalendar_prefixCls}-sticky-top`
|
|
35484
35500
|
}, header, this.renderHeader(dateFnsLocale), this.renderAllDay(locale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35485
35501
|
className: `${weekCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -35889,12 +35905,12 @@ class monthCalendar extends BaseComponent {
|
|
|
35889
35905
|
}, style);
|
|
35890
35906
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
35891
35907
|
componentName: "Calendar"
|
|
35892
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35908
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
35893
35909
|
role: "grid",
|
|
35894
35910
|
className: monthCls,
|
|
35895
35911
|
key: this.state.itemLimit,
|
|
35896
35912
|
style: monthStyle
|
|
35897
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35913
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
35898
35914
|
role: "presentation",
|
|
35899
35915
|
className: `${monthCalendar_prefixCls}-sticky-top`
|
|
35900
35916
|
}, header, this.renderHeader(dateFnsLocale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
@@ -36158,11 +36174,11 @@ class RangeCalendar extends BaseComponent {
|
|
|
36158
36174
|
}, style);
|
|
36159
36175
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
36160
36176
|
componentName: "Calendar"
|
|
36161
|
-
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36177
|
+
}, (locale, localeCode, dateFnsLocale) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
36162
36178
|
className: weekCls,
|
|
36163
36179
|
style: weekStyle,
|
|
36164
36180
|
ref: this.dom
|
|
36165
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36181
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36166
36182
|
className: `${rangeCalendar_prefixCls}-sticky-top`
|
|
36167
36183
|
}, header, this.renderHeader(dateFnsLocale), this.renderAllDay(locale)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
36168
36184
|
className: `${rangeCalendar_prefixCls}-scroll-wrapper`
|
|
@@ -36523,15 +36539,6 @@ const flatten = children => {
|
|
|
36523
36539
|
});
|
|
36524
36540
|
return res;
|
|
36525
36541
|
};
|
|
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
36542
|
;// CONCATENATED MODULE: ./space/index.tsx
|
|
36536
36543
|
|
|
36537
36544
|
|
|
@@ -37418,14 +37425,14 @@ class Carousel extends BaseComponent {
|
|
|
37418
37425
|
const carouselWrapperCls = classnames_default()(className, {
|
|
37419
37426
|
[carousel_constants_cssClasses.CAROUSEL]: true
|
|
37420
37427
|
});
|
|
37421
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37428
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
37422
37429
|
// role='listbox'
|
|
37423
37430
|
// tabIndex={0}
|
|
37424
37431
|
className: carouselWrapperCls,
|
|
37425
37432
|
style: style,
|
|
37426
37433
|
onMouseEnter: debounce_default()(this.handleMouseEnter, 400),
|
|
37427
37434
|
onMouseLeave: debounce_default()(this.handleMouseLeave, 400)
|
|
37428
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37435
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
37429
37436
|
className: classnames_default()([`${carousel_constants_cssClasses.CAROUSEL_CONTENT}-${animation}`], {
|
|
37430
37437
|
[`${carousel_constants_cssClasses.CAROUSEL_CONTENT}`]: true,
|
|
37431
37438
|
[`${carousel_constants_cssClasses.CAROUSEL_CONTENT}-reverse`]: slideDirection === 'left' ? isReverse : !isReverse
|
|
@@ -39544,7 +39551,7 @@ class Checkbox extends BaseComponent {
|
|
|
39544
39551
|
return (
|
|
39545
39552
|
/*#__PURE__*/
|
|
39546
39553
|
// 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", {
|
|
39554
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
|
|
39548
39555
|
role: role,
|
|
39549
39556
|
tabIndex: tabIndex,
|
|
39550
39557
|
style: style,
|
|
@@ -39555,7 +39562,7 @@ class Checkbox extends BaseComponent {
|
|
|
39555
39562
|
onClick: this.handleChange,
|
|
39556
39563
|
onKeyPress: this.handleEnterPress,
|
|
39557
39564
|
"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, {
|
|
39565
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(checkboxInner, Object.assign({}, this.props, props, {
|
|
39559
39566
|
addonId: children && addonId,
|
|
39560
39567
|
extraId: extra && extraId,
|
|
39561
39568
|
isPureCardType: props.isPureCardType,
|
|
@@ -39775,7 +39782,7 @@ class CheckboxGroup extends BaseComponent {
|
|
|
39775
39782
|
role: 'listitem'
|
|
39776
39783
|
}));
|
|
39777
39784
|
}
|
|
39778
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
39785
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
39779
39786
|
id: id,
|
|
39780
39787
|
role: "list",
|
|
39781
39788
|
"aria-label": this.props['aria-label'],
|
|
@@ -39783,7 +39790,7 @@ class CheckboxGroup extends BaseComponent {
|
|
|
39783
39790
|
style: style,
|
|
39784
39791
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
39785
39792
|
"aria-describedby": this.props['aria-describedby']
|
|
39786
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Context.Provider, {
|
|
39793
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Context.Provider, {
|
|
39787
39794
|
value: {
|
|
39788
39795
|
checkboxGroup: {
|
|
39789
39796
|
onChange: this.onChange,
|
|
@@ -42547,6 +42554,14 @@ function sortableElement(WrappedComponent) {
|
|
|
42547
42554
|
|
|
42548
42555
|
|
|
42549
42556
|
|
|
42557
|
+
var tagInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
42558
|
+
var t = {};
|
|
42559
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
42560
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42561
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
42562
|
+
}
|
|
42563
|
+
return t;
|
|
42564
|
+
};
|
|
42550
42565
|
|
|
42551
42566
|
|
|
42552
42567
|
|
|
@@ -42967,14 +42982,16 @@ class TagInput extends BaseComponent {
|
|
|
42967
42982
|
}
|
|
42968
42983
|
}
|
|
42969
42984
|
render() {
|
|
42970
|
-
const
|
|
42971
|
-
|
|
42972
|
-
|
|
42973
|
-
|
|
42974
|
-
|
|
42975
|
-
|
|
42976
|
-
|
|
42977
|
-
|
|
42985
|
+
const _a = this.props,
|
|
42986
|
+
{
|
|
42987
|
+
size,
|
|
42988
|
+
style,
|
|
42989
|
+
className,
|
|
42990
|
+
disabled,
|
|
42991
|
+
placeholder,
|
|
42992
|
+
validateStatus
|
|
42993
|
+
} = _a,
|
|
42994
|
+
rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus"]);
|
|
42978
42995
|
const {
|
|
42979
42996
|
focusing,
|
|
42980
42997
|
hovering,
|
|
@@ -42996,7 +43013,7 @@ class TagInput extends BaseComponent {
|
|
|
42996
43013
|
return (
|
|
42997
43014
|
/*#__PURE__*/
|
|
42998
43015
|
// eslint-disable-next-line
|
|
42999
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43016
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
43000
43017
|
ref: this.tagInputRef,
|
|
43001
43018
|
style: style,
|
|
43002
43019
|
className: tagInputCls,
|
|
@@ -43012,7 +43029,7 @@ class TagInput extends BaseComponent {
|
|
|
43012
43029
|
onClick: e => {
|
|
43013
43030
|
this.handleClick(e);
|
|
43014
43031
|
}
|
|
43015
|
-
}, this.renderPrefix(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43032
|
+
}, this.getDataAttr(rest)), this.renderPrefix(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
43016
43033
|
className: wrapperCls
|
|
43017
43034
|
}, this.renderTags(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(input_0, {
|
|
43018
43035
|
"aria-label": 'input value',
|
|
@@ -43567,7 +43584,7 @@ class Cascader extends BaseComponent {
|
|
|
43567
43584
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
43568
43585
|
role: "combobox",
|
|
43569
43586
|
tabIndex: 0
|
|
43570
|
-
}), inner);
|
|
43587
|
+
}, this.getDataAttr(this.props)), inner);
|
|
43571
43588
|
};
|
|
43572
43589
|
this.state = {
|
|
43573
43590
|
disabledKeys: new Set(),
|
|
@@ -44305,7 +44322,7 @@ class Collapsible extends BaseComponent {
|
|
|
44305
44322
|
const wrapperCls = classnames_default()(`${collapsible_constants_cssClasses.PREFIX}-wrapper`, {
|
|
44306
44323
|
[`${collapsible_constants_cssClasses.PREFIX}-transition`]: this.props.motion && this.state.isTransitioning
|
|
44307
44324
|
}, this.props.className);
|
|
44308
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44325
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
44309
44326
|
className: wrapperCls,
|
|
44310
44327
|
style: wrapperStyle,
|
|
44311
44328
|
onTransitionEnd: () => {
|
|
@@ -44316,7 +44333,7 @@ class Collapsible extends BaseComponent {
|
|
|
44316
44333
|
this.foundation.updateIsTransitioning(false);
|
|
44317
44334
|
(_b = (_a = this.props).onMotionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
44318
44335
|
}
|
|
44319
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44336
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44320
44337
|
"x-semi-prop": "children",
|
|
44321
44338
|
ref: this.domRef,
|
|
44322
44339
|
style: {
|
|
@@ -44585,10 +44602,10 @@ class Collapse extends BaseComponent {
|
|
|
44585
44602
|
const {
|
|
44586
44603
|
activeSet
|
|
44587
44604
|
} = this.state;
|
|
44588
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
44605
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
44589
44606
|
className: clsPrefix,
|
|
44590
44607
|
style: style
|
|
44591
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(collapse_context.Provider, {
|
|
44608
|
+
}, this.getDataAttr(this.props)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(collapse_context.Provider, {
|
|
44592
44609
|
value: {
|
|
44593
44610
|
activeSet,
|
|
44594
44611
|
expandIcon,
|
|
@@ -49038,9 +49055,11 @@ class DatePickerFoundation extends foundation {
|
|
|
49038
49055
|
const inputValue = '';
|
|
49039
49056
|
if (!this._isControlledComponent('value')) {
|
|
49040
49057
|
this._updateValueAndInput(value, true, inputValue);
|
|
49058
|
+
this._adapter.updateInsetInputValue(null);
|
|
49041
49059
|
this.resetCachedSelectedValue(value);
|
|
49042
49060
|
}
|
|
49043
49061
|
this._notifyChange(value);
|
|
49062
|
+
this._adapter.setRangeInputFocus(false);
|
|
49044
49063
|
this._adapter.notifyClear(e);
|
|
49045
49064
|
}
|
|
49046
49065
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -50169,6 +50188,7 @@ class inputFoundation_InputFoundation extends foundation {
|
|
|
50169
50188
|
case 'dateTime':
|
|
50170
50189
|
case 'dateTimeRange':
|
|
50171
50190
|
[datePlaceholder, timePlaceholder] = insetInputFormat.split(' ');
|
|
50191
|
+
break;
|
|
50172
50192
|
case 'monthRange':
|
|
50173
50193
|
datePlaceholder = insetInputFormat + rangeSeparator + insetInputFormat;
|
|
50174
50194
|
break;
|
|
@@ -50476,15 +50496,17 @@ class DateInput extends BaseComponent {
|
|
|
50476
50496
|
showClear,
|
|
50477
50497
|
prefixCls,
|
|
50478
50498
|
disabled,
|
|
50479
|
-
clearIcon
|
|
50499
|
+
clearIcon,
|
|
50500
|
+
showClearIgnoreDisabled
|
|
50480
50501
|
} = this.props;
|
|
50481
|
-
const
|
|
50482
|
-
|
|
50502
|
+
const isRealDisabled = disabled && !showClearIgnoreDisabled;
|
|
50503
|
+
const allowClear = (rangeStart || rangeEnd) && showClear && !isRealDisabled;
|
|
50504
|
+
return allowClear ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
50483
50505
|
role: "button",
|
|
50484
50506
|
tabIndex: 0,
|
|
50485
50507
|
"aria-label": "Clear range input value",
|
|
50486
50508
|
className: `${prefixCls}-range-input-clearbtn`,
|
|
50487
|
-
onMouseDown: e =>
|
|
50509
|
+
onMouseDown: e => this.handleRangeInputClear(e)
|
|
50488
50510
|
}, clearIcon ? clearIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconClear, {
|
|
50489
50511
|
"aria-hidden": true
|
|
50490
50512
|
})) : null;
|
|
@@ -50682,9 +50704,10 @@ class DateInput extends BaseComponent {
|
|
|
50682
50704
|
rangeSeparator,
|
|
50683
50705
|
insetInput,
|
|
50684
50706
|
insetInputValue,
|
|
50685
|
-
defaultPickerValue
|
|
50707
|
+
defaultPickerValue,
|
|
50708
|
+
showClearIgnoreDisabled
|
|
50686
50709
|
} = _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"]);
|
|
50710
|
+
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
50711
|
const dateIcon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconCalendar, {
|
|
50689
50712
|
"aria-hidden": true
|
|
50690
50713
|
});
|
|
@@ -50711,6 +50734,7 @@ class DateInput extends BaseComponent {
|
|
|
50711
50734
|
ref: inputRef,
|
|
50712
50735
|
insetLabel: insetLabel,
|
|
50713
50736
|
disabled: disabled,
|
|
50737
|
+
showClearIgnoreDisabled: showClearIgnoreDisabled,
|
|
50714
50738
|
readonly: inputReadOnly,
|
|
50715
50739
|
className: inputCls,
|
|
50716
50740
|
style: inputStyle,
|
|
@@ -53602,6 +53626,14 @@ class ScrollListFoundation extends foundation {}
|
|
|
53602
53626
|
// EXTERNAL MODULE: ../semi-foundation/scrollList/scrollList.scss
|
|
53603
53627
|
var scrollList = __webpack_require__("AadH");
|
|
53604
53628
|
;// CONCATENATED MODULE: ./scrollList/index.tsx
|
|
53629
|
+
var scrollList_rest = undefined && undefined.__rest || function (s, e) {
|
|
53630
|
+
var t = {};
|
|
53631
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
53632
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53633
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
53634
|
+
}
|
|
53635
|
+
return t;
|
|
53636
|
+
};
|
|
53605
53637
|
|
|
53606
53638
|
|
|
53607
53639
|
|
|
@@ -53617,25 +53649,27 @@ class ScrollList extends BaseComponent {
|
|
|
53617
53649
|
this.foundation = new ScrollListFoundation(this.adapter);
|
|
53618
53650
|
}
|
|
53619
53651
|
render() {
|
|
53620
|
-
const
|
|
53621
|
-
|
|
53622
|
-
|
|
53623
|
-
|
|
53624
|
-
|
|
53625
|
-
|
|
53626
|
-
|
|
53627
|
-
|
|
53628
|
-
|
|
53652
|
+
const _a = this.props,
|
|
53653
|
+
{
|
|
53654
|
+
children,
|
|
53655
|
+
header,
|
|
53656
|
+
footer,
|
|
53657
|
+
prefixCls,
|
|
53658
|
+
bodyHeight,
|
|
53659
|
+
className,
|
|
53660
|
+
style
|
|
53661
|
+
} = _a,
|
|
53662
|
+
rest = scrollList_rest(_a, ["children", "header", "footer", "prefixCls", "bodyHeight", "className", "style"]);
|
|
53629
53663
|
const clsWrapper = classnames_default()(className, {
|
|
53630
53664
|
[prefixCls || scrollList_constants_cssClasses.PREFIX]: true
|
|
53631
53665
|
});
|
|
53632
53666
|
const clsHeader = classnames_default()({
|
|
53633
53667
|
[`${prefixCls || scrollList_constants_cssClasses.PREFIX}-header`]: true
|
|
53634
53668
|
});
|
|
53635
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53669
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
53636
53670
|
className: clsWrapper,
|
|
53637
53671
|
style: style
|
|
53638
|
-
}, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53672
|
+
}, this.getDataAttr(rest)), header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53639
53673
|
className: clsHeader
|
|
53640
53674
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
53641
53675
|
className: `${clsHeader}-title`,
|
|
@@ -55159,7 +55193,8 @@ class QuickControl extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
55159
55193
|
onPresetClick,
|
|
55160
55194
|
type,
|
|
55161
55195
|
presetPosition,
|
|
55162
|
-
insetInput
|
|
55196
|
+
insetInput,
|
|
55197
|
+
locale
|
|
55163
55198
|
} = this.props;
|
|
55164
55199
|
const isTypeRange = type === 'dateRange' || type === 'dateTimeRange';
|
|
55165
55200
|
const isPanelTopAndBottom = presetPosition === 'top' || presetPosition === 'bottom';
|
|
@@ -55199,7 +55234,7 @@ class QuickControl extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
55199
55234
|
"x-insetinput": insetInput ? "true" : "false"
|
|
55200
55235
|
}, !isPanelTopAndBottom && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55201
55236
|
className: headerCls
|
|
55202
|
-
},
|
|
55237
|
+
}, locale.presets), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55203
55238
|
className: contentWrapperCls
|
|
55204
55239
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
55205
55240
|
className: contentCls
|
|
@@ -55226,7 +55261,8 @@ QuickControl.propTypes = {
|
|
|
55226
55261
|
presetPosition: prop_types_default().oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
|
|
55227
55262
|
onPresetClick: (prop_types_default()).func,
|
|
55228
55263
|
type: (prop_types_default()).string,
|
|
55229
|
-
insetInput: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).object])
|
|
55264
|
+
insetInput: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).object]),
|
|
55265
|
+
locale: (prop_types_default()).object
|
|
55230
55266
|
};
|
|
55231
55267
|
QuickControl.defaultProps = {
|
|
55232
55268
|
presets: [],
|
|
@@ -55268,6 +55304,14 @@ var datePicker = __webpack_require__("jUTk");
|
|
|
55268
55304
|
|
|
55269
55305
|
|
|
55270
55306
|
|
|
55307
|
+
var datePicker_rest = undefined && undefined.__rest || function (s, e) {
|
|
55308
|
+
var t = {};
|
|
55309
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
55310
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55311
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
55312
|
+
}
|
|
55313
|
+
return t;
|
|
55314
|
+
};
|
|
55271
55315
|
/* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/interactive-supports-focus */
|
|
55272
55316
|
/* eslint-disable max-len */
|
|
55273
55317
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
@@ -55846,14 +55890,16 @@ class DatePicker extends BaseComponent {
|
|
|
55846
55890
|
presets,
|
|
55847
55891
|
type,
|
|
55848
55892
|
presetPosition,
|
|
55849
|
-
insetInput
|
|
55893
|
+
insetInput,
|
|
55894
|
+
locale
|
|
55850
55895
|
} = this.props;
|
|
55851
55896
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(quickControl, {
|
|
55852
55897
|
type: type,
|
|
55853
55898
|
presets: presets,
|
|
55854
55899
|
insetInput: insetInput,
|
|
55855
55900
|
presetPosition: presetPosition,
|
|
55856
|
-
onPresetClick: (item, e) => this.foundation.handlePresetClick(item, e)
|
|
55901
|
+
onPresetClick: (item, e) => this.foundation.handlePresetClick(item, e),
|
|
55902
|
+
locale: locale
|
|
55857
55903
|
});
|
|
55858
55904
|
}
|
|
55859
55905
|
renderDateInput() {
|
|
@@ -55933,6 +55979,7 @@ class DatePicker extends BaseComponent {
|
|
|
55933
55979
|
const phText = placeholder || locale.placeholder[type]; // i18n
|
|
55934
55980
|
// These values should be passed to triggerRender, do not delete any key if it is not necessary
|
|
55935
55981
|
const props = Object.assign(Object.assign({}, extraProps), {
|
|
55982
|
+
showClearIgnoreDisabled: Boolean(insetInput),
|
|
55936
55983
|
placeholder: phText,
|
|
55937
55984
|
clearIcon,
|
|
55938
55985
|
disabled: inputDisabled,
|
|
@@ -55984,13 +56031,15 @@ class DatePicker extends BaseComponent {
|
|
|
55984
56031
|
})) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(DateInput, Object.assign({}, props)));
|
|
55985
56032
|
}
|
|
55986
56033
|
render() {
|
|
55987
|
-
const
|
|
55988
|
-
|
|
55989
|
-
|
|
55990
|
-
|
|
55991
|
-
|
|
55992
|
-
|
|
55993
|
-
|
|
56034
|
+
const _a = this.props,
|
|
56035
|
+
{
|
|
56036
|
+
style,
|
|
56037
|
+
className,
|
|
56038
|
+
prefixCls,
|
|
56039
|
+
type
|
|
56040
|
+
} = _a,
|
|
56041
|
+
rest = datePicker_rest(_a, ["style", "className", "prefixCls", "type"]);
|
|
56042
|
+
const outerProps = Object.assign({
|
|
55994
56043
|
style,
|
|
55995
56044
|
className: classnames_default()(className, {
|
|
55996
56045
|
[prefixCls]: true
|
|
@@ -56001,7 +56050,7 @@ class DatePicker extends BaseComponent {
|
|
|
56001
56050
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
56002
56051
|
'aria-describedby': this.props['aria-describedby'],
|
|
56003
56052
|
'aria-required': this.props['aria-required']
|
|
56004
|
-
};
|
|
56053
|
+
}, this.getDataAttr(rest));
|
|
56005
56054
|
const innerPropKeys = [];
|
|
56006
56055
|
if (!type.toLowerCase().includes("range")) {
|
|
56007
56056
|
innerPropKeys.push("borderless");
|
|
@@ -56206,6 +56255,15 @@ var descriptions = __webpack_require__("3/Sr");
|
|
|
56206
56255
|
const DescriptionsContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null);
|
|
56207
56256
|
/* harmony default export */ const descriptions_context = (DescriptionsContext);
|
|
56208
56257
|
;// CONCATENATED MODULE: ./descriptions/item.tsx
|
|
56258
|
+
var descriptions_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
56259
|
+
var t = {};
|
|
56260
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56261
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56262
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56263
|
+
}
|
|
56264
|
+
return t;
|
|
56265
|
+
};
|
|
56266
|
+
|
|
56209
56267
|
|
|
56210
56268
|
|
|
56211
56269
|
|
|
@@ -56216,32 +56274,34 @@ const keyCls = `${item_prefixCls}-key`;
|
|
|
56216
56274
|
const valCls = `${item_prefixCls}-value`;
|
|
56217
56275
|
class item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
56218
56276
|
render() {
|
|
56219
|
-
const
|
|
56220
|
-
|
|
56221
|
-
|
|
56222
|
-
|
|
56223
|
-
|
|
56224
|
-
|
|
56225
|
-
|
|
56277
|
+
const _a = this.props,
|
|
56278
|
+
{
|
|
56279
|
+
itemKey,
|
|
56280
|
+
hidden,
|
|
56281
|
+
className,
|
|
56282
|
+
style,
|
|
56283
|
+
children
|
|
56284
|
+
} = _a,
|
|
56285
|
+
rest = descriptions_item_rest(_a, ["itemKey", "hidden", "className", "style", "children"]);
|
|
56226
56286
|
const {
|
|
56227
56287
|
align
|
|
56228
56288
|
} = this.context;
|
|
56229
56289
|
if (hidden) {
|
|
56230
56290
|
return null;
|
|
56231
56291
|
}
|
|
56232
|
-
const item = align === 'plain' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", {
|
|
56292
|
+
const item = align === 'plain' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", Object.assign({
|
|
56233
56293
|
className: className,
|
|
56234
56294
|
style: style
|
|
56235
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("td", {
|
|
56295
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("td", {
|
|
56236
56296
|
className: `${item_prefixCls}-item`
|
|
56237
56297
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56238
56298
|
className: keyCls
|
|
56239
56299
|
}, itemKey, ":"), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56240
56300
|
className: valCls
|
|
56241
|
-
}, typeof children === 'function' ? children() : children))) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", {
|
|
56301
|
+
}, typeof children === 'function' ? children() : children))) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("tr", Object.assign({
|
|
56242
56302
|
className: className,
|
|
56243
56303
|
style: style
|
|
56244
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("th", {
|
|
56304
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("th", {
|
|
56245
56305
|
className: `${item_prefixCls}-item ${item_prefixCls}-item-th`
|
|
56246
56306
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
56247
56307
|
className: keyCls
|
|
@@ -56262,6 +56322,15 @@ item_Item.propTypes = {
|
|
|
56262
56322
|
item_Item.contextType = descriptions_context;
|
|
56263
56323
|
;// CONCATENATED MODULE: ./descriptions/index.tsx
|
|
56264
56324
|
|
|
56325
|
+
var descriptions_rest = undefined && undefined.__rest || function (s, e) {
|
|
56326
|
+
var t = {};
|
|
56327
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56328
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56329
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56330
|
+
}
|
|
56331
|
+
return t;
|
|
56332
|
+
};
|
|
56333
|
+
|
|
56265
56334
|
|
|
56266
56335
|
|
|
56267
56336
|
|
|
@@ -56272,15 +56341,17 @@ item_Item.contextType = descriptions_context;
|
|
|
56272
56341
|
const descriptions_prefixCls = descriptions_constants_cssClasses.PREFIX;
|
|
56273
56342
|
class Descriptions extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
56274
56343
|
render() {
|
|
56275
|
-
const
|
|
56276
|
-
|
|
56277
|
-
|
|
56278
|
-
|
|
56279
|
-
|
|
56280
|
-
|
|
56281
|
-
|
|
56282
|
-
|
|
56283
|
-
|
|
56344
|
+
const _a = this.props,
|
|
56345
|
+
{
|
|
56346
|
+
align,
|
|
56347
|
+
row,
|
|
56348
|
+
size,
|
|
56349
|
+
className,
|
|
56350
|
+
style,
|
|
56351
|
+
children,
|
|
56352
|
+
data
|
|
56353
|
+
} = _a,
|
|
56354
|
+
rest = descriptions_rest(_a, ["align", "row", "size", "className", "style", "children", "data"]);
|
|
56284
56355
|
const classNames = classnames_default()(descriptions_prefixCls, className, {
|
|
56285
56356
|
[`${descriptions_prefixCls}-${align}`]: !row,
|
|
56286
56357
|
[`${descriptions_prefixCls}-double`]: row,
|
|
@@ -56291,10 +56362,10 @@ class Descriptions extends external_root_React_commonjs2_react_commonjs_react_am
|
|
|
56291
56362
|
}, item, {
|
|
56292
56363
|
key: index
|
|
56293
56364
|
}), item.value) : null) : children;
|
|
56294
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56365
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
56295
56366
|
className: classNames,
|
|
56296
56367
|
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, {
|
|
56368
|
+
}, 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
56369
|
value: {
|
|
56299
56370
|
align
|
|
56300
56371
|
}
|
|
@@ -56402,6 +56473,14 @@ const empty_constants_strings = {
|
|
|
56402
56473
|
// EXTERNAL MODULE: ../semi-foundation/empty/empty.scss
|
|
56403
56474
|
var empty_empty = __webpack_require__("vbeS");
|
|
56404
56475
|
;// CONCATENATED MODULE: ./empty/index.tsx
|
|
56476
|
+
var empty_rest = undefined && undefined.__rest || function (s, e) {
|
|
56477
|
+
var t = {};
|
|
56478
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
56479
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56480
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
56481
|
+
}
|
|
56482
|
+
return t;
|
|
56483
|
+
};
|
|
56405
56484
|
|
|
56406
56485
|
|
|
56407
56486
|
|
|
@@ -56448,17 +56527,19 @@ class Empty extends BaseComponent {
|
|
|
56448
56527
|
this.observer && this.observer.disconnect();
|
|
56449
56528
|
}
|
|
56450
56529
|
render() {
|
|
56451
|
-
const
|
|
56452
|
-
|
|
56453
|
-
|
|
56454
|
-
|
|
56455
|
-
|
|
56456
|
-
|
|
56457
|
-
|
|
56458
|
-
|
|
56459
|
-
|
|
56460
|
-
|
|
56461
|
-
|
|
56530
|
+
const _a = this.props,
|
|
56531
|
+
{
|
|
56532
|
+
className,
|
|
56533
|
+
image,
|
|
56534
|
+
description,
|
|
56535
|
+
style,
|
|
56536
|
+
title,
|
|
56537
|
+
imageStyle,
|
|
56538
|
+
children,
|
|
56539
|
+
layout,
|
|
56540
|
+
darkModeImage
|
|
56541
|
+
} = _a,
|
|
56542
|
+
rest = empty_rest(_a, ["className", "image", "description", "style", "title", "imageStyle", "children", "layout", "darkModeImage"]);
|
|
56462
56543
|
const alt = typeof description === 'string' ? description : 'empty';
|
|
56463
56544
|
const imgSrc = this.state.mode === 'dark' && darkModeImage ? darkModeImage : image;
|
|
56464
56545
|
let imageNode = null;
|
|
@@ -56487,10 +56568,10 @@ class Empty extends BaseComponent {
|
|
|
56487
56568
|
fontWeight: 400
|
|
56488
56569
|
}
|
|
56489
56570
|
};
|
|
56490
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56571
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
56491
56572
|
className: wrapperCls,
|
|
56492
56573
|
style: style
|
|
56493
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56574
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
56494
56575
|
className: `${empty_prefixCls}-image`,
|
|
56495
56576
|
style: imageStyle,
|
|
56496
56577
|
"x-semi-prop": "image,darkModeImage"
|
|
@@ -57059,13 +57140,15 @@ class ModalContent extends BaseComponent {
|
|
|
57059
57140
|
this.foundation.destroy();
|
|
57060
57141
|
}
|
|
57061
57142
|
render() {
|
|
57062
|
-
const
|
|
57063
|
-
|
|
57064
|
-
|
|
57065
|
-
|
|
57066
|
-
|
|
57067
|
-
|
|
57068
|
-
|
|
57143
|
+
const _a = this.props,
|
|
57144
|
+
{
|
|
57145
|
+
maskClosable,
|
|
57146
|
+
className,
|
|
57147
|
+
getPopupContainer,
|
|
57148
|
+
maskFixed,
|
|
57149
|
+
getContainerContext
|
|
57150
|
+
} = _a,
|
|
57151
|
+
rest = ModalContent_rest(_a, ["maskClosable", "className", "getPopupContainer", "maskFixed", "getContainerContext"]);
|
|
57069
57152
|
const {
|
|
57070
57153
|
direction
|
|
57071
57154
|
} = this.context;
|
|
@@ -57075,9 +57158,10 @@ class ModalContent extends BaseComponent {
|
|
|
57075
57158
|
[`${modal_constants_cssClasses.DIALOG}-rtl`]: direction === 'rtl'
|
|
57076
57159
|
});
|
|
57077
57160
|
const containerContext = getContainerContext();
|
|
57078
|
-
const
|
|
57161
|
+
const dataAttr = this.getDataAttr(rest);
|
|
57162
|
+
const elem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57079
57163
|
className: classList
|
|
57080
|
-
}, this.getMaskElement(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57164
|
+
}, dataAttr), this.getMaskElement(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
57081
57165
|
role: "none",
|
|
57082
57166
|
className: classnames_default()({
|
|
57083
57167
|
[`${modal_constants_cssClasses.DIALOG}-wrap`]: true,
|
|
@@ -57793,6 +57877,9 @@ class DropdownFoundation extends foundation {
|
|
|
57793
57877
|
handleKeyDown(event) {
|
|
57794
57878
|
var _a, _b;
|
|
57795
57879
|
const id = (_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.attributes['data-popupid']) === null || _b === void 0 ? void 0 : _b.value;
|
|
57880
|
+
const {
|
|
57881
|
+
visible
|
|
57882
|
+
} = this._adapter.getStates();
|
|
57796
57883
|
switch (event.key) {
|
|
57797
57884
|
case ' ':
|
|
57798
57885
|
case 'Enter':
|
|
@@ -57802,11 +57889,11 @@ class DropdownFoundation extends foundation {
|
|
|
57802
57889
|
break;
|
|
57803
57890
|
case 'ArrowDown':
|
|
57804
57891
|
this.setFocusToFirstMenuItem(id);
|
|
57805
|
-
handlePrevent(event);
|
|
57892
|
+
visible && handlePrevent(event);
|
|
57806
57893
|
break;
|
|
57807
57894
|
case 'ArrowUp':
|
|
57808
57895
|
this.setFocusToLastMenuItem(id);
|
|
57809
|
-
handlePrevent(event);
|
|
57896
|
+
visible && handlePrevent(event);
|
|
57810
57897
|
break;
|
|
57811
57898
|
default:
|
|
57812
57899
|
break;
|
|
@@ -58889,6 +58976,7 @@ var list_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
58889
58976
|
|
|
58890
58977
|
|
|
58891
58978
|
|
|
58979
|
+
|
|
58892
58980
|
const list_item_prefixCls = list_constants_cssClasses.PREFIX;
|
|
58893
58981
|
class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
58894
58982
|
wrapWithGrid(content) {
|
|
@@ -58905,19 +58993,21 @@ class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
58905
58993
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(col, Object.assign({}, rest), content);
|
|
58906
58994
|
}
|
|
58907
58995
|
render() {
|
|
58908
|
-
const
|
|
58909
|
-
|
|
58910
|
-
|
|
58911
|
-
|
|
58912
|
-
|
|
58913
|
-
|
|
58914
|
-
|
|
58915
|
-
|
|
58916
|
-
|
|
58917
|
-
|
|
58918
|
-
|
|
58919
|
-
|
|
58920
|
-
|
|
58996
|
+
const _a = this.props,
|
|
58997
|
+
{
|
|
58998
|
+
header,
|
|
58999
|
+
main,
|
|
59000
|
+
className,
|
|
59001
|
+
style,
|
|
59002
|
+
extra,
|
|
59003
|
+
children,
|
|
59004
|
+
align,
|
|
59005
|
+
onClick,
|
|
59006
|
+
onRightClick,
|
|
59007
|
+
onMouseEnter,
|
|
59008
|
+
onMouseLeave
|
|
59009
|
+
} = _a,
|
|
59010
|
+
rest = list_item_rest(_a, ["header", "main", "className", "style", "extra", "children", "align", "onClick", "onRightClick", "onMouseEnter", "onMouseLeave"]);
|
|
58921
59011
|
const {
|
|
58922
59012
|
onRightClick: contextOnRightClick,
|
|
58923
59013
|
onClick: contextOnClick,
|
|
@@ -58942,14 +59032,14 @@ class ListItem extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
58942
59032
|
let content =
|
|
58943
59033
|
/*#__PURE__*/
|
|
58944
59034
|
// 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", {
|
|
59035
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", Object.assign({
|
|
58946
59036
|
className: itemCls,
|
|
58947
59037
|
style: style,
|
|
58948
59038
|
onClick: handleClick,
|
|
58949
59039
|
onContextMenu: handleContextMenu,
|
|
58950
59040
|
onMouseEnter: onMouseEnter,
|
|
58951
59041
|
onMouseLeave: onMouseLeave
|
|
58952
|
-
}, body ? body : null, children, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59042
|
+
}, getDataAttr(rest)), body ? body : null, children, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
58953
59043
|
className: `${list_item_prefixCls}-item-extra`
|
|
58954
59044
|
}, extra) : null);
|
|
58955
59045
|
if (this.context && contextGrid) {
|
|
@@ -58979,6 +59069,14 @@ ListItem.defaultProps = {
|
|
|
58979
59069
|
};
|
|
58980
59070
|
;// CONCATENATED MODULE: ./list/index.tsx
|
|
58981
59071
|
|
|
59072
|
+
var list_rest = undefined && undefined.__rest || function (s, e) {
|
|
59073
|
+
var t = {};
|
|
59074
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
59075
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59076
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
59077
|
+
}
|
|
59078
|
+
return t;
|
|
59079
|
+
};
|
|
58982
59080
|
|
|
58983
59081
|
|
|
58984
59082
|
|
|
@@ -59032,24 +59130,26 @@ class List extends BaseComponent {
|
|
|
59032
59130
|
}, childrenList ? childrenList : null, children);
|
|
59033
59131
|
}
|
|
59034
59132
|
render() {
|
|
59035
|
-
const
|
|
59036
|
-
|
|
59037
|
-
|
|
59038
|
-
|
|
59039
|
-
|
|
59040
|
-
|
|
59041
|
-
|
|
59042
|
-
|
|
59043
|
-
|
|
59044
|
-
|
|
59045
|
-
|
|
59046
|
-
|
|
59047
|
-
|
|
59048
|
-
|
|
59049
|
-
|
|
59050
|
-
|
|
59051
|
-
|
|
59052
|
-
|
|
59133
|
+
const _a = this.props,
|
|
59134
|
+
{
|
|
59135
|
+
style,
|
|
59136
|
+
className,
|
|
59137
|
+
header,
|
|
59138
|
+
loading,
|
|
59139
|
+
onRightClick,
|
|
59140
|
+
onClick,
|
|
59141
|
+
footer,
|
|
59142
|
+
layout,
|
|
59143
|
+
grid,
|
|
59144
|
+
size,
|
|
59145
|
+
split,
|
|
59146
|
+
loadMore,
|
|
59147
|
+
bordered,
|
|
59148
|
+
dataSource,
|
|
59149
|
+
renderItem,
|
|
59150
|
+
children
|
|
59151
|
+
} = _a,
|
|
59152
|
+
rest = list_rest(_a, ["style", "className", "header", "loading", "onRightClick", "onClick", "footer", "layout", "grid", "size", "split", "loadMore", "bordered", "dataSource", "renderItem", "children"]);
|
|
59053
59153
|
const wrapperCls = classnames_default()(list_prefixCls, className, {
|
|
59054
59154
|
[`${list_prefixCls}-flex`]: layout === 'horizontal',
|
|
59055
59155
|
[`${list_prefixCls}-${size}`]: size,
|
|
@@ -59070,10 +59170,10 @@ class List extends BaseComponent {
|
|
|
59070
59170
|
} else if (!children && !loading) {
|
|
59071
59171
|
childrenList = this.renderEmpty();
|
|
59072
59172
|
}
|
|
59073
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59173
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
59074
59174
|
className: wrapperCls,
|
|
59075
59175
|
style: style
|
|
59076
|
-
}, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59176
|
+
}, this.getDataAttr(rest)), header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
59077
59177
|
className: `${list_constants_cssClasses.PREFIX}-header`,
|
|
59078
59178
|
"x-semi-prop": "header"
|
|
59079
59179
|
}, header) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(list_context.Provider, {
|
|
@@ -62332,6 +62432,14 @@ NavHeader.elementType = "NavHeader";
|
|
|
62332
62432
|
|
|
62333
62433
|
|
|
62334
62434
|
|
|
62435
|
+
var navigation_rest = undefined && undefined.__rest || function (s, e) {
|
|
62436
|
+
var t = {};
|
|
62437
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
62438
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
62439
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
62440
|
+
}
|
|
62441
|
+
return t;
|
|
62442
|
+
};
|
|
62335
62443
|
/* eslint-disable max-lines-per-function */
|
|
62336
62444
|
|
|
62337
62445
|
|
|
@@ -62498,28 +62606,30 @@ class Nav extends BaseComponent {
|
|
|
62498
62606
|
return finalDom;
|
|
62499
62607
|
}
|
|
62500
62608
|
render() {
|
|
62501
|
-
const
|
|
62502
|
-
|
|
62503
|
-
|
|
62504
|
-
|
|
62505
|
-
|
|
62506
|
-
|
|
62507
|
-
|
|
62508
|
-
|
|
62509
|
-
|
|
62510
|
-
|
|
62511
|
-
|
|
62512
|
-
|
|
62513
|
-
|
|
62514
|
-
|
|
62515
|
-
|
|
62516
|
-
|
|
62517
|
-
|
|
62518
|
-
|
|
62519
|
-
|
|
62520
|
-
|
|
62521
|
-
|
|
62522
|
-
|
|
62609
|
+
const _a = this.props,
|
|
62610
|
+
{
|
|
62611
|
+
children: originChildren,
|
|
62612
|
+
mode,
|
|
62613
|
+
onOpenChange,
|
|
62614
|
+
onSelect,
|
|
62615
|
+
onClick,
|
|
62616
|
+
style,
|
|
62617
|
+
className,
|
|
62618
|
+
subNavCloseDelay,
|
|
62619
|
+
subNavOpenDelay,
|
|
62620
|
+
subNavMotion,
|
|
62621
|
+
tooltipShowDelay,
|
|
62622
|
+
tooltipHideDelay,
|
|
62623
|
+
prefixCls,
|
|
62624
|
+
bodyStyle,
|
|
62625
|
+
footer,
|
|
62626
|
+
header,
|
|
62627
|
+
toggleIconPosition,
|
|
62628
|
+
limitIndent,
|
|
62629
|
+
renderWrapper,
|
|
62630
|
+
getPopupContainer
|
|
62631
|
+
} = _a,
|
|
62632
|
+
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
62633
|
const {
|
|
62524
62634
|
selectedKeys,
|
|
62525
62635
|
openKeys,
|
|
@@ -62619,10 +62729,10 @@ class Nav extends BaseComponent {
|
|
|
62619
62729
|
renderWrapper,
|
|
62620
62730
|
getPopupContainer
|
|
62621
62731
|
}
|
|
62622
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62732
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
62623
62733
|
className: finalCls,
|
|
62624
62734
|
style: finalStyle
|
|
62625
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62735
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62626
62736
|
className: `${prefixCls}-inner`
|
|
62627
62737
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62628
62738
|
className: headerListOuterCls
|
|
@@ -67868,6 +67978,14 @@ var select_select = __webpack_require__("mSc3");
|
|
|
67868
67978
|
|
|
67869
67979
|
|
|
67870
67980
|
|
|
67981
|
+
var select_rest = undefined && undefined.__rest || function (s, e) {
|
|
67982
|
+
var t = {};
|
|
67983
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
67984
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67985
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
67986
|
+
}
|
|
67987
|
+
return t;
|
|
67988
|
+
};
|
|
67871
67989
|
/* eslint-disable max-len */
|
|
67872
67990
|
/* eslint-disable max-lines-per-function */
|
|
67873
67991
|
|
|
@@ -68885,25 +69003,27 @@ class Select extends BaseComponent {
|
|
|
68885
69003
|
}, labelNode);
|
|
68886
69004
|
}
|
|
68887
69005
|
renderSelection() {
|
|
68888
|
-
const
|
|
68889
|
-
|
|
68890
|
-
|
|
68891
|
-
|
|
68892
|
-
|
|
68893
|
-
|
|
68894
|
-
|
|
68895
|
-
|
|
68896
|
-
|
|
68897
|
-
|
|
68898
|
-
|
|
68899
|
-
|
|
68900
|
-
|
|
68901
|
-
|
|
68902
|
-
|
|
68903
|
-
|
|
68904
|
-
|
|
68905
|
-
|
|
68906
|
-
|
|
69006
|
+
const _a = this.props,
|
|
69007
|
+
{
|
|
69008
|
+
disabled,
|
|
69009
|
+
multiple,
|
|
69010
|
+
filter,
|
|
69011
|
+
style,
|
|
69012
|
+
id,
|
|
69013
|
+
size,
|
|
69014
|
+
className,
|
|
69015
|
+
validateStatus,
|
|
69016
|
+
showArrow,
|
|
69017
|
+
suffix,
|
|
69018
|
+
prefix,
|
|
69019
|
+
insetLabel,
|
|
69020
|
+
placeholder,
|
|
69021
|
+
triggerRender,
|
|
69022
|
+
arrowIcon,
|
|
69023
|
+
clearIcon,
|
|
69024
|
+
borderless
|
|
69025
|
+
} = _a,
|
|
69026
|
+
rest = select_rest(_a, ["disabled", "multiple", "filter", "style", "id", "size", "className", "validateStatus", "showArrow", "suffix", "prefix", "insetLabel", "placeholder", "triggerRender", "arrowIcon", "clearIcon", "borderless"]);
|
|
68907
69027
|
const {
|
|
68908
69028
|
selections,
|
|
68909
69029
|
isOpen,
|
|
@@ -69003,7 +69123,7 @@ class Select extends BaseComponent {
|
|
|
69003
69123
|
onFocus: e => this.foundation.handleTriggerFocus(e),
|
|
69004
69124
|
onBlur: e => this.foundation.handleTriggerBlur(e),
|
|
69005
69125
|
onKeyPress: this.onKeyPress
|
|
69006
|
-
}, keyboardEventSet), inner)
|
|
69126
|
+
}, keyboardEventSet, this.getDataAttr(rest)), inner)
|
|
69007
69127
|
);
|
|
69008
69128
|
}
|
|
69009
69129
|
render() {
|
|
@@ -69194,6 +69314,14 @@ Select.defaultProps = {
|
|
|
69194
69314
|
/* harmony default export */ const select_0 = (Select);
|
|
69195
69315
|
;// CONCATENATED MODULE: ./pagination/index.tsx
|
|
69196
69316
|
|
|
69317
|
+
var pagination_rest = undefined && undefined.__rest || function (s, e) {
|
|
69318
|
+
var t = {};
|
|
69319
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
69320
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69321
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
69322
|
+
}
|
|
69323
|
+
return t;
|
|
69324
|
+
};
|
|
69197
69325
|
/* eslint-disable max-len */
|
|
69198
69326
|
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
|
|
69199
69327
|
|
|
@@ -69318,21 +69446,23 @@ class Pagination extends BaseComponent {
|
|
|
69318
69446
|
}
|
|
69319
69447
|
renderPrevBtn() {
|
|
69320
69448
|
const {
|
|
69321
|
-
prevText
|
|
69449
|
+
prevText,
|
|
69450
|
+
disabled
|
|
69322
69451
|
} = this.props;
|
|
69323
69452
|
const {
|
|
69324
69453
|
prevDisabled
|
|
69325
69454
|
} = this.state;
|
|
69455
|
+
const isDisabled = prevDisabled || disabled;
|
|
69326
69456
|
const preClassName = classnames_default()({
|
|
69327
69457
|
[`${pagination_prefixCls}-item`]: true,
|
|
69328
69458
|
[`${pagination_prefixCls}-prev`]: true,
|
|
69329
|
-
[`${pagination_prefixCls}-item-disabled`]:
|
|
69459
|
+
[`${pagination_prefixCls}-item-disabled`]: isDisabled
|
|
69330
69460
|
});
|
|
69331
69461
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69332
69462
|
role: "button",
|
|
69333
|
-
"aria-disabled":
|
|
69463
|
+
"aria-disabled": isDisabled ? true : false,
|
|
69334
69464
|
"aria-label": "Previous",
|
|
69335
|
-
onClick: e => !
|
|
69465
|
+
onClick: e => !isDisabled && this.foundation.goPrev(e),
|
|
69336
69466
|
className: preClassName,
|
|
69337
69467
|
"x-semi-prop": "prevText"
|
|
69338
69468
|
}, prevText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronLeft, {
|
|
@@ -69341,21 +69471,23 @@ class Pagination extends BaseComponent {
|
|
|
69341
69471
|
}
|
|
69342
69472
|
renderNextBtn() {
|
|
69343
69473
|
const {
|
|
69344
|
-
nextText
|
|
69474
|
+
nextText,
|
|
69475
|
+
disabled
|
|
69345
69476
|
} = this.props;
|
|
69346
69477
|
const {
|
|
69347
69478
|
nextDisabled
|
|
69348
69479
|
} = this.state;
|
|
69480
|
+
const isDisabled = nextDisabled || disabled;
|
|
69349
69481
|
const nextClassName = classnames_default()({
|
|
69350
69482
|
[`${pagination_prefixCls}-item`]: true,
|
|
69351
|
-
[`${pagination_prefixCls}-item-disabled`]:
|
|
69483
|
+
[`${pagination_prefixCls}-item-disabled`]: isDisabled,
|
|
69352
69484
|
[`${pagination_prefixCls}-next`]: true
|
|
69353
69485
|
});
|
|
69354
69486
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69355
69487
|
role: "button",
|
|
69356
|
-
"aria-disabled":
|
|
69488
|
+
"aria-disabled": isDisabled ? true : false,
|
|
69357
69489
|
"aria-label": "Next",
|
|
69358
|
-
onClick: e => !
|
|
69490
|
+
onClick: e => !isDisabled && this.foundation.goNext(e),
|
|
69359
69491
|
className: nextClassName,
|
|
69360
69492
|
"x-semi-prop": "prevText"
|
|
69361
69493
|
}, nextText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronRight, {
|
|
@@ -69370,7 +69502,8 @@ class Pagination extends BaseComponent {
|
|
|
69370
69502
|
const defaultPopoverPosition = direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
69371
69503
|
const {
|
|
69372
69504
|
showSizeChanger,
|
|
69373
|
-
popoverPosition = defaultPopoverPosition
|
|
69505
|
+
popoverPosition = defaultPopoverPosition,
|
|
69506
|
+
disabled
|
|
69374
69507
|
} = this.props;
|
|
69375
69508
|
const {
|
|
69376
69509
|
pageSize
|
|
@@ -69390,6 +69523,7 @@ class Pagination extends BaseComponent {
|
|
|
69390
69523
|
className: switchCls
|
|
69391
69524
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(select_0, {
|
|
69392
69525
|
"aria-label": "Page size selector",
|
|
69526
|
+
disabled: disabled,
|
|
69393
69527
|
onChange: newPageSize => this.foundation.changePageSize(newPageSize),
|
|
69394
69528
|
value: pageSize,
|
|
69395
69529
|
key: pageSize,
|
|
@@ -69400,7 +69534,8 @@ class Pagination extends BaseComponent {
|
|
|
69400
69534
|
}
|
|
69401
69535
|
renderQuickJump(locale) {
|
|
69402
69536
|
const {
|
|
69403
|
-
showQuickJumper
|
|
69537
|
+
showQuickJumper,
|
|
69538
|
+
disabled
|
|
69404
69539
|
} = this.props;
|
|
69405
69540
|
const {
|
|
69406
69541
|
quickJumpPage,
|
|
@@ -69411,7 +69546,7 @@ class Pagination extends BaseComponent {
|
|
|
69411
69546
|
return null;
|
|
69412
69547
|
}
|
|
69413
69548
|
const totalPageNum = this.foundation._getTotalPageNumber(total, pageSize);
|
|
69414
|
-
const isDisabled = totalPageNum === 1;
|
|
69549
|
+
const isDisabled = totalPageNum === 1 || disabled;
|
|
69415
69550
|
const quickJumpCls = classnames_default()({
|
|
69416
69551
|
[`${pagination_prefixCls}-quickjump`]: true,
|
|
69417
69552
|
[`${pagination_prefixCls}-quickjump-disabled`]: isDisabled
|
|
@@ -69437,22 +69572,25 @@ class Pagination extends BaseComponent {
|
|
|
69437
69572
|
} = this.state;
|
|
69438
69573
|
const {
|
|
69439
69574
|
popoverPosition,
|
|
69440
|
-
popoverZIndex
|
|
69575
|
+
popoverZIndex,
|
|
69576
|
+
disabled
|
|
69441
69577
|
} = this.props;
|
|
69442
69578
|
return pageList.map((page, i) => {
|
|
69443
69579
|
const pageListClassName = classnames_default()(`${pagination_prefixCls}-item`, {
|
|
69444
|
-
[`${pagination_prefixCls}-item-active`]: currentPage === page
|
|
69580
|
+
[`${pagination_prefixCls}-item-active`]: currentPage === page,
|
|
69581
|
+
[`${pagination_prefixCls}-item-all-disabled`]: disabled,
|
|
69582
|
+
[`${pagination_prefixCls}-item-all-disabled-active`]: currentPage === page && disabled
|
|
69445
69583
|
// [`${prefixCls}-item-rest-opening`]: (i < 3 && isLeftRestHover && page ==='...') || (i > 3 && isRightRestHover && page === '...')
|
|
69446
69584
|
});
|
|
69447
69585
|
|
|
69448
69586
|
const pageEl = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
69449
69587
|
key: `${page}${i}`,
|
|
69450
|
-
onClick: () => this.foundation.goPage(page, i),
|
|
69588
|
+
onClick: () => !disabled && this.foundation.goPage(page, i),
|
|
69451
69589
|
className: pageListClassName,
|
|
69452
69590
|
"aria-label": page === '...' ? 'More' : `Page ${page}`,
|
|
69453
69591
|
"aria-current": currentPage === page ? "page" : false
|
|
69454
69592
|
}, page);
|
|
69455
|
-
if (page === '...') {
|
|
69593
|
+
if (page === '...' && !disabled) {
|
|
69456
69594
|
let content;
|
|
69457
69595
|
i < 3 ? content = restLeftPageList : content = restRightPageList;
|
|
69458
69596
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
@@ -69508,14 +69646,19 @@ class Pagination extends BaseComponent {
|
|
|
69508
69646
|
);
|
|
69509
69647
|
}
|
|
69510
69648
|
renderSmallPage(locale) {
|
|
69511
|
-
const
|
|
69512
|
-
|
|
69513
|
-
|
|
69514
|
-
|
|
69515
|
-
|
|
69516
|
-
|
|
69517
|
-
|
|
69518
|
-
|
|
69649
|
+
const _a = this.props,
|
|
69650
|
+
{
|
|
69651
|
+
className,
|
|
69652
|
+
style,
|
|
69653
|
+
hideOnSinglePage,
|
|
69654
|
+
hoverShowPageSelect,
|
|
69655
|
+
showSizeChanger,
|
|
69656
|
+
disabled
|
|
69657
|
+
} = _a,
|
|
69658
|
+
rest = pagination_rest(_a, ["className", "style", "hideOnSinglePage", "hoverShowPageSelect", "showSizeChanger", "disabled"]);
|
|
69659
|
+
const paginationCls = classnames_default()(`${pagination_prefixCls}-small`, pagination_prefixCls, className, {
|
|
69660
|
+
[`${pagination_prefixCls}-disabled`]: disabled
|
|
69661
|
+
});
|
|
69519
69662
|
const {
|
|
69520
69663
|
currentPage,
|
|
69521
69664
|
total,
|
|
@@ -69529,13 +69672,18 @@ class Pagination extends BaseComponent {
|
|
|
69529
69672
|
length: Math.ceil(total / pageSize)
|
|
69530
69673
|
}, (v, i) => i + 1);
|
|
69531
69674
|
const pageList = this.renderRestPageList(pageNumbers);
|
|
69675
|
+
const pageCls = classnames_default()({
|
|
69676
|
+
[`${pagination_prefixCls}-item`]: true,
|
|
69677
|
+
[`${pagination_prefixCls}-item-small`]: true,
|
|
69678
|
+
[`${pagination_prefixCls}-item-all-disabled`]: disabled
|
|
69679
|
+
});
|
|
69532
69680
|
const page = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
69533
|
-
className:
|
|
69681
|
+
className: pageCls
|
|
69534
69682
|
}, currentPage, "/", totalPageNum, " ");
|
|
69535
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
69683
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
69536
69684
|
className: paginationCls,
|
|
69537
69685
|
style: style
|
|
69538
|
-
}, this.renderPrevBtn(), hoverShowPageSelect ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
69686
|
+
}, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
69539
69687
|
content: pageList
|
|
69540
69688
|
}, page) : page, this.renderNextBtn(), this.renderQuickJump(locale));
|
|
69541
69689
|
}
|
|
@@ -69544,14 +69692,19 @@ class Pagination extends BaseComponent {
|
|
|
69544
69692
|
total,
|
|
69545
69693
|
pageSize
|
|
69546
69694
|
} = this.state;
|
|
69547
|
-
const
|
|
69548
|
-
|
|
69549
|
-
|
|
69550
|
-
|
|
69551
|
-
|
|
69552
|
-
|
|
69553
|
-
|
|
69554
|
-
|
|
69695
|
+
const _a = this.props,
|
|
69696
|
+
{
|
|
69697
|
+
showTotal,
|
|
69698
|
+
className,
|
|
69699
|
+
style,
|
|
69700
|
+
hideOnSinglePage,
|
|
69701
|
+
showSizeChanger,
|
|
69702
|
+
disabled
|
|
69703
|
+
} = _a,
|
|
69704
|
+
rest = pagination_rest(_a, ["showTotal", "className", "style", "hideOnSinglePage", "showSizeChanger", "disabled"]);
|
|
69705
|
+
const paginationCls = classnames_default()(className, `${pagination_prefixCls}`, {
|
|
69706
|
+
[`${pagination_prefixCls}-disabled`]: disabled
|
|
69707
|
+
});
|
|
69555
69708
|
const showTotalCls = `${pagination_prefixCls}-total`;
|
|
69556
69709
|
const totalPageNum = Math.ceil(total / pageSize);
|
|
69557
69710
|
if (totalPageNum < 2 && hideOnSinglePage && !showSizeChanger) {
|
|
@@ -69559,10 +69712,10 @@ class Pagination extends BaseComponent {
|
|
|
69559
69712
|
}
|
|
69560
69713
|
const totalNum = Math.ceil(total / pageSize);
|
|
69561
69714
|
const totalToken = locale.total.replace('${total}', totalNum.toString());
|
|
69562
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
69715
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
69563
69716
|
className: paginationCls,
|
|
69564
69717
|
style: style
|
|
69565
|
-
}, showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
69718
|
+
}, this.getDataAttr(rest)), showTotal ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
69566
69719
|
className: showTotalCls
|
|
69567
69720
|
}, totalToken) : null, this.renderPrevBtn(), this.renderPageList(), this.renderNextBtn(), this.renderPageSizeSwitch(locale), this.renderQuickJump(locale));
|
|
69568
69721
|
}
|
|
@@ -69596,7 +69749,8 @@ Pagination.propTypes = {
|
|
|
69596
69749
|
className: (prop_types_default()).string,
|
|
69597
69750
|
hideOnSinglePage: (prop_types_default()).bool,
|
|
69598
69751
|
hoverShowPageSelect: (prop_types_default()).bool,
|
|
69599
|
-
showQuickJumper: (prop_types_default()).bool
|
|
69752
|
+
showQuickJumper: (prop_types_default()).bool,
|
|
69753
|
+
disabled: (prop_types_default()).bool
|
|
69600
69754
|
};
|
|
69601
69755
|
Pagination.defaultProps = {
|
|
69602
69756
|
total: 1,
|
|
@@ -69612,7 +69766,8 @@ Pagination.defaultProps = {
|
|
|
69612
69766
|
showSizeChanger: false,
|
|
69613
69767
|
className: '',
|
|
69614
69768
|
hideOnSinglePage: false,
|
|
69615
|
-
showQuickJumper: false
|
|
69769
|
+
showQuickJumper: false,
|
|
69770
|
+
disabled: false
|
|
69616
69771
|
};
|
|
69617
69772
|
;// CONCATENATED MODULE: ../semi-foundation/popconfirm/constants.ts
|
|
69618
69773
|
|
|
@@ -70185,6 +70340,15 @@ const SEMI_DESIGN_TOKENS = {
|
|
|
70185
70340
|
};
|
|
70186
70341
|
|
|
70187
70342
|
;// CONCATENATED MODULE: ./progress/index.tsx
|
|
70343
|
+
var progress_rest = undefined && undefined.__rest || function (s, e) {
|
|
70344
|
+
var t = {};
|
|
70345
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
70346
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70347
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
70348
|
+
}
|
|
70349
|
+
return t;
|
|
70350
|
+
};
|
|
70351
|
+
|
|
70188
70352
|
|
|
70189
70353
|
|
|
70190
70354
|
|
|
@@ -70259,20 +70423,22 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70259
70423
|
this._mounted = false;
|
|
70260
70424
|
}
|
|
70261
70425
|
renderCircleProgress() {
|
|
70262
|
-
const
|
|
70263
|
-
|
|
70264
|
-
|
|
70265
|
-
|
|
70266
|
-
|
|
70267
|
-
|
|
70268
|
-
|
|
70269
|
-
|
|
70270
|
-
|
|
70271
|
-
|
|
70272
|
-
|
|
70273
|
-
|
|
70274
|
-
|
|
70275
|
-
|
|
70426
|
+
const _a = this.props,
|
|
70427
|
+
{
|
|
70428
|
+
strokeLinecap,
|
|
70429
|
+
style,
|
|
70430
|
+
className,
|
|
70431
|
+
strokeWidth,
|
|
70432
|
+
format,
|
|
70433
|
+
size,
|
|
70434
|
+
stroke,
|
|
70435
|
+
strokeGradient,
|
|
70436
|
+
showInfo,
|
|
70437
|
+
percent,
|
|
70438
|
+
orbitStroke,
|
|
70439
|
+
id
|
|
70440
|
+
} = _a,
|
|
70441
|
+
rest = progress_rest(_a, ["strokeLinecap", "style", "className", "strokeWidth", "format", "size", "stroke", "strokeGradient", "showInfo", "percent", "orbitStroke", "id"]);
|
|
70276
70442
|
const ariaLabel = this.props['aria-label'];
|
|
70277
70443
|
const ariaLabelledBy = this.props['aria-labelledby'];
|
|
70278
70444
|
const ariaValueText = this.props['aria-valuetext'];
|
|
@@ -70302,7 +70468,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70302
70468
|
const strokeDashoffset = (1 - perc / 100) * circumference; // Offset
|
|
70303
70469
|
const strokeDasharray = `${circumference} ${circumference}`;
|
|
70304
70470
|
const text = format(percNumber);
|
|
70305
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70471
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
70306
70472
|
id: id,
|
|
70307
70473
|
className: classNames.wrapper,
|
|
70308
70474
|
style: style,
|
|
@@ -70313,7 +70479,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70313
70479
|
"aria-labelledby": ariaLabelledBy,
|
|
70314
70480
|
"aria-label": ariaLabel,
|
|
70315
70481
|
"aria-valuetext": ariaValueText
|
|
70316
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
70482
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
|
|
70317
70483
|
key: size,
|
|
70318
70484
|
className: classNames.svg,
|
|
70319
70485
|
height: width,
|
|
@@ -70368,19 +70534,21 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70368
70534
|
return progress_constants_strings.STROKE_DEFAULT;
|
|
70369
70535
|
}
|
|
70370
70536
|
renderLineProgress() {
|
|
70371
|
-
const
|
|
70372
|
-
|
|
70373
|
-
|
|
70374
|
-
|
|
70375
|
-
|
|
70376
|
-
|
|
70377
|
-
|
|
70378
|
-
|
|
70379
|
-
|
|
70380
|
-
|
|
70381
|
-
|
|
70382
|
-
|
|
70383
|
-
|
|
70537
|
+
const _a = this.props,
|
|
70538
|
+
{
|
|
70539
|
+
className,
|
|
70540
|
+
style,
|
|
70541
|
+
stroke,
|
|
70542
|
+
strokeGradient,
|
|
70543
|
+
direction,
|
|
70544
|
+
format,
|
|
70545
|
+
showInfo,
|
|
70546
|
+
size,
|
|
70547
|
+
percent,
|
|
70548
|
+
orbitStroke,
|
|
70549
|
+
id
|
|
70550
|
+
} = _a,
|
|
70551
|
+
rest = progress_rest(_a, ["className", "style", "stroke", "strokeGradient", "direction", "format", "showInfo", "size", "percent", "orbitStroke", "id"]);
|
|
70384
70552
|
const ariaLabel = this.props['aria-label'];
|
|
70385
70553
|
const ariaLabelledBy = this.props['aria-labelledby'];
|
|
70386
70554
|
const ariaValueText = this.props['aria-valuetext'];
|
|
@@ -70409,7 +70577,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70409
70577
|
innerStyle.height = `${perc}%`;
|
|
70410
70578
|
}
|
|
70411
70579
|
const text = format(percNumber);
|
|
70412
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70580
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
70413
70581
|
id: id,
|
|
70414
70582
|
className: progressWrapperCls,
|
|
70415
70583
|
style: style,
|
|
@@ -70420,7 +70588,7 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70420
70588
|
"aria-labelledby": ariaLabelledBy,
|
|
70421
70589
|
"aria-label": ariaLabel,
|
|
70422
70590
|
"aria-valuetext": ariaValueText
|
|
70423
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70591
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
70424
70592
|
className: progressTrackCls,
|
|
70425
70593
|
style: orbitStroke ? {
|
|
70426
70594
|
backgroundColor: orbitStroke
|
|
@@ -70802,6 +70970,14 @@ RadioInner.defaultProps = {
|
|
|
70802
70970
|
|
|
70803
70971
|
|
|
70804
70972
|
|
|
70973
|
+
var radio_rest = undefined && undefined.__rest || function (s, e) {
|
|
70974
|
+
var t = {};
|
|
70975
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
70976
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70977
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
70978
|
+
}
|
|
70979
|
+
return t;
|
|
70980
|
+
};
|
|
70805
70981
|
/* eslint-disable prefer-destructuring */
|
|
70806
70982
|
|
|
70807
70983
|
|
|
@@ -70905,21 +71081,23 @@ class Radio extends BaseComponent {
|
|
|
70905
71081
|
this.radioEntity.blur();
|
|
70906
71082
|
}
|
|
70907
71083
|
render() {
|
|
70908
|
-
const
|
|
70909
|
-
|
|
70910
|
-
|
|
70911
|
-
|
|
70912
|
-
|
|
70913
|
-
|
|
70914
|
-
|
|
70915
|
-
|
|
70916
|
-
|
|
70917
|
-
|
|
70918
|
-
|
|
70919
|
-
|
|
70920
|
-
|
|
70921
|
-
|
|
70922
|
-
|
|
71084
|
+
const _a = this.props,
|
|
71085
|
+
{
|
|
71086
|
+
addonClassName,
|
|
71087
|
+
addonStyle,
|
|
71088
|
+
disabled,
|
|
71089
|
+
style,
|
|
71090
|
+
className,
|
|
71091
|
+
prefixCls,
|
|
71092
|
+
displayMode,
|
|
71093
|
+
children,
|
|
71094
|
+
extra,
|
|
71095
|
+
mode,
|
|
71096
|
+
type,
|
|
71097
|
+
value: propValue,
|
|
71098
|
+
name
|
|
71099
|
+
} = _a,
|
|
71100
|
+
rest = radio_rest(_a, ["addonClassName", "addonStyle", "disabled", "style", "className", "prefixCls", "displayMode", "children", "extra", "mode", "type", "value", "name"]);
|
|
70923
71101
|
let realChecked, isDisabled, realMode, isButtonRadioGroup, isCardRadioGroup, isPureCardRadioGroup, isButtonRadioComponent, buttonSize, realPrefixCls;
|
|
70924
71102
|
const {
|
|
70925
71103
|
hover: isHover,
|
|
@@ -71000,12 +71178,12 @@ class Radio extends BaseComponent {
|
|
|
71000
71178
|
"x-semi-prop": "extra"
|
|
71001
71179
|
}, extra) : null);
|
|
71002
71180
|
};
|
|
71003
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", {
|
|
71181
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", Object.assign({
|
|
71004
71182
|
style: style,
|
|
71005
71183
|
className: wrapper,
|
|
71006
71184
|
onMouseEnter: this.handleMouseEnter,
|
|
71007
71185
|
onMouseLeave: this.handleMouseLeave
|
|
71008
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radioInner, Object.assign({}, this.props, props, {
|
|
71186
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radioInner, Object.assign({}, this.props, props, {
|
|
71009
71187
|
mode: realMode,
|
|
71010
71188
|
name: name !== null && name !== void 0 ? name : groupName,
|
|
71011
71189
|
isButtonRadio: isButtonRadio,
|
|
@@ -71058,6 +71236,14 @@ Radio.elementType = 'Radio';
|
|
|
71058
71236
|
/* harmony default export */ const radio_radio_0 = (Radio);
|
|
71059
71237
|
;// CONCATENATED MODULE: ./radio/radioGroup.tsx
|
|
71060
71238
|
|
|
71239
|
+
var radioGroup_rest = undefined && undefined.__rest || function (s, e) {
|
|
71240
|
+
var t = {};
|
|
71241
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
71242
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
71243
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
71244
|
+
}
|
|
71245
|
+
return t;
|
|
71246
|
+
};
|
|
71061
71247
|
|
|
71062
71248
|
|
|
71063
71249
|
|
|
@@ -71109,18 +71295,20 @@ class RadioGroup extends BaseComponent {
|
|
|
71109
71295
|
});
|
|
71110
71296
|
}
|
|
71111
71297
|
render() {
|
|
71112
|
-
const
|
|
71113
|
-
|
|
71114
|
-
|
|
71115
|
-
|
|
71116
|
-
|
|
71117
|
-
|
|
71118
|
-
|
|
71119
|
-
|
|
71120
|
-
|
|
71121
|
-
|
|
71122
|
-
|
|
71123
|
-
|
|
71298
|
+
const _a = this.props,
|
|
71299
|
+
{
|
|
71300
|
+
children,
|
|
71301
|
+
options,
|
|
71302
|
+
mode,
|
|
71303
|
+
prefixCls,
|
|
71304
|
+
className,
|
|
71305
|
+
style,
|
|
71306
|
+
direction,
|
|
71307
|
+
type,
|
|
71308
|
+
buttonSize,
|
|
71309
|
+
id
|
|
71310
|
+
} = _a,
|
|
71311
|
+
rest = radioGroup_rest(_a, ["children", "options", "mode", "prefixCls", "className", "style", "direction", "type", "buttonSize", "id"]);
|
|
71124
71312
|
const isButtonRadio = type === radio_constants_strings.TYPE_BUTTON;
|
|
71125
71313
|
const isPureCardRadio = type === radio_constants_strings.TYPE_PURECARD;
|
|
71126
71314
|
const isCardRadio = type === radio_constants_strings.TYPE_CARD || isPureCardRadio;
|
|
@@ -71160,7 +71348,7 @@ class RadioGroup extends BaseComponent {
|
|
|
71160
71348
|
key: index
|
|
71161
71349
|
}) : null);
|
|
71162
71350
|
}
|
|
71163
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
71351
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
71164
71352
|
className: prefixClsDisplay,
|
|
71165
71353
|
style: style,
|
|
71166
71354
|
id: id,
|
|
@@ -71170,7 +71358,7 @@ class RadioGroup extends BaseComponent {
|
|
|
71170
71358
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
71171
71359
|
"aria-describedby": this.props['aria-describedby'],
|
|
71172
71360
|
"aria-required": this.props['aria-required']
|
|
71173
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radio_context.Provider, {
|
|
71361
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(radio_context.Provider, {
|
|
71174
71362
|
value: {
|
|
71175
71363
|
radioGroup: {
|
|
71176
71364
|
onChange: this.onChange,
|
|
@@ -71675,6 +71863,14 @@ rating_item_Item.propTypes = {
|
|
|
71675
71863
|
preventScroll: (prop_types_default()).bool
|
|
71676
71864
|
};
|
|
71677
71865
|
;// CONCATENATED MODULE: ./rating/index.tsx
|
|
71866
|
+
var rating_rest = undefined && undefined.__rest || function (s, e) {
|
|
71867
|
+
var t = {};
|
|
71868
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
71869
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
71870
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
71871
|
+
}
|
|
71872
|
+
return t;
|
|
71873
|
+
};
|
|
71678
71874
|
|
|
71679
71875
|
|
|
71680
71876
|
|
|
@@ -71911,15 +72107,17 @@ class Rating extends BaseComponent {
|
|
|
71911
72107
|
this.foundation.destroy();
|
|
71912
72108
|
}
|
|
71913
72109
|
render() {
|
|
71914
|
-
const
|
|
71915
|
-
|
|
71916
|
-
|
|
71917
|
-
|
|
71918
|
-
|
|
71919
|
-
|
|
71920
|
-
|
|
71921
|
-
|
|
71922
|
-
|
|
72110
|
+
const _a = this.props,
|
|
72111
|
+
{
|
|
72112
|
+
style,
|
|
72113
|
+
prefixCls,
|
|
72114
|
+
disabled,
|
|
72115
|
+
className,
|
|
72116
|
+
id,
|
|
72117
|
+
count,
|
|
72118
|
+
tabIndex
|
|
72119
|
+
} = _a,
|
|
72120
|
+
rest = rating_rest(_a, ["style", "prefixCls", "disabled", "className", "id", "count", "tabIndex"]);
|
|
71923
72121
|
const {
|
|
71924
72122
|
value,
|
|
71925
72123
|
emptyStarFocusVisible
|
|
@@ -71934,7 +72132,7 @@ class Rating extends BaseComponent {
|
|
|
71934
72132
|
return (
|
|
71935
72133
|
/*#__PURE__*/
|
|
71936
72134
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
71937
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
72135
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
71938
72136
|
"aria-label": ariaLabel,
|
|
71939
72137
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
71940
72138
|
"aria-describedby": this.props['aria-describedby'],
|
|
@@ -71947,7 +72145,7 @@ class Rating extends BaseComponent {
|
|
|
71947
72145
|
onKeyDown: disabled ? function_noop : this.onKeyDown,
|
|
71948
72146
|
ref: this.saveRate,
|
|
71949
72147
|
id: id
|
|
71950
|
-
}, itemList)
|
|
72148
|
+
}, this.getDataAttr(rest)), itemList)
|
|
71951
72149
|
);
|
|
71952
72150
|
}
|
|
71953
72151
|
}
|
|
@@ -72026,6 +72224,7 @@ var SideSheetContent_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
72026
72224
|
|
|
72027
72225
|
|
|
72028
72226
|
|
|
72227
|
+
|
|
72029
72228
|
let SideSheetContent_uuid = 0;
|
|
72030
72229
|
const SideSheetContent_prefixCls = sideSheet_constants_cssClasses.PREFIX;
|
|
72031
72230
|
class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
|
|
@@ -72133,11 +72332,29 @@ class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_rea
|
|
|
72133
72332
|
return dialogElement;
|
|
72134
72333
|
}
|
|
72135
72334
|
render() {
|
|
72136
|
-
const
|
|
72137
|
-
|
|
72138
|
-
|
|
72139
|
-
|
|
72140
|
-
|
|
72335
|
+
const _a = this.props,
|
|
72336
|
+
{
|
|
72337
|
+
mask,
|
|
72338
|
+
className,
|
|
72339
|
+
width,
|
|
72340
|
+
onClose,
|
|
72341
|
+
maskStyle,
|
|
72342
|
+
maskClosable,
|
|
72343
|
+
maskClassName,
|
|
72344
|
+
title,
|
|
72345
|
+
closable,
|
|
72346
|
+
headerStyle,
|
|
72347
|
+
height,
|
|
72348
|
+
style,
|
|
72349
|
+
size,
|
|
72350
|
+
bodyStyle,
|
|
72351
|
+
dialogClassName,
|
|
72352
|
+
children,
|
|
72353
|
+
footer,
|
|
72354
|
+
maskExtraProps,
|
|
72355
|
+
wrapperExtraProps
|
|
72356
|
+
} = _a,
|
|
72357
|
+
rest = SideSheetContent_rest(_a, ["mask", "className", "width", "onClose", "maskStyle", "maskClosable", "maskClassName", "title", "closable", "headerStyle", "height", "style", "size", "bodyStyle", "dialogClassName", "children", "footer", "maskExtraProps", "wrapperExtraProps"]);
|
|
72141
72358
|
const wrapperCls = classnames_default()(className, {
|
|
72142
72359
|
[`${SideSheetContent_prefixCls}-fixed`]: !mask,
|
|
72143
72360
|
[`${SideSheetContent_prefixCls}-size-${this.props.size}`]: !mask
|
|
@@ -72146,10 +72363,11 @@ class SideSheetContent extends (external_root_React_commonjs2_react_commonjs_rea
|
|
|
72146
72363
|
if (!mask && width) {
|
|
72147
72364
|
wrapperStyle.width = width;
|
|
72148
72365
|
}
|
|
72149
|
-
|
|
72366
|
+
const dataAttr = getDataAttr(rest);
|
|
72367
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
72150
72368
|
className: wrapperCls,
|
|
72151
72369
|
style: wrapperStyle
|
|
72152
|
-
}, this.getMaskElement(), this.getDialogElement());
|
|
72370
|
+
}, dataAttr), this.getMaskElement(), this.getDialogElement());
|
|
72153
72371
|
}
|
|
72154
72372
|
}
|
|
72155
72373
|
SideSheetContent.propTypes = {
|
|
@@ -73273,6 +73491,14 @@ var slider = __webpack_require__("1MNb");
|
|
|
73273
73491
|
;// CONCATENATED MODULE: ./slider/index.tsx
|
|
73274
73492
|
|
|
73275
73493
|
|
|
73494
|
+
var slider_rest = undefined && undefined.__rest || function (s, e) {
|
|
73495
|
+
var t = {};
|
|
73496
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
73497
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
73498
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
73499
|
+
}
|
|
73500
|
+
return t;
|
|
73501
|
+
};
|
|
73276
73502
|
/* eslint-disable max-lines-per-function */
|
|
73277
73503
|
/* eslint-disable react/no-find-dom-node */
|
|
73278
73504
|
|
|
@@ -73811,14 +74037,16 @@ class Slider extends BaseComponent {
|
|
|
73811
74037
|
min,
|
|
73812
74038
|
max
|
|
73813
74039
|
} = this.state;
|
|
73814
|
-
const
|
|
73815
|
-
|
|
73816
|
-
|
|
73817
|
-
|
|
73818
|
-
|
|
73819
|
-
|
|
73820
|
-
|
|
73821
|
-
|
|
74040
|
+
const _a = this.props,
|
|
74041
|
+
{
|
|
74042
|
+
vertical,
|
|
74043
|
+
verticalReverse,
|
|
74044
|
+
style,
|
|
74045
|
+
railStyle,
|
|
74046
|
+
range,
|
|
74047
|
+
className
|
|
74048
|
+
} = _a,
|
|
74049
|
+
rest = slider_rest(_a, ["vertical", "verticalReverse", "style", "railStyle", "range", "className"]);
|
|
73822
74050
|
const wrapperClass = classnames_default()(`${slider_prefixCls}-wrapper`, {
|
|
73823
74051
|
[`${slider_prefixCls}-disabled`]: disabled,
|
|
73824
74052
|
[`${slider_constants_cssClasses.VERTICAL}-wrapper`]: vertical,
|
|
@@ -73832,14 +74060,14 @@ class Slider extends BaseComponent {
|
|
|
73832
74060
|
[slider_constants_cssClasses.VERTICAL]: vertical
|
|
73833
74061
|
});
|
|
73834
74062
|
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", {
|
|
74063
|
+
const slider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
73836
74064
|
className: wrapperClass,
|
|
73837
74065
|
style: style,
|
|
73838
74066
|
ref: this.sliderEl,
|
|
73839
74067
|
"aria-label": ariaLabel,
|
|
73840
74068
|
onMouseEnter: () => this.foundation.handleWrapperEnter(),
|
|
73841
74069
|
onMouseLeave: () => this.foundation.handleWrapperLeave()
|
|
73842
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74070
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
73843
74071
|
className: `${slider_prefixCls}-rail`,
|
|
73844
74072
|
onClick: this.foundation.handleWrapClick,
|
|
73845
74073
|
style: railStyle
|
|
@@ -74305,6 +74533,15 @@ const Step = props => {
|
|
|
74305
74533
|
// EXTERNAL MODULE: ../semi-foundation/steps/steps.scss
|
|
74306
74534
|
var steps = __webpack_require__("/wkG");
|
|
74307
74535
|
;// CONCATENATED MODULE: ./steps/fillSteps.tsx
|
|
74536
|
+
var fillSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74537
|
+
var t = {};
|
|
74538
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74539
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74540
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74541
|
+
}
|
|
74542
|
+
return t;
|
|
74543
|
+
};
|
|
74544
|
+
|
|
74308
74545
|
|
|
74309
74546
|
|
|
74310
74547
|
|
|
@@ -74312,16 +74549,17 @@ var steps = __webpack_require__("/wkG");
|
|
|
74312
74549
|
|
|
74313
74550
|
const Steps = props => {
|
|
74314
74551
|
const {
|
|
74315
|
-
|
|
74316
|
-
|
|
74317
|
-
|
|
74318
|
-
|
|
74319
|
-
|
|
74320
|
-
|
|
74321
|
-
|
|
74322
|
-
|
|
74323
|
-
|
|
74324
|
-
|
|
74552
|
+
current,
|
|
74553
|
+
status,
|
|
74554
|
+
children,
|
|
74555
|
+
prefixCls,
|
|
74556
|
+
initial,
|
|
74557
|
+
direction,
|
|
74558
|
+
className,
|
|
74559
|
+
style,
|
|
74560
|
+
onChange
|
|
74561
|
+
} = props,
|
|
74562
|
+
rest = fillSteps_rest(props, ["current", "status", "children", "prefixCls", "initial", "direction", "className", "style", "onChange"]);
|
|
74325
74563
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74326
74564
|
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
74565
|
const colStyle = direction === 'vertical' ? null : {
|
|
@@ -74363,11 +74601,11 @@ const Steps = props => {
|
|
|
74363
74601
|
[prefixCls]: true,
|
|
74364
74602
|
[`${prefixCls}-${direction}`]: true
|
|
74365
74603
|
});
|
|
74366
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74604
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74367
74605
|
className: wrapperCls,
|
|
74368
74606
|
style: style,
|
|
74369
74607
|
"aria-label": props["aria-label"]
|
|
74370
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(row, {
|
|
74608
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(row, {
|
|
74371
74609
|
type: "flex",
|
|
74372
74610
|
justify: "start"
|
|
74373
74611
|
}, inner));
|
|
@@ -74390,24 +74628,34 @@ Steps.defaultProps = {
|
|
|
74390
74628
|
};
|
|
74391
74629
|
/* harmony default export */ const fillSteps = (Steps);
|
|
74392
74630
|
;// CONCATENATED MODULE: ./steps/basicSteps.tsx
|
|
74631
|
+
var basicSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74632
|
+
var t = {};
|
|
74633
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74634
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74635
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74636
|
+
}
|
|
74637
|
+
return t;
|
|
74638
|
+
};
|
|
74639
|
+
|
|
74393
74640
|
|
|
74394
74641
|
|
|
74395
74642
|
|
|
74396
74643
|
|
|
74397
74644
|
const basicSteps_Steps = props => {
|
|
74398
74645
|
const {
|
|
74399
|
-
|
|
74400
|
-
|
|
74401
|
-
|
|
74402
|
-
|
|
74403
|
-
|
|
74404
|
-
|
|
74405
|
-
|
|
74406
|
-
|
|
74407
|
-
|
|
74408
|
-
|
|
74409
|
-
|
|
74410
|
-
|
|
74646
|
+
size,
|
|
74647
|
+
current,
|
|
74648
|
+
status,
|
|
74649
|
+
children,
|
|
74650
|
+
prefixCls,
|
|
74651
|
+
initial,
|
|
74652
|
+
direction,
|
|
74653
|
+
className,
|
|
74654
|
+
style,
|
|
74655
|
+
hasLine,
|
|
74656
|
+
onChange
|
|
74657
|
+
} = props,
|
|
74658
|
+
rest = basicSteps_rest(props, ["size", "current", "status", "children", "prefixCls", "initial", "direction", "className", "style", "hasLine", "onChange"]);
|
|
74411
74659
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74412
74660
|
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
74661
|
const content = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.map(filteredChildren, (child, index) => {
|
|
@@ -74448,11 +74696,11 @@ const basicSteps_Steps = props => {
|
|
|
74448
74696
|
[`${prefixCls}-${size}`]: size !== 'default',
|
|
74449
74697
|
[`${prefixCls}-hasline`]: hasLine
|
|
74450
74698
|
});
|
|
74451
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74699
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74452
74700
|
"aria-label": props["aria-label"],
|
|
74453
74701
|
className: wrapperCls,
|
|
74454
74702
|
style: style
|
|
74455
|
-
}, inner);
|
|
74703
|
+
}, getDataAttr(rest)), inner);
|
|
74456
74704
|
};
|
|
74457
74705
|
basicSteps_Steps.propTypes = {
|
|
74458
74706
|
prefixCls: (prop_types_default()).string,
|
|
@@ -74475,21 +74723,31 @@ basicSteps_Steps.defaultProps = {
|
|
|
74475
74723
|
};
|
|
74476
74724
|
/* harmony default export */ const basicSteps = (basicSteps_Steps);
|
|
74477
74725
|
;// CONCATENATED MODULE: ./steps/navSteps.tsx
|
|
74726
|
+
var navSteps_rest = undefined && undefined.__rest || function (s, e) {
|
|
74727
|
+
var t = {};
|
|
74728
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74729
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74730
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74731
|
+
}
|
|
74732
|
+
return t;
|
|
74733
|
+
};
|
|
74734
|
+
|
|
74478
74735
|
|
|
74479
74736
|
|
|
74480
74737
|
|
|
74481
74738
|
|
|
74482
74739
|
const navSteps_Steps = props => {
|
|
74483
74740
|
const {
|
|
74484
|
-
|
|
74485
|
-
|
|
74486
|
-
|
|
74487
|
-
|
|
74488
|
-
|
|
74489
|
-
|
|
74490
|
-
|
|
74491
|
-
|
|
74492
|
-
|
|
74741
|
+
size,
|
|
74742
|
+
current,
|
|
74743
|
+
initial,
|
|
74744
|
+
children,
|
|
74745
|
+
prefixCls,
|
|
74746
|
+
className,
|
|
74747
|
+
style,
|
|
74748
|
+
onChange
|
|
74749
|
+
} = props,
|
|
74750
|
+
rest = navSteps_rest(props, ["size", "current", "initial", "children", "prefixCls", "className", "style", "onChange"]);
|
|
74493
74751
|
const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
74494
74752
|
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
74753
|
const total = filteredChildren.length;
|
|
@@ -74515,11 +74773,11 @@ const navSteps_Steps = props => {
|
|
|
74515
74773
|
[`${prefixCls}-nav`]: true,
|
|
74516
74774
|
[`${prefixCls}-${size}`]: size !== 'default'
|
|
74517
74775
|
});
|
|
74518
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
74776
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74519
74777
|
"aria-label": props["aria-label"],
|
|
74520
74778
|
className: wrapperCls,
|
|
74521
74779
|
style: style
|
|
74522
|
-
}, inner);
|
|
74780
|
+
}, getDataAttr(rest)), inner);
|
|
74523
74781
|
};
|
|
74524
74782
|
navSteps_Steps.propTypes = {
|
|
74525
74783
|
prefixCls: (prop_types_default()).string,
|
|
@@ -74667,6 +74925,14 @@ const switch_constants_strings = {
|
|
|
74667
74925
|
var switch_switch = __webpack_require__("HuwZ");
|
|
74668
74926
|
;// CONCATENATED MODULE: ./switch/index.tsx
|
|
74669
74927
|
|
|
74928
|
+
var switch_rest = undefined && undefined.__rest || function (s, e) {
|
|
74929
|
+
var t = {};
|
|
74930
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
74931
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
74932
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
74933
|
+
}
|
|
74934
|
+
return t;
|
|
74935
|
+
};
|
|
74670
74936
|
/* eslint-disable max-len */
|
|
74671
74937
|
|
|
74672
74938
|
|
|
@@ -74735,17 +75001,19 @@ class Switch extends BaseComponent {
|
|
|
74735
75001
|
nativeControlDisabled,
|
|
74736
75002
|
focusVisible
|
|
74737
75003
|
} = this.state;
|
|
74738
|
-
const
|
|
74739
|
-
|
|
74740
|
-
|
|
74741
|
-
|
|
74742
|
-
|
|
74743
|
-
|
|
74744
|
-
|
|
74745
|
-
|
|
74746
|
-
|
|
74747
|
-
|
|
74748
|
-
|
|
75004
|
+
const _a = this.props,
|
|
75005
|
+
{
|
|
75006
|
+
className,
|
|
75007
|
+
style,
|
|
75008
|
+
onMouseEnter,
|
|
75009
|
+
onMouseLeave,
|
|
75010
|
+
size,
|
|
75011
|
+
checkedText,
|
|
75012
|
+
uncheckedText,
|
|
75013
|
+
loading,
|
|
75014
|
+
id
|
|
75015
|
+
} = _a,
|
|
75016
|
+
rest = switch_rest(_a, ["className", "style", "onMouseEnter", "onMouseLeave", "size", "checkedText", "uncheckedText", "loading", "id"]);
|
|
74749
75017
|
const wrapperCls = classnames_default()(className, {
|
|
74750
75018
|
[switch_constants_cssClasses.PREFIX]: true,
|
|
74751
75019
|
[switch_constants_cssClasses.CHECKED]: nativeControlChecked,
|
|
@@ -74763,12 +75031,12 @@ class Switch extends BaseComponent {
|
|
|
74763
75031
|
};
|
|
74764
75032
|
const showCheckedText = checkedText && nativeControlChecked && size !== 'small';
|
|
74765
75033
|
const showUncheckedText = uncheckedText && !nativeControlChecked && size !== 'small';
|
|
74766
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
75034
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
74767
75035
|
className: wrapperCls,
|
|
74768
75036
|
style: style,
|
|
74769
75037
|
onMouseEnter: onMouseEnter,
|
|
74770
75038
|
onMouseLeave: onMouseLeave
|
|
74771
|
-
}, loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
75039
|
+
}, this.getDataAttr(rest)), loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
74772
75040
|
wrapperClassName: switch_constants_cssClasses.LOADING_SPIN,
|
|
74773
75041
|
size: size === 'default' ? 'middle' : size
|
|
74774
75042
|
}) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
@@ -80862,13 +81130,14 @@ class Table extends BaseComponent {
|
|
|
80862
81130
|
getVirtualizedListRef,
|
|
80863
81131
|
setBodyHasScrollbar: this.setBodyHasScrollbar
|
|
80864
81132
|
});
|
|
80865
|
-
|
|
81133
|
+
const dataAttr = this.getDataAttr(rest);
|
|
81134
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
80866
81135
|
ref: this.rootWrapRef,
|
|
80867
81136
|
className: classnames_default()(className, `${prefixCls}-wrapper`, `${prefixCls}-wrapper-${props.direction}`),
|
|
80868
81137
|
"data-column-fixed": anyColumnFixed,
|
|
80869
81138
|
style: wrapStyle,
|
|
80870
81139
|
id: id
|
|
80871
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(table_TableContextProvider, Object.assign({}, tableContextValue, {
|
|
81140
|
+
}, dataAttr), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(table_TableContextProvider, Object.assign({}, tableContextValue, {
|
|
80872
81141
|
direction: props.direction
|
|
80873
81142
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(spin_0, {
|
|
80874
81143
|
spinning: loading,
|
|
@@ -81917,7 +82186,6 @@ var tabs_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81917
82186
|
|
|
81918
82187
|
|
|
81919
82188
|
|
|
81920
|
-
|
|
81921
82189
|
const panePickKeys = ['className', 'style', 'disabled', 'itemKey', 'tab', 'icon'];
|
|
81922
82190
|
|
|
81923
82191
|
class Tabs extends BaseComponent {
|
|
@@ -82176,7 +82444,7 @@ class Tabs extends BaseComponent {
|
|
|
82176
82444
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
82177
82445
|
className: tabWrapperCls,
|
|
82178
82446
|
style: style
|
|
82179
|
-
}, getDataAttr(restProps)), tabBar, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(tabs_context.Provider, {
|
|
82447
|
+
}, this.getDataAttr(restProps)), tabBar, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(tabs_context.Provider, {
|
|
82180
82448
|
value: {
|
|
82181
82449
|
activeKey,
|
|
82182
82450
|
lazyRender,
|
|
@@ -82248,6 +82516,15 @@ const timeline_constants_strings = {
|
|
|
82248
82516
|
|
|
82249
82517
|
;// CONCATENATED MODULE: ./timeline/item.tsx
|
|
82250
82518
|
|
|
82519
|
+
var timeline_item_rest = undefined && undefined.__rest || function (s, e) {
|
|
82520
|
+
var t = {};
|
|
82521
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
82522
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82523
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
82524
|
+
}
|
|
82525
|
+
return t;
|
|
82526
|
+
};
|
|
82527
|
+
|
|
82251
82528
|
|
|
82252
82529
|
|
|
82253
82530
|
|
|
@@ -82256,17 +82533,19 @@ const timeline_constants_strings = {
|
|
|
82256
82533
|
const timeline_item_prefixCls = timeline_constants_cssClasses.ITEM;
|
|
82257
82534
|
class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
82258
82535
|
render() {
|
|
82259
|
-
const
|
|
82260
|
-
|
|
82261
|
-
|
|
82262
|
-
|
|
82263
|
-
|
|
82264
|
-
|
|
82265
|
-
|
|
82266
|
-
|
|
82267
|
-
|
|
82268
|
-
|
|
82269
|
-
|
|
82536
|
+
const _a = this.props,
|
|
82537
|
+
{
|
|
82538
|
+
className,
|
|
82539
|
+
color,
|
|
82540
|
+
children,
|
|
82541
|
+
dot,
|
|
82542
|
+
type,
|
|
82543
|
+
style,
|
|
82544
|
+
time,
|
|
82545
|
+
extra,
|
|
82546
|
+
onClick
|
|
82547
|
+
} = _a,
|
|
82548
|
+
rest = timeline_item_rest(_a, ["className", "color", "children", "dot", "type", "style", "time", "extra", "onClick"]);
|
|
82270
82549
|
const itemCls = classnames_default()(timeline_item_prefixCls, className);
|
|
82271
82550
|
const dotCls = classnames_default()({
|
|
82272
82551
|
[`${timeline_item_prefixCls}-head`]: true,
|
|
@@ -82278,11 +82557,11 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
|
|
|
82278
82557
|
backgroundColor: color
|
|
82279
82558
|
}
|
|
82280
82559
|
} : null;
|
|
82281
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
82560
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", Object.assign({
|
|
82282
82561
|
className: itemCls,
|
|
82283
82562
|
style: style,
|
|
82284
82563
|
onClick: onClick
|
|
82285
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
82564
|
+
}, getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
82286
82565
|
className: `${timeline_item_prefixCls}-tail`,
|
|
82287
82566
|
"aria-hidden": true
|
|
82288
82567
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
@@ -82314,6 +82593,15 @@ timeline_item_Item.defaultProps = {
|
|
|
82314
82593
|
onClick: (noop_default())
|
|
82315
82594
|
};
|
|
82316
82595
|
;// CONCATENATED MODULE: ./timeline/index.tsx
|
|
82596
|
+
var timeline_rest = undefined && undefined.__rest || function (s, e) {
|
|
82597
|
+
var t = {};
|
|
82598
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
82599
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82600
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
82601
|
+
}
|
|
82602
|
+
return t;
|
|
82603
|
+
};
|
|
82604
|
+
|
|
82317
82605
|
|
|
82318
82606
|
|
|
82319
82607
|
|
|
@@ -82360,13 +82648,15 @@ class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
82360
82648
|
});
|
|
82361
82649
|
}
|
|
82362
82650
|
render() {
|
|
82363
|
-
const
|
|
82364
|
-
|
|
82365
|
-
|
|
82366
|
-
|
|
82367
|
-
|
|
82368
|
-
|
|
82369
|
-
|
|
82651
|
+
const _a = this.props,
|
|
82652
|
+
{
|
|
82653
|
+
children,
|
|
82654
|
+
className,
|
|
82655
|
+
style,
|
|
82656
|
+
mode,
|
|
82657
|
+
dataSource
|
|
82658
|
+
} = _a,
|
|
82659
|
+
rest = timeline_rest(_a, ["children", "className", "style", "mode", "dataSource"]);
|
|
82370
82660
|
const classString = classnames_default()(timeline_prefixCls, className, {
|
|
82371
82661
|
[`${timeline_prefixCls}-${mode}`]: mode
|
|
82372
82662
|
});
|
|
@@ -82378,11 +82668,11 @@ class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
82378
82668
|
childrenList = this.addClassName(items);
|
|
82379
82669
|
}
|
|
82380
82670
|
const items = childrenList || this.addClassName(children);
|
|
82381
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
|
|
82671
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", Object.assign({
|
|
82382
82672
|
"aria-label": this.props['aria-label'],
|
|
82383
82673
|
style: style,
|
|
82384
82674
|
className: classString
|
|
82385
|
-
}, items);
|
|
82675
|
+
}, getDataAttr(rest)), items);
|
|
82386
82676
|
}
|
|
82387
82677
|
}
|
|
82388
82678
|
Timeline.contextType = context;
|
|
@@ -85555,6 +85845,14 @@ var tree = __webpack_require__("TKyF");
|
|
|
85555
85845
|
|
|
85556
85846
|
|
|
85557
85847
|
|
|
85848
|
+
var tree_rest = undefined && undefined.__rest || function (s, e) {
|
|
85849
|
+
var t = {};
|
|
85850
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
85851
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
85852
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
85853
|
+
}
|
|
85854
|
+
return t;
|
|
85855
|
+
};
|
|
85558
85856
|
/* eslint-disable max-lines-per-function */
|
|
85559
85857
|
|
|
85560
85858
|
|
|
@@ -86117,26 +86415,28 @@ class Tree extends BaseComponent {
|
|
|
86117
86415
|
checkedKeys,
|
|
86118
86416
|
realCheckedKeys
|
|
86119
86417
|
} = this.state;
|
|
86120
|
-
const
|
|
86121
|
-
|
|
86122
|
-
|
|
86123
|
-
|
|
86124
|
-
|
|
86125
|
-
|
|
86126
|
-
|
|
86127
|
-
|
|
86128
|
-
|
|
86129
|
-
|
|
86130
|
-
|
|
86131
|
-
|
|
86132
|
-
|
|
86133
|
-
|
|
86134
|
-
|
|
86135
|
-
|
|
86136
|
-
|
|
86137
|
-
|
|
86138
|
-
|
|
86139
|
-
|
|
86418
|
+
const _a = this.props,
|
|
86419
|
+
{
|
|
86420
|
+
blockNode,
|
|
86421
|
+
className,
|
|
86422
|
+
style,
|
|
86423
|
+
filterTreeNode,
|
|
86424
|
+
disabled,
|
|
86425
|
+
icon,
|
|
86426
|
+
directory,
|
|
86427
|
+
multiple,
|
|
86428
|
+
showFilteredOnly,
|
|
86429
|
+
motion,
|
|
86430
|
+
expandAction,
|
|
86431
|
+
loadData,
|
|
86432
|
+
renderLabel,
|
|
86433
|
+
draggable,
|
|
86434
|
+
renderFullLabel,
|
|
86435
|
+
labelEllipsis,
|
|
86436
|
+
virtualize,
|
|
86437
|
+
checkRelation
|
|
86438
|
+
} = _a,
|
|
86439
|
+
rest = tree_rest(_a, ["blockNode", "className", "style", "filterTreeNode", "disabled", "icon", "directory", "multiple", "showFilteredOnly", "motion", "expandAction", "loadData", "renderLabel", "draggable", "renderFullLabel", "labelEllipsis", "virtualize", "checkRelation"]);
|
|
86140
86440
|
const wrapperCls = classnames_default()(`${tree_prefixcls}-wrapper`, className);
|
|
86141
86441
|
const listCls = classnames_default()(`${tree_prefixcls}-option-list`, {
|
|
86142
86442
|
[`${tree_prefixcls}-option-list-block`]: blockNode
|
|
@@ -86185,11 +86485,11 @@ class Tree extends BaseComponent {
|
|
|
86185
86485
|
dropPosition,
|
|
86186
86486
|
labelEllipsis: typeof labelEllipsis === 'undefined' ? virtualize : labelEllipsis
|
|
86187
86487
|
}
|
|
86188
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
86488
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86189
86489
|
"aria-label": this.props['aria-label'],
|
|
86190
86490
|
className: wrapperCls,
|
|
86191
86491
|
style: style
|
|
86192
|
-
}, filterTreeNode ? this.renderInput() : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86492
|
+
}, this.getDataAttr(rest)), filterTreeNode ? this.renderInput() : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
86193
86493
|
className: listCls
|
|
86194
86494
|
}, ariaAttr), noData ? this.renderEmpty() : multiple ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(checkboxGroup, {
|
|
86195
86495
|
value: Array.from(checkRelation === 'related' ? checkedKeys : realCheckedKeys)
|
|
@@ -87079,6 +87379,14 @@ var treeSelect = __webpack_require__("ZrYm");
|
|
|
87079
87379
|
|
|
87080
87380
|
|
|
87081
87381
|
|
|
87382
|
+
var treeSelect_rest = undefined && undefined.__rest || function (s, e) {
|
|
87383
|
+
var t = {};
|
|
87384
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
87385
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
87386
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
87387
|
+
}
|
|
87388
|
+
return t;
|
|
87389
|
+
};
|
|
87082
87390
|
|
|
87083
87391
|
|
|
87084
87392
|
|
|
@@ -87404,24 +87712,26 @@ class TreeSelect extends BaseComponent {
|
|
|
87404
87712
|
return null;
|
|
87405
87713
|
};
|
|
87406
87714
|
this.renderSelection = () => {
|
|
87407
|
-
const
|
|
87408
|
-
|
|
87409
|
-
|
|
87410
|
-
|
|
87411
|
-
|
|
87412
|
-
|
|
87413
|
-
|
|
87414
|
-
|
|
87415
|
-
|
|
87416
|
-
|
|
87417
|
-
|
|
87418
|
-
|
|
87419
|
-
|
|
87420
|
-
|
|
87421
|
-
|
|
87422
|
-
|
|
87423
|
-
|
|
87424
|
-
|
|
87715
|
+
const _a = this.props,
|
|
87716
|
+
{
|
|
87717
|
+
disabled,
|
|
87718
|
+
multiple,
|
|
87719
|
+
filterTreeNode,
|
|
87720
|
+
validateStatus,
|
|
87721
|
+
prefix,
|
|
87722
|
+
suffix,
|
|
87723
|
+
style,
|
|
87724
|
+
size,
|
|
87725
|
+
insetLabel,
|
|
87726
|
+
className,
|
|
87727
|
+
placeholder,
|
|
87728
|
+
showClear,
|
|
87729
|
+
leafOnly,
|
|
87730
|
+
searchPosition,
|
|
87731
|
+
triggerRender,
|
|
87732
|
+
borderless
|
|
87733
|
+
} = _a,
|
|
87734
|
+
rest = treeSelect_rest(_a, ["disabled", "multiple", "filterTreeNode", "validateStatus", "prefix", "suffix", "style", "size", "insetLabel", "className", "placeholder", "showClear", "leafOnly", "searchPosition", "triggerRender", "borderless"]);
|
|
87425
87735
|
const {
|
|
87426
87736
|
inputValue,
|
|
87427
87737
|
selectedKeys,
|
|
@@ -87503,7 +87813,7 @@ class TreeSelect extends BaseComponent {
|
|
|
87503
87813
|
"aria-labelledby": this.props['aria-labelledby'],
|
|
87504
87814
|
"aria-describedby": this.props['aria-describedby'],
|
|
87505
87815
|
"aria-required": this.props['aria-required']
|
|
87506
|
-
}, mouseEvent), inner);
|
|
87816
|
+
}, mouseEvent, this.getDataAttr(rest)), inner);
|
|
87507
87817
|
};
|
|
87508
87818
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87509
87819
|
this.renderTagItem = (key, idx) => {
|
|
@@ -89840,6 +90150,14 @@ var upload = __webpack_require__("kbHv");
|
|
|
89840
90150
|
;// CONCATENATED MODULE: ./upload/index.tsx
|
|
89841
90151
|
|
|
89842
90152
|
|
|
90153
|
+
var upload_rest = undefined && undefined.__rest || function (s, e) {
|
|
90154
|
+
var t = {};
|
|
90155
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
90156
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
90157
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
90158
|
+
}
|
|
90159
|
+
return t;
|
|
90160
|
+
};
|
|
89843
90161
|
/* eslint-disable max-len */
|
|
89844
90162
|
|
|
89845
90163
|
|
|
@@ -90293,22 +90611,24 @@ class Upload extends BaseComponent {
|
|
|
90293
90611
|
this.foundation.destroy();
|
|
90294
90612
|
}
|
|
90295
90613
|
render() {
|
|
90296
|
-
const
|
|
90297
|
-
|
|
90298
|
-
|
|
90299
|
-
|
|
90300
|
-
|
|
90301
|
-
|
|
90302
|
-
|
|
90303
|
-
|
|
90304
|
-
|
|
90305
|
-
|
|
90306
|
-
|
|
90307
|
-
|
|
90308
|
-
|
|
90309
|
-
|
|
90310
|
-
|
|
90311
|
-
|
|
90614
|
+
const _a = this.props,
|
|
90615
|
+
{
|
|
90616
|
+
style,
|
|
90617
|
+
className,
|
|
90618
|
+
multiple,
|
|
90619
|
+
accept,
|
|
90620
|
+
disabled,
|
|
90621
|
+
children,
|
|
90622
|
+
capture,
|
|
90623
|
+
listType,
|
|
90624
|
+
prompt,
|
|
90625
|
+
promptPosition,
|
|
90626
|
+
draggable,
|
|
90627
|
+
validateMessage,
|
|
90628
|
+
validateStatus,
|
|
90629
|
+
directory
|
|
90630
|
+
} = _a,
|
|
90631
|
+
rest = upload_rest(_a, ["style", "className", "multiple", "accept", "disabled", "children", "capture", "listType", "prompt", "promptPosition", "draggable", "validateMessage", "validateStatus", "directory"]);
|
|
90312
90632
|
const uploadCls = classnames_default()(upload_prefixCls, {
|
|
90313
90633
|
[`${upload_prefixCls}-picture`]: listType === upload_constants_strings.FILE_LIST_PIC,
|
|
90314
90634
|
[`${upload_prefixCls}-disabled`]: disabled,
|
|
@@ -90325,11 +90645,11 @@ class Upload extends BaseComponent {
|
|
|
90325
90645
|
directory: 'directory',
|
|
90326
90646
|
webkitdirectory: 'webkitdirectory'
|
|
90327
90647
|
} : {};
|
|
90328
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
90648
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
90329
90649
|
className: uploadCls,
|
|
90330
90650
|
style: style,
|
|
90331
90651
|
"x-prompt-pos": promptPosition
|
|
90332
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", Object.assign({
|
|
90652
|
+
}, this.getDataAttr(rest)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", Object.assign({
|
|
90333
90653
|
key: this.state.inputKey,
|
|
90334
90654
|
capture: capture,
|
|
90335
90655
|
multiple: multiple,
|
|
@@ -90754,6 +91074,14 @@ var transfer = __webpack_require__("4XZ2");
|
|
|
90754
91074
|
|
|
90755
91075
|
|
|
90756
91076
|
|
|
91077
|
+
var transfer_rest = undefined && undefined.__rest || function (s, e) {
|
|
91078
|
+
var t = {};
|
|
91079
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
91080
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
91081
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
91082
|
+
}
|
|
91083
|
+
return t;
|
|
91084
|
+
};
|
|
90757
91085
|
|
|
90758
91086
|
|
|
90759
91087
|
|
|
@@ -91295,23 +91623,25 @@ class Transfer extends BaseComponent {
|
|
|
91295
91623
|
}, headerCom, content);
|
|
91296
91624
|
}
|
|
91297
91625
|
render() {
|
|
91298
|
-
const
|
|
91299
|
-
|
|
91300
|
-
|
|
91301
|
-
|
|
91302
|
-
|
|
91303
|
-
|
|
91304
|
-
|
|
91626
|
+
const _a = this.props,
|
|
91627
|
+
{
|
|
91628
|
+
className,
|
|
91629
|
+
style,
|
|
91630
|
+
disabled,
|
|
91631
|
+
renderSelectedPanel,
|
|
91632
|
+
renderSourcePanel
|
|
91633
|
+
} = _a,
|
|
91634
|
+
rest = transfer_rest(_a, ["className", "style", "disabled", "renderSelectedPanel", "renderSourcePanel"]);
|
|
91305
91635
|
const transferCls = classnames_default()(transfer_prefixCls, className, {
|
|
91306
91636
|
[`${transfer_prefixCls}-disabled`]: disabled,
|
|
91307
91637
|
[`${transfer_prefixCls}-custom-panel`]: renderSelectedPanel && renderSourcePanel
|
|
91308
91638
|
});
|
|
91309
91639
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
91310
91640
|
componentName: "Transfer"
|
|
91311
|
-
}, locale => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
91641
|
+
}, locale => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
91312
91642
|
className: transferCls,
|
|
91313
91643
|
style: style
|
|
91314
|
-
}, this.renderLeft(locale), this.renderRight(locale)));
|
|
91644
|
+
}, this.getDataAttr(rest)), this.renderLeft(locale), this.renderRight(locale)));
|
|
91315
91645
|
}
|
|
91316
91646
|
}
|
|
91317
91647
|
Transfer.propTypes = {
|