@nixweb/nixloc-ui 0.0.251 → 0.0.252
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
|
@@ -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" :
|
|
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: {
|
|
@@ -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
|
-
|
|
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
|
-
<
|
|
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() {
|