@nixweb/nixloc-ui 0.0.125 → 0.0.128

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 (111) hide show
  1. package/docs/src/component/template/ViewTemplateReportPreview.drawio +210 -0
  2. package/package.json +79 -77
  3. package/src/App.vue +13 -13
  4. package/src/component/forms/Button.vue +170 -169
  5. package/src/component/forms/CheckboxGroup.vue +72 -63
  6. package/src/component/forms/CheckboxSimple.vue +46 -27
  7. package/src/component/forms/Color.vue +38 -38
  8. package/src/component/forms/DateTime.vue +167 -177
  9. package/src/component/forms/Dropdown.vue +218 -224
  10. package/src/component/forms/EditorHtml.vue +126 -123
  11. package/src/component/forms/FileUpload.vue +185 -189
  12. package/src/component/forms/ImageUpload.vue +230 -0
  13. package/src/component/forms/IncrementDecrement.vue +101 -0
  14. package/src/component/forms/InputDecimal.vue +142 -137
  15. package/src/component/forms/InputNumber.vue +154 -149
  16. package/src/component/forms/InputPassword.vue +135 -135
  17. package/src/component/forms/InputText.vue +162 -157
  18. package/src/component/forms/Modal.vue +65 -60
  19. package/src/component/forms/RadioGroup.vue +50 -50
  20. package/src/component/forms/Select.vue +349 -337
  21. package/src/component/forms/SelectStatic.vue +127 -120
  22. package/src/component/forms/Slider.vue +18 -18
  23. package/src/component/forms/TextArea.vue +126 -126
  24. package/src/component/layout/Alert.vue +92 -92
  25. package/src/component/layout/Badge.vue +103 -103
  26. package/src/component/layout/FixedBar.vue +100 -68
  27. package/src/component/layout/Header.vue +38 -35
  28. package/src/component/layout/LoadingFullPage.vue +27 -27
  29. package/src/component/layout/Menu.vue +210 -214
  30. package/src/component/layout/Molded.vue +28 -27
  31. package/src/component/layout/Panel.vue +140 -142
  32. package/src/component/layout/Popover.vue +126 -126
  33. package/src/component/layout/ScrollBar.vue +42 -43
  34. package/src/component/layout/Tab.vue +135 -0
  35. package/src/component/layout/Tag.vue +3 -3
  36. package/src/component/layout/Wizard.vue +211 -213
  37. package/src/component/rental/DisplayPeriodRent.vue +81 -0
  38. package/src/component/rental/DisplayTotalization.vue +47 -0
  39. package/src/component/shared/Collapse.vue +131 -131
  40. package/src/component/shared/Confirmation.vue +2 -2
  41. package/src/component/shared/DocumentEditor.vue +1 -1
  42. package/src/component/shared/DocumentPreview.vue +1 -1
  43. package/src/component/shared/DocumentPublic.vue +34 -0
  44. package/src/component/shared/ExportExcel.vue +1 -8
  45. package/src/component/shared/ExportPDF.vue +116 -116
  46. package/src/component/shared/{HeaderPrint.vue → HeaderReport.vue} +4 -4
  47. package/src/component/shared/HorizontalFilter.vue +59 -59
  48. package/src/component/shared/Loading.vue +107 -107
  49. package/src/component/shared/LoadingMoreButton.vue +23 -23
  50. package/src/component/shared/Messages.vue +81 -83
  51. package/src/component/shared/PDFViewer.vue +22 -22
  52. package/src/component/shared/Pagination.vue +52 -53
  53. package/src/component/shared/{LegendaParametro.vue → ParameterLegend.vue} +22 -26
  54. package/src/component/shared/ProgressBar.vue +22 -21
  55. package/src/component/shared/QueryButton.vue +66 -66
  56. package/src/component/shared/Report.vue +187 -0
  57. package/src/component/shared/SaveCancel.vue +26 -5
  58. package/src/component/shared/Search.vue +154 -154
  59. package/src/component/shared/SelectOption.vue +146 -0
  60. package/src/component/shared/Table.vue +163 -243
  61. package/src/component/shared/TableButton.vue +36 -36
  62. package/src/component/shared/TableDraggable.vue +127 -0
  63. package/src/component/shared/TableItem.vue +177 -0
  64. package/src/component/shared/TableTotalRecords.vue +9 -10
  65. package/src/component/shared/TableTotalization.vue +47 -47
  66. package/src/component/shared/Tip.vue +42 -42
  67. package/src/component/shared/Toast.vue +54 -54
  68. package/src/component/shared/TotalizationReport.vue +59 -0
  69. package/src/component/shared/VerticalFilter.vue +97 -145
  70. package/src/component/shared/query-builder/AddRule.vue +181 -187
  71. package/src/component/shared/query-builder/ConvertToOdata.js +34 -43
  72. package/src/component/shared/query-builder/DynamicComponent.vue +21 -16
  73. package/src/component/shared/query-builder/DynamicComponentList.vue +73 -0
  74. package/src/component/shared/query-builder/Fields.vue +29 -63
  75. package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
  76. package/src/component/shared/query-builder/Rules.vue +2 -14
  77. package/src/component/shared/query-builder/SelectRule.vue +15 -15
  78. package/src/component/shared/query-builder/Tags.vue +24 -8
  79. package/src/component/shared/query-builder/utilities.js +21 -21
  80. package/src/component/template/{ListViewWithHandlerData.vue → ListViewWithDataHandler.vue} +260 -231
  81. package/src/component/template/{AddEditReport.vue → ReportCreateUpdate.vue} +40 -22
  82. package/src/component/template/ViewTemplateConfiguration.vue +64 -69
  83. package/src/component/template/ViewTemplateDocumentView.vue +22 -25
  84. package/src/component/template/ViewTemplateReportList.vue +39 -57
  85. package/src/component/template/ViewTemplateReportPreview.vue +270 -341
  86. package/src/component/template/ViewTemplateReportPreviewCOPIASEGURANCA.vue +497 -0
  87. package/src/component/template/ViewTemplateSelectOption.vue +60 -0
  88. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
  89. package/src/component/template/ViewTemplateWithTable.vue +56 -49
  90. package/src/component/template/model/Report.js +2 -2
  91. package/src/component/value-objects/Address.js +11 -0
  92. package/src/component/value-objects/{Endereco.vue → Address.vue} +39 -40
  93. package/src/component/value-objects/{DadosContato.js → Contact.js} +2 -2
  94. package/src/component/value-objects/{DadosContato.vue → Contact.vue} +24 -17
  95. package/src/component/value-objects/Person.js +10 -0
  96. package/src/component/value-objects/{DadosPessoa.vue → Person.vue} +50 -35
  97. package/src/config/axios.js +9 -9
  98. package/src/config/dicas.js +14 -14
  99. package/src/config/router.js +13 -13
  100. package/src/config/token.js +14 -14
  101. package/src/main.js +23 -23
  102. package/src/store/modules/generic.js +512 -488
  103. package/src/store/modules/report.js +156 -127
  104. package/src/store/modules/user.js +6 -0
  105. package/src/store/modules/validation.js +38 -38
  106. package/src/store/store.js +13 -13
  107. package/docs/src/component/template/ModeloRelatorioView.drawio +0 -160
  108. package/src/component/shared/query-builder/ListDynamicComponent.vue +0 -42
  109. package/src/component/shared/query-builder/Totalization.vue +0 -38
  110. package/src/component/value-objects/DadosPessoa.js +0 -10
  111. package/src/component/value-objects/Endereco.js +0 -11
