@vergelijkdirect/comparison-forms 1.1.25 → 1.1.26-rc.1

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/README.md CHANGED
@@ -48,8 +48,8 @@ import '@vergelijkdirect/comparison-forms/styles';
48
48
  | form-component | String/Yes | Corresponds to type of form | motor-form |
49
49
  | link | String/No | Indicate address, where user should be redirected after forms submit | &link=verzekeringen/results-page |
50
50
  | has-new-design | Boolean/No | Indicate which version of form styles implemented. Missing value or false mean old form, true - new redesign form (non-required) | true |
51
- | is-on-result-page | Boolean/No | Indicate is form used for aanvragen flow (result page, coverages page etc), or for starting landing page (for exampple VD project) | true |
52
- | is-on-coverage-page | Boolean/No | Indicate is form used for aanvragen flow (coverages page), or for starting landing page (for exampple VD project) | true |
51
+ | is-on-result-page | Boolean/No | Indicate is form used for aanvragen flow (result page, coverages page etc), or for starting landing page (for exampple VD project) (Will be replaced with form-location) | true |
52
+ | is-on-coverage-page | Boolean/No | Indicate is form used for aanvragen flow (coverages page), or for starting landing page (for exampple VD project) (Will be replaced with form-location) | true |
53
53
  | classes | String/No | Indicate which classes should be implemented for root element (vd-form-card) | vd-form-flat |
54
54
  | insurance-state | Object/No | There should be indicated object with data for insurance. Used to show data in inputs, if user already filled in form. | for motor insurance can be included object motorState from store |
55
55
  | user-information | Object/No | There should be indicated object with user's data. Used to show data in inputs, if user already filled in form. | Usually it's userInformation object from store |
@@ -58,8 +58,11 @@ import '@vergelijkdirect/comparison-forms/styles';
58
58
  | show-title | Boolean/No | Boolean, that specify should title, in title prop be showed (Use value false, if there is external modal title, to prevent double titles) | false |
59
59
  | form-orientation | String/No | Specify form orientation (Vertical or Horizontal) Should be used only for create loan form | Vertical |
60
60
  | comparison | Comparison/No | Pass existing comparison for update actions in form. Required value for loans upgrade form | Comparison instance object |
61
- | status | String/No | Now used only for travels, but will be implement instead of is-on-result/coverage page. Indicate location of form. | IS_ON_FAMILY_PAGE |
61
+ | status | String/No | Now used only for travels, but will be implement instead of is-on-result/coverage page. Indicate location of form. (Will be replaced with form-location) | IS_ON_FAMILY_PAGE |
62
+ | form-location | String/No | String, that indicate, where form is located. Can be before flow, on result, coverages,family page. | IS_BEFORE_FLOW/IS_ON_RESULT_PAGE/IS_ON_COVERAGES_PAGE/IS_ON_FAMILY_PAGE |
63
+ | additional-options | Object/No | Props that contains all special data, for separate form. E.g. qustionnary data for only Risk scanner/business car forms. | { qa_id: 'some value' } |
62
64
  | @change | Function/No | Function, that should be called, when user submit form. Has parameters ({ insuranceState: {...}, userInformation: {...} }), that can be used for furtner actions with this data | Any function, that should be called after form submit |
65
+ | @redirect-page | Function/No | Function, that should be called, when user submit form, and should be redirected to page, indicated in link props with necessary data in queries. | Any function, that should be called after form submit |
63
66
  | @emit-event-hub | Function/No | Function, that should be called, when user want to use external emit event. Has parameters ({ event: String, data: {...}}) | emit('emit-event-hub', { event: 'call-some-external-event', data: { ...any data }) |
64
67
 
65
68
  Example
@@ -77,41 +80,56 @@ Example
77
80
  :classes="'w-100 vd-form-card--flat'"
78
81
  :link="'/'"
79
82
  :show-title="false"
83
+ :form-location="'IS_ON_RESULT_PAGE'"
84
+ :additional-options="{
85
+ some-data-for-some-certain-form: 'some data'
86
+ }"
80
87
  />
81
88
  ```
82
89
 
83
90
  ### THE LIST OF AVAILABLE FORMS
84
- * motor-form
85
- * motor-form-horizontal
86
- * create-loan-comparison-form
87
- * update-loan-comparison-form
88
- * car-form
89
- * car-form-horizontal
90
- * moped-form
91
- * moped-form-horizontal
92
- * pet-form
93
- * pet-form-horizontal
94
91
  * bike-form
95
92
  * bike-form-horizontal
93
+ * bike-form-old
94
+ * business-car-form
95
+ * car-form
96
+ * car-form-horizontal
97
+ * car-form-old
96
98
  * caravan-form
97
99
  * caravan-form-horizontal
100
+ * caravan-form-old
101
+ * create-loan-comparison-form
102
+ * house-form
103
+ * house-form-horizontal
104
+ * house-form-old
105
+ * legal-assistance-form
106
+ * legal-assistance-form-horizontal
107
+ * legal-assistance-form-old
98
108
  * liability-form
99
109
  * liability-form-horizontal
110
+ * liability-form-old
111
+ * moped-form
112
+ * moped-form-horizontal
113
+ * moped-form-old
114
+ * motor-form
115
+ * motor-form-horizontal
116
+ * motor-form-old
117
+ * package-form
118
+ * pet-form
119
+ * pet-form-horizontal
120
+ * pet-form-old
100
121
  * travel-form
101
122
  * travel-form-horizontal
102
- * legal-assistance-form
103
- * legal-assistance-form-horizontal
104
- * house-form
105
- * house-form-horizontal
106
- * package-form
123
+ * travel-form-old
124
+ * update-loan-comparison-form
107
125
 
108
- Those names should be used in form-component prop for embedded mode, or for link address for standalone version, and should be exact as in this list.
126
+ Those names should be used in form-component prop for embedded mode, or for link address for standalone version, and should be exact as in this list. If there is a need to get old horizontal form, formComponent should include: form-type-horizontal-old, or form-type-old-horizontal. E.g. motor-form-horizontal-old.
109
127
 
110
128
  NOTICE: If there is :link prop, user will be redirected to this address with appropriate queryparams.
111
129
 
112
130
  ### Embedded mode Comparison forms commands
113
131
  * npm run watch - launch dev mode SSR app
114
132
  * npm run serve - launch prod mode SSR app
115
- * npm run test - launch test mode SSR app
133
+ * npm run test - launch test mode app
116
134
  * npm run build - make build
117
135
  * npm run rollup - make rollup of comparison forms