@abi-software/mapintegratedvuer 1.21.1 → 1.21.2

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.
Files changed (68) hide show
  1. package/README.md +23 -5
  2. package/assets/location-icon.html +33 -1
  3. package/assets/styleguide.css +18 -18
  4. package/cypress.config.js +7 -9
  5. package/dist/{ConnectivityGraph-CZMROk9r.js → ConnectivityGraph-DrSaFEDd.js} +3 -3
  6. package/dist/{ContentMixin-Vn34n5t2.js → ContentMixin-Xg0PjBqG.js} +2 -2
  7. package/dist/{DynamicMarkerMixin-BS6t7w_i.js → DynamicMarkerMixin-D5Ruu_hd.js} +1 -1
  8. package/dist/{Flatmap-BejxA0uz.js → Flatmap-CxN8TbnS.js} +4 -4
  9. package/dist/{Iframe-BWbhTjCR.js → Iframe-CkgbLfJt.js} +4 -4
  10. package/dist/{MultiFlatmap-nlmsH-Ib.js → MultiFlatmap-CkejvAJe.js} +4 -4
  11. package/dist/{Plot-ChbPsDZX.js → Plot-BfwoipSl.js} +2 -2
  12. package/dist/{Scaffold-C6f7c7Ha.js → Scaffold-DCqsTKpg.js} +4 -4
  13. package/dist/{Simulation-DcJScRYo.js → Simulation-BOtU3kTT.js} +2 -2
  14. package/dist/{connectivities-UXTqf7_0.js → connectivities-DyeS8w0c.js} +126 -95
  15. package/dist/index.html +9 -6
  16. package/dist/mapintegratedvuer.js +5489 -5578
  17. package/dist/mapintegratedvuer.umd.cjs +196 -196
  18. package/dist/style.css +1 -1
  19. package/eslint.config.js +39 -15
  20. package/package.json +11 -5
  21. package/public/index.html +9 -6
  22. package/src/App.vue +234 -249
  23. package/src/assets/_variables.scss +12 -10
  24. package/src/assets/header-icon.scss +8 -9
  25. package/src/assets/mapicon-species-style.css +10 -8
  26. package/src/assets/styles.scss +1 -1
  27. package/src/components/ContentBar.vue +98 -106
  28. package/src/components/ContentVuer.vue +36 -39
  29. package/src/components/ContextCard.vue +238 -199
  30. package/src/components/ContextHelp.vue +22 -26
  31. package/src/components/CustomSplitter.vue +32 -43
  32. package/src/components/DatasetHeader.vue +37 -41
  33. package/src/components/DialogToolbarContent.vue +292 -256
  34. package/src/components/FlatmapContextCard.vue +52 -57
  35. package/src/components/MapContent.vue +90 -86
  36. package/src/components/ResizeSensor.vue +8 -13
  37. package/src/components/SearchControls.vue +26 -35
  38. package/src/components/SimulatedData.js +196 -219
  39. package/src/components/SplitDialog.vue +139 -129
  40. package/src/components/SplitFlow.vue +421 -237
  41. package/src/components/index.js +1 -3
  42. package/src/components/scripts/simulation_data.js +393 -397
  43. package/src/components/scripts/utilities.js +108 -78
  44. package/src/components/viewers/CellDLViewer.vue +9 -9
  45. package/src/components/viewers/ConnectivityGraph.vue +9 -12
  46. package/src/components/viewers/Flatmap.vue +23 -25
  47. package/src/components/viewers/Iframe.vue +8 -10
  48. package/src/components/viewers/MultiFlatmap.vue +59 -69
  49. package/src/components/viewers/Plot.vue +6 -7
  50. package/src/components/viewers/Scaffold.vue +73 -63
  51. package/src/components/viewers/Simulation.vue +10 -15
  52. package/src/main.js +16 -21
  53. package/src/mixins/ContentMixin.js +208 -178
  54. package/src/mixins/DynamicMarkerMixin.js +14 -18
  55. package/src/mixins/RetrieveContextCardMixin.js +35 -30
  56. package/src/mixins/S3Bucket.vue +10 -13
  57. package/src/services/knowledgeMapping.js +53 -53
  58. package/src/services/tagging.js +4 -4
  59. package/src/stores/connectivities.js +46 -8
  60. package/src/stores/entries.js +7 -9
  61. package/src/stores/index.js +7 -7
  62. package/src/stores/settings.js +23 -31
  63. package/src/stores/splitFlow.js +364 -298
  64. package/vite.bundle-build.js +24 -26
  65. package/vite.config.js +22 -21
  66. package/vite.static-build.js +4 -4
  67. package/vitest.workspace.js +1 -3
  68. package/vuese-generator.js +47 -55
