vue-intergrall-plugins 0.0.222 → 0.0.223

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.
@@ -3912,6 +3912,23 @@ var script$n = {
3912
3912
  if (this.fileSettings.multiple) return "isMultiple";
3913
3913
  if (this.isDoc) return "isDoc";
3914
3914
  return "isMsg";
3915
+ },
3916
+
3917
+ acceptedExtensions() {
3918
+ let str = "";
3919
+
3920
+ if (this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
3921
+ str = `${this.fileSettings.docsExtensions.split("|").join(',')}${this.fileSettings.imagesExtensions.split("|").join(',')}`;
3922
+ } else if (this.fileSettings.docsExtensions) {
3923
+ str = this.fileSettings.docsExtensions.split("|").join(',');
3924
+ } else if (this.fileSettings.imagesExtensions) {
3925
+ str = this.fileSettings.imagesExtensions.split("|").join(',');
3926
+ }
3927
+
3928
+ str = str && str.endsWith(",") ? str.slice(0, -1) : str;
3929
+ if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
3930
+ if (this.isDoc) return str ? str : "application/*";
3931
+ return str ? str : "image/*";
3915
3932
  }
3916
3933
 
3917
3934
  },
@@ -4288,7 +4305,7 @@ var __vue_render__$n = function () {
4288
4305
  attrs: {
4289
4306
  "type": "file",
4290
4307
  "id": "both-" + _vm.textId,
4291
- "accept": "image/*,application/*",
4308
+ "accept": _vm.acceptedExtensions,
4292
4309
  "multiple": ""
4293
4310
  },
4294
4311
  on: {
@@ -4300,7 +4317,7 @@ var __vue_render__$n = function () {
4300
4317
  attrs: {
4301
4318
  "type": "file",
4302
4319
  "id": "img-" + _vm.textId,
4303
- "accept": "image/*"
4320
+ "accept": _vm.acceptedExtensions
4304
4321
  },
4305
4322
  on: {
4306
4323
  "change": function ($event) {
@@ -4311,7 +4328,7 @@ var __vue_render__$n = function () {
4311
4328
  attrs: {
4312
4329
  "type": "file",
4313
4330
  "id": "doc-" + _vm.textId,
4314
- "accept": "application/*"
4331
+ "accept": _vm.acceptedExtensions
4315
4332
  },
4316
4333
  on: {
4317
4334
  "change": function ($event) {
@@ -4377,7 +4394,7 @@ var __vue_staticRenderFns__$n = [];
4377
4394
 
4378
4395
  const __vue_inject_styles__$n = function (inject) {
4379
4396
  if (!inject) return;
4380
- inject("data-v-71c7f64d_0", {
4397
+ inject("data-v-40b9b88c_0", {
4381
4398
  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}",
4382
4399
  map: undefined,
4383
4400
  media: undefined