@abi-software/map-side-bar 2.3.1 → 2.4.0-alpha-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.
Files changed (43) hide show
  1. package/.eslintrc.js +12 -12
  2. package/.postcssrc.json +5 -5
  3. package/LICENSE +201 -201
  4. package/README.md +168 -168
  5. package/cypress.config.js +23 -23
  6. package/dist/data/pmr-sample.json +3181 -0
  7. package/dist/map-side-bar.js +15142 -9024
  8. package/dist/map-side-bar.umd.cjs +50 -103
  9. package/dist/style.css +1 -1
  10. package/package.json +77 -77
  11. package/public/data/pmr-sample.json +3181 -0
  12. package/reporter-config.json +9 -9
  13. package/src/App.vue +266 -265
  14. package/src/algolia/algolia.js +255 -242
  15. package/src/algolia/utils.js +100 -100
  16. package/src/assets/_variables.scss +43 -43
  17. package/src/assets/styles.scss +6 -6
  18. package/src/components/BadgesGroup.vue +124 -124
  19. package/src/components/ConnectivityInfo.vue +619 -619
  20. package/src/components/DatasetCard.vue +367 -357
  21. package/src/components/EventBus.js +3 -3
  22. package/src/components/ExternalResourceCard.vue +113 -113
  23. package/src/components/FlatmapDatasetCard.vue +171 -0
  24. package/src/components/ImageGallery.vue +542 -542
  25. package/src/components/PMRDatasetCard.vue +237 -0
  26. package/src/components/SearchFilters.vue +1023 -1006
  27. package/src/components/SearchHistory.vue +175 -175
  28. package/src/components/SideBar.vue +436 -436
  29. package/src/components/SidebarContent.vue +730 -603
  30. package/src/components/Tabs.vue +145 -145
  31. package/src/components/allPaths.js +5928 -0
  32. package/src/components/index.js +8 -8
  33. package/src/components/pmrTest.js +4 -0
  34. package/src/components/species-map.js +8 -8
  35. package/src/components.d.ts +2 -0
  36. package/src/exampleConnectivityInput.js +291 -291
  37. package/src/flatmapQueries/flatmapQueries.js +169 -0
  38. package/src/main.js +9 -9
  39. package/src/mixins/S3Bucket.vue +37 -37
  40. package/src/mixins/mixedPageCalculation.vue +78 -0
  41. package/static.json +6 -6
  42. package/vite.config.js +55 -55
  43. package/vuese-generator.js +65 -65
