@abi-software/scaffoldvuer 0.2.2-beta.1 → 0.2.2

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-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "0.2.2-beta.1",
3
+ "version": "0.2.2",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "0.2.2-beta.1",
3
+ "version": "0.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -274,7 +274,7 @@
274
274
  popper-class="scaffold-popper right-popper non-selectable"
275
275
  >
276
276
  <map-svg-icon
277
- v-if="enableOpenMapUI && openMapOptions.lenght > 0"
277
+ v-if="enableOpenMapUI && openMapOptions.length > 0"
278
278
  slot="reference"
279
279
  v-popover:open-map-popover
280
280
  icon="openMap"
@@ -1192,11 +1192,19 @@ export default {
1192
1192
  },
1193
1193
  search: function (text, displayLabel) {
1194
1194
  if (this.$_searchIndex) {
1195
- if (text === undefined || text === "") {
1196
- this.objectSelected([], true);
1195
+ if (text === undefined || text === "" ||
1196
+ ((Array.isArray(text) && text.length === 0))
1197
+ ) {
1198
+ this.objectSelected([], true);
1197
1199
  return false;
1198
1200
  } else {
1199
- let zincObjectResults = this.$_searchIndex.search(text);
1201
+ let zincObjectResults = [];
1202
+ if (Array.isArray(text)) {
1203
+ //zincObjectResults = this.$_searchIndex.search("Heart");
1204
+ zincObjectResults = this.$_searchIndex.searchTerms(text);
1205
+ } else {
1206
+ zincObjectResults = this.$_searchIndex.search(text);
1207
+ }
1200
1208
  if (zincObjectResults.length > 0) {
1201
1209
  this.objectSelected(zincObjectResults, true);
1202
1210
  if (displayLabel) {
@@ -96,6 +96,16 @@ export class SearchIndex
96
96
  return zincResults;
97
97
  }
98
98
 
99
+ searchTerms(terms){
100
+ let results = [];
101
+ terms.forEach(term => {
102
+ const result = this.search(term);
103
+ results.push(...result);
104
+ });
105
+
106
+ return results;
107
+ }
108
+
99
109
  // search(text)
100
110
  // //==========
101
111
  // {