@socotra/ec-react-components 2.30.0-next.7 → 2.30.2-next.0
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 +17 -150
- package/dist/index.es.js +14613 -14560
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +74 -74
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ declare interface CreateProps extends Props_12 {
|
|
|
141
141
|
* DataPropertyForm is a form to render data based on data property schema and data model with edit and submission capabilities.
|
|
142
142
|
*/
|
|
143
143
|
export declare const DataPropertyForm: {
|
|
144
|
-
({ data, dataModel, id, titles, dataPropertySchema, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, styles, scope, }: Props_11): JSX.Element;
|
|
144
|
+
({ data, dataModel, id, titles, dataPropertySchema, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, styles, formConfig, scope, }: Props_11): JSX.Element;
|
|
145
145
|
displayName: string;
|
|
146
146
|
};
|
|
147
147
|
|
|
@@ -166,7 +166,7 @@ export declare const ElementForm: {
|
|
|
166
166
|
* Apply a payment to an existing invoice form
|
|
167
167
|
*/
|
|
168
168
|
export declare const ExistingPaymentForm: {
|
|
169
|
-
({ accountLocator, invoiceLocator, balance, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, id, titles, invoiceBalance, styles, }: Props_6): JSX.Element;
|
|
169
|
+
({ accountLocator, invoiceLocator, balance, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, id, titles, invoiceBalance, styles, formConfig, }: Props_6): JSX.Element;
|
|
170
170
|
displayName: string;
|
|
171
171
|
};
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@ export declare const ExistingPaymentForm: {
|
|
|
174
174
|
* FnolForm is a form to render data based on fnol schema.
|
|
175
175
|
*/
|
|
176
176
|
export declare const FnolForm: {
|
|
177
|
-
({ dataModel, id, titles, fnol, defaultValues, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, styles, }: CreateProps | PatchProps): JSX.Element;
|
|
177
|
+
({ dataModel, id, titles, fnol, defaultValues, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, styles, formConfig, }: CreateProps | PatchProps): JSX.Element;
|
|
178
178
|
displayName: string;
|
|
179
179
|
};
|
|
180
180
|
|
|
@@ -212,6 +212,12 @@ declare interface FormBaseProps {
|
|
|
212
212
|
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
213
213
|
*/
|
|
214
214
|
styles?: StyleDefinition[];
|
|
215
|
+
/**
|
|
216
|
+
* Custom form config
|
|
217
|
+
*/
|
|
218
|
+
formConfig?: {
|
|
219
|
+
modal?: boolean;
|
|
220
|
+
};
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
declare type GetDisbursementFormDefaultFieldsProps = {
|
|
@@ -252,7 +258,7 @@ export declare const InitializedTransactionForm: {
|
|
|
252
258
|
* DisbursementForm is a form for creating a disbursement.
|
|
253
259
|
*/
|
|
254
260
|
export declare const NewDisbursementForm: {
|
|
255
|
-
({ accountLocator, accountBalance, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, dataModel, id, titles, styles, }: Props_10): JSX.Element;
|
|
261
|
+
({ accountLocator, accountBalance, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, dataModel, id, titles, styles, formConfig, }: Props_10): JSX.Element;
|
|
256
262
|
displayName: string;
|
|
257
263
|
};
|
|
258
264
|
|
|
@@ -260,7 +266,7 @@ export declare const NewDisbursementForm: {
|
|
|
260
266
|
* PaymentForm is a form for making a payment.
|
|
261
267
|
*/
|
|
262
268
|
export declare const NewPaymentForm: {
|
|
263
|
-
({ accountLocator, invoiceLocator, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, dataModel, id, titles, invoiceBalance, styles, }: Props_5): JSX.Element;
|
|
269
|
+
({ accountLocator, invoiceLocator, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, dataModel, id, titles, invoiceBalance, styles, formConfig, }: Props_5): JSX.Element;
|
|
264
270
|
displayName: string;
|
|
265
271
|
};
|
|
266
272
|
|
|
@@ -301,7 +307,7 @@ declare type Props = (BaseProps & {
|
|
|
301
307
|
handleSubmit: (data: AccountCreateRequest) => void;
|
|
302
308
|
});
|
|
303
309
|
|
|
304
|
-
declare type Props_10 = {
|
|
310
|
+
declare type Props_10 = FormBaseProps & {
|
|
305
311
|
/**
|
|
306
312
|
* Account locator
|
|
307
313
|
*/
|
|
@@ -322,30 +328,6 @@ declare type Props_10 = {
|
|
|
322
328
|
* The function to call when the form is submitted. It will create an PaymentRequest from the form data.
|
|
323
329
|
*/
|
|
324
330
|
handleSubmit: (data: DisbursementCreateRequest) => void;
|
|
325
|
-
/**
|
|
326
|
-
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
327
|
-
*/
|
|
328
|
-
isSubmitting?: boolean;
|
|
329
|
-
/**
|
|
330
|
-
* Disables the form
|
|
331
|
-
*/
|
|
332
|
-
disabled?: boolean;
|
|
333
|
-
/**
|
|
334
|
-
* Hides the submit button
|
|
335
|
-
*/
|
|
336
|
-
hideSubmitButton?: boolean;
|
|
337
|
-
/**
|
|
338
|
-
* Whether to validate the form on submit
|
|
339
|
-
*/
|
|
340
|
-
validateOnSubmit?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* The text to display on the submit button
|
|
343
|
-
*/
|
|
344
|
-
submitButtonText?: string;
|
|
345
|
-
/**
|
|
346
|
-
* ID for the form wrapper
|
|
347
|
-
* */
|
|
348
|
-
id?: string;
|
|
349
331
|
/**
|
|
350
332
|
* Custom form styling
|
|
351
333
|
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
@@ -361,7 +343,7 @@ declare type Props_10 = {
|
|
|
361
343
|
} & Partial<GetDisbursementFormDefaultFieldsProps['titles']>;
|
|
362
344
|
};
|
|
363
345
|
|
|
364
|
-
declare type Props_11 = {
|
|
346
|
+
declare type Props_11 = FormBaseProps & {
|
|
365
347
|
/**
|
|
366
348
|
* The resolved data model retrieved from data model response
|
|
367
349
|
*/
|
|
@@ -378,34 +360,6 @@ declare type Props_11 = {
|
|
|
378
360
|
* The function to call when the form is submitted. It will create an PaymentRequest from the form data.
|
|
379
361
|
*/
|
|
380
362
|
handleSubmit?: (data: Record<string, PropertyRef>) => void;
|
|
381
|
-
/**
|
|
382
|
-
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
383
|
-
*/
|
|
384
|
-
isSubmitting?: boolean;
|
|
385
|
-
/**
|
|
386
|
-
* Disables the form
|
|
387
|
-
*/
|
|
388
|
-
disabled?: boolean;
|
|
389
|
-
/**
|
|
390
|
-
* Hides the submit button
|
|
391
|
-
*/
|
|
392
|
-
hideSubmitButton?: boolean;
|
|
393
|
-
/**
|
|
394
|
-
* Whether to validate the form on submit
|
|
395
|
-
*/
|
|
396
|
-
validateOnSubmit?: boolean;
|
|
397
|
-
/**
|
|
398
|
-
* The text to display on the submit button
|
|
399
|
-
*/
|
|
400
|
-
submitButtonText?: string;
|
|
401
|
-
/**
|
|
402
|
-
* Readonly mode for the form
|
|
403
|
-
*/
|
|
404
|
-
readonly?: boolean;
|
|
405
|
-
/**
|
|
406
|
-
* ID for the form wrapper
|
|
407
|
-
*/
|
|
408
|
-
id?: string;
|
|
409
363
|
/**
|
|
410
364
|
* Titles for the form and boolean labels
|
|
411
365
|
*/
|
|
@@ -808,7 +762,7 @@ declare type Props_4 = {
|
|
|
808
762
|
allowSaveStaticData?: boolean;
|
|
809
763
|
};
|
|
810
764
|
|
|
811
|
-
declare type Props_5 = {
|
|
765
|
+
declare type Props_5 = FormBaseProps & {
|
|
812
766
|
/**
|
|
813
767
|
* Account locator
|
|
814
768
|
*/
|
|
@@ -829,35 +783,6 @@ declare type Props_5 = {
|
|
|
829
783
|
* The function to call when the form is submitted. It will create an PaymentRequest from the form data.
|
|
830
784
|
*/
|
|
831
785
|
handleSubmit: (data: PaymentRequest_2) => void;
|
|
832
|
-
/**
|
|
833
|
-
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
834
|
-
*/
|
|
835
|
-
isSubmitting?: boolean;
|
|
836
|
-
/**
|
|
837
|
-
* Disables the form
|
|
838
|
-
*/
|
|
839
|
-
disabled?: boolean;
|
|
840
|
-
/**
|
|
841
|
-
* Hides the submit button
|
|
842
|
-
*/
|
|
843
|
-
hideSubmitButton?: boolean;
|
|
844
|
-
/**
|
|
845
|
-
* Whether to validate the form on submit
|
|
846
|
-
*/
|
|
847
|
-
validateOnSubmit?: boolean;
|
|
848
|
-
/**
|
|
849
|
-
* The text to display on the submit button
|
|
850
|
-
*/
|
|
851
|
-
submitButtonText?: string;
|
|
852
|
-
/**
|
|
853
|
-
* ID for the form wrapper
|
|
854
|
-
* */
|
|
855
|
-
id?: string;
|
|
856
|
-
/**
|
|
857
|
-
* Custom form styling
|
|
858
|
-
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
859
|
-
*/
|
|
860
|
-
styles?: StyleDefinition[];
|
|
861
786
|
/**
|
|
862
787
|
* Titles
|
|
863
788
|
*/
|
|
@@ -872,7 +797,7 @@ declare type Props_5 = {
|
|
|
872
797
|
invoiceBalance: number;
|
|
873
798
|
};
|
|
874
799
|
|
|
875
|
-
declare type Props_6 = {
|
|
800
|
+
declare type Props_6 = FormBaseProps & {
|
|
876
801
|
/**
|
|
877
802
|
* Account locator
|
|
878
803
|
*/
|
|
@@ -893,35 +818,6 @@ declare type Props_6 = {
|
|
|
893
818
|
* The function to call when the form is submitted. It will create an CreditDistributionRequest from the form data.
|
|
894
819
|
*/
|
|
895
820
|
handleSubmit: (data: CreditDistributionRequest) => void;
|
|
896
|
-
/**
|
|
897
|
-
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
898
|
-
*/
|
|
899
|
-
isSubmitting?: boolean;
|
|
900
|
-
/**
|
|
901
|
-
* Disables the form
|
|
902
|
-
*/
|
|
903
|
-
disabled?: boolean;
|
|
904
|
-
/**
|
|
905
|
-
* Hides the submit button
|
|
906
|
-
*/
|
|
907
|
-
hideSubmitButton?: boolean;
|
|
908
|
-
/**
|
|
909
|
-
* Whether to validate the form on submit
|
|
910
|
-
*/
|
|
911
|
-
validateOnSubmit?: boolean;
|
|
912
|
-
/**
|
|
913
|
-
* The text to display on the submit button
|
|
914
|
-
*/
|
|
915
|
-
submitButtonText?: string;
|
|
916
|
-
/**
|
|
917
|
-
* ID for the form wrapper
|
|
918
|
-
* */
|
|
919
|
-
id?: string;
|
|
920
|
-
/**
|
|
921
|
-
* Custom form styling
|
|
922
|
-
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
923
|
-
*/
|
|
924
|
-
styles?: StyleDefinition[];
|
|
925
821
|
/**
|
|
926
822
|
* Titles
|
|
927
823
|
*/
|
|
@@ -937,7 +833,7 @@ declare type Props_6 = {
|
|
|
937
833
|
invoiceBalance: number;
|
|
938
834
|
};
|
|
939
835
|
|
|
940
|
-
declare type Props_7 = {
|
|
836
|
+
declare type Props_7 = FormBaseProps & {
|
|
941
837
|
/**
|
|
942
838
|
* Amount to reverse
|
|
943
839
|
*/
|
|
@@ -954,35 +850,6 @@ declare type Props_7 = {
|
|
|
954
850
|
* The function to call when the form is submitted. It will create an CreditDistributionReverseRequest from the form data.
|
|
955
851
|
*/
|
|
956
852
|
handleSubmit: (data: CreditDistributionReverseRequest) => void;
|
|
957
|
-
/**
|
|
958
|
-
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
959
|
-
*/
|
|
960
|
-
isSubmitting?: boolean;
|
|
961
|
-
/**
|
|
962
|
-
* Disables the form
|
|
963
|
-
*/
|
|
964
|
-
disabled?: boolean;
|
|
965
|
-
/**
|
|
966
|
-
* Hides the submit button
|
|
967
|
-
*/
|
|
968
|
-
hideSubmitButton?: boolean;
|
|
969
|
-
/**
|
|
970
|
-
* Whether to validate the form on submit
|
|
971
|
-
*/
|
|
972
|
-
validateOnSubmit?: boolean;
|
|
973
|
-
/**
|
|
974
|
-
* The text to display on the submit button
|
|
975
|
-
*/
|
|
976
|
-
submitButtonText?: string;
|
|
977
|
-
/**
|
|
978
|
-
* ID for the form wrapper
|
|
979
|
-
* */
|
|
980
|
-
id?: string;
|
|
981
|
-
/**
|
|
982
|
-
* Custom form styling
|
|
983
|
-
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
984
|
-
*/
|
|
985
|
-
styles?: StyleDefinition[];
|
|
986
853
|
/**
|
|
987
854
|
* Titles
|
|
988
855
|
*/
|
|
@@ -1232,7 +1099,7 @@ export declare type QuoteFormRef = {
|
|
|
1232
1099
|
* Apply a payment to an existing invoice form
|
|
1233
1100
|
*/
|
|
1234
1101
|
export declare const ReversePaymentForm: {
|
|
1235
|
-
({ amount, reversalTypes, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, id, titles, styles, }: Props_7): JSX.Element;
|
|
1102
|
+
({ amount, reversalTypes, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, id, titles, styles, formConfig, }: Props_7): JSX.Element;
|
|
1236
1103
|
displayName: string;
|
|
1237
1104
|
};
|
|
1238
1105
|
|