@abi-software/scaffoldvuer 1.9.0-beta.0 → 1.9.0-beta.1
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": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"*.js"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@abi-software/map-utilities": "^1.5.0-beta.
|
|
44
|
+
"@abi-software/map-utilities": "^1.5.0-beta.1",
|
|
45
45
|
"@abi-software/sparc-annotation": "^0.3.2",
|
|
46
46
|
"@abi-software/svg-sprite": "^1.0.1",
|
|
47
47
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -139,7 +139,7 @@ export default {
|
|
|
139
139
|
data: function () {
|
|
140
140
|
return {
|
|
141
141
|
display: false,
|
|
142
|
-
annotationEntry:
|
|
142
|
+
annotationEntry: [],
|
|
143
143
|
ElIconDelete: shallowRef(ElIconDelete),
|
|
144
144
|
};
|
|
145
145
|
},
|
|
@@ -160,18 +160,18 @@ export default {
|
|
|
160
160
|
this.display = true;
|
|
161
161
|
if (this.annotationDisplay) {
|
|
162
162
|
const region = this.region ? this.region +"/" : "";
|
|
163
|
-
this.annotationEntry
|
|
163
|
+
this.annotationEntry.push({
|
|
164
164
|
"featureId": region + this.label,
|
|
165
165
|
"resourceId": this.scaffoldUrl,
|
|
166
166
|
"resource": this.scaffoldUrl,
|
|
167
167
|
"feature": this.annotationFeature,
|
|
168
168
|
"offline": this.offlineAnnotationEnabled,
|
|
169
|
-
};
|
|
169
|
+
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
else {
|
|
173
173
|
this.display = false;
|
|
174
|
-
this.annotationEntry =
|
|
174
|
+
this.annotationEntry = [];
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
hideTriggered: function() {
|
|
@@ -1992,13 +1992,13 @@ export default {
|
|
|
1992
1992
|
);
|
|
1993
1993
|
} else {
|
|
1994
1994
|
const region = this.tData.region ? this.tData.region +"/" : "";
|
|
1995
|
-
const annotationEntry = {
|
|
1995
|
+
const annotationEntry = [{
|
|
1996
1996
|
"featureId": region + this.tData.label,
|
|
1997
1997
|
"resourceId": this.url,
|
|
1998
1998
|
"resource": this.url,
|
|
1999
1999
|
"feature": this.annotationFeature,
|
|
2000
2000
|
"offline": this.offlineAnnotationEnabled,
|
|
2001
|
-
};
|
|
2001
|
+
}];
|
|
2002
2002
|
this.$emit('annotation-open', {
|
|
2003
2003
|
annotationEntry: annotationEntry,
|
|
2004
2004
|
createData: this.createData,
|
package/vite.web-component.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import rootConfig from './vite.config.js'
|
|
3
|
-
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
|
|
6
|
-
// defineWorkspace provides a nice type hinting DX
|
|
7
|
-
export default defineConfig((configEnv) => {
|
|
8
|
-
const config = rootConfig(configEnv);
|
|
9
|
-
config.css.extract = false
|
|
10
|
-
config.plugins.push(
|
|
11
|
-
nodePolyfills({
|
|
12
|
-
// To add only specific polyfills, add them here. If no option is passed, adds all polyfills
|
|
13
|
-
include: ['path']
|
|
14
|
-
})
|
|
15
|
-
);
|
|
16
|
-
// config.plugins.push(
|
|
17
|
-
// cssInjectedByJsPlugin()
|
|
18
|
-
// );
|
|
19
|
-
config.plugins[0] = vue({
|
|
20
|
-
template: {
|
|
21
|
-
compilerOptions: {
|
|
22
|
-
isCustomElement: (tag) => tag.includes('scaffoldvuer-wc')
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}),
|
|
26
|
-
config.build = {
|
|
27
|
-
lib: {
|
|
28
|
-
entry: './src/ScaffoldVuer-wc.js',
|
|
29
|
-
name: 'scaffoldvuer-wc',
|
|
30
|
-
// the proper extensions will be added
|
|
31
|
-
fileName: 'scaffoldvuer-wc'
|
|
32
|
-
},
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return config;
|
|
36
|
-
})
|