@eturnity/eturnity_reusable_components 7.12.7-EPDM-10602.2 → 7.12.7-EPDM-10335.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/.storybook/preview.js +1 -1
- package/package.json +19 -23
- package/src/App.vue +2 -2
- package/src/assets/svgIcons/split.svg +88 -6
- package/src/components/addNewButton/index.vue +5 -3
- package/src/components/buttons/buttonIcon/index.vue +1 -1
- package/src/components/buttons/closeButton/index.vue +1 -1
- package/src/components/buttons/mainButton/index.vue +6 -1
- package/src/components/deleteIcon/DeleteIcon.stories.js +7 -7
- package/src/components/deleteIcon/index.vue +25 -21
- package/src/components/draggableInputHandle/index.vue +24 -25
- package/src/components/dropdown/index.vue +129 -110
- package/src/components/errorMessage/index.vue +10 -5
- package/src/components/filter/filterSettings.vue +58 -97
- package/src/components/filter/index.vue +3 -3
- package/src/components/filter/parentDropdown.vue +2 -2
- package/src/components/icon/iconCache.js +23 -0
- package/src/components/icon/iconCollection.vue +2 -2
- package/src/components/icon/index.vue +67 -70
- package/src/components/iconWrapper/index.vue +1 -4
- package/src/components/infoCard/index.vue +2 -3
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/checkbox/index.vue +21 -6
- package/src/components/inputs/inputNumber/index.vue +8 -11
- package/src/components/inputs/inputNumberQuestion/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +3 -3
- package/src/components/inputs/radioButton/index.vue +1 -1
- package/src/components/inputs/searchInput/index.vue +28 -11
- package/src/components/inputs/select/index.vue +199 -55
- package/src/components/inputs/select/option/index.vue +36 -11
- package/src/components/inputs/slider/index.vue +16 -16
- package/src/components/inputs/switchField/index.vue +2 -2
- package/src/components/inputs/textAreaInput/index.vue +1 -1
- package/src/components/inputs/toggle/index.vue +2 -2
- package/src/components/label/index.vue +27 -31
- package/src/components/modals/modal/index.vue +2 -6
- package/src/components/navigationTabs/index.vue +27 -20
- package/src/components/pageSubtitle/index.vue +1 -1
- package/src/components/pageTitle/index.vue +4 -4
- package/src/components/pagination/index.vue +1 -1
- package/src/components/progressBar/index.vue +1 -1
- package/src/components/projectMarker/index.vue +16 -9
- package/src/components/sideMenu/index.vue +1 -1
- package/src/components/spinner/index.vue +7 -11
- package/src/components/tableDropdown/index.vue +30 -37
- package/src/components/tables/mainTable/exampleNested.vue +1 -1
- package/src/components/tables/mainTable/index.vue +10 -9
- package/src/components/tables/viewTable/index.vue +2 -2
- package/src/components/threeDots/index.vue +1 -1
- package/src/components/videoThumbnail/index.vue +95 -100
- package/src/main.js +4 -11
- package/src/assets/svgIcons/anchor.svg +0 -18
@@ -1,108 +1,103 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
// />
|
23
|
-
|
24
|
-
import styled from 'vue-styled-components'
|
25
|
-
import Icon from '../icon'
|
26
|
-
|
27
|
-
const wrapperAttrs = { width: String, height:String,fit:String }
|
28
|
-
const Wrapper = styled('div', wrapperAttrs)`
|
29
|
-
display: inline-block;
|
30
|
-
position: relative;
|
31
|
-
width:${props=>props.width};
|
32
|
-
height:${props=>props.height};
|
33
|
-
& img{
|
34
|
-
object-fit:${props=>props.fit};
|
35
|
-
width:${props=>props.width};
|
36
|
-
height:${props=>props.height};
|
37
|
-
}
|
38
|
-
`
|
39
|
-
const iconWrapper = styled('div')`
|
40
|
-
position: absolute;
|
41
|
-
top:0;
|
42
|
-
bottom:0;
|
43
|
-
left:0;
|
44
|
-
right:0;
|
45
|
-
display:flex;
|
46
|
-
justify-content:center;
|
47
|
-
align-items: center;
|
48
|
-
`
|
2
|
+
<wrapper :width="width" :height="height" :fit="fit">
|
3
|
+
<img :src="src" />
|
4
|
+
<iconWrapper>
|
5
|
+
<icon name="play" :size="playIconSize" :color="playIconColor" />
|
6
|
+
</iconWrapper>
|
7
|
+
</wrapper>
|
8
|
+
</template>
|
9
|
+
|
10
|
+
<script>
|
11
|
+
// import VideoThumbnail from "@eturnity/eturnity_reusable_components/src/components/videoThumbnail"
|
12
|
+
// How to use:
|
13
|
+
//<videoThumbnail src="https://musicart.xboxlive.com/6/cfaf1e9d-0000-0000-0000-000000000009/504/image.jpg?w=1920&h=1080"
|
14
|
+
// playIconColor="red"
|
15
|
+
// playIconSize="20px"
|
16
|
+
// width="400px"
|
17
|
+
// height="600px"
|
18
|
+
// />
|
19
|
+
|
20
|
+
import styled from 'vue3-styled-components'
|
21
|
+
import Icon from '../icon'
|
49
22
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
23
|
+
const wrapperAttrs = { width: String, height: String, fit: String }
|
24
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
25
|
+
display: inline-block;
|
26
|
+
position: relative;
|
27
|
+
width: ${(props) => props.width};
|
28
|
+
height: ${(props) => props.height};
|
29
|
+
& img {
|
30
|
+
object-fit: ${(props) => props.fit};
|
31
|
+
width: ${(props) => props.width};
|
32
|
+
height: ${(props) => props.height};
|
33
|
+
}
|
34
|
+
`
|
35
|
+
const iconWrapper = styled('div')`
|
36
|
+
position: absolute;
|
37
|
+
top: 0;
|
38
|
+
bottom: 0;
|
39
|
+
left: 0;
|
40
|
+
right: 0;
|
41
|
+
display: flex;
|
42
|
+
justify-content: center;
|
43
|
+
align-items: center;
|
44
|
+
`
|
45
|
+
|
46
|
+
export default {
|
47
|
+
name: 'VideoThumbnail',
|
48
|
+
components: {
|
49
|
+
Wrapper,
|
50
|
+
Icon,
|
51
|
+
iconWrapper
|
52
|
+
},
|
53
|
+
props: {
|
54
|
+
src: {
|
55
|
+
required: true
|
56
56
|
},
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
},
|
61
|
-
fit:{
|
62
|
-
required: false,
|
63
|
-
default: 'cover'
|
64
|
-
},
|
65
|
-
width: {
|
66
|
-
required: false,
|
67
|
-
default: '300px'
|
68
|
-
},
|
69
|
-
height: {
|
70
|
-
required: false,
|
71
|
-
default: '200px'
|
72
|
-
},
|
73
|
-
playIconSize:{
|
74
|
-
required: false,
|
75
|
-
default: '50px'
|
76
|
-
},
|
77
|
-
playIconColor:{
|
78
|
-
required: false,
|
79
|
-
default: 'blue'
|
80
|
-
}
|
57
|
+
fit: {
|
58
|
+
required: false,
|
59
|
+
default: 'cover'
|
81
60
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
61
|
+
width: {
|
62
|
+
required: false,
|
63
|
+
default: '300px'
|
86
64
|
},
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
if (
|
91
|
-
this.$refs.dropdown.$el == event.target ||
|
92
|
-
this.$refs.dropdown.$el.contains(event.target)
|
93
|
-
) {
|
94
|
-
return
|
95
|
-
} else {
|
96
|
-
this.isOpenByClick=false
|
97
|
-
}
|
98
|
-
},
|
65
|
+
height: {
|
66
|
+
required: false,
|
67
|
+
default: '200px'
|
99
68
|
},
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
beforeDestroy() {
|
104
|
-
document.removeEventListener('click', this.clickOutside)
|
69
|
+
playIconSize: {
|
70
|
+
required: false,
|
71
|
+
default: '50px'
|
105
72
|
},
|
73
|
+
playIconColor: {
|
74
|
+
required: false,
|
75
|
+
default: 'blue'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
data() {
|
79
|
+
return {
|
80
|
+
isOpenByClick: false
|
81
|
+
}
|
82
|
+
},
|
83
|
+
methods: {
|
84
|
+
clickOutside(event) {
|
85
|
+
if (this.openingMode != 'click') return
|
86
|
+
if (
|
87
|
+
this.$refs.dropdown.$el == event.target ||
|
88
|
+
this.$refs.dropdown.$el.contains(event.target)
|
89
|
+
) {
|
90
|
+
return
|
91
|
+
} else {
|
92
|
+
this.isOpenByClick = false
|
93
|
+
}
|
94
|
+
}
|
95
|
+
},
|
96
|
+
mounted() {
|
97
|
+
document.addEventListener('click', this.clickOutside)
|
98
|
+
},
|
99
|
+
beforeDestroy() {
|
100
|
+
document.removeEventListener('click', this.clickOutside)
|
106
101
|
}
|
107
|
-
|
108
|
-
|
102
|
+
}
|
103
|
+
</script>
|
package/src/main.js
CHANGED
@@ -1,13 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import VueCompositionAPI from "@vue/composition-api"
|
4
|
-
import vClickOutside from 'v-click-outside'
|
1
|
+
import App from './App.vue'
|
2
|
+
import { createApp } from 'vue'
|
5
3
|
|
6
|
-
|
4
|
+
const app = createApp(App)
|
7
5
|
|
8
|
-
|
9
|
-
Vue.use(vClickOutside)
|
10
|
-
|
11
|
-
new Vue({
|
12
|
-
render: (h) => h(App),
|
13
|
-
}).$mount("#app")
|
6
|
+
app.mount('#app')
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
3
|
-
<svg height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
4
|
-
viewBox="0 0 204.851 204.851" xml:space="preserve">
|
5
|
-
<g>
|
6
|
-
<g>
|
7
|
-
<g>
|
8
|
-
<path fill="white" d="M139.518,128.595l16.834,16.336c0,0-20.644,29.877-42.725,30.473
|
9
|
-
c0.479,0,0.117-84.092,0.039-104.472c14.694-4.797,25.402-18.182,25.402-34.117c0-20.009-16.697-36.218-37.273-36.218
|
10
|
-
c-20.615,0-37.312,16.209-37.312,36.208c0,15.671,10.376,28.929,24.748,33.961l0.098,104.277
|
11
|
-
c-26.643-1.837-42.061-27.474-42.061-27.474l17.997-17.41L0,120.505l9.887,63.301l17.362-16.795
|
12
|
-
c15.036,12.105,32.017,37.244,72.876,37.244c51.332-1.309,63.184-28.939,76.344-39.804l18.993,18.514l9.389-63.907
|
13
|
-
L139.518,128.595z M82.558,36.208c0-10.298,8.608-18.661,19.218-18.661s19.257,8.363,19.257,18.661
|
14
|
-
c0,10.327-8.647,18.681-19.257,18.681S82.558,46.535,82.558,36.208z"/>
|
15
|
-
</g>
|
16
|
-
</g>
|
17
|
-
</g>
|
18
|
-
</svg>
|