@socotra/ec-react-components 2.25.0-next.3 → 2.25.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +36 -1
- package/dist/index.es.js +391 -387
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +43 -43
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { FieldConfigRecord } from '@socotra/ec-react-schemas';
|
|
|
21
21
|
import { FnolCreateRequest } from '@socotra/ec-react-schemas';
|
|
22
22
|
import { FnolPatchRequest } from '@socotra/ec-react-schemas';
|
|
23
23
|
import { FnolResponse } from '@socotra/ec-react-schemas';
|
|
24
|
-
import { FormBaseProps } from '../../global';
|
|
25
24
|
import { ForwardRefExoticComponent } from 'react';
|
|
26
25
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
27
26
|
import { ModifyChangeInstructionCreateRequest } from '@socotra/ec-react-schemas';
|
|
@@ -177,6 +176,42 @@ export declare const FnolForm: {
|
|
|
177
176
|
displayName: string;
|
|
178
177
|
};
|
|
179
178
|
|
|
179
|
+
declare interface FormBaseProps {
|
|
180
|
+
/**
|
|
181
|
+
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
182
|
+
*/
|
|
183
|
+
isSubmitting?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Disables the form
|
|
186
|
+
*/
|
|
187
|
+
disabled?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Hides the submit button
|
|
190
|
+
*/
|
|
191
|
+
hideSubmitButton?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Whether to validate the form on submit
|
|
194
|
+
*/
|
|
195
|
+
validateOnSubmit?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* The text to display on the submit button
|
|
198
|
+
*/
|
|
199
|
+
submitButtonText?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Readonly mode for the form
|
|
202
|
+
*/
|
|
203
|
+
readonly?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* ID for the form wrapper
|
|
206
|
+
*/
|
|
207
|
+
id?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Custom form styling
|
|
210
|
+
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
211
|
+
*/
|
|
212
|
+
styles?: StyleDefinition[];
|
|
213
|
+
}
|
|
214
|
+
|
|
180
215
|
declare type GetDisbursementFormDefaultFieldsProps = {
|
|
181
216
|
disbursements: DisbursementRefRecord;
|
|
182
217
|
accountBalance: number;
|