@abi-software/scaffoldvuer 1.9.0 → 1.9.1-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "1.9.0",
3
+ "version": "1.9.1-beta.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -337,7 +337,7 @@
337
337
  class="settings-group"
338
338
  :class="{ open: drawerOpen, close: !drawerOpen }"
339
339
  >
340
- <el-row>
340
+ <el-row v-if="showOpenMapButton">
341
341
  <el-popover
342
342
  :visible="hoverVisibilities[3].value"
343
343
  content="Open new map"
@@ -360,7 +360,7 @@
360
360
  </template>
361
361
  </el-popover>
362
362
  </el-row>
363
- <el-row>
363
+ <el-row v-if="showLocalSettings">
364
364
  <el-popover
365
365
  :visible="hoverVisibilities[4].value"
366
366
  content="Change background color"
@@ -706,6 +706,21 @@ export default {
706
706
  type: String,
707
707
  default: "https://mapcore-demo.org/current/flatmap/v3/"
708
708
  },
709
+ /**
710
+ * The option to show local settings UI
711
+ * (background colour, viewing mode, etc.)
712
+ */
713
+ showLocalSettings: {
714
+ type: Boolean,
715
+ default: true,
716
+ },
717
+ /**
718
+ * The option to show open new map button
719
+ */
720
+ showOpenMapButton: {
721
+ type: Boolean,
722
+ default: true,
723
+ },
709
724
  },
710
725
  provide() {
711
726
  return {
@@ -1,36 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import rootConfig from './vite.config.js'
3
- import { nodePolyfills } from 'vite-plugin-node-polyfills'
4
- import vue from '@vitejs/plugin-vue'
5
-
6
- // defineWorkspace provides a nice type hinting DX
7
- export default defineConfig((configEnv) => {
8
- const config = rootConfig(configEnv);
9
- config.css.extract = false
10
- config.plugins.push(
11
- nodePolyfills({
12
- // To add only specific polyfills, add them here. If no option is passed, adds all polyfills
13
- include: ['path']
14
- })
15
- );
16
- // config.plugins.push(
17
- // cssInjectedByJsPlugin()
18
- // );
19
- config.plugins[0] = vue({
20
- template: {
21
- compilerOptions: {
22
- isCustomElement: (tag) => tag.includes('scaffoldvuer-wc')
23
- }
24
- }
25
- }),
26
- config.build = {
27
- lib: {
28
- entry: './src/ScaffoldVuer-wc.js',
29
- name: 'scaffoldvuer-wc',
30
- // the proper extensions will be added
31
- fileName: 'scaffoldvuer-wc'
32
- },
33
- }
34
-
35
- return config;
36
- })