@@ -1,10 +1,10 @@
1
- {
2
- "reporterEnabled": "mochawesome",
3
- "mochawesomeReporterOptions": {
4
- "reportDir": "cypress/reports/mocha",
5
- "quiet": true,
6
- "overwrite": false,
7
- "html": true,
8
- "json": true
9
- }
1
+ {
2
+ "reporterEnabled": "mochawesome",
3
+ "mochawesomeReporterOptions": {
4
+ "reportDir": "cypress/reports/mocha",
5
+ "quiet": true,
6
+ "overwrite": false,
7
+ "html": true,
8
+ "json": true
9
+ }
10
10
  }
package/src/App.vue CHANGED
@@ -1,265 +1,266 @@
1
- <template>
2
- <div id="app">
3
- <link
4
- rel="stylesheet"
5
- href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap"
6
- />
7
- <div class="options-container">
8
- <div>Click arrow to open sidebar</div>
9
- <el-button @click="openSearch">search Uberon from refs</el-button>
10
- <el-button @click="singleFacets">Add heart to Filter</el-button>
11
- <el-button @click="addStomach">Add stomach to Filter</el-button>
12
- <el-button @click="addInvalidTerm">Add invalid term to Filter</el-button>
13
- <el-button @click="multiFacets">multiple facets</el-button>
14
- <el-button @click="neuronSearch">open neuron search</el-button>
15
- <el-button @click="keywordSearch">keyword search</el-button>
16
- <el-button @click="getFacets">Get facets</el-button>
17
- </div>
18
- <SideBar
19
- :envVars="envVars"
20
- class="side-bar"
21
- ref="sideBar"
22
- :visible="sideBarVisibility"
23
- :tabs="tabs"
24
- :activeTabId="activeId"
25
- :connectivityInfo="connectivityInput"
26
- @tabClicked="tabClicked"
27
- @search-changed="searchChanged($event)"
28
- @hover-changed="hoverChanged($event)"
29
- @actionClick="action"
30
- />
31
- </div>
32
- </template>
33
-
34
- <script>
35
- /* eslint-disable no-alert, no-console */
36
- // optionally import default styles
37
- import SideBar from './components/SideBar.vue'
38
- import EventBus from './components/EventBus.js'
39
- import exampleConnectivityInput from './exampleConnectivityInput.js'
40
-
41
- const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
42
-
43
- // let testContext = {
44
- // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
45
- // "heading": "Digital tracings of enteric plexus",
46
- // "id": "sparc.science.context_data",
47
- // "samples": [
48
- // {
49
- // "annotation": "",
50
- // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
51
- // "doi": "",
52
- // "heading": "Digital tracing for subject M11",
53
- // "id": "Sample 1",
54
- // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
55
- // "view": "View 1"
56
- // },
57
- // {
58
- // "annotation": "",
59
- // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
60
- // "doi": "",
61
- // "heading": "Digital tracing for subject M16",
62
- // "id": "Sample 2",
63
- // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
64
- // "view": "View 2"
65
- // }
66
- // ],
67
- // "version": "0.1.0",
68
- // "views": [
69
- // {
70
- // "annotation": "--",
71
- // "description": "Digital tracing of neurons for subject M11.",
72
- // "id": "View 1",
73
- // "path": "files/derivative/Scaffolds/M11_view.json",
74
- // "sample": "Sample 1",
75
- // "thumbnail": "files/derivative/Scaffolds/M11_thumbnail.jpeg"
76
- // },
77
- // {
78
- // "annotation": "--",
79
- // "description": "Digital tracing of neurons for subject M16.",
80
- // "id": "View 2",
81
- // "path": "files/derivative/Scaffolds/M16_view.json",
82
- // "sample": "Sample 2",
83
- // "thumbnail": "files/derivative/Scaffolds/M16_thumbnail.jpeg"
84
- // }
85
- // ]
86
- // }
87
- export default {
88
- name: 'app',
89
- components: {
90
- SideBar,
91
- },
92
- computed: {
93
- tabs: function () {
94
- let temp = [...this.tabArray]
95
- for (let i in this.tabArray) {
96
- temp[i].contextCard = this.contextArray[i]
97
- }
98
- return temp
99
- },
100
- },
101
- data: function () {
102
- return {
103
- contextArray: [null, null],
104
- tabArray: [{ title: 'Flatmap', id: 1, type: 'search'}, { title: 'Connectivity', id: 2, type: 'connectivity' }],
105
- sideBarVisibility: true,
106
- envVars: {
107
- API_LOCATION: import.meta.env.VITE_APP_API_LOCATION,
108
- ALGOLIA_KEY: import.meta.env.VITE_APP_ALGOLIA_KEY,
109
- ALGOLIA_ID: import.meta.env.VITE_APP_ALGOLIA_ID,
110
- ALGOLIA_INDEX: import.meta.env.VITE_APP_ALGOLIA_INDEX,
111
- PENNSIEVE_API_LOCATION: import.meta.env.VITE_APP_PENNSIEVE_API_LOCATION,
112
- BL_SERVER_URL: import.meta.env.VITE_APP_BL_SERVER_URL,
113
- NL_LINK_PREFIX: import.meta.env.VITE_APP_NL_LINK_PREFIX,
114
- ROOT_URL: import.meta.env.VITE_APP_ROOT_URL,
115
- },
116
- connectivityInput: exampleConnectivityInput,
117
- activeId: 1,
118
- }
119
- },
120
- methods: {
121
- hoverChanged: function (data) {
122
- console.log('hoverChanged', data)
123
- },
124
- searchChanged: function (data) {
125
- console.log(data)
126
- },
127
- tabClicked: function (tab) {
128
- this.activeId = tab.id
129
- },
130
- // For connectivity input actions
131
- action: function (action) {
132
- console.log('action fired: ', action)
133
- let facets = [];
134
- facets.push(
135
- ...action.labels.map(val => ({
136
- facet: capitalise(val),
137
- term: "Anatomical structure",
138
- facetPropPath: "anatomy.organ.category.name",
139
- }))
140
- );
141
- if (this.$refs.sideBar) {
142
- console.log('openSearch', facets)
143
- this.$refs.sideBar.openSearch(facets, "");
144
- }
145
- },
146
- openSearch: function () {
147
- this.$refs.sideBar.openSearch(
148
- [],
149
- 'http://purl.obolibrary.org/obo/UBERON_0001103'
150
- )
151
- },
152
- singleFacets: function () {
153
- this.$refs.sideBar.addFilter({
154
- facet: 'Cardiovascular system',
155
- facet2: 'Heart',
156
- term: 'Anatomical structure',
157
- facetPropPath: 'anatomy.organ.category.name',
158
- AND: true,
159
- })
160
- },
161
- addStomach: function () {
162
- this.$refs.sideBar.addFilter({
163
- facet: 'Stomach',
164
- term: 'Anatomical structure',
165
- facetPropPath: 'anatomy.organ.category.name',
166
- AND: true,
167
- })
168
- },
169
- addInvalidTerm: function () {
170
- this.$refs.sideBar.addFilter({
171
- facet: 'Invalid',
172
- term: 'Anatomical structure',
173
- facetPropPath: 'anatomy.organ.name',
174
- AND: true,
175
- })
176
- },
177
- multiFacets: function () {
178
- this.$refs.sideBar.openSearch(
179
- [
180
- {
181
- facet: 'Male',
182
- term: 'Sex',
183
- facetPropPath: 'attributes.subject.sex.value',
184
- },
185
- {
186
- facet: 'Cardiovascular system',
187
- facet2: 'Heart',
188
- term: 'Anatomical structure',
189
- facetPropPath: 'anatomy.organ.category.name',
190
- AND: true,
191
- },
192
- {
193
- facet: 'Not correct',
194
- term: 'Anatomical structure',
195
- facetPropPath: 'anatomy.organ.name',
196
- },
197
- ],
198
- ''
199
- )
200
- },
201
- keywordSearch: function () {
202
- this.$refs.sideBar.addFilter({
203
- type: 'Facet',
204
- label: undefined,
205
- facet: '3d model',
206
- facetPropPath: 'item.keywords.keyword',
207
- term: 'Keywords',
208
- AND: true,
209
- })
210
- },
211
- markerFromFlatmap: function () {
212
- this.$refs.sideBar.openSearch([
213
- {
214
- facet: 'http://purl.obolibrary.org/obo/UBERON_0001103',
215
- term: 'Keywords',
216
- facetPropPath: 'item.keywords.keyword',
217
- },
218
- ])
219
- },
220
- neuronSearch: function () {
221
- this.$refs.sideBar.openNeuronSearch('ilxtr:neuron-type-keast-10')
222
- },
223
- getFacets: async function () {
224
- let facets = await this.$refs.sideBar.getAlgoliaFacets()
225
- console.log('Algolia facets:', facets)
226
- },
227
- },
228
- mounted: function () {
229
- console.log('mounted app')
230
- EventBus.on('contextUpdate', (payLoad) => {
231
- console.log('contextUpdate', payLoad)
232
- });
233
- EventBus.on('datalink-clicked', (payLoad) => {
234
- console.log('datalink-clicked', payLoad)
235
- });
236
- },
237
- }
238
- </script>
239
-
240
- <style lang="scss">
241
- #app {
242
- height: 100%;
243
- width: 100%;
244
- position: absolute;
245
- font-family: 'Asap', sans-serif;
246
- }
247
- body {
248
- margin: 0px;
249
- }
250
- .map-icon {
251
- color: $app-primary-color;
252
- }
253
- .options-container {
254
- position: absolute;
255
- top: 0;
256
- left: 0;
257
- width: calc(100% - 600px);
258
- padding: 1rem;
259
- display: flex;
260
- flex-direction: row;
261
- flex-wrap: wrap;
262
- align-items: center;
263
- gap: 0.5rem;
264
- }
265
- </style>
1
+ <template>
2
+ <div id="app">
3
+ <link
4
+ rel="stylesheet"
5
+ href="https://fonts.googleapis.com/css?family=Asap:400,400i,500,600,700&display=swap"
6
+ />
7
+ <div class="options-container">
8
+ <div>Click arrow to open sidebar</div>
9
+ <el-button @click="openSearch">search Uberon from refs</el-button>
10
+ <el-button @click="singleFacets">Add heart to Filter</el-button>
11
+ <el-button @click="addStomach">Add stomach to Filter</el-button>
12
+ <el-button @click="addInvalidTerm">Add invalid term to Filter</el-button>
13
+ <el-button @click="multiFacets">multiple facets</el-button>
14
+ <el-button @click="neuronSearch">open neuron search</el-button>
15
+ <el-button @click="keywordSearch">keyword search</el-button>
16
+ <el-button @click="getFacets">Get facets</el-button>
17
+ </div>
18
+ <SideBar
19
+ :envVars="envVars"
20
+ class="side-bar"
21
+ ref="sideBar"
22
+ :visible="sideBarVisibility"
23
+ :tabs="tabs"
24
+ :activeTabId="activeId"
25
+ :connectivityInfo="connectivityInput"
26
+ @tabClicked="tabClicked"
27
+ @search-changed="searchChanged($event)"
28
+ @hover-changed="hoverChanged($event)"
29
+ @actionClick="action"
30
+ />
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ /* eslint-disable no-alert, no-console */
36
+ // optionally import default styles
37
+ import SideBar from './components/SideBar.vue'
38
+ import EventBus from './components/EventBus.js'
39
+ import exampleConnectivityInput from './exampleConnectivityInput.js'
40
+
41
+ const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
42
+
43
+ // let testContext = {
44
+ // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
45
+ // "heading": "Digital tracings of enteric plexus",
46
+ // "id": "sparc.science.context_data",
47
+ // "samples": [
48
+ // {
49
+ // "annotation": "",
50
+ // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
51
+ // "doi": "",
52
+ // "heading": "Digital tracing for subject M11",
53
+ // "id": "Sample 1",
54
+ // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
55
+ // "view": "View 1"
56
+ // },
57
+ // {
58
+ // "annotation": "",
59
+ // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
60
+ // "doi": "",
61
+ // "heading": "Digital tracing for subject M16",
62
+ // "id": "Sample 2",
63
+ // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
64
+ // "view": "View 2"
65
+ // }
66
+ // ],
67
+ // "version": "0.1.0",
68
+ // "views": [
69
+ // {
70
+ // "annotation": "--",
71
+ // "description": "Digital tracing of neurons for subject M11.",
72
+ // "id": "View 1",
73
+ // "path": "files/derivative/Scaffolds/M11_view.json",
74
+ // "sample": "Sample 1",
75
+ // "thumbnail": "files/derivative/Scaffolds/M11_thumbnail.jpeg"
76
+ // },
77
+ // {
78
+ // "annotation": "--",
79
+ // "description": "Digital tracing of neurons for subject M16.",
80
+ // "id": "View 2",
81
+ // "path": "files/derivative/Scaffolds/M16_view.json",
82
+ // "sample": "Sample 2",
83
+ // "thumbnail": "files/derivative/Scaffolds/M16_thumbnail.jpeg"
84
+ // }
85
+ // ]
86
+ // }
87
+ export default {
88
+ name: 'app',
89
+ components: {
90
+ SideBar,
91
+ },
92
+ computed: {
93
+ tabs: function () {
94
+ let temp = [...this.tabArray]
95
+ for (let i in this.tabArray) {
96
+ temp[i].contextCard = this.contextArray[i]
97
+ }
98
+ return temp
99
+ },
100
+ },
101
+ data: function () {
102
+ return {
103
+ contextArray: [null, null],
104
+ tabArray: [{ title: 'Flatmap', id: 1, type: 'search'}, { title: 'Connectivity', id: 2, type: 'connectivity' }],
105
+ sideBarVisibility: true,
106
+ envVars: {
107
+ API_LOCATION: import.meta.env.VITE_APP_API_LOCATION,
108
+ ALGOLIA_KEY: import.meta.env.VITE_APP_ALGOLIA_KEY,
109
+ ALGOLIA_ID: import.meta.env.VITE_APP_ALGOLIA_ID,
110
+ ALGOLIA_INDEX: import.meta.env.VITE_APP_ALGOLIA_INDEX,
111
+ PENNSIEVE_API_LOCATION: import.meta.env.VITE_APP_PENNSIEVE_API_LOCATION,
112
+ BL_SERVER_URL: import.meta.env.VITE_APP_BL_SERVER_URL,
113
+ NL_LINK_PREFIX: import.meta.env.VITE_APP_NL_LINK_PREFIX,
114
+ ROOT_URL: import.meta.env.VITE_APP_ROOT_URL,
115
+ FLATMAP_API_LOCATION: import.meta.env.VITE_APP_FLATMAP_API_LOCATION,
116
+ },
117
+ connectivityInput: exampleConnectivityInput,
118
+ activeId: 1,
119
+ }
120
+ },
121
+ methods: {
122
+ hoverChanged: function (data) {
123
+ // console.log('hoverChanged', data)
124
+ },
125
+ searchChanged: function (data) {
126
+ console.log(data)
127
+ },
128
+ tabClicked: function (tab) {
129
+ this.activeId = tab.id
130
+ },
131
+ // For connectivity input actions
132
+ action: function (action) {
133
+ console.log('action fired: ', action)
134
+ let facets = [];
135
+ facets.push(
136
+ ...action.labels.map(val => ({
137
+ facet: capitalise(val),
138
+ term: "Anatomical structure",
139
+ facetPropPath: "anatomy.organ.category.name",
140
+ }))
141
+ );
142
+ if (this.$refs.sideBar) {
143
+ console.log('openSearch', facets)
144
+ this.$refs.sideBar.openSearch(facets, "");
145
+ }
146
+ },
147
+ openSearch: function () {
148
+ this.$refs.sideBar.openSearch(
149
+ [],
150
+ 'http://purl.obolibrary.org/obo/UBERON_0001103'
151
+ )
152
+ },
153
+ singleFacets: function () {
154
+ this.$refs.sideBar.addFilter({
155
+ facet: 'Cardiovascular system',
156
+ facet2: 'Heart',
157
+ term: 'Anatomical structure',
158
+ facetPropPath: 'anatomy.organ.category.name',
159
+ AND: true,
160
+ })
161
+ },
162
+ addStomach: function () {
163
+ this.$refs.sideBar.addFilter({
164
+ facet: 'Stomach',
165
+ term: 'Anatomical structure',
166
+ facetPropPath: 'anatomy.organ.category.name',
167
+ AND: true,
168
+ })
169
+ },
170
+ addInvalidTerm: function () {
171
+ this.$refs.sideBar.addFilter({
172
+ facet: 'Invalid',
173
+ term: 'Anatomical structure',
174
+ facetPropPath: 'anatomy.organ.name',
175
+ AND: true,
176
+ })
177
+ },
178
+ multiFacets: function () {
179
+ this.$refs.sideBar.openSearch(
180
+ [
181
+ {
182
+ facet: 'Male',
183
+ term: 'Sex',
184
+ facetPropPath: 'attributes.subject.sex.value',
185
+ },
186
+ {
187
+ facet: 'Cardiovascular system',
188
+ facet2: 'Heart',
189
+ term: 'Anatomical structure',
190
+ facetPropPath: 'anatomy.organ.category.name',
191
+ AND: true,
192
+ },
193
+ {
194
+ facet: 'Not correct',
195
+ term: 'Anatomical structure',
196
+ facetPropPath: 'anatomy.organ.name',
197
+ },
198
+ ],
199
+ ''
200
+ )
201
+ },
202
+ keywordSearch: function () {
203
+ this.$refs.sideBar.addFilter({
204
+ type: 'Facet',
205
+ label: undefined,
206
+ facet: '3d model',
207
+ facetPropPath: 'item.keywords.keyword',
208
+ term: 'Keywords',
209
+ AND: true,
210
+ })
211
+ },
212
+ markerFromFlatmap: function () {
213
+ this.$refs.sideBar.openSearch([
214
+ {
215
+ facet: 'http://purl.obolibrary.org/obo/UBERON_0001103',
216
+ term: 'Keywords',
217
+ facetPropPath: 'item.keywords.keyword',
218
+ },
219
+ ])
220
+ },
221
+ neuronSearch: function () {
222
+ this.$refs.sideBar.openNeuronSearch('ilxtr:neuron-type-keast-10')
223
+ },
224
+ getFacets: async function () {
225
+ let facets = await this.$refs.sideBar.getAlgoliaFacets()
226
+ console.log('Algolia facets:', facets)
227
+ },
228
+ },
229
+ mounted: function () {
230
+ console.log('mounted app')
231
+ EventBus.on('contextUpdate', (payLoad) => {
232
+ console.log('contextUpdate', payLoad)
233
+ });
234
+ EventBus.on('datalink-clicked', (payLoad) => {
235
+ console.log('datalink-clicked', payLoad)
236
+ });
237
+ },
238
+ }
239
+ </script>
240
+
241
+ <style lang="scss">
242
+ #app {
243
+ height: 100%;
244
+ width: 100%;
245
+ position: absolute;
246
+ font-family: 'Asap', sans-serif;
247
+ }
248
+ body {
249
+ margin: 0px;
250
+ }
251
+ .map-icon {
252
+ color: $app-primary-color;
253
+ }
254
+ .options-container {
255
+ position: absolute;
256
+ top: 0;
257
+ left: 0;
258
+ width: calc(100% - 600px);
259
+ padding: 1rem;
260
+ display: flex;
261
+ flex-direction: row;
262
+ flex-wrap: wrap;
263
+ align-items: center;
264
+ gap: 0.5rem;
265
+ }
266
+ </style>