@abi-software/scaffoldvuer 0.4.0-vue3.3 → 0.4.0-vue3.6

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": "0.4.0-vue3.3",
3
+ "version": "0.4.0-vue3.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,9 +9,7 @@
9
9
  "scripts": {
10
10
  "serve": "vite --host --force",
11
11
  "build-bundle": "vite build",
12
- "lint": "vue-cli-service lint --ext .js,.vue src",
13
- "build:bundle": "vue-cli-service build --target lib --name scaffoldvuer ./src/components/index.js",
14
- "build:wc": "vue-cli-service build --target lib --name scaffoldvuer-wc ./src/ScaffoldVuer-wc.js --mode wc --env bundle --no-clean",
12
+ "build-static": "vite build -c vite.static-build.js",
15
13
  "styleguide": "vue-cli-service styleguidist",
16
14
  "styleguide:build": "vue-cli-service styleguidist:build",
17
15
  "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
package/src/App.vue CHANGED
@@ -135,7 +135,7 @@
135
135
  </template>
136
136
  </el-popover>
137
137
  <el-autocomplete v-model="searchText" class="search-box" placeholder="Search" :fetch-suggestions="fetchSuggestions"
138
- :teleported="false" popper-class="autocomplete-popper" @keyup.enter.native="search(searchText)"
138
+ :teleported="false" popper-class="autocomplete-popper" @keyup.enter="search(searchText)"
139
139
  @select="search(searchText)">
140
140
  <template #default="{ item }">
141
141
  <div class="value">
@@ -2,25 +2,9 @@
2
2
  <div
3
3
  v-show="material || isTextureSlides"
4
4
  class="primitive-controls"
5
+ :class="{ open: drawerOpen, close: !drawerOpen }"
5
6
  >
6
- <el-drawer
7
- :class="{
8
- 'my-drawer': true,
9
- }"
10
- v-model="drawerOpen"
11
- :append-to-body="false"
12
- size="300"
13
- :with-header="false"
14
- :wrapper-closable="false"
15
- :modal="false"
16
- >
17
- <div
18
- v-if="drawerOpen"
19
- class="tab-button close"
20
- @click="toggleDrawer"
21
- >
22
- <el-icon><el-icon-arrow-right/></el-icon>
23
- </div>
7
+ <div class="my-drawer" :class="{ open: drawerOpen, close: !drawerOpen }">
24
8
  <opacity-controls
25
9
  :material="material"
26
10
  :zincObject="zincObject"
@@ -29,13 +13,13 @@
29
13
  v-show="isTextureSlides"
30
14
  class="controls"
31
15
  ref="tSlidesControls" />
32
- </el-drawer>
16
+ </div>
33
17
  <div
34
- v-if="!drawerOpen"
35
- class="tab-button open"
18
+ class="drawer-button"
19
+ :class="{ open: drawerOpen, close: !drawerOpen }"
36
20
  @click="toggleDrawer"
37
21
  >
38
- <el-icon><el-icon-arrow-left class="el-icon-arrow-left"/></el-icon>
22
+ <el-icon><el-icon-arrow-right /></el-icon>
39
23
  </div>
40
24
  </div>
41
25
  </template>
@@ -45,11 +29,9 @@
45
29
  import { ref, shallowRef } from 'vue';
46
30
  import {
47
31
  ArrowRight as ElIconArrowRight,
48
- ArrowLeft as ElIconArrowLeft,
49
32
  } from '@element-plus/icons-vue'
50
33
  import OpacityControls from "./OpacityControls.vue";
51
34
  import TextureSlidesControls from "./TextureSlidesControls.vue";
52
- import { ElDrawer as Drawer } from "element-plus";
53
35
 