@@ -1,15 +1,15 @@
1
1
  // Primary colors
2
- $purple: #8300BF;
3
- $darkBlue: #24245B;
2
+ $purple: #8300bf;
3
+ $darkBlue: #24245b;
4
4
  $grey: #303133;
5
5
 
6
6
  // Secondary colors
7
- $lightPurple: #BC00FC;
8
- $blue: #0026FF;
7
+ $lightPurple: #bc00fc;
8
+ $blue: #0026ff;
9
9
 
10
10
  // Status colors
11
11
  $success: #5e9f69;
12
- $warning: #FF8400;
12
+ $warning: #ff8400;
13
13
  $danger: #b51d09;
14
14
 
15
15
  // Text colors
@@ -18,12 +18,12 @@ $mediumGrey: #606266;
18
18
  $lightGrey: #909399;
19
19
 
20
20
  // Line colors
21
- $lineColor1: #DCDFE6;
22
- $lineColor2: #E4E7ED;
21
+ $lineColor1: #dcdfe6;
22
+ $lineColor2: #e4e7ed;
23
23
 
24
24
  // Background colors
25
- $background: #F5F7FA;
26
- $cochlear: #FFFFFF;
25
+ $background: #f5f7fa;
26
+ $cochlear: #ffffff;
27
27
 
28
28
  //Search box colors
29
29
  $darkGrey: #606266;
@@ -33,7 +33,9 @@ $app-secondary-color: $darkBlue !default;
33
33
  $text-color: $grey !default;
34
34
  $input-text: $grey !default;
35
35
 
36
- $system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
36
+ $system-font:
37
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
38
+ 'Helvetica Neue', sans-serif !important;
37
39
  $font-family: 'Asap', sans-serif;
38
40
 
39
41
  // Viewport Sizes
@@ -2,7 +2,7 @@
2
2
  @forward '_variables';
3
3
 
