@abi-software/map-utilities 1.2.0-beta.0 → 1.2.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/map-utilities",
3
- "version": "1.2.0-beta.0",
3
+ "version": "1.2.0-beta.1",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
package/src/App.vue CHANGED
@@ -26,7 +26,6 @@ const hoverVisibilities = [
26
26
  { value: false, refs: "toolbarPopover", ref: "polygonPopover" },
27
27
  { value: false, refs: "toolbarPopover", ref: "connectionPopover" },
28
28
  ];
29
- const filterText = ref("")
30
29
  const isFlatmap = ref(true);
31
30
  const appRef = ref(null);
32
31
  const newlyDrawnEntry = ref({});
@@ -468,11 +467,6 @@ function changeHover(value) {
468
467
  @annotation="commitAnnotationEvent"
469
468
  @onActionClick="onActionClick"
470
469
  />
471
- <el-input
472
- v-model="filterText"
473
- style="width: 240px"
474
- placeholder="Filter keyword"
475
- />
476
470
  <TreeControls
477
471
  v-show="mapType === 'flatmap'"
478
472
  mapType="flatmap"
@@ -484,7 +478,6 @@ function changeHover(value) {
484
478
  @checkChanged="checkChanged"
485
479
  @changeActive="changeActive"
486
480
  @changeHover="changeHover"
487
- :filterText="filterText"
488
481
  />
489
482
  <TreeControls
490
483
  v-show="mapType === 'scaffold'"
@@ -497,7 +490,6 @@ function changeHover(value) {
497
490
  :showColourPicker="true"
498
491
  @setColour="setColour"
499
492
  @checkChanged="checkChanged"
500
- :filterText="filterText"
501
493
  />
502
494
  </div>
503
495
  </template>
@@ -6,6 +6,15 @@
6
6
  {{ title }}
7
7
  </div>
8
8
  </el-col>
9
+ <el-col v-if="enableFilter" :span="12">
10
+ <div>
11
+ <el-input
12
+ class="tree-filter-input"
13
+ v-model="filterText"
14
+ placeholder="Filter keyword"
15
+ />
16
+ </div>
17
+ </el-col>
9
18
  </el-row>
10
19
  <div class="tree-container" ref="treeContainer">
11
20
  <div :class="['tree-tooltip', tooltipAtBottom ? 'bottom' : '']" >
@@ -95,10 +104,6 @@
95
104
  export default {
96
105
  name: "TreeControls",
97
106
  props: {
98
- filterText: {
99
- type: String,
100
- default: "",
101
- },
102
107
  /**
103
108
  * The type of map that the TreeControls is used. Either "flatmap" or "scaffold".
104
109
  */
@@ -143,10 +148,15 @@ export default {
143
148
  type: [String, Array],
144
149
  required: true,
145
150
  },
151
+ enableFilter: {
152
+ type: Boolean,
153
+ default: true,
154
+ }
146
155
  },
147
156
  data: function () {
148
157
  return {
149
158
  defaultExpandedKeys: ["All"],
159
+ filterText: "",
150
160
  myPopperClass: "hide-scaffold-colour-popup",
151
161
  tooltipVisible: false,
152
162
  tooltipLabel: "",
@@ -282,6 +292,7 @@ export default {
282
292
  }
283
293
 
284
294
  .selections-container {
295
+ width: 260px;
285
296
  padding-top: 5px;
286
297
  }
287
298
 
@@ -295,6 +306,15 @@ export default {
295
306
  margin-left: 8px;
296
307
  }
297
308
 
309
+ :deep(.tree-filter-input) {
310
+ .el-input__inner {
311
+ height: 20px;
312
+ }
313
+ .el-input__wrapper.is-focus{
314
+ box-shadow: 0 0 0 1px $app-primary-color;
315
+ }
316
+ }
317
+
298
318
  .tree-container {
299
319
  width: 260px;
300
320
  border: 1px solid rgb(144, 147, 153);