vue-intergrall-plugins 1.0.94 → 1.0.96
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.
|
@@ -4974,6 +4974,13 @@ var script$n = {
|
|
|
4974
4974
|
if (data) {
|
|
4975
4975
|
if (data.msg_ret) {
|
|
4976
4976
|
if (data.error) throw new Error(data.msg_ret);
|
|
4977
|
+
if (selectionIndex == 2) {
|
|
4978
|
+
_this.$toasted.global.defaultInfo({
|
|
4979
|
+
msg: data.msg_ret
|
|
4980
|
+
});
|
|
4981
|
+
_this.$emit("close-blocker-standard-message");
|
|
4982
|
+
return _this.closeStandardMessages();
|
|
4983
|
+
}
|
|
4977
4984
|
return _this.$toasted.global.defaultInfo({
|
|
4978
4985
|
msg: data.msg_ret
|
|
4979
4986
|
});
|
|
@@ -5177,7 +5184,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5177
5184
|
/* style */
|
|
5178
5185
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
5179
5186
|
if (!inject) return;
|
|
5180
|
-
inject("data-v-
|
|
5187
|
+
inject("data-v-31da8e93_0", {
|
|
5181
5188
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
5182
5189
|
map: undefined,
|
|
5183
5190
|
media: undefined
|
|
@@ -5186,7 +5193,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
5186
5193
|
/* scoped */
|
|
5187
5194
|
var __vue_scope_id__$n = undefined;
|
|
5188
5195
|
/* module identifier */
|
|
5189
|
-
var __vue_module_identifier__$n = "data-v-
|
|
5196
|
+
var __vue_module_identifier__$n = "data-v-31da8e93";
|
|
5190
5197
|
/* functional template */
|
|
5191
5198
|
var __vue_is_functional_template__$n = false;
|
|
5192
5199
|
/* style inject shadow dom */
|
|
@@ -6342,6 +6349,10 @@ var script$j = {
|
|
|
6342
6349
|
type: Boolean,
|
|
6343
6350
|
required: false
|
|
6344
6351
|
},
|
|
6352
|
+
externalFiles: {
|
|
6353
|
+
type: Array,
|
|
6354
|
+
required: false
|
|
6355
|
+
},
|
|
6345
6356
|
buttons: {
|
|
6346
6357
|
type: Object,
|
|
6347
6358
|
default: function _default() {
|
|
@@ -6577,6 +6588,12 @@ var script$j = {
|
|
|
6577
6588
|
console.error("Erro ao inserir emoji");
|
|
6578
6589
|
console.error(e);
|
|
6579
6590
|
}
|
|
6591
|
+
},
|
|
6592
|
+
openFileSystem: function openFileSystem() {
|
|
6593
|
+
this.$emit("open-file-system");
|
|
6594
|
+
},
|
|
6595
|
+
resetFileSystem: function resetFileSystem() {
|
|
6596
|
+
this.$emit("reset-file-system");
|
|
6580
6597
|
}
|
|
6581
6598
|
}
|
|
6582
6599
|
};/* script */
|
|
@@ -6627,11 +6644,20 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
6627
6644
|
attrs: {
|
|
6628
6645
|
"textId": _vm.identifier,
|
|
6629
6646
|
"dictionary": _vm.dictionary,
|
|
6630
|
-
"fileSettings": _vm.fileSettings
|
|
6647
|
+
"fileSettings": _vm.fileSettings,
|
|
6648
|
+
"externalFiles": _vm.externalFiles
|
|
6631
6649
|
},
|
|
6632
6650
|
on: {
|
|
6633
6651
|
"set-file-vars": _vm.setFileVars,
|
|
6634
|
-
"open-image": _vm.openImage
|
|
6652
|
+
"open-image": _vm.openImage,
|
|
6653
|
+
"open-file-system": _vm.openFileSystem,
|
|
6654
|
+
"reset-file-system": _vm.resetFileSystem,
|
|
6655
|
+
"handle-file-preview": function handleFilePreview($event) {
|
|
6656
|
+
return _vm.$emit('handle-file-preview');
|
|
6657
|
+
},
|
|
6658
|
+
"handle-file-click": function handleFileClick($event) {
|
|
6659
|
+
return _vm.$emit('handle-file-click');
|
|
6660
|
+
}
|
|
6635
6661
|
}
|
|
6636
6662
|
}) : _vm._e(), _vm._ssrNode(" "), _vm._t("btn-1"), _vm._ssrNode(" "), _vm._t("btn-2")], 2)], 2)], 2);
|
|
6637
6663
|
};
|
|
@@ -6640,7 +6666,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6640
6666
|
/* style */
|
|
6641
6667
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
6642
6668
|
if (!inject) return;
|
|
6643
|
-
inject("data-v-
|
|
6669
|
+
inject("data-v-dfb9c5ae_0", {
|
|
6644
6670
|
source: ".expand-textarea{position:relative;width:90%;height:90%;z-index:1}.expand-textarea-content{overflow-x:hidden;overflow-y:auto;background-color:#fff;width:100%;height:100%;display:flex;flex-direction:column}.expand-textarea-title{padding:2.5px 8px;min-height:38px;display:flex;align-items:center;width:100%;font-size:20.8px;background-color:#222;color:#fff}.expand-textarea-content textarea{padding:10px;flex:1;width:100%;border:unset;resize:none;outline:0;overflow-x:hidden}.expand-textarea-content textarea:active,.expand-textarea-content textarea:hover{outline:0}.expand-textarea-footer{display:flex;justify-content:flex-end;align-items:center;padding:10px;background-color:#f7f7f7;position:relative}.expand-textarea-footer .old-footer-preview-container{position:absolute;top:-200px;right:145px;height:200px;background:#f7f7f7}.expand-textarea-footer .text-footer-actions--btn{width:36px;height:36px;border-radius:50%;background-color:rgba(255,255,255,0);color:#333;padding:2.5px;margin:0 15px 0 10px;display:flex;justify-content:center;align-items:center;font-size:20.8px;cursor:pointer;opacity:.9;transition:all .3s}.expand-textarea-footer .text-footer-actions--btn:hover{opacity:1;background-color:rgba(30,30,30,.1)}.expand-textarea-button{width:125px;height:30px;display:flex;justify-content:center;align-items:center;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:5px;padding:5px 10px;border-radius:2.5px;position:relative}.expand-textarea-button.green{background-color:#2a963a;color:#fff;margin-right:10px}.expand-textarea-button.red{background-color:#e74c3c;color:#fff}.expand-textarea-button:hover{opacity:1}.expand-textarea-button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.expand-textarea-button.carregando{background-color:#777}",
|
|
6645
6671
|
map: undefined,
|
|
6646
6672
|
media: undefined
|
|
@@ -6649,7 +6675,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
6649
6675
|
/* scoped */
|
|
6650
6676
|
var __vue_scope_id__$j = undefined;
|
|
6651
6677
|
/* module identifier */
|
|
6652
|
-
var __vue_module_identifier__$j = "data-v-
|
|
6678
|
+
var __vue_module_identifier__$j = "data-v-dfb9c5ae";
|
|
6653
6679
|
/* functional template */
|
|
6654
6680
|
var __vue_is_functional_template__$j = false;
|
|
6655
6681
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
<BtnEmojis v-show="buttons.hasEmojis" :ref="`${identifier}-emojis`" :emojiId="`${identifier}-em`" :left="false"
|
|
11
11
|
@insert-emoji="insertEmoji" />
|
|
12
12
|
<BtnFiles v-if="buttons.hasFiles" :textId="identifier" :dictionary="dictionary" :fileSettings="fileSettings"
|
|
13
|
-
:ref="`${identifier}-file`" @set-file-vars="setFileVars"
|
|
13
|
+
:ref="`${identifier}-file`" :externalFiles="externalFiles" @set-file-vars="setFileVars"
|
|
14
|
+
@open-image="openImage" @open-file-system="openFileSystem" @reset-file-system="resetFileSystem"
|
|
15
|
+
@handle-file-preview="$emit('handle-file-preview')" @handle-file-click="$emit('handle-file-click')" />
|
|
14
16
|
<slot name="btn-1"></slot>
|
|
15
17
|
<slot name="btn-2"></slot>
|
|
16
18
|
<!-- "expand-textarea-button" -->
|
|
@@ -23,7 +25,6 @@
|
|
|
23
25
|
import Clickaway from "@/directives/clickaway";
|
|
24
26
|
import BtnEmojis from "./BtnEmojis";
|
|
25
27
|
import BtnFiles from "./BtnFiles";
|
|
26
|
-
import { returnMessageWithHexa } from "../../services/textFormatting";
|
|
27
28
|
|
|
28
29
|
export default {
|
|
29
30
|
components: { BtnEmojis, BtnFiles },
|
|
@@ -43,6 +44,10 @@ export default {
|
|
|
43
44
|
type: Boolean,
|
|
44
45
|
required: false,
|
|
45
46
|
},
|
|
47
|
+
externalFiles: {
|
|
48
|
+
type: Array,
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
46
51
|
buttons: {
|
|
47
52
|
type: Object,
|
|
48
53
|
default: () => {
|
|
@@ -279,6 +284,12 @@ export default {
|
|
|
279
284
|
console.error(e);
|
|
280
285
|
}
|
|
281
286
|
},
|
|
287
|
+
openFileSystem() {
|
|
288
|
+
this.$emit("open-file-system");
|
|
289
|
+
},
|
|
290
|
+
resetFileSystem() {
|
|
291
|
+
this.$emit("reset-file-system");
|
|
292
|
+
},
|
|
282
293
|
},
|
|
283
294
|
};
|
|
284
295
|
</script>
|
|
@@ -143,7 +143,11 @@ export default {
|
|
|
143
143
|
if (data) {
|
|
144
144
|
if (data.msg_ret) {
|
|
145
145
|
if (data.error) throw new Error(data.msg_ret)
|
|
146
|
-
|
|
146
|
+
if (selectionIndex == 2) {
|
|
147
|
+
this.$toasted.global.defaultInfo({ msg: data.msg_ret })
|
|
148
|
+
this.$emit("close-blocker-standard-message")
|
|
149
|
+
return this.closeStandardMessages()
|
|
150
|
+
}
|
|
147
151
|
return this.$toasted.global.defaultInfo({ msg: data.msg_ret })
|
|
148
152
|
}
|
|
149
153
|
return this.showFormattedMessage(data, selectionIndex)
|