vue-intergrall-plugins 1.1.90 → 1.2.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 +220 -220
- package/dist/dist/vue-intergrall-plugins.css +1 -1
- package/dist/vue-intergrall-plugins.esm.js +193 -78
- package/dist/vue-intergrall-plugins.min.js +7 -7
- package/dist/vue-intergrall-plugins.ssr.js +245 -136
- package/package.json +61 -61
- package/src/lib-components/Buttons/IconButton.vue +27 -27
- package/src/lib-components/Buttons/SimpleButton.vue +140 -140
- package/src/lib-components/Cards/Card.vue +490 -490
- package/src/lib-components/Cards/CardCheck.vue +35 -35
- package/src/lib-components/Cards/CardFile.vue +163 -163
- package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -36
- package/src/lib-components/Chat/BtnEmojis.vue +118 -118
- package/src/lib-components/Chat/BtnExpand.vue +17 -17
- package/src/lib-components/Chat/BtnFiles.vue +486 -486
- package/src/lib-components/Chat/BtnMic.vue +60 -60
- package/src/lib-components/Chat/BtnScreenShare.vue +31 -31
- package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
- package/src/lib-components/Chat/ExpandTextarea.vue +427 -427
- package/src/lib-components/Chat/MultipleFilePreview.vue +291 -291
- package/src/lib-components/Chat/Picker.vue +525 -525
- package/src/lib-components/Chat/RemainingCharacters.vue +28 -28
- package/src/lib-components/Chat/SingleFilePreview.vue +94 -94
- package/src/lib-components/Chat/SkeletonPicker.vue +110 -110
- package/src/lib-components/Chat/StandardMessages.vue +252 -252
- package/src/lib-components/Chat/TextFooter.vue +1007 -1007
- package/src/lib-components/Email/EmailExpanded.vue +270 -270
- package/src/lib-components/Email/EmailFile.vue +192 -192
- package/src/lib-components/Email/EmailFrom.vue +66 -66
- package/src/lib-components/Email/EmailItem.vue +867 -850
- package/src/lib-components/Email/EmailTo.vue +64 -64
- package/src/lib-components/Loader/Loader.vue +78 -78
- package/src/lib-components/Messages/AnexoMensagem.vue +534 -497
- package/src/lib-components/Messages/CardAttachment.vue +61 -61
- package/src/lib-components/Messages/CardMessages.vue +687 -687
- package/src/lib-components/Messages/InteratividadeBotoes.vue +197 -197
- package/src/lib-components/Messages/InteratividadeContato.vue +32 -32
- package/src/lib-components/Messages/InteratividadeContatoItem.vue +235 -235
- package/src/lib-components/Messages/InteratividadeFormulario.vue +334 -334
- package/src/lib-components/Messages/InteratividadePopup.vue +95 -95
- package/src/lib-components/Messages/LinkPreview.vue +176 -176
- package/src/lib-components/Scroll/ScrollContent.vue +166 -166
- package/src/lib-components/Templates/TemplateGenerator.vue +640 -640
- package/src/lib-components/Templates/TemplateMessage.vue +83 -83
- package/src/lib-components/Templates/TemplateSingle.vue +478 -478
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="emoji-text-container" v-clickaway="away">
|
|
3
|
-
<div class="emoji-text-btn" @click="toggleEmojiSelection()" v-text="String.fromCodePoint(0x1f61c)"></div>
|
|
4
|
-
<transition name="show-y">
|
|
5
|
-
<Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
|
|
6
|
-
</transition>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import Picker from "./Picker";
|
|
12
|
-
import Clickaway from '@/directives/clickaway';
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
components: { Picker },
|
|
16
|
-
directives: {
|
|
17
|
-
clickaway: Clickaway
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
emojiId: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
biggerTextarea: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: true,
|
|
27
|
-
required: false,
|
|
28
|
-
},
|
|
29
|
-
small: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: false,
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
up: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: true,
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
down: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false,
|
|
42
|
-
required: false,
|
|
43
|
-
},
|
|
44
|
-
left: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: true,
|
|
47
|
-
required: false,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
computed: {
|
|
51
|
-
height() {
|
|
52
|
-
if (this.small) return 225;
|
|
53
|
-
return 325;
|
|
54
|
-
},
|
|
55
|
-
top() {
|
|
56
|
-
if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
|
|
57
|
-
return 40;
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
data() {
|
|
61
|
-
return {
|
|
62
|
-
showEmojis: false,
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
created() {
|
|
66
|
-
this.$root.$refs[`etf-${this.emojiId}`] = this;
|
|
67
|
-
},
|
|
68
|
-
watch: {
|
|
69
|
-
showEmojis() {
|
|
70
|
-
if (this.showEmojis) this.setPosition("sm-emoji-picker");
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
setPosition(refId) {
|
|
75
|
-
try {
|
|
76
|
-
this.$nextTick(() => {
|
|
77
|
-
const elem = this.$refs[refId]
|
|
78
|
-
? this.$refs[refId].$el
|
|
79
|
-
? this.$refs[refId].$el
|
|
80
|
-
: this.$refs[refId]
|
|
81
|
-
: this.$refs[refId]
|
|
82
|
-
? this.$refs[refId]
|
|
83
|
-
: false;
|
|
84
|
-
if (elem) {
|
|
85
|
-
elem.style.position = "absolute";
|
|
86
|
-
elem.style.top = `${this.top}px`;
|
|
87
|
-
elem.style.left = "0";
|
|
88
|
-
elem.style.height = `${this.height}px`;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
} catch (e) {
|
|
92
|
-
console.error("Erro ao setar a posicao dos emojis");
|
|
93
|
-
console.error(e);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
insertEmoji(emoji) {
|
|
97
|
-
this.$emit("insert-emoji", emoji);
|
|
98
|
-
},
|
|
99
|
-
toggleEmojiSelection() {
|
|
100
|
-
this.showEmojis = !this.showEmojis;
|
|
101
|
-
},
|
|
102
|
-
away() {
|
|
103
|
-
this.showEmojis = false;
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
</script>
|
|
108
|
-
|
|
109
|
-
<style>
|
|
110
|
-
.emoji-text-container {
|
|
111
|
-
position: relative;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.emoji-text-container .emoji-text-btn {
|
|
115
|
-
font-size: 19.2px;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
}
|
|
118
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="emoji-text-container" v-clickaway="away">
|
|
3
|
+
<div class="emoji-text-btn" @click="toggleEmojiSelection()" v-text="String.fromCodePoint(0x1f61c)"></div>
|
|
4
|
+
<transition name="show-y">
|
|
5
|
+
<Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
|
|
6
|
+
</transition>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import Picker from "./Picker";
|
|
12
|
+
import Clickaway from '@/directives/clickaway';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
components: { Picker },
|
|
16
|
+
directives: {
|
|
17
|
+
clickaway: Clickaway
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
emojiId: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
biggerTextarea: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true,
|
|
27
|
+
required: false,
|
|
28
|
+
},
|
|
29
|
+
small: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false,
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
up: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true,
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
down: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false,
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
left: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true,
|
|
47
|
+
required: false,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
height() {
|
|
52
|
+
if (this.small) return 225;
|
|
53
|
+
return 325;
|
|
54
|
+
},
|
|
55
|
+
top() {
|
|
56
|
+
if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
|
|
57
|
+
return 40;
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
data() {
|
|
61
|
+
return {
|
|
62
|
+
showEmojis: false,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
created() {
|
|
66
|
+
this.$root.$refs[`etf-${this.emojiId}`] = this;
|
|
67
|
+
},
|
|
68
|
+
watch: {
|
|
69
|
+
showEmojis() {
|
|
70
|
+
if (this.showEmojis) this.setPosition("sm-emoji-picker");
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
setPosition(refId) {
|
|
75
|
+
try {
|
|
76
|
+
this.$nextTick(() => {
|
|
77
|
+
const elem = this.$refs[refId]
|
|
78
|
+
? this.$refs[refId].$el
|
|
79
|
+
? this.$refs[refId].$el
|
|
80
|
+
: this.$refs[refId]
|
|
81
|
+
: this.$refs[refId]
|
|
82
|
+
? this.$refs[refId]
|
|
83
|
+
: false;
|
|
84
|
+
if (elem) {
|
|
85
|
+
elem.style.position = "absolute";
|
|
86
|
+
elem.style.top = `${this.top}px`;
|
|
87
|
+
elem.style.left = "0";
|
|
88
|
+
elem.style.height = `${this.height}px`;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.error("Erro ao setar a posicao dos emojis");
|
|
93
|
+
console.error(e);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
insertEmoji(emoji) {
|
|
97
|
+
this.$emit("insert-emoji", emoji);
|
|
98
|
+
},
|
|
99
|
+
toggleEmojiSelection() {
|
|
100
|
+
this.showEmojis = !this.showEmojis;
|
|
101
|
+
},
|
|
102
|
+
away() {
|
|
103
|
+
this.showEmojis = false;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
</script>
|
|
108
|
+
|
|
109
|
+
<style>
|
|
110
|
+
.emoji-text-container {
|
|
111
|
+
position: relative;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.emoji-text-container .emoji-text-btn {
|
|
115
|
+
font-size: 19.2px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="text-footer-actions--btn" @click="$emit('expand-textarea')" :title="dictionary.title_expandir_textarea">
|
|
3
|
-
<fa-icon :icon="['fas', 'expand-alt']" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
props: {
|
|
10
|
-
dictionary: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: {},
|
|
13
|
-
required: false
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="text-footer-actions--btn" @click="$emit('expand-textarea')" :title="dictionary.title_expandir_textarea">
|
|
3
|
+
<fa-icon :icon="['fas', 'expand-alt']" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
props: {
|
|
10
|
+
dictionary: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: {},
|
|
13
|
+
required: false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|