@socotra/ec-react-components 2.5.1-next.12 → 2.5.1-next.13
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 +49 -24
- package/dist/index.es.js +8336 -8466
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +36 -36
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { TransactionSnapshotResponse } from '@socotra/ec-react-schemas';
|
|
|
23
23
|
* 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.
|
|
24
24
|
*/
|
|
25
25
|
export declare const AccountForm: {
|
|
26
|
-
({ accountsModel, accountType, dataTypes, advancedOptions, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, defaultValues, submitButtonText, id, }: Props): JSX_2.Element;
|
|
26
|
+
({ accountsModel, accountType, dataTypes, advancedOptions, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, defaultValues, submitButtonText, id, titles, }: Props): JSX_2.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@ export declare const AccountForm: {
|
|
|
31
31
|
* `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.
|
|
32
32
|
*/
|
|
33
33
|
export declare const DraftTransactionForm: {
|
|
34
|
-
({ transactionSnapshot,
|
|
34
|
+
({ transactionSnapshot, handleSubmit, paramsChangeInstruction, modifyChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }: Props_6): JSX_2.Element;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -39,7 +39,7 @@ export declare const DraftTransactionForm: {
|
|
|
39
39
|
* 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.
|
|
40
40
|
*/
|
|
41
41
|
export declare const ElementForm: {
|
|
42
|
-
({ elementModel, dataTypes, disabled, handleSubmit, coverageTerms, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, element, validateOnSubmit, submitButtonText, id, }: Props_3): JSX_2.Element;
|
|
42
|
+
({ elementModel, dataTypes, disabled, handleSubmit, coverageTerms, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, element, validateOnSubmit, submitButtonText, id, titles, }: Props_3): JSX_2.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -47,7 +47,7 @@ export declare const ElementForm: {
|
|
|
47
47
|
* `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.
|
|
48
48
|
*/
|
|
49
49
|
export declare const InitializedTransactionForm: {
|
|
50
|
-
({ segmentResponse,
|
|
50
|
+
({ segmentResponse, handleSubmit, paramsChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, coverageTerms, titles, }: Props_5): JSX_2.Element;
|
|
51
51
|
displayName: string;
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ export declare const InitializedTransactionForm: {
|
|
|
55
55
|
* QuoteForm is a form for updating a quote. It required a product data model, custom data types, and quote object to render the form.
|
|
56
56
|
*/
|
|
57
57
|
export declare const PolicyForm: {
|
|
58
|
-
({ policy, segment, dataModel, id,
|
|
58
|
+
({ policy, segment, dataModel, id, titles, }: Props_4): JSX_2.Element;
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -137,6 +137,9 @@ declare type Props = {
|
|
|
137
137
|
* ID for the form wrapper
|
|
138
138
|
* */
|
|
139
139
|
id?: string;
|
|
140
|
+
titles?: {
|
|
141
|
+
seeAdvancedDetails?: string;
|
|
142
|
+
};
|
|
140
143
|
};
|
|
141
144
|
|
|
142
145
|
declare type Props_2 = {
|
|
@@ -185,6 +188,21 @@ declare type Props_2 = {
|
|
|
185
188
|
* ID for the form wrapper
|
|
186
189
|
* */
|
|
187
190
|
id?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Titles for the form
|
|
193
|
+
*/
|
|
194
|
+
titles?: {
|
|
195
|
+
details?: string;
|
|
196
|
+
seeAdvancedDetails?: string;
|
|
197
|
+
coverageTerms?: string;
|
|
198
|
+
currency?: string;
|
|
199
|
+
timezone?: string;
|
|
200
|
+
billingLevel?: string;
|
|
201
|
+
billingTrigger?: string;
|
|
202
|
+
durationBasis?: string;
|
|
203
|
+
delinquencyPlanName?: string;
|
|
204
|
+
autoRenewalPlanName?: string;
|
|
205
|
+
};
|
|
188
206
|
};
|
|
189
207
|
|
|
190
208
|
declare type Props_3 = {
|
|
@@ -238,6 +256,12 @@ declare type Props_3 = {
|
|
|
238
256
|
* ID for the form wrapper
|
|
239
257
|
* */
|
|
240
258
|
id?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Titles for the form
|
|
261
|
+
*/
|
|
262
|
+
titles?: {
|
|
263
|
+
coverageTerms?: string;
|
|
264
|
+
};
|
|
241
265
|
};
|
|
242
266
|
|
|
243
267
|
declare type Props_4 = {
|
|
@@ -258,9 +282,12 @@ declare type Props_4 = {
|
|
|
258
282
|
* */
|
|
259
283
|
id?: string;
|
|
260
284
|
/**
|
|
261
|
-
*
|
|
285
|
+
* Titles
|
|
262
286
|
*/
|
|
263
|
-
|
|
287
|
+
titles?: {
|
|
288
|
+
formTitle?: string;
|
|
289
|
+
seeAdvancedDetails?: string;
|
|
290
|
+
};
|
|
264
291
|
};
|
|
265
292
|
|
|
266
293
|
declare type Props_5 = {
|
|
@@ -292,14 +319,6 @@ declare type Props_5 = {
|
|
|
292
319
|
* The modify change instruction for the transaction, taken from the transaction stack of the transaction. For the form, use the last in the stack.
|
|
293
320
|
*/
|
|
294
321
|
element?: ElementResponse;
|
|
295
|
-
/**
|
|
296
|
-
* The title of the form, if unused the title will default to 'Transaction' or the product model display name
|
|
297
|
-
*/
|
|
298
|
-
title?: string;
|
|
299
|
-
/**
|
|
300
|
-
* The title of the coverage term section
|
|
301
|
-
*/
|
|
302
|
-
coverageTermTitle?: string;
|
|
303
322
|
/**
|
|
304
323
|
* Disables the form
|
|
305
324
|
*/
|
|
@@ -329,6 +348,13 @@ declare type Props_5 = {
|
|
|
329
348
|
* ID for the form wrapper
|
|
330
349
|
* */
|
|
331
350
|
id?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Form titles
|
|
353
|
+
*/
|
|
354
|
+
titles?: {
|
|
355
|
+
formTitle?: string;
|
|
356
|
+
coverageTerms?: string;
|
|
357
|
+
};
|
|
332
358
|
};
|
|
333
359
|
|
|
334
360
|
declare type Props_6 = {
|
|
@@ -363,14 +389,6 @@ declare type Props_6 = {
|
|
|
363
389
|
* The modify change instruction for the transaction, taken from the transaction stack of the transaction. For the form, use the last in the stack.
|
|
364
390
|
*/
|
|
365
391
|
modifyChangeInstruction?: ModifyChangeInstructionResponse;
|
|
366
|
-
/**
|
|
367
|
-
* The title of the coverage terms section
|
|
368
|
-
*/
|
|
369
|
-
coverageTermTitle?: string;
|
|
370
|
-
/**
|
|
371
|
-
* The title of the form, if unused the title will default to 'Transaction' or the product model display name
|
|
372
|
-
*/
|
|
373
|
-
title?: string;
|
|
374
392
|
/**
|
|
375
393
|
* Disables the form
|
|
376
394
|
*/
|
|
@@ -400,13 +418,20 @@ declare type Props_6 = {
|
|
|
400
418
|
* ID for the form wrapper
|
|
401
419
|
* */
|
|
402
420
|
id?: string;
|
|
421
|
+
/**
|
|
422
|
+
* The form titles
|
|
423
|
+
*/
|
|
424
|
+
titles?: {
|
|
425
|
+
coverageTerms?: string;
|
|
426
|
+
formTitle?: string;
|
|
427
|
+
};
|
|
403
428
|
};
|
|
404
429
|
|
|
405
430
|
/**
|
|
406
431
|
* QuoteForm is a form for updating a quote. It required a product data model, custom data types, and quote object to render the form.
|
|
407
432
|
*/
|
|
408
433
|
export declare const QuoteForm: {
|
|
409
|
-
({ quote, dataModel, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, validateOnSubmit, hideSubmitButton, submitButtonText, id, }: Props_2): JSX_2.Element;
|
|
434
|
+
({ quote, dataModel, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, validateOnSubmit, hideSubmitButton, submitButtonText, id, titles, }: Props_2): JSX_2.Element;
|
|
410
435
|
displayName: string;
|
|
411
436
|
};
|
|
412
437
|
|