@abi-software/gallery 0.3.2 → 0.3.4-beta.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.
- package/CHANGELOG.md +79 -0
- package/dist/gallery.common.js +1077 -5710
- package/dist/gallery.common.js.map +1 -1
- package/dist/gallery.css +1 -1
- package/dist/gallery.umd.js +1077 -5710
- package/dist/gallery.umd.js.map +1 -1
- package/dist/gallery.umd.min.js +1 -1
- package/dist/gallery.umd.min.js.map +1 -1
- package/package-lock.json +16795 -0
- package/package.json +23 -9
- package/src/assets/_variables.scss +43 -0
- package/src/assets/styles.scss +7 -0
- package/src/components/Card.vue +21 -15
- package/src/components/Gallery.vue +2 -2
- package/src/components/IndexIndicator.vue +2 -2
- package/vue.config.js +8 -0
- package/.browserslistrc +0 -3
- package/.prettierrc +0 -6
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/tests/unit/example.spec.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4-beta.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist/*",
|
|
6
|
+
"src/*",
|
|
7
|
+
"*.json",
|
|
8
|
+
"*.js"
|
|
9
|
+
],
|
|
4
10
|
"repository": {
|
|
5
11
|
"type": "git",
|
|
6
12
|
"url": "https://github.com/ABI-Software/mapcore-gallery.git"
|
|
@@ -13,7 +19,12 @@
|
|
|
13
19
|
"build": "vue-cli-service build",
|
|
14
20
|
"test:unit": "vue-cli-service test:unit",
|
|
15
21
|
"build-bundle": "vue-cli-service build --target lib --name gallery src/main-bundle.js --skip-plugins @vue/cli-plugin-eslint",
|
|
16
|
-
"lint": "vue-cli-service lint"
|
|
22
|
+
"lint": "vue-cli-service lint",
|
|
23
|
+
"release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
|
|
24
|
+
"release:minor": "npm version minor; npm publish",
|
|
25
|
+
"release:patch": "npm version patch; npm publish",
|
|
26
|
+
"changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
|
|
27
|
+
"version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
|
|
17
28
|
},
|
|
18
29
|
"main": "dist/gallery.common.js",
|
|
19
30
|
"dependencies": {
|
|
@@ -21,24 +32,27 @@
|
|
|
21
32
|
"axios": "^0.26.1",
|
|
22
33
|
"babel-plugin-component": "^1.1.1",
|
|
23
34
|
"base64-inline-loader": "^2.0.1",
|
|
24
|
-
"core-js": "^3.
|
|
35
|
+
"core-js": "^3.30.1",
|
|
25
36
|
"element-ui": "^2.15.0",
|
|
26
|
-
"vue": "^2.6.
|
|
37
|
+
"vue": "^2.6.10"
|
|
27
38
|
},
|
|
28
39
|
"devDependencies": {
|
|
29
|
-
"@vue/cli-plugin-babel": "^4.5.
|
|
30
|
-
"@vue/cli-plugin-eslint": "^
|
|
31
|
-
"@vue/cli-plugin-unit-jest": "^4.5.
|
|
32
|
-
"@vue/cli-service": "^4.5.
|
|
40
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
41
|
+
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
42
|
+
"@vue/cli-plugin-unit-jest": "^4.5.19",
|
|
43
|
+
"@vue/cli-service": "^4.5.19",
|
|
33
44
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
34
45
|
"@vue/test-utils": "^1.1.2",
|
|
46
|
+
"auto-changelog": "^2.4.0",
|
|
35
47
|
"babel-eslint": "^10.1.0",
|
|
36
48
|
"eslint": "^6.0.0",
|
|
37
49
|
"eslint-config-prettier": "^6.15.0",
|
|
38
50
|
"eslint-plugin-prettier": "^3.3.1",
|
|
39
51
|
"eslint-plugin-vue": "^6.2.2",
|
|
52
|
+
"node-sass": "^4.14.1",
|
|
40
53
|
"prettier": "^2.2.1",
|
|
54
|
+
"sass-loader": "^8.0.2",
|
|
41
55
|
"vue-svg-inline-loader": "^2.1.3",
|
|
42
|
-
"vue-template-compiler": "^2.6.
|
|
56
|
+
"vue-template-compiler": "^2.6.10"
|
|
43
57
|
}
|
|
44
58
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Primary colors
|
|
2
|
+
$purple: #8300BF;
|
|
3
|
+
$darkBlue: #24245B;
|
|
4
|
+
$grey: #303133;
|
|
5
|
+
|
|
6
|
+
// Secondary colors
|
|
7
|
+
$lightPurple: #BC00FC;
|
|
8
|
+
$blue: #0026FF;
|
|
9
|
+
|
|
10
|
+
// Status colors
|
|
11
|
+
$success: #5e9f69;
|
|
12
|
+
$warning: #FF8400;
|
|
13
|
+
$danger: #b51d09;
|
|
14
|
+
|
|
15
|
+
// Text colors
|
|
16
|
+
$neutralGrey: #616161;
|
|
17
|
+
$mediumGrey: #606266;
|
|
18
|
+
$lightGrey: #909399;
|
|
19
|
+
|
|
20
|
+
// Line colors
|
|
21
|
+
$lineColor1: #DCDFE6;
|
|
22
|
+
$lineColor2: #E4E7ED;
|
|
23
|
+
|
|
24
|
+
// Background colors
|
|
25
|
+
$background: #F5F7FA;
|
|
26
|
+
$cochlear: #FFFFFF;
|
|
27
|
+
|
|
28
|
+
//Search box colors
|
|
29
|
+
$darkGrey: #606266;
|
|
30
|
+
|
|
31
|
+
$app-primary-color: $purple;
|
|
32
|
+
$app-secondary-color: $darkBlue;
|
|
33
|
+
$text-color: $grey;
|
|
34
|
+
$input-text: $grey;
|
|
35
|
+
|
|
36
|
+
$system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
|
|
37
|
+
$font-family: 'Asap', sans-serif;
|
|
38
|
+
|
|
39
|
+
// Viewport Sizes
|
|
40
|
+
$viewport-sm: 20rem;
|
|
41
|
+
$viewport-md: 47rem;
|
|
42
|
+
$viewport-lg: 64rem;
|
|
43
|
+
$viewport-xlg: 120rem;
|
package/src/components/Card.vue
CHANGED
|
@@ -162,6 +162,13 @@ export default {
|
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
},
|
|
165
|
+
updated: function () {
|
|
166
|
+
if (!this.tooltipCalculated) {
|
|
167
|
+
this.$nextTick(() => {
|
|
168
|
+
this.calculateShowTooltip()
|
|
169
|
+
})
|
|
170
|
+
}
|
|
171
|
+
},
|
|
165
172
|
methods: {
|
|
166
173
|
/**
|
|
167
174
|
* Open a new link if link is provide.
|
|
@@ -227,17 +234,16 @@ export default {
|
|
|
227
234
|
}
|
|
228
235
|
},
|
|
229
236
|
},
|
|
230
|
-
updated: function () {
|
|
231
|
-
if (!this.tooltipCalculated) {
|
|
232
|
-
this.$nextTick(() => {
|
|
233
|
-
this.calculateShowTooltip()
|
|
234
|
-
})
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
237
|
}
|
|
238
238
|
</script>
|
|
239
239
|
|
|
240
|
-
<style scoped>
|
|
240
|
+
<style scoped lang="scss">
|
|
241
|
+
@import '~element-ui/packages/theme-chalk/src/button';
|
|
242
|
+
@import '~element-ui/packages/theme-chalk/src/card';
|
|
243
|
+
@import '~element-ui/packages/theme-chalk/src/loading';
|
|
244
|
+
@import '~element-ui/packages/theme-chalk/src/popover';
|
|
245
|
+
@import '~element-ui/packages/theme-chalk/src/tooltip';
|
|
246
|
+
|
|
241
247
|
.button,
|
|
242
248
|
.button:hover,
|
|
243
249
|
.button:focus {
|
|
@@ -249,15 +255,15 @@ export default {
|
|
|
249
255
|
font-style: normal;
|
|
250
256
|
line-height: normal;
|
|
251
257
|
letter-spacing: normal;
|
|
252
|
-
background-color:
|
|
253
|
-
border:
|
|
258
|
+
background-color: $app-primary-color;
|
|
259
|
+
border: $app-primary-color;
|
|
254
260
|
color: white;
|
|
255
261
|
cursor: pointer;
|
|
256
262
|
margin-top: 8px;
|
|
257
263
|
}
|
|
258
264
|
|
|
259
265
|
.button:hover {
|
|
260
|
-
background:
|
|
266
|
+
background: $app-primary-color;
|
|
261
267
|
box-shadow: -3px 2px 4px 0 rgba(0, 0, 0, 0.25);
|
|
262
268
|
color: #fff;
|
|
263
269
|
}
|
|
@@ -301,14 +307,14 @@ p.bold {
|
|
|
301
307
|
width: 0;
|
|
302
308
|
height: 0;
|
|
303
309
|
border-left: solid transparent;
|
|
304
|
-
border-top: solid
|
|
310
|
+
border-top: solid $app-primary-color;
|
|
305
311
|
}
|
|
306
312
|
</style>
|
|
307
313
|
|
|
308
|
-
<style>
|
|
314
|
+
<style lang="scss">
|
|
309
315
|
.gallery-popper {
|
|
310
316
|
background: #f3ecf6 !important;
|
|
311
|
-
border: 1px solid
|
|
317
|
+
border: 1px solid $app-primary-color;
|
|
312
318
|
border-radius: 4px;
|
|
313
319
|
color: #303133 !important;
|
|
314
320
|
font-size: 12px;
|
|
@@ -317,7 +323,7 @@ p.bold {
|
|
|
317
323
|
padding: 10px;
|
|
318
324
|
}
|
|
319
325
|
.gallery-popper.el-popper[x-placement^='top'] .popper__arrow {
|
|
320
|
-
border-top-color:
|
|
326
|
+
border-top-color: $app-primary-color !important;
|
|
321
327
|
}
|
|
322
328
|
.gallery-popper.el-popper[x-placement^='top'] .popper__arrow:after {
|
|
323
329
|
border-top-color: #f3ecf6 !important;
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
198
198
|
}
|
|
199
199
|
</script>
|
|
200
200
|
|
|
201
|
-
<style scoped>
|
|
201
|
+
<style scoped lang="scss">
|
|
202
202
|
.oval {
|
|
203
203
|
width: 2rem;
|
|
204
204
|
height: 2rem;
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
227
227
|
.progress-button {
|
|
228
228
|
font-size: 1.5rem;
|
|
229
229
|
font-weight: bold;
|
|
230
|
-
color:
|
|
230
|
+
color: $app-primary-color;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.filler {
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
}
|
|
26
26
|
</script>
|
|
27
27
|
|
|
28
|
-
<style scoped>
|
|
28
|
+
<style scoped lang="scss">
|
|
29
29
|
.indicator-container {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
@@ -40,6 +40,6 @@ export default {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.indicator.active {
|
|
43
|
-
background-color:
|
|
43
|
+
background-color: $app-primary-color;
|
|
44
44
|
}
|
|
45
45
|
</style>
|
package/vue.config.js
CHANGED
package/.browserslistrc
DELETED
package/.prettierrc
DELETED
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
8
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<noscript>
|
|
12
|
-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
13
|
-
</noscript>
|
|
14
|
-
<div id="app"></div>
|
|
15
|
-
<!-- built files will be auto injected -->
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils'
|
|
2
|
-
import HelloWorld from '@/components/HelloWorld.vue'
|
|
3
|
-
|
|
4
|
-
describe('HelloWorld.vue', () => {
|
|
5
|
-
it('renders props.msg when passed', () => {
|
|
6
|
-
const msg = 'new message'
|
|
7
|
-
const wrapper = shallowMount(HelloWorld, {
|
|
8
|
-
propsData: { msg },
|
|
9
|
-
})
|
|
10
|
-
expect(wrapper.text()).toMatch(msg)
|
|
11
|
-
})
|
|
12
|
-
})
|