amis 1.9.1-beta.0 → 1.9.1-beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. package/lib/RootRenderer.js +10 -2
  2. package/lib/RootRenderer.js.map +2 -2
  3. package/lib/Schema.d.ts +3 -2
  4. package/lib/Schema.js.map +1 -1
  5. package/lib/SchemaRenderer.js +6 -9
  6. package/lib/SchemaRenderer.js.map +2 -2
  7. package/lib/actions/CmptAction.js +4 -4
  8. package/lib/actions/CmptAction.js.map +2 -2
  9. package/lib/components/Button.d.ts +11 -10
  10. package/lib/components/Button.js +2 -2
  11. package/lib/components/Button.js.map +2 -2
  12. package/lib/components/CalendarMobile.d.ts +40 -40
  13. package/lib/components/Checkbox.js +1 -1
  14. package/lib/components/Checkbox.js.map +2 -2
  15. package/lib/components/ContextMenu.d.ts +4 -0
  16. package/lib/components/ContextMenu.js +23 -7
  17. package/lib/components/ContextMenu.js.map +2 -2
  18. package/lib/components/DatePicker.d.ts +40 -40
  19. package/lib/components/DateRangePicker.d.ts +40 -40
  20. package/lib/components/Form.d.ts +22 -0
  21. package/lib/components/Form.js +44 -0
  22. package/lib/components/Form.js.map +13 -0
  23. package/lib/components/FormField.d.ts +65 -0
  24. package/lib/components/FormField.js +48 -0
  25. package/lib/components/FormField.js.map +13 -0
  26. package/lib/components/InputBox.d.ts +10 -10
  27. package/lib/components/InputBox.js +4 -3
  28. package/lib/components/InputBox.js.map +2 -2
  29. package/lib/components/InputBoxWithSuggestion.d.ts +280 -0
  30. package/lib/components/InputBoxWithSuggestion.js +65 -0
  31. package/lib/components/InputBoxWithSuggestion.js.map +13 -0
  32. package/lib/components/ListGroup.d.ts +10 -10
  33. package/lib/components/PickerContainer.d.ts +4 -2
  34. package/lib/components/PickerContainer.js +28 -5
  35. package/lib/components/PickerContainer.js.map +2 -2
  36. package/lib/components/Radios.d.ts +10 -10
  37. package/lib/components/ResultBox.d.ts +40 -40
  38. package/lib/components/Select.d.ts +195 -202
  39. package/lib/components/Select.js +7 -3
  40. package/lib/components/Select.js.map +2 -2
  41. package/lib/components/Textarea.d.ts +568 -2
  42. package/lib/components/Textarea.js +129 -1
  43. package/lib/components/Textarea.js.map +2 -2
  44. package/lib/components/Toast.js +11 -9
  45. package/lib/components/Toast.js.map +2 -2
  46. package/lib/components/UserSelect.d.ts +500 -0
  47. package/lib/components/UserSelect.js +559 -0
  48. package/lib/components/UserSelect.js.map +13 -0
  49. package/lib/components/UserTabSelect.d.ts +320 -0
  50. package/lib/components/UserTabSelect.js +163 -0
  51. package/lib/components/UserTabSelect.js.map +13 -0
  52. package/lib/components/WithRemoteConfig.d.ts +7 -0
  53. package/lib/components/WithRemoteConfig.js +22 -13
  54. package/lib/components/WithRemoteConfig.js.map +2 -2
  55. package/lib/components/calendar/DaysView.d.ts +26 -1
  56. package/lib/components/calendar/DaysView.js +60 -19
  57. package/lib/components/calendar/DaysView.js.map +2 -2
  58. package/lib/components/calendar/TimeView.d.ts +1 -1
  59. package/lib/components/calendar/TimeView.js +10 -3
  60. package/lib/components/calendar/TimeView.js.map +2 -2
  61. package/lib/components/formula/Picker.js +4 -4
  62. package/lib/components/formula/Picker.js.map +2 -2
  63. package/lib/components/icons.d.ts +7 -1
  64. package/lib/components/icons.js +17 -1
  65. package/lib/components/icons.js.map +2 -2
  66. package/lib/components/index.d.ts +2 -1
  67. package/lib/components/index.js +3 -1
  68. package/lib/components/index.js.map +2 -2
  69. package/lib/components/json-schema/Array.d.ts +3 -0
  70. package/lib/components/json-schema/Array.js +125 -0
  71. package/lib/components/json-schema/Array.js.map +13 -0
  72. package/lib/components/json-schema/Item.d.ts +3 -0
  73. package/lib/components/json-schema/Item.js +34 -0
  74. package/lib/components/json-schema/Item.js.map +13 -0
  75. package/lib/components/json-schema/Object.d.ts +3 -0
  76. package/lib/components/json-schema/Object.js +178 -0
  77. package/lib/components/json-schema/Object.js.map +13 -0
  78. package/lib/components/json-schema/index.d.ts +279 -0
  79. package/lib/components/json-schema/index.js +16 -0
  80. package/lib/components/json-schema/index.js.map +13 -0
  81. package/lib/components/schema-editor/Array.js +2 -2
  82. package/lib/components/schema-editor/Array.js.map +2 -2
  83. package/lib/components/schema-editor/Common.d.ts +2 -0
  84. package/lib/components/schema-editor/Common.js +39 -3
  85. package/lib/components/schema-editor/Common.js.map +2 -2
  86. package/lib/components/schema-editor/Object.js +2 -2
  87. package/lib/components/schema-editor/Object.js.map +2 -2
  88. package/lib/components/schema-editor/index.d.ts +45 -41
  89. package/lib/components/schema-editor/index.js +5 -5
  90. package/lib/components/schema-editor/index.js.map +2 -2
  91. package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
  92. package/lib/components/table/ItemActionsWrapper.js +25 -0
  93. package/lib/components/table/ItemActionsWrapper.js.map +13 -0
  94. package/lib/components/table/index.d.ts +48 -41
  95. package/lib/components/table/index.js +46 -18
  96. package/lib/components/table/index.js.map +2 -2
  97. package/lib/helper.css +125 -124
  98. package/lib/helper.css.map +1 -1
  99. package/lib/hooks/use-validation-resolver.d.ts +1 -0
  100. package/lib/hooks/use-validation-resolver.js +49 -0
  101. package/lib/hooks/use-validation-resolver.js.map +13 -0
  102. package/lib/icons/department.js +17 -0
  103. package/lib/icons/menu.js +9 -0
  104. package/lib/icons/post.js +15 -0
  105. package/lib/icons/role.js +14 -0
  106. package/lib/icons/user-remove.js +12 -0
  107. package/lib/index.d.ts +2 -0
  108. package/lib/index.js +3 -1
  109. package/lib/index.js.map +2 -2
  110. package/lib/locale/de-DE.js +11 -1
  111. package/lib/locale/de-DE.js.map +2 -2
  112. package/lib/locale/en-US.js +12 -1
  113. package/lib/locale/en-US.js.map +2 -2
  114. package/lib/locale/zh-CN.js +14 -3
  115. package/lib/locale/zh-CN.js.map +2 -2
  116. package/lib/renderers/Action.js +25 -11
  117. package/lib/renderers/Action.js.map +2 -2
  118. package/lib/renderers/CRUD.js +5 -1
  119. package/lib/renderers/CRUD.js.map +2 -2
  120. package/lib/renderers/Dialog.js +9 -3
  121. package/lib/renderers/Dialog.js.map +2 -2
  122. package/lib/renderers/Drawer.js +5 -1
  123. package/lib/renderers/Drawer.js.map +2 -2
  124. package/lib/renderers/Form/InputDate.d.ts +2 -2
  125. package/lib/renderers/Form/InputDate.js.map +2 -2
  126. package/lib/renderers/Form/JSONSchema.d.ts +23 -0
  127. package/lib/renderers/Form/JSONSchema.js +44 -0
  128. package/lib/renderers/Form/JSONSchema.js.map +13 -0
  129. package/lib/renderers/Form/JSONSchemaEditor.d.ts +2 -3
  130. package/lib/renderers/Form/JSONSchemaEditor.js +9 -24
  131. package/lib/renderers/Form/JSONSchemaEditor.js.map +2 -2
  132. package/lib/renderers/Form/Options.js +11 -5
  133. package/lib/renderers/Form/Options.js.map +2 -2
  134. package/lib/renderers/Form/Textarea.d.ts +1 -8
  135. package/lib/renderers/Form/Textarea.js +11 -75
  136. package/lib/renderers/Form/Textarea.js.map +2 -2
  137. package/lib/renderers/Form/UserSelect.d.ts +54 -0
  138. package/lib/renderers/Form/UserSelect.js +197 -0
  139. package/lib/renderers/Form/UserSelect.js.map +13 -0
  140. package/lib/renderers/Form/index.d.ts +1 -1
  141. package/lib/renderers/Form/index.js +88 -42
  142. package/lib/renderers/Form/index.js.map +2 -2
  143. package/lib/renderers/Form/wrapControl.js.map +2 -2
  144. package/lib/renderers/Log.d.ts +28 -0
  145. package/lib/renderers/Log.js +110 -20
  146. package/lib/renderers/Log.js.map +2 -2
  147. package/lib/renderers/Page.js +5 -1
  148. package/lib/renderers/Page.js.map +2 -2
  149. package/lib/renderers/Service.js +5 -1
  150. package/lib/renderers/Service.js.map +2 -2
  151. package/lib/renderers/Table-v2/index.d.ts +14 -2
  152. package/lib/renderers/Table-v2/index.js +33 -3
  153. package/lib/renderers/Table-v2/index.js.map +2 -2
  154. package/lib/renderers/Wizard.js +37 -14
  155. package/lib/renderers/Wizard.js.map +2 -2
  156. package/lib/store/form.js +65 -45
  157. package/lib/store/form.js.map +2 -2
  158. package/lib/themes/ang-ie11.css +576 -24
  159. package/lib/themes/ang.css +553 -12
  160. package/lib/themes/ang.css.map +1 -1
  161. package/lib/themes/antd-ie11.css +576 -24
  162. package/lib/themes/antd.css +553 -12
  163. package/lib/themes/antd.css.map +1 -1
  164. package/lib/themes/cxd-ie11.css +576 -24
  165. package/lib/themes/cxd.css +553 -12
  166. package/lib/themes/cxd.css.map +1 -1
  167. package/lib/themes/dark-ie11.css +576 -24
  168. package/lib/themes/dark.css +553 -12
  169. package/lib/themes/dark.css.map +1 -1
  170. package/lib/themes/default-ie11.css +576 -24
  171. package/lib/themes/default.css +553 -12
  172. package/lib/themes/default.css.map +1 -1
  173. package/lib/utils/api.js +1 -1
  174. package/lib/utils/api.js.map +2 -2
  175. package/lib/utils/renderer-event.js.map +2 -2
  176. package/package.json +2 -1
  177. package/schema.json +552 -5
  178. package/scss/_properties.scss +20 -8
  179. package/scss/components/_input-box.scss +22 -1
  180. package/scss/components/_json-schema.scss +124 -0
  181. package/scss/components/_log.scss +37 -5
  182. package/scss/components/form/_date-range.scss +1 -0
  183. package/scss/components/form/_select.scss +9 -0
  184. package/scss/components/form/_transfer.scss +19 -3
  185. package/scss/components/form/_user-select.scss +422 -0
  186. package/scss/helper/background/_background-color.scss +125 -124
  187. package/scss/themes/_common.scss +2 -0
  188. package/sdk/ang-ie11.css +670 -24
  189. package/sdk/ang.css +647 -12
  190. package/sdk/antd-ie11.css +670 -24
  191. package/sdk/antd.css +647 -12
  192. package/sdk/barcode.js +51 -51
  193. package/sdk/charts.js +14 -14
  194. package/sdk/codemirror.js +7 -7
  195. package/sdk/color-picker.js +65 -65
  196. package/sdk/cropperjs.js +2 -2
  197. package/sdk/cxd-ie11.css +670 -24
  198. package/sdk/cxd.css +647 -12
  199. package/sdk/dark-ie11.css +670 -24
  200. package/sdk/dark.css +647 -12
  201. package/sdk/exceljs.js +1 -1
  202. package/sdk/helper.css +125 -124
  203. package/sdk/helper.css.map +1 -1
  204. package/sdk/locale/de-DE.js +11 -1
  205. package/sdk/markdown.js +69 -69
  206. package/sdk/papaparse.js +1 -1
  207. package/sdk/renderers/Form/CityDB.js +1 -1
  208. package/sdk/rest.js +16 -16
  209. package/sdk/rich-text.js +62 -62
  210. package/sdk/sdk-ie11.css +670 -24
  211. package/sdk/sdk.css +647 -12
  212. package/sdk/sdk.js +1653 -1637
  213. package/sdk/thirds/hls.js/hls.js +1 -1
  214. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  215. package/sdk/tinymce.js +57 -57
  216. package/src/RootRenderer.tsx +27 -15
  217. package/src/Schema.ts +5 -1
  218. package/src/SchemaRenderer.tsx +1 -4
  219. package/src/actions/CmptAction.ts +4 -4
  220. package/src/components/Button.tsx +3 -0
  221. package/src/components/Checkbox.tsx +2 -1
  222. package/src/components/ContextMenu.tsx +25 -7
  223. package/src/components/Form.tsx +70 -0
  224. package/src/components/FormField.tsx +127 -0
  225. package/src/components/InputBox.tsx +4 -1
  226. package/src/components/InputBoxWithSuggestion.tsx +113 -0
  227. package/src/components/PickerContainer.tsx +20 -5
  228. package/src/components/Select.tsx +18 -10
  229. package/src/components/Textarea.tsx +234 -2
  230. package/src/components/Toast.tsx +19 -18
  231. package/src/components/UserSelect.tsx +850 -0
  232. package/src/components/UserTabSelect.tsx +261 -0
  233. package/src/components/WithRemoteConfig.tsx +35 -11
  234. package/src/components/calendar/DaysView.tsx +117 -49
  235. package/src/components/calendar/TimeView.tsx +11 -6
  236. package/src/components/formula/Picker.tsx +2 -1
  237. package/src/components/icons.tsx +17 -1
  238. package/src/components/index.tsx +3 -1
  239. package/src/components/json-schema/Array.tsx +216 -0
  240. package/src/components/json-schema/Item.tsx +47 -0
  241. package/src/components/json-schema/Object.tsx +339 -0
  242. package/src/components/json-schema/index.tsx +44 -0
  243. package/src/components/schema-editor/Array.tsx +3 -1
  244. package/src/components/schema-editor/Common.tsx +61 -4
  245. package/src/components/schema-editor/Object.tsx +3 -1
  246. package/src/components/schema-editor/index.tsx +12 -5
  247. package/src/components/table/ItemActionsWrapper.tsx +32 -0
  248. package/src/components/table/index.tsx +115 -58
  249. package/src/hooks/use-validation-resolver.ts +45 -0
  250. package/src/icons/department.svg +17 -0
  251. package/src/icons/menu.svg +2 -0
  252. package/src/icons/post.svg +15 -0
  253. package/src/icons/role.svg +14 -0
  254. package/src/icons/user-remove.svg +12 -0
  255. package/src/index.tsx +2 -0
  256. package/src/locale/de-DE.ts +11 -1
  257. package/src/locale/en-US.ts +12 -1
  258. package/src/locale/zh-CN.ts +14 -3
  259. package/src/renderers/Action.tsx +10 -9
  260. package/src/renderers/CRUD.tsx +5 -1
  261. package/src/renderers/Dialog.tsx +9 -3
  262. package/src/renderers/Drawer.tsx +5 -1
  263. package/src/renderers/Form/InputDate.tsx +9 -4
  264. package/src/renderers/Form/JSONSchema.tsx +56 -0
  265. package/src/renderers/Form/JSONSchemaEditor.tsx +8 -27
  266. package/src/renderers/Form/Options.tsx +17 -7
  267. package/src/renderers/Form/Textarea.tsx +7 -117
  268. package/src/renderers/Form/UserSelect.tsx +263 -0
  269. package/src/renderers/Form/index.tsx +28 -18
  270. package/src/renderers/Form/wrapControl.tsx +0 -1
  271. package/src/renderers/Log.tsx +213 -19
  272. package/src/renderers/Page.tsx +6 -1
  273. package/src/renderers/Service.tsx +5 -1
  274. package/src/renderers/Table-v2/index.tsx +65 -2
  275. package/src/renderers/Wizard.tsx +24 -10
  276. package/src/store/form.ts +24 -17
  277. package/src/utils/api.ts +1 -1
  278. package/src/utils/renderer-event.ts +0 -2
