@socotra/ec-react-components 2.21.1 → 2.22.0-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 +39 -3
- package/dist/index.es.js +41919 -37732
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +77 -57
- package/dist/index.umd.js.map +1 -1
- package/package.json +10 -5
package/dist/index.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ declare type BaseProps = {
|
|
|
122
122
|
* DataPropertyForm is a form to render data based on data property schema and data model with edit and submission capabilities.
|
|
123
123
|
*/
|
|
124
124
|
export declare const DataPropertyForm: {
|
|
125
|
-
({ data, dataModel, id, titles, dataPropertySchema, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, }: Props_11): JSX_2.Element;
|
|
125
|
+
({ data, dataModel, id, titles, dataPropertySchema, handleSubmit, isSubmitting, disabled, hideSubmitButton, validateOnSubmit, submitButtonText, readonly, styles, scope, }: Props_11): JSX_2.Element;
|
|
126
126
|
displayName: string;
|
|
127
127
|
};
|
|
128
128
|
|
|
@@ -180,7 +180,7 @@ declare type GetPaymentFormDefaultFieldsProps = {
|
|
|
180
180
|
* `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.
|
|
181
181
|
*/
|
|
182
182
|
export declare const InitializedTransactionForm: {
|
|
183
|
-
({ elementResponse, handleSubmit, paramsChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, timezone, coverageTerms: coverageTermsDataModel, titles, getEvaluatedConstraints, dependencyMap, styles, }: Props_8): JSX_2.Element;
|
|
183
|
+
({ policy, elementResponse, handleSubmit, paramsChangeInstruction, preventFormResetOnDisabled, disabled, hideSubmitButton, validateOnSubmit, isSubmitting, submitButtonText, id, dataTypes, productModel, timezone, coverageTerms: coverageTermsDataModel, titles, getEvaluatedConstraints, dependencyMap, styles, staticDataFieldsOptions, }: Props_8): JSX_2.Element;
|
|
184
184
|
displayName: string;
|
|
185
185
|
};
|
|
186
186
|
|
|
@@ -204,7 +204,7 @@ export declare const NewPaymentForm: {
|
|
|
204
204
|
* PolicyForm is a form for updating a policy. It required a product data model, custom data types, and policy object to render the form.
|
|
205
205
|
*/
|
|
206
206
|
export declare const PolicyForm: {
|
|
207
|
-
({ policy, segment, dataModel, hideAllFields, id, titles, styles, }: Props_4): JSX_2.Element;
|
|
207
|
+
({ policy, segment, dataModel, hideAllFields, id, titles, styles, staticDataFieldsOptions, }: Props_4): JSX_2.Element;
|
|
208
208
|
displayName: string;
|
|
209
209
|
};
|
|
210
210
|
|
|
@@ -335,6 +335,16 @@ declare type Props_11 = {
|
|
|
335
335
|
truthyLabel?: string;
|
|
336
336
|
falsyLabel?: string;
|
|
337
337
|
};
|
|
338
|
+
/**
|
|
339
|
+
* Custom form styling
|
|
340
|
+
* See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
|
|
341
|
+
*/
|
|
342
|
+
styles?: StyleDefinition[];
|
|
343
|
+
/**
|
|
344
|
+
* The scope of the form
|
|
345
|
+
* default is ['P', 'Q', 'QQ']
|
|
346
|
+
*/
|
|
347
|
+
scope?: Array<'P' | 'Q' | 'QQ'>;
|
|
338
348
|
};
|
|
339
349
|
|
|
340
350
|
declare type Props_2 = {
|
|
@@ -652,6 +662,17 @@ declare type Props_4 = {
|
|
|
652
662
|
durationBasis?: string;
|
|
653
663
|
delinquencyPlanName?: string;
|
|
654
664
|
autoRenewalPlanName?: string;
|
|
665
|
+
staticData?: string;
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* Static data fields options
|
|
669
|
+
* If not provided, the static data fields will be hidden and read only
|
|
670
|
+
* Default value is { hidden: false, readOnly: false, defaultOpen: true }
|
|
671
|
+
*/
|
|
672
|
+
staticDataFieldsOptions?: {
|
|
673
|
+
hidden?: boolean;
|
|
674
|
+
readOnly?: boolean;
|
|
675
|
+
defaultOpen?: boolean;
|
|
655
676
|
};
|
|
656
677
|
};
|
|
657
678
|
|
|
@@ -841,6 +862,10 @@ declare type Props_7 = {
|
|
|
841
862
|
};
|
|
842
863
|
|
|
843
864
|
declare type Props_8 = {
|
|
865
|
+
/**
|
|
866
|
+
* The policy object
|
|
867
|
+
*/
|
|
868
|
+
policy: PolicyResponse;
|
|
844
869
|
/**
|
|
845
870
|
* The transaction snapshot object
|
|
846
871
|
*/
|
|
@@ -863,6 +888,7 @@ declare type Props_8 = {
|
|
|
863
888
|
dataTypes?: DataTypeConfigRecord;
|
|
864
889
|
/**
|
|
865
890
|
* The function to call when the form is submitted. It will create an `ElementRequest` from the form data.
|
|
891
|
+
*
|
|
866
892
|
*/
|
|
867
893
|
handleSubmit: (data: ElementRequest) => void;
|
|
868
894
|
/**
|
|
@@ -953,6 +979,16 @@ declare type Props_8 = {
|
|
|
953
979
|
coverageTerms?: string;
|
|
954
980
|
truthyLabel?: string;
|
|
955
981
|
falsyLabel?: string;
|
|
982
|
+
staticData?: string;
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* Static data fields options
|
|
986
|
+
* If not provided, the static data fields will be opened by default
|
|
987
|
+
* Default value is { defaultOpen: true, hidden: false }
|
|
988
|
+
*/
|
|
989
|
+
staticDataFieldsOptions?: {
|
|
990
|
+
hidden?: boolean;
|
|
991
|
+
defaultOpen?: boolean;
|
|
956
992
|
};
|
|
957
993
|
};
|
|
958
994
|
|