comand-component-library 4.2.95 → 4.2.97
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/comand-component-library.css +1 -1
- package/dist/comand-component-library.js +944 -929
- package/package.json +1 -1
- package/src/ComponentLibrary.vue +3 -0
- package/src/components/CmdInputGroup.vue +2 -1
- package/src/components/CmdMultistepFormWrapper.vue +11 -3
- package/src/mixins/CmdMultistepFormWrapper/DefaultMessageProperties.js +9 -0
package/package.json
CHANGED
package/src/ComponentLibrary.vue
CHANGED
|
@@ -1331,6 +1331,7 @@
|
|
|
1331
1331
|
:modelValue="props.formDataForPage"
|
|
1332
1332
|
@update:modelValue="props.updateFormDataForPage"
|
|
1333
1333
|
/>
|
|
1334
|
+
props.formDataForPage: {{ props.formDataForPage }}
|
|
1334
1335
|
<a href="#" @click.prevent="props.setErrorOnPage('This is an error!')">Set Error</a><br />
|
|
1335
1336
|
<a href="#" @click.prevent="props.removeErrorOnPage">Remove Error</a>
|
|
1336
1337
|
</template>
|
|
@@ -1365,6 +1366,7 @@
|
|
|
1365
1366
|
@validation-status-change="setValidationStatus($event, 'page-2-email', props)"
|
|
1366
1367
|
/>
|
|
1367
1368
|
</CmdForm>
|
|
1369
|
+
props.formDataForPage: {{ props.formDataForPage }}
|
|
1368
1370
|
<a href="#" @click.prevent="props.setErrorOnPage('This is an error!')">Set Error</a>
|
|
1369
1371
|
</template>
|
|
1370
1372
|
<template v-slot:page-3="props">
|
|
@@ -1403,6 +1405,7 @@
|
|
|
1403
1405
|
v-model="props.formDataForPage.city"
|
|
1404
1406
|
/>
|
|
1405
1407
|
</div>
|
|
1408
|
+
props.formDataForPage: {{ props.formDataForPage }}
|
|
1406
1409
|
</CmdForm>
|
|
1407
1410
|
</template>
|
|
1408
1411
|
<template v-slot:page-last="props">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
<div v-show="currentPage === numberOfPages" class="multistep-page-last">
|
|
39
39
|
<CmdSystemMessage v-if="pagesWithError.length" validationStatus="error">
|
|
40
|
-
<p>
|
|
40
|
+
<p>{{ getMessage("multistep_form_wrapper.system_message.please_enter_all_required_data_on_the_pages") }} {{ pagesWithError.join(", ") }}</p>
|
|
41
41
|
</CmdSystemMessage>
|
|
42
42
|
|
|
43
43
|
<!-- begin slot for last step -->
|
|
@@ -73,8 +73,16 @@
|
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<script>
|
|
76
|
+
// import mixins
|
|
77
|
+
import I18n from "../mixins/I18n.js"
|
|
78
|
+
import DefaultMessageProperties from "../mixins/CmdMultistepFormWrapper/DefaultMessageProperties.js"
|
|
79
|
+
|
|
76
80
|
export default {
|
|
77
81
|
name: "CmdMultistepFormWrapper",
|
|
82
|
+
mixins: [
|
|
83
|
+
I18n,
|
|
84
|
+
DefaultMessageProperties
|
|
85
|
+
],
|
|
78
86
|
data () {
|
|
79
87
|
return {
|
|
80
88
|
currentPage: 1,
|
|
@@ -197,10 +205,10 @@ export default {
|
|
|
197
205
|
if(this.validationStatusForSteps.length > 0 || this.inputMade.length === 0) {
|
|
198
206
|
return true
|
|
199
207
|
}
|
|
208
|
+
|
|
200
209
|
const requiredPagesSet = new Set(this.requiredPages)
|
|
201
210
|
const inputMadeSet = new Set(this.inputMade)
|
|
202
|
-
|
|
203
|
-
console.log("inputMadeSet", inputMadeSet)
|
|
211
|
+
|
|
204
212
|
return !requiredPagesSet.isSubsetOf(inputMadeSet) // check if all requiredPages are included in inputMade
|
|
205
213
|
|
|
206
214
|
},
|