amis 1.9.1-beta.19 → 1.9.1-beta.23
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/ResultBox.d.ts +44 -40
- package/lib/components/ResultBox.js +43 -7
- package/lib/components/ResultBox.js.map +2 -2
- package/lib/components/ResultTableList.js +16 -17
- package/lib/components/ResultTableList.js.map +2 -2
- package/lib/components/Select.d.ts +498 -294
- package/lib/components/Select.js +64 -12
- package/lib/components/Select.js.map +2 -2
- package/lib/components/TableSelection.d.ts +42 -40
- package/lib/components/TableSelection.js +7 -2
- package/lib/components/TableSelection.js.map +2 -2
- package/lib/components/TooltipWrapper.d.ts +1 -1
- package/lib/components/TooltipWrapper.js.map +2 -2
- package/lib/components/TransferDropDown.d.ts +43 -40
- package/lib/components/TransferDropDown.js +2 -2
- package/lib/components/TransferDropDown.js.map +2 -2
- package/lib/helper.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/en-US.js.map +2 -2
- package/lib/renderers/CRUD.js +2 -2
- 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/InputImage.js.map +2 -2
- package/lib/renderers/Form/InputTag.d.ts +8 -0
- package/lib/renderers/Form/InputTag.js +2 -2
- package/lib/renderers/Form/InputTag.js.map +2 -2
- package/lib/renderers/Form/Options.js +7 -7
- package/lib/renderers/Form/Options.js.map +2 -2
- package/lib/renderers/Form/Select.d.ts +24 -0
- package/lib/renderers/Form/Select.js +5 -3
- package/lib/renderers/Form/Select.js.map +2 -2
- package/lib/renderers/Form/Transfer.d.ts +1 -0
- package/lib/renderers/Form/Transfer.js +4 -0
- package/lib/renderers/Form/Transfer.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/QRCode.d.ts +16 -0
- package/lib/renderers/QRCode.js +25 -1
- package/lib/renderers/QRCode.js.map +2 -2
- package/lib/renderers/Table/exportExcel.js +51 -37
- 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 +94 -13
- package/lib/themes/ang.css +99 -13
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +94 -13
- package/lib/themes/antd.css +99 -13
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +94 -13
- package/lib/themes/cxd.css +101 -13
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +94 -13
- package/lib/themes/dark.css +99 -13
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +94 -13
- package/lib/themes/default.css +101 -13
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/helper.js +11 -1
- package/lib/utils/helper.js.map +2 -2
- package/package.json +1 -1
- package/schema.json +94 -28
- package/scss/_mixins.scss +1 -1
- package/scss/_properties.scss +11 -6
- package/scss/components/_result-box.scss +34 -2
- package/scss/components/form/_select.scss +88 -32
- package/scss/components/form/_selection.scss +9 -6
- package/scss/themes/_cxd-variables.scss +2 -0
- package/scss/themes/cxd.scss +0 -2
- package/sdk/ang-ie11.css +108 -13
- package/sdk/ang.css +113 -13
- package/sdk/antd-ie11.css +108 -13
- package/sdk/antd.css +113 -13
- 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 +108 -13
- package/sdk/cxd.css +115 -13
- package/sdk/dark-ie11.css +108 -13
- package/sdk/dark.css +113 -13
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css.map +1 -1
- package/sdk/locale/de-DE.js +2 -2
- 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 +108 -13
- package/sdk/sdk.css +115 -13
- package/sdk/sdk.js +1341 -1341
- 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/ResultBox.tsx +98 -12
- package/src/components/ResultTableList.tsx +32 -33
- package/src/components/Select.tsx +149 -17
- package/src/components/TableSelection.tsx +15 -8
- package/src/components/TooltipWrapper.tsx +20 -14
- package/src/components/TransferDropDown.tsx +9 -1
- package/src/locale/de-DE.ts +2 -2
- package/src/locale/en-US.ts +2 -2
- package/src/renderers/CRUD.tsx +2 -2
- package/src/renderers/Form/Group.tsx +1 -1
- package/src/renderers/Form/InputImage.tsx +4 -2
- package/src/renderers/Form/InputTag.tsx +14 -0
- package/src/renderers/Form/Options.tsx +7 -9
- package/src/renderers/Form/Select.tsx +41 -2
- package/src/renderers/Form/Transfer.tsx +6 -0
- package/src/renderers/Form/TreeSelect.tsx +14 -16
- package/src/renderers/Form/index.tsx +13 -2
- package/src/renderers/QRCode.tsx +50 -1
- package/src/renderers/Table/exportExcel.ts +30 -13
- 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/helper.ts +11 -1
@@ -3,6 +3,8 @@ import { BaseSelection, BaseSelectionProps } from './Selection';
|
|
3
3
|
import React from 'react';
|
4
4
|
import { Option } from './Select';
|
5
5
|
export interface TableSelectionProps extends BaseSelectionProps {
|
6
|
+
/** 是否为结果渲染列表 */
|
7
|
+
resultMode?: boolean;
|
6
8
|
columns: Array<{
|
7
9
|
name: string;
|
8
10
|
label: string;
|
@@ -36,7 +38,7 @@ export declare class TableSelection extends BaseSelection<TableSelectionProps> {
|
|
36
38
|
render(): JSX.Element;
|
37
39
|
}
|
38
40
|
declare const _default: {
|
39
|
-
new (props: Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
41
|
+
new (props: Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
40
42
|
cellRender: (column: {
|
41
43
|
[propName: string]: any;
|
42
44
|
name: string;
|
@@ -55,7 +57,7 @@ declare const _default: {
|
|
55
57
|
getWrappedInstance(): any;
|
56
58
|
render(): JSX.Element;
|
57
59
|
context: any;
|
58
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
60
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
59
61
|
cellRender: (column: {
|
60
62
|
[propName: string]: any;
|
61
63
|
name: string;
|
@@ -70,7 +72,7 @@ declare const _default: {
|
|
70
72
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
71
73
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
72
74
|
forceUpdate(callback?: (() => void) | undefined): void;
|
73
|
-
readonly props: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
75
|
+
readonly props: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
74
76
|
cellRender: (column: {
|
75
77
|
[propName: string]: any;
|
76
78
|
name: string;
|
@@ -91,7 +93,7 @@ declare const _default: {
|
|
91
93
|
[key: string]: React.ReactInstance;
|
92
94
|
};
|
93
95
|
componentDidMount?(): void;
|
94
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
96
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
95
97
|
cellRender: (column: {
|
96
98
|
[propName: string]: any;
|
97
99
|
name: string;
|
@@ -107,7 +109,7 @@ declare const _default: {
|
|
107
109
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
108
110
|
componentWillUnmount?(): void;
|
109
111
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
110
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
112
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
111
113
|
cellRender: (column: {
|
112
114
|
[propName: string]: any;
|
113
115
|
name: string;
|
@@ -121,7 +123,7 @@ declare const _default: {
|
|
121
123
|
locale?: string | undefined;
|
122
124
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
123
125
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
124
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
126
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
125
127
|
cellRender: (column: {
|
126
128
|
[propName: string]: any;
|
127
129
|
name: string;
|
@@ -137,7 +139,7 @@ declare const _default: {
|
|
137
139
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
138
140
|
componentWillMount?(): void;
|
139
141
|
UNSAFE_componentWillMount?(): void;
|
140
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
142
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
141
143
|
cellRender: (column: {
|
142
144
|
[propName: string]: any;
|
143
145
|
name: string;
|
@@ -151,7 +153,7 @@ declare const _default: {
|
|
151
153
|
locale?: string | undefined;
|
152
154
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
153
155
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
154
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
156
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
155
157
|
cellRender: (column: {
|
156
158
|
[propName: string]: any;
|
157
159
|
name: string;
|
@@ -165,7 +167,7 @@ declare const _default: {
|
|
165
167
|
locale?: string | undefined;
|
166
168
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
167
169
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
168
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
170
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
169
171
|
cellRender: (column: {
|
170
172
|
[propName: string]: any;
|
171
173
|
name: string;
|
@@ -179,7 +181,7 @@ declare const _default: {
|
|
179
181
|
locale?: string | undefined;
|
180
182
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
181
183
|
}, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
182
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
184
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
183
185
|
cellRender: (column: {
|
184
186
|
[propName: string]: any;
|
185
187
|
name: string;
|
@@ -197,7 +199,7 @@ declare const _default: {
|
|
197
199
|
displayName: string;
|
198
200
|
contextType: React.Context<string>;
|
199
201
|
ComposedComponent: React.ComponentType<{
|
200
|
-
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
202
|
+
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
201
203
|
cellRender: (column: {
|
202
204
|
[propName: string]: any;
|
203
205
|
name: string;
|
@@ -216,7 +218,7 @@ declare const _default: {
|
|
216
218
|
getWrappedInstance(): any;
|
217
219
|
render(): JSX.Element;
|
218
220
|
context: any;
|
219
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
221
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
220
222
|
cellRender: (column: {
|
221
223
|
[propName: string]: any;
|
222
224
|
name: string;
|
@@ -231,7 +233,7 @@ declare const _default: {
|
|
231
233
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
232
234
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
233
235
|
forceUpdate(callback?: (() => void) | undefined): void;
|
234
|
-
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
236
|
+
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
235
237
|
cellRender: (column: {
|
236
238
|
[propName: string]: any;
|
237
239
|
name: string;
|
@@ -252,7 +254,7 @@ declare const _default: {
|
|
252
254
|
[key: string]: React.ReactInstance;
|
253
255
|
};
|
254
256
|
componentDidMount?(): void;
|
255
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
257
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
256
258
|
cellRender: (column: {
|
257
259
|
[propName: string]: any;
|
258
260
|
name: string;
|
@@ -268,7 +270,7 @@ declare const _default: {
|
|
268
270
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
269
271
|
componentWillUnmount?(): void;
|
270
272
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
271
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
273
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
272
274
|
cellRender: (column: {
|
273
275
|
[propName: string]: any;
|
274
276
|
name: string;
|
@@ -282,7 +284,7 @@ declare const _default: {
|
|
282
284
|
locale?: string | undefined;
|
283
285
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
284
286
|
}>, prevState: Readonly<{}>): any;
|
285
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
287
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
286
288
|
cellRender: (column: {
|
287
289
|
[propName: string]: any;
|
288
290
|
name: string;
|
@@ -298,7 +300,7 @@ declare const _default: {
|
|
298
300
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
299
301
|
componentWillMount?(): void;
|
300
302
|
UNSAFE_componentWillMount?(): void;
|
301
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
303
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
302
304
|
cellRender: (column: {
|
303
305
|
[propName: string]: any;
|
304
306
|
name: string;
|
@@ -312,7 +314,7 @@ declare const _default: {
|
|
312
314
|
locale?: string | undefined;
|
313
315
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
314
316
|
}>, nextContext: any): void;
|
315
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
317
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
316
318
|
cellRender: (column: {
|
317
319
|
[propName: string]: any;
|
318
320
|
name: string;
|
@@ -326,7 +328,7 @@ declare const _default: {
|
|
326
328
|
locale?: string | undefined;
|
327
329
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
328
330
|
}>, nextContext: any): void;
|
329
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
331
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
330
332
|
cellRender: (column: {
|
331
333
|
[propName: string]: any;
|
332
334
|
name: string;
|
@@ -340,7 +342,7 @@ declare const _default: {
|
|
340
342
|
locale?: string | undefined;
|
341
343
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
342
344
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
343
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
345
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
344
346
|
cellRender: (column: {
|
345
347
|
[propName: string]: any;
|
346
348
|
name: string;
|
@@ -362,7 +364,7 @@ declare const _default: {
|
|
362
364
|
ComposedComponent: typeof TableSelection;
|
363
365
|
}>;
|
364
366
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
365
|
-
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
367
|
+
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
366
368
|
cellRender: (column: {
|
367
369
|
[propName: string]: any;
|
368
370
|
name: string;
|
@@ -381,7 +383,7 @@ declare const _default: {
|
|
381
383
|
getWrappedInstance(): any;
|
382
384
|
render(): JSX.Element;
|
383
385
|
context: any;
|
384
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
386
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
385
387
|
cellRender: (column: {
|
386
388
|
[propName: string]: any;
|
387
389
|
name: string;
|
@@ -396,7 +398,7 @@ declare const _default: {
|
|
396
398
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
397
399
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
398
400
|
forceUpdate(callback?: (() => void) | undefined): void;
|
399
|
-
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
401
|
+
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
400
402
|
cellRender: (column: {
|
401
403
|
[propName: string]: any;
|
402
404
|
name: string;
|
@@ -417,7 +419,7 @@ declare const _default: {
|
|
417
419
|
[key: string]: React.ReactInstance;
|
418
420
|
};
|
419
421
|
componentDidMount?(): void;
|
420
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
422
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
421
423
|
cellRender: (column: {
|
422
424
|
[propName: string]: any;
|
423
425
|
name: string;
|
@@ -433,7 +435,7 @@ declare const _default: {
|
|
433
435
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
434
436
|
componentWillUnmount?(): void;
|
435
437
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
436
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
438
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
437
439
|
cellRender: (column: {
|
438
440
|
[propName: string]: any;
|
439
441
|
name: string;
|
@@ -447,7 +449,7 @@ declare const _default: {
|
|
447
449
|
locale?: string | undefined;
|
448
450
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
449
451
|
}>, prevState: Readonly<{}>): any;
|
450
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
452
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
451
453
|
cellRender: (column: {
|
452
454
|
[propName: string]: any;
|
453
455
|
name: string;
|
@@ -463,7 +465,7 @@ declare const _default: {
|
|
463
465
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
464
466
|
componentWillMount?(): void;
|
465
467
|
UNSAFE_componentWillMount?(): void;
|
466
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
468
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
467
469
|
cellRender: (column: {
|
468
470
|
[propName: string]: any;
|
469
471
|
name: string;
|
@@ -477,7 +479,7 @@ declare const _default: {
|
|
477
479
|
locale?: string | undefined;
|
478
480
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
479
481
|
}>, nextContext: any): void;
|
480
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
482
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
481
483
|
cellRender: (column: {
|
482
484
|
[propName: string]: any;
|
483
485
|
name: string;
|
@@ -491,7 +493,7 @@ declare const _default: {
|
|
491
493
|
locale?: string | undefined;
|
492
494
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
493
495
|
}>, nextContext: any): void;
|
494
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
496
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
495
497
|
cellRender: (column: {
|
496
498
|
[propName: string]: any;
|
497
499
|
name: string;
|
@@ -505,7 +507,7 @@ declare const _default: {
|
|
505
507
|
locale?: string | undefined;
|
506
508
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
507
509
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
508
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
510
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
509
511
|
cellRender: (column: {
|
510
512
|
[propName: string]: any;
|
511
513
|
name: string;
|
@@ -527,7 +529,7 @@ declare const _default: {
|
|
527
529
|
ComposedComponent: typeof TableSelection;
|
528
530
|
}, {}> & {
|
529
531
|
ComposedComponent: {
|
530
|
-
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
532
|
+
new (props: Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
531
533
|
cellRender: (column: {
|
532
534
|
[propName: string]: any;
|
533
535
|
name: string;
|
@@ -546,7 +548,7 @@ declare const _default: {
|
|
546
548
|
getWrappedInstance(): any;
|
547
549
|
render(): JSX.Element;
|
548
550
|
context: any;
|
549
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
551
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
550
552
|
cellRender: (column: {
|
551
553
|
[propName: string]: any;
|
552
554
|
name: string;
|
@@ -561,7 +563,7 @@ declare const _default: {
|
|
561
563
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
562
564
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
563
565
|
forceUpdate(callback?: (() => void) | undefined): void;
|
564
|
-
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
566
|
+
readonly props: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
565
567
|
cellRender: (column: {
|
566
568
|
[propName: string]: any;
|
567
569
|
name: string;
|
@@ -582,7 +584,7 @@ declare const _default: {
|
|
582
584
|
[key: string]: React.ReactInstance;
|
583
585
|
};
|
584
586
|
componentDidMount?(): void;
|
585
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
587
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
586
588
|
cellRender: (column: {
|
587
589
|
[propName: string]: any;
|
588
590
|
name: string;
|
@@ -598,7 +600,7 @@ declare const _default: {
|
|
598
600
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
599
601
|
componentWillUnmount?(): void;
|
600
602
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
601
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
603
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
602
604
|
cellRender: (column: {
|
603
605
|
[propName: string]: any;
|
604
606
|
name: string;
|
@@ -612,7 +614,7 @@ declare const _default: {
|
|
612
614
|
locale?: string | undefined;
|
613
615
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
614
616
|
}>, prevState: Readonly<{}>): any;
|
615
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
617
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
616
618
|
cellRender: (column: {
|
617
619
|
[propName: string]: any;
|
618
620
|
name: string;
|
@@ -628,7 +630,7 @@ declare const _default: {
|
|
628
630
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
629
631
|
componentWillMount?(): void;
|
630
632
|
UNSAFE_componentWillMount?(): void;
|
631
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
633
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
632
634
|
cellRender: (column: {
|
633
635
|
[propName: string]: any;
|
634
636
|
name: string;
|
@@ -642,7 +644,7 @@ declare const _default: {
|
|
642
644
|
locale?: string | undefined;
|
643
645
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
644
646
|
}>, nextContext: any): void;
|
645
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
647
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
646
648
|
cellRender: (column: {
|
647
649
|
[propName: string]: any;
|
648
650
|
name: string;
|
@@ -656,7 +658,7 @@ declare const _default: {
|
|
656
658
|
locale?: string | undefined;
|
657
659
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
658
660
|
}>, nextContext: any): void;
|
659
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
661
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
660
662
|
cellRender: (column: {
|
661
663
|
[propName: string]: any;
|
662
664
|
name: string;
|
@@ -670,7 +672,7 @@ declare const _default: {
|
|
670
672
|
locale?: string | undefined;
|
671
673
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
672
674
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
673
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
675
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "columns" | "disabled" | "onClick" | "options" | "inline" | "onChange" | "itemClassName" | "labelClassName" | "onDeferLoad" | "onLeftDeferLoad" | "option2value" | "resultMode"> & Partial<Pick<Omit<TableSelectionProps, keyof import("../locale").LocaleProps>, "multiple" | "placeholder" | "clearable" | "itemRender" | "cellRender">> & Partial<Pick<{
|
674
676
|
cellRender: (column: {
|
675
677
|
[propName: string]: any;
|
676
678
|
name: string;
|
@@ -8,6 +8,7 @@ var react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
8
8
|
var uncontrollable_1 = require("uncontrollable");
|
9
9
|
var Checkbox_1 = (0, tslib_1.__importDefault)(require("./Checkbox"));
|
10
10
|
var tpl_builtin_1 = require("../utils/tpl-builtin");
|
11
|
+
var helper_1 = require("../utils/helper");
|
11
12
|
var locale_1 = require("../locale");
|
12
13
|
var TableSelection = /** @class */ (function (_super) {
|
13
14
|
(0, tslib_1.__extends)(TableSelection, _super);
|
@@ -45,12 +46,16 @@ var TableSelection = /** @class */ (function (_super) {
|
|
45
46
|
};
|
46
47
|
TableSelection.prototype.renderTBody = function () {
|
47
48
|
var _this = this;
|
48
|
-
var _a = this.props, options = _a.options, placeholder = _a.placeholder, cx = _a.classnames, cellRender = _a.cellRender, value = _a.value, disabled = _a.disabled, multiple = _a.multiple, option2value = _a.option2value, __ = _a.translate, itemClassName = _a.itemClassName;
|
49
|
+
var _a = this.props, options = _a.options, placeholder = _a.placeholder, cx = _a.classnames, cellRender = _a.cellRender, value = _a.value, disabled = _a.disabled, multiple = _a.multiple, option2value = _a.option2value, __ = _a.translate, itemClassName = _a.itemClassName, resultMode = _a.resultMode;
|
49
50
|
var columns = this.getColumns();
|
50
51
|
var valueArray = Selection_1.BaseSelection.value2array(value, options, option2value);
|
51
52
|
return (react_1.default.createElement("tbody", null, Array.isArray(options) && options.length ? (options.map(function (option, rowIndex) {
|
52
53
|
var checked = valueArray.indexOf(option) !== -1;
|
53
|
-
return (react_1.default.createElement("tr", { key: rowIndex,
|
54
|
+
return (react_1.default.createElement("tr", { key: rowIndex,
|
55
|
+
/** 被ResultTableList引用,如果设置click事件,会导致错误删除结果列表的内容,先加一个开关判断 */
|
56
|
+
onClick: resultMode
|
57
|
+
? helper_1.noop
|
58
|
+
: function (e) { return e.defaultPrevented || _this.toggleOption(option); }, className: cx(itemClassName, option.className, disabled || option.disabled ? 'is-disabled' : '', !!~valueArray.indexOf(option) ? 'is-active' : '') },
|
54
59
|
multiple ? (react_1.default.createElement("td", { className: cx('Table-checkCell'), key: "checkbox", onClick: function (e) {
|
55
60
|
e.stopPropagation();
|
56
61
|
_this.toggleOption(option);
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"/src/components/TableSelection.tsx"
|
7
7
|
],
|
8
8
|
"names": [],
|
9
|
-
"mappings": ";;;;AAAA,yCAA8D;AAC9D,kCAAmC;AACnC,6DAA0B;AAC1B,iDAA8C;AAC9C,qEAAkC;AAElC,oDAAqD;AACrD,oCAAqC;
|
9
|
+
"mappings": "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",
|
10
10
|
"sourcesContent": [
|
11
|
-
"import {BaseSelection, BaseSelectionProps} from './Selection';\nimport {themeable} from '../theme';\nimport React from 'react';\nimport {uncontrollable} from 'uncontrollable';\nimport Checkbox from './Checkbox';\nimport {Option} from './Select';\nimport {resolveVariable} from '../utils/tpl-builtin';\nimport {localeable} from '../locale';\n\nexport interface TableSelectionProps extends BaseSelectionProps {\n columns: Array<{\n name: string;\n label: string;\n [propName: string]: any;\n }>;\n cellRender: (\n column: {\n name: string;\n label: string;\n [propName: string]: any;\n },\n option: Option,\n colIndex: number,\n rowIndex: number\n ) => JSX.Element;\n}\n\nexport class TableSelection extends BaseSelection<TableSelectionProps> {\n static defaultProps = {\n ...BaseSelection.defaultProps,\n cellRender: (\n column: {\n name: string;\n label: string;\n [propName: string]: any;\n },\n option: Option,\n colIndex: number,\n rowIndex: number\n ) => <span>{resolveVariable(column.name, option)}</span>\n };\n\n getColumns() {\n let columns = this.props.columns;\n\n if (!Array.isArray(columns) || !columns.length) {\n columns = [{label: 'Label', name: 'label'}];\n }\n return columns;\n }\n\n renderTHead() {\n const {\n options,\n classnames: cx,\n value,\n disabled,\n option2value,\n multiple\n } = this.props;\n let columns = this.getColumns();\n let valueArray = BaseSelection.value2array(value, options, option2value);\n const availableOptions = options.filter(option => !option.disabled);\n let partialChecked = false;\n let allChecked = !!availableOptions.length;\n\n availableOptions.forEach(option => {\n const isIn = !!~valueArray.indexOf(option);\n\n if (isIn && !partialChecked) {\n partialChecked = true;\n } else if (!isIn && allChecked) {\n allChecked = false;\n }\n });\n\n return (\n <thead>\n <tr>\n {multiple && Array.isArray(options) && options.length ? (\n <th className={cx('Table-checkCell')}>\n <Checkbox\n key=\"checkbox\"\n size=\"sm\"\n disabled={disabled}\n onChange={this.toggleAll}\n checked={partialChecked}\n partial={partialChecked && !allChecked}\n />\n </th>\n ) : null}\n {columns.map((column, index) => (\n <th key={index}>{column.label}</th>\n ))}\n </tr>\n </thead>\n );\n }\n\n renderTBody() {\n const {\n options,\n placeholder,\n classnames: cx,\n cellRender,\n value,\n disabled,\n multiple,\n option2value,\n translate: __,\n itemClassName\n } = this.props;\n const columns = this.getColumns();\n let valueArray = BaseSelection.value2array(value, options, option2value);\n\n return (\n <tbody>\n {Array.isArray(options) && options.length ? (\n options.map((option, rowIndex) => {\n const checked = valueArray.indexOf(option) !== -1;\n\n return (\n <tr\n key={rowIndex}\n className={cx(\n itemClassName,\n option.className,\n disabled || option.disabled ? 'is-disabled' : '',\n !!~valueArray.indexOf(option) ? 'is-active' : ''\n )}\n >\n {multiple ? (\n <td
|
11
|
+
"import {BaseSelection, BaseSelectionProps} from './Selection';\nimport {themeable} from '../theme';\nimport React from 'react';\nimport {uncontrollable} from 'uncontrollable';\nimport Checkbox from './Checkbox';\nimport {Option} from './Select';\nimport {resolveVariable} from '../utils/tpl-builtin';\nimport {noop} from '../utils/helper';\nimport {localeable} from '../locale';\n\nexport interface TableSelectionProps extends BaseSelectionProps {\n /** 是否为结果渲染列表 */\n resultMode?: boolean;\n columns: Array<{\n name: string;\n label: string;\n [propName: string]: any;\n }>;\n cellRender: (\n column: {\n name: string;\n label: string;\n [propName: string]: any;\n },\n option: Option,\n colIndex: number,\n rowIndex: number\n ) => JSX.Element;\n}\n\nexport class TableSelection extends BaseSelection<TableSelectionProps> {\n static defaultProps = {\n ...BaseSelection.defaultProps,\n cellRender: (\n column: {\n name: string;\n label: string;\n [propName: string]: any;\n },\n option: Option,\n colIndex: number,\n rowIndex: number\n ) => <span>{resolveVariable(column.name, option)}</span>\n };\n\n getColumns() {\n let columns = this.props.columns;\n\n if (!Array.isArray(columns) || !columns.length) {\n columns = [{label: 'Label', name: 'label'}];\n }\n return columns;\n }\n\n renderTHead() {\n const {\n options,\n classnames: cx,\n value,\n disabled,\n option2value,\n multiple\n } = this.props;\n let columns = this.getColumns();\n let valueArray = BaseSelection.value2array(value, options, option2value);\n const availableOptions = options.filter(option => !option.disabled);\n let partialChecked = false;\n let allChecked = !!availableOptions.length;\n\n availableOptions.forEach(option => {\n const isIn = !!~valueArray.indexOf(option);\n\n if (isIn && !partialChecked) {\n partialChecked = true;\n } else if (!isIn && allChecked) {\n allChecked = false;\n }\n });\n\n return (\n <thead>\n <tr>\n {multiple && Array.isArray(options) && options.length ? (\n <th className={cx('Table-checkCell')}>\n <Checkbox\n key=\"checkbox\"\n size=\"sm\"\n disabled={disabled}\n onChange={this.toggleAll}\n checked={partialChecked}\n partial={partialChecked && !allChecked}\n />\n </th>\n ) : null}\n {columns.map((column, index) => (\n <th key={index}>{column.label}</th>\n ))}\n </tr>\n </thead>\n );\n }\n\n renderTBody() {\n const {\n options,\n placeholder,\n classnames: cx,\n cellRender,\n value,\n disabled,\n multiple,\n option2value,\n translate: __,\n itemClassName,\n resultMode\n } = this.props;\n const columns = this.getColumns();\n let valueArray = BaseSelection.value2array(value, options, option2value);\n\n return (\n <tbody>\n {Array.isArray(options) && options.length ? (\n options.map((option, rowIndex) => {\n const checked = valueArray.indexOf(option) !== -1;\n\n return (\n <tr\n key={rowIndex}\n /** 被ResultTableList引用,如果设置click事件,会导致错误删除结果列表的内容,先加一个开关判断 */\n onClick={\n resultMode\n ? noop\n : e => e.defaultPrevented || this.toggleOption(option)\n }\n className={cx(\n itemClassName,\n option.className,\n disabled || option.disabled ? 'is-disabled' : '',\n !!~valueArray.indexOf(option) ? 'is-active' : ''\n )}\n >\n {multiple ? (\n <td\n className={cx('Table-checkCell')}\n key=\"checkbox\"\n onClick={e => {\n e.stopPropagation();\n this.toggleOption(option);\n }}\n >\n <Checkbox size=\"sm\" checked={checked} disabled={disabled} />\n </td>\n ) : null}\n {columns.map((column, colIndex) => (\n <td key={colIndex}>\n {cellRender(column, option, colIndex, rowIndex)}\n </td>\n ))}\n </tr>\n );\n })\n ) : (\n <tr>\n <td colSpan={columns.length}>{__(placeholder)}</td>\n </tr>\n )}\n </tbody>\n );\n }\n\n render() {\n const {className, classnames: cx} = this.props;\n\n return (\n <div className={cx('TableSelection', className)}>\n <div className={cx('Table-content')}>\n <table className={cx('Table-table')}>\n {this.renderTHead()}\n {this.renderTBody()}\n </table>\n </div>\n </div>\n );\n }\n}\n\nexport default themeable(\n localeable(\n uncontrollable(TableSelection, {\n value: 'onChange'\n })\n )\n);\n"
|
12
12
|
]
|
13
13
|
}
|