@abi-software/mapintegratedvuer 0.7.2-vue3.0-alpha.0 → 1.0.0

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 (65) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +150 -150
  3. package/assets/styleguide.css +19 -19
  4. package/cypress.config.js +23 -23
  5. package/dist/index.html +17 -17
  6. package/dist/mapintegratedvuer.js +74203 -73758
  7. package/dist/mapintegratedvuer.umd.cjs +878 -515
  8. package/dist/style.css +1 -1
  9. package/package.json +134 -135
  10. package/public/index.html +17 -17
  11. package/reporter-config.json +9 -9
  12. package/src/App.vue +245 -245
  13. package/src/assets/_variables.scss +43 -43
  14. package/src/assets/fonts/mapicon-species.eot +0 -0
  15. package/src/assets/fonts/mapicon-species.ttf +0 -0
  16. package/src/assets/fonts/mapicon-species.woff +0 -0
  17. package/src/assets/header-icon.scss +67 -67
  18. package/src/assets/mapicon-species-style.css +41 -41
  19. package/src/assets/styles.scss +9 -9
  20. package/src/components/ContentBar.vue +376 -376
  21. package/src/components/ContentVuer.vue +217 -217
  22. package/src/components/ContextCard.vue +385 -385
  23. package/src/components/ContextHelp.vue +73 -73
  24. package/src/components/CustomSplitter.vue +151 -151
  25. package/src/components/DatasetHeader.vue +97 -97
  26. package/src/components/DialogToolbarContent.vue +464 -464
  27. package/src/components/EventBus.js +3 -3
  28. package/src/components/FlatmapContextCard.vue +134 -134
  29. package/src/components/MapContent.vue +328 -333
  30. package/src/components/ResizeSensor.vue +47 -47
  31. package/src/components/SearchControls.vue +115 -115
  32. package/src/components/SimulatedData.js +721 -721
  33. package/src/components/SplitDialog.vue +287 -287
  34. package/src/components/SplitFlow.vue +414 -414
  35. package/src/components/index.js +7 -7
  36. package/src/components/markerZoomLevelsHardCoded.js +255 -255
  37. package/src/components/scripts/utilities.js +173 -173
  38. package/src/components/viewers/Flatmap.vue +145 -145
  39. package/src/components/viewers/Iframe.vue +31 -31
  40. package/src/components/viewers/MultiFlatmap.vue +384 -384
  41. package/src/components/viewers/Plot.vue +23 -23
  42. package/src/components/viewers/Scaffold.vue +198 -198
  43. package/src/components/viewers/Simulation.vue +21 -21
  44. package/src/icons/yellowstar.js +1 -1
  45. package/src/main.js +31 -31
  46. package/src/mixins/ContentMixin.js +438 -438
  47. package/src/mixins/DynamicMarkerMixin.js +88 -88
  48. package/src/mixins/S3Bucket.vue +37 -37
  49. package/src/stores/entries.js +40 -40
  50. package/src/stores/index.js +23 -23
  51. package/src/stores/settings.js +144 -144
  52. package/src/stores/splitFlow.js +523 -523
  53. package/static.json +7 -7
  54. package/vite.config.js +70 -70
  55. package/vite.static-build.js +12 -12
  56. package/vitest.workspace.js +3 -3
  57. package/vuese-generator.js +65 -65
  58. package/assets/gazelle-icons-no-background.css +0 -32
  59. package/dist/matterport.pdf +0 -0
  60. package/dist/test.txt +0 -0
  61. package/public/matterport.pdf +0 -0
  62. package/public/test.txt +0 -0
  63. package/q.json +0 -690
  64. package/src/mixins/RetrieveContextCardMixin.js +0 -82
  65. package/tsconfig.json +0 -19
