amis 1.9.1-beta.28 → 1.9.1-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AnchorNav.d.ts +9 -2
- package/lib/components/AnchorNav.js +32 -5
- package/lib/components/AnchorNav.js.map +2 -2
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +3 -5
- package/lib/components/DatePicker.js.map +2 -2
- package/lib/components/DateRangePicker.d.ts +45 -42
- package/lib/components/DateRangePicker.js +43 -11
- package/lib/components/DateRangePicker.js.map +2 -2
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/MonthRangePicker.js +2 -2
- package/lib/components/MonthRangePicker.js.map +2 -2
- package/lib/components/SearchBox.d.ts +124 -42
- package/lib/components/SearchBox.js +181 -19
- package/lib/components/SearchBox.js.map +2 -2
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +18 -7
- package/lib/components/Tag.js.map +2 -2
- package/lib/components/calendar/Calendar.d.ts +1 -0
- package/lib/components/calendar/Calendar.js +8 -8
- package/lib/components/calendar/Calendar.js.map +2 -2
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +5 -4
- package/lib/components/calendar/DaysView.js.map +2 -2
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/en-US.js.map +2 -2
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-CN.js.map +2 -2
- package/lib/renderers/CRUD.d.ts +2 -0
- package/lib/renderers/CRUD.js +8 -2
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Card.d.ts +7 -2
- package/lib/renderers/Card.js +11 -7
- package/lib/renderers/Card.js.map +2 -2
- package/lib/renderers/Form/InputColor.d.ts +0 -458
- package/lib/renderers/Form/InputColor.js +8 -9
- package/lib/renderers/Form/InputColor.js.map +2 -2
- package/lib/renderers/Form/InputExcel.d.ts +1 -0
- package/lib/renderers/Form/InputExcel.js +5 -0
- package/lib/renderers/Form/InputExcel.js.map +2 -2
- package/lib/renderers/Form/InputFile.d.ts +2 -2
- package/lib/renderers/Form/InputFile.js +6 -5
- package/lib/renderers/Form/InputFile.js.map +2 -2
- package/lib/renderers/Form/InputTable.js +16 -2
- package/lib/renderers/Form/InputTable.js.map +2 -2
- package/lib/renderers/Form/InputText.d.ts +8 -0
- package/lib/renderers/Form/InputText.js +8 -8
- package/lib/renderers/Form/InputText.js.map +2 -2
- package/lib/renderers/IFrame.d.ts +4 -0
- package/lib/renderers/IFrame.js +2 -2
- package/lib/renderers/IFrame.js.map +2 -2
- package/lib/renderers/Table/index.js +2 -2
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tag.js +2 -2
- package/lib/renderers/Tag.js.map +2 -2
- package/lib/renderers/Wizard.d.ts +1 -1
- package/lib/renderers/Wizard.js +72 -75
- package/lib/renderers/Wizard.js.map +2 -2
- package/lib/store/formItem.js +2 -1
- package/lib/store/formItem.js.map +2 -2
- package/lib/themes/ang-ie11.css +134 -21
- package/lib/themes/ang.css +138 -21
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +134 -21
- package/lib/themes/antd.css +138 -21
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +134 -21
- package/lib/themes/cxd.css +138 -21
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +134 -21
- package/lib/themes/dark.css +138 -21
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +134 -21
- package/lib/themes/default.css +138 -21
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/dom.js +3 -2
- package/lib/utils/dom.js.map +2 -2
- package/package.json +3 -3
- package/schema.json +35 -14
- package/scss/_properties.scss +5 -0
- package/scss/components/_anchor-nav.scss +1 -0
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_search-box.scss +116 -10
- package/scss/components/_tag.scss +12 -3
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +28 -24
- package/sdk/ang-ie11.css +146 -20
- package/sdk/ang.css +150 -20
- package/sdk/antd-ie11.css +146 -20
- package/sdk/antd.css +150 -20
- package/sdk/barcode.js +51 -51
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +146 -20
- package/sdk/cxd.css +150 -20
- package/sdk/dark-ie11.css +146 -20
- package/sdk/dark.css +150 -20
- package/sdk/exceljs.js +1 -1
- package/sdk/locale/de-DE.js +1 -0
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +9 -23
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +146 -20
- package/sdk/sdk.css +150 -20
- package/sdk/sdk.js +1480 -1336
- 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/AnchorNav.tsx +48 -7
- package/src/components/DatePicker.tsx +9 -8
- package/src/components/DateRangePicker.tsx +62 -11
- package/src/components/MonthRangePicker.tsx +4 -2
- package/src/components/SearchBox.tsx +262 -29
- package/src/components/Tag.tsx +14 -3
- package/src/components/calendar/Calendar.tsx +30 -14
- package/src/components/calendar/DaysView.tsx +17 -5
- package/src/locale/de-DE.ts +1 -0
- package/src/locale/en-US.ts +1 -0
- package/src/locale/zh-CN.ts +1 -0
- package/src/renderers/CRUD.tsx +10 -0
- package/src/renderers/Card.tsx +24 -12
- package/src/renderers/Form/InputColor.tsx +14 -19
- package/src/renderers/Form/InputExcel.tsx +6 -0
- package/src/renderers/Form/InputFile.tsx +19 -18
- package/src/renderers/Form/InputTable.tsx +25 -4
- package/src/renderers/Form/InputText.tsx +20 -5
- package/src/renderers/IFrame.tsx +30 -1
- package/src/renderers/Table/index.tsx +2 -1
- package/src/renderers/Tag.tsx +2 -0
- package/src/renderers/Wizard.tsx +2 -1
- package/src/store/formItem.ts +4 -1
- package/src/utils/dom.tsx +3 -2
- package/sdk/color-picker.js +0 -130
@@ -1,464 +1,6 @@
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
2
1
|
import React from 'react';
|
3
2
|
import { FormControlProps, FormBaseControl } from './Item';
|
4
3
|
import type { PresetColor } from '../../components/ColorPicker';
|
5
|
-
export declare const ColorPicker: React.LazyExoticComponent<{
|
6
|
-
new (props: Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
7
|
-
format: string;
|
8
|
-
clearable: boolean;
|
9
|
-
placeholder: string;
|
10
|
-
allowCustomColor: boolean;
|
11
|
-
}, never>> & {
|
12
|
-
locale?: string | undefined;
|
13
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
14
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps): {
|
15
|
-
ref: any;
|
16
|
-
childRef(ref: any): void;
|
17
|
-
getWrappedInstance(): any;
|
18
|
-
render(): JSX.Element;
|
19
|
-
context: any;
|
20
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
21
|
-
format: string;
|
22
|
-
clearable: boolean;
|
23
|
-
placeholder: string;
|
24
|
-
allowCustomColor: boolean;
|
25
|
-
}, never>> & {
|
26
|
-
locale?: string | undefined;
|
27
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
28
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
29
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
30
|
-
readonly props: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
31
|
-
format: string;
|
32
|
-
clearable: boolean;
|
33
|
-
placeholder: string;
|
34
|
-
allowCustomColor: boolean;
|
35
|
-
}, never>> & {
|
36
|
-
locale?: string | undefined;
|
37
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
38
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps> & Readonly<{
|
39
|
-
children?: React.ReactNode;
|
40
|
-
}>;
|
41
|
-
state: Readonly<{}>;
|
42
|
-
refs: {
|
43
|
-
[key: string]: React.ReactInstance;
|
44
|
-
};
|
45
|
-
componentDidMount?(): void;
|
46
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
47
|
-
format: string;
|
48
|
-
clearable: boolean;
|
49
|
-
placeholder: string;
|
50
|
-
allowCustomColor: boolean;
|
51
|
-
}, never>> & {
|
52
|
-
locale?: string | undefined;
|
53
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
54
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
55
|
-
componentWillUnmount?(): void;
|
56
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
57
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
58
|
-
format: string;
|
59
|
-
clearable: boolean;
|
60
|
-
placeholder: string;
|
61
|
-
allowCustomColor: boolean;
|
62
|
-
}, never>> & {
|
63
|
-
locale?: string | undefined;
|
64
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
65
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
66
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
67
|
-
format: string;
|
68
|
-
clearable: boolean;
|
69
|
-
placeholder: string;
|
70
|
-
allowCustomColor: boolean;
|
71
|
-
}, never>> & {
|
72
|
-
locale?: string | undefined;
|
73
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
74
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
75
|
-
componentWillMount?(): void;
|
76
|
-
UNSAFE_componentWillMount?(): void;
|
77
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
78
|
-
format: string;
|
79
|
-
clearable: boolean;
|
80
|
-
placeholder: string;
|
81
|
-
allowCustomColor: boolean;
|
82
|
-
}, never>> & {
|
83
|
-
locale?: string | undefined;
|
84
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
85
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void;
|
86
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
87
|
-
format: string;
|
88
|
-
clearable: boolean;
|
89
|
-
placeholder: string;
|
90
|
-
allowCustomColor: boolean;
|
91
|
-
}, never>> & {
|
92
|
-
locale?: string | undefined;
|
93
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
94
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextContext: any): void;
|
95
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
96
|
-
format: string;
|
97
|
-
clearable: boolean;
|
98
|
-
placeholder: string;
|
99
|
-
allowCustomColor: boolean;
|
100
|
-
}, never>> & {
|
101
|
-
locale?: string | undefined;
|
102
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
103
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
104
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
105
|
-
format: string;
|
106
|
-
clearable: boolean;
|
107
|
-
placeholder: string;
|
108
|
-
allowCustomColor: boolean;
|
109
|
-
}, never>> & {
|
110
|
-
locale?: string | undefined;
|
111
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
112
|
-
}, keyof import("../../theme").ThemeProps> & import("../../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
113
|
-
};
|
114
|
-
displayName: string;
|
115
|
-
contextType: React.Context<string>;
|
116
|
-
ComposedComponent: React.ComponentType<{
|
117
|
-
new (props: Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
118
|
-
format: string;
|
119
|
-
clearable: boolean;
|
120
|
-
placeholder: string;
|
121
|
-
allowCustomColor: boolean;
|
122
|
-
}, never>> & {
|
123
|
-
locale?: string | undefined;
|
124
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
125
|
-
}): {
|
126
|
-
ref: any;
|
127
|
-
childRef(ref: any): void;
|
128
|
-
getWrappedInstance(): any;
|
129
|
-
render(): JSX.Element;
|
130
|
-
context: any;
|
131
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
132
|
-
format: string;
|
133
|
-
clearable: boolean;
|
134
|
-
placeholder: string;
|
135
|
-
allowCustomColor: boolean;
|
136
|
-
}, never>> & {
|
137
|
-
locale?: string | undefined;
|
138
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
139
|
-
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
140
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
141
|
-
readonly props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
142
|
-
format: string;
|
143
|
-
clearable: boolean;
|
144
|
-
placeholder: string;
|
145
|
-
allowCustomColor: boolean;
|
146
|
-
}, never>> & {
|
147
|
-
locale?: string | undefined;
|
148
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
149
|
-
}> & Readonly<{
|
150
|
-
children?: React.ReactNode;
|
151
|
-
}>;
|
152
|
-
state: Readonly<{}>;
|
153
|
-
refs: {
|
154
|
-
[key: string]: React.ReactInstance;
|
155
|
-
};
|
156
|
-
componentDidMount?(): void;
|
157
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
158
|
-
format: string;
|
159
|
-
clearable: boolean;
|
160
|
-
placeholder: string;
|
161
|
-
allowCustomColor: boolean;
|
162
|
-
}, never>> & {
|
163
|
-
locale?: string | undefined;
|
164
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
165
|
-
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
166
|
-
componentWillUnmount?(): void;
|
167
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
168
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
169
|
-
format: string;
|
170
|
-
clearable: boolean;
|
171
|
-
placeholder: string;
|
172
|
-
allowCustomColor: boolean;
|
173
|
-
}, never>> & {
|
174
|
-
locale?: string | undefined;
|
175
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
176
|
-
}>, prevState: Readonly<{}>): any;
|
177
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
178
|
-
format: string;
|
179
|
-
clearable: boolean;
|
180
|
-
placeholder: string;
|
181
|
-
allowCustomColor: boolean;
|
182
|
-
}, never>> & {
|
183
|
-
locale?: string | undefined;
|
184
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
185
|
-
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
186
|
-
componentWillMount?(): void;
|
187
|
-
UNSAFE_componentWillMount?(): void;
|
188
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
189
|
-
format: string;
|
190
|
-
clearable: boolean;
|
191
|
-
placeholder: string;
|
192
|
-
allowCustomColor: boolean;
|
193
|
-
}, never>> & {
|
194
|
-
locale?: string | undefined;
|
195
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
196
|
-
}>, nextContext: any): void;
|
197
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
198
|
-
format: string;
|
199
|
-
clearable: boolean;
|
200
|
-
placeholder: string;
|
201
|
-
allowCustomColor: boolean;
|
202
|
-
}, never>> & {
|
203
|
-
locale?: string | undefined;
|
204
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
205
|
-
}>, nextContext: any): void;
|
206
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
207
|
-
format: string;
|
208
|
-
clearable: boolean;
|
209
|
-
placeholder: string;
|
210
|
-
allowCustomColor: boolean;
|
211
|
-
}, never>> & {
|
212
|
-
locale?: string | undefined;
|
213
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
214
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
215
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
216
|
-
format: string;
|
217
|
-
clearable: boolean;
|
218
|
-
placeholder: string;
|
219
|
-
allowCustomColor: boolean;
|
220
|
-
}, never>> & {
|
221
|
-
locale?: string | undefined;
|
222
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
223
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
224
|
-
};
|
225
|
-
displayName: string;
|
226
|
-
contextType: React.Context<string>;
|
227
|
-
ComposedComponent: React.ComponentType<typeof import("../../components/ColorPicker").ColorControl>;
|
228
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof import("../../components/ColorPicker").ColorControl, {}> & {
|
229
|
-
ComposedComponent: typeof import("../../components/ColorPicker").ColorControl;
|
230
|
-
}>;
|
231
|
-
} & import("hoist-non-react-statics").NonReactStatics<{
|
232
|
-
new (props: Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
233
|
-
format: string;
|
234
|
-
clearable: boolean;
|
235
|
-
placeholder: string;
|
236
|
-
allowCustomColor: boolean;
|
237
|
-
}, never>> & {
|
238
|
-
locale?: string | undefined;
|
239
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
240
|
-
}): {
|
241
|
-
ref: any;
|
242
|
-
childRef(ref: any): void;
|
243
|
-
getWrappedInstance(): any;
|
244
|
-
render(): JSX.Element;
|
245
|
-
context: any;
|
246
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
247
|
-
format: string;
|
248
|
-
clearable: boolean;
|
249
|
-
placeholder: string;
|
250
|
-
allowCustomColor: boolean;
|
251
|
-
}, never>> & {
|
252
|
-
locale?: string | undefined;
|
253
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
254
|
-
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
255
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
256
|
-
readonly props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
257
|
-
format: string;
|
258
|
-
clearable: boolean;
|
259
|
-
placeholder: string;
|
260
|
-
allowCustomColor: boolean;
|
261
|
-
}, never>> & {
|
262
|
-
locale?: string | undefined;
|
263
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
264
|
-
}> & Readonly<{
|
265
|
-
children?: React.ReactNode;
|
266
|
-
}>;
|
267
|
-
state: Readonly<{}>;
|
268
|
-
refs: {
|
269
|
-
[key: string]: React.ReactInstance;
|
270
|
-
};
|
271
|
-
componentDidMount?(): void;
|
272
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
273
|
-
format: string;
|
274
|
-
clearable: boolean;
|
275
|
-
placeholder: string;
|
276
|
-
allowCustomColor: boolean;
|
277
|
-
}, never>> & {
|
278
|
-
locale?: string | undefined;
|
279
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
280
|
-
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
281
|
-
componentWillUnmount?(): void;
|
282
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
283
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
284
|
-
format: string;
|
285
|
-
clearable: boolean;
|
286
|
-
placeholder: string;
|
287
|
-
allowCustomColor: boolean;
|
288
|
-
}, never>> & {
|
289
|
-
locale?: string | undefined;
|
290
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
291
|
-
}>, prevState: Readonly<{}>): any;
|
292
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
293
|
-
format: string;
|
294
|
-
clearable: boolean;
|
295
|
-
placeholder: string;
|
296
|
-
allowCustomColor: boolean;
|
297
|
-
}, never>> & {
|
298
|
-
locale?: string | undefined;
|
299
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
300
|
-
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
301
|
-
componentWillMount?(): void;
|
302
|
-
UNSAFE_componentWillMount?(): void;
|
303
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
304
|
-
format: string;
|
305
|
-
clearable: boolean;
|
306
|
-
placeholder: string;
|
307
|
-
allowCustomColor: boolean;
|
308
|
-
}, never>> & {
|
309
|
-
locale?: string | undefined;
|
310
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
311
|
-
}>, nextContext: any): void;
|
312
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
313
|
-
format: string;
|
314
|
-
clearable: boolean;
|
315
|
-
placeholder: string;
|
316
|
-
allowCustomColor: boolean;
|
317
|
-
}, never>> & {
|
318
|
-
locale?: string | undefined;
|
319
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
320
|
-
}>, nextContext: any): void;
|
321
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
322
|
-
format: string;
|
323
|
-
clearable: boolean;
|
324
|
-
placeholder: string;
|
325
|
-
allowCustomColor: boolean;
|
326
|
-
}, never>> & {
|
327
|
-
locale?: string | undefined;
|
328
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
329
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
330
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
331
|
-
format: string;
|
332
|
-
clearable: boolean;
|
333
|
-
placeholder: string;
|
334
|
-
allowCustomColor: boolean;
|
335
|
-
}, never>> & {
|
336
|
-
locale?: string | undefined;
|
337
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
338
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
339
|
-
};
|
340
|
-
displayName: string;
|
341
|
-
contextType: React.Context<string>;
|
342
|
-
ComposedComponent: React.ComponentType<typeof import("../../components/ColorPicker").ColorControl>;
|
343
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof import("../../components/ColorPicker").ColorControl, {}> & {
|
344
|
-
ComposedComponent: typeof import("../../components/ColorPicker").ColorControl;
|
345
|
-
}, {}> & {
|
346
|
-
ComposedComponent: {
|
347
|
-
new (props: Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
348
|
-
format: string;
|
349
|
-
clearable: boolean;
|
350
|
-
placeholder: string;
|
351
|
-
allowCustomColor: boolean;
|
352
|
-
}, never>> & {
|
353
|
-
locale?: string | undefined;
|
354
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
355
|
-
}): {
|
356
|
-
ref: any;
|
357
|
-
childRef(ref: any): void;
|
358
|
-
getWrappedInstance(): any;
|
359
|
-
render(): JSX.Element;
|
360
|
-
context: any;
|
361
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
362
|
-
format: string;
|
363
|
-
clearable: boolean;
|
364
|
-
placeholder: string;
|
365
|
-
allowCustomColor: boolean;
|
366
|
-
}, never>> & {
|
367
|
-
locale?: string | undefined;
|
368
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
369
|
-
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
370
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
371
|
-
readonly props: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
372
|
-
format: string;
|
373
|
-
clearable: boolean;
|
374
|
-
placeholder: string;
|
375
|
-
allowCustomColor: boolean;
|
376
|
-
}, never>> & {
|
377
|
-
locale?: string | undefined;
|
378
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
379
|
-
}> & Readonly<{
|
380
|
-
children?: React.ReactNode;
|
381
|
-
}>;
|
382
|
-
state: Readonly<{}>;
|
383
|
-
refs: {
|
384
|
-
[key: string]: React.ReactInstance;
|
385
|
-
};
|
386
|
-
componentDidMount?(): void;
|
387
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
388
|
-
format: string;
|
389
|
-
clearable: boolean;
|
390
|
-
placeholder: string;
|
391
|
-
allowCustomColor: boolean;
|
392
|
-
}, never>> & {
|
393
|
-
locale?: string | undefined;
|
394
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
395
|
-
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
396
|
-
componentWillUnmount?(): void;
|
397
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
398
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
399
|
-
format: string;
|
400
|
-
clearable: boolean;
|
401
|
-
placeholder: string;
|
402
|
-
allowCustomColor: boolean;
|
403
|
-
}, never>> & {
|
404
|
-
locale?: string | undefined;
|
405
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
406
|
-
}>, prevState: Readonly<{}>): any;
|
407
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
408
|
-
format: string;
|
409
|
-
clearable: boolean;
|
410
|
-
placeholder: string;
|
411
|
-
allowCustomColor: boolean;
|
412
|
-
}, never>> & {
|
413
|
-
locale?: string | undefined;
|
414
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
415
|
-
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
416
|
-
componentWillMount?(): void;
|
417
|
-
UNSAFE_componentWillMount?(): void;
|
418
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
419
|
-
format: string;
|
420
|
-
clearable: boolean;
|
421
|
-
placeholder: string;
|
422
|
-
allowCustomColor: boolean;
|
423
|
-
}, never>> & {
|
424
|
-
locale?: string | undefined;
|
425
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
426
|
-
}>, nextContext: any): void;
|
427
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
428
|
-
format: string;
|
429
|
-
clearable: boolean;
|
430
|
-
placeholder: string;
|
431
|
-
allowCustomColor: boolean;
|
432
|
-
}, never>> & {
|
433
|
-
locale?: string | undefined;
|
434
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
435
|
-
}>, nextContext: any): void;
|
436
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
437
|
-
format: string;
|
438
|
-
clearable: boolean;
|
439
|
-
placeholder: string;
|
440
|
-
allowCustomColor: boolean;
|
441
|
-
}, never>> & {
|
442
|
-
locale?: string | undefined;
|
443
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
444
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
445
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "disabled" | "resetValue" | "placement" | "onChange" | "useMobileUI" | "popOverContainer" | "popoverClassName" | "presetColors"> & Partial<Pick<Omit<import("../../components/ColorPicker").ColorProps, keyof import("../../locale").LocaleProps>, "placeholder" | "clearable" | "format" | "allowCustomColor">> & Partial<Pick<{
|
446
|
-
format: string;
|
447
|
-
clearable: boolean;
|
448
|
-
placeholder: string;
|
449
|
-
allowCustomColor: boolean;
|
450
|
-
}, never>> & {
|
451
|
-
locale?: string | undefined;
|
452
|
-
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
453
|
-
}>, nextState: Readonly<{}>, nextContext: any): void;
|
454
|
-
};
|
455
|
-
displayName: string;
|
456
|
-
contextType: React.Context<string>;
|
457
|
-
ComposedComponent: React.ComponentType<typeof import("../../components/ColorPicker").ColorControl>;
|
458
|
-
} & import("hoist-non-react-statics").NonReactStatics<typeof import("../../components/ColorPicker").ColorControl, {}> & {
|
459
|
-
ComposedComponent: typeof import("../../components/ColorPicker").ColorControl;
|
460
|
-
};
|
461
|
-
}>;
|
462
4
|
/**
|
463
5
|
* Color 颜色选择框
|
464
6
|
* 文档:https://baidu.gitee.io/amis/docs/components/form/color
|
@@ -1,12 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ColorControlRenderer =
|
3
|
+
exports.ColorControlRenderer = void 0;
|
4
4
|
var tslib_1 = require("tslib");
|
5
|
-
var react_1 = tslib_1.
|
5
|
+
var react_1 = (0, tslib_1.__importDefault)(require("react"));
|
6
6
|
var classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
|
7
7
|
var Item_1 = require("./Item");
|
8
8
|
var helper_1 = require("../../utils/helper");
|
9
|
-
|
9
|
+
var ColorPicker_1 = (0, tslib_1.__importDefault)(require("../../components/ColorPicker"));
|
10
10
|
var ColorControl = /** @class */ (function (_super) {
|
11
11
|
(0, tslib_1.__extends)(ColorControl, _super);
|
12
12
|
function ColorControl() {
|
@@ -20,12 +20,11 @@ var ColorControl = /** @class */ (function (_super) {
|
|
20
20
|
var _a = this.props, className = _a.className, ns = _a.classPrefix, value = _a.value, env = _a.env, useMobileUI = _a.useMobileUI, rest = (0, tslib_1.__rest)(_a, ["className", "classPrefix", "value", "env", "useMobileUI"]);
|
21
21
|
var mobileUI = useMobileUI && (0, helper_1.isMobile)();
|
22
22
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)("".concat(ns, "ColorControl"), className) },
|
23
|
-
react_1.default.createElement(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
: rest.popOverContainer, value: value || '' })))));
|
23
|
+
react_1.default.createElement(ColorPicker_1.default, (0, tslib_1.__assign)({ classPrefix: ns }, rest, { useMobileUI: useMobileUI, popOverContainer: mobileUI && env && env.getModalContainer
|
24
|
+
? env.getModalContainer
|
25
|
+
: mobileUI
|
26
|
+
? undefined
|
27
|
+
: rest.popOverContainer, value: value || '' }))));
|
29
28
|
};
|
30
29
|
ColorControl.defaultProps = {
|
31
30
|
format: 'hex',
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"/src/renderers/Form/InputColor.tsx"
|
7
7
|
],
|
8
8
|
"names": [],
|
9
|
-
"mappings": ";;;;AAAA,
|
9
|
+
"mappings": ";;;;AAAA,6DAAsC;AACtC,uEAA4B;AAE5B,+BAAmE;AAEnE,6CAA4C;AAC5C,0FAAuD;AAiDvD;IAA0C,6CAGzC;IAHD;QAAA,qEAwCC;QAhCC,WAAK,GAAsB;YACzB,IAAI,EAAE,KAAK;SACZ,CAAC;;IA8BJ,CAAC;IA5BC,6BAAM,GAAN;QACE,IAAM,KAOF,IAAI,CAAC,KAAK,EANZ,SAAS,eAAA,EACI,EAAE,iBAAA,EACf,KAAK,WAAA,EACL,GAAG,SAAA,EACH,WAAW,iBAAA,EACR,IAAI,2BANH,2DAOL,CAAa,CAAC;QACf,IAAM,QAAQ,GAAG,WAAW,IAAI,IAAA,iBAAQ,GAAE,CAAC;QAC3C,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,UAAG,EAAE,iBAAc,EAAE,SAAS,CAAC;YAChD,8BAAC,qBAAW,0BACV,WAAW,EAAE,EAAE,IACX,IAAI,IACR,WAAW,EAAE,WAAW,EACxB,gBAAgB,EACd,QAAQ,IAAI,GAAG,IAAI,GAAG,CAAC,iBAAiB;oBACtC,CAAC,CAAC,GAAG,CAAC,iBAAiB;oBACvB,CAAC,CAAC,QAAQ;wBACV,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAE3B,KAAK,EAAE,KAAK,IAAI,EAAE,IAClB,CACE,CACP,CAAC;IACJ,CAAC;IAnCM,yBAAY,GAAwB;QACzC,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,IAAI;KAChB,CAAC;IAiCJ,mBAAC;CAAA,AAxCD,CAA0C,eAAK,CAAC,aAAa,GAwC5D;kBAxCoB,YAAY;AA6CjC;IAA0C,qDAAY;IAAtD;;IAAwD,CAAC;IAA5C,oBAAoB;QAHhC,IAAA,eAAQ,EAAC;YACR,IAAI,EAAE,aAAa;SACpB,CAAC;OACW,oBAAoB,CAAwB;IAAD,2BAAC;CAAA,AAAzD,CAA0C,YAAY,GAAG;AAA5C,oDAAoB",
|
10
10
|
"sourcesContent": [
|
11
|
-
"import React, {Suspense} from 'react';\nimport cx from 'classnames';\n\nimport {FormItem, FormControlProps, FormBaseControl} from './Item';\nimport type {PresetColor} from '../../components/ColorPicker';\nimport {isMobile} from '../../utils/helper';\
|
11
|
+
"import React, {Suspense} from 'react';\nimport cx from 'classnames';\n\nimport {FormItem, FormControlProps, FormBaseControl} from './Item';\nimport type {PresetColor} from '../../components/ColorPicker';\nimport {isMobile} from '../../utils/helper';\nimport ColorPicker from '../../components/ColorPicker';\n\n/**\n * Color 颜色选择框\n * 文档:https://baidu.gitee.io/amis/docs/components/form/color\n */\nexport interface InputColorControlSchema extends FormBaseControl {\n /**\n * 指定为颜色选择框\n */\n type: 'input-color';\n\n /**\n * 是否显示清除按钮\n */\n clearable?: boolean;\n\n /**\n * 颜色格式\n */\n format?: 'hex' | 'rgb' | 'rgba' | 'hsl';\n\n /**\n * 选中颜色后是否关闭弹出层。\n */\n closeOnSelect?: boolean;\n\n /**\n * 预设颜色,用户可以直接从预设中选。\n */\n presetColors?: Array<PresetColor>;\n\n /**\n * 是否允许用户输入颜色。\n */\n allowCustomColor?: boolean;\n}\n\nexport interface ColorProps\n extends FormControlProps,\n Omit<\n InputColorControlSchema,\n 'type' | 'className' | 'descriptionClassName' | 'inputClassName'\n > {}\n\nexport interface ColorControlState {\n open: boolean;\n}\n\nexport default class ColorControl extends React.PureComponent<\n ColorProps,\n ColorControlState\n> {\n static defaultProps: Partial<ColorProps> = {\n format: 'hex',\n clearable: true\n };\n state: ColorControlState = {\n open: false\n };\n\n render() {\n const {\n className,\n classPrefix: ns,\n value,\n env,\n useMobileUI,\n ...rest\n } = this.props;\n const mobileUI = useMobileUI && isMobile();\n return (\n <div className={cx(`${ns}ColorControl`, className)}>\n <ColorPicker\n classPrefix={ns}\n {...rest}\n useMobileUI={useMobileUI}\n popOverContainer={\n mobileUI && env && env.getModalContainer\n ? env.getModalContainer\n : mobileUI\n ? undefined\n : rest.popOverContainer\n }\n value={value || ''}\n />\n </div>\n );\n }\n}\n\n@FormItem({\n type: 'input-color'\n})\nexport class ColorControlRenderer extends ColorControl {}\n"
|
12
12
|
]
|
13
13
|
}
|
@@ -37,6 +37,7 @@ export default class ExcelControl extends React.PureComponent<ExcelProps, ExcelC
|
|
37
37
|
static defaultProps: Partial<ExcelProps>;
|
38
38
|
state: ExcelControlState;
|
39
39
|
ExcelJS: any;
|
40
|
+
componentDidUpdate(prevProps: ExcelProps): void;
|
40
41
|
handleDrop(files: File[]): void;
|
41
42
|
dispatchEvent(eventName: string, eventData?: Record<string, any>): Promise<any>;
|
42
43
|
/**
|
@@ -15,6 +15,11 @@ var ExcelControl = /** @class */ (function (_super) {
|
|
15
15
|
};
|
16
16
|
return _this;
|
17
17
|
}
|
18
|
+
ExcelControl.prototype.componentDidUpdate = function (prevProps) {
|
19
|
+
if (prevProps.value !== this.props.value && !this.props.value) {
|
20
|
+
this.setState({ filename: '' });
|
21
|
+
}
|
22
|
+
};
|
18
23
|
ExcelControl.prototype.handleDrop = function (files) {
|
19
24
|
var _this = this;
|
20
25
|
var _a = this.props, allSheets = _a.allSheets, onChange = _a.onChange, dispatchEvent = _a.dispatchEvent, data = _a.data;
|