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
@@ -20,6 +20,10 @@ export interface FormulaPickerProps extends FormulaEditorProps {
|
|
20
20
|
* 边框模式,全边框,还是半边框,或者没边框。
|
21
21
|
*/
|
22
22
|
borderMode?: 'full' | 'half' | 'none';
|
23
|
+
/**
|
24
|
+
* 只展示变量,不需要其他面板
|
25
|
+
*/
|
26
|
+
onlyVariable?: boolean;
|
23
27
|
/**
|
24
28
|
* 按钮Label,inputMode为button时生效
|
25
29
|
*/
|
@@ -81,6 +85,7 @@ export declare class FormulaPicker extends React.Component<FormulaPickerProps, F
|
|
81
85
|
constructor(props: FormulaPickerProps);
|
82
86
|
static defaultProps: {
|
83
87
|
evalMode: boolean;
|
88
|
+
onlyVariable: boolean;
|
84
89
|
};
|
85
90
|
state: FormulaPickerState;
|
86
91
|
handleConfirm(): void;
|
@@ -97,8 +102,9 @@ export declare class FormulaPicker extends React.Component<FormulaPickerProps, F
|
|
97
102
|
render(): JSX.Element;
|
98
103
|
}
|
99
104
|
declare const _default: {
|
100
|
-
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
105
|
+
new (props: Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
101
106
|
evalMode: boolean;
|
107
|
+
onlyVariable: boolean;
|
102
108
|
}, never>> & {
|
103
109
|
locale?: string | undefined;
|
104
110
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -108,15 +114,17 @@ declare const _default: {
|
|
108
114
|
getWrappedInstance(): any;
|
109
115
|
render(): JSX.Element;
|
110
116
|
context: any;
|
111
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
117
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
112
118
|
evalMode: boolean;
|
119
|
+
onlyVariable: boolean;
|
113
120
|
}, never>> & {
|
114
121
|
locale?: string | undefined;
|
115
122
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
116
123
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
117
124
|
forceUpdate(callback?: (() => void) | undefined): void;
|
118
|
-
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
125
|
+
readonly props: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
119
126
|
evalMode: boolean;
|
127
|
+
onlyVariable: boolean;
|
120
128
|
}, never>> & {
|
121
129
|
locale?: string | undefined;
|
122
130
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -128,48 +136,55 @@ declare const _default: {
|
|
128
136
|
[key: string]: React.ReactInstance;
|
129
137
|
};
|
130
138
|
componentDidMount?(): void;
|
131
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
139
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
132
140
|
evalMode: boolean;
|
141
|
+
onlyVariable: boolean;
|
133
142
|
}, never>> & {
|
134
143
|
locale?: string | undefined;
|
135
144
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
136
145
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
137
146
|
componentWillUnmount?(): void;
|
138
147
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
139
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
148
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
140
149
|
evalMode: boolean;
|
150
|
+
onlyVariable: boolean;
|
141
151
|
}, never>> & {
|
142
152
|
locale?: string | undefined;
|
143
153
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
144
154
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
145
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
155
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
146
156
|
evalMode: boolean;
|
157
|
+
onlyVariable: boolean;
|
147
158
|
}, never>> & {
|
148
159
|
locale?: string | undefined;
|
149
160
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
150
161
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
151
162
|
componentWillMount?(): void;
|
152
163
|
UNSAFE_componentWillMount?(): void;
|
153
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
164
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
154
165
|
evalMode: boolean;
|
166
|
+
onlyVariable: boolean;
|
155
167
|
}, never>> & {
|
156
168
|
locale?: string | undefined;
|
157
169
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
158
170
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void;
|
159
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
171
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
160
172
|
evalMode: boolean;
|
173
|
+
onlyVariable: boolean;
|
161
174
|
}, never>> & {
|
162
175
|
locale?: string | undefined;
|
163
176
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
164
177
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void;
|
165
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
178
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
166
179
|
evalMode: boolean;
|
180
|
+
onlyVariable: boolean;
|
167
181
|
}, never>> & {
|
168
182
|
locale?: string | undefined;
|
169
183
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
170
184
|
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
171
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
185
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
172
186
|
evalMode: boolean;
|
187
|
+
onlyVariable: boolean;
|
173
188
|
}, never>> & {
|
174
189
|
locale?: string | undefined;
|
175
190
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -178,8 +193,9 @@ declare const _default: {
|
|
178
193
|
displayName: string;
|
179
194
|
contextType: React.Context<string>;
|
180
195
|
ComposedComponent: React.ComponentType<{
|
181
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
196
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
182
197
|
evalMode: boolean;
|
198
|
+
onlyVariable: boolean;
|
183
199
|
}, never>> & {
|
184
200
|
locale?: string | undefined;
|
185
201
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -189,15 +205,17 @@ declare const _default: {
|
|
189
205
|
getWrappedInstance(): any;
|
190
206
|
render(): JSX.Element;
|
191
207
|
context: any;
|
192
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
208
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
193
209
|
evalMode: boolean;
|
210
|
+
onlyVariable: boolean;
|
194
211
|
}, never>> & {
|
195
212
|
locale?: string | undefined;
|
196
213
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
197
214
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
198
215
|
forceUpdate(callback?: (() => void) | undefined): void;
|
199
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
216
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
200
217
|
evalMode: boolean;
|
218
|
+
onlyVariable: boolean;
|
201
219
|
}, never>> & {
|
202
220
|
locale?: string | undefined;
|
203
221
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -209,48 +227,55 @@ declare const _default: {
|
|
209
227
|
[key: string]: React.ReactInstance;
|
210
228
|
};
|
211
229
|
componentDidMount?(): void;
|
212
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
230
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
213
231
|
evalMode: boolean;
|
232
|
+
onlyVariable: boolean;
|
214
233
|
}, never>> & {
|
215
234
|
locale?: string | undefined;
|
216
235
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
217
236
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
218
237
|
componentWillUnmount?(): void;
|
219
238
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
220
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
239
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
221
240
|
evalMode: boolean;
|
241
|
+
onlyVariable: boolean;
|
222
242
|
}, never>> & {
|
223
243
|
locale?: string | undefined;
|
224
244
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
225
245
|
}>, prevState: Readonly<{}>): any;
|
226
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
246
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
227
247
|
evalMode: boolean;
|
248
|
+
onlyVariable: boolean;
|
228
249
|
}, never>> & {
|
229
250
|
locale?: string | undefined;
|
230
251
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
231
252
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
232
253
|
componentWillMount?(): void;
|
233
254
|
UNSAFE_componentWillMount?(): void;
|
234
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
255
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
235
256
|
evalMode: boolean;
|
257
|
+
onlyVariable: boolean;
|
236
258
|
}, never>> & {
|
237
259
|
locale?: string | undefined;
|
238
260
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
239
261
|
}>, nextContext: any): void;
|
240
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
262
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
241
263
|
evalMode: boolean;
|
264
|
+
onlyVariable: boolean;
|
242
265
|
}, never>> & {
|
243
266
|
locale?: string | undefined;
|
244
267
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
245
268
|
}>, nextContext: any): void;
|
246
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
269
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
247
270
|
evalMode: boolean;
|
271
|
+
onlyVariable: boolean;
|
248
272
|
}, never>> & {
|
249
273
|
locale?: string | undefined;
|
250
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
251
275
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
252
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
276
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
253
277
|
evalMode: boolean;
|
278
|
+
onlyVariable: boolean;
|
254
279
|
}, never>> & {
|
255
280
|
locale?: string | undefined;
|
256
281
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -263,8 +288,9 @@ declare const _default: {
|
|
263
288
|
ComposedComponent: typeof FormulaPicker;
|
264
289
|
}>;
|
265
290
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
266
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
291
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
267
292
|
evalMode: boolean;
|
293
|
+
onlyVariable: boolean;
|
268
294
|
}, never>> & {
|
269
295
|
locale?: string | undefined;
|
270
296
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -274,15 +300,17 @@ declare const _default: {
|
|
274
300
|
getWrappedInstance(): any;
|
275
301
|
render(): JSX.Element;
|
276
302
|
context: any;
|
277
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
303
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
278
304
|
evalMode: boolean;
|
305
|
+
onlyVariable: boolean;
|
279
306
|
}, never>> & {
|
280
307
|
locale?: string | undefined;
|
281
308
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
282
309
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
283
310
|
forceUpdate(callback?: (() => void) | undefined): void;
|
284
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
311
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
285
312
|
evalMode: boolean;
|
313
|
+
onlyVariable: boolean;
|
286
314
|
}, never>> & {
|
287
315
|
locale?: string | undefined;
|
288
316
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -294,48 +322,55 @@ declare const _default: {
|
|
294
322
|
[key: string]: React.ReactInstance;
|
295
323
|
};
|
296
324
|
componentDidMount?(): void;
|
297
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
325
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
298
326
|
evalMode: boolean;
|
327
|
+
onlyVariable: boolean;
|
299
328
|
}, never>> & {
|
300
329
|
locale?: string | undefined;
|
301
330
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
302
331
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
303
332
|
componentWillUnmount?(): void;
|
304
333
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
305
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
334
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
306
335
|
evalMode: boolean;
|
336
|
+
onlyVariable: boolean;
|
307
337
|
}, never>> & {
|
308
338
|
locale?: string | undefined;
|
309
339
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
310
340
|
}>, prevState: Readonly<{}>): any;
|
311
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
341
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
312
342
|
evalMode: boolean;
|
343
|
+
onlyVariable: boolean;
|
313
344
|
}, never>> & {
|
314
345
|
locale?: string | undefined;
|
315
346
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
316
347
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
317
348
|
componentWillMount?(): void;
|
318
349
|
UNSAFE_componentWillMount?(): void;
|
319
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
350
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
320
351
|
evalMode: boolean;
|
352
|
+
onlyVariable: boolean;
|
321
353
|
}, never>> & {
|
322
354
|
locale?: string | undefined;
|
323
355
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
324
356
|
}>, nextContext: any): void;
|
325
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
357
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
326
358
|
evalMode: boolean;
|
359
|
+
onlyVariable: boolean;
|
327
360
|
}, never>> & {
|
328
361
|
locale?: string | undefined;
|
329
362
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
330
363
|
}>, nextContext: any): void;
|
331
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
364
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
332
365
|
evalMode: boolean;
|
366
|
+
onlyVariable: boolean;
|
333
367
|
}, never>> & {
|
334
368
|
locale?: string | undefined;
|
335
369
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
336
370
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
337
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
371
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
338
372
|
evalMode: boolean;
|
373
|
+
onlyVariable: boolean;
|
339
374
|
}, never>> & {
|
340
375
|
locale?: string | undefined;
|
341
376
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -348,8 +383,9 @@ declare const _default: {
|
|
348
383
|
ComposedComponent: typeof FormulaPicker;
|
349
384
|
}, {}> & {
|
350
385
|
ComposedComponent: {
|
351
|
-
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
386
|
+
new (props: Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
352
387
|
evalMode: boolean;
|
388
|
+
onlyVariable: boolean;
|
353
389
|
}, never>> & {
|
354
390
|
locale?: string | undefined;
|
355
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -359,15 +395,17 @@ declare const _default: {
|
|
359
395
|
getWrappedInstance(): any;
|
360
396
|
render(): JSX.Element;
|
361
397
|
context: any;
|
362
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
398
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
363
399
|
evalMode: boolean;
|
400
|
+
onlyVariable: boolean;
|
364
401
|
}, never>> & {
|
365
402
|
locale?: string | undefined;
|
366
403
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
367
404
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
368
405
|
forceUpdate(callback?: (() => void) | undefined): void;
|
369
|
-
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
406
|
+
readonly props: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
370
407
|
evalMode: boolean;
|
408
|
+
onlyVariable: boolean;
|
371
409
|
}, never>> & {
|
372
410
|
locale?: string | undefined;
|
373
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -379,48 +417,55 @@ declare const _default: {
|
|
379
417
|
[key: string]: React.ReactInstance;
|
380
418
|
};
|
381
419
|
componentDidMount?(): void;
|
382
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
420
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
383
421
|
evalMode: boolean;
|
422
|
+
onlyVariable: boolean;
|
384
423
|
}, never>> & {
|
385
424
|
locale?: string | undefined;
|
386
425
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
387
426
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
388
427
|
componentWillUnmount?(): void;
|
389
428
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
390
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
429
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
391
430
|
evalMode: boolean;
|
431
|
+
onlyVariable: boolean;
|
392
432
|
}, never>> & {
|
393
433
|
locale?: string | undefined;
|
394
434
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
395
435
|
}>, prevState: Readonly<{}>): any;
|
396
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
436
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
397
437
|
evalMode: boolean;
|
438
|
+
onlyVariable: boolean;
|
398
439
|
}, never>> & {
|
399
440
|
locale?: string | undefined;
|
400
441
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
401
442
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
402
443
|
componentWillMount?(): void;
|
403
444
|
UNSAFE_componentWillMount?(): void;
|
404
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
445
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
405
446
|
evalMode: boolean;
|
447
|
+
onlyVariable: boolean;
|
406
448
|
}, never>> & {
|
407
449
|
locale?: string | undefined;
|
408
450
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
409
451
|
}>, nextContext: any): void;
|
410
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
452
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
411
453
|
evalMode: boolean;
|
454
|
+
onlyVariable: boolean;
|
412
455
|
}, never>> & {
|
413
456
|
locale?: string | undefined;
|
414
457
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
415
458
|
}>, nextContext: any): void;
|
416
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
459
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
417
460
|
evalMode: boolean;
|
461
|
+
onlyVariable: boolean;
|
418
462
|
}, never>> & {
|
419
463
|
locale?: string | undefined;
|
420
464
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
421
465
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
422
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "
|
466
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "data" | "header" | "source" | "title" | "children" | "className" | "theme" | "value" | "icon" | "disabled" | "level" | "variables" | "size" | "placeholder" | "onChange" | "mode" | "clearable" | "borderMode" | "onConfirm" | "onRef" | "btnLabel" | "allowInput" | "functions" | "variableMode" | "variableClassName" | "functionClassName" | "btnSize" | "onPickerOpen"> & Partial<Pick<Omit<FormulaPickerProps, keyof import("../../locale").LocaleProps>, "evalMode" | "onlyVariable">> & Partial<Pick<{
|
423
467
|
evalMode: boolean;
|
468
|
+
onlyVariable: boolean;
|
424
469
|
}, never>> & {
|
425
470
|
locale?: string | undefined;
|
426
471
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -56,6 +56,10 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
56
56
|
onChange && onChange(e.currentTarget.value);
|
57
57
|
};
|
58
58
|
FormulaPicker.prototype.handleEditorChange = function (value) {
|
59
|
+
var onlyVariable = this.props.onlyVariable;
|
60
|
+
if (onlyVariable) {
|
61
|
+
return this.confirm(value);
|
62
|
+
}
|
59
63
|
this.setState({
|
60
64
|
editorValue: value,
|
61
65
|
isError: false
|
@@ -131,7 +135,7 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
131
135
|
FormulaPicker.prototype.render = function () {
|
132
136
|
var _a, _b, _c;
|
133
137
|
var _d, _e, _f, _g, _h;
|
134
|
-
var _j = this.props, cx = _j.classnames, __ = _j.translate, disabled = _j.disabled, allowInput = _j.allowInput, className = _j.className, onChange = _j.onChange, size = _j.size, borderMode = _j.borderMode, placeholder = _j.placeholder, mode = _j.mode, btnLabel = _j.btnLabel, level = _j.level, btnSize = _j.btnSize, icon = _j.icon, title = _j.title, clearable = _j.clearable, variables = _j.variables, functions = _j.functions, children = _j.children, variableMode = _j.variableMode, rest = (0, tslib_1.__rest)(_j, ["classnames", "translate", "disabled", "allowInput", "className", "onChange", "size", "borderMode", "placeholder", "mode", "btnLabel", "level", "btnSize", "icon", "title", "clearable", "variables", "functions", "children", "variableMode"]);
|
138
|
+
var _j = this.props, cx = _j.classnames, __ = _j.translate, disabled = _j.disabled, allowInput = _j.allowInput, className = _j.className, onChange = _j.onChange, size = _j.size, borderMode = _j.borderMode, placeholder = _j.placeholder, mode = _j.mode, btnLabel = _j.btnLabel, level = _j.level, btnSize = _j.btnSize, icon = _j.icon, title = _j.title, clearable = _j.clearable, variables = _j.variables, functions = _j.functions, children = _j.children, variableMode = _j.variableMode, onlyVariable = _j.onlyVariable, rest = (0, tslib_1.__rest)(_j, ["classnames", "translate", "disabled", "allowInput", "className", "onChange", "size", "borderMode", "placeholder", "mode", "btnLabel", "level", "btnSize", "icon", "title", "clearable", "variables", "functions", "children", "variableMode", "onlyVariable"]);
|
135
139
|
var _k = this.state, isOpened = _k.isOpened, value = _k.value, editorValue = _k.editorValue, isError = _k.isError;
|
136
140
|
var iconElement = (0, icon_1.generateIcon)(cx, icon, 'Icon');
|
137
141
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
@@ -160,20 +164,22 @@ var FormulaPicker = /** @class */ (function (_super) {
|
|
160
164
|
mode === 'input-group' && (react_1.default.createElement(react_1.default.Fragment, null,
|
161
165
|
react_1.default.createElement(Input_1.default, { className: cx('FormulaPicker-input'), onChange: this.handleInputGroupChange, placeholder: allowInput ? placeholder : '', autoComplete: "off", value: value, disabled: disabled, readOnly: !allowInput }),
|
162
166
|
react_1.default.createElement("a", { className: cx("FormulaPicker-toggler"), onClick: this.handleClick },
|
163
|
-
react_1.default.createElement(icons_1.Icon, { icon:
|
167
|
+
react_1.default.createElement(icons_1.Icon, { icon: onlyVariable ? 'ellipsis-v' : 'function', className: "icon" })))))),
|
164
168
|
react_1.default.createElement(Modal_1.default, { size: "md", closeOnEsc: true, show: this.state.isOpened, onHide: this.close },
|
165
169
|
react_1.default.createElement(Modal_1.default.Header, { onClose: this.close, className: "font-bold" }, __(title || 'FormulaEditor.title')),
|
166
170
|
react_1.default.createElement(Modal_1.default.Body, null,
|
167
|
-
react_1.default.createElement(Editor_2.default, (0, tslib_1.__assign)({}, rest, { variables: (_f = this.state.variables) !== null && _f !== void 0 ? _f : variables, functions: (_g = this.state.functions) !== null && _g !== void 0 ? _g : functions, variableMode: (_h = this.state.variableMode) !== null && _h !== void 0 ? _h : variableMode, value: editorValue, onChange: this.handleEditorChange
|
171
|
+
react_1.default.createElement(Editor_2.default, (0, tslib_1.__assign)({}, rest, { variables: (_f = this.state.variables) !== null && _f !== void 0 ? _f : variables, functions: (_g = this.state.functions) !== null && _g !== void 0 ? _g : functions, variableMode: (_h = this.state.variableMode) !== null && _h !== void 0 ? _h : variableMode, onlyVariable: onlyVariable, value: editorValue, onChange: this.handleEditorChange }))),
|
168
172
|
react_1.default.createElement(Modal_1.default.Footer, null,
|
169
173
|
!!isError ? (react_1.default.createElement("div", { className: cx('Dialog-info'), key: "info" },
|
170
174
|
react_1.default.createElement("span", { className: cx('Dialog-error') }, __('FormulaEditor.invalidData', { err: isError })))) : null,
|
171
|
-
react_1.default.createElement(
|
172
|
-
|
175
|
+
onlyVariable ? null : (react_1.default.createElement(react_1.default.Fragment, null,
|
176
|
+
react_1.default.createElement(Button_1.default, { onClick: this.close }, __('cancel')),
|
177
|
+
react_1.default.createElement(Button_1.default, { onClick: this.handleEditorConfirm, level: "primary" }, __('confirm'))))))));
|
173
178
|
};
|
174
179
|
var _a;
|
175
180
|
FormulaPicker.defaultProps = {
|
176
|
-
evalMode: true
|
181
|
+
evalMode: true,
|
182
|
+
onlyVariable: false
|
177
183
|
};
|
178
184
|
(0, tslib_1.__decorate)([
|
179
185
|
helper_1.autobind,
|