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.
@@ -97,7 +97,7 @@ export default {
97
97
  }
98
98
  </script>
99
99
 
100
- <style>
100
+ <style scoped>
101
101
  .multiple-file-preview {
102
102
  position: relative;
103
103
  display: flex;
@@ -249,7 +249,7 @@ export default {
249
249
  };
250
250
  </script>
251
251
 
252
- <style>
252
+ <style scoped>
253
253
  .box-shadow {
254
254
  -webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
255
255
  0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
@@ -53,7 +53,7 @@ export default {
53
53
  }
54
54
  </script>
55
55
 
56
- <style>
56
+ <style scoped>
57
57
  .single-file-preview .close-icon {
58
58
  color: #E74C3C;
59
59
  cursor: pointer;
@@ -36,7 +36,7 @@ export default {
36
36
  }
37
37
  </script>
38
38
 
39
- <style>
39
+ <style scoped>
40
40
  .box-shadow {
41
41
  -webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
42
42
  -moz-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
@@ -46,7 +46,7 @@
46
46
  </div>
47
47
  </template>
48
48
 
49
- <style>
49
+ <style scoped>
50
50
  .transition-selects {
51
51
  min-height: 80px;display: flex; flex-direction: column; width: 100%;
52
52
  }
@@ -641,19 +641,7 @@ export default {
641
641
  };
642
642
  </script>
643
643
 
644
- <style>
645
- .toasted svg {
646
- margin-right: 10px;
647
- }
648
-
649
- .d-none {
650
- display: none;
651
- }
652
-
653
- ul {
654
- list-style-type: none;
655
- }
656
-
644
+ <style scoped>
657
645
  .text-footer-container {
658
646
  display: flex;
659
647
  justify-content: center;
@@ -28,7 +28,7 @@ export default {
28
28
  }
29
29
  </script>
30
30
 
31
- <style>
31
+ <style scoped>
32
32
  .req-loader-container {
33
33
  position: absolute;
34
34
  z-index: 1;
@@ -89,7 +89,7 @@
89
89
  </div>
90
90
  </template>
91
91
 
92
- <style>
92
+ <style scoped>
93
93
  .tippy-tooltip.light-theme .tippy-backdrop {
94
94
  background-color: #fff;
95
95
  }
@@ -639,7 +639,7 @@ export default {
639
639
  };
640
640
  </script>
641
641
 
642
- <style>
642
+ <style scoped>
643
643
  :root {
644
644
  --message-color: #373737;
645
645
  --text-color: #fff;
@@ -1,165 +1,163 @@
1
1
  <template>
2
2
  <div class="interatividade">
3
3
  <transition name="show-x">
4
- <InteratividadePopup v-if="listaEstaAberta" :lista="listaExpandida" :titulo="objItens.list.title" @close="listaEstaAberta = false" />
4
+ <InteratividadePopup
5
+ v-if="listaEstaAberta"
6
+ :lista="listaExpandida"
7
+ :titulo="objItens.list.title"
8
+ @close="listaEstaAberta = false"
9
+ />
5
10
  </transition>
6
11
  <template v-if="arrBotoes.length">
7
- <div v-for="(btn, index) in arrBotoes" :key="index" :title="btn.titulo" class="interatividade-btn">
12
+ <div
13
+ v-for="(btn, index) in arrBotoes"
14
+ :key="index"
15
+ :title="btn.titulo"
16
+ class="interatividade-btn"
17
+ >
8
18
  <p v-html="btn.titulo" class="interatividade-titulo"></p>
9
19
  </div>
10
20
  </template>
11
21
  <template v-else-if="Object.keys(objItens).length">
12
- <div class="interatividade-lista" :class="tipoBotoes == 'listItem' ? 'bg-none' : ''">
13
- <div class="interatividade-lista-conteudo" :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''">
14
- <p v-if="objItens.header && objItens.header.text" v-html="objItens.header.text" class="interatividade-lista-titulo"></p>
15
- <p v-if="objItens.body && objItens.body.text" v-html="objItens.body.text" class="interatividade-lista-corpo"></p>
16
- <p v-if="objItens.footer && objItens.footer.text" v-html="objItens.footer.text" class="interatividade-lista-rodape"></p>
22
+ <div
23
+ class="interatividade-lista"
24
+ :class="tipoBotoes == 'listItem' ? 'bg-none' : ''"
25
+ >
26
+ <div
27
+ class="interatividade-lista-conteudo"
28
+ :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''"
29
+ >
30
+ <p
31
+ v-if="objItens.header && objItens.header.text"
32
+ v-html="objItens.header.text"
33
+ class="interatividade-lista-titulo"
34
+ ></p>
35
+ <p
36
+ v-if="objItens.body && objItens.body.text"
37
+ v-html="objItens.body.text"
38
+ class="interatividade-lista-corpo"
39
+ ></p>
40
+ <p
41
+ v-if="objItens.footer && objItens.footer.text"
42
+ v-html="objItens.footer.text"
43
+ class="interatividade-lista-rodape"
44
+ ></p>
17
45
  </div>
18
- <p v-if="objItens.list && objItens.list.title" v-html="objItens.list.title" @click="expandirLista" :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''" class="interatividade-lista-link"></p>
46
+ <p
47
+ v-if="objItens.list && objItens.list.title"
48
+ v-html="objItens.list.title"
49
+ @click="expandirLista"
50
+ :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''"
51
+ class="interatividade-lista-link"
52
+ ></p>
19
53
  </div>
20
54
  </template>
21
55
  </div>
22
56
  </template>
23
57
 
24
58
  <script>
25
- import InteratividadePopup from './InteratividadePopup'
59
+ import InteratividadePopup from "./InteratividadePopup";
26
60
 
27
61
  export default {
28
- components: {InteratividadePopup},
62
+ components: { InteratividadePopup },
29
63
  data() {
30
64
  return {
31
- listaEstaAberta: false
32
- }
65
+ listaEstaAberta: false,
66
+ };
33
67
  },
34
68
  props: {
35
69
  interatividade: {
36
70
  type: Object,
37
- required: true
38
- }
71
+ required: true,
72
+ },
39
73
  },
40
74
  computed: {
41
75
  tipoBotoes() {
42
- return this.interatividade.tipo
76
+ return this.interatividade.tipo;
43
77
  },
44
78
  arrBotoes() {
45
- const { botoes } = this.interatividade
46
- return botoes ? botoes : []
79
+ const { botoes } = this.interatividade;
80
+ return botoes ? botoes : [];
47
81
  },
48
82
  objItens() {
49
- const { itens } = this.interatividade
50
- return itens ? itens : {}
83
+ const { itens } = this.interatividade;
84
+ return itens ? itens : {};
51
85
  },
52
86
  listaExpandida() {
53
87
  try {
54
- const { list } = this.objItens
55
- const { sections } = list
56
- return sections ? sections : []
57
- }catch(e) {
58
- console.error("Erro ao definir a lista a ser expandida")
59
- console.error(e)
60
- return []
88
+ const { list } = this.objItens;
89
+ const { sections } = list;
90
+ return sections ? sections : [];
91
+ } catch (e) {
92
+ console.error("Erro ao definir a lista a ser expandida");
93
+ console.error(e);
94
+ return [];
61
95
  }
62
- }
96
+ },
63
97
  },
64
98
  methods: {
65
99
  expandirLista() {
66
- this.listaEstaAberta = !this.listaEstaAberta
67
- }
68
- }
69
- }
100
+ this.listaEstaAberta = !this.listaEstaAberta;
101
+ },
102
+ },
103
+ };
70
104
  </script>
71
105
 
72
- <style>
73
- .show-x-enter-active,
74
- .show-x-leave-enter {
75
- opacity: 1;
76
- transform: translateX(0);
77
- transition: all 200ms linear;
78
- }
79
- .show-x-enter,
80
- .show-x-leave-to {
81
- opacity: 0;
82
- transform: translateX(5%);
83
- }
84
-
85
- .bg-none {
86
- background-color: transparent!important;
87
- }
88
-
89
- .bg-white {
90
- background-color: #FFF;
91
- }
92
-
93
- .border-radius-5 {
94
- border-radius: 5px
95
- }
96
-
97
- .mt-5 {
98
- margin-top: 5px;
99
- }
100
-
101
- .interatividade-btn {
102
- width: 100%;
103
- display: flex;
104
- justify-content: center;
105
- align-items: center;
106
- background-color: #FFF;
107
- color: #111B21;
108
- padding: 10px 12px;
109
- border-radius: 5px;
110
- margin-bottom: 10px;
111
- }
112
- .interatividade-btn:nth-child(1) {
113
- margin-top: 10px
114
- }
115
- .interatividade-titulo {
116
- white-space: nowrap;
117
- text-overflow: ellipsis;
118
- overflow: hidden;
119
- max-width: 100%;
120
- margin: 0;
121
- padding: 0;
122
- }
123
-
124
- .interatividade-lista {
125
- width: 100%;
126
- min-width: 200px;
127
- border-radius: 15px;
128
- background-color: #FFF;
129
- color: #333;
130
- margin: 10px 0;
131
- }
106
+ <style scoped>
107
+ .interatividade-btn {
108
+ width: 100%;
109
+ display: flex;
110
+ justify-content: center;
111
+ align-items: center;
112
+ background-color: #fff;
113
+ color: #111b21;
114
+ padding: 10px 12px;
115
+ border-radius: 5px;
116
+ margin-bottom: 10px;
117
+ }
118
+ .interatividade-btn:nth-child(1) {
119
+ margin-top: 10px;
120
+ }
121
+ .interatividade-titulo {
122
+ white-space: nowrap;
123
+ text-overflow: ellipsis;
124
+ overflow: hidden;
125
+ max-width: 100%;
126
+ margin: 0;
127
+ padding: 0;
128
+ }
132
129
 
133
- .border-bottom-none {
134
- border-bottom: none!important;
135
- }
136
- .padding-none {
137
- padding: unset!important;
138
- }
130
+ .interatividade-lista {
131
+ width: 100%;
132
+ min-width: 200px;
133
+ border-radius: 15px;
134
+ background-color: #fff;
135
+ color: #333;
136
+ margin: 10px 0;
137
+ }
139
138
 
140
- .interatividade-lista-conteudo {
141
- padding: 10px;
142
- border-bottom: 1px solid #D7D7D7;
143
- }
144
- .interatividade-lista-titulo {
145
- font-weight: bold;
146
- font-size: 1.2em;
147
- margin-bottom: 10px;
148
- }
149
- .interatividade-lista-rodape {
150
- color: #818181;
151
- margin-top: 5px;
152
- }
153
- .interatividade-lista-link {
154
- width: 100%;
155
- text-align: center;
156
- padding: 10px;
157
- color: rgb(0, 110, 255);
158
- cursor: pointer;
159
- transition: color 200ms ease-in-out;
160
- }
161
- .interatividade-lista-link:hover {
162
- color: rgb(0, 98, 143);
163
- }
164
-
139
+ .interatividade-lista-conteudo {
140
+ padding: 10px;
141
+ border-bottom: 1px solid #d7d7d7;
142
+ }
143
+ .interatividade-lista-titulo {
144
+ font-weight: bold;
145
+ font-size: 1.2em;
146
+ margin-bottom: 10px;
147
+ }
148
+ .interatividade-lista-rodape {
149
+ color: #818181;
150
+ margin-top: 5px;
151
+ }
152
+ .interatividade-lista-link {
153
+ width: 100%;
154
+ text-align: center;
155
+ padding: 10px;
156
+ color: rgb(0, 110, 255);
157
+ cursor: pointer;
158
+ transition: color 200ms ease-in-out;
159
+ }
160
+ .interatividade-lista-link:hover {
161
+ color: rgb(0, 98, 143);
162
+ }
165
163
  </style>