@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,107 +1,107 @@
1
- <template>
2
- <div>
3
- <div v-if="type == 'bubbles'" :class="{ loading: center }">
4
- <vue-loading
5
- type="bubbles"
6
- :color="color"
7
- :size="{ width: width + 'px', height: height + 'px' }"
8
- ></vue-loading>
9
- </div>
10
- <div v-if="type == 'line'">
11
- <div class="loader">
12
- <div class="loader__element"></div>
13
- </div>
14
- </div>
15
- <div :class="{ 'loading-text': center }">
16
- <div>
17
- <div class="message">{{ message }}</div>
18
- </div>
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- name: "Loading",
26
- props: {
27
- height: {
28
- type: Number,
29
- default: 70,
30
- },
31
- width: {
32
- type: Number,
33
- default: 70,
34
- },
35
- center: {
36
- type: Boolean,
37
- default: true,
38
- },
39
- color: {
40
- type: String,
41
- default: "#D98621",
42
- },
43
- type: {
44
- type: String,
45
- default: "bubbles",
46
- },
47
- message: String,
48
- },
49
- };
50
- </script>
51
-
52
- <style scoped>
53
- .loading {
54
- position: absolute;
55
- left: 50%;
56
- top: 50%;
57
- -webkit-transform: translate(-50%, -50%);
58
- transform: translate(-50%, -50%);
59
- }
60
-
61
- .loading-text {
62
- position: absolute;
63
- left: 50%;
64
- top: 45%;
65
- -webkit-transform: translate(-50%, -50%);
66
- transform: translate(-50%, -50%);
67
- }
68
-
69
- .message {
70
- font-size: 15px;
71
- margin-top: 5px;
72
- }
73
-
74
- .loader {
75
- overflow: hidden;
76
- width: 100%;
77
- height: 100%;
78
- top: 0;
79
- left: 0;
80
- display: flex;
81
- align-items: center;
82
- align-content: center;
83
- justify-content: flex-start;
84
- z-index: 100000;
85
- }
86
-
87
- .loader__element {
88
- height: 3px;
89
- width: 100%;
90
- background: #fbf2e8;
91
- }
92
-
93
- .loader__element:before {
94
- content: "";
95
- display: block;
96
- background-color: #fca944;
97
- height: 3px;
98
- width: 0;
99
- animation: getWidth 1s ease-in infinite;
100
- }
101
-
102
- @keyframes getWidth {
103
- 100% {
104
- width: 100%;
105
- }
106
- }
107
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="type == 'bubbles'" :class="{ loading: center }">
4
+ <vue-loading
5
+ type="bubbles"
6
+ :color="color"
7
+ :size="{ width: width + 'px', height: height + 'px' }"
8
+ ></vue-loading>
9
+ </div>
10
+ <div v-if="type == 'line'">
11
+ <div class="loader">
12
+ <div class="loader__element"></div>
13
+ </div>
14
+ </div>
15
+ <div :class="{ 'loading-text': center }">
16
+ <div>
17
+ <div class="message">{{ message }}</div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: "Loading",
26
+ props: {
27
+ height: {
28
+ type: Number,
29
+ default: 70,
30
+ },
31
+ width: {
32
+ type: Number,
33
+ default: 70,
34
+ },
35
+ center: {
36
+ type: Boolean,
37
+ default: true,
38
+ },
39
+ color: {
40
+ type: String,
41
+ default: "#D98621",
42
+ },
43
+ type: {
44
+ type: String,
45
+ default: "bubbles",
46
+ },
47
+ message: String,
48
+ },
49
+ };
50
+ </script>
51
+
52
+ <style scoped>
53
+ .loading {
54
+ position: absolute;
55
+ left: 50%;
56
+ top: 50%;
57
+ -webkit-transform: translate(-50%, -50%);
58
+ transform: translate(-50%, -50%);
59
+ }
60
+
61
+ .loading-text {
62
+ position: absolute;
63
+ left: 50%;
64
+ top: 45%;
65
+ -webkit-transform: translate(-50%, -50%);
66
+ transform: translate(-50%, -50%);
67
+ }
68
+
69
+ .message {
70
+ font-size: 15px;
71
+ margin-top: 5px;
72
+ }
73
+
74
+ .loader {
75
+ overflow: hidden;
76
+ width: 100%;
77
+ height: 100%;
78
+ top: 0;
79
+ left: 0;
80
+ display: flex;
81
+ align-items: center;
82
+ align-content: center;
83
+ justify-content: flex-start;
84
+ z-index: 100000;
85
+ }
86
+
87
+ .loader__element {
88
+ height: 3px;
89
+ width: 100%;
90
+ background: #fbf2e8;
91
+ }
92
+
93
+ .loader__element:before {
94
+ content: "";
95
+ display: block;
96
+ background-color: #fca944;
97
+ height: 3px;
98
+ width: 0;
99
+ animation: getWidth 1s ease-in infinite;
100
+ }
101
+
102
+ @keyframes getWidth {
103
+ 100% {
104
+ width: 100%;
105
+ }
106
+ }
107
+ </style>
@@ -1,23 +1,23 @@
1
- <template>
2
- <div>
3
- <Button
4
- key="loadingMore"
5
- eventName="loadingMore"
6
- type="warning"
7
- title="Carregar mais..."
8
- classIcon="fas fa-redo"
9
- size="medium"
10
- />
11
- </div>
12
- </template>
13
- <script>
14
- import Button from "../forms/Button.vue";
15
- export default {
16
- name: "LoadingMoreButton",
17
- components: { Button },
18
- data() {
19
- return {};
20
- },
21
- methods: {},
22
- };
23
- </script>
1
+ <template>
2
+ <div>
3
+ <Button
4
+ key="loadingMore"
5
+ eventName="loadingMore"
6
+ type="warning"
7
+ title="Carregar mais..."
8
+ classIcon="fas fa-redo"
9
+ size="medium"
10
+ />
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import Button from "../forms/Button.vue";
15
+ export default {
16
+ name: "LoadingMoreButton",
17
+ components: { Button },
18
+ data() {
19
+ return {};
20
+ },
21
+ methods: {},
22
+ };
23
+ </script>
@@ -1,109 +1,109 @@
1
- <template>
2
- <div>
3
- <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
- <Alert type="danger">
5
- <div class="side-by-side" v-for="(notification, index) in storageNotification" :key="index">
6
- <div class="side-by-side text">
7
- {{ notification.message }}
8
- </div>
9
- </div>
10
- <div class="progress-bar-container">
11
- <div class="progress-bar" :style="{ width: progressWidth + '%' }"></div>
12
- </div>
13
- </Alert>
14
- </div>
15
- </div>
16
- </template>
17
-
18
- <script>
19
- import Alert from "../layout/Alert.vue";
20
- import { mapState, mapMutations } from "vuex";
21
-
22
- export default {
23
- components: { Alert },
24
- name: "Messages",
25
- data() {
26
- return {
27
- maxSeconds: 10,
28
- countdown: 10,
29
- storageNotification: [],
30
- progressWidth: 100,
31
- };
32
- },
33
- computed: {
34
- ...mapState("generic", ["notifications", "modal"]),
35
- },
36
- watch: {
37
- notifications() {
38
- if (this.notifications.length > 0) {
39
- this.storageNotification = this.notifications;
40
- this.countdown = this.maxSeconds;
41
- this.progressWidth = 100;
42
- this.startCountdown();
43
- }
44
- },
45
- countdown(newCountdown) {
46
- if (newCountdown === 0) {
47
- this.storageNotification = [];
48
- this.removeNotificarions();
49
- }
50
- },
51
- },
52
- methods: {
53
- ...mapMutations("generic", ["removeNotificarions"]),
54
-
55
- startCountdown() {
56
- this.countdownInterval = setInterval(() => {
57
- if (this.countdown > 0) {
58
- this.countdown--;
59
- this.updateProgressBar();
60
- } else {
61
- clearInterval(this.countdownInterval);
62
- }
63
- }, 1000);
64
- },
65
-
66
- updateProgressBar() {
67
- // Atualiza a largura da barra de progresso
68
- this.progressWidth = (this.countdown / this.maxSeconds) * 100;
69
- },
70
- },
71
- };
72
- </script>
73
-
74
- <style scoped>
75
- .div-message {
76
- margin-top: 50px;
77
- transition: all 0.5s ease !important;
78
- z-index: 2000;
79
- }
80
-
81
- .side-by-side {
82
- display: flex;
83
- justify-content: space-between;
84
- }
85
-
86
- .text {
87
- margin-right: 10px;
88
- }
89
-
90
- .progress-bar-container {
91
- width: 100%;
92
- height: 3px;
93
- background-color: #e0e0e0;
94
- border-radius: 5px;
95
- margin-top: 10px;
96
- }
97
-
98
- .progress-bar {
99
- height: 100%;
100
- background-color: #FF0201;
101
- border-radius: 50px;
102
- transition: width 1s ease-out;
103
- }
104
-
105
- .div-countdown {
106
- margin-top: 10px;
107
- font-size: 16px;
108
- }
109
- </style>
1
+ <template>
2
+ <div>
3
+ <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
+ <Alert type="danger">
5
+ <div class="side-by-side" v-for="(notification, index) in storageNotification" :key="index">
6
+ <div class="side-by-side text">
7
+ {{ notification.message }}
8
+ </div>
9
+ </div>
10
+ <div class="progress-bar-container">
11
+ <div class="progress-bar" :style="{ width: progressWidth + '%' }"></div>
12
+ </div>
13
+ </Alert>
14
+ </div>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import Alert from "../layout/Alert.vue";
20
+ import { mapState, mapMutations } from "vuex";
21
+
22
+ export default {
23
+ components: { Alert },
24
+ name: "Messages",
25
+ data() {
26
+ return {
27
+ maxSeconds: 10,
28
+ countdown: 10,
29
+ storageNotification: [],
30
+ progressWidth: 100,
31
+ };
32
+ },
33
+ computed: {
34
+ ...mapState("generic", ["notifications", "modal"]),
35
+ },
36
+ watch: {
37
+ notifications() {
38
+ if (this.notifications.length > 0) {
39
+ this.storageNotification = this.notifications;
40
+ this.countdown = this.maxSeconds;
41
+ this.progressWidth = 100;
42
+ this.startCountdown();
43
+ }
44
+ },
45
+ countdown(newCountdown) {
46
+ if (newCountdown === 0) {
47
+ this.storageNotification = [];
48
+ this.removeNotificarions();
49
+ }
50
+ },
51
+ },
52
+ methods: {
53
+ ...mapMutations("generic", ["removeNotificarions"]),
54
+
55
+ startCountdown() {
56
+ this.countdownInterval = setInterval(() => {
57
+ if (this.countdown > 0) {
58
+ this.countdown--;
59
+ this.updateProgressBar();
60
+ } else {
61
+ clearInterval(this.countdownInterval);
62
+ }
63
+ }, 1000);
64
+ },
65
+
66
+ updateProgressBar() {
67
+ // Atualiza a largura da barra de progresso
68
+ this.progressWidth = (this.countdown / this.maxSeconds) * 100;
69
+ },
70
+ },
71
+ };
72
+ </script>
73
+
74
+ <style scoped>
75
+ .div-message {
76
+ margin-top: 50px;
77
+ transition: all 0.5s ease !important;
78
+ z-index: 2000;
79
+ }
80
+
81
+ .side-by-side {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ }
85
+
86
+ .text {
87
+ margin-right: 10px;
88
+ }
89
+
90
+ .progress-bar-container {
91
+ width: 100%;
92
+ height: 3px;
93
+ background-color: #e0e0e0;
94
+ border-radius: 5px;
95
+ margin-top: 10px;
96
+ }
97
+
98
+ .progress-bar {
99
+ height: 100%;
100
+ background-color: #FF0201;
101
+ border-radius: 50px;
102
+ transition: width 1s ease-out;
103
+ }
104
+
105
+ .div-countdown {
106
+ margin-top: 10px;
107
+ font-size: 16px;
108
+ }
109
+ </style>
@@ -1,24 +1,24 @@
1
- <template>
2
- <div>
3
- <iframe src="https://espaco.blob.core.windows.net/nixloc-preview/H0R078NIPG6BXT8703S0_3.pdf" width="100%" height="800px"></iframe>
4
- </div>
5
- </template>
6
-
7
- <script>
8
-
9
- export default {
10
- name: "PDFViewer",
11
- props: {
12
- pdfSrc: String,
13
- }
14
- };
15
- </script>
16
-
17
- <style>
18
- iframe {
19
- width: 100%;
20
- height: 800px;
21
- border: 0px;
22
- border-radius: 10px;
23
- }
24
- </style>
1
+ <template>
2
+ <div>
3
+ <iframe src="https://espaco.blob.core.windows.net/nixloc-preview/H0R078NIPG6BXT8703S0_3.pdf" width="100%" height="800px"></iframe>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+
9
+ export default {
10
+ name: "PDFViewer",
11
+ props: {
12
+ pdfSrc: String,
13
+ }
14
+ };
15
+ </script>
16
+
17
+ <style>
18
+ iframe {
19
+ width: 100%;
20
+ height: 800px;
21
+ border: 0px;
22
+ border-radius: 10px;
23
+ }
24
+ </style>