@live-change/vue3-components 0.2.34 → 0.2.35

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.
@@ -77,7 +77,7 @@
77
77
  type: String
78
78
  }
79
79
  },
80
- emits: ['submit', 'done', 'error'],
80
+ emits: ['validate', 'submit', 'done', 'error'],
81
81
  inject: ['loadingZone', 'workingZone'],
82
82
  data() {
83
83
  return {
@@ -228,6 +228,8 @@
228
228
  parameters: { ...this.parameters, ...additionalParameters }
229
229
  })
230
230
 
231
+ this.$emit("validate", { parameters: { ...this.parameters, ...additionalParameters }, form: this })
232
+
231
233
  const validationError = await this.validate({
232
234
  parameters: { ...this.parameters, ...additionalParameters }
233
235
  })
@@ -248,7 +250,7 @@
248
250
  //console.trace("SUBMIT!")
249
251
  debug("SUBMIT DATA:\n"+JSON.stringify(parameters, null, " "))
250
252
 
251
- this.$emit("submit", { parameters })
253
+ this.$emit("submit", { parameters, form: this })
252
254
 
253
255
  return this.$api.request([this.service, this.action], parameters).then((result) => {
254
256
  debug("DATA SUBMITED")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-framework-vue3",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.2.34",
24
+ "@live-change/vue3-ssr": "^0.2.35",
25
25
  "debug": "^4.3.4",
26
- "mitt": "3.0.0",
27
- "vue": "^3.2.47"
26
+ "mitt": "3.0.1",
27
+ "vue": "^3.4.19"
28
28
  },
29
- "gitHead": "eb0681b9385502eae7a810a69ef0df537c8f9141"
29
+ "gitHead": "9e6d202e22c70e585b57109d0136f85030f240bb"
30
30
  }