@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,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div class="
|
|
4
|
-
{{
|
|
2
|
+
<div class="selected-filter" @blur="open = false">
|
|
3
|
+
<div class="selected" :class="{ open: open }" @click="open = !open">
|
|
4
|
+
{{ selected }}
|
|
5
5
|
</div>
|
|
6
|
-
<div class="items" :class="{ hide: !
|
|
6
|
+
<div class="items" :class="{ hide: !open }">
|
|
7
7
|
<div v-for="(options, i) of options" :key="i">
|
|
8
8
|
<div @click="select(options)">
|
|
9
9
|
<span :class="options.classCss">
|
|
@@ -18,28 +18,28 @@
|
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
20
|
export default {
|
|
21
|
-
props: ["options", "
|
|
21
|
+
props: ["options", "value"],
|
|
22
22
|
data() {
|
|
23
23
|
return {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
selected: "Selecione os filtros",
|
|
25
|
+
open: false,
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
mounted() {
|
|
29
|
-
this.$emit("input", this.
|
|
29
|
+
this.$emit("input", this.selected);
|
|
30
30
|
},
|
|
31
31
|
methods: {
|
|
32
32
|
select(options) {
|
|
33
33
|
this.$emit("input", options);
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
34
|
+
this.selected = options.title;
|
|
35
|
+
this.open = false;
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
41
|
<style scoped>
|
|
42
|
-
.
|
|
42
|
+
.selected-filter {
|
|
43
43
|
position: relative;
|
|
44
44
|
width: 100%;
|
|
45
45
|
text-align: left;
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
z-index: 1000;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
.selected-filter .selected {
|
|
53
53
|
background-color: white;
|
|
54
54
|
border-bottom: 1px solid #dbdee0;
|
|
55
55
|
color: black;
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
user-select: none;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
.selected-filter .selected:after {
|
|
62
62
|
position: absolute;
|
|
63
63
|
content: "";
|
|
64
64
|
top: 22px;
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
border-color: black transparent transparent transparent;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
.selected-filter .items {
|
|
73
73
|
color: black;
|
|
74
74
|
border-radius: 0px 0px 6px 6px;
|
|
75
75
|
overflow: hidden;
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
overflow-x: hidden;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.
|
|
86
|
+
.selected-filter .items div {
|
|
87
87
|
color: black;
|
|
88
88
|
padding-left: 1em;
|
|
89
89
|
cursor: pointer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div class="side-by-side div-tag" v-for="tag in
|
|
3
|
+
<div class="side-by-side div-tag" v-for="tag in tagsLocal" :key="tag.id">
|
|
4
4
|
<Tag
|
|
5
5
|
:eventName="eventName"
|
|
6
6
|
:eventData="tag"
|
|
7
7
|
:title="tag.title"
|
|
8
|
-
:
|
|
8
|
+
:value="tag.value"
|
|
9
9
|
/>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
@@ -22,27 +22,43 @@ export default {
|
|
|
22
22
|
props: {
|
|
23
23
|
eventName: String,
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
tagsLocal: [],
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
created() {
|
|
31
|
+
let self = this;
|
|
32
|
+
setTimeout(function () {
|
|
33
|
+
self.tagsLocal = self.tags;
|
|
34
|
+
}, 100);
|
|
35
|
+
},
|
|
26
36
|
computed: {
|
|
27
37
|
...mapGetters("report", ["tags"]),
|
|
28
38
|
...mapGetters("generic", ["showModal", "event"]),
|
|
29
39
|
},
|
|
30
40
|
methods: {
|
|
31
|
-
...mapMutations("report", ["
|
|
41
|
+
...mapMutations("report", ["removeSelectedRule"]),
|
|
32
42
|
},
|
|
33
43
|
watch: {
|
|
34
44
|
event: {
|
|
35
45
|
handler(event) {
|
|
36
|
-
if (event.
|
|
37
|
-
var tags = this.
|
|
46
|
+
if (event.name == "tagRemoved") {
|
|
47
|
+
var tags = this.tagsLocal.filter((item) => {
|
|
38
48
|
return item.id != event.data.id;
|
|
39
49
|
});
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
50
|
+
this.tagsLocal = tags;
|
|
51
|
+
this.removeSelectedRule(event.data.id);
|
|
42
52
|
}
|
|
43
53
|
},
|
|
44
54
|
deep: true,
|
|
45
55
|
},
|
|
56
|
+
tags: {
|
|
57
|
+
handler(value) {
|
|
58
|
+
this.tagsLocal = value;
|
|
59
|
+
},
|
|
60
|
+
deep: true,
|
|
61
|
+
},
|
|
46
62
|
},
|
|
47
63
|
};
|
|
48
64
|
</script>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a depply cloned object without reference.
|
|
3
|
-
* Copied from Vue MultiSelect and Vuex.
|
|
4
|
-
* @type {Object}
|
|
5
|
-
*/
|
|
6
|
-
const deepClone = function (obj) {
|
|
7
|
-
if (Array.isArray(obj)) {
|
|
8
|
-
return obj.map(deepClone)
|
|
9
|
-
} else if (obj && typeof obj === 'object') {
|
|
10
|
-
var cloned = {}
|
|
11
|
-
var keys = Object.keys(obj)
|
|
12
|
-
for (var i = 0, l = keys.length; i < l; i++) {
|
|
13
|
-
var key = keys[i]
|
|
14
|
-
cloned[key] = deepClone(obj[key])
|
|
15
|
-
}
|
|
16
|
-
return cloned
|
|
17
|
-
} else {
|
|
18
|
-
return obj
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Returns a depply cloned object without reference.
|
|
3
|
+
* Copied from Vue MultiSelect and Vuex.
|
|
4
|
+
* @type {Object}
|
|
5
|
+
*/
|
|
6
|
+
const deepClone = function (obj) {
|
|
7
|
+
if (Array.isArray(obj)) {
|
|
8
|
+
return obj.map(deepClone)
|
|
9
|
+
} else if (obj && typeof obj === 'object') {
|
|
10
|
+
var cloned = {}
|
|
11
|
+
var keys = Object.keys(obj)
|
|
12
|
+
for (var i = 0, l = keys.length; i < l; i++) {
|
|
13
|
+
var key = keys[i]
|
|
14
|
+
cloned[key] = deepClone(obj[key])
|
|
15
|
+
}
|
|
16
|
+
return cloned
|
|
17
|
+
} else {
|
|
18
|
+
return obj
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
22
|
export default deepClone;
|