@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.
Files changed (68) hide show
  1. package/@nixweb/nixloc-ui/package.json +88 -88
  2. package/@nixweb/nixloc-ui/src/App.vue +13 -13
  3. package/@nixweb/nixloc-ui/src/component/forms/Button.vue +163 -163
  4. package/@nixweb/nixloc-ui/src/component/forms/CheckboxGroup.vue +69 -69
  5. package/@nixweb/nixloc-ui/src/component/forms/CheckboxServer.vue +192 -192
  6. package/@nixweb/nixloc-ui/src/component/forms/CheckboxSimple.vue +60 -60
  7. package/@nixweb/nixloc-ui/src/component/forms/Color.vue +38 -38
  8. package/@nixweb/nixloc-ui/src/component/forms/DateTime.vue +170 -170
  9. package/@nixweb/nixloc-ui/src/component/forms/Dropdown.vue +236 -236
  10. package/@nixweb/nixloc-ui/src/component/forms/EditorHtml.vue +132 -132
  11. package/@nixweb/nixloc-ui/src/component/forms/FileUpload.vue +170 -170
  12. package/@nixweb/nixloc-ui/src/component/forms/InputDecimal.vue +153 -153
  13. package/@nixweb/nixloc-ui/src/component/forms/InputNumber.vue +160 -160
  14. package/@nixweb/nixloc-ui/src/component/forms/InputPassword.vue +148 -148
  15. package/@nixweb/nixloc-ui/src/component/forms/InputText.vue +174 -174
  16. package/@nixweb/nixloc-ui/src/component/forms/Modal.vue +57 -57
  17. package/@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue +91 -91
  18. package/@nixweb/nixloc-ui/src/component/forms/Select.vue +378 -378
  19. package/@nixweb/nixloc-ui/src/component/forms/SelectStatic.vue +198 -198
  20. package/@nixweb/nixloc-ui/src/component/forms/Slider.vue +18 -18
  21. package/@nixweb/nixloc-ui/src/component/forms/TextArea.vue +138 -138
  22. package/@nixweb/nixloc-ui/src/component/layout/Alert.vue +88 -88
  23. package/@nixweb/nixloc-ui/src/component/layout/Badge.vue +111 -111
  24. package/@nixweb/nixloc-ui/src/component/layout/FixedBar.vue +103 -103
  25. package/@nixweb/nixloc-ui/src/component/layout/Header.vue +56 -56
  26. package/@nixweb/nixloc-ui/src/component/layout/LoadingFullPage.vue +27 -27
  27. package/@nixweb/nixloc-ui/src/component/layout/Menu.vue +287 -287
  28. package/@nixweb/nixloc-ui/src/component/layout/Molded.vue +30 -30
  29. package/@nixweb/nixloc-ui/src/component/layout/Panel.vue +185 -185
  30. package/@nixweb/nixloc-ui/src/component/layout/Popover.vue +126 -126
  31. package/@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue +57 -57
  32. package/@nixweb/nixloc-ui/src/component/layout/Wizard.vue +211 -211
  33. package/@nixweb/nixloc-ui/src/component/shared/Collapse.vue +131 -131
  34. package/@nixweb/nixloc-ui/src/component/shared/ExportPDF.vue +116 -116
  35. package/@nixweb/nixloc-ui/src/component/shared/HorizontalFilter.vue +64 -64
  36. package/@nixweb/nixloc-ui/src/component/shared/Loading.vue +107 -107
  37. package/@nixweb/nixloc-ui/src/component/shared/LoadingMoreButton.vue +23 -23
  38. package/@nixweb/nixloc-ui/src/component/shared/Messages.vue +109 -109
  39. package/@nixweb/nixloc-ui/src/component/shared/PDFViewer.vue +24 -24
  40. package/@nixweb/nixloc-ui/src/component/shared/Pagination.vue +108 -108
  41. package/@nixweb/nixloc-ui/src/component/shared/ProgressBar.vue +25 -25
  42. package/@nixweb/nixloc-ui/src/component/shared/QueryButton.vue +66 -66
  43. package/@nixweb/nixloc-ui/src/component/shared/Search.vue +174 -174
  44. package/@nixweb/nixloc-ui/src/component/shared/Table.vue +174 -174
  45. package/@nixweb/nixloc-ui/src/component/shared/TableButton.vue +36 -36
  46. package/@nixweb/nixloc-ui/src/component/shared/TableTotalization.vue +47 -47
  47. package/@nixweb/nixloc-ui/src/component/shared/Tip.vue +42 -42
  48. package/@nixweb/nixloc-ui/src/component/shared/Toast.vue +69 -69
  49. package/@nixweb/nixloc-ui/src/component/shared/VerticalFilter.vue +97 -97
  50. package/@nixweb/nixloc-ui/src/component/shared/query-builder/AddRule.vue +203 -203
  51. package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponentList.vue +70 -70
  52. package/@nixweb/nixloc-ui/src/component/shared/query-builder/QueryBuilder.vue +69 -69
  53. package/@nixweb/nixloc-ui/src/component/shared/query-builder/utilities.js +21 -21
  54. package/@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue +429 -429
  55. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateConfiguration.vue +64 -64
  56. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
  57. package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithTable.vue +62 -62
  58. package/@nixweb/nixloc-ui/src/config/axios.js +9 -9
  59. package/@nixweb/nixloc-ui/src/config/dicas.js +14 -14
  60. package/@nixweb/nixloc-ui/src/config/router.js +13 -13
  61. package/@nixweb/nixloc-ui/src/config/token.js +14 -14
  62. package/@nixweb/nixloc-ui/src/main.js +23 -23
  63. package/@nixweb/nixloc-ui/src/store/modules/generic.js +815 -815
  64. package/@nixweb/nixloc-ui/src/store/modules/validation.js +38 -38
  65. package/@nixweb/nixloc-ui/src/store/store.js +13 -13
  66. package/package.json +1 -1
  67. package/src/component/training/CourseView.vue +16 -7
  68. package/src/component/value-objects/Address.vue +4 -2
