@abi-software/mapintegratedvuer 1.9.0-beta.2 → 1.9.0-beta.4

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/mapintegratedvuer",
3
- "version": "1.9.0-beta.2",
3
+ "version": "1.9.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -50,11 +50,11 @@
50
50
  "*.js"
51
51
  ],
52
52
  "dependencies": {
53
- "@abi-software/flatmapvuer": "^1.9.0-beta.2",
54
- "@abi-software/map-side-bar": "^2.7.3-beta.3",
55
- "@abi-software/map-utilities": "^1.5.0-beta.2",
53
+ "@abi-software/flatmapvuer": "^1.9.0-beta.3",
54
+ "@abi-software/map-side-bar": "^2.7.3-beta.6",
55
+ "@abi-software/map-utilities": "^1.5.0-beta.3",
56
56
  "@abi-software/plotvuer": "^1.0.3",
57
- "@abi-software/scaffoldvuer": "^1.9.0-beta.1",
57
+ "@abi-software/scaffoldvuer": "^1.9.0-beta.3",
58
58
  "@abi-software/simulationvuer": "1.0.1",
59
59
  "@abi-software/sparc-annotation": "0.3.2",
60
60
  "@abi-software/svg-sprite": "^1.0.1",
@@ -113,46 +113,32 @@
113
113
  >
114
114
  <template v-if="displayShareOptions">
115
115
  <el-row>
116
- <el-col :span="8">
117
- <el-popover class="tooltip"
118
- content="Create a permanent link for current views and settings."
119
- placement="bottom-end"
120
- :show-after="helpDelay" :teleported=false trigger="hover"
121
- popper-class="header-popper"
116
+ <el-col :offset="3" :span="8">
117
+ <el-button
118
+ type="primary"
119
+ size="small"
120
+ @click="getShareLink(exportAnnotation)"
121
+ class="share-options"
122
122
  >
123
- <template #reference>
124
- <el-button
125
- type="primary"
126
- size="small"
127
- @click="getShareLink(false)"
128
- class="share-options"
129
- >
130
- Settings Only
131
- </el-button>
132
- </template>
133
- </el-popover>
123
+ Create Permalink
124
+ </el-button>
134
125
  </el-col>
135
- <el-col :span="14">
126
+ <el-col :span="10">
136
127
  <el-popover class="tooltip"
137
128
  placement="bottom-end"
138
129
  :show-after="helpDelay" :teleported=false trigger="hover"
139
130
  popper-class="header-popper"
140
131
  >
141
132
  <template #reference>
142
- <el-button
143
- type="primary"
133
+ <el-checkbox
134
+ v-model="exportAnnotation"
144
135
  size="small"
145
- @click="getShareLink(true)"
146
- class="share-options"
147
136
  >
148
- Settings with Annotations
149
- (Valid for 30 days)
150
- </el-button>
137
+ Export Annotations
138
+ </el-checkbox>
151
139
  </template>
152
140
  <template #default>
153
- Create a link for current views settings
154
- <br>
155
- and anonymous annotations.
141
+ Create a permalink with anonymous annotations.
156
142
  <br>
157
143
  NOTE: Annotations will only be stored for
158
144
  <br>
@@ -286,6 +272,7 @@ import {
286
272
  } from '@element-plus/icons-vue';
287
273
  import {
288
274
  ElButton as Button,
275
+ ElCheckbox as Checkbox,
289
276
  ElCol as Col,
290
277
  ElIcon as Icon,
291
278
  ElInput as Input,
@@ -303,6 +290,7 @@ export default {
303
290
  name: "DialogToolbarContent",
304
291
  components: {
305
292
  Button,
293
+ Checkbox,
306
294
  Col,
307
295
  Icon,
308
296
  Input,
@@ -371,16 +359,17 @@ export default {
371
359
  },
372
360
  data: function() {
373
361
  return {
374
- isFullscreen: false,
375
- loadingLink: true,
376
- displayShareOptions: false,
377
- independent: true,
378
- failedSearch: undefined,
379
362
  activeViewRef: undefined,
380
- permalinkRef: undefined,
381
- globalSettingRef: undefined,
363
+ displayShareOptions: false,
382
364
  ElIconCopyDocument: shallowRef(ElIconCopyDocument),
365
+ exportAnnotation: false,
366
+ failedSearch: undefined,
383
367
  globalSettings: {},
368
+ globalSettingRef: undefined,
369
+ independent: true,
370
+ isFullscreen: false,
371
+ loadingLink: true,
372
+ permalinkRef: undefined,
384
373
  }
385
374
  },
386
375
  methods: {
@@ -647,9 +647,9 @@ export default {
647
647
  }
648
648
  this.connectivityExplorerClicked = false;
649
649
  });
650
- EventBus.on('connectivity-graph-error', payload => {
650
+ EventBus.on('connectivity-error', payload => {
651
651
  if (this.$refs.sideBar) {
652
- this.$refs.sideBar.updateConnectivityGraphError(payload.data);
652
+ this.$refs.sideBar.updateConnectivityError(payload.data);
653
653
  }
654
654
  });
655
655
  EventBus.on("OpenNewMap", type => {
@@ -20,7 +20,7 @@
20
20
  @annotation-close="onAnnotationClose"
21
21
  :annotationSidebar="annotationSidebar"
22
22
  @connectivity-info-open="onConnectivityInfoOpen"
23
- @connectivity-graph-error="onConnectivityGraphError"
23
+ @connectivity-error="onConnectivityError"
24
24
  :connectivityInfoSidebar="connectivityInfoSidebar"
25
25
  :pathControls="true"
26
26
  ref="flatmap"
@@ -19,7 +19,7 @@
19
19
  @annotation-close="onAnnotationClose"
20
20
  :annotationSidebar="annotationSidebar"
21
21
  @connectivity-info-open="onConnectivityInfoOpen"
22
- @connectivity-graph-error="onConnectivityGraphError"
22
+ @connectivity-error="onConnectivityError"
23
23
  :connectivityInfoSidebar="connectivityInfoSidebar"
24
24
  ref="multiflatmap"
25
25
  :displayMinimap="true"
@@ -16,6 +16,7 @@ declare module 'vue' {
16
16
  DialogToolbarContent: typeof import('./components/DialogToolbarContent.vue')['default']
17
17
  ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
18
18
  ElButton: typeof import('element-plus/es')['ElButton']
19
+ ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
19
20
  ElCol: typeof import('element-plus/es')['ElCol']
20
21
  ElContainer: typeof import('element-plus/es')['ElContainer']
21
22
  ElHeader: typeof import('element-plus/es')['ElHeader']
@@ -539,8 +539,8 @@ export default {
539
539
  onConnectivityInfoOpen: function (connectivityInfoData) {
540
540
  EventBus.emit('connectivity-info-open', connectivityInfoData);
541
541
  },
542
- onConnectivityGraphError: function (errorInfo) {
543
- EventBus.emit('connectivity-graph-error', errorInfo);
542
+ onConnectivityError: function (errorInfo) {
543
+ EventBus.emit('connectivity-error', errorInfo);
544
544
  },
545
545
  loadConnectivityKnowledge: async function (flatmap) {
546
546
  const sckanVersion = getKnowledgeSource(flatmap);
@@ -551,13 +551,16 @@ export default {
551
551
  const mapPathsData = await flatmapQueries.queryMapPaths(uuid);
552
552
  const pathsFromMap = mapPathsData ? mapPathsData.paths : {};
553
553
 
554
- this.connectivityKnowledge[uuid] = knowledge.filter((item) => {
555
- if (item.source === sckanVersion && item.connectivity?.length && item.id in pathsFromMap) {
556
- return true;
557
- }
558
- return false;
559
- });
560
- EventBus.emit("connectivity-knowledge", { type: "default", data: this.connectivityKnowledge[uuid] });
554
+ this.connectivityKnowledge[uuid] = knowledge
555
+ .filter((item) => {
556
+ return (
557
+ item.source === sckanVersion &&
558
+ item.connectivity?.length &&
559
+ item.id in pathsFromMap
560
+ );
561
+ })
562
+ .sort((a, b) => a.label.localeCompare(b.label));
563
+ EventBus.emit("connectivity-knowledge", { data: this.connectivityKnowledge[uuid] });
561
564
  },
562
565
  getSearchedId: function (flatmap, term) {
563
566
  let ids = [];
@@ -600,7 +603,6 @@ export default {
600
603
  let paths = await flatmap.retrieveConnectedPaths(ids, options);
601
604
  paths = [...ids, ...paths.filter((path) => !ids.includes(path))];
602
605
  let results = this.connectivityKnowledge[uuid].filter((item) => paths.includes(item.id));
603
- results.sort((a, b) => paths.indexOf(a.id) - paths.indexOf(b.id));
604
606
  payload.data = results;
605
607
  }
606
608
  EventBus.emit("connectivity-knowledge", payload);