@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
package/static.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "root": "dist",
3
- "clean_urls": true,
4
- "routes": {
5
- "/**": "index.html"
6
- }
7
- }
1
+ {
2
+ "root": "dist",
3
+ "clean_urls": true,
4
+ "routes": {
5
+ "/**": "index.html"
6
+ }
7
+ }
package/vite.config.js CHANGED
@@ -1,70 +1,70 @@
1
- import path from "path";
2
- import { defineConfig } from 'vite'
3
- import vue from '@vitejs/plugin-vue'
4
- import Components from 'unplugin-vue-components/vite'
5
- import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
6
-
7
- // https://vitejs.dev/config/
8
- export default defineConfig(({ command, mode }) => {
9
- const config = {
10
- css: {
11
- preprocessorOptions: {
12
- scss: {
13
- additionalData: `@use './src/assets/styles' as *;`
14
- },
15
- },
16
- },
17
- plugins: [
18
- vue(),
19
- Components({
20
- // allow auto load markdown components under `./src/components/`
21
- extensions: ['vue', 'md'],
22
- // allow auto import and register components used in markdown
23
- include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
24
- resolvers: [
25
- ElementPlusResolver({
26
- importStyle: 'sass',
27
- }),
28
- ],
29
- dts: 'src/components.d.ts',
30
- }),
31
-
32
- // https://github.com/antfu/unocss
33
- // see unocss.config.ts for config
34
- ],
35
- build: {
36
- lib: {
37
- entry: path.resolve(__dirname, "./src/components/index.js"),
38
- name: "MapintegratedVuer",
39
- fileName: 'mapintegratedvuer',
40
- },
41
- rollupOptions: {
42
- external: ["vue", "pinia"],
43
- output: {
44
- globals: {
45
- vue: "Vue",
46
- pinia: "pinia"
47
- },
48
- },
49
- },
50
- },
51
- // for cypress component test
52
- // to prevent reloading after optimized dependencies changed
53
- optimizeDeps: {
54
- exclude: ['vue-router'],
55
- },
56
- };
57
-
58
- if (command === 'serve') {
59
- config.server = {
60
- port: 8081,
61
- };
62
- config.define = {
63
- 'process.env.HTTP_PROXY': 8081,
64
- global: 'globalThis',
65
- // If you want to exposes all env variables, which is not recommended
66
- // 'process.env': env
67
- };
68
- };
69
- return config;
70
- })
1
+ import path from "path";
2
+ import { defineConfig } from 'vite'
3
+ import vue from '@vitejs/plugin-vue'
4
+ import Components from 'unplugin-vue-components/vite'
5
+ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
6
+
7
+ // https://vitejs.dev/config/
8
+ export default defineConfig(({ command, mode }) => {
9
+ const config = {
10
+ css: {
11
+ preprocessorOptions: {
12
+ scss: {
13
+ additionalData: `@use './src/assets/styles' as *;`
14
+ },
15
+ },
16
+ },
17
+ plugins: [
18
+ vue(),
19
+ Components({
20
+ // allow auto load markdown components under `./src/components/`
21
+ extensions: ['vue', 'md'],
22
+ // allow auto import and register components used in markdown
23
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
24
+ resolvers: [
25
+ ElementPlusResolver({
26
+ importStyle: 'sass',
27
+ }),
28
+ ],
29
+ dts: 'src/components.d.ts',
30
+ }),
31
+
32
+ // https://github.com/antfu/unocss
33
+ // see unocss.config.ts for config
34
+ ],
35
+ build: {
36
+ lib: {
37
+ entry: path.resolve(__dirname, "./src/components/index.js"),
38
+ name: "MapintegratedVuer",
39
+ fileName: 'mapintegratedvuer',
40
+ },
41
+ rollupOptions: {
42
+ external: ["vue", "pinia"],
43
+ output: {
44
+ globals: {
45
+ vue: "Vue",
46
+ pinia: "pinia"
47
+ },
48
+ },
49
+ },
50
+ },
51
+ // for cypress component test
52
+ // to prevent reloading after optimized dependencies changed
53
+ optimizeDeps: {
54
+ exclude: ['vue-router'],
55
+ },
56
+ };
57
+
58
+ if (command === 'serve') {
59
+ config.server = {
60
+ port: 8081,
61
+ };
62
+ config.define = {
63
+ 'process.env.HTTP_PROXY': 8081,
64
+ global: 'globalThis',
65
+ // If you want to exposes all env variables, which is not recommended
66
+ // 'process.env': env
67
+ };
68
+ };
69
+ return config;
70
+ })
@@ -1,12 +1,12 @@
1
- import { defineConfig } from 'vite'
2
- import rootConfig from './vite.config.js'
3
-
4
- // defineWorkspace provides a nice type hinting DX
5
- export default defineConfig((configEnv) => {
6
- const config = rootConfig(configEnv);
7
- config.build = {
8
- outDir: "test-html"
9
- };
10
-
11
- return config;
12
- })
1
+ import { defineConfig } from 'vite'
2
+ import rootConfig from './vite.config.js'
3
+
4
+ // defineWorkspace provides a nice type hinting DX
5
+ export default defineConfig((configEnv) => {
6
+ const config = rootConfig(configEnv);
7
+ config.build = {
8
+ outDir: "test-html"
9
+ };
10
+
11
+ return config;
12
+ })
@@ -1,3 +1,3 @@
1
- export default [
2
- 'test/vitest.config.js'
3
- ]
1
+ export default [
2
+ 'test/vitest.config.js'
3
+ ]
@@ -1,65 +1,65 @@
1
- /**
2
- * Vuese Generator
3
- *
4
- * To generate markdown files from Vue components
5
- * To watch components changes for Vitepress on Dev Mode
6
- */
7
-
8
- import fs from 'fs'
9
- import path from 'path'
10
- import chokidar from 'chokidar'
11
- import { parser } from '@vuese/parser'
12
- import { Render } from '@vuese/markdown-render'
13
-
14
- const watchMode = process.argv.find((argv) => argv === 'watch')
15
-
16
- const componentsDir = 'src/components'
17
- const components = ['MapContent.vue']
18
- const outputDir = 'docs/components'
19
-
20
- function generateMarkdown(file) {
21
- const fileWithPath = `${componentsDir}/${file}`
22
- const fileContent = fs.readFileSync(fileWithPath, 'utf-8')
23
-
24
- try {
25
- const parserResult = parser(fileContent)
26
- const r = new Render(parserResult)
27
- const renderResult = r.render()
28
- const markdownResult = r.renderMarkdown()
29
- const markdownContent = markdownResult.content
30
- const componentName = path.basename(fileWithPath, '.vue')
31
-
32
- if (!fs.existsSync(outputDir)) {
33
- fs.mkdirSync(outputDir)
34
- }
35
-
36
- fs.writeFile(`${outputDir}/${componentName}.md`, markdownContent, (err) => {
37
- if (err) {
38
- console.error(`Error writing markdown file for ${componentName}`, err)
39
- } else {
40
- console.log(`Markdown file for ${componentName} is generated!`)
41
- }
42
- })
43
- } catch(e) {
44
- console.error(e)
45
- }
46
- }
47
-
48
- // To generate markdown files - one time
49
- components.forEach((component) => {
50
- console.log(`Write markdown file for ${component} on first load.`)
51
- generateMarkdown(component)
52
- })
53
-
54
- // To watch component changes and generate markdown files
55
- if (watchMode) {
56
- const watcher = chokidar.watch(components, {
57
- cwd: componentsDir,
58
- ignoreInitial: true,
59
- })
60
-
61
- watcher.on('change', (file) => {
62
- console.log(`The component ${file} has changed!`)
63
- generateMarkdown(file)
64
- })
65
- }
1
+ /**
2
+ * Vuese Generator
3
+ *
4
+ * To generate markdown files from Vue components
5
+ * To watch components changes for Vitepress on Dev Mode
6
+ */
7
+
8
+ import fs from 'fs'
9
+ import path from 'path'
10
+ import chokidar from 'chokidar'
11
+ import { parser } from '@vuese/parser'
12
+ import { Render } from '@vuese/markdown-render'
13
+
14
+ const watchMode = process.argv.find((argv) => argv === 'watch')
15
+
16
+ const componentsDir = 'src/components'
17
+ const components = ['MapContent.vue']
18
+ const outputDir = 'docs/components'
19
+
20
+ function generateMarkdown(file) {
21
+ const fileWithPath = `${componentsDir}/${file}`
22
+ const fileContent = fs.readFileSync(fileWithPath, 'utf-8')
23
+
24
+ try {
25
+ const parserResult = parser(fileContent)
26
+ const r = new Render(parserResult)
27
+ const renderResult = r.render()
28
+ const markdownResult = r.renderMarkdown()
29
+ const markdownContent = markdownResult.content
30
+ const componentName = path.basename(fileWithPath, '.vue')
31
+
32
+ if (!fs.existsSync(outputDir)) {
33
+ fs.mkdirSync(outputDir)
34
+ }
35
+
36
+ fs.writeFile(`${outputDir}/${componentName}.md`, markdownContent, (err) => {
37
+ if (err) {
38
+ console.error(`Error writing markdown file for ${componentName}`, err)
39
+ } else {
40
+ console.log(`Markdown file for ${componentName} is generated!`)
41
+ }
42
+ })
43
+ } catch(e) {
44
+ console.error(e)
45
+ }
46
+ }
47
+
48
+ // To generate markdown files - one time
49
+ components.forEach((component) => {
50
+ console.log(`Write markdown file for ${component} on first load.`)
51
+ generateMarkdown(component)
52
+ })
53
+
54
+ // To watch component changes and generate markdown files
55
+ if (watchMode) {
56
+ const watcher = chokidar.watch(components, {
57
+ cwd: componentsDir,
58
+ ignoreInitial: true,
59
+ })
60
+
61
+ watcher.on('change', (file) => {
62
+ console.log(`The component ${file} has changed!`)
63
+ generateMarkdown(file)
64
+ })
65
+ }
@@ -1,32 +0,0 @@
1
- /* Generated by Glyphter (http://www.glyphter.com) on Mon Jan 11 2021*/
2
- @font-face {
3
- font-family: 'gazelle icons no background';
4
- src: url('fonts/gazelle-icons-no-background.eot');
5
- src: url('fonts/gazelle-icons-no-background.eot?#iefix') format('embedded-opentype'),
6
- url('fonts/gazelle-icons-no-background.woff') format('woff'),
7
- url('fonts/gazelle-icons-no-background.ttf') format('truetype'),
8
- url('fonts/gazelle-icons-no-background.svg#gazelle-icons-no-background') format('svg');
9
- font-weight: normal;
10
- font-style: normal;
11
- }
12
- [class*='icon-']:before{
13
- display: inline-block;
14
- font-family: 'gazelle icons no background';
15
- font-style: normal;
16
- font-weight: normal;
17
- line-height: 1;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale
20
- }
21
- .icon-tooltips:before{content:'\0041';}
22
- .icon-undock:before{content:'\0042';}
23
- .icon-zoomIn:before{content:'\0043';}
24
- .icon-zoomOut:before{content:'\0044';}
25
- .icon-changeBckgd:before{content:'\0045';}
26
- .icon-close:before{content:'\0046';}
27
- .icon-closeFullScreen:before{content:'\0047';}
28
- .icon-dock:before{content:'\0048';}
29
- .icon-fullScreen:before{content:'\0049';}
30
- .icon-pause:before{content:'\004a';}
31
- .icon-play:before{content:'\004b';}
32
- .icon-resetZoom:before{content:'\004c';}
Binary file
package/dist/test.txt DELETED
File without changes
Binary file
package/public/test.txt DELETED
File without changes