@nixweb/nixloc-ui 0.0.251 → 0.0.253

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.251",
3
+ "version": "0.0.253",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -26,7 +26,7 @@
26
26
  <i class="icon-dropdown" :class="item.classIcon"></i>
27
27
  </b-col>
28
28
  <b-col sm="10">
29
- <span class="title"> {{ item.title }}</span>
29
+ <span class="title-dropdown"> {{ item.title }}</span>
30
30
  </b-col>
31
31
  </b-row>
32
32
  </div>
@@ -8,17 +8,8 @@
8
8
  <br />
9
9
  </b-col>
10
10
  <b-col xs="6" sm="6" md="6" lg="4" xl="4">
11
- <VueToggles
12
- height="23"
13
- width="60"
14
- checkedText="Sim"
15
- uncheckedText="Não"
16
- :checkedBg="color"
17
- uncheckedBg="lightgrey"
18
- :disabled="disabled"
19
- :value="value"
20
- @click="clicked"
21
- />
11
+ <VueToggles height="23" width="60" checkedText="Sim" uncheckedText="Não" :checkedBg="color"
12
+ uncheckedBg="lightgrey" :disabled="disabled" :value="value" @click="clicked" />
22
13
  </b-col>
23
14
  </b-row>
24
15
  </div>
@@ -6,14 +6,15 @@
6
6
  <Modal v-if="isModal" :title="title" :width="450" :height="250" v-show="showModal(`confirmation${data.id}`)">
7
7
  <b-col sm="12">
8
8
  <div class="div-button text-center">
9
- <Button key="notConfirm" type="edit" title="cancel" size="small" :clicked="cancel" />
10
- <Button key="confirm" :type="type" title="Sim, confirmar" size="medium" :clicked="confirm" />
9
+ <Button key="notConfirm" type="edit" title="cancel" :disabled="disabled" size="small" :clicked="cancel" />
10
+ <Button key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled"
11
+ :clicked="confirm" />
11
12
  </div>
12
13
  </b-col>
13
14
  </Modal>
14
15
  <div v-else class="div-button text-center">
15
- <Button _key="notConfirm" type="edit" title="cancel" size="small" :clicked="cancel" />
16
- <Button _key="confirm" :type="type" title="Sim, confirmar" size="medium" :clicked="confirm" />
16
+ <Button _key="notConfirm" type="edit" title="cancel" size="small" :disabled="disabled" :clicked="cancel" />
17
+ <Button _key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled" :clicked="confirm" />
17
18
  </div>
18
19
  </div>
19
20
  </template>
@@ -38,6 +39,10 @@ export default {
38
39
  type: Boolean,
39
40
  default: true,
40
41
  },
42
+ disabled: {
43
+ type: Boolean,
44
+ default: false,
45
+ },
41
46
  confirmed: Function,
42
47
  },
43
48
  methods: {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="div-header">
3
- <div class="title">Relatório {{ $route.params.name }}</span></div>
3
+ <div class="title-report-header">Relatório {{ $route.params.name }}</span></div>
4
4
  <div class="side-by-side div-tag" v-for="tag in tags" :key="tag.id">
5
5
  <span>{{ tag.title }}</span> <span>{{ tag.value }}</span>
6
6
  <span>,</span>
@@ -30,7 +30,7 @@ export default {
30
30
  margin-right: 10px;
31
31
  }
32
32
 
33
- .title {
33
+ .title-report-header {
34
34
  font-size: 18px;
35
35
  }
36
36
  </style>
@@ -2,14 +2,14 @@
2
2
  <div>
3
3
  <hr class="hr-report" />
4
4
  <div class="text-right">
5
- <span class="title"> Total de Registro(s) </span>
6
- <span class="title value"> {{ totalRecords }} </span>
5
+ <span class="title-report-header"> Total de Registro(s) </span>
6
+ <span class="title-report-header value-report-header"> {{ totalRecords }} </span>
7
7
  </div>
8
8
  <div class="text-right" v-for="item in totalization" :key="item.title">
9
9
  <span :class="convertName(item[0]).classCss">
10
- <span class="title">
10
+ <span class="title-report-header">
11
11
  {{ convertName(item[0]).title }}
12
- <span class="title value">
12
+ <span class="title-report-header value-report-header">
13
13
  <span v-if="convertName(item[0]).type == 'currency'">
14
14
  {{ item[1] | currency }}
15
15
  </span>
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </template>
25
25
  <script>
26
- import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
26
+ import { mapState } from "vuex";
27
27
 
28
28
  export default {
29
29
  name: "TotalizationReport",
@@ -43,12 +43,12 @@ export default {
43
43
  </script>
44
44
 
45
45
  <style scoped>
46
- .title {
46
+ .title-report-header {
47
47
  font-size: 15px;
48
48
  font-weight: 400;
49
49
  }
50
50
 
51
- .value {
51
+ .value-report-header {
52
52
  margin-left: 50px;
53
53
  }
54
54
 
@@ -46,10 +46,12 @@
46
46
  <Modal title="Tem certeza que deseja remover?" :width="500" v-show="showModal('confirmRemoved')">
47
47
  <Alert type="warning">
48
48
  <span>
49
- Atenção, todos os registros relacionados também serão excluídos/cancelados, esta ação é irreversível!
49
+ ATENÇÃO, todos os registros relacionados também serão excluídos/cancelados, esta ação é irreversível...
50
50
  </span>
51
51
  </Alert>
52
- <Confirmation :isModal="false" title="Você tem certeza?" type="danger" :confirmed="removeSelected" />
52
+ <InputText title="Digite Remover para confirmar" :maxLength="7" :required="false" v-model="confirmRemove" />
53
+ <Confirmation :isModal="false" :disabled="confirmRemove != 'Remover'" title="Você tem certeza?" type="danger"
54
+ :confirmed="removeSelected" />
53
55
  </Modal>
54
56
  </div>
55
57
  </template>
@@ -66,6 +68,7 @@ import Loading from "../shared/Loading.vue";
66
68
  import Confirmation from "@nixweb/nixloc-ui/src/component/shared/Confirmation.vue";
67
69
  import Alert from "@nixweb/nixloc-ui/src/component/layout/Alert";
68
70
  import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
71
+ import InputText from "@nixweb/nixloc-ui/src/component/forms/InputText";
69
72
 
70
73
  import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
71
74
 
@@ -98,6 +101,7 @@ export default {
98
101
  FixedBar,
99
102
  Button,
100
103
  Table,
104
+ InputText,
101
105
  Pagination,
102
106
  },
103
107
  data() {
@@ -114,6 +118,7 @@ export default {
114
118
  },
115
119
  paramsFilter: [],
116
120
  dynamicFilter: {},
121
+ confirmRemove: "",
117
122
  };
118
123
  },
119
124
  created() {