@@ -1,142 +1,140 @@
1
- <template>
2
- <div class="panel">
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">
12
- <Messages v-if="!modal.open" />
13
- <div class="row">
14
- <div class="col-10">
15
- <div class="div-title">
16
- <span class="module">
17
- <span class="icon"><i class="fas fa-compass"></i></span>
18
- {{ module }} |</span
19
- >
20
- <span class="title"> {{ title }}</span>
21
- </div>
22
- </div>
23
- <div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
24
- <div class="c-back" @click="back()">
25
- <span class="g-espaco-esquerda">Voltar</span>
26
- </div>
27
- </div>
28
- </div>
29
- <br v-show="showButtons" />
30
- <div class="row" v-show="showButtons">
31
- <div class="col-12" v-show="showButtons">
32
- <slot name="content-buttons"></slot>
33
- </div>
34
- </div>
35
- <br v-show="showButtons || showSearch" />
36
- <div v-show="showButtons || showSearch">
37
- <div>
38
- <div v-show="showSearch"><Search /></div>
39
- </div>
40
- </div>
41
- <br v-show="showSearch" />
42
- <div>
43
- <slot name="content-main"></slot>
44
- </div>
45
- </div>
46
- </div>
47
- <br /><br /><br />
48
- </div>
49
- </template>
50
-
51
- <script>
52
- import Toast from "../shared/Toast.vue";
53
- import Messages from "../shared/Messages.vue";
54
- import Search from "../shared/Search.vue";
55
- import Loading from "../shared/Loading.vue";
56
- import VerticalFilter from "../shared/VerticalFilter";
57
-
58
- import { mapState, mapGetters, mapMutations } from "vuex";
59
-
60
- export default {
61
- name: "Panel",
62
- components: {
63
- Loading,
64
- VerticalFilter,
65
- Search,
66
- Messages,
67
- Toast,
68
- },
69
- props: {
70
- module: String,
71
- title: String,
72
- showVerticalFilter: Boolean,
73
- showSearch: Boolean,
74
- showButtons: Boolean,
75
- },
76
- data() {
77
- return {
78
- currentRoute: this.$route.name,
79
- };
80
- },
81
- created() {
82
- this.addLoading("panel");
83
- },
84
- updated() {
85
- this.currentRoute = this.$route.name;
86
- },
87
- computed: {
88
- ...mapGetters("generic", ["isLoading"]),
89
- ...mapState("generic", ["modal"]),
90
- },
91
- methods: {
92
- ...mapMutations("generic", ["addLoading"]),
93
- back() {
94
- window.history.back();
95
- },
96
- },
97
- };
98
- </script>
99
- <style scoped>
100
- .local-container {
101
- margin: auto;
102
- padding-left: 110px;
103
- max-width: 1400px;
104
- }
105
-
106
- .div-title {
107
- margin-top: 15px;
108
- }
109
-
110
- .module {
111
- font-size: 16px;
112
- font-weight: 400;
113
- }
114
-
115
- .title {
116
- font-size: 18px;
117
- font-weight: 400;
118
- line-height: 34px;
119
- color: #577696;
120
- }
121
-
122
- .icon {
123
- opacity: 0.8;
124
- font-size: 20px;
125
- }
126
-
127
- .c-back {
128
- margin-top: 20px;
129
- margin-right: 12px;
130
- font-size: 16px;
131
- cursor: pointer;
132
- color: #8ca1b7;
133
- }
134
-
135
- .c-back:hover {
136
- color: #8ca1b7;
137
- }
138
-
139
- .panel {
140
- padding: 25px;
141
- }
142
- </style>
1
+ <template>
2
+ <div class="panel">
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">
12
+ <Messages v-if="!modal.open" />
13
+ <div class="row">
14
+ <div class="col-10">
15
+ <div class="div-title">
16
+ <span class="module">
17
+ <span class="icon"><i class="fas fa-compass"></i></span>
18
+ {{ module }} |</span
19
+ >
20
+ <span class="title"> {{ title }}</span>
21
+ </div>
22
+ </div>
23
+ <div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
24
+ <div class="c-back" @click="back()">
25
+ <span class="g-espaco-esquerda">Voltar</span>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <br v-show="showButtons" />
30
+ <div class="row" v-show="showButtons">
31
+ <div class="col-12" v-show="showButtons">
32
+ <slot name="content-buttons"></slot>
33
+ </div>
34
+ </div>
35
+ <br v-show="showButtons || showSearch" />
36
+ <div v-show="showButtons || showSearch">
37
+ <div>
38
+ <div v-show="showSearch"><Search /></div>
39
+ </div>
40
+ </div>
41
+ <br v-show="showSearch" />
42
+ <div>
43
+ <slot name="content-main"></slot>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <br /><br /><br />
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+ import Toast from "../shared/Toast.vue";
53
+ import Messages from "../shared/Messages.vue";
54
+ import Search from "../shared/Search.vue";
55
+ import Loading from "../shared/Loading.vue";
56
+ import VerticalFilter from "../shared/VerticalFilter";
57
+
58
+ import { mapState, mapGetters, mapMutations } from "vuex";
59
+
60
+ export default {
61
+ name: "Panel",
62
+ components: {
63
+ Loading,
64
+ VerticalFilter,
65
+ Search,
66
+ Messages,
67
+ Toast,
68
+ },
69
+ props: {
70
+ module: String,
71
+ title: String,
72
+ showVerticalFilter: Boolean,
73
+ showSearch: Boolean,
74
+ showButtons: Boolean,
75
+ },
76
+ data() {
77
+ return {
78
+ currentRoute: this.$route.name,
79
+ };
80
+ },
81
+ created() {
82
+ this.addLoading("panel");
83
+ },
84
+ updated() {
85
+ this.currentRoute = this.$route.name;
86
+ },
87
+ computed: {
88
+ ...mapGetters("generic", ["isLoading"]),
89
+ ...mapState("generic", ["modal"]),
90
+ },
91
+ methods: {
92
+ ...mapMutations("generic", ["addLoading"]),
93
+ back() {
94
+ window.history.back();
95
+ },
96
+ },
97
+ };
98
+ </script>
99
+ <style scoped>
100
+ .local-container {
101
+ margin: auto;
102
+ padding-left: 130px;
103
+ max-width: 1400px;
104
+ }
105
+
106
+ .div-title {
107
+ margin-top: 15px;
108
+ }
109
+
110
+ .module {
111
+ font-size: 16px;
112
+ font-weight: 400;
113
+ }
114
+
115
+ .title {
116
+ font-size: 18px;
117
+ font-weight: 400;
118
+ }
119
+
120
+ .icon {
121
+ opacity: 0.8;
122
+ font-size: 20px;
123
+ }
124
+
125
+ .c-back {
126
+ margin-top: 20px;
127
+ margin-right: 12px;
128
+ font-size: 16px;
129
+ cursor: pointer;
130
+ color: #8ca1b7;
131
+ }
132
+
133
+ .c-back:hover {
134
+ color: #8ca1b7;
135
+ }
136
+
137
+ .panel {
138
+ padding: 25px;
139
+ }
140
+ </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>
@@ -1,43 +1,42 @@
1
- <template>
2
- <div
3
- :id="id"
4
- class="scrollbar"
5
- :style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
6
- >
7
- <slot></slot>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- import { mapMutations } from "vuex";
13
-
14
- export default {
15
- name: "ScrollBar",
16
- props: {
17
- id: String,
18
- maxHeight: Number,
19
- minHeight: Number,
20
- },
21
- mounted() {
22
- const listElm = document.querySelector("#" + this.id);
23
- if (listElm != null)
24
- listElm.addEventListener("scroll", (e) => {
25
- if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
26
- this.addEvent({
27
- nome: "endScrollbar",
28
- });
29
- }
30
- });
31
- },
32
- methods: {
33
- ...mapMutations("generic", ["addEvent"]),
34
- },
35
- };
36
- </script>
37
-
38
- <style scoped>
39
- div {
40
- overflow-y: visible;
41
- overflow-x: hidden;
42
- }
43
- </style>
1
+ <template>
2
+ <div
3
+ :id="id"
4
+ class="scrollbar"
5
+ :style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
6
+ >
7
+ <slot></slot>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ import { mapMutations } from "vuex";
13
+
14
+ export default {
15
+ name: "ScrollBar",
16
+ props: {
17
+ id: String,
18
+ maxHeight: Number,
19
+ minHeight: Number,
20
+ endScrollBar: Function,
21
+ },
22
+ mounted() {
23
+ const listElm = document.querySelector("#" + this.id);
24
+ if (listElm != null)
25
+ listElm.addEventListener("scroll", (e) => {
26
+ if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
27
+ if (this.endScrollBar) this.endScrollBar();
28
+ }
29
+ });
30
+ },
31
+ methods: {
32
+ ...mapMutations("generic", ["addEvent"]),
33
+ },
34
+ };
35
+ </script>
36
+
37
+ <style scoped>
38
+ div {
39
+ overflow-y: visible;
40
+ overflow-x: hidden;
41
+ }
42
+ </style>