@abi-software/map-side-bar 2.5.0 → 2.5.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/dist/map-side-bar.js +17 -11
- package/dist/map-side-bar.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +18 -3
- package/src/components/ConnectivityInfo.vue +9 -2
- package/src/components/SideBar.vue +14 -8
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -128,7 +128,14 @@ export default {
|
|
|
128
128
|
},
|
|
129
129
|
connectivityInput: exampleConnectivityInput,
|
|
130
130
|
activeId: 1,
|
|
131
|
-
createData:
|
|
131
|
+
createData: {
|
|
132
|
+
toBeConfirmed: false,
|
|
133
|
+
points: [],
|
|
134
|
+
shape: "",
|
|
135
|
+
x: 0,
|
|
136
|
+
y: 0,
|
|
137
|
+
},
|
|
138
|
+
createDataSet: false,
|
|
132
139
|
}
|
|
133
140
|
},
|
|
134
141
|
methods: {
|
|
@@ -239,7 +246,7 @@ export default {
|
|
|
239
246
|
console.log('Algolia facets:', facets)
|
|
240
247
|
},
|
|
241
248
|
toggleCreateData : function() {
|
|
242
|
-
if (!this.
|
|
249
|
+
if (!this.createDataSet) {
|
|
243
250
|
this.createData = {
|
|
244
251
|
drawingBox: false,
|
|
245
252
|
toBeConfirmed: true,
|
|
@@ -251,8 +258,16 @@ export default {
|
|
|
251
258
|
faceIndex: -1,
|
|
252
259
|
toBeDeleted: false,
|
|
253
260
|
}
|
|
261
|
+
this.createDataSet = true
|
|
254
262
|
} else {
|
|
255
|
-
this.createData =
|
|
263
|
+
this.createData = {
|
|
264
|
+
toBeConfirmed: false,
|
|
265
|
+
points: [],
|
|
266
|
+
shape: "",
|
|
267
|
+
x: 0,
|
|
268
|
+
y: 0,
|
|
269
|
+
}
|
|
270
|
+
this.createDataSet = false
|
|
256
271
|
}
|
|
257
272
|
},
|
|
258
273
|
onConnectivityComponentClick: function(data) {
|
|
@@ -765,8 +765,15 @@ export default {
|
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
.el-button-secondary {
|
|
768
|
-
border-color: transparent;
|
|
769
|
-
background-color: transparent;
|
|
768
|
+
border-color: transparent !important;
|
|
769
|
+
background-color: transparent !important;
|
|
770
|
+
color: inherit !important;
|
|
771
|
+
|
|
772
|
+
&:hover {
|
|
773
|
+
color: $app-primary-color !important;
|
|
774
|
+
border-color: $app-primary-color !important;
|
|
775
|
+
background-color: #f9f2fc !important;
|
|
776
|
+
}
|
|
770
777
|
}
|
|
771
778
|
|
|
772
779
|
.buttons-row {
|
|
@@ -158,7 +158,13 @@ export default {
|
|
|
158
158
|
},
|
|
159
159
|
createData: {
|
|
160
160
|
type: Object,
|
|
161
|
-
default:
|
|
161
|
+
default: {
|
|
162
|
+
toBeConfirmed: false,
|
|
163
|
+
points: [],
|
|
164
|
+
shape: "",
|
|
165
|
+
x: 0,
|
|
166
|
+
y: 0,
|
|
167
|
+
},
|
|
162
168
|
}
|
|
163
169
|
},
|
|
164
170
|
data: function () {
|
|
@@ -300,6 +306,13 @@ export default {
|
|
|
300
306
|
tabClose: function (id) {
|
|
301
307
|
this.$emit('tab-close', id);
|
|
302
308
|
},
|
|
309
|
+
/**
|
|
310
|
+
* To receive error message for connectivity graph
|
|
311
|
+
* @param {String} errorMessage
|
|
312
|
+
*/
|
|
313
|
+
updateConnectivityGraphError: function (errorMessage) {
|
|
314
|
+
EventBus.emit('connectivity-graph-error', errorMessage);
|
|
315
|
+
},
|
|
303
316
|
},
|
|
304
317
|
computed: {
|
|
305
318
|
activeTabs: function() {
|
|
@@ -314,13 +327,6 @@ export default {
|
|
|
314
327
|
}
|
|
315
328
|
return tabs;
|
|
316
329
|
},
|
|
317
|
-
/**
|
|
318
|
-
* To receive error message for connectivity graph
|
|
319
|
-
* @param {String} errorMessage
|
|
320
|
-
*/
|
|
321
|
-
updateConnectivityGraphError: function (errorMessage) {
|
|
322
|
-
EventBus.emit('connectivity-graph-error', errorMessage);
|
|
323
|
-
},
|
|
324
330
|
},
|
|
325
331
|
created: function () {
|
|
326
332
|
this.drawerOpen = this.openAtStart
|