4
4
  .tooltip {
5
- font-family: 'Asap', 'Avenir', Arial, sans-serif;
5
+ font-family: 'Asap', 'Avenir', Arial, sans-serif;
6
6
  :deep(.el-popper__arrow) {
7
7
  &:before {
8
8
  border-color: $app-primary-color;
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .icon-group {
15
- position:absolute;
15
+ position: absolute;
16
16
  display: flex;
17
17
  flex-direction: row;
18
18
  justify-content: center;
@@ -23,7 +23,7 @@
23
23
 
24
24
  .icon-group {
25
25
  :deep(.el-button--text) {
26
- color:#606266;
26
+ color: #606266;
27
27
  font-size: 1.5em;
28
28
  &:hover {
29
29
  color: $app-primary-color;
@@ -32,8 +32,8 @@
32
32
  }
33
33
 
34
34
  .header-icon {
35
- height: 24px!important;
36
- width: 24px!important;
35
+ height: 24px !important;
36
+ width: 24px !important;
37
37
  cursor: pointer;
38
38
  :deep(.el-popper__arrow) {
39
39
  &:before {
@@ -59,17 +59,16 @@
59
59
  .header-icon.disabled,
60
60
  .disabled .view-icon,
61
61
  .disabled .view-text {
62
- opacity:0.5;
62
+ opacity: 0.5;
63
63
  }
64
64
 
65
65
  :deep(.header-popper) {
66
66
  padding: 6px 4px;
67
- font-size:12px;
67
+ font-size: 12px;
68
68
  color: rgb(48, 49, 51);
69
69
  background-color: #f3ecf6;
70
70
  border: 1px solid $app-primary-color;
71
71
  white-space: nowrap;
72
72
  min-width: unset;
73
- width: unset!important;
73
+ width: unset !important;
74
74
  }
75
-
@@ -1,7 +1,8 @@
1
1
  @font-face {
2
2
  font-family: 'mapicon-species';
3
- src: url('fonts/mapicon-species.eot?h40clo');
4
- src: url('fonts/mapicon-species.eot?h40clo#iefix') format('embedded-opentype'),
3
+ src: url('fonts/mapicon-species.eot?h40clo');
4
+ src:
5
+ url('fonts/mapicon-species.eot?h40clo#iefix') format('embedded-opentype'),
5
6
  url('fonts/mapicon-species.ttf?h40clo') format('truetype'),
6
7
  url('fonts/mapicon-species.woff?h40clo') format('woff');
7
8
  font-weight: normal;
@@ -9,7 +10,8 @@
9
10
  font-display: block;
10
11
  }
11
12
 
12
- [class^="mapicon-icon"], [class*=" mapicon-icon"] {
13
+ [class^='mapicon-icon'],
14
+ [class*=' mapicon-icon'] {
13
15
  /* use !important to prevent issues with browser extensions that change fonts */
14
16
  font-family: 'mapicon-species' !important;
15
17
  speak: never;
@@ -25,17 +27,17 @@
25
27
  }
26
28
 
27
29
  .mapicon-icon_cat:before {
28
- content: "\e904";
30
+ content: '\e904';
29
31
  }
30
32
  .mapicon-icon_rat:before {
31
- content: "\e900";
33
+ content: '\e900';
32
34
  }
33
35
  .mapicon-icon_pig:before {
34
- content: "\e901";
36
+ content: '\e901';
35
37
  }
36
38
  .mapicon-icon_mouse:before {
37
- content: "\e902";
39
+ content: '\e902';
38
40
  }
39
41
  .mapicon-icon_human:before {
40
- content: "\e903";
42
+ content: '\e903';
41
43
  }
@@ -4,5 +4,5 @@
4
4
  /* icon font path, required */
5
5
  $--color-primary: $app-primary-color !default;
6
6
  :root {
7
- --el-color-primary: #8300BF;
7
+ --el-color-primary: #8300bf;
8
8
  }
@@ -43,8 +43,7 @@
43
43
  <template #default v-if="contextCardEntry">
44
44
  <flatmap-context-card
45
45
  class="flatmap-context-card"
46
- v-if="(contextCardEntry.type == 'Flatmap' ||
47
- contextCardEntry.type == 'MultiFlatmap')"
46
+ v-if="contextCardEntry.type == 'Flatmap' || contextCardEntry.type == 'MultiFlatmap'"
48
47
  :mapImpProv="contextCardEntry.mapImpProv"
49
48
  />
50
49
  <context-card
@@ -58,11 +57,19 @@
58
57
  </template>
59
58
  <template #reference>
60
59
  <div v-show="contextCardEntry">
61
- <div v-show="contextCardVisible" class="information" @click="contextCardVisible = false">
60
+ <div
61
+ v-show="contextCardVisible"
62
+ class="information"
63
+ @click="contextCardVisible = false"
64
+ >
62
65
  Hide information
63
66
  <el-icon><el-icon-arrow-up /></el-icon>
64
67
  </div>
65
- <div v-show="!contextCardVisible" class="information" @click="contextCardVisible = true">
68
+ <div
69
+ v-show="!contextCardVisible"
70
+ class="information"
71
+ @click="contextCardVisible = true"
72
+ >
66
73
  Show information
67
74
  <el-icon><el-icon-arrow-down /></el-icon>
68
75
  </div>
@@ -70,51 +77,45 @@
70
77
  </template>
71
78
  </el-popover>
72
79
  </div>
73
- <el-popover class="tooltip" content="Close and remove" placement="bottom-end" :show-after="helpDelay"
74
- :teleported=false trigger="hover" popper-class="header-popper" >
80
+ <el-popover
81
+ class="tooltip"
82
+ content="Close and remove"
83
+ placement="bottom-end"
84
+ :show-after="helpDelay"
85
+ :teleported="false"
86
+ trigger="hover"
87
+ popper-class="header-popper"
88
+ >
75
89
  <template #reference>
76
- <map-svg-icon icon="close-no-bk" class="header-icon rightmost"
77
- v-show="(activeView !== 'singlepanel') && ((entry.mode !== 'main') || allClosable )"
78
- @click="closeAndRemove()"/>
79
- </template>
90
+ <map-svg-icon
91
+ icon="close-no-bk"
92
+ class="header-icon rightmost"
93
+ v-show="activeView !== 'singlepanel' && (entry.mode !== 'main' || allClosable)"
94
+ @click="closeAndRemove()"
95
+ />
96
+ </template>
80
97
  </el-popover>
81
98
  </div>
82
99
  </div>
83
100
  </template>
84
101
 
85
102
  <script>
86
- /* eslint-disable no-alert, no-console */
87
103
  import EventBus from './EventBus';
88
104
  import { MapSvgIcon } from '@abi-software/svg-sprite';
89
105
  import { mapStores } from 'pinia';
90
106
  import { useEntriesStore } from '../stores/entries';
91
107
  import { useSettingsStore } from '../stores/settings';
92
108
  import { useSplitFlowStore } from '../stores/splitFlow';
93
- import ContextCard from "./ContextCard.vue";
109
+ import ContextCard from './ContextCard.vue';
94
110
  import FlatmapContextCard from './FlatmapContextCard.vue';
95
- import {
96
- ArrowDown as ElIconArrowDown,
97
- ArrowUp as ElIconArrowUp,
98
- } from '@element-plus/icons-vue'
99
- import {
100
- ElInput as Input,
101
- ElOption as Option,
102
- ElPopover as Popover,
103
- ElRow as Row,
104
- ElSelect as Select,
105
- } from "element-plus";
111
+ import { ArrowDown as ElIconArrowDown, ArrowUp as ElIconArrowUp } from '@element-plus/icons-vue';
106
112
  import tagging from '../services/tagging';
107
113
 
108
114
  export default {
109
- name: "ContentBar",
115
+ name: 'ContentBar',
110
116
  components: {
111
117
  ElIconArrowDown,
112
118
  ElIconArrowUp,
113
- Input,
114
- Option,
115
- Popover,
116
- Row,
117
- Select,
118
119
  ContextCard,
119
120
  FlatmapContextCard,
120
121
  MapSvgIcon,
@@ -122,31 +123,29 @@ export default {
122
123
  props: {
123
124
  entry: Object,
124
125
  },
125
- data: function() {
126
+ data: function () {
126
127
  return {
127
128
  contextCardVisible: false,
128
- slot:{
129
-
130
- },
129
+ slot: {},
131
130
  boundariesElement: null, // this is set @vue:mounted by the parent component via the 'setBoundary' method
132
131
  showDetails: true,
133
132
  contextCardEntry: undefined,
134
- titles: [],
135
- }
133
+ };
136
134
  },
137
135
  computed: {
138
136
  ...mapStores(useEntriesStore, useSettingsStore, useSplitFlowStore),
139
137
  allClosable() {
140
138
  return this.settingsStore.allClosable;
141
139
  },
142
- getSourceTitle: function() {
140
+ getSourceTitle: function () {
143
141
  if (this.entry) {
144
142
  if (this.entry.doi) {
145
- return this.entry.doi.replace("https://doi.org/", "");
143
+ return this.entry.doi.replace('https://doi.org/', '');
146
144
  } else if (this.entry.connectivityInfo) {
147
- return "SCKAN";
145
+ return 'SCKAN';
148
146
  }
149
147
  }
148
+ return '';
150
149
  },
151
150
  hasSourceInfo() {
152
151
  return this.entry.doi || this.entry.connectivityInfo;
@@ -154,7 +153,7 @@ export default {
154
153
  helpDelay() {
155
154
  return this.settingsStore.helpDelay;
156
155
  },
157
- activeView: function() {
156
+ activeView: function () {
158
157
  return this.splitFlowStore.activeView;
159
158
  },
160
159
  envVars: function () {
@@ -167,14 +166,14 @@ export default {
167
166
  ROOT_URL: this.settingsStore.rootUrl,
168
167
  };
169
168
  },
170
- popperOptions: function() {
169
+ popperOptions: function () {
171
170
  return {
172
171
  modifiers: [
173
172
  {
174
173
  name: 'preventOverflow',
175
174
  options: {
176
175
  boundary: this.boundariesElement,
177
- }
176
+ },
178
177
  },
179
178
  {
180
179
  name: 'flip',
@@ -182,52 +181,49 @@ export default {
182
181
  boundary: this.boundariesElement,
183
182
  flipVariations: false,
184
183
  allowedAutoPlacements: ['bottom'],
185
- }
184
+ },
186
185
  },
187
- ]
188
- }
186
+ ],
187
+ };
189
188
  },
190
- entries: function() {
191
- this.titles = [];
189
+ entries: function () {
192
190
  return this.entriesStore.entries.map((entry) => {
193
- const title = this.getEntryTitle(entry);
194
- this.titles.push({
195
- id: entry.id,
196
- title: title,
197
- });
198
191
  return {
199
192
  ...entry,
200
- title: title,
193
+ title: this.getEntryTitle(entry),
201
194
  };
202
195
  });
203
196
  },
197
+ titles: function () {
198
+ return this.entries.map((entry) => ({
199
+ id: entry.id,
200
+ title: entry.title,
201
+ }));
202
+ },
204
203
  },
205
204
  methods: {
206
- closeAndRemove: function() {
207
- this.splitFlowStore.closeSlot({ id: this.entry.id, entries: this.entries});
208
- EventBus.emit("RemoveEntryRequest", this.entry.id);
205
+ closeAndRemove: function () {
206
+ this.splitFlowStore.closeSlot({ id: this.entry.id, entries: this.entries });
207
+ EventBus.emit('RemoveEntryRequest', this.entry.id);
209
208
  this.$nextTick(() => {
210
209
  this.splitFlowStore.updateSplitPanels();
211
210
  });
212
211
  },
213
- getEntryTitle: function(entry) {
212
+ getEntryTitle: function (entry) {
214
213
  if (entry) {
215
- let title = entry.label ? entry.label + " ": '';
214
+ let title = entry.label ? entry.label + ' ' : '';
216
215
  let type = entry.type;
217
- if (type == "Scaffold")
218
- type = "3D Scaffold";
216
+ if (type == 'Scaffold') type = '3D Scaffold';
219
217
  title += type;
220
- if (entry.datasetId)
221
- title += " - " + entry.datasetId + "";
222
- else if (entry.discoverId)
223
- title += " - " + entry.discoverId + "";
218
+ if (entry.datasetId) title += ' - ' + entry.datasetId + '';
219
+ else if (entry.discoverId) title += ' - ' + entry.discoverId + '';
224
220
 
225
221
  return title;
226
222
  }
227
- return "Viewer";
223
+ return 'Viewer';
228
224
  },
229
- getTitle: function(_entry) {
230
- const {id, title} = _entry;
225
+ getTitle: function (_entry) {
226
+ const { id, title } = _entry;
231
227
  const foundTitles = this.titles.filter((t) => t.title === title);
232
228
 
233
229
  if (foundTitles.length > 1) {
@@ -242,7 +238,7 @@ export default {
242
238
  });
243
239
  }
244
240
 
245
- const titleToReturn = titleList.find(t => t.id === id);
241
+ const titleToReturn = titleList.find((t) => t.id === id);
246
242
  if (titleToReturn) {
247
243
  return titleToReturn.title;
248
244
  }
@@ -250,87 +246,85 @@ export default {
250
246
 
251
247
  return title;
252
248
  },
253
- getCharById: function(id) {
249
+ getCharById: function (id) {
254
250
  // starts from char 'A'
255
251
  const character = ' (' + String.fromCharCode(65 + id) + ')';
256
252
  return character;
257
253
  },
258
- openSourceInfo: function() {
254
+ openSourceInfo: function () {
259
255
  if (this.entry.doi) {
260
256
  const returnedAction = {
261
- type: "Search",
262
- term: this.entry.doi.replace("https://doi.org/", ""),
257
+ type: 'Search',
258
+ term: this.entry.doi.replace('https://doi.org/', ''),
263
259
  };
264
- EventBus.emit("PopoverActionClick", returnedAction);
260
+ EventBus.emit('PopoverActionClick', returnedAction);
265
261
  } else if (this.entry.connectivityInfo) {
266
262
  EventBus.emit('connectivity-info-open', [this.entry.connectivityInfo]);
267
263
  }
268
264
  },
269
- viewerChanged: function(value) {
265
+ viewerChanged: function (value) {
270
266
  if (this.entry.id && this.entry.id != value) {
271
267
  this.splitFlowStore.assignOrSwapPaneWithIds({
272
268
  source: this.entry.id,
273
- target: value
269
+ target: value,
274
270
  });
275
271
  this.$nextTick(() => {
276
272
  setTimeout(() => {
277
- this.$emit("chooser-changed");
273
+ this.$emit('chooser-changed');
278
274
  }, 1200);
279
275
  });
280
276
  //this.contextCardVisible = false; // Hide all context cards when switching viewers
281
277
 
282
278
  // GA Tracking
283
- const viewCategory = this.entries.find(entry => entry.id === value);
279
+ const viewCategory = this.entries.find((entry) => entry.id === value);
284
280
  tagging.sendEvent({
285
- 'event': 'interaction_event',
286
- 'event_name': `portal_maps_toolbar_viewer_changed`,
287
- 'category': viewCategory?.title || '',
288
- 'location': 'map_toolbar'
281
+ event: 'interaction_event',
282
+ event_name: `portal_maps_toolbar_viewer_changed`,
283
+ category: viewCategory?.title || '',
284
+ location: 'map_toolbar',
289
285
  });
290
286
  }
291
287
  },
292
288
  // setPopper with is needed as the flatmap context card does not have an image and has smaller with
293
- setPopperWidth: function(slotId) {
294
- let entry = this.entries.find(entry => entry.id === slotId);
289
+ setPopperWidth: function (slotId) {
290
+ let entry = this.entries.find((entry) => entry.id === slotId);
295
291
  if (entry) {
296
- if (entry.type == "Flatmap" || entry.type == "MultiFlatmap") {
297
- return "240px";
292
+ if (entry.type == 'Flatmap' || entry.type == 'MultiFlatmap') {
293
+ return '240px';
298
294
  } else {
299
- return "440px";
295
+ return '440px';
300
296
  }
301
297
  }
302
298
  },
303
299
  // Set the boundaries element for the popper
304
- setBoundary: function(boundaryElement) {
300
+ setBoundary: function (boundaryElement) {
305
301
  this.boundariesElement = boundaryElement;
306
302
  },
307
- setupFlatmapContextCard: function(mapImpProv) {
303
+ setupFlatmapContextCard: function (mapImpProv) {
308
304
  // flatmap context update
309
305
  this.contextCardVisible = false; // hide the context card when new map loads
310
- let contextEntry = Object.assign({mapImpProv: mapImpProv.prov}, this.entry);
306
+ let contextEntry = Object.assign({ mapImpProv: mapImpProv.prov }, this.entry);
311
307
  this.contextCardEntry = contextEntry;
312
308
  },
313
- setupScaffoldContextCard: function(){
309
+ setupScaffoldContextCard: function () {
314
310
  // scaffold context update
315
311
  if (this.entry.contextCardUrl) {
316
- this.contextCardEntry = { ...this.entry};
312
+ this.contextCardEntry = { ...this.entry };
317
313
  }
318
- }
314
+ },
319
315
  },
320
- mounted: function() {
316
+ mounted: function () {
321
317
  this.setupScaffoldContextCard();
322
- }
318
+ },
323
319
  };
324
320
  </script>
325
321
 
326
-
327
322
  <!-- Add "scoped" attribute to limit CSS to this component only -->
328
323
  <style scoped lang="scss">
329
- @use "../assets/header-icon.scss";
330
-
324
+ @use '../assets/header-icon.scss';
331
325
 
332
326
  .toolbar-flex-container {
333
- display:flex;
327
+ display: flex;
334
328
  flex-direction: row;
335
329
  align-items: center;
336
330
  flex-wrap: nowrap;
@@ -416,7 +410,7 @@ export default {
416
410
  -webkit-user-select: none;
417
411
  -ms-user-select: none;
418
412
  user-select: none;
419
- line-height:18px;
413
+ line-height: 18px;
420
414
  }
421
415
  .title {
422
416
  width: 140px;
@@ -433,9 +427,9 @@ export default {
433
427
  }
434
428
 
435
429
  .source-chip {
436
- padding: 4px!important;
430
+ padding: 4px !important;
437
431
  margin-left: 2px;
438
- margin-right:2px;
432
+ margin-right: 2px;
439
433
  background-color: $app-primary-color;
440
434
  border-color: $app-primary-color;
441
435
  color: #fff;
@@ -471,7 +465,6 @@ export default {
471
465
  cursor: pointer;
472
466
  line-height: normal;
473
467
  }
474
-
475
468
  }
476
469
 
477
470
  .viewer_dropdown {
@@ -479,7 +472,7 @@ export default {
479
472
  .el-select-dropdown__item {
480
473
  white-space: nowrap;
481
474
  text-align: left;
482
- &.is-selected {
475
+ &.is-selected {
483
476
  color: $app-primary-color;
484
477
  font-weight: normal;
485
478
  }
@@ -496,7 +489,7 @@ export default {
496
489
 
497
490
  :deep(.header-popper.el-popover.el-popper) {
498
491
  padding: 6px 4px;
499
- font-size:12px;
492
+ font-size: 12px;
500
493
  color: rgb(48, 49, 51);
501
494
  background-color: #f3ecf6;
502
495
  border: 1px solid $app-primary-color;
@@ -513,8 +506,7 @@ export default {
513
506
  :deep(.context-card-popover.el-popover.el-popper) {
514
507
  max-width: calc(100vw - 100px);
515
508
  padding: 0px;
516
- width: unset!important;
517
- background: #fff!important;
509
+ width: unset !important;
510
+ background: #fff !important;
518
511
  }
519
-
520
512
  </style>