@abi-software/flatmapvuer 1.1.0-beta.0 → 1.1.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.
@@ -58478,7 +58478,7 @@ class tQt extends YN {
58478
58478
  _addControlDetails() {
58479
58479
  let e = 0, r = 0;
58480
58480
  for (const n of this.__taxonIds) {
58481
- const i = this._addControlLine(`${this.__prefix}${n}`, n);
58481
+ const i = this._addControlLine(`${this.__prefix}${n}`, `xx-${n}`);
58482
58482
  i.checked = !0, r += 1, e += 1;
58483
58483
  }
58484
58484
  return {
@@ -91853,7 +91853,7 @@ class EMt {
91853
91853
  }
91854
91854
  /**
91855
91855
  * Get valid keys and their value ranges to use when filtering feature
91856
- * and path visiblity.
91856
+ * and path visibility.
91857
91857
  *
91858
91858
  * @return {Object} Value ranges are string arrays
91859
91859
  */
@@ -91872,7 +91872,7 @@ class EMt {
91872
91872
  /**
91873
91873
  * Sets a visibility filter for features and paths
91874
91874
  *
91875
- * @param {PropertiesFilterSpecification} [filterSpecification=true] The filter specification
91875
+ * @param {Object|boolean} [filterSpecification=true] The filter specification
91876
91876
  */
91877
91877
  setVisibilityFilter(e = !0) {
91878
91878
  this._userInteractions !== null && this._userInteractions.setVisibilityFilter(e);
@@ -93841,6 +93841,24 @@ const DMt = RMt("main", {
93841
93841
  }), this.mapImp.zoomToFeatures(s, { noZoomIn: !0 });
93842
93842
  }
93843
93843
  },
93844
+ /**
93845
+ * @vuese
93846
+ * Function to enable/disable mouse enter and leave event for
93847
+ * alert checkbox
93848
+ * @arg payload
93849
+ */
93850
+ alertMouseEnterEmitted: function(t) {
93851
+ if (this.mapImp)
93852
+ if (t.value) {
93853
+ const e = {
93854
+ HAS: "alert"
93855
+ };
93856
+ this.mapImp.setVisibilityFilter(e);
93857
+ } else
93858
+ this.mapImp.clearVisibilityFilter(), this.alertSelected({
93859
+ value: t.checked.length > 0
93860
+ });
93861
+ },
93844
93862
  /**
93845
93863
  * @vuese
93846
93864
  * Function to enable/disable (show/hide) pathways with/without alert
@@ -93915,7 +93933,7 @@ const DMt = RMt("main", {
93915
93933
  taxonsSelected: function(t) {
93916
93934
  this.mapImp && this.mapImp.enableConnectivityByTaxonIds(t.key, t.value);
93917
93935
  },
93918
- checkboxMouseEnterEmitted: function(t) {
93936
+ taxonMouseEnterEmitted: function(t) {
93919
93937
  if (this.mapImp)
93920
93938
  if (t.value) {
93921
93939
  let e = this.mapImp.taxonFeatureIds(t.key);
@@ -94796,7 +94814,7 @@ const DMt = RMt("main", {
94796
94814
  mounted: function() {
94797
94815
  this.openMapRef = Ko(this.$refs.openMapRef), this.backgroundIconRef = Ko(this.$refs.backgroundIconRef), this.tooltipWait = [], this.tooltipWait.length = this.hoverVisibilities.length, this.mapManager = new EB(this.flatmapAPI), this.flatmapQueries = new art(), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap();
94798
94816
  }
94799
- }, Ua = (t) => (y5("data-v-e5b7ccd4"), t = t(), v5(), t), UMt = {
94817
+ }, Ua = (t) => (y5("data-v-116c481b"), t = t(), v5(), t), UMt = {
94800
94818
  class: "flatmap-container",
94801
94819
  ref: "flatmapContainer",
94802
94820
  "element-loading-text": "Loading...",
@@ -95209,40 +95227,41 @@ function hHt(t, e, r, n, i, o) {
95209
95227
  identifierKey: "key",
95210
95228
  selections: t.alertOptions,
95211
95229
  onChanged: o.alertSelected,
95230
+ onCheckboxMouseEnter: o.alertMouseEnterEmitted,
95212
95231
  ref: "alertSelection",
95213
95232
  key: "alertSelection"
95214
- }, null, 8, ["selections", "onChanged"])) : Ce("", !0),
95215
- !t.isFC && t.centreLines && t.centreLines.length > 0 ? (wt(), Ne(v, {
95216
- title: "Nerves",
95233
+ }, null, 8, ["selections", "onChanged", "onCheckboxMouseEnter"])) : Ce("", !0),
95234
+ t.pathways && t.pathways.length > 0 ? (wt(), Ne(v, {
95235
+ title: "Pathways",
95217
95236
  labelKey: "label",
95218
- identifierKey: "key",
95219
- selections: t.centreLines,
95220
- onChanged: o.centreLinesSelected,
95221
- ref: "centrelinesSelection",
95222
- key: "centrelinesSelection"
95223
- }, null, 8, ["selections", "onChanged"])) : Ce("", !0),
95237
+ identifierKey: "type",
95238
+ colourStyle: "line",
95239
+ selections: t.pathways,
95240
+ onChanged: o.pathwaysSelected,
95241
+ onCheckAll: o.checkAllPathways,
95242
+ ref: "pathwaysSelection",
95243
+ key: "pathwaysSelection"
95244
+ }, null, 8, ["selections", "onChanged", "onCheckAll"])) : Ce("", !0),
95224
95245
  !t.isFC && t.taxonConnectivity && t.taxonConnectivity.length > 0 ? (wt(), Ne(v, {
95225
95246
  title: "Observed in",
95226
95247
  labelKey: "label",
95227
95248
  identifierKey: "taxon",
95228
95249
  selections: t.taxonConnectivity,
95229
95250
  onChanged: o.taxonsSelected,
95230
- onCheckboxMouseEnter: o.checkboxMouseEnterEmitted,
95251
+ onCheckboxMouseEnter: o.taxonMouseEnterEmitted,
95231
95252
  onCheckAll: o.checkAllTaxons,
95232
95253
  ref: "taxonSelection",
95233
95254
  key: "taxonSelection"
95234
95255
  }, null, 8, ["selections", "onChanged", "onCheckboxMouseEnter", "onCheckAll"])) : Ce("", !0),
95235
- t.pathways && t.pathways.length > 0 ? (wt(), Ne(v, {
95236
- title: "Pathways",
95256
+ !t.isFC && t.centreLines && t.centreLines.length > 0 ? (wt(), Ne(v, {
95257
+ title: "Nerves",
95237
95258
  labelKey: "label",
95238
- identifierKey: "type",
95239
- colourStyle: "line",
95240
- selections: t.pathways,
95241
- onChanged: o.pathwaysSelected,
95242
- onCheckAll: o.checkAllPathways,
95243
- ref: "pathwaysSelection",
95244
- key: "pathwaysSelection"
95245
- }, null, 8, ["selections", "onChanged", "onCheckAll"])) : Ce("", !0)
95259
+ identifierKey: "key",
95260
+ selections: t.centreLines,
95261
+ onChanged: o.centreLinesSelected,
95262
+ ref: "centrelinesSelection",
95263
+ key: "centrelinesSelection"
95264
+ }, null, 8, ["selections", "onChanged"])) : Ce("", !0)
95246
95265
  ], 6)), [
95247
95266
  [J, void 0, "checkBoxPopover"]
95248
95267
  ]),
@@ -95666,7 +95685,7 @@ function hHt(t, e, r, n, i, o) {
95666
95685
  [it, t.loading]
95667
95686
  ]);
95668
95687
  }
95669
- const OB = /* @__PURE__ */ S3(zMt, [["render", hHt], ["__scopeId", "data-v-e5b7ccd4"]]), uV = {
95688
+ const OB = /* @__PURE__ */ S3(zMt, [["render", hHt], ["__scopeId", "data-v-116c481b"]]), uV = {
95670
95689
  "NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
95671
95690
  "NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
95672
95691
  "NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",