@live-change/vue3-components 0.2.34 → 0.8.2

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.8.2",
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.8.2",
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": "53b8efc8ec7f5c1c4af33077d8fb4a8a5580f1d9"
30
30
  }
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/vue3-components.iml" filepath="$PROJECT_DIR$/vue3-components.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>