@@ -137,7 +137,7 @@ export declare class DateRangePicker extends React.Component<DateRangePickerProp
137
137
  render(): JSX.Element;
138
138
  }
139
139
  declare const _default: {
140
- new (props: Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
140
+ new (props: Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
141
141
  startPlaceholder: string;
142
142
  endPlaceholder: string;
143
143
  format: string;
@@ -158,7 +158,7 @@ declare const _default: {
158
158
  getWrappedInstance(): any;
159
159
  render(): JSX.Element;
160
160
  context: any;
161
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
161
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
162
162
  startPlaceholder: string;
163
163
  endPlaceholder: string;
164
164
  format: string;
@@ -175,7 +175,7 @@ declare const _default: {
175
175
  translate?: ((str: string, ...args: any[]) => string) | undefined;
176
176
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
177
177
  forceUpdate(callback?: (() => void) | undefined): void;
178
- readonly props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
178
+ readonly props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
179
179
  startPlaceholder: string;
180
180
  endPlaceholder: string;
181
181
  format: string;
@@ -198,7 +198,7 @@ declare const _default: {
198
198
  [key: string]: React.ReactInstance;
199
199
  };
200
200
  componentDidMount?(): void;
201
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
201
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
202
202
  startPlaceholder: string;
203
203
  endPlaceholder: string;
204
204
  format: string;
@@ -216,7 +216,7 @@ declare const _default: {
216
216
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
217
217
  componentWillUnmount?(): void;
218
218
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
219
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
219
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
220
220
  startPlaceholder: string;
221
221
  endPlaceholder: string;
222
222
  format: string;
@@ -232,7 +232,7 @@ declare const _default: {
232
232
  locale?: string | undefined;
233
233
  translate?: ((str: string, ...args: any[]) => string) | undefined;
234
234
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
235
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
235
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
236
236
  startPlaceholder: string;
237
237
  endPlaceholder: string;
238
238
  format: string;
@@ -250,7 +250,7 @@ declare const _default: {
250
250
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
251
251
  componentWillMount?(): void;
252
252
  UNSAFE_componentWillMount?(): void;
253
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
253
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
254
254
  startPlaceholder: string;
255
255
  endPlaceholder: string;
256
256
  format: string;
@@ -266,7 +266,7 @@ declare const _default: {
266
266
  locale?: string | undefined;
267
267
  translate?: ((str: string, ...args: any[]) => string) | undefined;
268
268
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
269
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
269
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
270
270
  startPlaceholder: string;
271
271
  endPlaceholder: string;
272
272
  format: string;
@@ -282,7 +282,7 @@ declare const _default: {
282
282
  locale?: string | undefined;
283
283
  translate?: ((str: string, ...args: any[]) => string) | undefined;
284
284
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
285
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
285
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
286
286
  startPlaceholder: string;
287
287
  endPlaceholder: string;
288
288
  format: string;
@@ -298,7 +298,7 @@ declare const _default: {
298
298
  locale?: string | undefined;
299
299
  translate?: ((str: string, ...args: any[]) => string) | undefined;
300
300
  }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
301
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
301
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
302
302
  startPlaceholder: string;
303
303
  endPlaceholder: string;
304
304
  format: string;
@@ -318,7 +318,7 @@ declare const _default: {
318
318
  displayName: string;
319
319
  contextType: React.Context<string>;
320
320
  ComposedComponent: React.ComponentType<{
321
- new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
321
+ new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
322
322
  startPlaceholder: string;
323
323
  endPlaceholder: string;
324
324
  format: string;
@@ -339,7 +339,7 @@ declare const _default: {
339
339
  getWrappedInstance(): any;
340
340
  render(): JSX.Element;
341
341
  context: any;
342
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
342
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
343
343
  startPlaceholder: string;
344
344
  endPlaceholder: string;
345
345
  format: string;
@@ -356,7 +356,7 @@ declare const _default: {
356
356
  translate?: ((str: string, ...args: any[]) => string) | undefined;
357
357
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
358
358
  forceUpdate(callback?: (() => void) | undefined): void;
359
- readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
359
+ readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
360
360
  startPlaceholder: string;
361
361
  endPlaceholder: string;
362
362
  format: string;
@@ -379,7 +379,7 @@ declare const _default: {
379
379
  [key: string]: React.ReactInstance;
380
380
  };
381
381
  componentDidMount?(): void;
382
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
382
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
383
383
  startPlaceholder: string;
384
384
  endPlaceholder: string;
385
385
  format: string;
@@ -397,7 +397,7 @@ declare const _default: {
397
397
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
398
398
  componentWillUnmount?(): void;
399
399
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
400
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
400
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
401
401
  startPlaceholder: string;
402
402
  endPlaceholder: string;
403
403
  format: string;
@@ -413,7 +413,7 @@ declare const _default: {
413
413
  locale?: string | undefined;
414
414
  translate?: ((str: string, ...args: any[]) => string) | undefined;
415
415
  }>, prevState: Readonly<{}>): any;
416
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
416
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
417
417
  startPlaceholder: string;
418
418
  endPlaceholder: string;
419
419
  format: string;
@@ -431,7 +431,7 @@ declare const _default: {
431
431
  }>, prevState: Readonly<{}>, snapshot?: any): void;
432
432
  componentWillMount?(): void;
433
433
  UNSAFE_componentWillMount?(): void;
434
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
434
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
435
435
  startPlaceholder: string;
436
436
  endPlaceholder: string;
437
437
  format: string;
@@ -447,7 +447,7 @@ declare const _default: {
447
447
  locale?: string | undefined;
448
448
  translate?: ((str: string, ...args: any[]) => string) | undefined;
449
449
  }>, nextContext: any): void;
450
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
450
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
451
451
  startPlaceholder: string;
452
452
  endPlaceholder: string;
453
453
  format: string;
@@ -463,7 +463,7 @@ declare const _default: {
463
463
  locale?: string | undefined;
464
464
  translate?: ((str: string, ...args: any[]) => string) | undefined;
465
465
  }>, nextContext: any): void;
466
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
466
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
467
467
  startPlaceholder: string;
468
468
  endPlaceholder: string;
469
469
  format: string;
@@ -479,7 +479,7 @@ declare const _default: {
479
479
  locale?: string | undefined;
480
480
  translate?: ((str: string, ...args: any[]) => string) | undefined;
481
481
  }>, nextState: Readonly<{}>, nextContext: any): void;
482
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
482
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
483
483
  startPlaceholder: string;
484
484
  endPlaceholder: string;
485
485
  format: string;
@@ -503,7 +503,7 @@ declare const _default: {
503
503
  ComposedComponent: typeof DateRangePicker;
504
504
  }>;
505
505
  } & import("hoist-non-react-statics").NonReactStatics<{
506
- new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
506
+ new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
507
507
  startPlaceholder: string;
508
508
  endPlaceholder: string;
509
509
  format: string;
@@ -524,7 +524,7 @@ declare const _default: {
524
524
  getWrappedInstance(): any;
525
525
  render(): JSX.Element;
526
526
  context: any;
527
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
527
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
528
528
  startPlaceholder: string;
529
529
  endPlaceholder: string;
530
530
  format: string;
@@ -541,7 +541,7 @@ declare const _default: {
541
541
  translate?: ((str: string, ...args: any[]) => string) | undefined;
542
542
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
543
543
  forceUpdate(callback?: (() => void) | undefined): void;
544
- readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
544
+ readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
545
545
  startPlaceholder: string;
546
546
  endPlaceholder: string;
547
547
  format: string;
@@ -564,7 +564,7 @@ declare const _default: {
564
564
  [key: string]: React.ReactInstance;
565
565
  };
566
566
  componentDidMount?(): void;
567
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
567
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
568
568
  startPlaceholder: string;
569
569
  endPlaceholder: string;
570
570
  format: string;
@@ -582,7 +582,7 @@ declare const _default: {
582
582
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
583
583
  componentWillUnmount?(): void;
584
584
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
585
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
585
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
586
586
  startPlaceholder: string;
587
587
  endPlaceholder: string;
588
588
  format: string;
@@ -598,7 +598,7 @@ declare const _default: {
598
598
  locale?: string | undefined;
599
599
  translate?: ((str: string, ...args: any[]) => string) | undefined;
600
600
  }>, prevState: Readonly<{}>): any;
601
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
601
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
602
602
  startPlaceholder: string;
603
603
  endPlaceholder: string;
604
604
  format: string;
@@ -616,7 +616,7 @@ declare const _default: {
616
616
  }>, prevState: Readonly<{}>, snapshot?: any): void;
617
617
  componentWillMount?(): void;
618
618
  UNSAFE_componentWillMount?(): void;
619
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
619
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
620
620
  startPlaceholder: string;
621
621
  endPlaceholder: string;
622
622
  format: string;
@@ -632,7 +632,7 @@ declare const _default: {
632
632
  locale?: string | undefined;
633
633
  translate?: ((str: string, ...args: any[]) => string) | undefined;
634
634
  }>, nextContext: any): void;
635
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
635
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
636
636
  startPlaceholder: string;
637
637
  endPlaceholder: string;
638
638
  format: string;
@@ -648,7 +648,7 @@ declare const _default: {
648
648
  locale?: string | undefined;
649
649
  translate?: ((str: string, ...args: any[]) => string) | undefined;
650
650
  }>, nextContext: any): void;
651
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
651
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
652
652
  startPlaceholder: string;
653
653
  endPlaceholder: string;
654
654
  format: string;
@@ -664,7 +664,7 @@ declare const _default: {
664
664
  locale?: string | undefined;
665
665
  translate?: ((str: string, ...args: any[]) => string) | undefined;
666
666
  }>, nextState: Readonly<{}>, nextContext: any): void;
667
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
667
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
668
668
  startPlaceholder: string;
669
669
  endPlaceholder: string;
670
670
  format: string;
@@ -688,7 +688,7 @@ declare const _default: {
688
688
  ComposedComponent: typeof DateRangePicker;
689
689
  }, {}> & {
690
690
  ComposedComponent: {
691
- new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
691
+ new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
692
692
  startPlaceholder: string;
693
693
  endPlaceholder: string;
694
694
  format: string;
@@ -709,7 +709,7 @@ declare const _default: {
709
709
  getWrappedInstance(): any;
710
710
  render(): JSX.Element;
711
711
  context: any;
712
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
712
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
713
713
  startPlaceholder: string;
714
714
  endPlaceholder: string;
715
715
  format: string;
@@ -726,7 +726,7 @@ declare const _default: {
726
726
  translate?: ((str: string, ...args: any[]) => string) | undefined;
727
727
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
728
728
  forceUpdate(callback?: (() => void) | undefined): void;
729
- readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
729
+ readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
730
730
  startPlaceholder: string;
731
731
  endPlaceholder: string;
732
732
  format: string;
@@ -749,7 +749,7 @@ declare const _default: {
749
749
  [key: string]: React.ReactInstance;
750
750
  };
751
751
  componentDidMount?(): void;
752
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
752
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
753
753
  startPlaceholder: string;
754
754
  endPlaceholder: string;
755
755
  format: string;
@@ -767,7 +767,7 @@ declare const _default: {
767
767
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
768
768
  componentWillUnmount?(): void;
769
769
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
770
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
770
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
771
771
  startPlaceholder: string;
772
772
  endPlaceholder: string;
773
773
  format: string;
@@ -783,7 +783,7 @@ declare const _default: {
783
783
  locale?: string | undefined;
784
784
  translate?: ((str: string, ...args: any[]) => string) | undefined;
785
785
  }>, prevState: Readonly<{}>): any;
786
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
786
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
787
787
  startPlaceholder: string;
788
788
  endPlaceholder: string;
789
789
  format: string;
@@ -801,7 +801,7 @@ declare const _default: {
801
801
  }>, prevState: Readonly<{}>, snapshot?: any): void;
802
802
  componentWillMount?(): void;
803
803
  UNSAFE_componentWillMount?(): void;
804
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
804
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
805
805
  startPlaceholder: string;
806
806
  endPlaceholder: string;
807
807
  format: string;
@@ -817,7 +817,7 @@ declare const _default: {
817
817
  locale?: string | undefined;
818
818
  translate?: ((str: string, ...args: any[]) => string) | undefined;
819
819
  }>, nextContext: any): void;
820
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
820
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
821
821
  startPlaceholder: string;
822
822
  endPlaceholder: string;
823
823
  format: string;
@@ -833,7 +833,7 @@ declare const _default: {
833
833
  locale?: string | undefined;
834
834
  translate?: ((str: string, ...args: any[]) => string) | undefined;
835
835
  }>, nextContext: any): void;
836
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
836
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
837
837
  startPlaceholder: string;
838
838
  endPlaceholder: string;
839
839
  format: string;
@@ -849,7 +849,7 @@ declare const _default: {
849
849
  locale?: string | undefined;
850
850
  translate?: ((str: string, ...args: any[]) => string) | undefined;
851
851
  }>, nextState: Readonly<{}>, nextContext: any): void;
852
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "timeFormat" | "dateFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
852
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
853
853
  startPlaceholder: string;
854
854
  endPlaceholder: string;
855
855
  format: string;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @file 给组件用的,渲染器里面不要用这个
3
+ */
4
+ import React from 'react';
5
+ import { ThemeProps } from '../theme';
6
+ import { UseFormReturn } from 'react-hook-form';
7
+ import { LocaleProps } from '../locale';
8
+ export declare type FormRef = React.MutableRefObject<{
9
+ submit: () => void;
10
+ } | undefined>;
11
+ export interface FormProps extends ThemeProps, LocaleProps {
12
+ defaultValues: any;
13
+ onSubmit: (value: any) => void;
14
+ forwardRef?: FormRef;
15
+ children?: (methods: UseFormReturn) => JSX.Element | null;
16
+ }
17
+ export declare function Form(props: FormProps): JSX.Element;
18
+ declare type ThemedFormProps = Omit<FormProps, keyof ThemeProps | keyof LocaleProps>;
19
+ declare const _default: React.ForwardRefExoticComponent<ThemedFormProps & React.RefAttributes<{
20
+ submit: () => void;
21
+ } | undefined>>;
22
+ export default _default;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Form = void 0;
4
+ var tslib_1 = require("tslib");
5
+ /**
6
+ * @file 给组件用的,渲染器里面不要用这个
7
+ */
8
+ var react_1 = (0, tslib_1.__importDefault)(require("react"));
9
+ var theme_1 = require("../theme");
10
+ var react_hook_form_1 = require("react-hook-form");
11
+ var use_validation_resolver_1 = require("../hooks/use-validation-resolver");
12
+ var locale_1 = require("../locale");
13
+ function Form(props) {
14
+ var _a;
15
+ var cx = props.classnames;
16
+ var methods = (0, react_hook_form_1.useForm)({
17
+ defaultValues: props.defaultValues,
18
+ resolver: (0, use_validation_resolver_1.useValidationResolver)(props.translate)
19
+ });
20
+ react_1.default.useEffect(function () {
21
+ if (props.forwardRef) {
22
+ // 这个模式别的组件没见到过不知道后续会不会不允许
23
+ props.forwardRef.current = {
24
+ submit: function () {
25
+ return new Promise(function (resolve, reject) {
26
+ methods.handleSubmit(function (values) { return resolve(values); }, function () { return resolve(false); })();
27
+ });
28
+ }
29
+ };
30
+ }
31
+ return function () {
32
+ if (props.forwardRef) {
33
+ props.forwardRef.current = undefined;
34
+ }
35
+ };
36
+ });
37
+ return (react_1.default.createElement("form", { className: cx('Form'), onSubmit: methods.handleSubmit(props.onSubmit), noValidate: true },
38
+ react_1.default.createElement("input", { type: "submit", style: { display: 'none' } }), (_a = props.children) === null || _a === void 0 ? void 0 :
39
+ _a.call(props, methods)));
40
+ }
41
+ exports.Form = Form;
42
+ var ThemedForm = (0, theme_1.themeable)((0, locale_1.localeable)(Form));
43
+ exports.default = react_1.default.forwardRef(function (props, ref) { return (react_1.default.createElement(ThemedForm, (0, tslib_1.__assign)({}, props, { forwardRef: ref }))); });
44
+ //# sourceMappingURL=./components/Form.js.map
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 3,
3
+ "file": "Form.js",
4
+ "sourceRoot": "",
5
+ "sources": [
6
+ "/src/components/Form.tsx"
7
+ ],
8
+ "names": [],
9
+ "mappings": ";;;;AAAA;;GAEG;AACH,6DAA0B;AAC1B,kCAA+C;AAC/C,mDAAuD;AACvD,4EAAuE;AACvE,oCAAkD;AAgBlD,SAAgB,IAAI,CAAC,KAAgB;;IAC5B,IAAY,EAAE,GAAI,KAAK,WAAT,CAAU;IAC/B,IAAM,OAAO,GAAG,IAAA,yBAAO,EAAC;QACtB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,QAAQ,EAAE,IAAA,+CAAqB,EAAC,KAAK,CAAC,SAAS,CAAC;KACjD,CAAC,CAAC;IAEH,eAAK,CAAC,SAAS,CAAC;QACd,IAAI,KAAK,CAAC,UAAU,EAAE;YACpB,0BAA0B;YAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG;gBACzB,MAAM,EAAE;oBACN,OAAA,IAAI,OAAO,CAAM,UAAC,OAAO,EAAE,MAAM;wBAC/B,OAAO,CAAC,YAAY,CAClB,UAAA,MAAM,IAAI,OAAA,OAAO,CAAC,MAAM,CAAC,EAAf,CAAe,EACzB,cAAM,OAAA,OAAO,CAAC,KAAK,CAAC,EAAd,CAAc,CACrB,EAAE,CAAC;oBACN,CAAC,CAAC;gBALF,CAKE;aACL,CAAC;SACH;QAED,OAAO;YACL,IAAI,KAAK,CAAC,UAAU,EAAE;gBACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;aACtC;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,wCACE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,EACrB,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC9C,UAAU;QAGV,yCAAO,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,GAAI,EAChD,MAAA,KAAK,CAAC,QAAQ;gBAAd,KAAK,EAAY,OAAO,CAAC,CACrB,CACR,CAAC;AACJ,CAAC;AAvCD,oBAuCC;AAED,IAAM,UAAU,GAAG,IAAA,iBAAS,EAAC,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC,CAAC;AAG/C,kBAAe,eAAK,CAAC,UAAU,CAAC,UAAC,KAAsB,EAAE,GAAY,IAAK,OAAA,CACxE,8BAAC,UAAU,4BAAK,KAAK,IAAE,UAAU,EAAE,GAAG,IAAI,CAC3C,EAFyE,CAEzE,CAAC,CAAC",
10
+ "sourcesContent": [
11
+ "/**\n * @file 给组件用的,渲染器里面不要用这个\n */\nimport React from 'react';\nimport {themeable, ThemeProps} from '../theme';\nimport {useForm, UseFormReturn} from 'react-hook-form';\nimport {useValidationResolver} from '../hooks/use-validation-resolver';\nimport {localeable, LocaleProps} from '../locale';\n\nexport type FormRef = React.MutableRefObject<\n | {\n submit: () => void;\n }\n | undefined\n>;\n\nexport interface FormProps extends ThemeProps, LocaleProps {\n defaultValues: any;\n onSubmit: (value: any) => void;\n forwardRef?: FormRef;\n children?: (methods: UseFormReturn) => JSX.Element | null;\n}\n\nexport function Form(props: FormProps) {\n const {classnames: cx} = props;\n const methods = useForm({\n defaultValues: props.defaultValues,\n resolver: useValidationResolver(props.translate)\n });\n\n React.useEffect(() => {\n if (props.forwardRef) {\n // 这个模式别的组件没见到过不知道后续会不会不允许\n props.forwardRef.current = {\n submit: () =>\n new Promise<any>((resolve, reject) => {\n methods.handleSubmit(\n values => resolve(values),\n () => resolve(false)\n )();\n })\n };\n }\n\n return () => {\n if (props.forwardRef) {\n props.forwardRef.current = undefined;\n }\n };\n });\n\n return (\n <form\n className={cx('Form')}\n onSubmit={methods.handleSubmit(props.onSubmit)}\n noValidate\n >\n {/* 实现回车自动提交 */}\n <input type=\"submit\" style={{display: 'none'}} />\n {props.children?.(methods)}\n </form>\n );\n}\n\nconst ThemedForm = themeable(localeable(Form));\ntype ThemedFormProps = Omit<FormProps, keyof ThemeProps | keyof LocaleProps>;\n\nexport default React.forwardRef((props: ThemedFormProps, ref: FormRef) => (\n <ThemedForm {...props} forwardRef={ref} />\n));\n"
12
+ ]
13
+ }