vue-intergrall-plugins 0.0.161 → 0.0.164

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.
@@ -3450,6 +3450,10 @@ var script$j = {
3450
3450
  hasButtonFiles: {
3451
3451
  type: Boolean,
3452
3452
  required: false
3453
+ },
3454
+ externalFiles: {
3455
+ type: Array,
3456
+ required: false
3453
3457
  }
3454
3458
  },
3455
3459
  data: function data() {
@@ -3473,6 +3477,13 @@ var script$j = {
3473
3477
  return "isMsg";
3474
3478
  }
3475
3479
  },
3480
+ watch: {
3481
+ externalFiles: function externalFiles() {
3482
+ this.file = this.externalFiles;
3483
+ this.fileSize = this.externalFiles.length;
3484
+ this.multipleFileUpload();
3485
+ }
3486
+ },
3476
3487
  methods: {
3477
3488
  openFilesByClip: function openFilesByClip() {
3478
3489
  if (this.fileSettings.multiple && !this.hasButtonFiles) {
@@ -3630,9 +3641,11 @@ var script$j = {
3630
3641
  this.file = this.file.filter(function (file) {
3631
3642
  return file.name != fileName;
3632
3643
  });
3644
+ this.fileSize = this.file.length;
3633
3645
  this.file.length ? this.emitFileVars(true) : this.deleteFile();
3634
3646
  },
3635
3647
  deleteFile: function deleteFile() {
3648
+ this.fileSize = this.file.length;
3636
3649
  this.$emit("set-file-vars", {
3637
3650
  file: [],
3638
3651
  isDoc: false,
@@ -3806,7 +3819,7 @@ var __vue_staticRenderFns__$j = [];
3806
3819
 
3807
3820
  var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
3808
3821
  if (!inject) return;
3809
- inject("data-v-6af671cf_0", {
3822
+ inject("data-v-2ac0bc50_0", {
3810
3823
  source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}",
3811
3824
  map: undefined,
3812
3825
  media: undefined
@@ -3818,7 +3831,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
3818
3831
  var __vue_scope_id__$j = undefined;
3819
3832
  /* module identifier */
3820
3833
 
3821
- var __vue_module_identifier__$j = "data-v-6af671cf";
3834
+ var __vue_module_identifier__$j = "data-v-2ac0bc50";
3822
3835
  /* functional template */
3823
3836
 
3824
3837
  var __vue_is_functional_template__$j = false;
@@ -8264,6 +8277,10 @@ var script$f = {
8264
8277
  hasButtonFiles: {
8265
8278
  type: Boolean,
8266
8279
  required: false
8280
+ },
8281
+ externalFiles: {
8282
+ type: Array,
8283
+ require: false
8267
8284
  }
8268
8285
  },
8269
8286
  data: function data() {
@@ -8685,7 +8702,8 @@ var __vue_render__$f = function __vue_render__() {
8685
8702
  "dictionary": _vm.dictionary,
8686
8703
  "fileSettings": _vm.fileSettings,
8687
8704
  "cssStyle": _vm.cssStyle,
8688
- "hasButtonFiles": _vm.hasButtonFiles
8705
+ "hasButtonFiles": _vm.hasButtonFiles,
8706
+ "externalFiles": _vm.externalFiles
8689
8707
  },
8690
8708
  on: {
8691
8709
  "set-file-vars": _vm.setFileVars,
@@ -8736,7 +8754,7 @@ var __vue_staticRenderFns__$f = [];
8736
8754
 
8737
8755
  var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
8738
8756
  if (!inject) return;
8739
- inject("data-v-26af6246_0", {
8757
+ inject("data-v-35ab0f5c_0", {
8740
8758
  source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03: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)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
8741
8759
  map: undefined,
8742
8760
  media: undefined
@@ -8748,7 +8766,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
8748
8766
  var __vue_scope_id__$f = undefined;
8749
8767
  /* module identifier */
8750
8768
 
8751
- var __vue_module_identifier__$f = "data-v-26af6246";
8769
+ var __vue_module_identifier__$f = "data-v-35ab0f5c";
8752
8770
  /* functional template */
8753
8771
 
8754
8772
  var __vue_is_functional_template__$f = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.161",
3
+ "version": "0.0.164",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -112,6 +112,10 @@ export default {
112
112
  hasButtonFiles: {
113
113
  type: Boolean,
114
114
  required: false
115
+ },
116
+ externalFiles: {
117
+ type: Array,
118
+ required: false
115
119
  }
116
120
  },
117
121
  data() {
@@ -135,6 +139,13 @@ export default {
135
139
  return "isMsg"
136
140
  }
137
141
  },
142
+ watch: {
143
+ externalFiles() {
144
+ this.file = this.externalFiles
145
+ this.fileSize = this.externalFiles.length
146
+ this.multipleFileUpload()
147
+ }
148
+ },
138
149
  methods: {
139
150
  openFilesByClip(){
140
151
  if(this.fileSettings.multiple && !this.hasButtonFiles){
@@ -266,9 +277,11 @@ export default {
266
277
  this.file = this.file.filter(file => {
267
278
  return file.name != fileName
268
279
  })
280
+ this.fileSize = this.file.length;
269
281
  this.file.length ? this.emitFileVars(true) : this.deleteFile()
270
282
  },
271
283
  deleteFile() {
284
+ this.fileSize = this.file.length;
272
285
  this.$emit("set-file-vars", { file: [], isDoc: false, imagePreview: "", fileFormatError: false, hasAnyFile: false })
273
286
 
274
287
  this.file = []
@@ -64,6 +64,7 @@
64
64
  :cssStyle="cssStyle"
65
65
  :ref="`${textId}-file`"
66
66
  :hasButtonFiles="hasButtonFiles"
67
+ :externalFiles="externalFiles"
67
68
  @set-file-vars="setFileVars"
68
69
  @open-image="openImage"
69
70
  @open-file-system="openFileSystem"
@@ -165,6 +166,10 @@ export default {
165
166
  hasButtonFiles: {
166
167
  type: Boolean,
167
168
  required: false
169
+ },
170
+ externalFiles: {
171
+ type: Array,
172
+ require: false
168
173
  }
169
174
  },
170
175
  data() {