@abi-software/flatmapvuer 0.3.9 → 0.3.10

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@abi-software/flatmap-viewer": {
8
- "version": "2.2.7",
9
- "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.7.tgz",
10
- "integrity": "sha512-QR6HRxLLI0mMsSAGkPJgfJg13943ZM6BUPPjXFWtBTXeKH8sEHWTzAgwF2rLWsP9HnaJXVCOhH//R4LAXdU0fA==",
8
+ "version": "2.2.9",
9
+ "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.9.tgz",
10
+ "integrity": "sha512-UN7R84Xn2TeK9Fo/IEFSEKuauRroO5KMYKDUu4wfZQw0qzSC79OdJmHBOeIH4pkS+J4FRZfq+prS7cxiCNCyRw==",
11
11
  "requires": {
12
12
  "@babel/runtime": "^7.10.4",
13
13
  "@turf/area": "^6.0.1",
@@ -2001,7 +2001,6 @@
2001
2001
  "thread-loader": "^2.1.3",
2002
2002
  "url-loader": "^2.2.0",
2003
2003
  "vue-loader": "^15.9.2",
2004
- "vue-loader-v16": "npm:vue-loader@^16.1.0",
2005
2004
  "vue-style-loader": "^4.1.2",
2006
2005
  "webpack": "^4.0.0",
2007
2006
  "webpack-bundle-analyzer": "^3.8.0",
@@ -13192,94 +13191,6 @@
13192
13191
  }
13193
13192
  }
13194
13193
  },
13195
- "vue-loader-v16": {
13196
- "version": "npm:vue-loader@16.8.3",
13197
- "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
13198
- "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
13199
- "dev": true,
13200
- "optional": true,
13201
- "requires": {
13202
- "chalk": "^4.1.0",
13203
- "hash-sum": "^2.0.0",
13204
- "loader-utils": "^2.0.0"
13205
- },
13206
- "dependencies": {
13207
- "ansi-styles": {
13208
- "version": "4.3.0",
13209
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
13210
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
13211
- "dev": true,
13212
- "optional": true,
13213
- "requires": {
13214
- "color-convert": "^2.0.1"
13215
- }
13216
- },
13217
- "chalk": {
13218
- "version": "4.1.2",
13219
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
13220
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
13221
- "dev": true,
13222
- "optional": true,
13223
- "requires": {
13224
- "ansi-styles": "^4.1.0",
13225
- "supports-color": "^7.1.0"
13226
- }
13227
- },
13228
- "color-convert": {
13229
- "version": "2.0.1",
13230
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
13231
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
13232
- "dev": true,
13233
- "optional": true,
13234
- "requires": {
13235
- "color-name": "~1.1.4"
13236
- }
13237
- },
13238
- "color-name": {
13239
- "version": "1.1.4",
13240
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
13241
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
13242
- "dev": true,
13243
- "optional": true
13244
- },
13245
- "has-flag": {
13246
- "version": "4.0.0",
13247
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
13248
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
13249
- "dev": true,
13250
- "optional": true
13251
- },
13252
- "json5": {
13253
- "version": "2.2.1",
13254
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
13255
- "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
13256
- "dev": true,
13257
- "optional": true
13258
- },
13259
- "loader-utils": {
13260
- "version": "2.0.4",
13261
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
13262
- "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
13263
- "dev": true,
13264
- "optional": true,
13265
- "requires": {
13266
- "big.js": "^5.2.2",
13267
- "emojis-list": "^3.0.0",
13268
- "json5": "^2.1.2"
13269
- }
13270
- },
13271
- "supports-color": {
13272
- "version": "7.2.0",
13273
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
13274
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
13275
- "dev": true,
13276
- "optional": true,
13277
- "requires": {
13278
- "has-flag": "^4.0.0"
13279
- }
13280
- }
13281
- }
13282
- },
13283
13194
  "vue-style-loader": {
13284
13195
  "version": "4.1.3",
13285
13196
  "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "main": "./dist/flatmapvuer.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -21,7 +21,7 @@
21
21
  "lint": "vue-cli-service lint"
22
22
  },
