@socotra/ec-react-components 2.8.0-next.2 → 2.8.0-next.3
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 +63 -4
- package/dist/index.es.js +9341 -9006
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +32 -32
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AccountRequest } from '@socotra/ec-react-schemas';
|
|
|
3
3
|
import { AccountResponse } from '@socotra/ec-react-schemas';
|
|
4
4
|
import { ConstraintEvaluationResponse } from '@socotra/ec-react-schemas';
|
|
5
5
|
import { CoverageTermsConfigRecord } from '@socotra/ec-react-schemas';
|
|
6
|
+
import { CreditDistributionRequest } from '@socotra/ec-react-schemas';
|
|
6
7
|
import { CurrencyType } from '@socotra/ec-react-schemas';
|
|
7
8
|
import { DataModel } from '@socotra/ec-react-schemas';
|
|
8
9
|
import { DataTypeConfigRecord } from '@socotra/ec-react-schemas';
|
|
@@ -38,7 +39,7 @@ export declare const AccountForm: {
|
|
|
38
39
|
* `DraftTransactionForm` is a form for updating a transaction on an issued policy. It requires a transaction in a `draft` state, a `transactionSnapshot`, `paramsChangeInstruction` (created when the transaction is created), and data types / product model / coverage terms from the tenant data model.
|
|
39
40
|
*/
|
|
40
41
|
export declare const DraftTransactionForm: {
|
|
41
|
-
({ transactionSnapshot, handleSubmit, paramsChangeInstruction, modifyChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }:
|
|
42
|
+
({ transactionSnapshot, handleSubmit, paramsChangeInstruction, modifyChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }: Props_8): JSX_2.Element;
|
|
42
43
|
displayName: string;
|
|
43
44
|
};
|
|
44
45
|
|
|
@@ -50,8 +51,11 @@ export declare const ElementForm: {
|
|
|
50
51
|
displayName: string;
|
|
51
52
|
};
|
|
52
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Apply a payment to an existing invoice form
|
|
56
|
+
*/
|
|
53
57
|
export declare const ExistingPaymentForm: {
|
|
54
|
-
(): JSX_2.Element;
|
|
58
|
+
({ accountLocator, invoiceLocator, balance, currency, validateOnSubmit, hideSubmitButton, submitButtonText, handleSubmit, isSubmitting, disabled, id, titles, }: Props_6): JSX_2.Element;
|
|
55
59
|
displayName: string;
|
|
56
60
|
};
|
|
57
61
|
|
|
@@ -71,7 +75,7 @@ declare type GetPaymentFormDefaultFieldsProps = {
|
|
|
71
75
|
* `InitializedTransactionForm` is a form for updating a transaction on an issued policy. It requires a transaction in an `initialized` state, the current `segment`, and data types / product model / coverage terms from the tenant data model.
|
|
72
76
|
*/
|
|
73
77
|
export declare const InitializedTransactionForm: {
|
|
74
|
-
({ elementResponse, handleSubmit, paramsChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }:
|
|
78
|
+
({ elementResponse, handleSubmit, paramsChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }: Props_7): JSX_2.Element;
|
|
75
79
|
displayName: string;
|
|
76
80
|
};
|
|
77
81
|
|
|
@@ -420,6 +424,61 @@ declare type Props_5 = {
|
|
|
420
424
|
};
|
|
421
425
|
|
|
422
426
|
declare type Props_6 = {
|
|
427
|
+
/**
|
|
428
|
+
* Account locator
|
|
429
|
+
*/
|
|
430
|
+
accountLocator: string;
|
|
431
|
+
/**
|
|
432
|
+
* Invoice locator
|
|
433
|
+
*/
|
|
434
|
+
invoiceLocator: string;
|
|
435
|
+
/**
|
|
436
|
+
* The currency of the invoice
|
|
437
|
+
*/
|
|
438
|
+
currency: CurrencyType;
|
|
439
|
+
/**
|
|
440
|
+
* Account balance
|
|
441
|
+
*/
|
|
442
|
+
balance: number;
|
|
443
|
+
/**
|
|
444
|
+
* The function to call when the form is submitted. It will create an CreditDistributionRequest from the form data.
|
|
445
|
+
*/
|
|
446
|
+
handleSubmit: (data: CreditDistributionRequest) => void;
|
|
447
|
+
/**
|
|
448
|
+
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
449
|
+
*/
|
|
450
|
+
isSubmitting?: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Disables the form
|
|
453
|
+
*/
|
|
454
|
+
disabled?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Hides the submit button
|
|
457
|
+
*/
|
|
458
|
+
hideSubmitButton?: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* Whether to validate the form on submit
|
|
461
|
+
*/
|
|
462
|
+
validateOnSubmit?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* The text to display on the submit button
|
|
465
|
+
*/
|
|
466
|
+
submitButtonText?: string;
|
|
467
|
+
/**
|
|
468
|
+
* ID for the form wrapper
|
|
469
|
+
* */
|
|
470
|
+
id?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Titles
|
|
473
|
+
*/
|
|
474
|
+
titles?: {
|
|
475
|
+
formTitle?: string;
|
|
476
|
+
balance?: string;
|
|
477
|
+
amountToApply?: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
declare type Props_7 = {
|
|
423
482
|
/**
|
|
424
483
|
* The transaction snapshot object
|
|
425
484
|
*/
|
|
@@ -486,7 +545,7 @@ declare type Props_6 = {
|
|
|
486
545
|
};
|
|
487
546
|
};
|
|
488
547
|
|
|
489
|
-
declare type
|
|
548
|
+
declare type Props_8 = {
|
|
490
549
|
/**
|
|
491
550
|
* The transaction snapshot object
|
|
492
551
|
*/
|