@@ -1,3 +1,3 @@
1
- import mitt from 'mitt';
2
- const EventBus = new mitt();
3
- export default EventBus;
1
+ import mitt from 'mitt';
2
+ const EventBus = new mitt();
3
+ export default EventBus;
@@ -1,134 +1,134 @@
1
- <template>
2
- <div v-loading="loading" class="flatmap-context-card" >
3
- <div class="card-right scrollbar">
4
- <div class="title">Flatmap Provenance</div>
5
- SCKAN version: <a :href="sckanReleaseLink" target="_blank"> {{sckanReleaseDisplay}} </a>
6
- <br>
7
- Published on:
8
- {{flatmapPublishedDisplay}}
9
- <br>
10
- View publication <a :href="flatmapSource" target="_blank">here</a>
11
- <br/>
12
- </div>
13
- </div>
14
- </template>
15
-
16
-
17
- <script>
18
- /* eslint-disable no-alert, no-console */
19
- import {
20
- ElLoading as Loading
21
- } from "element-plus";
22
-
23
- export default {
24
- name: "FlatmapContextCard",
25
- components: {
26
- Loading,
27
- },
28
- props: {
29
- /**
30
- * Object containing information for
31
- * the required viewing. Can be retrieved from a flatmap
32
- */
33
- mapImpProv: Object,
34
- },
35
- data: function () {
36
- return {
37
- contextData: {},
38
- showDetails: true,
39
- showContextCard: true,
40
- sampleDetails: {},
41
- loading: false
42
- };
43
- },
44
- computed: {
45
- flatmapPublishedDisplay: function() {
46
- let flatmapPublished = "Unknown"
47
- if(this.mapImpProv){
48
- flatmapPublished = new Date(this.mapImpProv.created).toLocaleDateString('en-US', {
49
- day: '2-digit',
50
- month: 'long',
51
- year: 'numeric',
52
- })
53
- }
54
- return flatmapPublished
55
- },
56
- sckanReleaseDisplay: function() {
57
- let sckanRelease = "Unknown"
58
- if(this.mapImpProv){
59
- let sckanCreated = this.mapImpProv.sckan.created ? this.mapImpProv.sckan.created : this.mapImpProv.sckan
60
- let isoTime = sckanCreated.replace(',', '.') // Date time does not accept commas but Sckan uses them
61
- sckanRelease = new Date(isoTime).toLocaleDateString('en-US', {
62
- day: '2-digit',
63
- month: 'long',
64
- year: 'numeric',
65
- })
66
- }
67
- return sckanRelease
68
- },
69
- sckanReleaseLink: function() {
70
- let sckanRelease = "Unknown"
71
- if(this.mapImpProv){
72
- sckanRelease = this.mapImpProv.sckan.release
73
- }
74
- return sckanRelease
75
- },
76
- flatmapSource: function() {
77
- let flatmapSource = "Unknown"
78
- if(this.mapImpProv){
79
- flatmapSource = this.mapImpProv.source
80
- }
81
- return flatmapSource
82
- },
83
- },
84
- };
85
- </script>
86
-
87
- <!-- Add "scoped" attribute to limit CSS to this component only -->
88
- <style scoped lang="scss">
89
-
90
-
91
- .flatmap-context-card{
92
- background-color: white;
93
- max-height: 10 50px;
94
- font-size: 12px;
95
- position: relative;
96
- display: flex;
97
- width: 100%;
98
- max-height: 258px;
99
- }
100
-
101
- .card-right {
102
- flex: 1.3;
103
- padding-left: 6px;
104
- // overflow-y: scroll;
105
- scrollbar-width: thin;
106
- }
107
-
108
- .cursor-pointer {
109
- cursor: pointer;
110
- }
111
-
112
- .title{
113
- font-weight: bold;
114
- }
115
-
116
-
117
- .scrollbar::-webkit-scrollbar-track {
118
- border-radius: 10px;
119
- background-color: #f5f5f5;
120
- }
121
-
122
- .scrollbar::-webkit-scrollbar {
123
- width: 12px;
124
- right: -12px;
125
- background-color: #f5f5f5;
126
- }
127
-
128
- .scrollbar::-webkit-scrollbar-thumb {
129
- border-radius: 4px;
130
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
131
- background-color: #979797;
132
- }
133
-
134
- </style>
1
+ <template>
2
+ <div v-loading="loading" class="flatmap-context-card" >
3
+ <div class="card-right scrollbar">
4
+ <div class="title">Flatmap Provenance</div>
5
+ SCKAN version: <a :href="sckanReleaseLink" target="_blank"> {{sckanReleaseDisplay}} </a>
6
+ <br>
7
+ Published on:
8
+ {{flatmapPublishedDisplay}}
9
+ <br>
10
+ View publication <a :href="flatmapSource" target="_blank">here</a>
11
+ <br/>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+
17
+ <script>
18
+ /* eslint-disable no-alert, no-console */
19
+ import {
20
+ ElLoading as Loading
21
+ } from "element-plus";
22
+
23
+ export default {
24
+ name: "FlatmapContextCard",
25
+ components: {
26
+ Loading,
27
+ },
28
+ props: {
29
+ /**
30
+ * Object containing information for
31
+ * the required viewing. Can be retrieved from a flatmap
32
+ */
33
+ mapImpProv: Object,
34
+ },
35
+ data: function () {
36
+ return {
37
+ contextData: {},
38
+ showDetails: true,
39
+ showContextCard: true,
40
+ sampleDetails: {},
41
+ loading: false
42
+ };
43
+ },
44
+ computed: {
45
+ flatmapPublishedDisplay: function() {
46
+ let flatmapPublished = "Unknown"
47
+ if(this.mapImpProv){
48
+ flatmapPublished = new Date(this.mapImpProv.created).toLocaleDateString('en-US', {
49
+ day: '2-digit',
50
+ month: 'long',
51
+ year: 'numeric',
52
+ })
53
+ }
54
+ return flatmapPublished
55
+ },
56
+ sckanReleaseDisplay: function() {
57
+ let sckanRelease = "Unknown"
58
+ if(this.mapImpProv){
59
+ let sckanCreated = this.mapImpProv.sckan.created ? this.mapImpProv.sckan.created : this.mapImpProv.sckan
60
+ let isoTime = sckanCreated.replace(',', '.') // Date time does not accept commas but Sckan uses them
61
+ sckanRelease = new Date(isoTime).toLocaleDateString('en-US', {
62
+ day: '2-digit',
63
+ month: 'long',
64
+ year: 'numeric',
65
+ })
66
+ }
67
+ return sckanRelease
68
+ },
69
+ sckanReleaseLink: function() {
70
+ let sckanRelease = "Unknown"
71
+ if(this.mapImpProv){
72
+ sckanRelease = this.mapImpProv.sckan.release
73
+ }
74
+ return sckanRelease
75
+ },
76
+ flatmapSource: function() {
77
+ let flatmapSource = "Unknown"
78
+ if(this.mapImpProv){
79
+ flatmapSource = this.mapImpProv.source
80
+ }
81
+ return flatmapSource
82
+ },
83
+ },
84
+ };
85
+ </script>
86
+
87
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
88
+ <style scoped lang="scss">
89
+
90
+
91
+ .flatmap-context-card{
92
+ background-color: white;
93
+ max-height: 10 50px;
94
+ font-size: 12px;
95
+ position: relative;
96
+ display: flex;
97
+ width: 100%;
98
+ max-height: 258px;
99
+ }
100
+
101
+ .card-right {
102
+ flex: 1.3;
103
+ padding-left: 6px;
104
+ // overflow-y: scroll;
105
+ scrollbar-width: thin;
106
+ }
107
+
108
+ .cursor-pointer {
109
+ cursor: pointer;
110
+ }
111
+
112
+ .title{
113
+ font-weight: bold;
114
+ }
115
+
116
+
117
+ .scrollbar::-webkit-scrollbar-track {
118
+ border-radius: 10px;
119
+ background-color: #f5f5f5;
120
+ }
121
+
122
+ .scrollbar::-webkit-scrollbar {
123
+ width: 12px;
124
+ right: -12px;
125
+ background-color: #f5f5f5;
126
+ }
127
+
128
+ .scrollbar::-webkit-scrollbar-thumb {
129
+ border-radius: 4px;
130
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
131
+ background-color: #979797;
132
+ }
133
+
134
+ </style>