23
23
  "dependencies": {
24
- "@abi-software/flatmap-viewer": "^2.2.7",
24
+ "@abi-software/flatmap-viewer": "^2.2.9",
25
25
  "@abi-software/svg-sprite": "^0.1.14",
26
26
  "core-js": "^3.3.2",
27
27
  "css-element-queries": "^1.2.2",
package/src/App.vue CHANGED
@@ -11,7 +11,7 @@
11
11
  <el-row :gutter="20">
12
12
  <el-button @click="helpMode = !helpMode" size="mini">Help Mode</el-button>
13
13
  <el-button @click="saveSettings()" size="mini">Save Settings</el-button>
14
- <el-button @click="restoreSettings()" size="mini">Restore Settings</el-button>
14
+ <el-button :disabled="mapSettings.length === 0" @click="restoreSettings()" size="mini">Restore Settings</el-button>
15
15
  </el-row>
16
16
  </div>
17
17
  <el-button class="options-button" icon="el-icon-setting" slot="reference">Options</el-button>
@@ -46,11 +46,11 @@ export default {
46
46
  name: 'app',
47
47
  methods: {
48
48
  saveSettings: function() {
49
- this._mapSettings.push(this.$refs.multi.getState());
49
+ this.mapSettings.push(this.$refs.multi.getState());
50
50
  },
51
51
  restoreSettings: function() {
52
- if (this._mapSettings.length > 0)
53
- this.$refs.multi.setState(this._mapSettings.pop());
52
+ if (this.mapSettings.length > 0)
53
+ this.$refs.multi.setState(this.mapSettings.pop());
54
54
  },
55
55
  FlatmapSelected: function(resource) {
56
56
  if (resource.eventType === "click")
@@ -94,15 +94,13 @@ export default {
94
94
  displayCloseButton: false,
95
95
  initial: "Rat",
96
96
  helpMode: false,
97
+ mapSettings: [],
97
98
  //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
98
99
  //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
99
- flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
100
+ flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
100
101
  // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
101
102
  }
102
103
  },
103
- mounted: function() {
104
- this._mapSettings = [];
105
- },
106
104
  components: {
107
105
  MultiFlatmapVuer,
108
106
  }
@@ -566,9 +566,15 @@ export default {
566
566
  if (this.mapImp) {
567
567
  let state = {
568
568
  entry: this.entry,
569
- biologicalSex: this.biologicalSex,
570
569
  viewport: this.mapImp.getState()
571
570
  };
571
+ const identifier = this.mapImp.getIdentifier();
572
+ if (this.biologicalSex)
573
+ state['biologicalSex'] = this.biologicalSex;
574
+ else if (identifier && identifier.biologicalSex)
575
+ state['biologicalSex'] = identifier.biologicalSex;
576
+ if (identifier && identifier.uuid)
577
+ state['uuid'] = identifier.uuid;
572
578
  return state;
573
579
  }
574
580
  return undefined;
@@ -595,7 +601,7 @@ export default {
595
601
  minimap = { position: "top-right" };
596
602
  }
597
603
 
598
- //As for flatmap-viewer@2.2.6, see belowf for the documentation
604
+ //As for flatmap-viewer@2.2.7, see below for the documentation
599
605
  //for the identifier:
600
606
 
601
607
  //@arg identifier {string|Object}
@@ -703,7 +709,10 @@ export default {
703
709
  },
704
710
  props: {
705
711
  entry: String,
706
- biologicalSex: String,
712
+ biologicalSex: {
713
+ type: String,
714
+ default: ""
715
+ },
707
716
  featureInfo: {
708
717
  type: Boolean,
709
718
  default: false
@@ -913,6 +922,9 @@ export default {
913
922
  transparent 9px
914
923
  );
915
924
  }
925
+ &.other {
926
+ background: #888;
927
+ }
916
928
  }
917
929
 
918
930
  .flatmap-container {
@@ -1301,10 +1313,6 @@ export default {
1301
1313
  }
1302
1314
  }
1303
1315
 
1304
- ::v-deep .flatmap-popper {
1305
-
1306
- }
1307
-
1308
1316
  ::v-deep .popper-zoomout {
1309
1317
  padding-right: 13px !important;
1310
1318
  left: -21px !important;