vue-intergrall-plugins 0.0.1085 → 1.0.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/README.md +13 -5
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/package.json +70 -62
- package/src/lib-components/Buttons/IconButton.vue +27 -0
- package/src/lib-components/Buttons/SimpleButton.vue +140 -0
- package/src/lib-components/Cards/Card.vue +429 -0
- package/src/lib-components/Cards/CardCheck.vue +35 -0
- package/src/lib-components/Cards/CardFile.vue +157 -0
- package/src/lib-components/Chat/AudioSpeedControl.vue +60 -0
- package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -0
- package/src/lib-components/Chat/BtnEmojis.vue +51 -45
- package/src/lib-components/Chat/BtnFiles.vue +408 -131
- package/src/lib-components/Chat/BtnScreenShare.vue +36 -0
- package/src/lib-components/Chat/BtnStandardMessages.vue +17 -0
- package/src/lib-components/Chat/ExpandTextarea.vue +5 -6
- package/src/lib-components/Chat/MultipleFilePreview.vue +40 -22
- package/src/lib-components/Chat/Picker.vue +185 -149
- package/src/lib-components/Chat/SingleFilePreview.vue +28 -7
- package/src/lib-components/Chat/StandardMessages.vue +245 -0
- package/src/lib-components/Chat/TextFooter.vue +791 -451
- package/src/lib-components/Email/EmailFile.vue +126 -0
- package/src/lib-components/Email/EmailItem.vue +186 -0
- package/src/lib-components/Loader/Loader.vue +6 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +442 -0
- package/src/lib-components/Messages/CardAttachment.vue +61 -0
- package/src/lib-components/Messages/CardMessages.vue +666 -0
- package/src/lib-components/Messages/ChatMessages.vue +1082 -0
- package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -0
- package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -0
- package/src/lib-components/Messages/InteratividadePopup.vue +89 -0
- package/src/lib-components/Messages/LinkPreview.vue +189 -0
- package/src/lib-components/Scroll/ScrollContent.vue +166 -0
- package/src/lib-components/Templates/TemplateGenerator.vue +187 -50
- package/src/lib-components/Templates/TemplateMessage.vue +12 -1
- package/src/lib-components/Templates/TemplateSingle.vue +232 -13
- package/dist/vue-intergrall-plugins.esm.js +0 -5693
- package/dist/vue-intergrall-plugins.ssr.js +0 -5033
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
class="emoji-text-btn"
|
|
5
5
|
@click="toggleEmojiSelection()"
|
|
6
6
|
v-text="String.fromCodePoint(0x1f61c)"
|
|
7
|
-
>
|
|
8
|
-
</div>
|
|
7
|
+
></div>
|
|
9
8
|
<transition name="show-y">
|
|
10
9
|
<Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
|
|
11
10
|
</transition>
|
|
@@ -13,95 +12,100 @@
|
|
|
13
12
|
</template>
|
|
14
13
|
|
|
15
14
|
<script>
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import { mixin as clickaway } from 'vue-clickaway'
|
|
15
|
+
import Picker from "./Picker";
|
|
16
|
+
import { mixin as clickaway } from "vue-clickaway";
|
|
19
17
|
|
|
20
18
|
export default {
|
|
21
19
|
components: { Picker },
|
|
22
|
-
mixins: [
|
|
20
|
+
mixins: [clickaway],
|
|
23
21
|
props: {
|
|
24
22
|
emojiId: {
|
|
25
23
|
type: String,
|
|
26
|
-
required: true
|
|
24
|
+
required: true,
|
|
27
25
|
},
|
|
28
26
|
biggerTextarea: {
|
|
29
27
|
type: Boolean,
|
|
30
28
|
default: true,
|
|
31
|
-
required: false
|
|
29
|
+
required: false,
|
|
32
30
|
},
|
|
33
31
|
small: {
|
|
34
32
|
type: Boolean,
|
|
35
33
|
default: false,
|
|
36
|
-
required: false
|
|
34
|
+
required: false,
|
|
37
35
|
},
|
|
38
36
|
up: {
|
|
39
37
|
type: Boolean,
|
|
40
38
|
default: true,
|
|
41
|
-
required: false
|
|
39
|
+
required: false,
|
|
42
40
|
},
|
|
43
41
|
down: {
|
|
44
42
|
type: Boolean,
|
|
45
43
|
default: false,
|
|
46
|
-
required: false
|
|
44
|
+
required: false,
|
|
47
45
|
},
|
|
48
46
|
left: {
|
|
49
47
|
type: Boolean,
|
|
50
48
|
default: true,
|
|
51
|
-
required: false
|
|
52
|
-
}
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
53
51
|
},
|
|
54
52
|
computed: {
|
|
55
53
|
height() {
|
|
56
|
-
if(this.small) return 225
|
|
57
|
-
return 325
|
|
54
|
+
if (this.small) return 225;
|
|
55
|
+
return 325;
|
|
58
56
|
},
|
|
59
57
|
top() {
|
|
60
|
-
if(!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30)
|
|
61
|
-
return 40
|
|
62
|
-
}
|
|
58
|
+
if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
|
|
59
|
+
return 40;
|
|
60
|
+
},
|
|
63
61
|
},
|
|
64
|
-
data(){
|
|
65
|
-
return{
|
|
66
|
-
showEmojis: false
|
|
67
|
-
}
|
|
62
|
+
data() {
|
|
63
|
+
return {
|
|
64
|
+
showEmojis: false,
|
|
65
|
+
};
|
|
68
66
|
},
|
|
69
67
|
created() {
|
|
70
|
-
this.$root.$refs[`etf-${this.emojiId}`] = this
|
|
68
|
+
this.$root.$refs[`etf-${this.emojiId}`] = this;
|
|
71
69
|
},
|
|
72
70
|
watch: {
|
|
73
71
|
showEmojis() {
|
|
74
|
-
if(this.showEmojis) this.setPosition("sm-emoji-picker")
|
|
75
|
-
}
|
|
72
|
+
if (this.showEmojis) this.setPosition("sm-emoji-picker");
|
|
73
|
+
},
|
|
76
74
|
},
|
|
77
75
|
methods: {
|
|
78
76
|
setPosition(refId) {
|
|
79
77
|
try {
|
|
80
78
|
this.$nextTick(() => {
|
|
81
|
-
const elem = this.$refs[refId]
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
const elem = this.$refs[refId]
|
|
80
|
+
? this.$refs[refId].$el
|
|
81
|
+
? this.$refs[refId].$el
|
|
82
|
+
: this.$refs[refId]
|
|
83
|
+
: this.$refs[refId]
|
|
84
|
+
? this.$refs[refId]
|
|
85
|
+
: false;
|
|
86
|
+
if (elem) {
|
|
87
|
+
elem.style.position = "absolute";
|
|
88
|
+
elem.style.top = `${this.top}px`;
|
|
89
|
+
elem.style.left = "0";
|
|
90
|
+
elem.style.height = `${this.height}px`;
|
|
87
91
|
}
|
|
88
|
-
})
|
|
89
|
-
}catch(e) {
|
|
90
|
-
console.error("Erro ao setar a posicao dos emojis")
|
|
91
|
-
console.error(e)
|
|
92
|
+
});
|
|
93
|
+
} catch (e) {
|
|
94
|
+
console.error("Erro ao setar a posicao dos emojis");
|
|
95
|
+
console.error(e);
|
|
92
96
|
}
|
|
93
97
|
},
|
|
94
98
|
insertEmoji(emoji) {
|
|
95
|
-
this.$emit("insert-emoji", emoji)
|
|
99
|
+
this.$emit("insert-emoji", emoji);
|
|
96
100
|
},
|
|
97
101
|
toggleEmojiSelection() {
|
|
98
|
-
this.showEmojis = !this.showEmojis
|
|
102
|
+
this.showEmojis = !this.showEmojis;
|
|
99
103
|
},
|
|
100
104
|
away() {
|
|
101
|
-
this.showEmojis = false
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
+
this.showEmojis = false;
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
105
109
|
</script>
|
|
106
110
|
|
|
107
111
|
<style>
|
|
@@ -118,8 +122,10 @@ export default {
|
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
.emoji-text-container {
|
|
121
|
-
position: relative;
|
|
125
|
+
position: relative;
|
|
126
|
+
}
|
|
122
127
|
.emoji-text-container .emoji-text-btn {
|
|
123
|
-
font-size:
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
|
|
128
|
+
font-size: 19.2px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
</style>
|