@nixweb/nixloc-ui 0.0.241 → 0.0.243

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -57,7 +57,7 @@ export default {
57
57
  }
58
58
 
59
59
  .badge-button {
60
- width: 20px;
60
+ min-width: 20px;
61
61
  height: 20px;
62
62
  background-color: darkblue;
63
63
  border-radius: 20px;
@@ -5,16 +5,9 @@
5
5
  <i class="icon-edit fa-solid fa-pen-to-square"></i>
6
6
  </span>
7
7
  <div class="wrapper" v-if="showEdit">
8
- <input
9
- class="input"
10
- type="text"
11
- placeholder="Digite seu texto"
12
- @keyup.enter.prevent="showEdit = false"
13
- v-bind:value="value"
14
- v-on:input="$emit('input', $event.target.value)"
15
- v-if="showEdit"
16
- />
17
- <span @click="showEdit = false" v-if="showEdit">
8
+ <input class="input" type="text" placeholder="Digite seu texto" @keyup.enter.prevent="done" v-bind:value="value"
9
+ v-on:input="$emit('input', $event.target.value)" v-if="showEdit" />
10
+ <span @click="done" v-if="showEdit">
18
11
  <i class="fa-solid fa-check"></i>
19
12
  </span>
20
13
  </div>
@@ -24,12 +17,19 @@
24
17
  <script>
25
18
  export default {
26
19
  name: "InputTextEdit",
27
- props: ["value"],
20
+ props: ["params", "enter", "value"],
28
21
  data() {
29
22
  return {
30
23
  showEdit: false,
31
24
  };
32
25
  },
26
+ methods: {
27
+ done() {
28
+ this.showEdit = false;
29
+ if (this.enter) this.enter(this.params);
30
+ }
31
+ },
32
+
33
33
  };
34
34
  </script>
35
35
 
@@ -51,6 +51,7 @@ export default {
51
51
  border: 1px solid #eaedf3;
52
52
  box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 3%);
53
53
  }
54
+
54
55
  .wrapper span {
55
56
  width: 10px;
56
57
  text-align: center;
@@ -0,0 +1,69 @@
1
+ <template>
2
+ <div>
3
+ <Alert type="danger" v-if="data.listBillet.length > 0">
4
+ <span>
5
+ ATENÇÃO, existem <b>{{ data.listBillet.length }}</b> boleto(s) em atraso, regularize e evite suspensão do
6
+ serviço!
7
+ </span>
8
+ <div class="div-billet">
9
+ <div v-for="billet in data.listBillet">
10
+ Boleto vencido em <b>{{ billet.dueDate | moment("DD/MM/YYYY") }}</b> no valor de <b> {{ billet.value |
11
+ currency }}</b>!
12
+ <span class="title-payment" @click="openBillet(billet)">Efetuar pagamento...</span>
13
+ </div>
14
+ </div>
15
+ </Alert>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+
21
+ import Alert from "@nixweb/nixloc-ui/src/component/layout/Alert";
22
+
23
+ import axios from 'axios';
24
+
25
+ export default {
26
+ name: "Warning",
27
+ props: ["companyId"],
28
+ components: {
29
+ Alert
30
+ },
31
+ data() {
32
+ return {
33
+ data: [],
34
+ showBillet: false,
35
+ }
36
+ },
37
+ mounted() {
38
+ this.getAll();
39
+ },
40
+ methods: {
41
+ getAll() {
42
+ const apiUrl = `https://localhost:44347/api/v1/billing/billet/warning-billet-delayed?Any=${this.companyId}`;
43
+
44
+ axios.get(apiUrl)
45
+ .then(response => {
46
+ this.data = response.data;
47
+ })
48
+ .catch(error => {
49
+ console.error('Erro ao fazer a solicitação:', error);
50
+ });
51
+ },
52
+ openBillet(billet) {
53
+ const link = `https://app.boletocloud.com/boleto/2via/${billet.tokenBillet}`;
54
+ window.open(link, '_blank');
55
+ }
56
+ },
57
+ }
58
+ </script>
59
+
60
+ <style scoped>
61
+ .div-billet {
62
+ margin-top: 10px;
63
+ }
64
+
65
+ .title-payment {
66
+ color: darkblue;
67
+ cursor: pointer;
68
+ }
69
+ </style>