comand-component-library 4.2.95 → 4.2.96

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.96",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -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
+ }