54
36
  /**
55
37
  * A component to control the opacity of the target object.
@@ -57,7 +39,6 @@ import { ElDrawer as Drawer } from "element-plus";
57
39
  export default {
58
40
  name: "PrimitiveControls",
59
41
  components: {
60
- Drawer,
61
42
  OpacityControls,
62
43
  TextureSlidesControls,
63
44
  },
@@ -95,62 +76,63 @@ export default {
95
76
  <!-- Add "scoped" attribute to limit CSS to this component only -->
96
77
  <style scoped lang="scss">
97
78
  .primitive-controls {
98
- text-align: left;
99
- width:350px;
79
+ position: absolute;
80
+ bottom: 30%;
100
81
  pointer-events:none;
101
- }
102
-
103
- .display {
104
- width: 44px;
105
- }
82
+ transition: all 1s ease;
106
83
 
107
- .icon {
108
- right: 17px;
109
- position: absolute;
110
- top: 10px;
111
- }
112
- :deep(.my-drawer) {
113
- background: rgba(0, 0, 0, 0);
114
- box-shadow: none;
115
- right: 0px;
116
- top: 60%;
117
- position: absolute;
118
- width:unset!important;
119
- .el-drawer__body {
120
- padding: 0px;
84
+ &.open {
85
+ right: 0px;
86
+ .my-drawer {
87
+ opacity: 1;
88
+ }
89
+ }
90
+ &.close {
91
+ right: -220px;
92
+ .my-drawer {
93
+ pointer-events: none;
94
+ opacity: 0;
95
+ }
121
96
  }
122
97
  }
98
+ .my-drawer {
99
+ transition: all 1s ease;
100
+ float: right;
101
+ max-height: 150px;
102
+ text-align: left;
103
+ border: 1px solid rgb(220, 223, 230);
104
+ background: #ffffff;
105
+ width:220px;
106
+ }
123
107
 
124
- .tab-button {
108
+ .drawer-button {
109
+ float: right;
125
110
  width: 20px;
126
111
  height: 40px;
127
112
  z-index: 8;
128
- right: 0px;
129
-
130
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
131
- border: solid 1px #e4e7ed;
132
- background-color: #FFFFFF;
113
+ border: solid 1px $app-primary-color;
114
+ background-color: #f9f2fc;
133
115
  text-align: center;
134
116
  vertical-align: middle;
135
117
  cursor: pointer;
136
118
  pointer-events: auto;
137
- //transition: bottom 0.3s;
138
-
139
- &.close {
140
- float: left;
141
- flex: 1;
142
- border-right: 0;
143
- }
144
-
145
- &.open {
146
- position: absolute;
147
- top:60%;
148
- }
119
+ margin-top: 25px;
149
120
 
150
121
  i {
122
+ font-weight: 600;
151
123
  margin-top: 12px;
152
124
  color: $app-primary-color;
153
- transform: scaleY(2.5);
125
+ transition-delay: 0.9s;
126
+ }
127
+ &.open {
128
+ i {
129
+ transform: rotate(0deg) scaleY(2.5);
130
+ }
131
+ }
132
+ &.close {
133
+ i {
134
+ transform: rotate(180deg) scaleY(2.5);
135
+ }
154
136
  }
155
137
  }
156
138
 
@@ -154,6 +154,7 @@ export default {
154
154
 
155
155
  .tooltip-text {
156
156
  text-align: center;
157
+ color: $app-primary-color;
157
158
  }
158
159
 
159
160
  :deep(.non-selectable) {
@@ -111,13 +111,13 @@
111
111
  v-if="isPlaying"
112
112
  icon="pause"
113
113
  class="icon-button video-button"
114
- @click.native="play(false)"
114
+ @click="play(false)"
115
115
  />
116
116
  <map-svg-icon
117
117
  v-else
118
118
  icon="play"
119
119
  class="video-button icon-button"
120
- @click.native="play(true)"
120
+ @click="play(true)"
121
121
  />
122
122
  <el-slider
123
123
  :min="0"
@@ -183,9 +183,9 @@
183
183
  <map-svg-icon
184
184
  icon="zoomIn"
185
185
  class="icon-button zoomIn"
186
- @click.native="zoomIn()"
187
- @mouseover.native="showHelpText(0)"
188
- @mouseout.native="hideHelpText(0)"
186
+ @click="zoomIn()"
187
+ @mouseover="showHelpText(0)"
188
+ @mouseout="hideHelpText(0)"
189
189
  />
190
190
  </template>
191
191
  </el-popover>
@@ -201,9 +201,9 @@
201
201
  <map-svg-icon
202
202
  icon="zoomOut"
203
203
  class="icon-button zoomOut"
204
- @click.native="zoomOut()"
205
- @mouseover.native="showHelpText(1)"
206
- @mouseout.native="hideHelpText(1)"
204
+ @click="zoomOut()"
205
+ @mouseover="showHelpText(1)"
206
+ @mouseout="hideHelpText(1)"
207
207
  />
208
208
  </template>
209
209
  </el-popover>
@@ -223,9 +223,9 @@
223
223
  <map-svg-icon
224
224
  icon="fitWindow"
225
225
  class="icon-button fitWindow"
226
- @click.native="fitWindow()"
227
- @mouseover.native="showHelpText(2)"
228
- @mouseout.native="hideHelpText(2)"
226
+ @click="fitWindow()"
227
+ @mouseover="showHelpText(2)"
228
+ @mouseout="hideHelpText(2)"
229
229
  />
230
230
  </template>
231
231
  </el-popover>
@@ -313,8 +313,8 @@
313
313
  ref="openMapRef"
314
314
  icon="openMap"
315
315
  class="icon-button open-map-button"
316
- @mouseover.native="showHelpText(8)"
317
- @mouseout.native="hideHelpText(8)"
316
+ @mouseover="showHelpText(8)"
317
+ @mouseout="hideHelpText(8)"
318
318
  />
319
319
  </template>
320
320
  </el-popover>
@@ -333,8 +333,8 @@
333
333
  ref="backgroundIconRef"
334
334
  icon="changeBckgd"
335
335
  class="icon-button"
336
- @mouseover.native="showHelpText(3)"
337
- @mouseout.native="hideHelpText(3)"
336
+ @mouseover="showHelpText(3)"
337
+ @mouseout="hideHelpText(3)"
338
338
  />
339
339
  </template>
340
340
  </el-popover>
@@ -1822,7 +1822,6 @@ export default {
1822
1822
  border: 1px solid $app-primary-color;
1823
1823
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
1824
1824
  min-width: 188px;
1825
-
1826
1825
  .el-row ~ .el-row {
1827
1826
  margin-top: 8px;
1828
1827
  }
@@ -2019,34 +2018,7 @@ export default {
2019
2018
  background-color: var(--white);
2020
2019
  font-weight: 500;
2021
2020
  color: rgb(48, 49, 51);
2022
- width:60px;
2023
- :deep(.el-select__wrapper) {
2024
- padding: 0px;
2025
- min-height: 26px;
2026
- color: rgb(48, 49, 51);
2027
- }
2028
- &.viewing-mode {
2029
- :deep(.el-select__wrapper) {
2030
- line-height:30px
2031
- }
2032
- }
2033
-
2034
- :deep()
2035
- .el-select__selected-item {
2036
- color: $app-primary-color;
2037
- height: 22px;
2038
- border: none;
2039
- font-family: "Asap", sans-serif;
2040
- line-height: 22px;
2041
- &is-focus, &:focus {
2042
- border: 1px solid $app-primary-color;
2043
- }
2044
- }
2045
-
2046
- :deep(.el-input),
2047
- :deep(.el-input__icon) {
2048
- line-height: 22px;
2049
- }
2021
+ width: 150px!important;
2050
2022
  }
2051
2023
 
2052
2024
  :deep(.scaffold_viewer_dropdown) {
@@ -51,7 +51,7 @@
51
51
  </el-col>
52
52
  </el-row>
53
53
  </el-main>
54
- <el-footer height="30px" class="add-slides-text" @click.native="addNewSlide">
54
+ <el-footer height="30px" class="add-slides-text" @click="addNewSlide">
55
55
  <el-row>
56
56
  <el-col :span="2">
57
57
  <i class="el-icon-plus" />
@@ -11,7 +11,6 @@ declare module 'vue' {
11
11
  ElCol: typeof import('element-plus/es')['ElCol']
12
12
  ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
13
13
  ElContainer: typeof import('element-plus/es')['ElContainer']
14
- ElDrawer: typeof import('element-plus/es')['ElDrawer']
15
14
  ElFooter: typeof import('element-plus/es')['ElFooter']
16
15
  ElHeader: typeof import('element-plus/es')['ElHeader']
17
16
  ElIcon: typeof import('element-plus/es')['ElIcon']
@@ -58,7 +58,7 @@ const findObjectWithUUID = (objects, uuid, remove) => {
58
58
  if (index > -1) {
59
59
  object = objects[index];
60
60
  if (remove) {
61
- objects.splice(i, 1);
61
+ objects.splice(index, 1);
62
62
  }
63
63
  }
64
64
  return object;
package/vite.config.js CHANGED
@@ -40,10 +40,12 @@ export default defineConfig(({ command, mode }) => {
40
40
  fileName: 'scaffoldvuer',
41
41
  },
42
42
  rollupOptions: {
43
- external: ["vue"],
43
+ external: ["vue", "@abi-software/flatmapvuer", "@abi-software/svg-sprite"],
44
44
  output: {
45
45
  globals: {
46
46
  vue: "Vue",
47
+ "@abi-software/flatmapvuer": "@abi-software/flatmapvuer",
48
+ "@abi-software/svg-sprite": "@abi-software/svg-sprite"
47
49
  },
48
50
  },
49
51
  },
@@ -0,0 +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
+ })
package/vue.config.js DELETED
@@ -1,41 +0,0 @@
1
-
2
- const nodeExternals = require('webpack-node-externals');
3
-
4
- module.exports = {
5
- configureWebpack: config => {
6
- if(process.env.NODE_ENV === 'production') {
7
- config.externals = [ nodeExternals({allowlist: [/^element-ui/]}) ];
8
- }
9
- },
10
- chainWebpack: config => {
11
- // GraphQL Loader
12
- config.module
13
- .rule('shader')
14
- .test(/\.(vs|fs)$/i)
15
- .use('raw-loader')
16
- .loader('raw-loader')
17
- .end()
18
- const fontsRule = config.module.rule('fonts')
19
- fontsRule.uses.clear()
20
- config.module
21
- .rule('fonts')
22
- .test(/\.(ttf|otf|eot|woff|woff2)$/)
23
- .use('base64-inline-loader')
24
- .loader('base64-inline-loader')
25
- .tap(options => {
26
- // modify the options...
27
- return options
28
- })
29
- .end()
30
- },
31
- css: {
32
- sourceMap: process.env.NODE_ENV === 'wc',
33
- extract: process.env.NODE_ENV !== 'wc',
34
- //Import variables into all stylesheets.
35
- loaderOptions: {
36
- sass: {
37
- prependData: `@import '@/assets/styles';`
38
- }
39
- }
40
- }
41
- }