@sedoo/unidoo 0.0.76 → 0.0.77
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/dist/unidoo.common.js +92 -64
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +92 -64
- package/dist/unidoo.umd.js.map +1 -1
- package/dist/unidoo.umd.min.js +2 -2
- package/dist/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/unidoo-player/UnidooPlayer.vue +55 -6
- package/src/components/unidoo-player/level-selector/level-selector.vue +1 -1
package/package.json
CHANGED
|
@@ -8,17 +8,29 @@
|
|
|
8
8
|
></level-selector>
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
<unidoo-simple-player
|
|
13
|
-
|
|
13
|
+
v-if="hasData"
|
|
14
|
+
class="constrained"
|
|
14
15
|
:label="label"
|
|
15
16
|
:entries="entries"
|
|
16
17
|
>
|
|
18
|
+
|
|
17
19
|
<template v-slot:customField>
|
|
18
20
|
<slot name="customField"></slot>
|
|
19
21
|
</template>
|
|
22
|
+
|
|
20
23
|
</unidoo-simple-player>
|
|
21
24
|
|
|
25
|
+
<div v-else-if="noVisibleData" class="constrained placeholder">
|
|
26
|
+
<div style="position: absolute; top: 0; left: 0;"><slot name="customField"></slot></div><b>{{ noVisibleDataMessage }}</b>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div v-else class="constrained placeholder">
|
|
30
|
+
<div style="position: absolute; top: 0; left: 0;"><slot name="customField"></slot></div><b>{{ noDataMessage }}</b>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div v-if="isLoading" mask></div>
|
|
22
34
|
</v-col>
|
|
23
35
|
</template>
|
|
24
36
|
|
|
@@ -32,10 +44,29 @@ export default {
|
|
|
32
44
|
default: 'frame'
|
|
33
45
|
},
|
|
34
46
|
|
|
35
|
-
|
|
36
47
|
data:{
|
|
37
48
|
type: Object,
|
|
38
49
|
default: () => null
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
noVisibleData:{
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
noDataMessage:{
|
|
58
|
+
type: String,
|
|
59
|
+
default: "No available data"
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
noVisibleDataMessage:{
|
|
63
|
+
type: String,
|
|
64
|
+
default: "Existing data, no quicklook available"
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
isLoading:{
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
39
70
|
}
|
|
40
71
|
},
|
|
41
72
|
|
|
@@ -45,18 +76,36 @@ export default {
|
|
|
45
76
|
|
|
46
77
|
computed:{
|
|
47
78
|
hasData(){
|
|
48
|
-
return
|
|
79
|
+
return this.data && this.data.entries && this.data.entries.length;
|
|
49
80
|
},
|
|
50
81
|
}
|
|
51
82
|
|
|
52
83
|
}
|
|
53
84
|
</script>
|
|
54
85
|
<style scoped>
|
|
55
|
-
|
|
56
|
-
|
|
86
|
+
.constrained {
|
|
87
|
+
position: relative;
|
|
88
|
+
min-height: 15vh;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.placeholder{
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 100%;
|
|
57
96
|
}
|
|
58
97
|
|
|
59
98
|
[level-selector]{
|
|
60
99
|
margin: 0 10px;
|
|
61
100
|
}
|
|
101
|
+
|
|
102
|
+
[mask]{
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
opacity: 0.5;
|
|
109
|
+
background: white;
|
|
110
|
+
}
|
|
62
111
|
</style>
|