amis 1.9.1-beta.21 → 1.9.1-beta.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js.map +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +2 -3
- package/lib/components/GroupedSelection.js.map +2 -2
- package/lib/components/PickerContainer.d.ts +0 -1
- package/lib/components/PickerContainer.js +4 -4
- package/lib/components/PickerContainer.js.map +2 -2
- package/lib/components/ResultBox.js +3 -1
- package/lib/components/ResultBox.js.map +2 -2
- package/lib/components/ResultList.d.ts +53 -43
- package/lib/components/ResultList.js +22 -34
- package/lib/components/ResultList.js.map +2 -2
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/Select.js +10 -6
- package/lib/components/Select.js.map +2 -2
- package/lib/components/Selection.d.ts +40 -41
- package/lib/components/Selection.js.map +2 -2
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TabsTransfer.d.ts +2 -2
- package/lib/components/TabsTransfer.js.map +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +1 -1
- package/lib/components/Transfer.js.map +2 -2
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +2 -3
- package/lib/components/TreeSelection.js.map +2 -2
- package/lib/components/formula/Editor.d.ts +45 -45
- package/lib/components/formula/Editor.js +16 -11
- package/lib/components/formula/Editor.js.map +2 -2
- package/lib/components/formula/Picker.d.ts +85 -40
- package/lib/components/formula/Picker.js +12 -6
- package/lib/components/formula/Picker.js.map +2 -2
- package/lib/components/formula/VariableList.d.ts +0 -2
- package/lib/components/formula/VariableList.js +5 -15
- package/lib/components/formula/VariableList.js.map +2 -2
- package/lib/components/index.d.ts +1 -3
- package/lib/components/index.js +1 -5
- package/lib/components/index.js.map +2 -2
- package/lib/components/schema-editor/SchemaVariableList.d.ts +0 -1
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.js.map +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +0 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.js.map +2 -2
- package/lib/helper.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/renderers/CRUD.js +3 -3
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Form/DiffEditor.d.ts +66 -20
- package/lib/renderers/Form/Editor.d.ts +66 -20
- package/lib/renderers/Form/Group.js +1 -1
- package/lib/renderers/Form/Group.js.map +2 -2
- package/lib/renderers/Form/InputFormula.d.ts +5 -5
- package/lib/renderers/Form/InputFormula.js +4 -3
- package/lib/renderers/Form/InputFormula.js.map +2 -2
- package/lib/renderers/Form/InputTag.d.ts +1 -1
- package/lib/renderers/Form/InputTag.js.map +1 -1
- package/lib/renderers/Form/Options.js +7 -7
- package/lib/renderers/Form/Options.js.map +2 -2
- package/lib/renderers/Form/Select.d.ts +6 -1
- package/lib/renderers/Form/Select.js +3 -1
- package/lib/renderers/Form/Select.js.map +2 -2
- package/lib/renderers/Form/TreeSelect.d.ts +0 -1
- package/lib/renderers/Form/TreeSelect.js +1 -9
- package/lib/renderers/Form/TreeSelect.js.map +2 -2
- package/lib/renderers/Form/index.js +9 -4
- package/lib/renderers/Form/index.js.map +2 -2
- package/lib/renderers/Table/exportExcel.js +1 -1
- package/lib/renderers/Table/exportExcel.js.map +2 -2
- package/lib/renderers/Table/index.d.ts +2 -0
- package/lib/renderers/Table/index.js +37 -5
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tpl.d.ts +4 -0
- package/lib/renderers/Tpl.js +6 -3
- package/lib/renderers/Tpl.js.map +2 -2
- package/lib/store/combo.d.ts +72 -22
- package/lib/store/form.d.ts +30 -9
- package/lib/store/form.js +28 -10
- package/lib/store/form.js.map +2 -2
- package/lib/store/formItem.d.ts +3 -1
- package/lib/store/formItem.js +3 -5
- package/lib/store/formItem.js.map +2 -2
- package/lib/store/table.d.ts +60 -18
- package/lib/themes/ang-ie11.css +33 -9
- package/lib/themes/ang.css +27 -9
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +33 -9
- package/lib/themes/antd.css +27 -9
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +35 -15
- package/lib/themes/cxd.css +31 -17
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +33 -9
- package/lib/themes/dark.css +27 -9
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +35 -15
- package/lib/themes/default.css +31 -17
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/formula.js +2 -3
- package/lib/utils/formula.js.map +2 -2
- package/lib/utils/helper.js +1 -1
- package/lib/utils/helper.js.map +2 -2
- package/package.json +1 -1
- package/schema.json +22 -16
- package/scss/_mixins.scss +1 -1
- package/scss/components/form/_date.scss +9 -10
- package/scss/components/form/_select.scss +14 -0
- package/scss/components/form/_transfer.scss +1 -2
- package/scss/themes/cxd.scss +4 -9
- package/sdk/ang-ie11.css +36 -9
- package/sdk/ang.css +30 -9
- package/sdk/antd-ie11.css +36 -9
- package/sdk/antd.css +30 -9
- package/sdk/barcode.js +51 -51
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/color-picker.js +65 -65
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +38 -16
- package/sdk/cxd.css +34 -18
- package/sdk/dark-ie11.css +36 -9
- package/sdk/dark.css +30 -9
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css.map +1 -1
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +16 -16
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +38 -16
- package/sdk/sdk.css +34 -18
- package/sdk/sdk.js +1356 -1354
- package/sdk/thirds/hls.js/hls.js +1 -1
- package/sdk/thirds/mpegts.js/mpegts.js +1 -1
- package/sdk/tinymce.js +57 -57
- package/src/components/Badge.tsx +1 -1
- package/src/components/GroupedSelection.tsx +2 -3
- package/src/components/PickerContainer.tsx +8 -13
- package/src/components/ResultBox.tsx +3 -1
- package/src/components/ResultList.tsx +51 -48
- package/src/components/Select.tsx +16 -8
- package/src/components/Selection.tsx +0 -1
- package/src/components/TabsTransfer.tsx +2 -2
- package/src/components/Transfer.tsx +4 -0
- package/src/components/TreeSelection.tsx +1 -2
- package/src/components/formula/Editor.tsx +51 -38
- package/src/components/formula/Picker.tsx +26 -7
- package/src/components/formula/VariableList.tsx +2 -36
- package/src/components/index.tsx +0 -4
- package/src/components/schema-editor/SchemaVariableList.tsx +2 -4
- package/src/components/schema-editor/SchemaVariableListPicker.tsx +1 -4
- package/src/renderers/CRUD.tsx +3 -3
- package/src/renderers/Form/Group.tsx +1 -1
- package/src/renderers/Form/InputFormula.tsx +11 -10
- package/src/renderers/Form/InputTag.tsx +1 -1
- package/src/renderers/Form/Options.tsx +7 -9
- package/src/renderers/Form/Select.tsx +10 -2
- package/src/renderers/Form/TreeSelect.tsx +14 -16
- package/src/renderers/Form/index.tsx +13 -2
- package/src/renderers/Table/exportExcel.ts +1 -1
- package/src/renderers/Table/index.tsx +42 -6
- package/src/renderers/Tpl.tsx +11 -1
- package/src/store/form.ts +31 -24
- package/src/store/formItem.ts +65 -52
- package/src/utils/formula.ts +2 -2
- package/src/utils/helper.ts +2 -2
@@ -101,6 +101,8 @@ var ResultBox = /** @class */ (function (_super) {
|
|
101
101
|
var _b = this.props, className = _b.className, cx = _b.classnames, classPrefix = _b.classPrefix, clearable = _b.clearable, disabled = _b.disabled, hasError = _b.hasError, result = _b.result, value = _b.value, placeholder = _b.placeholder, children = _b.children, itemRender = _b.itemRender, allowInput = _b.allowInput, inputPlaceholder = _b.inputPlaceholder, onResultChange = _b.onResultChange, onChange = _b.onChange, onResultClick = _b.onResultClick, __ = _b.translate, locale = _b.locale, onKeyPress = _b.onKeyPress, onFocus = _b.onFocus, onBlur = _b.onBlur, borderMode = _b.borderMode, useMobileUI = _b.useMobileUI, hasDropDownArrow = _b.hasDropDownArrow, onClear = _b.onClear, rest = (0, tslib_1.__rest)(_b, ["className", "classnames", "classPrefix", "clearable", "disabled", "hasError", "result", "value", "placeholder", "children", "itemRender", "allowInput", "inputPlaceholder", "onResultChange", "onChange", "onResultClick", "translate", "locale", "onKeyPress", "onFocus", "onBlur", "borderMode", "useMobileUI", "hasDropDownArrow", "onClear"]);
|
102
102
|
var isFocused = this.state.isFocused;
|
103
103
|
var mobileUI = useMobileUI && (0, helper_1.isMobile)();
|
104
|
+
/** 不需要透传给Input的属性 */
|
105
|
+
var omitPropsList = ['maxTagCount', 'overflowTagPopover'];
|
104
106
|
return (react_1.default.createElement("div", { className: cx('ResultBox', className, (_a = {
|
105
107
|
'is-focused': isFocused,
|
106
108
|
'is-disabled': disabled,
|
@@ -113,7 +115,7 @@ var ResultBox = /** @class */ (function (_super) {
|
|
113
115
|
_a["ResultBox--border".concat((0, helper_1.ucFirst)(borderMode))] = borderMode,
|
114
116
|
_a)), onClick: onResultClick, tabIndex: !allowInput && !disabled && onFocus ? 0 : -1, onKeyPress: allowInput ? undefined : onKeyPress, onFocus: allowInput ? undefined : onFocus, onBlur: allowInput ? undefined : onBlur },
|
115
117
|
Array.isArray(result) && result.length ? (this.renderMultipeTags(result)) : result && !Array.isArray(result) ? (react_1.default.createElement("span", { className: cx('ResultBox-singleValue') }, isPlainObject(result) ? itemRender(result) : result)) : allowInput && !disabled ? null : (react_1.default.createElement("span", { className: cx('ResultBox-placeholder') }, __(placeholder || 'placeholder.noData'))),
|
116
|
-
allowInput && !disabled ? (react_1.default.createElement(Input_1.default, (0, tslib_1.__assign)({}, rest, { onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(Array.isArray(result) && result.length
|
118
|
+
allowInput && !disabled ? (react_1.default.createElement(Input_1.default, (0, tslib_1.__assign)({}, (0, omit_1.default)(rest, omitPropsList), { onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(Array.isArray(result) && result.length
|
117
119
|
? inputPlaceholder
|
118
120
|
: result
|
119
121
|
? ''
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"/src/components/ResultBox.tsx"
|
7
7
|
],
|
8
8
|
"names": [],
|
9
|
-
"mappings": ";;;;AAAA,kCAA+C;AAC/C,6DAA0B;AAC1B,kEAA+B;AAC/B,4EAAyC;AAEzC,iDAA8C;AAC9C,iCAA6B;AAC7B,+DAA4B;AAC5B,0CAA4D;AAC5D,oCAAkD;AAClD,iFAA+D;AAC/D,oDAAuD;AAoBvD;IAA+B,0CAA+B;IAA9D;QAAA,
|
9
|
+
"mappings": ";;;;AAAA,kCAA+C;AAC/C,6DAA0B;AAC1B,kEAA+B;AAC/B,4EAAyC;AAEzC,iDAA8C;AAC9C,iCAA6B;AAC7B,+DAA4B;AAC5B,0CAA4D;AAC5D,oCAAkD;AAClD,iFAA+D;AAC/D,oDAAuD;AAoBvD;IAA+B,0CAA+B;IAA9D;QAAA,qEA2QC;QA9PC,WAAK,GAAG;YACN,SAAS,EAAE,KAAK;SACjB,CAAC;QAEF,cAAQ,GAAyB,eAAK,CAAC,SAAS,EAAE,CAAC;;IA0PrD,CAAC;IAxPC,yBAAK,GAAL;;QACE,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;IACjC,CAAC;IAED,wBAAI,GAAJ;;QACE,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,0CAAE,IAAI,EAAE,CAAC;IAChC,CAAC;IAGD,8BAAU,GAAV,UAAW,CAAwB;QACjC,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,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AC,CACzB,wCAAM,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC;gBACpC,8BAAC,YAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,GAAG,CACjC,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;IACJ,CAAC;;IAzQM,sBAAY,GAGf;QACF,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,oBAAoB;QACjC,gBAAgB,EAAE,mBAAmB;QACrC,UAAU,EAAE,UAAC,MAAW,IAAK,OAAA,CAC3B,4CAAO,UAAG,MAAM,CAAC,UAAU,IAAI,EAAE,SAAG,MAAM,CAAC,KAAK,CAAE,CAAQ,CAC3D,EAF4B,CAE5B;KACF,CAAC;IAiBF;QADC,iBAAQ;;0EACK,eAAK,oBAAL,eAAK,CAAC,UAAU;;+CAI7B;IAGD;QADC,iBAAQ;;;;gDAOR;IAGD;QADC,iBAAQ;;;;+CAOR;IAGD;QADC,iBAAQ;;0EACK,eAAK,oBAAL,eAAK,CAAC,UAAU;;+CAS7B;IAGD;QADC,iBAAQ;;0EACO,eAAK,oBAAL,eAAK,CAAC,WAAW;;iDAGhC;IAuMH,gBAAC;CAAA,AA3QD,CAA+B,eAAK,CAAC,SAAS,GA2Q7C;AA3QY,8BAAS;AA6QtB,kBAAe,IAAA,iBAAS,EACtB,IAAA,mBAAU,EACR,IAAA,+BAAc,EAAC,SAAS,EAAE;IACxB,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,gBAAgB;CACzB,CAAC,CACH,CACF,CAAC",
|
10
10
|
"sourcesContent": [
|
11
|
-
"import {ThemeProps, themeable} from '../theme';\nimport React from 'react';\nimport omit from 'lodash/omit';\nimport isInteger from 'lodash/isInteger';\nimport {InputBoxProps} from './InputBox';\nimport {uncontrollable} from 'uncontrollable';\nimport {Icon} from './icons';\nimport Input from './Input';\nimport {autobind, isMobile, ucFirst} from '../utils/helper';\nimport {LocaleProps, localeable} from '../locale';\nimport TooltipWrapper, {TooltipObject} from './TooltipWrapper';\nimport isPlainObject = require('lodash/isPlainObject');\n\nexport interface ResultBoxProps\n extends ThemeProps,\n LocaleProps,\n Omit<InputBoxProps, 'result' | 'prefix' | 'onChange' | 'translate'> {\n onChange?: (value: string) => void;\n onResultClick?: (e: React.MouseEvent<HTMLElement>) => void;\n result?: Array<any> | any;\n itemRender: (value: any) => JSX.Element | string;\n onResultChange?: (value: Array<any>) => void;\n onClear?: (e: React.MouseEvent<HTMLElement>) => void;\n allowInput?: boolean;\n inputPlaceholder: string;\n useMobileUI?: boolean;\n hasDropDownArrow?: boolean;\n maxTagCount?: number;\n overflowTagPopover?: TooltipObject;\n}\n\nexport class ResultBox extends React.Component<ResultBoxProps> {\n static defaultProps: Pick<\n ResultBoxProps,\n 'clearable' | 'placeholder' | 'itemRender' | 'inputPlaceholder'\n > = {\n clearable: false,\n placeholder: 'placeholder.noData',\n inputPlaceholder: 'placeholder.enter',\n itemRender: (option: any) => (\n <span>{`${option.scopeLabel || ''}${option.label}`}</span>\n )\n };\n\n state = {\n isFocused: false\n };\n\n inputRef: React.RefObject<any> = React.createRef();\n\n focus() {\n this.inputRef.current?.focus();\n }\n\n blur() {\n this.inputRef.current?.blur();\n }\n\n @autobind\n clearValue(e: React.MouseEvent<any>) {\n e.preventDefault();\n this.props.onClear && this.props.onClear(e);\n this.props.onResultChange && this.props.onResultChange([]);\n }\n\n @autobind\n handleFocus(e: any) {\n const onFocus = this.props.onFocus;\n onFocus && onFocus(e);\n this.setState({\n isFocused: true\n });\n }\n\n @autobind\n handleBlur(e: any) {\n const onBlur = this.props.onBlur;\n onBlur && onBlur(e);\n this.setState({\n isFocused: false\n });\n }\n\n @autobind\n removeItem(e: React.MouseEvent<HTMLElement>) {\n e.stopPropagation();\n e.preventDefault();\n\n const {result, onResultChange} = this.props;\n const index = parseInt(e.currentTarget.getAttribute('data-index')!, 10);\n const newResult = Array.isArray(result) ? result.concat() : [];\n newResult.splice(index, 1);\n onResultChange && onResultChange(newResult);\n }\n\n @autobind\n handleChange(e: React.ChangeEvent<HTMLInputElement>) {\n const {onChange} = this.props;\n onChange?.(e.currentTarget.value);\n }\n\n renderMultipeTags(tags: any[]) {\n const {\n maxTagCount,\n overflowTagPopover,\n itemRender,\n classnames: cx\n } = this.props;\n\n if (\n maxTagCount != null &&\n isInteger(Math.floor(maxTagCount)) &&\n Math.floor(maxTagCount) >= 0 &&\n Math.floor(maxTagCount) < tags.length\n ) {\n const maxVisibleCount = Math.floor(maxTagCount);\n const tooltipProps: TooltipObject = {\n placement: 'top',\n trigger: 'hover',\n showArrow: false,\n offset: [0, -10],\n tooltipClassName: cx(\n 'ResultBox-overflow',\n overflowTagPopover?.tooltipClassName\n ),\n ...omit(overflowTagPopover, ['children', 'content', 'tooltipClassName'])\n };\n\n return [\n ...tags.slice(0, maxVisibleCount),\n {label: `+ ${tags.length - maxVisibleCount} ...`}\n ].map((item, index) => {\n return index === maxVisibleCount ? (\n <TooltipWrapper\n key={tags.length}\n tooltip={{\n ...tooltipProps,\n children: () => (\n <div className={cx('ResultBox-overflow-wrapper')}>\n {tags\n .slice(maxVisibleCount, tags.length)\n .map((item, index) => {\n const itemIndex = index + maxVisibleCount;\n\n return (\n <div className={cx('ResultBox-value')} key={itemIndex}>\n <span className={cx('ResultBox-valueLabel')}>\n {itemRender(item)}\n </span>\n <a data-index={itemIndex} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n );\n })}\n </div>\n )\n }}\n >\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>{item.label}</span>\n </div>\n </TooltipWrapper>\n ) : (\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>\n {itemRender(item)}\n </span>\n <a data-index={index} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n );\n });\n }\n\n return tags.map((item, index) => (\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>{itemRender(item)}</span>\n <a data-index={index} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n ));\n }\n\n render() {\n const {\n className,\n classnames: cx,\n classPrefix,\n clearable,\n disabled,\n hasError,\n result,\n value,\n placeholder,\n children,\n itemRender,\n allowInput,\n inputPlaceholder,\n onResultChange,\n onChange,\n onResultClick,\n translate: __,\n locale,\n onKeyPress,\n onFocus,\n onBlur,\n borderMode,\n useMobileUI,\n hasDropDownArrow,\n onClear,\n ...rest\n } = this.props;\n const isFocused = this.state.isFocused;\n const mobileUI = useMobileUI && isMobile();\n\n return (\n <div\n className={cx('ResultBox', className, {\n 'is-focused': isFocused,\n 'is-disabled': disabled,\n 'is-error': hasError,\n 'is-clickable': onResultClick,\n 'is-clearable': clearable,\n 'is-mobile': mobileUI,\n 'is-group': Array.isArray(result),\n [`ResultBox--border${ucFirst(borderMode)}`]: borderMode\n })}\n onClick={onResultClick}\n tabIndex={!allowInput && !disabled && onFocus ? 0 : -1}\n onKeyPress={allowInput ? undefined : onKeyPress}\n onFocus={allowInput ? undefined : onFocus}\n onBlur={allowInput ? undefined : onBlur}\n >\n {Array.isArray(result) && result.length ? (\n this.renderMultipeTags(result)\n ) : result && !Array.isArray(result) ? (\n <span className={cx('ResultBox-singleValue')}>\n {isPlainObject(result) ? itemRender(result) : result}\n </span>\n ) : allowInput && !disabled ? null : (\n <span className={cx('ResultBox-placeholder')}>\n {__(placeholder || 'placeholder.noData')}\n </span>\n )}\n\n {allowInput && !disabled ? (\n <Input\n {...rest}\n onKeyPress={onKeyPress}\n ref={this.inputRef}\n value={value || ''}\n onChange={this.handleChange}\n placeholder={__(\n Array.isArray(result) && result.length\n ? inputPlaceholder\n : result\n ? ''\n : placeholder\n )}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n ) : null}\n\n {children}\n\n {clearable &&\n !disabled &&\n (Array.isArray(result) ? result.length : result) ? (\n <a\n onClick={this.clearValue}\n className={cx('ResultBox-clear', {\n 'ResultBox-clear-with-arrow': hasDropDownArrow\n })}\n >\n <div className={cx('ResultBox-clear-wrap')}>\n <Icon icon=\"input-clear\" className=\"icon\" />\n </div>\n </a>\n ) : null}\n {hasDropDownArrow && !mobileUI && (\n <span className={cx('ResultBox-pc-arrow')}>\n <Icon icon=\"right-arrow-bold\" className=\"icon\" />\n </span>\n )}\n {!allowInput && mobileUI ? (\n <span className={cx('ResultBox-arrow')}>\n <Icon icon=\"caret\" className=\"icon\" />\n </span>\n ) : null}\n </div>\n );\n }\n}\n\nexport default themeable(\n localeable(\n uncontrollable(ResultBox, {\n value: 'onChange',\n result: 'onResultChange'\n })\n )\n);\n"
|
11
|
+
"import {ThemeProps, themeable} from '../theme';\nimport React from 'react';\nimport omit from 'lodash/omit';\nimport isInteger from 'lodash/isInteger';\nimport {InputBoxProps} from './InputBox';\nimport {uncontrollable} from 'uncontrollable';\nimport {Icon} from './icons';\nimport Input from './Input';\nimport {autobind, isMobile, ucFirst} from '../utils/helper';\nimport {LocaleProps, localeable} from '../locale';\nimport TooltipWrapper, {TooltipObject} from './TooltipWrapper';\nimport isPlainObject = require('lodash/isPlainObject');\n\nexport interface ResultBoxProps\n extends ThemeProps,\n LocaleProps,\n Omit<InputBoxProps, 'result' | 'prefix' | 'onChange' | 'translate'> {\n onChange?: (value: string) => void;\n onResultClick?: (e: React.MouseEvent<HTMLElement>) => void;\n result?: Array<any> | any;\n itemRender: (value: any) => JSX.Element | string;\n onResultChange?: (value: Array<any>) => void;\n onClear?: (e: React.MouseEvent<HTMLElement>) => void;\n allowInput?: boolean;\n inputPlaceholder: string;\n useMobileUI?: boolean;\n hasDropDownArrow?: boolean;\n maxTagCount?: number;\n overflowTagPopover?: TooltipObject;\n}\n\nexport class ResultBox extends React.Component<ResultBoxProps> {\n static defaultProps: Pick<\n ResultBoxProps,\n 'clearable' | 'placeholder' | 'itemRender' | 'inputPlaceholder'\n > = {\n clearable: false,\n placeholder: 'placeholder.noData',\n inputPlaceholder: 'placeholder.enter',\n itemRender: (option: any) => (\n <span>{`${option.scopeLabel || ''}${option.label}`}</span>\n )\n };\n\n state = {\n isFocused: false\n };\n\n inputRef: React.RefObject<any> = React.createRef();\n\n focus() {\n this.inputRef.current?.focus();\n }\n\n blur() {\n this.inputRef.current?.blur();\n }\n\n @autobind\n clearValue(e: React.MouseEvent<any>) {\n e.preventDefault();\n this.props.onClear && this.props.onClear(e);\n this.props.onResultChange && this.props.onResultChange([]);\n }\n\n @autobind\n handleFocus(e: any) {\n const onFocus = this.props.onFocus;\n onFocus && onFocus(e);\n this.setState({\n isFocused: true\n });\n }\n\n @autobind\n handleBlur(e: any) {\n const onBlur = this.props.onBlur;\n onBlur && onBlur(e);\n this.setState({\n isFocused: false\n });\n }\n\n @autobind\n removeItem(e: React.MouseEvent<HTMLElement>) {\n e.stopPropagation();\n e.preventDefault();\n\n const {result, onResultChange} = this.props;\n const index = parseInt(e.currentTarget.getAttribute('data-index')!, 10);\n const newResult = Array.isArray(result) ? result.concat() : [];\n newResult.splice(index, 1);\n onResultChange && onResultChange(newResult);\n }\n\n @autobind\n handleChange(e: React.ChangeEvent<HTMLInputElement>) {\n const {onChange} = this.props;\n onChange?.(e.currentTarget.value);\n }\n\n renderMultipeTags(tags: any[]) {\n const {\n maxTagCount,\n overflowTagPopover,\n itemRender,\n classnames: cx\n } = this.props;\n\n if (\n maxTagCount != null &&\n isInteger(Math.floor(maxTagCount)) &&\n Math.floor(maxTagCount) >= 0 &&\n Math.floor(maxTagCount) < tags.length\n ) {\n const maxVisibleCount = Math.floor(maxTagCount);\n const tooltipProps: TooltipObject = {\n placement: 'top',\n trigger: 'hover',\n showArrow: false,\n offset: [0, -10],\n tooltipClassName: cx(\n 'ResultBox-overflow',\n overflowTagPopover?.tooltipClassName\n ),\n ...omit(overflowTagPopover, ['children', 'content', 'tooltipClassName'])\n };\n\n return [\n ...tags.slice(0, maxVisibleCount),\n {label: `+ ${tags.length - maxVisibleCount} ...`}\n ].map((item, index) => {\n return index === maxVisibleCount ? (\n <TooltipWrapper\n key={tags.length}\n tooltip={{\n ...tooltipProps,\n children: () => (\n <div className={cx('ResultBox-overflow-wrapper')}>\n {tags\n .slice(maxVisibleCount, tags.length)\n .map((item, index) => {\n const itemIndex = index + maxVisibleCount;\n\n return (\n <div className={cx('ResultBox-value')} key={itemIndex}>\n <span className={cx('ResultBox-valueLabel')}>\n {itemRender(item)}\n </span>\n <a data-index={itemIndex} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n );\n })}\n </div>\n )\n }}\n >\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>{item.label}</span>\n </div>\n </TooltipWrapper>\n ) : (\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>\n {itemRender(item)}\n </span>\n <a data-index={index} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n );\n });\n }\n\n return tags.map((item, index) => (\n <div className={cx('ResultBox-value')} key={index}>\n <span className={cx('ResultBox-valueLabel')}>{itemRender(item)}</span>\n <a data-index={index} onClick={this.removeItem}>\n <Icon icon=\"close\" className=\"icon\" />\n </a>\n </div>\n ));\n }\n\n render() {\n const {\n className,\n classnames: cx,\n classPrefix,\n clearable,\n disabled,\n hasError,\n result,\n value,\n placeholder,\n children,\n itemRender,\n allowInput,\n inputPlaceholder,\n onResultChange,\n onChange,\n onResultClick,\n translate: __,\n locale,\n onKeyPress,\n onFocus,\n onBlur,\n borderMode,\n useMobileUI,\n hasDropDownArrow,\n onClear,\n ...rest\n } = this.props;\n const isFocused = this.state.isFocused;\n const mobileUI = useMobileUI && isMobile();\n /** 不需要透传给Input的属性 */\n const omitPropsList = ['maxTagCount', 'overflowTagPopover'];\n\n return (\n <div\n className={cx('ResultBox', className, {\n 'is-focused': isFocused,\n 'is-disabled': disabled,\n 'is-error': hasError,\n 'is-clickable': onResultClick,\n 'is-clearable': clearable,\n 'is-mobile': mobileUI,\n 'is-group': Array.isArray(result),\n [`ResultBox--border${ucFirst(borderMode)}`]: borderMode\n })}\n onClick={onResultClick}\n tabIndex={!allowInput && !disabled && onFocus ? 0 : -1}\n onKeyPress={allowInput ? undefined : onKeyPress}\n onFocus={allowInput ? undefined : onFocus}\n onBlur={allowInput ? undefined : onBlur}\n >\n {Array.isArray(result) && result.length ? (\n this.renderMultipeTags(result)\n ) : result && !Array.isArray(result) ? (\n <span className={cx('ResultBox-singleValue')}>\n {isPlainObject(result) ? itemRender(result) : result}\n </span>\n ) : allowInput && !disabled ? null : (\n <span className={cx('ResultBox-placeholder')}>\n {__(placeholder || 'placeholder.noData')}\n </span>\n )}\n\n {allowInput && !disabled ? (\n <Input\n {...omit(rest, omitPropsList)}\n onKeyPress={onKeyPress}\n ref={this.inputRef}\n value={value || ''}\n onChange={this.handleChange}\n placeholder={__(\n Array.isArray(result) && result.length\n ? inputPlaceholder\n : result\n ? ''\n : placeholder\n )}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n ) : null}\n\n {children}\n\n {clearable &&\n !disabled &&\n (Array.isArray(result) ? result.length : result) ? (\n <a\n onClick={this.clearValue}\n className={cx('ResultBox-clear', {\n 'ResultBox-clear-with-arrow': hasDropDownArrow\n })}\n >\n <div className={cx('ResultBox-clear-wrap')}>\n <Icon icon=\"input-clear\" className=\"icon\" />\n </div>\n </a>\n ) : null}\n {hasDropDownArrow && !mobileUI && (\n <span className={cx('ResultBox-pc-arrow')}>\n <Icon icon=\"right-arrow-bold\" className=\"icon\" />\n </span>\n )}\n {!allowInput && mobileUI ? (\n <span className={cx('ResultBox-arrow')}>\n <Icon icon=\"caret\" className=\"icon\" />\n </span>\n ) : null}\n </div>\n );\n }\n}\n\nexport default themeable(\n localeable(\n uncontrollable(ResultBox, {\n value: 'onChange',\n result: 'onResultChange'\n })\n )\n);\n"
|
12
12
|
]
|
13
13
|
}
|
@@ -7,7 +7,8 @@ import Sortable from 'sortablejs';
|
|
7
7
|
import { Option, Options } from './Select';
|
8
8
|
import { ThemeProps } from '../theme';
|
9
9
|
import { LocaleProps } from '../locale';
|
10
|
-
|
10
|
+
import { BaseSelectionProps } from './Selection';
|
11
|
+
export interface ResultListProps extends ThemeProps, LocaleProps, BaseSelectionProps {
|
11
12
|
className?: string;
|
12
13
|
value?: Array<Option>;
|
13
14
|
onChange?: (value: Array<Option>, optionModified?: boolean) => void;
|
@@ -17,9 +18,18 @@ export interface ResultListProps extends ThemeProps, LocaleProps {
|
|
17
18
|
placeholder: string;
|
18
19
|
itemRender: (option: Option, states: ItemRenderStates) => JSX.Element;
|
19
20
|
itemClassName?: string;
|
21
|
+
columns: Array<{
|
22
|
+
name: string;
|
23
|
+
label: string;
|
24
|
+
[propName: string]: any;
|
25
|
+
}>;
|
26
|
+
cellRender?: (column: {
|
27
|
+
name: string;
|
28
|
+
label: string;
|
29
|
+
[propName: string]: any;
|
30
|
+
}, option: Option, colIndex: number, rowIndex: number) => JSX.Element;
|
20
31
|
searchable?: boolean;
|
21
32
|
onSearch?: Function;
|
22
|
-
valueField?: string;
|
23
33
|
}
|
24
34
|
export interface ItemRenderStates {
|
25
35
|
index: number;
|
@@ -45,12 +55,12 @@ export declare class ResultList extends React.Component<ResultListProps, ResultL
|
|
45
55
|
handleValueChange(index: number, value: any, name: string): void;
|
46
56
|
search(inputValue: string): void;
|
47
57
|
clearSearch(): void;
|
48
|
-
handleCloseItem(
|
58
|
+
handleCloseItem(option: Option): void;
|
49
59
|
renderNormalList(value?: Options): JSX.Element;
|
50
60
|
render(): JSX.Element;
|
51
61
|
}
|
52
62
|
declare const _default: {
|
53
|
-
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
63
|
+
new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
54
64
|
locale?: string | undefined;
|
55
65
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
56
66
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps): {
|
@@ -59,12 +69,12 @@ declare const _default: {
|
|
59
69
|
getWrappedInstance(): any;
|
60
70
|
render(): JSX.Element;
|
61
71
|
context: any;
|
62
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
72
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
63
73
|
locale?: string | undefined;
|
64
74
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
65
75
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
66
76
|
forceUpdate(callback?: (() => void) | undefined): void;
|
67
|
-
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
77
|
+
readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
68
78
|
locale?: string | undefined;
|
69
79
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
70
80
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
|
@@ -75,35 +85,35 @@ declare const _default: {
|
|
75
85
|
[key: string]: React.ReactInstance;
|
76
86
|
};
|
77
87
|
componentDidMount?(): void;
|
78
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
88
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
79
89
|
locale?: string | undefined;
|
80
90
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
81
91
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
82
92
|
componentWillUnmount?(): void;
|
83
93
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
84
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
94
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
85
95
|
locale?: string | undefined;
|
86
96
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
87
97
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
88
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
98
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
89
99
|
locale?: string | undefined;
|
90
100
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
91
101
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
92
102
|
componentWillMount?(): void;
|
93
103
|
UNSAFE_componentWillMount?(): void;
|
94
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
104
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
95
105
|
locale?: string | undefined;
|
96
106
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
97
107
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
98
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
108
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
99
109
|
locale?: string | undefined;
|
100
110
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
101
111
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
102
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
112
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
103
113
|
locale?: string | undefined;
|
104
114
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
105
115
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
106
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
116
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
107
117
|
locale?: string | undefined;
|
108
118
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
109
119
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -111,7 +121,7 @@ declare const _default: {
|
|
111
121
|
displayName: string;
|
112
122
|
contextType: React.Context<string>;
|
113
123
|
ComposedComponent: React.ComponentType<{
|
114
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
124
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
115
125
|
locale?: string | undefined;
|
116
126
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
117
127
|
}): {
|
@@ -120,12 +130,12 @@ declare const _default: {
|
|
120
130
|
getWrappedInstance(): any;
|
121
131
|
render(): JSX.Element;
|
122
132
|
context: any;
|
123
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
133
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
124
134
|
locale?: string | undefined;
|
125
135
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
126
136
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
127
137
|
forceUpdate(callback?: (() => void) | undefined): void;
|
128
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
138
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
129
139
|
locale?: string | undefined;
|
130
140
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
131
141
|
}> & Readonly<{
|
@@ -136,35 +146,35 @@ declare const _default: {
|
|
136
146
|
[key: string]: React.ReactInstance;
|
137
147
|
};
|
138
148
|
componentDidMount?(): void;
|
139
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
149
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
140
150
|
locale?: string | undefined;
|
141
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
142
152
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
143
153
|
componentWillUnmount?(): void;
|
144
154
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
145
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
155
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
146
156
|
locale?: string | undefined;
|
147
157
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
148
158
|
}>, prevState: Readonly<{}>): any;
|
149
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
159
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
150
160
|
locale?: string | undefined;
|
151
161
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
152
162
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
153
163
|
componentWillMount?(): void;
|
154
164
|
UNSAFE_componentWillMount?(): void;
|
155
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
165
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
156
166
|
locale?: string | undefined;
|
157
167
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
158
168
|
}>, nextContext: any): void;
|
159
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
169
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
160
170
|
locale?: string | undefined;
|
161
171
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
162
172
|
}>, nextContext: any): void;
|
163
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
173
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
164
174
|
locale?: string | undefined;
|
165
175
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
166
176
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
167
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
177
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
168
178
|
locale?: string | undefined;
|
169
179
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
170
180
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -176,7 +186,7 @@ declare const _default: {
|
|
176
186
|
ComposedComponent: typeof ResultList;
|
177
187
|
}>;
|
178
188
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
179
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
189
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
180
190
|
locale?: string | undefined;
|
181
191
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
182
192
|
}): {
|
@@ -185,12 +195,12 @@ declare const _default: {
|
|
185
195
|
getWrappedInstance(): any;
|
186
196
|
render(): JSX.Element;
|
187
197
|
context: any;
|
188
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
198
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
189
199
|
locale?: string | undefined;
|
190
200
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
191
201
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
192
202
|
forceUpdate(callback?: (() => void) | undefined): void;
|
193
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
203
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
194
204
|
locale?: string | undefined;
|
195
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
196
206
|
}> & Readonly<{
|
@@ -201,35 +211,35 @@ declare const _default: {
|
|
201
211
|
[key: string]: React.ReactInstance;
|
202
212
|
};
|
203
213
|
componentDidMount?(): void;
|
204
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
214
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
205
215
|
locale?: string | undefined;
|
206
216
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
207
217
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
208
218
|
componentWillUnmount?(): void;
|
209
219
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
210
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
220
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
211
221
|
locale?: string | undefined;
|
212
222
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
213
223
|
}>, prevState: Readonly<{}>): any;
|
214
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
224
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
215
225
|
locale?: string | undefined;
|
216
226
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
217
227
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
218
228
|
componentWillMount?(): void;
|
219
229
|
UNSAFE_componentWillMount?(): void;
|
220
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
230
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
221
231
|
locale?: string | undefined;
|
222
232
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
223
233
|
}>, nextContext: any): void;
|
224
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
234
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
225
235
|
locale?: string | undefined;
|
226
236
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
227
237
|
}>, nextContext: any): void;
|
228
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
238
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
229
239
|
locale?: string | undefined;
|
230
240
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
231
241
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
232
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
242
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
233
243
|
locale?: string | undefined;
|
234
244
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
235
245
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -241,7 +251,7 @@ declare const _default: {
|
|
241
251
|
ComposedComponent: typeof ResultList;
|
242
252
|
}, {}> & {
|
243
253
|
ComposedComponent: {
|
244
|
-
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
254
|
+
new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
245
255
|
locale?: string | undefined;
|
246
256
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
247
257
|
}): {
|
@@ -250,12 +260,12 @@ declare const _default: {
|
|
250
260
|
getWrappedInstance(): any;
|
251
261
|
render(): JSX.Element;
|
252
262
|
context: any;
|
253
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
263
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
254
264
|
locale?: string | undefined;
|
255
265
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
256
266
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
257
267
|
forceUpdate(callback?: (() => void) | undefined): void;
|
258
|
-
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
268
|
+
readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
259
269
|
locale?: string | undefined;
|
260
270
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
261
271
|
}> & Readonly<{
|
@@ -266,35 +276,35 @@ declare const _default: {
|
|
266
276
|
[key: string]: React.ReactInstance;
|
267
277
|
};
|
268
278
|
componentDidMount?(): void;
|
269
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
279
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
270
280
|
locale?: string | undefined;
|
271
281
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
272
282
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
273
283
|
componentWillUnmount?(): void;
|
274
284
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
275
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
285
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
276
286
|
locale?: string | undefined;
|
277
287
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
278
288
|
}>, prevState: Readonly<{}>): any;
|
279
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
289
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
280
290
|
locale?: string | undefined;
|
281
291
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
282
292
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
283
293
|
componentWillMount?(): void;
|
284
294
|
UNSAFE_componentWillMount?(): void;
|
285
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
295
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
286
296
|
locale?: string | undefined;
|
287
297
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
288
298
|
}>, nextContext: any): void;
|
289
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
299
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
290
300
|
locale?: string | undefined;
|
291
301
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
292
302
|
}>, nextContext: any): void;
|
293
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
303
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
294
304
|
locale?: string | undefined;
|
295
305
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
296
306
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
297
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "disabled" | "
|
307
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "title" | "className" | "theme" | "value" | "columns" | "disabled" | "multiple" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "clearable" | "sortable" | "searchable" | "onSearch" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "cellRender"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender">, never>> & {
|
298
308
|
locale?: string | undefined;
|
299
309
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
300
310
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|