@live-change/vue3-components 0.1.8 → 0.1.12

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/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
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>
@@ -0,0 +1,8 @@
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 ADDED
@@ -0,0 +1,6 @@
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>
@@ -11,8 +11,8 @@
11
11
  :class="class"
12
12
  :style="style"
13
13
  v-slot="{ data }">
14
- <slot v-bind="{ data }"></slot>
15
- </defined-form>
14
+ <slot v-bind="{ data, submit }"></slot>
15
+ </defined-form>
16
16
  <slot v-if="state == 'error'" name="error">
17
17
  <div class="alert alert-danger" role="alert">error</div>
18
18
  </slot>
@@ -98,31 +98,17 @@
98
98
  return this.serviceDefinitionSource
99
99
  }
100
100
  }
101
- if(!this.$api.metadata.serviceDefinitions) return
102
- const definition = this.$api.metadata.serviceDefinitions.find(service => service.name == this.service)
103
- return definition
104
- },
105
- serviceDefinitionMatch() {
106
- //console.log("METADATA SERVICE DEFS", this.$api.metadata.serviceDefinitions)
107
- if(!this.$api.metadata.serviceDefinitions) return
108
- const definition = this.serviceDefinition
109
- if(definition.credentials) {
110
- const credentials = {
111
- roles: (this.$session && this.$session.session.roles) || [],
112
- user: this.$session && this.$session.session.user
113
- }
114
- //console.log("DEFN CRED", JSON.stringify(definition.credentials), "==", JSON.stringify(credentials))
115
- if(JSON.stringify(definition.credentials) != JSON.stringify(credentials)) return
116
- }
101
+ if(!this.$api.metadata.api?.services) return
102
+ const definition = this.$api.metadata.api?.services.find(service => service.name == this.service)
117
103
  return definition
118
104
  },
119
105
  actionDefinition() {
120
- return this.serviceDefinitionMatch
106
+ return this.serviceDefinition
121
107
  && this.serviceDefinition.actions[this.action]
122
108
  },
123
109
  definitionNotFound() {
124
110
  return (this.$api.metadata.serviceDefinitions && !this.serviceDefinition)
125
- || (this.serviceDefinitionMatch && !this.actionDefinition)
111
+ || (this.serviceDefinition && !this.actionDefinition)
126
112
  },
127
113
  loadingError() {
128
114
  return this.definitionNotFound ? "notFound" : this.serviceDefinitionsError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.1.8",
3
+ "version": "0.1.12",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/vue3-components",
23
23
  "dependencies": {
24
- "@vue/server-renderer": "^3.2.4",
25
24
  "debug": "^4.3.2",
26
- "vue": "^3.2.4"
25
+ "vue": "^3.2.21"
27
26
  }
28
27
  }
@@ -0,0 +1,9 @@
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>