@burh/nuxt-core 1.0.406 → 1.0.407

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,144 +1,144 @@
1
- <template>
2
- <el-dialog
3
- :visible.sync="isActive"
4
- width="54%"
5
- custom-class="position-relative"
6
- @close="$emit('close')"
7
- >
8
- <template>
9
- <div class="row mt-5">
10
- <div class="col-12 px-3 mb-4">
11
- <p class="lead mt-0 ml-5">
12
- Insira aqui o número do telefone.
13
- </p>
14
- <base-input
15
- class="mb-1 ml-5 mr-5"
16
- v-model="phoneNumber"
17
- placeholder="Ex: (15) 3342-6237"
18
- type="text"
19
- name="NumberCellphone"
20
- >
21
- </base-input>
22
- </div>
23
-
24
- <div class="col-12 d-flex">
25
- <base-button
26
- size="md"
27
- outline
28
- type="primary"
29
- role="button"
30
- class="ml-5"
31
- @click="$emit('close-modal')"
32
- >voltar
33
- </base-button>
34
- <base-button
35
- size="md"
36
- type="primary"
37
- role="button"
38
- @click="sendMessage()"
39
- class="ml-auto mr-5"
40
- >Enviar
41
- </base-button>
42
- </div>
43
- </div>
44
-
45
- <span class="tool tool-close" @click="$emit('close-modal')">
46
- Fechar
47
- <font-awesome-icon
48
- :icon="['fas', 'times']"
49
- class="text-white ml-1"
50
- />
51
- </span>
52
- </template>
53
- </el-dialog>
54
- </template>
55
-
56
- <script>
57
- import { Dialog } from 'element-ui';
58
-
59
- export default {
60
- name: 'whatsapp-modal',
61
- components: {
62
- [Dialog.name]: Dialog
63
- },
64
- data() {
65
- return {
66
- phoneNumber: ''
67
- };
68
- },
69
- props: {
70
- isActive: Boolean,
71
- shareUrl: {
72
- type: String,
73
- required: true
74
- },
75
- },
76
- methods: {
77
- sendMessage() {
78
- let phoneNumber = this.phoneNumber
79
- .replace('(', '')
80
- .replace(')', '')
81
- .replace(' ', '')
82
- .replace('-', '');
83
- window.open(
84
- 'https://api.whatsapp.com/send?phone=' +
85
- '+55' +
86
- phoneNumber +
87
- '&text=' +
88
- this.shareUrl
89
- );
90
- }
91
- },
92
- watch: {
93
- isActive(newValue) {
94
- !newValue && this.$emit('close-modal');
95
- }
96
- }
97
- };
98
- </script>
99
-
100
- <style lang="scss" scoped>
101
- @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
102
-
103
- /deep/ .el-dialog__body {
104
- padding: 0;
105
- }
106
-
107
- /deep/ .el-dialog__header {
108
- display: none;
109
- }
110
-
111
- /deep/ .el-dialog {
112
- overflow: hidden;
113
- border-radius: 10px;
114
- padding-bottom: 50px;
115
- max-width: 725px;
116
- min-width: 725px;
117
- }
118
-
119
- .tool {
120
- position: absolute;
121
- top: 1rem;
122
- z-index: 10;
123
- color: $primary;
124
- cursor: pointer;
125
-
126
- &-close {
127
- position: absolute;
128
- width: 88px;
129
- height: 27px;
130
- right: 7px;
131
- top: 7px;
132
- display: flex;
133
- justify-content: center;
134
- align-items: center;
135
-
136
- font-size: 11px;
137
-
138
- font-weight: 500;
139
- background: rgba(0, 0, 0, 0.2);
140
- border-radius: 17.5px;
141
- color: #fff;
142
- }
143
- }
144
- </style>
1
+ <template>
2
+ <el-dialog
3
+ :visible.sync="isActive"
4
+ width="54%"
5
+ custom-class="position-relative"
6
+ @close="$emit('close')"
7
+ >
8
+ <template>
9
+ <div class="row mt-5">
10
+ <div class="col-12 px-3 mb-4">
11
+ <p class="lead mt-0 ml-5">
12
+ Insira aqui o número do telefone.
13
+ </p>
14
+ <base-input
15
+ class="mb-1 ml-5 mr-5"
16
+ v-model="phoneNumber"
17
+ placeholder="Ex: (15) 3342-6237"
18
+ type="text"
19
+ name="NumberCellphone"
20
+ >
21
+ </base-input>
22
+ </div>
23
+
24
+ <div class="col-12 d-flex">
25
+ <base-button
26
+ size="md"
27
+ outline
28
+ type="primary"
29
+ role="button"
30
+ class="ml-5"
31
+ @click="$emit('close-modal')"
32
+ >voltar
33
+ </base-button>
34
+ <base-button
35
+ size="md"
36
+ type="primary"
37
+ role="button"
38
+ @click="sendMessage()"
39
+ class="ml-auto mr-5"
40
+ >Enviar
41
+ </base-button>
42
+ </div>
43
+ </div>
44
+
45
+ <span class="tool tool-close" @click="$emit('close-modal')">
46
+ Fechar
47
+ <font-awesome-icon
48
+ :icon="['fas', 'times']"
49
+ class="text-white ml-1"
50
+ />
51
+ </span>
52
+ </template>
53
+ </el-dialog>
54
+ </template>
55
+
56
+ <script>
57
+ import { Dialog } from 'element-ui';
58
+
59
+ export default {
60
+ name: 'whatsapp-modal',
61
+ components: {
62
+ [Dialog.name]: Dialog
63
+ },
64
+ data() {
65
+ return {
66
+ phoneNumber: ''
67
+ };
68
+ },
69
+ props: {
70
+ isActive: Boolean,
71
+ shareUrl: {
72
+ type: String,
73
+ required: true
74
+ },
75
+ },
76
+ methods: {
77
+ sendMessage() {
78
+ let phoneNumber = this.phoneNumber
79
+ .replace('(', '')
80
+ .replace(')', '')
81
+ .replace(' ', '')
82
+ .replace('-', '');
83
+ window.open(
84
+ 'https://api.whatsapp.com/send?phone=' +
85
+ '+55' +
86
+ phoneNumber +
87
+ '&text=' +
88
+ this.shareUrl
89
+ );
90
+ }
91
+ },
92
+ watch: {
93
+ isActive(newValue) {
94
+ !newValue && this.$emit('close-modal');
95
+ }
96
+ }
97
+ };
98
+ </script>
99
+
100
+ <style lang="scss" scoped>
101
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
102
+
103
+ /deep/ .el-dialog__body {
104
+ padding: 0;
105
+ }
106
+
107
+ /deep/ .el-dialog__header {
108
+ display: none;
109
+ }
110
+
111
+ /deep/ .el-dialog {
112
+ overflow: hidden;
113
+ border-radius: 10px;
114
+ padding-bottom: 50px;
115
+ max-width: 725px;
116
+ min-width: 725px;
117
+ }
118
+
119
+ .tool {
120
+ position: absolute;
121
+ top: 1rem;
122
+ z-index: 10;
123
+ color: $primary;
124
+ cursor: pointer;
125
+
126
+ &-close {
127
+ position: absolute;
128
+ width: 88px;
129
+ height: 27px;
130
+ right: 7px;
131
+ top: 7px;
132
+ display: flex;
133
+ justify-content: center;
134
+ align-items: center;
135
+
136
+ font-size: 11px;
137
+
138
+ font-weight: 500;
139
+ background: rgba(0, 0, 0, 0.2);
140
+ border-radius: 17.5px;
141
+ color: #fff;
142
+ }
143
+ }
144
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.406",
3
+ "version": "1.0.407",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {