@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,174 +1,174 @@
1
- <template>
2
- <div>
3
- <b-row>
4
- <b-col xs="12" sm="12" md="12" lg="7" xl="6">
5
- <div class="margin">
6
- <div class="molded">
7
- <b-row>
8
- <b-col sm="9">
9
- <input class="input-search" type="text" name="search" placeholder="Pesquisar ..."
10
- @keyup="verifyCleanSearch()" @keyup.enter.prevent="executeSearch()" v-model="search.content" />
11
- </b-col>
12
- <b-col sm="3">
13
- <div class="div-select">
14
- <SelectStatic classCss="select-search" fieldTarget="filter" :onlyQuery="true"
15
- :initialValue="{ content: 'Contém', id: 'contains' }" v-model="search.filter" :showBorder="false"
16
- :data="[
17
- { content: 'Contém', id: 'contains' },
18
- { content: 'Igual', id: 'equal' },
19
- ]" />
20
- </div>
21
- </b-col>
22
- </b-row>
23
- </div>
24
- </div>
25
- <div v-if="hasActiveFilter">
26
- <div>
27
- <div class="div-filter">
28
- Filtro Ativo
29
- <span class="icon-close" @click="removeFilter()">
30
- <i class="icon-tag fas fa-times-circle"></i>
31
- </span>
32
- </div>
33
- </div>
34
- </div>
35
- </b-col>
36
- <b-col xs="4" sm="4" md="4" lg="4" xl="4">
37
- <div class="div-button">
38
- <Button _key="btnSearch" type="info" title="Buscar" classIcon="fas fa-search" size="small"
39
- :clicked="executeSearch" />
40
- <Button _key="btnClean" type="info" title="Limpar" classIcon="fas fa-broom" size="small"
41
- :clicked="executeClean" />
42
- </div>
43
- </b-col>
44
- </b-row>
45
- </div>
46
- </template>
47
-
48
- <script>
49
- import Button from "../forms/Button";
50
- import SelectStatic from "../forms/SelectStatic.vue";
51
-
52
- import { mapMutations, mapGetters, mapState } from "vuex";
53
-
54
- export default {
55
- components: { Button, SelectStatic },
56
- name: "Search",
57
- data() {
58
- return {
59
- showFilterStorage: false,
60
- }
61
- },
62
- computed: {
63
- ...mapState("generic", ["queryTags"]),
64
- ...mapGetters("generic", ["getFilterStorage"]),
65
- search: {
66
- get() {
67
- return this.$store.state.generic.search;
68
- },
69
- set(value) {
70
- this.updateSearch(value);
71
- },
72
- },
73
- hasActiveFilter() {
74
- const filterStorage = this.getFilterStorage(this.$route.name);
75
- return filterStorage && (
76
- filterStorage.baseParams.search !== '' ||
77
- filterStorage.baseParams.currentPage !== 1 ||
78
- this.queryTags.length > 0
79
- );
80
- },
81
- },
82
- methods: {
83
- ...mapMutations("generic", [
84
- "updateSearch",
85
- "executedSearch",
86
- "clearedSearch",
87
- "addEvent"
88
- ]),
89
- executeSearch() {
90
- this.executedSearch();
91
- },
92
- executeClean() {
93
- this.clearedSearch();
94
- let search = { content: "", filter: { content: "Contém", id: "contains" } };
95
- this.updateSearch(search);
96
- },
97
- verifyCleanSearch() {
98
- if (this.search.content.length == 0) this.clearedSearch();
99
- },
100
- removeFilter() {
101
- this.addEvent({ name: "filterStorageRemoved" });
102
- this.executeClean();
103
- }
104
- },
105
- };
106
- </script>
107
-
108
- <style scoped>
109
- .margin {
110
- padding-top: 28px;
111
- }
112
-
113
- .div-button {
114
- padding-top: 33px;
115
- }
116
-
117
- ::placeholder {
118
- color: #b8c4d2;
119
- }
120
-
121
- .molded {
122
-
123
- height: 45px;
124
- font-size: 14px;
125
- padding: 5px 8px 6px 15px;
126
- background-color: rgb(255, 255, 255);
127
- border: 1px solid #E5E4E8;
128
- border-radius: 40px;
129
- box-sizing: border-box;
130
- box-shadow: none;
131
- color: rgb(38, 41, 44);
132
- }
133
-
134
- input[type="text"] {
135
- width: 100%;
136
- height: 30px;
137
- font-size: 14px;
138
- border: 0px solid white;
139
- background-color: rgb(255, 255, 255);
140
- }
141
-
142
- input[type="text"]:focus {
143
- outline: none;
144
- }
145
-
146
- .div-select {
147
- margin-top: -30px;
148
- margin-right: 5px;
149
- }
150
-
151
- .filter-active {
152
- margin-right: 13px;
153
- margin-left: -10px;
154
- color: #F1BC31;
155
- }
156
-
157
- .div-filter {
158
- margin-left: 13px;
159
- font-size: 12px;
160
- background-color: #F1BC31;
161
- color: white;
162
- margin-top: 5px;
163
- padding-left: 7px;
164
- padding-right: 5px;
165
- border-radius: 15px;
166
- width: 110px;
167
- cursor: pointer !important;
168
- }
169
-
170
- .icon-close {
171
- font-size: 15px;
172
- cursor: pointer !important;
173
- }
174
- </style>
1
+ <template>
2
+ <div>
3
+ <b-row>
4
+ <b-col xs="12" sm="12" md="12" lg="7" xl="6">
5
+ <div class="margin">
6
+ <div class="molded">
7
+ <b-row>
8
+ <b-col sm="9">
9
+ <input class="input-search" type="text" name="search" placeholder="Pesquisar ..."
10
+ @keyup="verifyCleanSearch()" @keyup.enter.prevent="executeSearch()" v-model="search.content" />
11
+ </b-col>
12
+ <b-col sm="3">
13
+ <div class="div-select">
14
+ <SelectStatic classCss="select-search" fieldTarget="filter" :onlyQuery="true"
15
+ :initialValue="{ content: 'Contém', id: 'contains' }" v-model="search.filter" :showBorder="false"
16
+ :data="[
17
+ { content: 'Contém', id: 'contains' },
18
+ { content: 'Igual', id: 'equal' },
19
+ ]" />
20
+ </div>
21
+ </b-col>
22
+ </b-row>
23
+ </div>
24
+ </div>
25
+ <div v-if="hasActiveFilter">
26
+ <div>
27
+ <div class="div-filter">
28
+ Filtro Ativo
29
+ <span class="icon-close" @click="removeFilter()">
30
+ <i class="icon-tag fas fa-times-circle"></i>
31
+ </span>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </b-col>
36
+ <b-col xs="4" sm="4" md="4" lg="4" xl="4">
37
+ <div class="div-button">
38
+ <Button _key="btnSearch" type="info" title="Buscar" classIcon="fas fa-search" size="small"
39
+ :clicked="executeSearch" />
40
+ <Button _key="btnClean" type="info" title="Limpar" classIcon="fas fa-broom" size="small"
41
+ :clicked="executeClean" />
42
+ </div>
43
+ </b-col>
44
+ </b-row>
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import Button from "../forms/Button";
50
+ import SelectStatic from "../forms/SelectStatic.vue";
51
+
52
+ import { mapMutations, mapGetters, mapState } from "vuex";
53
+
54
+ export default {
55
+ components: { Button, SelectStatic },
56
+ name: "Search",
57
+ data() {
58
+ return {
59
+ showFilterStorage: false,
60
+ }
61
+ },
62
+ computed: {
63
+ ...mapState("generic", ["queryTags"]),
64
+ ...mapGetters("generic", ["getFilterStorage"]),
65
+ search: {
66
+ get() {
67
+ return this.$store.state.generic.search;
68
+ },
69
+ set(value) {
70
+ this.updateSearch(value);
71
+ },
72
+ },
73
+ hasActiveFilter() {
74
+ const filterStorage = this.getFilterStorage(this.$route.name);
75
+ return filterStorage && (
76
+ filterStorage.baseParams.search !== '' ||
77
+ filterStorage.baseParams.currentPage !== 1 ||
78
+ this.queryTags.length > 0
79
+ );
80
+ },
81
+ },
82
+ methods: {
83
+ ...mapMutations("generic", [
84
+ "updateSearch",
85
+ "executedSearch",
86
+ "clearedSearch",
87
+ "addEvent"
88
+ ]),
89
+ executeSearch() {
90
+ this.executedSearch();
91
+ },
92
+ executeClean() {
93
+ this.clearedSearch();
94
+ let search = { content: "", filter: { content: "Contém", id: "contains" } };
95
+ this.updateSearch(search);
96
+ },
97
+ verifyCleanSearch() {
98
+ if (this.search.content.length == 0) this.clearedSearch();
99
+ },
100
+ removeFilter() {
101
+ this.addEvent({ name: "filterStorageRemoved" });
102
+ this.executeClean();
103
+ }
104
+ },
105
+ };
106
+ </script>
107
+
108
+ <style scoped>
109
+ .margin {
110
+ padding-top: 28px;
111
+ }
112
+
113
+ .div-button {
114
+ padding-top: 33px;
115
+ }
116
+
117
+ ::placeholder {
118
+ color: #b8c4d2;
119
+ }
120
+
121
+ .molded {
122
+
123
+ height: 45px;
124
+ font-size: 14px;
125
+ padding: 5px 8px 6px 15px;
126
+ background-color: rgb(255, 255, 255);
127
+ border: 1px solid #E5E4E8;
128
+ border-radius: 40px;
129
+ box-sizing: border-box;
130
+ box-shadow: none;
131
+ color: rgb(38, 41, 44);
132
+ }
133
+
134
+ input[type="text"] {
135
+ width: 100%;
136
+ height: 30px;
137
+ font-size: 14px;
138
+ border: 0px solid white;
139
+ background-color: rgb(255, 255, 255);
140
+ }
141
+
142
+ input[type="text"]:focus {
143
+ outline: none;
144
+ }
145
+
146
+ .div-select {
147
+ margin-top: -30px;
148
+ margin-right: 5px;
149
+ }
150
+
151
+ .filter-active {
152
+ margin-right: 13px;
153
+ margin-left: -10px;
154
+ color: #F1BC31;
155
+ }
156
+
157
+ .div-filter {
158
+ margin-left: 13px;
159
+ font-size: 12px;
160
+ background-color: #F1BC31;
161
+ color: white;
162
+ margin-top: 5px;
163
+ padding-left: 7px;
164
+ padding-right: 5px;
165
+ border-radius: 15px;
166
+ width: 110px;
167
+ cursor: pointer !important;
168
+ }
169
+
170
+ .icon-close {
171
+ font-size: 15px;
172
+ cursor: pointer !important;
173
+ }
174
+ </style>