vue-intergrall-plugins 1.0.0 → 1.0.2

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.
@@ -1,265 +1,291 @@
1
1
  <template>
2
2
  <div class="tg-container" v-if="templates && identifier">
3
- <div class="tg-options" :class="{'column' : columnSelect}">
4
- <h4> Template: </h4>
3
+ <div class="tg-options" :class="{ column: columnSelect }">
4
+ <h4>Template:</h4>
5
5
  <v-select
6
6
  class="tg-select"
7
7
  appendToBody
8
8
  :calculatePosition="calculateSelectPosition"
9
9
  :options="templateOptions"
10
10
  :value="codTemplate"
11
- :reduce="template => template.cod"
11
+ :reduce="(template) => template.cod"
12
12
  :clearable="false"
13
13
  @input="setTemplate"
14
- :getOptionLabel="template => template.label"
14
+ :getOptionLabel="(template) => template.label"
15
15
  ref="template-v-select"
16
- >
16
+ >
17
17
  <div slot="no-options" v-text="dictionary.msg_sem_resultados"></div>
18
18
  </v-select>
19
19
  </div>
20
20
  <template v-if="selectedTemplate">
21
21
  <div class="tg-component" v-if="selectedTemplate.components">
22
- <TemplateSingle
22
+ <TemplateSingle
23
23
  :key="codTemplate"
24
- :template="selectedTemplate"
25
- @set-vars="setFinalMessage"
24
+ :template="selectedTemplate"
25
+ @set-vars="setFinalMessage"
26
26
  @set-file-var="setFileVar"
27
- :hasButton="hasButton"
28
- :iconButton="iconButton"
29
- @click-trigger="$emit('click-trigger')"
30
- :identifier="identifier"
27
+ :hasButton="hasButton"
28
+ :iconButton="iconButton"
29
+ @click-trigger="$emit('click-trigger')"
30
+ :identifier="identifier"
31
31
  :allVariables="allVariables"
32
- :dictionary="dictionary"
32
+ :dictionary="dictionary"
33
33
  :hasSecondaryButton="hasSecondaryButton"
34
34
  @dispatch-clients-with-bot="$emit('dispatch-clients-with-bot')"
35
35
  />
36
36
  </div>
37
37
  <div class="tg-component" v-else>
38
- <TemplateMessage @final-message="setMessage" :hasButton="hasButton" :iconButton="iconButton" @click-trigger="$emit('click-trigger', true)" :dictionary="dictionary" />
38
+ <TemplateMessage
39
+ @final-message="setMessage"
40
+ :hasButton="hasButton"
41
+ :iconButton="iconButton"
42
+ @click-trigger="$emit('click-trigger', true)"
43
+ :dictionary="dictionary"
44
+ />
39
45
  </div>
40
- </template>
41
- </div>
46
+ </template>
47
+ </div>
42
48
  </template>
43
49
 
44
50
  <script>
45
- import { createPopper } from "@popperjs/core"
46
- import TemplateSingle from "./TemplateSingle"
47
- import TemplateMessage from "./TemplateMessage"
51
+ import { createPopper } from "@popperjs/core";
52
+ import TemplateSingle from "./TemplateSingle";
53
+ import TemplateMessage from "./TemplateMessage";
48
54
 