@@ -1,108 +1,108 @@
1
- <template>
2
- <div>
3
- <div class="pagination">
4
- <button class="btn-pagination" @click="previousPage" :disabled="currentPage === 1 || currentPage > totalPages">
5
- <i class="fa-solid fa-chevron-left"></i>
6
- </button>
7
- <div class="div-pagination text-center">
8
- <span v-if="isLoading('loadingLine')">
9
- <vue-loading type="bubbles" color="#FCA944" :size="{ width: '26px', height: '26px' }"></vue-loading>
10
- </span>
11
- <span v-else>
12
- <div>
13
- <span class="title">
14
- <span v-if="totalPages == 0">0</span>
15
- <span v-else>{{ currentPage }}</span> de {{ totalPages }}</span>
16
- </div>
17
- </span>
18
- </div>
19
- <button class="btn-pagination" @click="nextPage"
20
- :disabled="currentPage === totalPages || currentPage > totalPages">
21
- <i class="fa-solid fa-chevron-right"></i>
22
- </button>
23
- </div>
24
- </div>
25
- </template>
26
- <script>
27
-
28
- import { mapGetters, mapMutations, mapState } from "vuex";
29
-
30
- export default {
31
- props: {
32
- totalRecords: Number,
33
- },
34
- data() {
35
- return {
36
- currentPage: 1,
37
- totalPerPage: 10 // Substitua pelo número de registros por página desejado
38
- };
39
- },
40
- created() {
41
- var filter = this.getFilterStorage(this.$route.name);
42
- if (filter)
43
- this.currentPage = filter.baseParams.currentPage;
44
- },
45
- computed: {
46
- ...mapState("generic", ["paginations"]),
47
- ...mapGetters("generic", ["isLoading", "getFilterStorage"]),
48
- totalPages() {
49
- return Math.ceil(this.totalRecords / this.paginations.totalPerPage);
50
- },
51
- paginatedData() {
52
- const startIndex = (this.currentPage - 1) * this.paginations.totalPerPage;
53
- const endIndex = Math.min(startIndex + this.paginations.totalPerPage, this.totalRecords);
54
- return Array.from({ length: endIndex - startIndex }, (_, index) => index + startIndex + 1);
55
- }
56
- },
57
- methods: {
58
- ...mapMutations("generic", ["addEvent"]),
59
- nextPage() {
60
- if (this.currentPage < this.totalPages) {
61
- this.currentPage++;
62
- }
63
- this.addEvent({ name: "page-click", data: this.currentPage });
64
- },
65
- previousPage() {
66
- if (this.currentPage > 1) {
67
- this.currentPage--;
68
- }
69
- this.addEvent({ name: "page-click", data: this.currentPage });
70
- }
71
- }
72
- };
73
- </script>
74
-
75
- <style scoped>
76
- .div-pagination {
77
- width: 100px;
78
- }
79
-
80
- .btn-pagination {
81
- padding: 5px;
82
- cursor: pointer;
83
- border: none;
84
- min-width: 35px;
85
- border-radius: 30px !important;
86
- font-size: 13px !important;
87
- font-weight: 400;
88
- letter-spacing: 1px !important;
89
- }
90
-
91
-
92
- .pagination {
93
- display: flex;
94
- justify-content: end;
95
- align-items: center;
96
- margin-right: 10px;
97
- margin-bottom: 10px;
98
- }
99
-
100
- .pagination-button:hover {
101
- background-color: #ccc;
102
- }
103
-
104
- .pagination-button:disabled {
105
- opacity: 0.5;
106
- cursor: not-allowed;
107
- }
108
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="pagination">
4
+ <button class="btn-pagination" @click="previousPage" :disabled="currentPage === 1 || currentPage > totalPages">
5
+ <i class="fa-solid fa-chevron-left"></i>
6
+ </button>
7
+ <div class="div-pagination text-center">
8
+ <span v-if="isLoading('loadingLine')">
9
+ <vue-loading type="bubbles" color="#FCA944" :size="{ width: '26px', height: '26px' }"></vue-loading>
10
+ </span>
11
+ <span v-else>
12
+ <div>
13
+ <span class="title">
14
+ <span v-if="totalPages == 0">0</span>
15
+ <span v-else>{{ currentPage }}</span> de {{ totalPages }}</span>
16
+ </div>
17
+ </span>
18
+ </div>
19
+ <button class="btn-pagination" @click="nextPage"
20
+ :disabled="currentPage === totalPages || currentPage > totalPages">
21
+ <i class="fa-solid fa-chevron-right"></i>
22
+ </button>
23
+ </div>
24
+ </div>
25
+ </template>
26
+ <script>
27
+
28
+ import { mapGetters, mapMutations, mapState } from "vuex";
29
+
30
+ export default {
31
+ props: {
32
+ totalRecords: Number,
33
+ },
34
+ data() {
35
+ return {
36
+ currentPage: 1,
37
+ totalPerPage: 10 // Substitua pelo número de registros por página desejado
38
+ };
39
+ },
40
+ created() {
41
+ var filter = this.getFilterStorage(this.$route.name);
42
+ if (filter)
43
+ this.currentPage = filter.baseParams.currentPage;
44
+ },
45
+ computed: {
46
+ ...mapState("generic", ["paginations"]),
47
+ ...mapGetters("generic", ["isLoading", "getFilterStorage"]),
48
+ totalPages() {
49
+ return Math.ceil(this.totalRecords / this.paginations.totalPerPage);
50
+ },
51
+ paginatedData() {
52
+ const startIndex = (this.currentPage - 1) * this.paginations.totalPerPage;
53
+ const endIndex = Math.min(startIndex + this.paginations.totalPerPage, this.totalRecords);
54
+ return Array.from({ length: endIndex - startIndex }, (_, index) => index + startIndex + 1);
55
+ }
56
+ },
57
+ methods: {
58
+ ...mapMutations("generic", ["addEvent"]),
59
+ nextPage() {
60
+ if (this.currentPage < this.totalPages) {
61
+ this.currentPage++;
62
+ }
63
+ this.addEvent({ name: "page-click", data: this.currentPage });
64
+ },
65
+ previousPage() {
66
+ if (this.currentPage > 1) {
67
+ this.currentPage--;
68
+ }
69
+ this.addEvent({ name: "page-click", data: this.currentPage });
70
+ }
71
+ }
72
+ };
73
+ </script>
74
+
75
+ <style scoped>
76
+ .div-pagination {
77
+ width: 100px;
78
+ }
79
+
80
+ .btn-pagination {
81
+ padding: 5px;
82
+ cursor: pointer;
83
+ border: none;
84
+ min-width: 35px;
85
+ border-radius: 30px !important;
86
+ font-size: 13px !important;
87
+ font-weight: 400;
88
+ letter-spacing: 1px !important;
89
+ }
90
+
91
+
92
+ .pagination {
93
+ display: flex;
94
+ justify-content: end;
95
+ align-items: center;
96
+ margin-right: 10px;
97
+ margin-bottom: 10px;
98
+ }
99
+
100
+ .pagination-button:hover {
101
+ background-color: #ccc;
102
+ }
103
+
104
+ .pagination-button:disabled {
105
+ opacity: 0.5;
106
+ cursor: not-allowed;
107
+ }
108
+ </style>
@@ -1,25 +1,25 @@
1
- <template>
2
- <div>
3
- <progress-bar :bg-color="bColor" :bar-color="bgColor" :size="size" :text="text" :val="value" :max="max"
4
- bar-border-radius="10"></progress-bar>
5
- </div>
6
- </template>
7
- <script>
8
- import ProgressBar from "vue-simple-progress";
9
-
10
- // não mudar o nome Progress para ProgressBar
11
- export default {
12
- name: "Progress",
13
- components: {
14
- ProgressBar,
15
- },
16
- props: {
17
- bgColor: String,
18
- bColor: String,
19
- text: String,
20
- value: Number,
21
- max: Number,
22
- size: String,
23
- },
24
- };
25
- </script>
1
+ <template>
2
+ <div>
3
+ <progress-bar :bg-color="bColor" :bar-color="bgColor" :size="size" :text="text" :val="value" :max="max"
4
+ bar-border-radius="10"></progress-bar>
5
+ </div>
6
+ </template>
7
+ <script>
8
+ import ProgressBar from "vue-simple-progress";
9
+
10
+ // não mudar o nome Progress para ProgressBar
11
+ export default {
12
+ name: "Progress",
13
+ components: {
14
+ ProgressBar,
15
+ },
16
+ props: {
17
+ bgColor: String,
18
+ bColor: String,
19
+ text: String,
20
+ value: Number,
21
+ max: Number,
22
+ size: String,
23
+ },
24
+ };
25
+ </script>
@@ -1,66 +1,66 @@
1
- <template>
2
- <div>
3
- <div class="alignment" v-for="item in items" :key="item.title">
4
- <button
5
- :class="{
6
- 'button-query': true,
7
- }"
8
- @click="execute(item.valor)"
9
- >
10
- <span class="icon"> <i :class="item.classIcon"></i></span>
11
- <span class="title">{{ item.title }}</span>
12
- </button>
13
- </div>
14
- </div>
15
- </template>
16
- <script>
17
- export default {
18
- name: "QueryButton",
19
- props: ["items", "value", "clicked"],
20
- data() {
21
- return {
22
- currentValue: 0,
23
- };
24
- },
25
- methods: {
26
- execute(valor) {
27
- this.currentValue = valor;
28
- this.$emit("input", valor);
29
- if (this.clicked) this.clicked();
30
- },
31
- },
32
- };
33
- </script>
34
- <style scoped>
35
- .button-query {
36
- cursor: pointer;
37
- height: 35px;
38
- border: 1px solid #d5d5d5;
39
- background-color: white;
40
- border-radius: 3px;
41
- padding-left: 10px;
42
- padding-right: 7px;
43
- margin-right: 10px;
44
- margin-bottom: 10px;
45
- font-size: 16px;
46
- font-weight: normal;
47
- }
48
-
49
- .button-query:hover {
50
- background-color: #d98621;
51
- color: white;
52
- border: none;
53
- }
54
-
55
- .icon {
56
- font-size: 13px;
57
- }
58
-
59
- .title {
60
- font-size: 16px;
61
- }
62
-
63
- .alignment {
64
- display: inline-block;
65
- }
66
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="alignment" v-for="item in items" :key="item.title">
4
+ <button
5
+ :class="{
6
+ 'button-query': true,
7
+ }"
8
+ @click="execute(item.valor)"
9
+ >
10
+ <span class="icon"> <i :class="item.classIcon"></i></span>
11
+ <span class="title">{{ item.title }}</span>
12
+ </button>
13
+ </div>
14
+ </div>
15
+ </template>
16
+ <script>
17
+ export default {
18
+ name: "QueryButton",
19
+ props: ["items", "value", "clicked"],
20
+ data() {
21
+ return {
22
+ currentValue: 0,
23
+ };
24
+ },
25
+ methods: {
26
+ execute(valor) {
27
+ this.currentValue = valor;
28
+ this.$emit("input", valor);
29
+ if (this.clicked) this.clicked();
30
+ },
31
+ },
32
+ };
33
+ </script>
34
+ <style scoped>
35
+ .button-query {
36
+ cursor: pointer;
37
+ height: 35px;
38
+ border: 1px solid #d5d5d5;
39
+ background-color: white;
40
+ border-radius: 3px;
41
+ padding-left: 10px;
42
+ padding-right: 7px;
43
+ margin-right: 10px;
44
+ margin-bottom: 10px;
45
+ font-size: 16px;
46
+ font-weight: normal;
47
+ }
48
+
49
+ .button-query:hover {
50
+ background-color: #d98621;
51
+ color: white;
52
+ border: none;
53
+ }
54
+
55
+ .icon {
56
+ font-size: 13px;
57
+ }
58
+
59
+ .title {
60
+ font-size: 16px;
61
+ }
62
+
63
+ .alignment {
64
+ display: inline-block;
65
+ }
66
+ </style>