vue-intergrall-plugins 1.0.97 → 1.0.99
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.
|
@@ -6282,8 +6282,18 @@ var script$k = {
|
|
|
6282
6282
|
} else if (component.type == "header" && component.parameters.seq) {
|
|
6283
6283
|
if (_this2.hasFile) {
|
|
6284
6284
|
if (!_this2.selectedTemplate["parameters"][component.type]) _this2.selectedTemplate["parameters"][component.type] = new Array();
|
|
6285
|
+
var tipo = 'image';
|
|
6286
|
+
try {
|
|
6287
|
+
_this2.selectedTemplate['components'].forEach(function (component) {
|
|
6288
|
+
if (component.type === 'header') {
|
|
6289
|
+
tipo = component.parameters['0'].type || 'image';
|
|
6290
|
+
}
|
|
6291
|
+
});
|
|
6292
|
+
} catch (err) {
|
|
6293
|
+
console.error('Error get tipo, err: ', err);
|
|
6294
|
+
}
|
|
6285
6295
|
_this2.selectedTemplate["parameters"][component.type].push({
|
|
6286
|
-
tipo:
|
|
6296
|
+
tipo: tipo,
|
|
6287
6297
|
template: component.parameters.seq,
|
|
6288
6298
|
link: ""
|
|
6289
6299
|
});
|
|
@@ -6385,7 +6395,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
6385
6395
|
/* style */
|
|
6386
6396
|
var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
6387
6397
|
if (!inject) return;
|
|
6388
|
-
inject("data-v-
|
|
6398
|
+
inject("data-v-2f814c75_0", {
|
|
6389
6399
|
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
6400
|
map: undefined,
|
|
6391
6401
|
media: undefined
|
|
@@ -6394,7 +6404,7 @@ var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
|
6394
6404
|
/* scoped */
|
|
6395
6405
|
var __vue_scope_id__$k = undefined;
|
|
6396
6406
|
/* module identifier */
|
|
6397
|
-
var __vue_module_identifier__$k = "data-v-
|
|
6407
|
+
var __vue_module_identifier__$k = "data-v-2f814c75";
|
|
6398
6408
|
/* functional template */
|
|
6399
6409
|
var __vue_is_functional_template__$k = false;
|
|
6400
6410
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
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
|
-
:
|
|
24
|
-
:
|
|
25
|
-
|
|
26
|
-
@
|
|
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
|
-
@
|
|
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
|
-
|
|
165
|
-
})`,
|
|
140
|
+
label: `${this.concatTemplateMessage(this.templates[key])} (${this.templates[key].title
|
|
141
|
+
})`,
|
|
166
142
|
});
|
|
167
143
|
}
|
|
168
144
|
},
|
|
@@ -258,8 +234,20 @@ export default {
|
|
|
258
234
|
if (this.hasFile) {
|
|
259
235
|
if (!this.selectedTemplate["parameters"][component.type])
|
|
260
236
|
this.selectedTemplate["parameters"][component.type] = new Array();
|
|
237
|
+
|
|
238
|
+
let tipo = 'image'
|
|
239
|
+
try {
|
|
240
|
+
this.selectedTemplate['components'].forEach((component) => {
|
|
241
|
+
if (component.type === 'header') {
|
|
242
|
+
tipo = component.parameters['0'].type || 'image'
|
|
243
|
+
}
|
|
244
|
+
})
|
|
245
|
+
} catch (err) {
|
|
246
|
+
console.error('Error get tipo, err: ', err)
|
|
247
|
+
}
|
|
248
|
+
|
|
261
249
|
this.selectedTemplate["parameters"][component.type].push({
|
|
262
|
-
tipo
|
|
250
|
+
tipo,
|
|
263
251
|
template: component.parameters.seq,
|
|
264
252
|
link: "",
|
|
265
253
|
});
|
|
@@ -299,9 +287,11 @@ export default {
|
|
|
299
287
|
width: 100%;
|
|
300
288
|
display: flex;
|
|
301
289
|
}
|
|
290
|
+
|
|
302
291
|
.tg-options.column {
|
|
303
292
|
flex-direction: column;
|
|
304
293
|
}
|
|
294
|
+
|
|
305
295
|
.tg-options h4 {
|
|
306
296
|
margin-right: 5px;
|
|
307
297
|
}
|
|
@@ -372,6 +362,7 @@ export default {
|
|
|
372
362
|
height: 34px;
|
|
373
363
|
overflow: hidden;
|
|
374
364
|
}
|
|
365
|
+
|
|
375
366
|
.tg-select .vs__dropdown-toggle {
|
|
376
367
|
background-color: #fff;
|
|
377
368
|
height: 34px;
|
|
@@ -379,11 +370,13 @@ export default {
|
|
|
379
370
|
display: flex;
|
|
380
371
|
align-items: center;
|
|
381
372
|
}
|
|
373
|
+
|
|
382
374
|
.tg-select .vs__selected-options {
|
|
383
375
|
height: 34px;
|
|
384
376
|
overflow: hidden;
|
|
385
377
|
}
|
|
386
|
-
|
|
378
|
+
|
|
379
|
+
.tg-select .vs__selected-options>span {
|
|
387
380
|
white-space: nowrap;
|
|
388
381
|
text-overflow: ellipsis;
|
|
389
382
|
flex: 1;
|
|
@@ -402,9 +395,11 @@ export default {
|
|
|
402
395
|
transition: background-color 150ms;
|
|
403
396
|
white-space: normal;
|
|
404
397
|
}
|
|
398
|
+
|
|
405
399
|
.vs__dropdown-option:nth-child(odd) {
|
|
406
400
|
background-color: #f1f1f1;
|
|
407
401
|
}
|
|
402
|
+
|
|
408
403
|
.vs__dropdown-option:hover,
|
|
409
404
|
.vs__dropdown-option:focus,
|
|
410
405
|
.vs__dropdown-option:active,
|
|
@@ -441,42 +436,52 @@ export default {
|
|
|
441
436
|
display: flex;
|
|
442
437
|
flex-direction: column;
|
|
443
438
|
}
|
|
439
|
+
|
|
444
440
|
.order-1 {
|
|
445
441
|
order: 1;
|
|
446
442
|
}
|
|
443
|
+
|
|
447
444
|
.custom-box-shadow-bottom {
|
|
448
445
|
box-shadow: 0px 3px 4px -3px rgba(0, 0, 0, 0.3);
|
|
449
446
|
}
|
|
447
|
+
|
|
450
448
|
.custom-border-gray {
|
|
451
449
|
border: 1px solid var(--border-color) !important;
|
|
452
450
|
}
|
|
451
|
+
|
|
453
452
|
.ts-content header,
|
|
454
453
|
.ts-content section,
|
|
455
454
|
.ts-content footer {
|
|
456
455
|
padding: 3px 5px;
|
|
457
456
|
background-color: var(--background-color);
|
|
458
457
|
}
|
|
458
|
+
|
|
459
459
|
.ts-content header,
|
|
460
460
|
.ts-content section {
|
|
461
461
|
border-right: 1px solid var(--border-color);
|
|
462
462
|
border-left: 1px solid var(--border-color);
|
|
463
463
|
}
|
|
464
|
+
|
|
464
465
|
.ts-content header {
|
|
465
466
|
border-top-left-radius: var(--border-radius);
|
|
466
467
|
border-top-right-radius: var(--border-radius);
|
|
467
468
|
border-top: 1px solid var(--border-color);
|
|
468
469
|
}
|
|
470
|
+
|
|
469
471
|
.ts-content header {
|
|
470
472
|
font-weight: 550;
|
|
471
473
|
}
|
|
474
|
+
|
|
472
475
|
.ts-content section {
|
|
473
476
|
line-height: 25px;
|
|
474
477
|
}
|
|
478
|
+
|
|
475
479
|
.ts-content section.margin-bottom {
|
|
476
480
|
border-bottom-left-radius: var(--border-radius);
|
|
477
481
|
border-bottom-right-radius: var(--border-radius);
|
|
478
482
|
border-bottom: 1px solid var(--border-color);
|
|
479
483
|
}
|
|
484
|
+
|
|
480
485
|
.ts-content footer,
|
|
481
486
|
.custom-footer-style {
|
|
482
487
|
border: 1px solid var(--border-color);
|
|
@@ -484,6 +489,7 @@ export default {
|
|
|
484
489
|
border-bottom-left-radius: var(--border-radius);
|
|
485
490
|
border-bottom-right-radius: var(--border-radius);
|
|
486
491
|
}
|
|
492
|
+
|
|
487
493
|
.ts-content input {
|
|
488
494
|
border: 1px solid transparent;
|
|
489
495
|
outline: 0;
|
|
@@ -491,16 +497,20 @@ export default {
|
|
|
491
497
|
padding: 2.5px 5px;
|
|
492
498
|
background-color: var(--input-background-color);
|
|
493
499
|
}
|
|
500
|
+
|
|
494
501
|
.ts-content input::placeholder {
|
|
495
502
|
color: var(--placeholder-color);
|
|
496
503
|
}
|
|
504
|
+
|
|
497
505
|
.ts-content input.active,
|
|
498
506
|
.ts-content input:focus {
|
|
499
507
|
border: 1px solid var(--input-border-default);
|
|
500
508
|
}
|
|
509
|
+
|
|
501
510
|
.ts-content input.invalid {
|
|
502
511
|
border: 1px solid var(--input-border-error) !important;
|
|
503
512
|
}
|
|
513
|
+
|
|
504
514
|
.ts-content__var {
|
|
505
515
|
display: inline-block;
|
|
506
516
|
position: relative;
|
|
@@ -522,6 +532,7 @@ export default {
|
|
|
522
532
|
border: 1px solid #444;
|
|
523
533
|
border-top: unset;
|
|
524
534
|
}
|
|
535
|
+
|
|
525
536
|
.ts-dropdown li {
|
|
526
537
|
width: 100%;
|
|
527
538
|
opacity: 0.9;
|
|
@@ -531,6 +542,7 @@ export default {
|
|
|
531
542
|
font-size: 12.8px;
|
|
532
543
|
transition: background-color 150ms;
|
|
533
544
|
}
|
|
545
|
+
|
|
534
546
|
.ts-dropdown li:hover,
|
|
535
547
|
.ts-dropdown li:focus-within,
|
|
536
548
|
.ts-dropdown li:focus {
|
|
@@ -538,16 +550,19 @@ export default {
|
|
|
538
550
|
background-color: #555;
|
|
539
551
|
color: #fff;
|
|
540
552
|
}
|
|
553
|
+
|
|
541
554
|
.ts-dropdown.visible {
|
|
542
555
|
visibility: visible;
|
|
543
556
|
opacity: 1;
|
|
544
557
|
}
|
|
558
|
+
|
|
545
559
|
.tg-btn {
|
|
546
560
|
width: auto;
|
|
547
561
|
display: flex;
|
|
548
562
|
justify-content: center;
|
|
549
563
|
align-items: center;
|
|
550
564
|
}
|
|
565
|
+
|
|
551
566
|
.tg-btn button {
|
|
552
567
|
border: unset;
|
|
553
568
|
display: block;
|
|
@@ -564,13 +579,16 @@ export default {
|
|
|
564
579
|
opacity: 0.9;
|
|
565
580
|
border-radius: 2.5px;
|
|
566
581
|
}
|
|
567
|
-
|
|
582
|
+
|
|
583
|
+
.tg-btn button>svg {
|
|
568
584
|
margin-right: 5px;
|
|
569
585
|
color: #003166;
|
|
570
586
|
}
|
|
587
|
+
|
|
571
588
|
.tg-btn button:hover {
|
|
572
589
|
opacity: 1;
|
|
573
590
|
}
|
|
591
|
+
|
|
574
592
|
.tg-btn button:active {
|
|
575
593
|
opacity: 1;
|
|
576
594
|
box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
|
|
@@ -580,6 +598,7 @@ export default {
|
|
|
580
598
|
-ms-transform: translateY(1px);
|
|
581
599
|
transform: translateY(1px);
|
|
582
600
|
}
|
|
601
|
+
|
|
583
602
|
.tg-btn button:active {
|
|
584
603
|
opacity: 1;
|
|
585
604
|
box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
|
|
@@ -589,17 +608,21 @@ export default {
|
|
|
589
608
|
-ms-transform: translateY(1px);
|
|
590
609
|
transform: translateY(1px);
|
|
591
610
|
}
|
|
611
|
+
|
|
592
612
|
.tg-btn button:focus,
|
|
593
613
|
.tg-btn button:active {
|
|
594
614
|
outline: 2px solid black;
|
|
595
615
|
}
|
|
616
|
+
|
|
596
617
|
.tg-btn.small-btn {
|
|
597
618
|
width: auto;
|
|
598
619
|
margin: 0 5px;
|
|
599
620
|
}
|
|
621
|
+
|
|
600
622
|
.tg-btn.small-btn svg {
|
|
601
623
|
margin-right: 0;
|
|
602
624
|
}
|
|
625
|
+
|
|
603
626
|
.tg-btn.small-btn button {
|
|
604
627
|
min-width: 35px;
|
|
605
628
|
width: 35px;
|