@socotra/ec-react-components 2.2.5-alpha.2 → 2.2.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 +33 -2
- package/dist/index.es.js +13900 -10431
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +54 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccountConfigRecord } from '@socotra/ec-react-schemas';
|
|
2
2
|
import { AccountRequest } from '@socotra/ec-react-schemas';
|
|
3
3
|
import { AccountResponse } from '@socotra/ec-react-schemas';
|
|
4
|
+
import { CoverageTermsConfigRecord } from '@socotra/ec-react-schemas';
|
|
4
5
|
import { DataTypeConfigRecord } from '@socotra/ec-react-schemas';
|
|
5
6
|
import { ElementConfig } from '@socotra/ec-react-schemas';
|
|
6
7
|
import { ElementRequest } from '@socotra/ec-react-schemas';
|
|
@@ -14,7 +15,7 @@ import { QuoteResponse } from '@socotra/ec-react-schemas';
|
|
|
14
15
|
* AccountForm is a form for creating or updating an account. It required a resolved data model, custom data types, and an optional account object to put the form in update mode.
|
|
15
16
|
*/
|
|
16
17
|
export declare const AccountForm: {
|
|
17
|
-
({ accountsModel, accountType, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, submitButtonText, id, }: Props): JSX_2.Element;
|
|
18
|
+
({ accountsModel, accountType, dataTypes, advancedOptions, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, defaultValues, submitButtonText, id, }: Props): JSX_2.Element;
|
|
18
19
|
displayName: string;
|
|
19
20
|
};
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@ export declare const AccountForm: {
|
|
|
22
23
|
* ElementForm is a form for creating or updating an element of a Quote. It required the element's data model, custom data types, and an element response object.
|
|
23
24
|
*/
|
|
24
25
|
export declare const ElementForm: {
|
|
25
|
-
({ elementModel, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, element, validateOnSubmit, submitButtonText, id, }: Props_3): JSX_2.Element;
|
|
26
|
+
({ elementModel, dataTypes, disabled, handleSubmit, coverageTerms, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, element, validateOnSubmit, submitButtonText, id, }: Props_3): JSX_2.Element;
|
|
26
27
|
displayName: string;
|
|
27
28
|
};
|
|
28
29
|
|
|
@@ -39,6 +40,28 @@ declare type Props = {
|
|
|
39
40
|
* The custom data types for the configuration that may be referenced by the account's data model
|
|
40
41
|
*/
|
|
41
42
|
dataTypes: DataTypeConfigRecord;
|
|
43
|
+
advancedOptions?: {
|
|
44
|
+
/**
|
|
45
|
+
* The auto renewal plans for the account
|
|
46
|
+
*/
|
|
47
|
+
autoRenewalPlans?: string[];
|
|
48
|
+
/**
|
|
49
|
+
* The delinquency plans available for the account
|
|
50
|
+
*/
|
|
51
|
+
delinquencyPlans?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* The excess credit plans available for the account
|
|
54
|
+
*/
|
|
55
|
+
excessCreditPlans?: string[];
|
|
56
|
+
/**
|
|
57
|
+
* The shortfall tolerance plans available for the account
|
|
58
|
+
*/
|
|
59
|
+
shortfallTolerancePlans?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* The invoice documents available for the account
|
|
62
|
+
*/
|
|
63
|
+
invoiceDocument?: string[];
|
|
64
|
+
};
|
|
42
65
|
/**
|
|
43
66
|
* The function to call when the form is submitted. It will create an AccountRequest from the form data.
|
|
44
67
|
*/
|
|
@@ -60,6 +83,10 @@ declare type Props = {
|
|
|
60
83
|
* The account object to put the form in update mode
|
|
61
84
|
*/
|
|
62
85
|
account?: AccountResponse;
|
|
86
|
+
/**
|
|
87
|
+
* The default values for the form
|
|
88
|
+
*/
|
|
89
|
+
defaultValues?: Partial<AccountResponse>;
|
|
63
90
|
/**
|
|
64
91
|
* Hides the submit button
|
|
65
92
|
*/
|
|
@@ -138,6 +165,10 @@ declare type Props_3 = {
|
|
|
138
165
|
* The custom data types for the configuration that may be referenced by the elementModel
|
|
139
166
|
*/
|
|
140
167
|
dataTypes: DataTypeConfigRecord;
|
|
168
|
+
/**
|
|
169
|
+
* The coverage terms configuration that may be referenced by the elementModel
|
|
170
|
+
*/
|
|
171
|
+
coverageTerms: CoverageTermsConfigRecord;
|
|
141
172
|
/**
|
|
142
173
|
* The function to call when the form is submitted. It will create an ElementUpdateRequest.
|
|
143
174
|
*/
|