@abi-software/map-side-bar 2.10.4 → 2.10.5
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/dist/map-side-bar.js +20 -14
- package/dist/map-side-bar.umd.cjs +26 -26
- package/dist/style.css +1 -1
- package/package.json +7 -2
- package/src/App.vue +2 -2
- package/src/acupoints.js +32 -0
- package/src/algolia/utils.js +5 -5
- package/src/components/AcupointsCard.vue +169 -0
- package/src/components/AcupointsInfoSearch.vue +323 -0
- package/src/components/BadgesGroup.vue +1 -1
- package/src/components/ConnectivityExplorer.vue +1 -1
- package/src/components/SearchFilters.vue +1 -1
- package/src/components/SideBar.vue +26 -7
- package/src/components.d.ts +2 -0
package/dist/map-side-bar.js
CHANGED
|
@@ -11139,7 +11139,10 @@ const am = Tk(jo, "$message"), Nn = (e, t) => {
|
|
|
11139
11139
|
e && e.length > 0 && (this.categories[t] = { size: e.length }, this.categories.All.size += e.length);
|
|
11140
11140
|
},
|
|
11141
11141
|
addSimulationsToCategories: function(e) {
|
|
11142
|
-
e && e.length > 0
|
|
11142
|
+
if (e && e.length > 0) {
|
|
11143
|
+
const t = e.length;
|
|
11144
|
+
this.categories.Simulations = { size: t }, this.categories.All.size += t;
|
|
11145
|
+
}
|
|
11143
11146
|
},
|
|
11144
11147
|
categoryClicked: function(e) {
|
|
11145
11148
|
this.active = e, this.$emit("categoryChanged", e);
|
|
@@ -11185,7 +11188,7 @@ function nI(e, t, n, r, o, a) {
|
|
|
11185
11188
|
], 64))), 256))
|
|
11186
11189
|
], 512)) : W("", !0);
|
|
11187
11190
|
}
|
|
11188
|
-
const sm = /* @__PURE__ */ Nn(eI, [["render", nI], ["__scopeId", "data-v-
|
|
11191
|
+
const sm = /* @__PURE__ */ Nn(eI, [["render", nI], ["__scopeId", "data-v-5ab783e1"]]);
|
|
11189
11192
|
function im(e, t) {
|
|
11190
11193
|
return function() {
|
|
11191
11194
|
return e.apply(t, arguments);
|
|
@@ -22322,10 +22325,10 @@ const cd = [
|
|
|
22322
22325
|
facetSubpropPath: "attributes.subject.ageCategory.subcategory.name"
|
|
22323
22326
|
},
|
|
22324
22327
|
{
|
|
22325
|
-
label: "
|
|
22326
|
-
id: "
|
|
22327
|
-
facetPropPath: "
|
|
22328
|
-
facetSubpropPath: "
|
|
22328
|
+
label: "Consortia",
|
|
22329
|
+
id: "supportingAwards.consortium",
|
|
22330
|
+
facetPropPath: "supportingAwards.consortium.name",
|
|
22331
|
+
facetSubpropPath: "supportingAwards.consortium.subcategory.name"
|
|
22329
22332
|
}
|
|
22330
22333
|
];
|
|
22331
22334
|
function Th(e = void 0) {
|
|
@@ -22459,7 +22462,7 @@ const xa = function(e) {
|
|
|
22459
22462
|
},
|
|
22460
22463
|
createChildrenCascaderValue: function(e, t, n) {
|
|
22461
22464
|
e != null && e.length && e.forEach((r, o) => {
|
|
22462
|
-
if (e[o].facetPropPath !== "
|
|
22465
|
+
if (e[o].facetPropPath !== "supportingAwards.consortium.name" && (e[o].label = Oh(
|
|
22463
22466
|
r.label
|
|
22464
22467
|
)), r.key && t.key.includes("flatmap.connectivity.source.")) {
|
|
22465
22468
|
const a = r.key, s = t.key, i = a.replace(`${s}.`, "");
|
|
@@ -23076,7 +23079,7 @@ function n9(e, t, n, r, o, a) {
|
|
|
23076
23079
|
])
|
|
23077
23080
|
]);
|
|
23078
23081
|
}
|
|
23079
|
-
const cl = /* @__PURE__ */ Nn(j6, [["render", n9], ["__scopeId", "data-v-
|
|
23082
|
+
const cl = /* @__PURE__ */ Nn(j6, [["render", n9], ["__scopeId", "data-v-7462cd92"]]);
|
|
23080
23083
|
var r9 = async function(e) {
|
|
23081
23084
|
if (!e.ok) {
|
|
23082
23085
|
let t = await e.json();
|
|
@@ -24350,7 +24353,7 @@ const z9 = {
|
|
|
24350
24353
|
numberPerPageUpdate: function(e) {
|
|
24351
24354
|
this.numberPerPage = e, Fe.emit("trackEvent", {
|
|
24352
24355
|
event_name: "portal_maps_connectivity_perPage",
|
|
24353
|
-
category: e,
|
|
24356
|
+
category: e + "",
|
|
24354
24357
|
location: "map_sidebar_connectivity"
|
|
24355
24358
|
});
|
|
24356
24359
|
const t = this.page === 1;
|
|
@@ -24547,7 +24550,7 @@ function W9(e, t, n, r, o, a) {
|
|
|
24547
24550
|
_: 1
|
|
24548
24551
|
}, 8, ["body-style"]);
|
|
24549
24552
|
}
|
|
24550
|
-
const tb = /* @__PURE__ */ Nn(z9, [["render", W9], ["__scopeId", "data-v-
|
|
24553
|
+
const tb = /* @__PURE__ */ Nn(z9, [["render", W9], ["__scopeId", "data-v-d9061656"]]), G9 = {
|
|
24551
24554
|
name: "AnnotationTool",
|
|
24552
24555
|
components: {
|
|
24553
24556
|
AnnotationPopup: zb,
|
|
@@ -24902,7 +24905,7 @@ const rb = /* @__PURE__ */ Nn(X9, [["render", nB], ["__scopeId", "data-v-744b636
|
|
|
24902
24905
|
*/
|
|
24903
24906
|
getTabRef: function(e, t, n = !1) {
|
|
24904
24907
|
const r = this.tabEntries.filter((s) => (e === void 0 || s.id === e) && (t === void 0 || s.type === t)), o = r.length ? r : this.tabEntries, a = o[0].type + "Tab_" + o[0].id;
|
|
24905
|
-
return n && this.setActiveTab({ id: o[0].id, type: o[0].type }), this.$refs[a][0];
|
|
24908
|
+
return n && this.setActiveTab({ id: o[0].id, type: o[0].type }), !this.$refs[a] || this.$refs[a].length === 0 ? null : this.$refs[a][0];
|
|
24906
24909
|
},
|
|
24907
24910
|
/**
|
|
24908
24911
|
* The function to add filters to sidebar search.
|
|
@@ -24974,8 +24977,11 @@ const rb = /* @__PURE__ */ Nn(X9, [["render", nB], ["__scopeId", "data-v-744b636
|
|
|
24974
24977
|
Fe.emit("close-connectivity");
|
|
24975
24978
|
},
|
|
24976
24979
|
updateState: function() {
|
|
24977
|
-
|
|
24978
|
-
|
|
24980
|
+
this.state.activeTabId = this.activeTabId;
|
|
24981
|
+
const e = this.getTabRef(void 0, "datasetExplorer");
|
|
24982
|
+
e && (this.state.dataset.search = e.getSearch(), this.state.dataset.filters = Yy(e.getFilters()));
|
|
24983
|
+
const t = this.getTabRef(void 0, "connectivityExplorer");
|
|
24984
|
+
t && (this.state.connectivity.search = t.getSearch(), this.state.connectivity.filters = t.getFilters()), this.connectivityEntry && this.connectivityEntry.length > 0 && (this.state.connectivityEntries = this.connectivityEntry.map((n) => n.id)), this.annotationEntry && this.annotationEntry.length > 0 && (this.state.annotationEntries = this.annotationEntry.map((n) => n.models));
|
|
24979
24985
|
},
|
|
24980
24986
|
/**
|
|
24981
24987
|
* This function returns the current state of the sidebar
|
|
@@ -25154,7 +25160,7 @@ function iB(e, t, n, r, o, a) {
|
|
|
25154
25160
|
}, 8, ["modelValue"])
|
|
25155
25161
|
], 512);
|
|
25156
25162
|
}
|
|
25157
|
-
const dB = /* @__PURE__ */ Nn(rB, [["render", iB], ["__scopeId", "data-v-
|
|
25163
|
+
const dB = /* @__PURE__ */ Nn(rB, [["render", iB], ["__scopeId", "data-v-353bb9df"]]);
|
|
25158
25164
|
export {
|
|
25159
25165
|
dB as SideBar
|
|
25160
25166
|
};
|