49
- export default {
50
- components: { TemplateSingle, TemplateMessage },
51
- props: {
52
- templates: {
53
- type: Object,
54
- required: true
55
- },
56
- hasSecondaryButton: {
57
- type: Boolean,
58
- required: false,
59
- default: false
60
- },
61
- hasButton: {
62
- type: Boolean,
63
- required: false,
64
- default: true
65
- },
66
- columnSelect: {
67
- type: Boolean,
68
- required: false
69
- },
70
- resizeParentOnSelect: {
71
- type: Boolean,
72
- required: false
73
- },
74
- allVariables: {
75
- type: Boolean,
76
- required: false,
77
- default: true
78
- },
79
- iconButton: {
80
- type: Boolean,
81
- required: false
82
- },
83
- identifier: {
84
- type: String,
85
- required: true
86
- },
87
- placement: {
88
- type: String,
89
- default: "bottom"
90
- },
91
- dictionary: {
92
- type: Object,
93
- required: true
94
- },
95
- selectInitial: {
96
- type: Boolean,
97
- required: false,
98
- default: true
99
- }
55
+ export default {
56
+ components: { TemplateSingle, TemplateMessage },
57
+ props: {
58
+ templates: {
59
+ type: Object,
60
+ required: true,
100
61
  },
101
- data() {
102
- return {
103
- templateOptions: [],
104
- codTemplate: {},
105
- selectedTemplate: null,
106
- hasFile: false
107
- }
62
+ hasSecondaryButton: {
63
+ type: Boolean,
64
+ required: false,
65
+ default: false,
108
66
  },
109
- mounted() {
110
- this.setTemplateOptions()
111
- if(this.selectInitial) this.selectIfIsUnique()
112
- this.selectIfHasContact24h()
67
+ hasButton: {
68
+ type: Boolean,
69
+ required: false,
70
+ default: true,
113
71
  },
114
- methods: {
115
- concatTemplateMessage(template) {
116
- let fullText = "";
117
- for (let key in template) {
118
- if (key === "components" && Array.isArray(template[key])) {
119
- template[key].map((component) => {
120
- if(component && component.parameters && component.parameters.length) {
121
- component.parameters.map((param) => {
122
- fullText += param.text;
123
- });
124
- }
125
- });
126
- }
72
+ columnSelect: {
73
+ type: Boolean,
74
+ required: false,
75
+ },
76
+ resizeParentOnSelect: {
77
+ type: Boolean,
78
+ required: false,
79
+ },
80
+ allVariables: {
81
+ type: Boolean,
82
+ required: false,
83
+ default: true,
84
+ },
85
+ iconButton: {
86
+ type: Boolean,
87
+ required: false,
88
+ },
89
+ identifier: {
90
+ type: String,
91
+ required: true,
92
+ },
93
+ placement: {
94
+ type: String,
95
+ default: "bottom",
96
+ },
97
+ dictionary: {
98
+ type: Object,
99
+ required: true,
100
+ },
101
+ selectInitial: {
102
+ type: Boolean,
103
+ required: false,
104
+ default: true,
105
+ },
106
+ },
107
+ data() {
108
+ return {
109
+ templateOptions: [],
110
+ codTemplate: {},
111
+ selectedTemplate: null,
112
+ hasFile: false,
113
+ };
114
+ },
115
+ mounted() {
116
+ this.setTemplateOptions();
117
+ if (this.selectInitial) this.selectIfIsUnique();
118
+ this.selectIfHasContact24h();
119
+ },
120
+ methods: {
121
+ concatTemplateMessage(template) {
122
+ let fullText = "";
123
+ for (let key in template) {
124
+ if (key === "components" && Array.isArray(template[key])) {
125
+ template[key].map((component) => {
126
+ if (component && component.parameters && component.parameters.length) {
127
+ component.parameters.map((param) => {
128
+ fullText += param.text;
129
+ });
130
+ }
131
+ });
127
132
  }
133
+ }
128
134
 
129
- fullText = fullText.replace(/{{var_\d}}/g, " ------- ")
130
- fullText = fullText.replace(`&nbsp;`, " ")
131
- fullText = fullText.replace(/<\/?[\d\w\s=\-:./'";]+>/gi, " ")
135
+ fullText = fullText.replace(/{{var_\d}}/g, " ------- ");
136
+ fullText = fullText.replace(`&nbsp;`, " ");
137
+ fullText = fullText.replace(/<\/?[\d\w\s=\-:./'";]+>/gi, " ");
132
138
 
133
- return fullText;
134
- },
135
- calculateSelectPosition(dropdownList, component, sizes) {
136
- dropdownList.style.width = sizes.width
137
- const popper = createPopper(component.$refs.toggle, dropdownList, {
138
- placement: this.placement,
139
- modifiers: [
140
- {
141
- name: 'toggleClass',
142
- enabled: true,
143
- phase: 'write',
144
- fn({state}) { component.$el.classList.toggle('drop-up', state.placement === 'top') }
145
- }
146
- ]
147
- })
148
- return () => popper.destroy()
149
- },
150
- setTemplateOptions() {
151
- for(let key in this.templates) {
152
- if(this.templates[key]) this.templateOptions.push({ cod: key, label: `${this.concatTemplateMessage(this.templates[key])} (${this.templates[key].title})` })
153
- }
154
- },
155
- setTemplate(key) {
156
- if(key) {
157
- this.selectedTemplate = this.templates[key]
158
- this.codTemplate = key
159
- this.$emit('selected-template', key)
160
- this.$nextTick(() => {
161
- if(this.$root.$refs[`template-single-${this.identifier}`]) this.$root.$refs[`template-single-${this.identifier}`].handleInitialFocus()
162
- })
163
- }else{
164
- this.selectedTemplate = null
165
- }
166
- // if(this.hasFile) this.setFileVar(false)
167
- this.adjustOnSelect()
168
- },
169
- focusSelect() {
170
- if(this.$refs["template-v-select"] && this.$refs["template-v-select"].$el) this.$refs["template-v-select"].$el.querySelector("input").focus()
171
- },
172
- selectIfIsUnique() {
173
- if(Object.keys(this.templates).length === 1) {
174
- for(let key in this.templates) {
175
- this.codTemplate = this.templateOptions[0]
176
- this.selectedTemplate = this.templates[key]
177
- this.$emit('selected-template', this.codTemplate)
178
- this.adjustOnSelect()
179
- }
180
- }
181
- if(!this.codTemplate) this.focusSelect()
182
- },
183
- selectIfHasContact24h() {
184
- if(this.templates['envio_msg']) {
185
- this.codTemplate = 'envio_msg';
186
- this.selectedTemplate = this.templates['envio_msg'];
187
- this.$emit('selected-template', 'envio_msg');
188
- this.adjustOnSelect()
139
+ return fullText;
140
+ },
141
+ calculateSelectPosition(dropdownList, component, sizes) {
142
+ dropdownList.style.width = sizes.width;
143
+ const popper = createPopper(component.$refs.toggle, dropdownList, {
144
+ placement: this.placement,
145
+ modifiers: [
146
+ {
147
+ name: "toggleClass",
148
+ enabled: true,
149
+ phase: "write",
150
+ fn({ state }) {
151
+ component.$el.classList.toggle("drop-up", state.placement === "top");
152
+ },
153
+ },
154
+ ],
155
+ });
156
+ return () => popper.destroy();
157
+ },
158
+ setTemplateOptions() {
159
+ for (let key in this.templates) {
160
+ if (this.templates[key])
161
+ this.templateOptions.push({
162
+ cod: key,
163
+ label: `${this.concatTemplateMessage(this.templates[key])} (${
164
+ this.templates[key].title
165
+ })`,
166
+ });
167
+ }
168
+ },
169
+ setTemplate(key) {
170
+ if (key) {
171
+ this.selectedTemplate = this.templates[key];
172
+ this.codTemplate = key;
173
+ this.$emit("selected-template", key);
174
+ this.$nextTick(() => {
175
+ if (this.$root.$refs[`template-single-${this.identifier}`])
176
+ this.$root.$refs[`template-single-${this.identifier}`].handleInitialFocus();
177
+ });
178
+ } else {
179
+ this.selectedTemplate = null;
180
+ }
181
+ // if(this.hasFile) this.setFileVar(false)
182
+ this.adjustOnSelect();
183
+ },
184
+ focusSelect() {
185
+ if (this.$refs["template-v-select"] && this.$refs["template-v-select"].$el)
186
+ this.$refs["template-v-select"].$el.querySelector("input").focus();
187
+ },
188
+ selectIfIsUnique() {
189
+ if (Object.keys(this.templates).length === 1) {
190
+ for (let key in this.templates) {
191
+ this.codTemplate = this.templateOptions[0];
192
+ this.selectedTemplate = this.templates[key];
193
+ this.$emit("selected-template", this.codTemplate);
194
+ this.adjustOnSelect();
189
195
  }
190
- },
191
- adjustOnSelect() {
192
- if(this.resizeParentOnSelect) this.$emit("resize-parent")
193
- },
194
- setFinalMessage(vars) {
195
- const keys = Object.keys(vars),
196
- values = Object.values(vars)
197
- this.selectedTemplate['parameters'] = {}
198
- for(let index in this.selectedTemplate) {
199
- if(index === "components" && Array.isArray(this.selectedTemplate[index])) {
200
- const arrComponents = this.selectedTemplate[index]
201
- if(arrComponents && arrComponents.length) {
202
- arrComponents.map(component => {
203
- if(component && component.parameters && component.parameters.length) {
204
- component.parameters.map(message => {
205
- message.currentText = message.text
206
- let keyIndex = 0
207
- while(keyIndex < keys.length) {
208
- const varName = `{{${keys[keyIndex]}}}`
209
- if(message.text.indexOf(varName) != -1) {
210
- /**Gerando os obejetos de parametros da notificacao para o component */
211
- if(component.type === "header" && !this.selectedTemplate['parameters'][component.type]) {
212
- this.selectedTemplate['parameters'][component.type] = {}
213
- //Header so pode ter uma vari?vel
214
- this.selectedTemplate['parameters'][component.type] = {
215
- tipo: "text",
216
- text: values[keyIndex]
217
- }
218
- } else if(!this.selectedTemplate['parameters'][component.type]) {
219
- this.selectedTemplate['parameters'][component.type] = new Array()
220
- }
221
- //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
222
- if(this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
223
- this.selectedTemplate['parameters'][component.type].push(values[keyIndex])
224
- }
225
- message.currentText = message.currentText.replace(varName, values[keyIndex])
196
+ }
197
+ if (!this.codTemplate) this.focusSelect();
198
+ },
199
+ selectIfHasContact24h() {
200
+ if (this.templates["envio_msg"]) {
201
+ this.codTemplate = "envio_msg";
202
+ this.selectedTemplate = this.templates["envio_msg"];
203
+ this.$emit("selected-template", "envio_msg");
204
+ this.adjustOnSelect();
205
+ }
206
+ },
207
+ adjustOnSelect() {
208
+ if (this.resizeParentOnSelect) this.$emit("resize-parent");
209
+ },
210
+ setFinalMessage(vars) {
211
+ const keys = Object.keys(vars),
212
+ values = Object.values(vars);
213
+ this.selectedTemplate["parameters"] = {};
214
+ for (let index in this.selectedTemplate) {
215
+ if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
216
+ const arrComponents = this.selectedTemplate[index];
217
+ if (arrComponents && arrComponents.length) {
218
+ arrComponents.map((component) => {
219
+ if (component && component.parameters && component.parameters.length) {
220
+ component.parameters.map((message) => {
221
+ message.currentText = message.text;
222
+ let keyIndex = 0;
223
+ while (keyIndex < keys.length) {
224
+ const varName = `{{${keys[keyIndex]}}}`;
225
+ if (message.text.indexOf(varName) != -1) {
226
+ /**Gerando os obejetos de parametros da notificacao para o component */
227
+ if (
228
+ component.type === "header" &&
229
+ !this.selectedTemplate["parameters"][component.type]
230
+ ) {
231
+ this.selectedTemplate["parameters"][component.type] = {};
232
+ //Header so pode ter uma vari?vel
233
+ this.selectedTemplate["parameters"][component.type] = {
234
+ tipo: "text",
235
+ text: values[keyIndex],
236
+ };
237
+ } else if (!this.selectedTemplate["parameters"][component.type]) {
238
+ this.selectedTemplate["parameters"][component.type] = new Array();
226
239
  }
227
- keyIndex++
240
+ //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
241
+ if (
242
+ this.selectedTemplate["parameters"][component.type] &&
243
+ component.type !== "header"
244
+ ) {
245
+ this.selectedTemplate["parameters"][component.type].push(
246
+ values[keyIndex]
247
+ );
248
+ }
249
+ message.currentText = message.currentText.replace(
250
+ varName,
251
+ values[keyIndex]
252
+ );
228
253
  }
229
- })
230
- }else if(component.type == 'header' && component.parameters.seq) {
231
- if(this.hasFile) {
232
- if(!this.selectedTemplate['parameters'][component.type]) this.selectedTemplate['parameters'][component.type] = new Array()
233
- this.selectedTemplate['parameters'][component.type].push({ tipo: 'image', template: component.parameters.seq, link: '' })
234
- }else {
235
- delete this.selectedTemplate['parameters'][component.type]
254
+ keyIndex++;
236
255
  }
256
+ });
257
+ } else if (component.type == "header" && component.parameters.seq) {
258
+ if (this.hasFile) {
259
+ if (!this.selectedTemplate["parameters"][component.type])
260
+ this.selectedTemplate["parameters"][component.type] = new Array();
261
+ this.selectedTemplate["parameters"][component.type].push({
262
+ tipo: "image",
263
+ template: component.parameters.seq,
264
+ link: "",
265
+ });
266
+ } else {
267
+ delete this.selectedTemplate["parameters"][component.type];
237
268
  }
238
- })
239
- }
269
+ }
270
+ });
240
271
  }
241
272
  }
242
- this.$emit("template-data", this.selectedTemplate)
243
- },
244
- setFileVar(file) {
245
- this.hasFile = file ? true : false
246
- this.$emit("set-file-var", file)
247
- if(file) this.$emit("template-data", this.selectedTemplate)
248
- },
249
- setMessage(message) {
250
- this.$emit("static-message", message)
251
273
  }
252
- }
253
- }
274
+ this.$emit("template-data", this.selectedTemplate);
275
+ },
276
+ setFileVar(file) {
277
+ this.hasFile = file ? true : false;
278
+ this.$emit("set-file-var", file);
279
+ if (file) this.$emit("template-data", this.selectedTemplate);
280
+ },
281
+ setMessage(message) {
282
+ this.$emit("static-message", message);
283
+ },
284
+ },
285
+ };
254
286
  </script>
255
287
 
256
- <style>
257
- * { box-sizing: border-box; }
258
- .toasted svg { margin-right: 10px }
259
- .d-none { display: none }
260
- ul { list-style-type: none }
261
- h1, h2, h3, h4, p { margin: 0; padding: 0 }
262
-
288
+ <style scoped>
263
289
  .tg-container {
264
290
  width: 100%;
265
291
  max-width: 800px;
@@ -299,19 +325,19 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
299
325
  }
300
326
 
301
327
  .color-red {
302
- color: #E74C3C;
328
+ color: #e74c3c;
303
329
  }
304
330
 
305
331
  .color-blue {
306
- color: #007BFF;
332
+ color: #007bff;
307
333
  }
308
334
 
309
335
  .color-black {
310
- color: #333
336
+ color: #333;
311
337
  }
312
338
 
313
339
  .color-purple {
314
- color: #a312a3
340
+ color: #a312a3;
315
341
  }
316
342
 
317
343
  .custom-tooltip-image {
@@ -328,7 +354,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
328
354
  }
329
355
 
330
356
  .ts-button {
331
- background-color: #FFF;
357
+ background-color: #fff;
332
358
  border-radius: 10px;
333
359
  display: flex;
334
360
  justify-content: center;
@@ -347,7 +373,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
347
373
  overflow: hidden;
348
374
  }
349
375
  .tg-select .vs__dropdown-toggle {
350
- background-color: #FFF;
376
+ background-color: #fff;
351
377
  height: 34px;
352
378
  overflow: hidden;
353
379
  display: flex;
@@ -364,7 +390,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
364
390
  }
365
391
 
366
392
  .vs__dropdown-option.vs__dropdown-option--selected {
367
- background-color: rgb(26, 95, 173)!important;
393
+ background-color: rgb(26, 95, 173) !important;
368
394
  color: white;
369
395
  }
370
396
 
@@ -377,11 +403,16 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
377
403
  white-space: normal;
378
404
  }
379
405
  .vs__dropdown-option:nth-child(odd) {
380
- background-color: #F1F1F1;
406
+ background-color: #f1f1f1;
381
407
  }
382
- .vs__dropdown-option:hover, .vs__dropdown-option:focus, .vs__dropdown-option:active, .vs__dropdown-option:focus, .vs__dropdown-option--selected, .vs__dropdown-option--highlight {
383
- background-color: #5897fb!important;
384
- color: #FFF;
408
+ .vs__dropdown-option:hover,
409
+ .vs__dropdown-option:focus,
410
+ .vs__dropdown-option:active,
411
+ .vs__dropdown-option:focus,
412
+ .vs__dropdown-option--selected,
413
+ .vs__dropdown-option--highlight {
414
+ background-color: #5897fb !important;
415
+ color: #fff;
385
416
  }
386
417
 
387
418
  .tg-component {
@@ -396,12 +427,12 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
396
427
  }
397
428
 
398
429
  .ts-content {
399
- --border-color: #CCC;
400
- --background-color: #DFF0D8;
401
- --input-background-color: #FFF;
402
- --input-border-default: #007BFF;
403
- --input-border-error: #E74C3C;
404
- --placeholder-color: #BBB;
430
+ --border-color: #ccc;
431
+ --background-color: #dff0d8;
432
+ --input-background-color: #fff;
433
+ --input-border-default: #007bff;
434
+ --input-border-error: #e74c3c;
435
+ --placeholder-color: #bbb;
405
436
  --border-radius: 5px;
406
437
 
407
438
  flex: 2;
@@ -411,19 +442,22 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
411
442
  flex-direction: column;
412
443
  }
413
444
  .order-1 {
414
- order: 1
445
+ order: 1;
415
446
  }
416
447
  .custom-box-shadow-bottom {
417
- box-shadow: 0px 3px 4px -3px rgba(0, 0, 0, .3);
448
+ box-shadow: 0px 3px 4px -3px rgba(0, 0, 0, 0.3);
418
449
  }
419
450
  .custom-border-gray {
420
- border: 1px solid var(--border-color)!important;
451
+ border: 1px solid var(--border-color) !important;
421
452
  }
422
- .ts-content header, .ts-content section, .ts-content footer {
453
+ .ts-content header,
454
+ .ts-content section,
455
+ .ts-content footer {
423
456
  padding: 3px 5px;
424
457
  background-color: var(--background-color);
425
458
  }
426
- .ts-content header, .ts-content section {
459
+ .ts-content header,
460
+ .ts-content section {
427
461
  border-right: 1px solid var(--border-color);
428
462
  border-left: 1px solid var(--border-color);
429
463
  }
@@ -432,7 +466,9 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
432
466
  border-top-right-radius: var(--border-radius);
433
467
  border-top: 1px solid var(--border-color);
434
468
  }
435
- .ts-content header { font-weight: 550 }
469
+ .ts-content header {
470
+ font-weight: 550;
471
+ }
436
472
  .ts-content section {
437
473
  line-height: 25px;
438
474
  }
@@ -441,7 +477,8 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
441
477
  border-bottom-right-radius: var(--border-radius);
442
478
  border-bottom: 1px solid var(--border-color);
443
479
  }
444
- .ts-content footer, .custom-footer-style {
480
+ .ts-content footer,
481
+ .custom-footer-style {
445
482
  border: 1px solid var(--border-color);
446
483
  border-top: unset;
447
484
  border-bottom-left-radius: var(--border-radius);
@@ -452,16 +489,17 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
452
489
  outline: 0;
453
490
  font-size: 12.8px;
454
491
  padding: 2.5px 5px;
455
- background-color: var(--input-background-color);
492
+ background-color: var(--input-background-color);
456
493
  }
457
494
  .ts-content input::placeholder {
458
- color: var(--placeholder-color);
495
+ color: var(--placeholder-color);
459
496
  }
460
- .ts-content input.active, .ts-content input:focus{
461
- border: 1px solid var(--input-border-default);
497
+ .ts-content input.active,
498
+ .ts-content input:focus {
499
+ border: 1px solid var(--input-border-default);
462
500
  }
463
501
  .ts-content input.invalid {
464
- border: 1px solid var(--input-border-error)!important;
502
+ border: 1px solid var(--input-border-error) !important;
465
503
  }
466
504
  .ts-content__var {
467
505
  display: inline-block;
@@ -486,21 +524,23 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
486
524
  }
487
525
  .ts-dropdown li {
488
526
  width: 100%;
489
- opacity: .9;
527
+ opacity: 0.9;
490
528
  cursor: pointer;
491
529
  font-weight: 550;
492
530
  padding: 2px 3px;
493
531
  font-size: 12.8px;
494
532
  transition: background-color 150ms;
495
533
  }
496
- .ts-dropdown li:hover, .ts-dropdown li:focus-within, .ts-dropdown li:focus {
534
+ .ts-dropdown li:hover,
535
+ .ts-dropdown li:focus-within,
536
+ .ts-dropdown li:focus {
497
537
  opacity: 1;
498
538
  background-color: #555;
499
- color: #FFF;
539
+ color: #fff;
500
540
  }
501
541
  .ts-dropdown.visible {
502
542
  visibility: visible;
503
- opacity: 1;
543
+ opacity: 1;
504
544
  }
505
545
  .tg-btn {
506
546
  width: auto;
@@ -516,7 +556,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
516
556
  padding: 0 10px;
517
557
  font-weight: 500;
518
558
  background-color: #007bff;
519
- color: #FFF;
559
+ color: #fff;
520
560
  transition: transform 300ms ease-in-out;
521
561
  user-select: none;
522
562
  cursor: pointer;
@@ -524,12 +564,12 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
524
564
  opacity: 0.9;
525
565
  border-radius: 2.5px;
526
566
  }
527
- .tg-btn button > svg{
567
+ .tg-btn button > svg {
528
568
  margin-right: 5px;
529
- color: #003166
569
+ color: #003166;
530
570
  }
531
571
  .tg-btn button:hover {
532
- opacity: 1;
572
+ opacity: 1;
533
573
  }
534
574
  .tg-btn button:active {
535
575
  opacity: 1;
@@ -547,10 +587,11 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
547
587
  -moz-transform: translateY(1px);
548
588
  -o-transform: translateY(1px);
549
589
  -ms-transform: translateY(1px);
550
- transform: translateY(1px);
590
+ transform: translateY(1px);
551
591
  }
552
- .tg-btn button:focus, .tg-btn button:active {
553
- outline: 2px solid black;
592
+ .tg-btn button:focus,
593
+ .tg-btn button:active {
594
+ outline: 2px solid black;
554
595
  }
555
596
  .tg-btn.small-btn {
556
597
  width: auto;
@@ -573,5 +614,4 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
573
614
  border-radius: 5px;
574
615
  display: flex;
575
616
  }
576
-
577
- </style>
617
+ </style>