@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.
- package/docs/src/component/template/ViewTemplateReportPreview.drawio +210 -0
- package/package.json +79 -77
- package/src/App.vue +13 -13
- package/src/component/forms/Button.vue +170 -169
- package/src/component/forms/CheckboxGroup.vue +72 -63
- package/src/component/forms/CheckboxSimple.vue +46 -27
- package/src/component/forms/Color.vue +38 -38
- package/src/component/forms/DateTime.vue +167 -177
- package/src/component/forms/Dropdown.vue +218 -224
- package/src/component/forms/EditorHtml.vue +126 -123
- package/src/component/forms/FileUpload.vue +185 -189
- package/src/component/forms/ImageUpload.vue +230 -0
- package/src/component/forms/IncrementDecrement.vue +101 -0
- package/src/component/forms/InputDecimal.vue +142 -137
- package/src/component/forms/InputNumber.vue +154 -149
- package/src/component/forms/InputPassword.vue +135 -135
- package/src/component/forms/InputText.vue +162 -157
- package/src/component/forms/Modal.vue +65 -60
- package/src/component/forms/RadioGroup.vue +50 -50
- package/src/component/forms/Select.vue +349 -337
- package/src/component/forms/SelectStatic.vue +127 -120
- package/src/component/forms/Slider.vue +18 -18
- package/src/component/forms/TextArea.vue +126 -126
- package/src/component/layout/Alert.vue +92 -92
- package/src/component/layout/Badge.vue +103 -103
- package/src/component/layout/FixedBar.vue +100 -68
- package/src/component/layout/Header.vue +38 -35
- package/src/component/layout/LoadingFullPage.vue +27 -27
- package/src/component/layout/Menu.vue +210 -214
- package/src/component/layout/Molded.vue +28 -27
- package/src/component/layout/Panel.vue +140 -142
- package/src/component/layout/Popover.vue +126 -126
- package/src/component/layout/ScrollBar.vue +42 -43
- package/src/component/layout/Tab.vue +135 -0
- package/src/component/layout/Tag.vue +3 -3
- package/src/component/layout/Wizard.vue +211 -213
- package/src/component/rental/DisplayPeriodRent.vue +81 -0
- package/src/component/rental/DisplayTotalization.vue +47 -0
- package/src/component/shared/Collapse.vue +131 -131
- package/src/component/shared/Confirmation.vue +2 -2
- package/src/component/shared/DocumentEditor.vue +1 -1
- package/src/component/shared/DocumentPreview.vue +1 -1
- package/src/component/shared/DocumentPublic.vue +34 -0
- package/src/component/shared/ExportExcel.vue +1 -8
- package/src/component/shared/ExportPDF.vue +116 -116
- package/src/component/shared/{HeaderPrint.vue → HeaderReport.vue} +4 -4
- package/src/component/shared/HorizontalFilter.vue +59 -59
- package/src/component/shared/Loading.vue +107 -107
- package/src/component/shared/LoadingMoreButton.vue +23 -23
- package/src/component/shared/Messages.vue +81 -83
- package/src/component/shared/PDFViewer.vue +22 -22
- package/src/component/shared/Pagination.vue +52 -53
- package/src/component/shared/{LegendaParametro.vue → ParameterLegend.vue} +22 -26
- package/src/component/shared/ProgressBar.vue +22 -21
- package/src/component/shared/QueryButton.vue +66 -66
- package/src/component/shared/Report.vue +187 -0
- package/src/component/shared/SaveCancel.vue +26 -5
- package/src/component/shared/Search.vue +154 -154
- package/src/component/shared/SelectOption.vue +146 -0
- package/src/component/shared/Table.vue +163 -243
- package/src/component/shared/TableButton.vue +36 -36
- package/src/component/shared/TableDraggable.vue +127 -0
- package/src/component/shared/TableItem.vue +177 -0
- package/src/component/shared/TableTotalRecords.vue +9 -10
- package/src/component/shared/TableTotalization.vue +47 -47
- package/src/component/shared/Tip.vue +42 -42
- package/src/component/shared/Toast.vue +54 -54
- package/src/component/shared/TotalizationReport.vue +59 -0
- package/src/component/shared/VerticalFilter.vue +97 -145
- package/src/component/shared/query-builder/AddRule.vue +181 -187
- package/src/component/shared/query-builder/ConvertToOdata.js +34 -43
- package/src/component/shared/query-builder/DynamicComponent.vue +21 -16
- package/src/component/shared/query-builder/DynamicComponentList.vue +73 -0
- package/src/component/shared/query-builder/Fields.vue +29 -63
- package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/src/component/shared/query-builder/Rules.vue +2 -14
- package/src/component/shared/query-builder/SelectRule.vue +15 -15
- package/src/component/shared/query-builder/Tags.vue +24 -8
- package/src/component/shared/query-builder/utilities.js +21 -21
- package/src/component/template/{ListViewWithHandlerData.vue → ListViewWithDataHandler.vue} +260 -231
- package/src/component/template/{AddEditReport.vue → ReportCreateUpdate.vue} +40 -22
- package/src/component/template/ViewTemplateConfiguration.vue +64 -69
- package/src/component/template/ViewTemplateDocumentView.vue +22 -25
- package/src/component/template/ViewTemplateReportList.vue +39 -57
- package/src/component/template/ViewTemplateReportPreview.vue +270 -341
- package/src/component/template/ViewTemplateReportPreviewCOPIASEGURANCA.vue +497 -0
- package/src/component/template/ViewTemplateSelectOption.vue +60 -0
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/src/component/template/ViewTemplateWithTable.vue +56 -49
- package/src/component/template/model/Report.js +2 -2
- package/src/component/value-objects/Address.js +11 -0
- package/src/component/value-objects/{Endereco.vue → Address.vue} +39 -40
- package/src/component/value-objects/{DadosContato.js → Contact.js} +2 -2
- package/src/component/value-objects/{DadosContato.vue → Contact.vue} +24 -17
- package/src/component/value-objects/Person.js +10 -0
- package/src/component/value-objects/{DadosPessoa.vue → Person.vue} +50 -35
- package/src/config/axios.js +9 -9
- package/src/config/dicas.js +14 -14
- package/src/config/router.js +13 -13
- package/src/config/token.js +14 -14
- package/src/main.js +23 -23
- package/src/store/modules/generic.js +512 -488
- package/src/store/modules/report.js +156 -127
- package/src/store/modules/user.js +6 -0
- package/src/store/modules/validation.js +38 -38
- package/src/store/store.js +13 -13
- package/docs/src/component/template/ModeloRelatorioView.drawio +0 -160
- package/src/component/shared/query-builder/ListDynamicComponent.vue +0 -42
- package/src/component/shared/query-builder/Totalization.vue +0 -38
- package/src/component/value-objects/DadosPessoa.js +0 -10
- package/src/component/value-objects/Endereco.js +0 -11
|
@@ -1,224 +1,218 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="c-div-button">
|
|
3
|
-
<div class="dropdown">
|
|
4
|
-
<button
|
|
5
|
-
class="button dropbtn"
|
|
6
|
-
:class="{
|
|
7
|
-
small: size === 'small',
|
|
8
|
-
medium: size === 'medium',
|
|
9
|
-
large: size === 'large',
|
|
10
|
-
primary: type === 'primary',
|
|
11
|
-
success: type === 'success',
|
|
12
|
-
warning: type === 'warning',
|
|
13
|
-
info: type === 'info',
|
|
14
|
-
edit: type === 'edit',
|
|
15
|
-
danger: type === 'danger',
|
|
16
|
-
disabled: disabled,
|
|
17
|
-
}"
|
|
18
|
-
:disabled="disabled"
|
|
19
|
-
@click="
|
|
20
|
-
>
|
|
21
|
-
{{ title }} <i :class="classIcon"></i>
|
|
22
|
-
</button>
|
|
23
|
-
<div
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
position:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.
|
|
160
|
-
background: #
|
|
161
|
-
border-color: #
|
|
162
|
-
color: #fff;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.primary {
|
|
166
|
-
background: #
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.success {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
background: #
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.info {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
background: #
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.edit {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
background: #
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.warning {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
background: #
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.danger {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.danger:hover {
|
|
222
|
-
background: #c70f40;
|
|
223
|
-
}
|
|
224
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="c-div-button side-by-side">
|
|
3
|
+
<div class="dropdown">
|
|
4
|
+
<button
|
|
5
|
+
class="button dropbtn"
|
|
6
|
+
:class="{
|
|
7
|
+
small: size === 'small',
|
|
8
|
+
medium: size === 'medium',
|
|
9
|
+
large: size === 'large',
|
|
10
|
+
primary: type === 'primary',
|
|
11
|
+
success: type === 'success',
|
|
12
|
+
warning: type === 'warning',
|
|
13
|
+
info: type === 'info',
|
|
14
|
+
edit: type === 'edit',
|
|
15
|
+
danger: type === 'danger',
|
|
16
|
+
disabled: disabled,
|
|
17
|
+
}"
|
|
18
|
+
:disabled="disabled"
|
|
19
|
+
@click="toggle()"
|
|
20
|
+
>
|
|
21
|
+
{{ title }} <span class="icon-dropdown"><i :class="classIcon"></i></span>
|
|
22
|
+
</button>
|
|
23
|
+
<div v-show="show" class="text-left dropdown-content" @mouseleave="show = false">
|
|
24
|
+
<Molded :borderRadius="30">
|
|
25
|
+
<div v-for="item in items" :key="item.eventName">
|
|
26
|
+
<div :style="item.style" class="item" @click="execute(item.eventName)">
|
|
27
|
+
<i :class="item.classIcon"></i>
|
|
28
|
+
<span class="title"> {{ item.title }}</span>
|
|
29
|
+
</div>
|
|
30
|
+
<hr v-if="item.hr" class="hr-dropdown" />
|
|
31
|
+
</div>
|
|
32
|
+
</Molded>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import Molded from "../layout/Molded.vue";
|
|
40
|
+
|
|
41
|
+
import { mapMutations } from "vuex";
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: "Dropdown",
|
|
45
|
+
components: { Molded },
|
|
46
|
+
name: "Button",
|
|
47
|
+
props: {
|
|
48
|
+
title: String,
|
|
49
|
+
type: String,
|
|
50
|
+
classIcon: String,
|
|
51
|
+
size: String,
|
|
52
|
+
disabled: Boolean,
|
|
53
|
+
eventData: Object,
|
|
54
|
+
items: Array,
|
|
55
|
+
},
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
show: false,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
...mapMutations("generic", ["addEvent"]),
|
|
63
|
+
toggle() {
|
|
64
|
+
this.show = this.show ? false : true;
|
|
65
|
+
},
|
|
66
|
+
execute(eventName) {
|
|
67
|
+
this.toggle();
|
|
68
|
+
this.addEvent({ name: eventName });
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<style scoped>
|
|
75
|
+
.hr-dropdown {
|
|
76
|
+
background: #fafafc !important;
|
|
77
|
+
height: 1px !important;
|
|
78
|
+
margin: 0px !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.item {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
padding-bottom: 5px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.icon-dropdown {
|
|
87
|
+
margin-left: 5px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.item:hover {
|
|
91
|
+
background-color: #fafafc;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.title {
|
|
95
|
+
padding-left: 5px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.dropdown {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
margin-left: 5px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dropdown-content {
|
|
105
|
+
display: block;
|
|
106
|
+
position: absolute;
|
|
107
|
+
margin-top: 1px;
|
|
108
|
+
right: 50;
|
|
109
|
+
background-color: #ffffff;
|
|
110
|
+
border-radius: 30px;
|
|
111
|
+
min-width: 250px;
|
|
112
|
+
z-index: 30;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dropdown-content a {
|
|
116
|
+
color: black;
|
|
117
|
+
padding: 10px 15px;
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
display: block;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.dropdown-content a:hover {
|
|
123
|
+
background-color: #ddd;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.button {
|
|
127
|
+
padding: 8px 12px;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
border: none;
|
|
130
|
+
border-radius: 40px !important;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
-webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
134
|
+
-moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12);
|
|
135
|
+
box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.small {
|
|
139
|
+
padding: 3px 7px;
|
|
140
|
+
font-size: 13px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.medium {
|
|
144
|
+
padding: 7px 12px;
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.large {
|
|
149
|
+
padding: 10px 15px;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.disabled {
|
|
154
|
+
background: #bbbbbb !important;
|
|
155
|
+
border-color: #bbbbbb !important;
|
|
156
|
+
color: #fff;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.primary {
|
|
160
|
+
background: #577696;
|
|
161
|
+
border-color: #577696;
|
|
162
|
+
color: #fff;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.primary:hover {
|
|
166
|
+
background: #355472;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.success {
|
|
170
|
+
color: #fff;
|
|
171
|
+
background: #94aa2a;
|
|
172
|
+
border-color: #94aa2a;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.success:hover {
|
|
176
|
+
background: #6d7e1c;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.info {
|
|
180
|
+
color: #fff;
|
|
181
|
+
border-color: #4ab4e2;
|
|
182
|
+
background: #4ab4e2;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.info:hover {
|
|
186
|
+
background: #3e90b3;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.edit {
|
|
190
|
+
color: #fff;
|
|
191
|
+
border-color: #7b7f83;
|
|
192
|
+
background: #7b7f83;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.edit:hover {
|
|
196
|
+
background: #595c5f;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.warning {
|
|
200
|
+
color: #fff;
|
|
201
|
+
border-color: #f1bc31;
|
|
202
|
+
background: #f1bc31;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.warning:hover {
|
|
206
|
+
background: #a37d1b;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.danger {
|
|
210
|
+
color: #fff;
|
|
211
|
+
border-color: #f0134d;
|
|
212
|
+
background: #f0134d;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.danger:hover {
|
|
216
|
+
background: #c70f40;
|
|
217
|
+
}
|
|
218
|
+
</style>
|