@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
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/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "2.4.2",
3
+ "compilerOptions": {
4
+ "lib": ["es5", "es6"],
5
+ "target": "es6",
6
+ "module": "commonjs",
7
+ "moduleResolution": "node",
8
+ "emitDecoratorMetadata": true,
9
+ "experimentalDecorators": true,
10
+ "sourceMap": true,
11
+ "rootDirs": [
12
+ "src",
13
+ "static",
14
+ ]
15
+ },
16
+ "exclude": [
17
+ "node_modules"
18
+ ]
19
+ }
package/vite.config.js CHANGED
@@ -1,66 +1,70 @@
1
- import path from "path";
2
- const pathSrc = path.resolve(__dirname, "./src");
3
- import { defineConfig } from 'vite'
4
- import vue from '@vitejs/plugin-vue'
5
- import Components from 'unplugin-vue-components/vite'
6
- import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
7
-
8
- // https://vitejs.dev/config/
9
- export default defineConfig(({ command, mode }) => {
10
- const config = {
11
- css: {
12
- preprocessorOptions: {
13
- scss: {
14
- additionalData: `@use './src/assets/styles' as *;`
15
- },
16
- },
17
- },
18
- plugins: [
19
- vue(),
20
- Components({
21
- // allow auto load markdown components under `./src/components/`
22
- extensions: ['vue', 'md'],
23
- // allow auto import and register components used in markdown
24
- include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
25
- resolvers: [
26
- ElementPlusResolver({
27
- importStyle: 'sass',
28
- }),
29
- ],
30
- dts: 'src/components.d.ts',
31
- }),
32
-
33
- // https://github.com/antfu/unocss
34
- // see unocss.config.ts for config
35
- ],
36
- build: {
37
- lib: {
38
- entry: path.resolve(__dirname, "./src/components/index.js"),
39
- name: "MapintegratedVuer",
40
- fileName: 'mapintegratedvuer',
41
- },
42
- rollupOptions: {
43
- external: ["vue", "pinia"],
44
- output: {
45
- globals: {
46
- vue: "Vue",
47
- pinia: "pinia"
48
- },
49
- },
50
- },
51
- },
52
- };
53
-
54
- if (command === 'serve') {
55
- config.server = {
56
- port: 8081,
57
- };
58
- config.define = {
59
- 'process.env.HTTP_PROXY': 8081,
60
- global: 'globalThis',
61
- // If you want to exposes all env variables, which is not recommended
62
- // 'process.env': env
63
- };
64
- };
65
- return config;
66
- })
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
+ ]
@@ -0,0 +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
+ }