@abi-software/mapintegratedvuer 1.6.0 → 1.6.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/mapintegratedvuer",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -51,10 +51,10 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "@abi-software/flatmapvuer": "^1.6.0",
54
- "@abi-software/map-side-bar": "^2.5.0",
54
+ "@abi-software/map-side-bar": "^2.5.1",
55
55
  "@abi-software/map-utilities": "^1.2.0",
56
56
  "@abi-software/plotvuer": "^1.0.3",
57
- "@abi-software/scaffoldvuer": "^1.6.1",
57
+ "@abi-software/scaffoldvuer": "^1.6.2",
58
58
  "@abi-software/simulationvuer": "^1.0.1",
59
59
  "@abi-software/sparc-annotation": "0.3.1",
60
60
  "@abi-software/svg-sprite": "^1.0.1",
@@ -280,7 +280,12 @@ export default {
280
280
  const activeContents = splitdialog.getActiveContents();
281
281
  //Push new suggestions into the pre-existing suggestions array
282
282
  activeContents.forEach(content => content.searchSuggestions(payload.data.term, suggestions));
283
- const unique = new Set(suggestions);
283
+ const parsed = [];
284
+ //Remove double quote as it is used as a speical character
285
+ suggestions.forEach(suggestion => {
286
+ parsed.push(suggestion.replaceAll("\"", ""));
287
+ });
288
+ const unique = new Set(parsed);
284
289
  suggestions.length = 0;
285
290
  for (const item of unique) {
286
291
  suggestions.push({"value": "\"" + item +"\""});
@@ -72,9 +72,7 @@ export default {
72
72
  * Perform a local search on this contentvuer
73
73
  */
74
74
  search: function (term) {
75
- //Remove first and last letter if they are double quote
76
- const parsed = term.replace(/(^"|"$)/g, '');
77
- return this.$refs.scaffold.search(parsed, true);
75
+ return this.$refs.scaffold.search(term, true);
78
76
  },
79
77
  searchSuggestions: function(term, suggestions){
80
78
  if (term === "" || !this.$refs.scaffold) {