@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,185 +1,185 @@
1
- <template>
2
- <div :class="['panel', { collapsed: menuCollapsed }]">
3
- <Toast />
4
- <Loading v-show="isLoading('panel')" />
5
- <div v-show="!isLoading('panel')">
6
- <div v-show="showVerticalFilter">
7
- <VerticalFilter>
8
- <slot name="content-filter"></slot>
9
- </VerticalFilter>
10
- </div>
11
- <div class="local-container" :class="{ 'layout-small': layout == 'small' }">
12
- <div v-if="!modal.open && !vodal.open" class="div-message-panel">
13
- <Messages />
14
- </div>
15
- <br>
16
- <br>
17
- <div class="row">
18
- <div class="col-10">
19
- <div class="div-title">
20
- <span class="module">
21
- <span class="icon-panel"><i class="fas fa-compass"></i></span>
22
- {{ module }} <span v-if="title">|</span></span>
23
- <span class="title"> {{ title }}</span>
24
- </div>
25
- </div>
26
- <div class="col-2" v-if="currentRoute != 'dashboard'">
27
- <div class="div-back text-right" @click="back()">
28
- <i class="fa-solid fa-circle-arrow-left"></i>
29
- <span> Voltar</span>
30
- </div>
31
- </div>
32
- </div>
33
- <br v-show="showButtons" />
34
- <div class="row" v-show="showButtons">
35
- <div class="col-12" v-show="showButtons">
36
- <slot name="content-buttons"></slot>
37
- </div>
38
- </div>
39
- <br v-show="showButtons || showSearch" />
40
- <div v-show="showButtons || showSearch">
41
- <div>
42
- <div v-show="showSearch">
43
- <Search />
44
- </div>
45
- </div>
46
- </div>
47
- <br v-show="showSearch" />
48
- <div>
49
- <slot name="content-main"></slot>
50
- </div>
51
- </div>
52
- </div>
53
- <br /><br /><br />
54
- </div>
55
- </template>
56
-
57
- <script>
58
- import Toast from "../shared/Toast.vue";
59
- import Messages from "../shared/Messages.vue";
60
- import Search from "../shared/Search.vue";
61
- import Loading from "../shared/Loading.vue";
62
- import VerticalFilter from "../shared/VerticalFilter";
63
- import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
64
-
65
- import { mapState, mapGetters, mapMutations } from "vuex";
66
-
67
- export default {
68
- name: "Panel",
69
- components: {
70
- Loading,
71
- VerticalFilter,
72
- Search,
73
- Messages,
74
- Toast,
75
- Molded,
76
- },
77
- props: {
78
- module: String,
79
- title: String,
80
- showVerticalFilter: Boolean,
81
- showSearch: Boolean,
82
- showButtons: Boolean,
83
- layout: {
84
- type: String,
85
- default: "small"
86
- }
87
- },
88
- data() {
89
- return {
90
- currentRoute: this.$route.name,
91
- };
92
- },
93
- created() {
94
- this.addLoading("panel");
95
- },
96
- updated() {
97
- this.currentRoute = this.$route.name;
98
- },
99
- computed: {
100
- ...mapGetters("generic", ["isLoading", "event"]),
101
- ...mapState("generic", ["modal", "vodal", "menuCollapsed"]),
102
- },
103
- methods: {
104
- ...mapMutations("generic", ["addLoading"]),
105
- back() {
106
- window.history.back();
107
- },
108
- },
109
- };
110
- </script>
111
- <style scoped>
112
- .local-container {
113
- margin: auto;
114
- padding-left: 100px;
115
- }
116
-
117
- .div-title {
118
- margin-top: 15px;
119
- }
120
-
121
- .module {
122
- font-size: 17px;
123
- font-weight: 400;
124
- color: #aaaebb;
125
- }
126
-
127
- .title {
128
- font-size: 20px;
129
- font-weight: 500;
130
- }
131
-
132
- .icon-panel {
133
- opacity: 0.8;
134
- font-size: 20px;
135
- }
136
-
137
- .c-back {
138
- margin-top: 20px;
139
- margin-right: 12px;
140
- font-size: 16px;
141
- cursor: pointer;
142
- color: #8ca1b7;
143
- }
144
-
145
- .c-back:hover {
146
- color: #8ca1b7;
147
- }
148
-
149
- .panel {
150
- padding-right: 30px;
151
- margin-left: 130px;
152
- }
153
-
154
- .panel.collapsed {
155
- margin-left: 10px;
156
- transition: all 0.3s ease;
157
- }
158
-
159
- .div-back {
160
- margin-top: 18px;
161
- font-size: 16px;
162
- cursor: pointer;
163
- padding-top: 3px;
164
- padding-left: 10px;
165
- padding-right: 30px;
166
- font-weight: 400;
167
- color: #242424;
168
- }
169
-
170
- .div-back:hover {
171
- color: #505050;
172
- }
173
-
174
- .div-message-panel {
175
- width: calc(100% - 60px);
176
- position: fixed;
177
- top: -55px;
178
- left: 30px;
179
- right: 30px;
180
- margin: 0;
181
- z-index: 2000 !important;
182
- transition: top 0.5s ease;
183
- }
184
-
185
- </style>
1
+ <template>
2
+ <div :class="['panel', { collapsed: menuCollapsed }]">
3
+ <Toast />
4
+ <Loading v-show="isLoading('panel')" />
5
+ <div v-show="!isLoading('panel')">
6
+ <div v-show="showVerticalFilter">
7
+ <VerticalFilter>
8
+ <slot name="content-filter"></slot>
9
+ </VerticalFilter>
10
+ </div>
11
+ <div class="local-container" :class="{ 'layout-small': layout == 'small' }">
12
+ <div v-if="!modal.open && !vodal.open" class="div-message-panel">
13
+ <Messages />
14
+ </div>
15
+ <br>
16
+ <br>
17
+ <div class="row">
18
+ <div class="col-10">
19
+ <div class="div-title">
20
+ <span class="module">
21
+ <span class="icon-panel"><i class="fas fa-compass"></i></span>
22
+ {{ module }} <span v-if="title">|</span></span>
23
+ <span class="title"> {{ title }}</span>
24
+ </div>
25
+ </div>
26
+ <div class="col-2" v-if="currentRoute != 'dashboard'">
27
+ <div class="div-back text-right" @click="back()">
28
+ <i class="fa-solid fa-circle-arrow-left"></i>
29
+ <span> Voltar</span>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <br v-show="showButtons" />
34
+ <div class="row" v-show="showButtons">
35
+ <div class="col-12" v-show="showButtons">
36
+ <slot name="content-buttons"></slot>
37
+ </div>
38
+ </div>
39
+ <br v-show="showButtons || showSearch" />
40
+ <div v-show="showButtons || showSearch">
41
+ <div>
42
+ <div v-show="showSearch">
43
+ <Search />
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <br v-show="showSearch" />
48
+ <div>
49
+ <slot name="content-main"></slot>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <br /><br /><br />
54
+ </div>
55
+ </template>
56
+
57
+ <script>
58
+ import Toast from "../shared/Toast.vue";
59
+ import Messages from "../shared/Messages.vue";
60
+ import Search from "../shared/Search.vue";
61
+ import Loading from "../shared/Loading.vue";
62
+ import VerticalFilter from "../shared/VerticalFilter";
63
+ import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
64
+
65
+ import { mapState, mapGetters, mapMutations } from "vuex";
66
+
67
+ export default {
68
+ name: "Panel",
69
+ components: {
70
+ Loading,
71
+ VerticalFilter,
72
+ Search,
73
+ Messages,
74
+ Toast,
75
+ Molded,
76
+ },
77
+ props: {
78
+ module: String,
79
+ title: String,
80
+ showVerticalFilter: Boolean,
81
+ showSearch: Boolean,
82
+ showButtons: Boolean,
83
+ layout: {
84
+ type: String,
85
+ default: "small"
86
+ }
87
+ },
88
+ data() {
89
+ return {
90
+ currentRoute: this.$route.name,
91
+ };
92
+ },
93
+ created() {
94
+ this.addLoading("panel");
95
+ },
96
+ updated() {
97
+ this.currentRoute = this.$route.name;
98
+ },
99
+ computed: {
100
+ ...mapGetters("generic", ["isLoading", "event"]),
101
+ ...mapState("generic", ["modal", "vodal", "menuCollapsed"]),
102
+ },
103
+ methods: {
104
+ ...mapMutations("generic", ["addLoading"]),
105
+ back() {
106
+ window.history.back();
107
+ },
108
+ },
109
+ };
110
+ </script>
111
+ <style scoped>
112
+ .local-container {
113
+ margin: auto;
114
+ padding-left: 100px;
115
+ }
116
+
117
+ .div-title {
118
+ margin-top: 15px;
119
+ }
120
+
121
+ .module {
122
+ font-size: 17px;
123
+ font-weight: 400;
124
+ color: #aaaebb;
125
+ }
126
+
127
+ .title {
128
+ font-size: 20px;
129
+ font-weight: 500;
130
+ }
131
+
132
+ .icon-panel {
133
+ opacity: 0.8;
134
+ font-size: 20px;
135
+ }
136
+
137
+ .c-back {
138
+ margin-top: 20px;
139
+ margin-right: 12px;
140
+ font-size: 16px;
141
+ cursor: pointer;
142
+ color: #8ca1b7;
143
+ }
144
+
145
+ .c-back:hover {
146
+ color: #8ca1b7;
147
+ }
148
+
149
+ .panel {
150
+ padding-right: 30px;
151
+ margin-left: 130px;
152
+ }
153
+
154
+ .panel.collapsed {
155
+ margin-left: 10px;
156
+ transition: all 0.3s ease;
157
+ }
158
+
159
+ .div-back {
160
+ margin-top: 18px;
161
+ font-size: 16px;
162
+ cursor: pointer;
163
+ padding-top: 3px;
164
+ padding-left: 10px;
165
+ padding-right: 30px;
166
+ font-weight: 400;
167
+ color: #242424;
168
+ }
169
+
170
+ .div-back:hover {
171
+ color: #505050;
172
+ }
173
+
174
+ .div-message-panel {
175
+ width: calc(100% - 60px);
176
+ position: fixed;
177
+ top: -55px;
178
+ left: 30px;
179
+ right: 30px;
180
+ margin: 0;
181
+ z-index: 2000 !important;
182
+ transition: top 0.5s ease;
183
+ }
184
+
185
+ </style>
@@ -1,126 +1,126 @@
1
- <template>
2
- <div>
3
- <div class="center">
4
- <span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
5
- </div>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- export default {
11
- name: "Popover",
12
- props: {
13
- nome: String,
14
- width: Number,
15
- },
16
- };
17
- </script>
18
- <style lang="scss" scoped>
19
- .center {
20
- margin: 100px auto;
21
- width: 30px;
22
- }
23
-
24
- /* The element to hover over */
25
- .qs {
26
- background-color: #02bdda;
27
- border-radius: 16px;
28
- color: #e3fbff;
29
- cursor: default;
30
- display: inline-block;
31
- font-family: "Helvetica", sans-serif;
32
- font-size: 18px;
33
- font-weight: bold;
34
- height: 30px;
35
- line-height: 30px;
36
- position: relative;
37
- text-align: center;
38
- width: 30px;
39
-
40
- .popover {
41
- background-color: rgba(0, 0, 0, 0.85);
42
- border-radius: 5px;
43
- bottom: 42px;
44
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
45
- color: #fff;
46
- display: none;
47
- font-size: 12px;
48
- font-family: "Helvetica", sans-serif;
49
- left: -95px;
50
- padding: 7px 10px;
51
- position: absolute;
52
- width: 200px;
53
- z-index: 4;
54
-
55
- &:before {
56
- border-top: 7px solid rgba(0, 0, 0, 0.85);
57
- border-right: 7px solid transparent;
58
- border-left: 7px solid transparent;
59
- bottom: -7px;
60
- content: "";
61
- display: block;
62
- left: 50%;
63
- margin-left: -7px;
64
- position: absolute;
65
- }
66
- }
67
-
68
- &:hover {
69
- .popover {
70
- display: block;
71
- -webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
72
- -moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
73
- -ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
74
- }
75
- }
76
- }
77
-
78
- @-webkit-keyframes fade-in {
79
- from {
80
- opacity: 0;
81
- }
82
- to {
83
- opacity: 1;
84
- }
85
- }
86
- @-moz-keyframes fade-in {
87
- from {
88
- opacity: 0;
89
- }
90
- to {
91
- opacity: 1;
92
- }
93
- }
94
- @-ms-keyframes fade-in {
95
- from {
96
- opacity: 0;
97
- }
98
- to {
99
- opacity: 1;
100
- }
101
- }
102
- @-webkit-keyframes move-up {
103
- from {
104
- bottom: 30px;
105
- }
106
- to {
107
- bottom: 42px;
108
- }
109
- }
110
- @-moz-keyframes move-up {
111
- from {
112
- bottom: 30px;
113
- }
114
- to {
115
- bottom: 42px;
116
- }
117
- }
118
- @-ms-keyframes move-up {
119
- from {
120
- bottom: 30px;
121
- }
122
- to {
123
- bottom: 42px;
124
- }
125
- }
126
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="center">
4
+ <span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: "Popover",
12
+ props: {
13
+ nome: String,
14
+ width: Number,
15
+ },
16
+ };
17
+ </script>
18
+ <style lang="scss" scoped>
19
+ .center {
20
+ margin: 100px auto;
21
+ width: 30px;
22
+ }
23
+
24
+ /* The element to hover over */
25
+ .qs {
26
+ background-color: #02bdda;
27
+ border-radius: 16px;
28
+ color: #e3fbff;
29
+ cursor: default;
30
+ display: inline-block;
31
+ font-family: "Helvetica", sans-serif;
32
+ font-size: 18px;
33
+ font-weight: bold;
34
+ height: 30px;
35
+ line-height: 30px;
36
+ position: relative;
37
+ text-align: center;
38
+ width: 30px;
39
+
40
+ .popover {
41
+ background-color: rgba(0, 0, 0, 0.85);
42
+ border-radius: 5px;
43
+ bottom: 42px;
44
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
45
+ color: #fff;
46
+ display: none;
47
+ font-size: 12px;
48
+ font-family: "Helvetica", sans-serif;
49
+ left: -95px;
50
+ padding: 7px 10px;
51
+ position: absolute;
52
+ width: 200px;
53
+ z-index: 4;
54
+
55
+ &:before {
56
+ border-top: 7px solid rgba(0, 0, 0, 0.85);
57
+ border-right: 7px solid transparent;
58
+ border-left: 7px solid transparent;
59
+ bottom: -7px;
60
+ content: "";
61
+ display: block;
62
+ left: 50%;
63
+ margin-left: -7px;
64
+ position: absolute;
65
+ }
66
+ }
67
+
68
+ &:hover {
69
+ .popover {
70
+ display: block;
71
+ -webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
72
+ -moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
73
+ -ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
74
+ }
75
+ }
76
+ }
77
+
78
+ @-webkit-keyframes fade-in {
79
+ from {
80
+ opacity: 0;
81
+ }
82
+ to {
83
+ opacity: 1;
84
+ }
85
+ }
86
+ @-moz-keyframes fade-in {
87
+ from {
88
+ opacity: 0;
89
+ }
90
+ to {
91
+ opacity: 1;
92
+ }
93
+ }
94
+ @-ms-keyframes fade-in {
95
+ from {
96
+ opacity: 0;
97
+ }
98
+ to {
99
+ opacity: 1;
100
+ }
101
+ }
102
+ @-webkit-keyframes move-up {
103
+ from {
104
+ bottom: 30px;
105
+ }
106
+ to {
107
+ bottom: 42px;
108
+ }
109
+ }
110
+ @-moz-keyframes move-up {
111
+ from {
112
+ bottom: 30px;
113
+ }
114
+ to {
115
+ bottom: 42px;
116
+ }
117
+ }
118
+ @-ms-keyframes move-up {
119
+ from {
120
+ bottom: 30px;
121
+ }
122
+ to {
123
+ bottom: 42px;
124
+ }
125
+ }
126
+ </style>