@abi-software/map-side-bar 2.13.0-acupoint.7 → 2.13.0-acupoint.8

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-side-bar",
3
- "version": "2.13.0-acupoint.7",
3
+ "version": "2.13.0-acupoint.8",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@abi-software/gallery": "1.3.0",
47
- "@abi-software/map-utilities": "1.7.8-beta.3",
47
+ "@abi-software/map-utilities": "1.7.8-beta.4",
48
48
  "@abi-software/svg-sprite": "^1.0.2",
49
49
  "@element-plus/icons-vue": "^2.3.1",
50
50
  "algoliasearch": "^4.10.5",
@@ -200,7 +200,7 @@ export default {
200
200
  },
201
201
  {
202
202
  "key": "acupoints.onMRI.no",
203
- "label": "Not marked",
203
+ "label": "Unmarked",
204
204
  "value": "onMRI>No"
205
205
  },
206
206
  ],
@@ -3,10 +3,12 @@
3
3
  <div class="connectivity-card" ref="card">
4
4
  <div class="seperator-path"></div>
5
5
  <div v-loading="loading" class="card-content" @click="cardClicked(entry)">
6
- <div class="card-title">{{ capitalise(entry.label) }}</div>
6
+ <div class="card-title">
7
+ {{ capitalise(displayTitle) }}
8
+ </div>
7
9
  <template v-for="field in displayFields" :key="field">
8
10
  <div class="card-details" v-if="entry[field]">
9
- <strong>{{ field }}:</strong>
11
+ <strong>{{ field }}: </strong>
10
12
  <div v-if="field === 'nerve-label'" class="card-tags">
11
13
  <div v-for="nerve in entry[field]" :key="nerve.nerve">
12
14
  <el-tag type="primary" size="small">
@@ -48,8 +50,18 @@ export default {
48
50
  type: Array,
49
51
  default: () => [],
50
52
  },
53
+ showLongLabel: {
54
+ type: Boolean,
55
+ default: false,
56
+ },
51
57
  },
52
58
  computed: {
59
+ displayTitle: function () {
60
+ if (this.showLongLabel) {
61
+ return this.entry?.['long-label'] || '';
62
+ }
63
+ return this.entry?.label || '';
64
+ },
53
65
  loading: function () {
54
66
  // for clicking on the flatmap neuron
55
67
  if ("ready" in this.entry) {
@@ -99,10 +111,15 @@ export default {
99
111
  }
100
112
 
101
113
  .card-title {
102
- padding-bottom: 0.75rem;
114
+ margin-bottom: 0.75rem;
103
115
  font-weight: bold;
104
116
  line-height: 1.5;
105
117
  letter-spacing: 1.05px;
118
+ display: -webkit-box;
119
+ -webkit-line-clamp: 5;
120
+ line-clamp: 5;
121
+ -webkit-box-orient: vertical;
122
+ overflow: hidden;
106
123
  }
107
124
 
108
125
  .card-details {
@@ -134,15 +134,18 @@
134
134
  class="connectivity-card"
135
135
  :entry="result"
136
136
  :connectivityEntry="connectivityEntry"
137
+ :showLongLabel="showLongLabel"
137
138
  @open-connectivity="onConnectivityCollapseChange"
138
139
  />
139
140
  <ConnectivityInfo
140
141
  v-if="expanded === result.id"
141
142
  class="connectivity-info"
143
+ :entryData="result"
142
144
  :entryId="result.id"
143
145
  :connectivityEntry="connectivityEntry"
144
146
  :availableAnatomyFacets="availableAnatomyFacets"
145
147
  :envVars="envVars"
148
+ :showLongLabel="showLongLabel"
146
149
  :withCloseButton="true"
147
150
  @show-connectivity="onShowConnectivity"
148
151
  @show-reference-connectivities="onShowReferenceConnectivities"
@@ -241,7 +244,11 @@ export default {
241
244
  showVisibilityFilter: {
242
245
  type: Boolean,
243
246
  default: false,
244
- }
247
+ },
248
+ showLongLabel: {
249
+ type: Boolean,
250
+ default: false,
251
+ },
245
252
  },
246
253
  data: function () {
247
254
  return {