@abi-software/mapintegratedvuer 0.7.1-demo.0 → 0.7.2-vue3.0-alpha.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 -142
  3. package/assets/gazelle-icons-no-background.css +32 -0
  4. package/assets/styleguide.css +19 -19
  5. package/cypress.config.js +23 -23
  6. package/dist/index.html +17 -17
  7. package/dist/mapintegratedvuer.js +60394 -59859
  8. package/dist/mapintegratedvuer.umd.cjs +515 -907
  9. package/dist/matterport.pdf +0 -0
  10. package/dist/style.css +1 -1
  11. package/dist/test.txt +0 -0
  12. package/package.json +135 -136
  13. package/public/index.html +17 -17
  14. package/public/matterport.pdf +0 -0
  15. package/public/test.txt +0 -0
  16. package/q.json +690 -0
  17. package/reporter-config.json +9 -9
  18. package/src/App.vue +245 -245
  19. package/src/assets/_variables.scss +43 -43
  20. package/src/assets/fonts/mapicon-species.eot +0 -0
  21. package/src/assets/fonts/mapicon-species.ttf +0 -0
  22. package/src/assets/fonts/mapicon-species.woff +0 -0
  23. package/src/assets/header-icon.scss +67 -67
  24. package/src/assets/mapicon-species-style.css +41 -41
  25. package/src/assets/styles.scss +9 -9
  26. package/src/components/ContentBar.vue +376 -376
  27. package/src/components/ContentVuer.vue +217 -217
  28. package/src/components/ContextCard.vue +385 -385
  29. package/src/components/ContextHelp.vue +73 -73
  30. package/src/components/CustomSplitter.vue +151 -151
  31. package/src/components/DatasetHeader.vue +97 -97
  32. package/src/components/DialogToolbarContent.vue +464 -464
  33. package/src/components/EventBus.js +3 -3
  34. package/src/components/FlatmapContextCard.vue +134 -134
  35. package/src/components/MapContent.vue +333 -285
  36. package/src/components/ResizeSensor.vue +47 -47
  37. package/src/components/SearchControls.vue +115 -115
  38. package/src/components/SimulatedData.js +721 -721
  39. package/src/components/SplitDialog.vue +287 -287
  40. package/src/components/SplitFlow.vue +414 -414
  41. package/src/components/index.js +7 -7
  42. package/src/components/markerZoomLevelsHardCoded.js +255 -255
  43. package/src/components/scripts/utilities.js +173 -173
  44. package/src/components/viewers/Flatmap.vue +145 -145
  45. package/src/components/viewers/Iframe.vue +31 -31
  46. package/src/components/viewers/MultiFlatmap.vue +384 -384
  47. package/src/components/viewers/Plot.vue +23 -23
  48. package/src/components/viewers/Scaffold.vue +198 -198
  49. package/src/components/viewers/Simulation.vue +21 -21
  50. package/src/icons/yellowstar.js +1 -1
  51. package/src/main.js +32 -22
  52. package/src/mixins/ContentMixin.js +438 -438
  53. package/src/mixins/DynamicMarkerMixin.js +88 -88
  54. package/src/mixins/RetrieveContextCardMixin.js +82 -0
  55. package/src/mixins/S3Bucket.vue +37 -37
  56. package/src/stores/entries.js +40 -40
  57. package/src/stores/index.js +24 -16
  58. package/src/stores/settings.js +144 -144
  59. package/src/stores/splitFlow.js +523 -523
  60. package/static.json +7 -7
  61. package/tsconfig.json +19 -0
  62. package/vite.config.js +70 -66
  63. package/vite.static-build.js +12 -12
  64. package/vitest.workspace.js +3 -3
  65. package/vuese-generator.js +65 -0
@@ -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>