@nixweb/nixloc-ui 1.10.0 → 1.12.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 (70) 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/forms/InputDecimal.vue +18 -5
  68. package/src/component/training/CourseView.vue +16 -7
  69. package/src/component/value-objects/Address.vue +35 -19
  70. package/src/store/modules/generic.js +0 -1
@@ -1,174 +1,174 @@
1
- <template>
2
- <div>
3
- <div class="icon-print" v-print="'#printTable'">
4
- <i title="Imprimir" class="fas fa-print"></i>
5
- </div>
6
- <table id="printTable" class="table table-responsive-xs">
7
- <thead>
8
- <tr>
9
- <th class="td-checkbox" v-if="showChecks">
10
- <div class="hide-print">
11
- <b-form-checkbox v-model="selectAll" @change="select" />
12
- </div>
13
- </th>
14
- <th v-for="(obj, ind) in header" :key="ind">
15
- <div class="title-margem" :class="obj.classCssTitle">
16
- <i class="fas fa-search" v-if="obj.iconSearch"></i>
17
- <span class="title-header"> {{ obj.title }}</span>
18
- </div>
19
- </th>
20
- </tr>
21
- </thead>
22
- <draggable v-model="data" tag="tbody" @change="checkMove" :options="{ disabled: !dragAndDrop }">
23
- <tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
24
- <td class="td-checkbox" v-if="showChecks">
25
- <div class="hide-print" :class="{ 'center-vertical': row.photo != null }">
26
- <b-form-checkbox v-model="selected" :value="row.id" />
27
- </div>
28
- </td>
29
- <td v-for="(obj, ind) in header" :key="ind" :class="{ 'drag-and-drop': dragAndDrop }">
30
- <TableItem :obj="obj" :row="row" />
31
- </td>
32
- </tr>
33
- </draggable>
34
- <tbody v-show="data.length == 0">
35
- <tr>
36
- <td colspan="12">
37
- <span>Nenhum registro encontrado!</span>
38
- </td>
39
- </tr>
40
- </tbody>
41
- </table>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- import TableItem from "@nixweb/nixloc-ui/src/component/shared/TableItem.vue";
47
- import print from "vue-print-nb";
48
-
49
- import draggable from "vuedraggable";
50
-
51
- import { mapState, mapMutations, mapActions } from "vuex";
52
-
53
- export default {
54
- components: { draggable, TableItem },
55
- directives: {
56
- print,
57
- },
58
- props: {
59
- header: Array,
60
- data: Array,
61
- showChecks: {
62
- type: Boolean,
63
- default: true,
64
- },
65
- dragAndDrop: {
66
- type: Boolean,
67
- default: false,
68
- },
69
- },
70
- data() {
71
- return {
72
- selectAll: false,
73
- dataDragging: [],
74
- };
75
- },
76
- computed: {
77
- ...mapState("generic", ["selected"]),
78
- selected: {
79
- get() {
80
- return this.$store.state.generic.selected;
81
- },
82
- set(value) {
83
- this.addSelected(value);
84
- },
85
- },
86
- },
87
- methods: {
88
- ...mapMutations("generic", ["addSelected", "addEvent"]),
89
- ...mapActions("generic", ["pdfApi"]),
90
- select() {
91
- this.addSelected([]);
92
- if (this.selectAll) {
93
- for (let i in this.data) {
94
- this.selected.push(this.data[i].id);
95
- }
96
- }
97
- },
98
- checkMove() {
99
- if (this.dragAndDrop) {
100
- var listIds = [];
101
- this.data.forEach((item) => {
102
- listIds.push(item.id);
103
- });
104
-
105
- this.addEvent({
106
- name: "tableDragAndDrop",
107
- data: { listIds: listIds },
108
- });
109
- }
110
- },
111
- },
112
- beforeDestroy() {
113
- this.addSelected([]);
114
- },
115
- };
116
- </script>
117
-
118
- <style scoped>
119
- table tbody tr td {
120
- max-width: 350px;
121
- }
122
-
123
- .table th,
124
- .table td {
125
- height: 10px !important;
126
- padding-left: 5px !important;
127
- padding-top: 7px !important;
128
- padding-bottom: 5px !important;
129
- padding-right: 5px !important;
130
- border-bottom: 0px !important;
131
- }
132
-
133
- .td-checkbox {
134
- width: 30px;
135
- }
136
-
137
- tr:hover {
138
- background-color: #fafafc;
139
- }
140
-
141
- .title-header {
142
- font-size: 13px;
143
- color: #757d8c;
144
- font-weight: 600;
145
- text-transform: uppercase;
146
- letter-spacing: 0.5px !important;
147
- }
148
-
149
- .table-number {
150
- font-size: 14px;
151
- font-weight: bold;
152
- }
153
-
154
- .table-main {
155
- color: #757d8c;
156
- max-width: 200px;
157
- }
158
-
159
- .drag-and-drop {
160
- cursor: move;
161
- }
162
-
163
- .icon-print {
164
- font-size: 16px;
165
- cursor: pointer;
166
- margin-bottom: 5px;
167
- width: 100px;
168
- }
169
-
170
- .title-table-print {
171
- font-size: 13.8px;
172
- margin-left: 6px;
173
- }
174
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="icon-print" v-print="'#printTable'">
4
+ <i title="Imprimir" class="fas fa-print"></i>
5
+ </div>
6
+ <table id="printTable" class="table table-responsive-xs">
7
+ <thead>
8
+ <tr>
9
+ <th class="td-checkbox" v-if="showChecks">
10
+ <div class="hide-print">
11
+ <b-form-checkbox v-model="selectAll" @change="select" />
12
+ </div>
13
+ </th>
14
+ <th v-for="(obj, ind) in header" :key="ind">
15
+ <div class="title-margem" :class="obj.classCssTitle">
16
+ <i class="fas fa-search" v-if="obj.iconSearch"></i>
17
+ <span class="title-header"> {{ obj.title }}</span>
18
+ </div>
19
+ </th>
20
+ </tr>
21
+ </thead>
22
+ <draggable v-model="data" tag="tbody" @change="checkMove" :options="{ disabled: !dragAndDrop }">
23
+ <tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
24
+ <td class="td-checkbox" v-if="showChecks">
25
+ <div class="hide-print" :class="{ 'center-vertical': row.photo != null }">
26
+ <b-form-checkbox v-model="selected" :value="row.id" />
27
+ </div>
28
+ </td>
29
+ <td v-for="(obj, ind) in header" :key="ind" :class="{ 'drag-and-drop': dragAndDrop }">
30
+ <TableItem :obj="obj" :row="row" />
31
+ </td>
32
+ </tr>
33
+ </draggable>
34
+ <tbody v-show="data.length == 0">
35
+ <tr>
36
+ <td colspan="12">
37
+ <span>Nenhum registro encontrado!</span>
38
+ </td>
39
+ </tr>
40
+ </tbody>
41
+ </table>
42
+ </div>
43
+ </template>
44
+
45
+ <script>
46
+ import TableItem from "@nixweb/nixloc-ui/src/component/shared/TableItem.vue";
47
+ import print from "vue-print-nb";
48
+
49
+ import draggable from "vuedraggable";
50
+
51
+ import { mapState, mapMutations, mapActions } from "vuex";
52
+
53
+ export default {
54
+ components: { draggable, TableItem },
55
+ directives: {
56
+ print,
57
+ },
58
+ props: {
59
+ header: Array,
60
+ data: Array,
61
+ showChecks: {
62
+ type: Boolean,
63
+ default: true,
64
+ },
65
+ dragAndDrop: {
66
+ type: Boolean,
67
+ default: false,
68
+ },
69
+ },
70
+ data() {
71
+ return {
72
+ selectAll: false,
73
+ dataDragging: [],
74
+ };
75
+ },
76
+ computed: {
77
+ ...mapState("generic", ["selected"]),
78
+ selected: {
79
+ get() {
80
+ return this.$store.state.generic.selected;
81
+ },
82
+ set(value) {
83
+ this.addSelected(value);
84
+ },
85
+ },
86
+ },
87
+ methods: {
88
+ ...mapMutations("generic", ["addSelected", "addEvent"]),
89
+ ...mapActions("generic", ["pdfApi"]),
90
+ select() {
91
+ this.addSelected([]);
92
+ if (this.selectAll) {
93
+ for (let i in this.data) {
94
+ this.selected.push(this.data[i].id);
95
+ }
96
+ }
97
+ },
98
+ checkMove() {
99
+ if (this.dragAndDrop) {
100
+ var listIds = [];
101
+ this.data.forEach((item) => {
102
+ listIds.push(item.id);
103
+ });
104
+
105
+ this.addEvent({
106
+ name: "tableDragAndDrop",
107
+ data: { listIds: listIds },
108
+ });
109
+ }
110
+ },
111
+ },
112
+ beforeDestroy() {
113
+ this.addSelected([]);
114
+ },
115
+ };
116
+ </script>
117
+
118
+ <style scoped>
119
+ table tbody tr td {
120
+ max-width: 350px;
121
+ }
122
+
123
+ .table th,
124
+ .table td {
125
+ height: 10px !important;
126
+ padding-left: 5px !important;
127
+ padding-top: 7px !important;
128
+ padding-bottom: 5px !important;
129
+ padding-right: 5px !important;
130
+ border-bottom: 0px !important;
131
+ }
132
+
133
+ .td-checkbox {
134
+ width: 30px;
135
+ }
136
+
137
+ tr:hover {
138
+ background-color: #fafafc;
139
+ }
140
+
141
+ .title-header {
142
+ font-size: 13px;
143
+ color: #757d8c;
144
+ font-weight: 600;
145
+ text-transform: uppercase;
146
+ letter-spacing: 0.5px !important;
147
+ }
148
+
149
+ .table-number {
150
+ font-size: 14px;
151
+ font-weight: bold;
152
+ }
153
+
154
+ .table-main {
155
+ color: #757d8c;
156
+ max-width: 200px;
157
+ }
158
+
159
+ .drag-and-drop {
160
+ cursor: move;
161
+ }
162
+
163
+ .icon-print {
164
+ font-size: 16px;
165
+ cursor: pointer;
166
+ margin-bottom: 5px;
167
+ width: 100px;
168
+ }
169
+
170
+ .title-table-print {
171
+ font-size: 13.8px;
172
+ margin-left: 6px;
173
+ }
174
+ </style>
@@ -1,36 +1,36 @@
1
- <template>
2
- <div>
3
- <Button
4
- v-if="obj.typeButton == 'default'"
5
- :key="row.id"
6
- :title="obj.button.title"
7
- :type="obj.button.type"
8
- :size="obj.button.size"
9
- :classIcon="obj.button.classIcon"
10
- :eventName="obj.button.eventName"
11
- :eventData="row"
12
- />
13
- <Dropdown
14
- v-if="obj.typeButton == 'dropdown'"
15
- :title="obj.button.title"
16
- :type="obj.button.type"
17
- :size="obj.button.size"
18
- :classIcon="obj.button.classIcon"
19
- :param="row"
20
- :items="obj.button.items"
21
- />
22
- </div>
23
- </template>
24
-
25
- <script>
26
- import Dropdown from "../forms/Dropdown";
27
- import Button from "../forms/Button";
28
- export default {
29
- name: "TableButton",
30
- components: { Button, Dropdown },
31
- props: {
32
- obj: Object,
33
- row: Object,
34
- },
35
- };
36
- </script>
1
+ <template>
2
+ <div>
3
+ <Button
4
+ v-if="obj.typeButton == 'default'"
5
+ :key="row.id"
6
+ :title="obj.button.title"
7
+ :type="obj.button.type"
8
+ :size="obj.button.size"
9
+ :classIcon="obj.button.classIcon"
10
+ :eventName="obj.button.eventName"
11
+ :eventData="row"
12
+ />
13
+ <Dropdown
14
+ v-if="obj.typeButton == 'dropdown'"
15
+ :title="obj.button.title"
16
+ :type="obj.button.type"
17
+ :size="obj.button.size"
18
+ :classIcon="obj.button.classIcon"
19
+ :param="row"
20
+ :items="obj.button.items"
21
+ />
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import Dropdown from "../forms/Dropdown";
27
+ import Button from "../forms/Button";
28
+ export default {
29
+ name: "TableButton",
30
+ components: { Button, Dropdown },
31
+ props: {
32
+ obj: Object,
33
+ row: Object,
34
+ },
35
+ };
36
+ </script>
@@ -1,47 +1,47 @@
1
- <template>
2
- <div>
3
- <div
4
- class="badge-side-by-side text-center"
5
- v-for="item in totalization"
6
- :key="item.title"
7
- >
8
- <div class="badge-totalization" :class="item.classCss">
9
- <span>{{ item.title }} </span>
10
- <span>{{ item.value | currency }}</span>
11
- </div>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- export default {
18
- name: "TableTotalization",
19
- props: {
20
- totalization: Array,
21
- },
22
- };
23
- </script>
24
-
25
- <style scoped>
26
- .badge-side-by-side {
27
- display: inline-block;
28
- margin-right: 3px;
29
- margin-bottom: 10px;
30
- }
31
-
32
- .badge-totalization {
33
- border: 1px solid #dbdee0;
34
- padding-left: 5px;
35
- padding-right: 5px;
36
- border-radius: 30px;
37
- font-size: 14px;
38
- }
39
-
40
- .revenue {
41
- color: darkblue;
42
- }
43
-
44
- .expense {
45
- color: red;
46
- }
47
- </style>
1
+ <template>
2
+ <div>
3
+ <div
4
+ class="badge-side-by-side text-center"
5
+ v-for="item in totalization"
6
+ :key="item.title"
7
+ >
8
+ <div class="badge-totalization" :class="item.classCss">
9
+ <span>{{ item.title }} </span>
10
+ <span>{{ item.value | currency }}</span>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ name: "TableTotalization",
19
+ props: {
20
+ totalization: Array,
21
+ },
22
+ };
23
+ </script>
24
+
25
+ <style scoped>
26
+ .badge-side-by-side {
27
+ display: inline-block;
28
+ margin-right: 3px;
29
+ margin-bottom: 10px;
30
+ }
31
+
32
+ .badge-totalization {
33
+ border: 1px solid #dbdee0;
34
+ padding-left: 5px;
35
+ padding-right: 5px;
36
+ border-radius: 30px;
37
+ font-size: 14px;
38
+ }
39
+
40
+ .revenue {
41
+ color: darkblue;
42
+ }
43
+
44
+ .expense {
45
+ color: red;
46
+ }
47
+ </style>
@@ -1,42 +1,42 @@
1
- <template>
2
- <span class="tip" v-if="title">
3
- <i
4
- class="fal fa-exclamation-circle"
5
- :title="title"
6
- v-b-popover.hover.top="description"
7
- ></i>
8
- </span>
9
- </template>
10
- <script>
11
- import { mapGetters } from "vuex";
12
-
13
- export default {
14
- name: "Tip",
15
- props: {
16
- field: String,
17
- formName: String,
18
- },
19
- data() {
20
- return {
21
- title: "",
22
- description: "",
23
- };
24
- },
25
- mounted() {
26
- let tip = this.tip({ field: this.field, formName: this.formName });
27
- if (tip) {
28
- this.title = tip.title;
29
- this.description = tip.description;
30
- }
31
- },
32
- computed: {
33
- ...mapGetters("generic", ["tip"]),
34
- },
35
- };
36
- </script>
37
-
38
- <style scoped>
39
- .tip {
40
- cursor: pointer;
41
- }
42
- </style>
1
+ <template>
2
+ <span class="tip" v-if="title">
3
+ <i
4
+ class="fal fa-exclamation-circle"
5
+ :title="title"
6
+ v-b-popover.hover.top="description"
7
+ ></i>
8
+ </span>
9
+ </template>
10
+ <script>
11
+ import { mapGetters } from "vuex";
12
+
13
+ export default {
14
+ name: "Tip",
15
+ props: {
16
+ field: String,
17
+ formName: String,
18
+ },
19
+ data() {
20
+ return {
21
+ title: "",
22
+ description: "",
23
+ };
24
+ },
25
+ mounted() {
26
+ let tip = this.tip({ field: this.field, formName: this.formName });
27
+ if (tip) {
28
+ this.title = tip.title;
29
+ this.description = tip.description;
30
+ }
31
+ },
32
+ computed: {
33
+ ...mapGetters("generic", ["tip"]),
34
+ },
35
+ };
36
+ </script>
37
+
38
+ <style scoped>
39
+ .tip {
40
+ cursor: pointer;
41
+ }
42
+ </style>