@nixweb/nixloc-ui 1.9.0 → 1.11.0
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/@nixweb/nixloc-ui/package.json +88 -88
- package/@nixweb/nixloc-ui/src/App.vue +13 -13
- package/@nixweb/nixloc-ui/src/component/forms/Button.vue +163 -163
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxGroup.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxServer.vue +192 -192
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxSimple.vue +60 -60
- package/@nixweb/nixloc-ui/src/component/forms/Color.vue +38 -38
- package/@nixweb/nixloc-ui/src/component/forms/DateTime.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/Dropdown.vue +236 -236
- package/@nixweb/nixloc-ui/src/component/forms/EditorHtml.vue +132 -132
- package/@nixweb/nixloc-ui/src/component/forms/FileUpload.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/InputDecimal.vue +153 -153
- package/@nixweb/nixloc-ui/src/component/forms/InputNumber.vue +160 -160
- package/@nixweb/nixloc-ui/src/component/forms/InputPassword.vue +148 -148
- package/@nixweb/nixloc-ui/src/component/forms/InputText.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/forms/Modal.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue +91 -91
- package/@nixweb/nixloc-ui/src/component/forms/Select.vue +378 -378
- package/@nixweb/nixloc-ui/src/component/forms/SelectStatic.vue +198 -198
- package/@nixweb/nixloc-ui/src/component/forms/Slider.vue +18 -18
- package/@nixweb/nixloc-ui/src/component/forms/TextArea.vue +138 -138
- package/@nixweb/nixloc-ui/src/component/layout/Alert.vue +88 -88
- package/@nixweb/nixloc-ui/src/component/layout/Badge.vue +111 -111
- package/@nixweb/nixloc-ui/src/component/layout/FixedBar.vue +103 -103
- package/@nixweb/nixloc-ui/src/component/layout/Header.vue +56 -56
- package/@nixweb/nixloc-ui/src/component/layout/LoadingFullPage.vue +27 -27
- package/@nixweb/nixloc-ui/src/component/layout/Menu.vue +287 -287
- package/@nixweb/nixloc-ui/src/component/layout/Molded.vue +30 -30
- package/@nixweb/nixloc-ui/src/component/layout/Panel.vue +185 -185
- package/@nixweb/nixloc-ui/src/component/layout/Popover.vue +126 -126
- package/@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/layout/Wizard.vue +211 -211
- package/@nixweb/nixloc-ui/src/component/shared/Collapse.vue +131 -131
- package/@nixweb/nixloc-ui/src/component/shared/ExportPDF.vue +116 -116
- package/@nixweb/nixloc-ui/src/component/shared/HorizontalFilter.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/shared/Loading.vue +107 -107
- package/@nixweb/nixloc-ui/src/component/shared/LoadingMoreButton.vue +23 -23
- package/@nixweb/nixloc-ui/src/component/shared/Messages.vue +109 -109
- package/@nixweb/nixloc-ui/src/component/shared/PDFViewer.vue +24 -24
- package/@nixweb/nixloc-ui/src/component/shared/Pagination.vue +108 -108
- package/@nixweb/nixloc-ui/src/component/shared/ProgressBar.vue +25 -25
- package/@nixweb/nixloc-ui/src/component/shared/QueryButton.vue +66 -66
- package/@nixweb/nixloc-ui/src/component/shared/Search.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/Table.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/TableButton.vue +36 -36
- package/@nixweb/nixloc-ui/src/component/shared/TableTotalization.vue +47 -47
- package/@nixweb/nixloc-ui/src/component/shared/Tip.vue +42 -42
- package/@nixweb/nixloc-ui/src/component/shared/Toast.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/VerticalFilter.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/AddRule.vue +203 -203
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponentList.vue +70 -70
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/utilities.js +21 -21
- package/@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue +429 -429
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateConfiguration.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithTable.vue +62 -62
- package/@nixweb/nixloc-ui/src/config/axios.js +9 -9
- package/@nixweb/nixloc-ui/src/config/dicas.js +14 -14
- package/@nixweb/nixloc-ui/src/config/router.js +13 -13
- package/@nixweb/nixloc-ui/src/config/token.js +14 -14
- package/@nixweb/nixloc-ui/src/main.js +23 -23
- package/@nixweb/nixloc-ui/src/store/modules/generic.js +815 -815
- package/@nixweb/nixloc-ui/src/store/modules/validation.js +38 -38
- package/@nixweb/nixloc-ui/src/store/store.js +13 -13
- package/package.json +1 -1
- package/src/component/training/CourseView.vue +16 -7
- package/src/component/value-objects/Address.vue +4 -2
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
<template></template>
|
|
2
|
-
|
|
3
|
-
<script>
|
|
4
|
-
import { mapState } from "vuex";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
name: "Notificacao",
|
|
8
|
-
computed: {
|
|
9
|
-
...mapState("generic", ["toast"]),
|
|
10
|
-
},
|
|
11
|
-
watch: {
|
|
12
|
-
toast: {
|
|
13
|
-
handler(value) {
|
|
14
|
-
this.notifica(value);
|
|
15
|
-
},
|
|
16
|
-
deep: true,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
notifica(value) {
|
|
21
|
-
if (value.type == "postApi" || value.type == "putApi")
|
|
22
|
-
this.$toasted.show("Salvo com sucesso", {
|
|
23
|
-
type: "success",
|
|
24
|
-
});
|
|
25
|
-
if (value.type == "postApiError" || value.type == "putApiErro") {
|
|
26
|
-
this.$toasted.show("Não foi possível adicionar/modificar", {
|
|
27
|
-
type: "error",
|
|
28
|
-
});
|
|
29
|
-
this.voltarParaTopo();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (value.type == "removerTodosApiSucesso")
|
|
33
|
-
this.$toasted.show("Removido com sucesso", {
|
|
34
|
-
type: "success",
|
|
35
|
-
});
|
|
36
|
-
if (value.type == "removerTodosApiErro") {
|
|
37
|
-
this.$toasted.show("Não foi possível remover", {
|
|
38
|
-
type: "error",
|
|
39
|
-
});
|
|
40
|
-
this.voltarParaTopo();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (value.type == "noPermission") {
|
|
44
|
-
this.$toasted.show("Usuário sem permissão", {
|
|
45
|
-
type: "error",
|
|
46
|
-
});
|
|
47
|
-
this.voltarParaTopo();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (value.type == "falhaGenerica") {
|
|
51
|
-
this.$toasted.show("Ops! Falha de servidor", {
|
|
52
|
-
type: "error",
|
|
53
|
-
});
|
|
54
|
-
this.voltarParaTopo();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (value.type == "messageError") {
|
|
58
|
-
this.$toasted.show("Ops! Algo deu errado", {
|
|
59
|
-
type: "error",
|
|
60
|
-
});
|
|
61
|
-
this.voltarParaTopo();
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
voltarParaTopo() {
|
|
65
|
-
window.scrollTo(0, 0);
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
1
|
+
<template></template>
|
|
2
|
+
|
|
3
|
+
<script>
|
|
4
|
+
import { mapState } from "vuex";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
name: "Notificacao",
|
|
8
|
+
computed: {
|
|
9
|
+
...mapState("generic", ["toast"]),
|
|
10
|
+
},
|
|
11
|
+
watch: {
|
|
12
|
+
toast: {
|
|
13
|
+
handler(value) {
|
|
14
|
+
this.notifica(value);
|
|
15
|
+
},
|
|
16
|
+
deep: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
methods: {
|
|
20
|
+
notifica(value) {
|
|
21
|
+
if (value.type == "postApi" || value.type == "putApi")
|
|
22
|
+
this.$toasted.show("Salvo com sucesso", {
|
|
23
|
+
type: "success",
|
|
24
|
+
});
|
|
25
|
+
if (value.type == "postApiError" || value.type == "putApiErro") {
|
|
26
|
+
this.$toasted.show("Não foi possível adicionar/modificar", {
|
|
27
|
+
type: "error",
|
|
28
|
+
});
|
|
29
|
+
this.voltarParaTopo();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (value.type == "removerTodosApiSucesso")
|
|
33
|
+
this.$toasted.show("Removido com sucesso", {
|
|
34
|
+
type: "success",
|
|
35
|
+
});
|
|
36
|
+
if (value.type == "removerTodosApiErro") {
|
|
37
|
+
this.$toasted.show("Não foi possível remover", {
|
|
38
|
+
type: "error",
|
|
39
|
+
});
|
|
40
|
+
this.voltarParaTopo();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (value.type == "noPermission") {
|
|
44
|
+
this.$toasted.show("Usuário sem permissão", {
|
|
45
|
+
type: "error",
|
|
46
|
+
});
|
|
47
|
+
this.voltarParaTopo();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (value.type == "falhaGenerica") {
|
|
51
|
+
this.$toasted.show("Ops! Falha de servidor", {
|
|
52
|
+
type: "error",
|
|
53
|
+
});
|
|
54
|
+
this.voltarParaTopo();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (value.type == "messageError") {
|
|
58
|
+
this.$toasted.show("Ops! Algo deu errado", {
|
|
59
|
+
type: "error",
|
|
60
|
+
});
|
|
61
|
+
this.voltarParaTopo();
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
voltarParaTopo() {
|
|
65
|
+
window.scrollTo(0, 0);
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
</script>
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div
|
|
4
|
-
class="molded-button"
|
|
5
|
-
:class="{ fechado: !showFilter, aberto: showFilter }"
|
|
6
|
-
v-show="!showFilter"
|
|
7
|
-
>
|
|
8
|
-
<i class="fas fa-arrow-circle-left"></i>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<transition name="slide-fade">
|
|
12
|
-
<div
|
|
13
|
-
class="molded-button button-recolher"
|
|
14
|
-
v-show="showFilter"
|
|
15
|
-
@click="showFilter = false"
|
|
16
|
-
>
|
|
17
|
-
<i class="fas fa-arrow-circle-right"></i>
|
|
18
|
-
</div>
|
|
19
|
-
</transition>
|
|
20
|
-
|
|
21
|
-
<transition name="slide-fade"> </transition>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
import { mapMutations } from "vuex";
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
components: {},
|
|
30
|
-
data() {
|
|
31
|
-
return {
|
|
32
|
-
showFilter: false,
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style scoped>
|
|
39
|
-
.molded {
|
|
40
|
-
background: white;
|
|
41
|
-
border-left: solid 1px #dbdee0;
|
|
42
|
-
font-size: 13px;
|
|
43
|
-
height: 100%;
|
|
44
|
-
width: 350px;
|
|
45
|
-
right: 0px;
|
|
46
|
-
padding: 10px;
|
|
47
|
-
position: fixed;
|
|
48
|
-
-webkit-box-shadow: 20px 20px 20px 20px rgba(124, 125, 129, 0.53);
|
|
49
|
-
box-shadow: 20px 20px 20px 20px rgba(124, 125, 129, 0.53);
|
|
50
|
-
z-index: 999;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.molded-button {
|
|
54
|
-
font-size: 18px;
|
|
55
|
-
background: #ffffff;
|
|
56
|
-
border: solid 1px #dbdfe9;
|
|
57
|
-
border-radius: 5px;
|
|
58
|
-
color: #577696;
|
|
59
|
-
height: 40px;
|
|
60
|
-
width: 80px;
|
|
61
|
-
line-height: 32px;
|
|
62
|
-
padding-top: 3px;
|
|
63
|
-
padding-right: 35px;
|
|
64
|
-
text-align: center;
|
|
65
|
-
position: fixed;
|
|
66
|
-
top: 160px;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
z-index: 999;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.button-recolher {
|
|
72
|
-
padding-left: 12px;
|
|
73
|
-
padding-right: 418px;
|
|
74
|
-
right: -38px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.aberto {
|
|
78
|
-
right: 365px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.fechado {
|
|
82
|
-
right: -38px;
|
|
83
|
-
color: #577696;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.slide-fade-enter-active {
|
|
87
|
-
transition: all 0.2s ease;
|
|
88
|
-
}
|
|
89
|
-
.slide-fade-leave-active {
|
|
90
|
-
transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
|
|
91
|
-
}
|
|
92
|
-
.slide-fade-enter,
|
|
93
|
-
.slide-fade-leave-to {
|
|
94
|
-
transform: translateX(200px);
|
|
95
|
-
opacity: 0;
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div
|
|
4
|
+
class="molded-button"
|
|
5
|
+
:class="{ fechado: !showFilter, aberto: showFilter }"
|
|
6
|
+
v-show="!showFilter"
|
|
7
|
+
>
|
|
8
|
+
<i class="fas fa-arrow-circle-left"></i>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<transition name="slide-fade">
|
|
12
|
+
<div
|
|
13
|
+
class="molded-button button-recolher"
|
|
14
|
+
v-show="showFilter"
|
|
15
|
+
@click="showFilter = false"
|
|
16
|
+
>
|
|
17
|
+
<i class="fas fa-arrow-circle-right"></i>
|
|
18
|
+
</div>
|
|
19
|
+
</transition>
|
|
20
|
+
|
|
21
|
+
<transition name="slide-fade"> </transition>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { mapMutations } from "vuex";
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
components: {},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
showFilter: false,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style scoped>
|
|
39
|
+
.molded {
|
|
40
|
+
background: white;
|
|
41
|
+
border-left: solid 1px #dbdee0;
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
height: 100%;
|
|
44
|
+
width: 350px;
|
|
45
|
+
right: 0px;
|
|
46
|
+
padding: 10px;
|
|
47
|
+
position: fixed;
|
|
48
|
+
-webkit-box-shadow: 20px 20px 20px 20px rgba(124, 125, 129, 0.53);
|
|
49
|
+
box-shadow: 20px 20px 20px 20px rgba(124, 125, 129, 0.53);
|
|
50
|
+
z-index: 999;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.molded-button {
|
|
54
|
+
font-size: 18px;
|
|
55
|
+
background: #ffffff;
|
|
56
|
+
border: solid 1px #dbdfe9;
|
|
57
|
+
border-radius: 5px;
|
|
58
|
+
color: #577696;
|
|
59
|
+
height: 40px;
|
|
60
|
+
width: 80px;
|
|
61
|
+
line-height: 32px;
|
|
62
|
+
padding-top: 3px;
|
|
63
|
+
padding-right: 35px;
|
|
64
|
+
text-align: center;
|
|
65
|
+
position: fixed;
|
|
66
|
+
top: 160px;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
z-index: 999;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.button-recolher {
|
|
72
|
+
padding-left: 12px;
|
|
73
|
+
padding-right: 418px;
|
|
74
|
+
right: -38px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.aberto {
|
|
78
|
+
right: 365px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.fechado {
|
|
82
|
+
right: -38px;
|
|
83
|
+
color: #577696;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.slide-fade-enter-active {
|
|
87
|
+
transition: all 0.2s ease;
|
|
88
|
+
}
|
|
89
|
+
.slide-fade-leave-active {
|
|
90
|
+
transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
|
|
91
|
+
}
|
|
92
|
+
.slide-fade-enter,
|
|
93
|
+
.slide-fade-leave-to {
|
|
94
|
+
transform: translateX(200px);
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
</style>
|