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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.95",
3
+ "version": "4.2.97",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -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">
@@ -367,9 +367,10 @@ export default {
367
367
  --status-color: var(--error-color);
368
368
  }
369
369
 
370
+ /*
370
371
  label, span, [class*="icon-"] {
371
372
  color: var(--status-color);
372
- }
373
+ }*/
373
374
 
374
375
  &.multiple-switch {
375
376
  &.error {
@@ -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>Please fill all required fields on the pages {{ pagesWithError.join(", ") }} correctly!</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
- console.log("requiredPagesSet", requiredPagesSet)
203
- console.log("inputMadeSet", inputMadeSet)
211
+
204
212
  return !requiredPagesSet.isSubsetOf(inputMadeSet) // check if all requiredPages are included in inputMade
205
213
 
206
214
  },
@@ -0,0 +1,9 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ defaultMessageProperties: {
5
+ "multistep_form_wrapper.system_message.please_enter_all_required_data_on_the_pages": "Please enter all required data on the pages:",
6
+ }
7
+ }
8
+ }
9
+ }