vue-intergrall-plugins 1.0.17 → 1.0.19
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.
|
@@ -6975,20 +6975,20 @@ var __vue_staticRenderFns__$g = [];
|
|
|
6975
6975
|
/* style */
|
|
6976
6976
|
var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
6977
6977
|
if (!inject) return;
|
|
6978
|
-
inject("data-v-
|
|
6978
|
+
inject("data-v-48a62d45_0", {
|
|
6979
6979
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}",
|
|
6980
6980
|
map: undefined,
|
|
6981
6981
|
media: undefined
|
|
6982
|
-
}), inject("data-v-
|
|
6983
|
-
source: ".file-item{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item-transition{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item .req-loader{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.file-item-transition img{max-width:45px;max-height:45px}.file-item a{margin-left:5px;text-decoration:none;color:#333}.file-icon{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.file-icon:hover{opacity:1}.file-icon:visited{color:inherit}
|
|
6982
|
+
}), inject("data-v-48a62d45_1", {
|
|
6983
|
+
source: ".file-item[data-v-48a62d45]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item-transition[data-v-48a62d45]{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center;position:relative}.file-item .req-loader[data-v-48a62d45]{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.file-item-transition img[data-v-48a62d45]{max-width:45px;max-height:45px}.file-item a[data-v-48a62d45]{margin-left:5px;text-decoration:none;color:#333}.file-icon[data-v-48a62d45]{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.file-icon[data-v-48a62d45]:hover{opacity:1}.file-icon[data-v-48a62d45]:visited{color:inherit}.file-icon.pdf[data-v-48a62d45]{position:relative}.file-icon.pdf svg[data-v-48a62d45]{color:#e74c3c}.file-icon.pdf[data-v-48a62d45]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.file-icon.doc[data-v-48a62d45]{color:#15517f}.file-icon.doc[data-v-48a62d45]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.file-img[data-v-48a62d45]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.file-img[data-v-48a62d45]:hover{opacity:1}.file-img img[data-v-48a62d45]{width:95%}",
|
|
6984
6984
|
map: undefined,
|
|
6985
6985
|
media: undefined
|
|
6986
6986
|
});
|
|
6987
6987
|
};
|
|
6988
6988
|
/* scoped */
|
|
6989
|
-
var __vue_scope_id__$g =
|
|
6989
|
+
var __vue_scope_id__$g = "data-v-48a62d45";
|
|
6990
6990
|
/* module identifier */
|
|
6991
|
-
var __vue_module_identifier__$g = "data-v-
|
|
6991
|
+
var __vue_module_identifier__$g = "data-v-48a62d45";
|
|
6992
6992
|
/* functional template */
|
|
6993
6993
|
var __vue_is_functional_template__$g = false;
|
|
6994
6994
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -3,22 +3,16 @@
|
|
|
3
3
|
<transition-group name="fade" mode="out-in" class="file-item-transition">
|
|
4
4
|
<div v-if="isLoading" :small="true" key="card-file-loader" class="req-loader slow"></div>
|
|
5
5
|
<template v-else>
|
|
6
|
-
<span v-if="imageURL" class="file-img box-shadow" @click="openWindowFromURL(imageURL, true)" key="card-file-img"
|
|
6
|
+
<span v-if="imageURL" class="file-img box-shadow" @click="openWindowFromURL(imageURL, true)" key="card-file-img"
|
|
7
|
+
:title="filename">
|
|
7
8
|
<img :src="`${imageURL}`" :alt="filename" />
|
|
8
9
|
</span>
|
|
9
|
-
<span
|
|
10
|
-
|
|
11
|
-
class="file-icon"
|
|
12
|
-
key="card-file-doc"
|
|
13
|
-
:class="[iconClass]"
|
|
14
|
-
@click="openWindowFromURL(docURL, false)"
|
|
15
|
-
:title="filename"
|
|
16
|
-
target="_blank"
|
|
17
|
-
rel="noreferrer noopener"
|
|
18
|
-
>
|
|
10
|
+
<span v-else class="file-icon" key="card-file-doc" :class="[iconClass]"
|
|
11
|
+
@click="openWindowFromURL(docURL, false)" :title="filename" target="_blank" rel="noreferrer noopener">
|
|
19
12
|
<fa-icon :icon="icon" />
|
|
20
13
|
</span>
|
|
21
|
-
<a :href="imageURL ? imageURL : docURL" :download="`${filename}`" target="_blank" rel="noreferrer noopener"
|
|
14
|
+
<a :href="imageURL ? imageURL : docURL" :download="`${filename}`" target="_blank" rel="noreferrer noopener"
|
|
15
|
+
key="card-file-download-icon" :title="`Download ${filename}`">
|
|
22
16
|
<fa-icon :icon="['fas', 'download']" />
|
|
23
17
|
</a>
|
|
24
18
|
</template>
|
|
@@ -27,12 +21,15 @@
|
|
|
27
21
|
</template>
|
|
28
22
|
|
|
29
23
|
<style>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
.fade-enter-active,
|
|
25
|
+
.fade-leave-active {
|
|
26
|
+
transition: opacity .5s;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fade-enter,
|
|
30
|
+
.fade-leave-to {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
36
33
|
</style>
|
|
37
34
|
|
|
38
35
|
<script>
|
|
@@ -54,13 +51,13 @@ export default {
|
|
|
54
51
|
required: true
|
|
55
52
|
}
|
|
56
53
|
},
|
|
57
|
-
mounted(){
|
|
54
|
+
mounted() {
|
|
58
55
|
this.setFileVars(this.file, { dominio: this.domain })
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
</script>
|
|
62
59
|
|
|
63
|
-
<style>
|
|
60
|
+
<style scoped>
|
|
64
61
|
.file-item {
|
|
65
62
|
width: 100%;
|
|
66
63
|
height: 100%;
|
|
@@ -69,6 +66,7 @@ export default {
|
|
|
69
66
|
align-items: center;
|
|
70
67
|
position: relative;
|
|
71
68
|
}
|
|
69
|
+
|
|
72
70
|
.file-item-transition {
|
|
73
71
|
max-width: 100%;
|
|
74
72
|
max-height: 100%;
|
|
@@ -77,15 +75,18 @@ export default {
|
|
|
77
75
|
align-items: center;
|
|
78
76
|
position: relative;
|
|
79
77
|
}
|
|
78
|
+
|
|
80
79
|
.file-item .req-loader {
|
|
81
80
|
position: absolute;
|
|
82
81
|
top: calc(50% - 12.5px);
|
|
83
82
|
right: calc(50% - 12.5px);
|
|
84
83
|
}
|
|
84
|
+
|
|
85
85
|
.file-item-transition img {
|
|
86
86
|
max-width: 45px;
|
|
87
87
|
max-height: 45px;
|
|
88
88
|
}
|
|
89
|
+
|
|
89
90
|
.file-item a {
|
|
90
91
|
margin-left: 5px;
|
|
91
92
|
text-decoration: none;
|
|
@@ -99,22 +100,23 @@ export default {
|
|
|
99
100
|
font-size: 30px;
|
|
100
101
|
cursor: pointer;
|
|
101
102
|
}
|
|
103
|
+
|
|
102
104
|
.file-icon:hover {
|
|
103
105
|
opacity: 1
|
|
104
106
|
}
|
|
107
|
+
|
|
105
108
|
.file-icon:visited {
|
|
106
109
|
color: inherit;
|
|
107
110
|
}
|
|
108
|
-
|
|
109
|
-
font-size: 30px;
|
|
110
|
-
z-index: 1;
|
|
111
|
-
}
|
|
111
|
+
|
|
112
112
|
.file-icon.pdf {
|
|
113
113
|
position: relative;
|
|
114
114
|
}
|
|
115
|
+
|
|
115
116
|
.file-icon.pdf svg {
|
|
116
117
|
color: rgb(231, 76, 60);
|
|
117
118
|
}
|
|
119
|
+
|
|
118
120
|
.file-icon.pdf::after {
|
|
119
121
|
content: "";
|
|
120
122
|
position: absolute;
|
|
@@ -124,9 +126,11 @@ svg {
|
|
|
124
126
|
height: 20px;
|
|
125
127
|
background-color: #FFF;
|
|
126
128
|
}
|
|
129
|
+
|
|
127
130
|
.file-icon.doc {
|
|
128
|
-
color: #15517F;
|
|
131
|
+
color: #15517F;
|
|
129
132
|
}
|
|
133
|
+
|
|
130
134
|
.file-icon.doc::after {
|
|
131
135
|
content: "";
|
|
132
136
|
position: absolute;
|
|
@@ -134,6 +138,7 @@ svg {
|
|
|
134
138
|
height: 20px;
|
|
135
139
|
background-color: #FFF;
|
|
136
140
|
}
|
|
141
|
+
|
|
137
142
|
.file-img {
|
|
138
143
|
display: flex;
|
|
139
144
|
justify-content: center;
|
|
@@ -151,6 +156,7 @@ svg {
|
|
|
151
156
|
.file-img:hover {
|
|
152
157
|
opacity: 1;
|
|
153
158
|
}
|
|
159
|
+
|
|
154
160
|
.file-img img {
|
|
155
161
|
width: 95%;
|
|
156
162
|
}
|