vue-intergrall-plugins 1.0.97 → 1.0.98

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.
@@ -6283,7 +6283,7 @@ var script$k = {
6283
6283
  if (_this2.hasFile) {
6284
6284
  if (!_this2.selectedTemplate["parameters"][component.type]) _this2.selectedTemplate["parameters"][component.type] = new Array();
6285
6285
  _this2.selectedTemplate["parameters"][component.type].push({
6286
- tipo: "image",
6286
+ tipo: _this2.selectedTemplate["parameters"][component.type],
6287
6287
  template: component.parameters.seq,
6288
6288
  link: ""
6289
6289
  });
@@ -6385,7 +6385,7 @@ var __vue_staticRenderFns__$k = [];
6385
6385
  /* style */
6386
6386
  var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
6387
6387
  if (!inject) return;
6388
- inject("data-v-a48815f2_0", {
6388
+ inject("data-v-5550ae37_0", {
6389
6389
  source: ".tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.ts-image-type{display:flex;align-items:center}.ts-image-type img{cursor:pointer}.ts-image-type svg{font-size:25px;cursor:pointer}.ts-image-type .select-image{color:#838383}.color-red{color:#e74c3c}.color-blue{color:#007bff}.color-black{color:#333}.color-purple{color:#a312a3}.custom-tooltip-image{display:flex;justify-content:center;align-items:center;overflow:visible;padding:5px}.custom-tooltip-image img{max-width:75px;max-height:75px}.ts-button{background-color:#fff;border-radius:10px;display:flex;justify-content:center;align-items:center;padding:3px 15px;transition:background-color 150ms ease-in-out}.ts-button:hover{background-color:#fdfdfd}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.vs__dropdown-option.vs__dropdown-option--selected{background-color:#1a5fad!important;color:#fff}.vs__dropdown-menu li{padding:10px 15px}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between;gap:10px}.ts-content{--border-color:#ccc;--background-color:#dff0d8;--input-background-color:#fff;--input-border-default:#007bff;--input-border-error:#e74c3c;--placeholder-color:#bbb;--border-radius:5px;flex:2;font-size:11.2px;padding:10px 0;display:flex;flex-direction:column}.order-1{order:1}.custom-box-shadow-bottom{box-shadow:0 3px 4px -3px rgba(0,0,0,.3)}.custom-border-gray{border:1px solid var(--border-color)!important}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom:1px solid var(--border-color)}.custom-footer-style,.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.ts-content input{border:1px solid transparent;outline:0;font-size:12.8px;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 3px;font-size:12.8px;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:auto;display:flex;justify-content:center;align-items:center}.tg-btn button{border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition:transform .3s ease-in-out;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn 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)}.tg-btn 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)}.tg-btn button:active,.tg-btn button:focus{outline:2px solid #000}.tg-btn.small-btn{width:auto;margin:0 5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:5px;display:flex}",
6390
6390
  map: undefined,
6391
6391
  media: undefined
@@ -6394,7 +6394,7 @@ var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
6394
6394
  /* scoped */
6395
6395
  var __vue_scope_id__$k = undefined;
6396
6396
  /* module identifier */
6397
- var __vue_module_identifier__$k = "data-v-a48815f2";
6397
+ var __vue_module_identifier__$k = "data-v-5550ae37";
6398
6398
  /* functional template */
6399
6399
  var __vue_is_functional_template__$k = false;
6400
6400
  /* style inject shadow dom */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -2,46 +2,23 @@
2
2
  <div class="tg-container" v-if="templates && identifier">
3
3
  <div class="tg-options" :class="{ column: columnSelect }">
4
4
  <h4>Template:</h4>
5
- <v-select
6
- class="tg-select"
7
- appendToBody
8
- :calculatePosition="calculateSelectPosition"
9
- :options="templateOptions"
10
- :value="codTemplate"
11
- :reduce="(template) => template.cod"
12
- :clearable="false"
13
- @input="setTemplate"
14
- :getOptionLabel="(template) => template.label"
15
- ref="template-v-select"
16
- >
5
+ <v-select class="tg-select" appendToBody :calculatePosition="calculateSelectPosition" :options="templateOptions"
6
+ :value="codTemplate" :reduce="(template) => template.cod" :clearable="false" @input="setTemplate"
7
+ :getOptionLabel="(template) => template.label" ref="template-v-select">
17
8
  <div slot="no-options" v-text="dictionary.msg_sem_resultados"></div>
18
9
  </v-select>
19
10
  </div>
20
11
  <template v-if="selectedTemplate">
21
12
  <div class="tg-component" v-if="selectedTemplate.components">
22
- <TemplateSingle
23
- :key="codTemplate"
24
- :template="selectedTemplate"
25
- @set-vars="setFinalMessage"
26
- @set-file-var="setFileVar"
27
- :hasButton="hasButton"
28
- :iconButton="iconButton"
29
- @click-trigger="$emit('click-trigger')"
30
- :identifier="identifier"
31
- :allVariables="allVariables"
32
- :dictionary="dictionary"
33
- :hasSecondaryButton="hasSecondaryButton"
34
- @dispatch-clients-with-bot="$emit('dispatch-clients-with-bot')"
35
- />
13
+ <TemplateSingle :key="codTemplate" :template="selectedTemplate" @set-vars="setFinalMessage"
14
+ @set-file-var="setFileVar" :hasButton="hasButton" :iconButton="iconButton"
15
+ @click-trigger="$emit('click-trigger')" :identifier="identifier" :allVariables="allVariables"
16
+ :dictionary="dictionary" :hasSecondaryButton="hasSecondaryButton"
17
+ @dispatch-clients-with-bot="$emit('dispatch-clients-with-bot')" />
36
18
  </div>
37
19
  <div class="tg-component" v-else>
38
- <TemplateMessage
39
- @final-message="setMessage"
40
- :hasButton="hasButton"
41
- :iconButton="iconButton"
42
- @click-trigger="$emit('click-trigger', true)"
43
- :dictionary="dictionary"
44
- />
20
+ <TemplateMessage @final-message="setMessage" :hasButton="hasButton" :iconButton="iconButton"
21
+ @click-trigger="$emit('click-trigger', true)" :dictionary="dictionary" />
45
22
  </div>
46
23
  </template>
47
24
  </div>
@@ -160,9 +137,8 @@ export default {
160
137
  if (this.templates[key])
161
138
  this.templateOptions.push({
162
139
  cod: key,
163
- label: `${this.concatTemplateMessage(this.templates[key])} (${
164
- this.templates[key].title
165
- })`,
140
+ label: `${this.concatTemplateMessage(this.templates[key])} (${this.templates[key].title
141
+ })`,
166
142
  });
167
143
  }
168
144
  },
@@ -259,7 +235,7 @@ export default {
259
235
  if (!this.selectedTemplate["parameters"][component.type])
260
236
  this.selectedTemplate["parameters"][component.type] = new Array();
261
237
  this.selectedTemplate["parameters"][component.type].push({
262
- tipo: "image",
238
+ tipo: this.selectedTemplate["parameters"][component.type],
263
239
  template: component.parameters.seq,
264
240
  link: "",
265
241
  });
@@ -299,9 +275,11 @@ export default {
299
275
  width: 100%;
300
276
  display: flex;
301
277
  }
278
+
302
279
  .tg-options.column {
303
280
  flex-direction: column;
304
281
  }
282
+
305
283
  .tg-options h4 {
306
284
  margin-right: 5px;
307
285
  }
@@ -372,6 +350,7 @@ export default {
372
350
  height: 34px;
373
351
  overflow: hidden;
374
352
  }
353
+
375
354
  .tg-select .vs__dropdown-toggle {
376
355
  background-color: #fff;
377
356
  height: 34px;
@@ -379,11 +358,13 @@ export default {
379
358
  display: flex;
380
359
  align-items: center;
381
360
  }
361
+
382
362
  .tg-select .vs__selected-options {
383
363
  height: 34px;
384
364
  overflow: hidden;
385
365
  }
386
- .tg-select .vs__selected-options > span {
366
+
367
+ .tg-select .vs__selected-options>span {
387
368
  white-space: nowrap;
388
369
  text-overflow: ellipsis;
389
370
  flex: 1;
@@ -402,9 +383,11 @@ export default {
402
383
  transition: background-color 150ms;
403
384
  white-space: normal;
404
385
  }
386
+
405
387
  .vs__dropdown-option:nth-child(odd) {
406
388
  background-color: #f1f1f1;
407
389
  }
390
+
408
391
  .vs__dropdown-option:hover,
409
392
  .vs__dropdown-option:focus,
410
393
  .vs__dropdown-option:active,
@@ -441,42 +424,52 @@ export default {
441
424
  display: flex;
442
425
  flex-direction: column;
443
426
  }
427
+
444
428
  .order-1 {
445
429
  order: 1;
446
430
  }
431
+
447
432
  .custom-box-shadow-bottom {
448
433
  box-shadow: 0px 3px 4px -3px rgba(0, 0, 0, 0.3);
449
434
  }
435
+
450
436
  .custom-border-gray {
451
437
  border: 1px solid var(--border-color) !important;
452
438
  }
439
+
453
440
  .ts-content header,
454
441
  .ts-content section,
455
442
  .ts-content footer {
456
443
  padding: 3px 5px;
457
444
  background-color: var(--background-color);
458
445
  }
446
+
459
447
  .ts-content header,
460
448
  .ts-content section {
461
449
  border-right: 1px solid var(--border-color);
462
450
  border-left: 1px solid var(--border-color);
463
451
  }
452
+
464
453
  .ts-content header {
465
454
  border-top-left-radius: var(--border-radius);
466
455
  border-top-right-radius: var(--border-radius);
467
456
  border-top: 1px solid var(--border-color);
468
457
  }
458
+
469
459
  .ts-content header {
470
460
  font-weight: 550;
471
461
  }
462
+
472
463
  .ts-content section {
473
464
  line-height: 25px;
474
465
  }
466
+
475
467
  .ts-content section.margin-bottom {
476
468
  border-bottom-left-radius: var(--border-radius);
477
469
  border-bottom-right-radius: var(--border-radius);
478
470
  border-bottom: 1px solid var(--border-color);
479
471
  }
472
+
480
473
  .ts-content footer,
481
474
  .custom-footer-style {
482
475
  border: 1px solid var(--border-color);
@@ -484,6 +477,7 @@ export default {
484
477
  border-bottom-left-radius: var(--border-radius);
485
478
  border-bottom-right-radius: var(--border-radius);
486
479
  }
480
+
487
481
  .ts-content input {
488
482
  border: 1px solid transparent;
489
483
  outline: 0;
@@ -491,16 +485,20 @@ export default {
491
485
  padding: 2.5px 5px;
492
486
  background-color: var(--input-background-color);
493
487
  }
488
+
494
489
  .ts-content input::placeholder {
495
490
  color: var(--placeholder-color);
496
491
  }
492
+
497
493
  .ts-content input.active,
498
494
  .ts-content input:focus {
499
495
  border: 1px solid var(--input-border-default);
500
496
  }
497
+
501
498
  .ts-content input.invalid {
502
499
  border: 1px solid var(--input-border-error) !important;
503
500
  }
501
+
504
502
  .ts-content__var {
505
503
  display: inline-block;
506
504
  position: relative;
@@ -522,6 +520,7 @@ export default {
522
520
  border: 1px solid #444;
523
521
  border-top: unset;
524
522
  }
523
+
525
524
  .ts-dropdown li {
526
525
  width: 100%;
527
526
  opacity: 0.9;
@@ -531,6 +530,7 @@ export default {
531
530
  font-size: 12.8px;
532
531
  transition: background-color 150ms;
533
532
  }
533
+
534
534
  .ts-dropdown li:hover,
535
535
  .ts-dropdown li:focus-within,
536
536
  .ts-dropdown li:focus {
@@ -538,16 +538,19 @@ export default {
538
538
  background-color: #555;
539
539
  color: #fff;
540
540
  }
541
+
541
542
  .ts-dropdown.visible {
542
543
  visibility: visible;
543
544
  opacity: 1;
544
545
  }
546
+
545
547
  .tg-btn {
546
548
  width: auto;
547
549
  display: flex;
548
550
  justify-content: center;
549
551
  align-items: center;
550
552
  }
553
+
551
554
  .tg-btn button {
552
555
  border: unset;
553
556
  display: block;
@@ -564,13 +567,16 @@ export default {
564
567
  opacity: 0.9;
565
568
  border-radius: 2.5px;
566
569
  }
567
- .tg-btn button > svg {
570
+
571
+ .tg-btn button>svg {
568
572
  margin-right: 5px;
569
573
  color: #003166;
570
574
  }
575
+
571
576
  .tg-btn button:hover {
572
577
  opacity: 1;
573
578
  }
579
+
574
580
  .tg-btn button:active {
575
581
  opacity: 1;
576
582
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
@@ -580,6 +586,7 @@ export default {
580
586
  -ms-transform: translateY(1px);
581
587
  transform: translateY(1px);
582
588
  }
589
+
583
590
  .tg-btn button:active {
584
591
  opacity: 1;
585
592
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
@@ -589,17 +596,21 @@ export default {
589
596
  -ms-transform: translateY(1px);
590
597
  transform: translateY(1px);
591
598
  }
599
+
592
600
  .tg-btn button:focus,
593
601
  .tg-btn button:active {
594
602
  outline: 2px solid black;
595
603
  }
604
+
596
605
  .tg-btn.small-btn {
597
606
  width: auto;
598
607
  margin: 0 5px;
599
608
  }
609
+
600
610
  .tg-btn.small-btn svg {
601
611
  margin-right: 0;
602
612
  }
613
+
603
614
  .tg-btn.small-btn button {
604
615
  min-width: 35px;
605
616
  width: 35px;