@nixweb/nixloc-ui 0.0.127 → 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/package.json +79 -79
- package/src/App.vue +13 -13
- package/src/component/forms/Button.vue +170 -170
- package/src/component/forms/CheckboxGroup.vue +72 -66
- package/src/component/forms/CheckboxSimple.vue +46 -42
- package/src/component/forms/Color.vue +38 -38
- package/src/component/forms/DateTime.vue +167 -163
- package/src/component/forms/Dropdown.vue +218 -224
- package/src/component/forms/EditorHtml.vue +126 -126
- package/src/component/forms/FileUpload.vue +185 -185
- package/src/component/forms/ImageUpload.vue +12 -4
- package/src/component/forms/IncrementDecrement.vue +101 -0
- package/src/component/forms/InputDecimal.vue +142 -138
- package/src/component/forms/InputNumber.vue +154 -154
- package/src/component/forms/InputPassword.vue +135 -135
- package/src/component/forms/InputText.vue +162 -157
- package/src/component/forms/Modal.vue +65 -65
- package/src/component/forms/RadioGroup.vue +50 -50
- package/src/component/forms/Select.vue +349 -340
- package/src/component/forms/SelectStatic.vue +127 -127
- 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 -215
- package/src/component/layout/Molded.vue +28 -27
- package/src/component/layout/Panel.vue +140 -140
- package/src/component/layout/Popover.vue +126 -126
- package/src/component/layout/ScrollBar.vue +42 -42
- package/src/component/layout/Tab.vue +135 -0
- package/src/component/layout/Wizard.vue +211 -211
- 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/DocumentPreview.vue +1 -1
- package/src/component/shared/DocumentPublic.vue +34 -0
- package/src/component/shared/ExportPDF.vue +116 -116
- package/src/component/shared/HeaderReport.vue +1 -1
- 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 -81
- package/src/component/shared/PDFViewer.vue +22 -22
- package/src/component/shared/Pagination.vue +52 -52
- package/src/component/shared/ProgressBar.vue +22 -22
- package/src/component/shared/QueryButton.vue +66 -66
- package/src/component/shared/{BodyReport.vue → Report.vue} +8 -7
- package/src/component/shared/SaveCancel.vue +6 -1
- package/src/component/shared/Search.vue +154 -154
- package/src/component/shared/SelectOption.vue +18 -9
- package/src/component/shared/Table.vue +163 -254
- 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/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 -97
- package/src/component/shared/query-builder/AddRule.vue +181 -181
- package/src/component/shared/query-builder/ConvertToOdata.js +3 -9
- package/src/component/shared/query-builder/DynamicComponent.vue +5 -1
- package/src/component/shared/query-builder/DynamicComponentList.vue +73 -62
- package/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/src/component/shared/query-builder/utilities.js +21 -21
- package/src/component/template/ListViewWithDataHandler.vue +260 -238
- package/src/component/template/ReportCreateUpdate.vue +9 -2
- package/src/component/template/ViewTemplateConfiguration.vue +64 -63
- package/src/component/template/ViewTemplateDocumentView.vue +1 -0
- package/src/component/template/ViewTemplateReportPreview.vue +56 -12
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/src/component/template/ViewTemplateWithTable.vue +56 -56
- package/src/component/value-objects/Contact.vue +7 -0
- package/src/component/value-objects/Person.vue +15 -0
- 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 -494
- package/src/store/modules/report.js +37 -19
- package/src/store/modules/user.js +3 -0
- package/src/store/modules/validation.js +38 -38
- package/src/store/store.js +13 -13
- package/src/component/shared/query-builder/Totalization.vue +0 -38
|
@@ -1,62 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
<component
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="component">
|
|
4
|
+
<span v-if="selectedRules.length > 0">
|
|
5
|
+
<i class="fas fa-expand-arrows-alt"></i> Clique e arraste para ordenar
|
|
6
|
+
</span>
|
|
7
|
+
<draggable :list="selectedRules">
|
|
8
|
+
<component
|
|
9
|
+
:is="component()"
|
|
10
|
+
v-for="(rule, index) in selectedRules"
|
|
11
|
+
:key="index"
|
|
12
|
+
:rule="rule"
|
|
13
|
+
/>
|
|
14
|
+
</draggable>
|
|
15
|
+
<br />
|
|
16
|
+
<div v-if="selectedRules.length == 0">
|
|
17
|
+
<Alert type="info"> Selecione o filtro desejado e clique em +Adicionar</Alert>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import Alert from "@nixweb/nixloc-ui/src/component/layout/Alert";
|
|
25
|
+
|
|
26
|
+
import draggable from "vuedraggable";
|
|
27
|
+
|
|
28
|
+
import { mapState, mapMutations } from "vuex";
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
components: {
|
|
32
|
+
Alert,
|
|
33
|
+
draggable,
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
dynamicComponent: null,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
...mapState("report", ["selectedRules"]),
|
|
42
|
+
},
|
|
43
|
+
mounted() {
|
|
44
|
+
this.dynamicComponent = this.$parent.$options.components["DynamicComponent"];
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
...mapMutations("report", ["mountFinalQueryFormatOData"]),
|
|
48
|
+
component() {
|
|
49
|
+
return this.dynamicComponent;
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
watch: {
|
|
53
|
+
selectedRules: {
|
|
54
|
+
handler(value) {
|
|
55
|
+
this.mountFinalQueryFormatOData(value);
|
|
56
|
+
},
|
|
57
|
+
deep: true,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style scoped>
|
|
64
|
+
.component {
|
|
65
|
+
min-height: 380px;
|
|
66
|
+
max-height: 380px;
|
|
67
|
+
overflow-y: visible;
|
|
68
|
+
overflow-x: hidden;
|
|
69
|
+
padding-left: 10px;
|
|
70
|
+
padding-right: 10px;
|
|
71
|
+
margin-top: 10px;
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vue-query-builder">
|
|
3
|
-
<slot v-bind="vqbProps">
|
|
4
|
-
<AddRule v-bind="vqbProps" />
|
|
5
|
-
</slot>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import AddRule from "./AddRule.vue";
|
|
11
|
-
|
|
12
|
-
import { mapState } from "vuex";
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
name: "QueryBuilder",
|
|
16
|
-
components: {
|
|
17
|
-
AddRule,
|
|
18
|
-
},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
typeRule: {
|
|
22
|
-
text: {
|
|
23
|
-
id: "text-field",
|
|
24
|
-
operators: ["igual", "diferente", "contem"],
|
|
25
|
-
typeField: "text",
|
|
26
|
-
},
|
|
27
|
-
numeric: {
|
|
28
|
-
id: "number-field",
|
|
29
|
-
/* operators: ["=", "!=", "<", "<=", ">", ">="],*/
|
|
30
|
-
operators: ["igual", "diferente", "menor", "menor ou igual", "maior", "maior ou igual"],
|
|
31
|
-
typeField: "number",
|
|
32
|
-
},
|
|
33
|
-
radio: {
|
|
34
|
-
id: "radio-field",
|
|
35
|
-
operators: [],
|
|
36
|
-
options: [],
|
|
37
|
-
typeField: "radio",
|
|
38
|
-
},
|
|
39
|
-
checkbox: {
|
|
40
|
-
id: "checkbox-field",
|
|
41
|
-
operators: ["checkbox"],
|
|
42
|
-
options: [],
|
|
43
|
-
typeField: "checkbox",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
computed: {
|
|
49
|
-
...mapState("report", ["report"]),
|
|
50
|
-
mergeRules() {
|
|
51
|
-
var mergeRules = [];
|
|
52
|
-
var self = this;
|
|
53
|
-
self.report.rules.forEach(function (rule) {
|
|
54
|
-
if (typeof self.typeRule[rule.typeField] !== "undefined") {
|
|
55
|
-
mergeRules.push(Object.assign({}, self.typeRule[rule.typeField], rule));
|
|
56
|
-
} else {
|
|
57
|
-
mergeRules.push(rule);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
return mergeRules;
|
|
61
|
-
},
|
|
62
|
-
vqbProps() {
|
|
63
|
-
return {
|
|
64
|
-
rules: this.mergeRules,
|
|
65
|
-
};
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vue-query-builder">
|
|
3
|
+
<slot v-bind="vqbProps">
|
|
4
|
+
<AddRule v-bind="vqbProps" />
|
|
5
|
+
</slot>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import AddRule from "./AddRule.vue";
|
|
11
|
+
|
|
12
|
+
import { mapState } from "vuex";
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: "QueryBuilder",
|
|
16
|
+
components: {
|
|
17
|
+
AddRule,
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
typeRule: {
|
|
22
|
+
text: {
|
|
23
|
+
id: "text-field",
|
|
24
|
+
operators: ["igual", "diferente", "contem"],
|
|
25
|
+
typeField: "text",
|
|
26
|
+
},
|
|
27
|
+
numeric: {
|
|
28
|
+
id: "number-field",
|
|
29
|
+
/* operators: ["=", "!=", "<", "<=", ">", ">="],*/
|
|
30
|
+
operators: ["igual", "diferente", "menor", "menor ou igual", "maior", "maior ou igual"],
|
|
31
|
+
typeField: "number",
|
|
32
|
+
},
|
|
33
|
+
radio: {
|
|
34
|
+
id: "radio-field",
|
|
35
|
+
operators: [],
|
|
36
|
+
options: [],
|
|
37
|
+
typeField: "radio",
|
|
38
|
+
},
|
|
39
|
+
checkbox: {
|
|
40
|
+
id: "checkbox-field",
|
|
41
|
+
operators: ["checkbox"],
|
|
42
|
+
options: [],
|
|
43
|
+
typeField: "checkbox",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
...mapState("report", ["report"]),
|
|
50
|
+
mergeRules() {
|
|
51
|
+
var mergeRules = [];
|
|
52
|
+
var self = this;
|
|
53
|
+
self.report.rules.forEach(function (rule) {
|
|
54
|
+
if (typeof self.typeRule[rule.typeField] !== "undefined") {
|
|
55
|
+
mergeRules.push(Object.assign({}, self.typeRule[rule.typeField], rule));
|
|
56
|
+
} else {
|
|
57
|
+
mergeRules.push(rule);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return mergeRules;
|
|
61
|
+
},
|
|
62
|
+
vqbProps() {
|
|
63
|
+
return {
|
|
64
|
+
rules: this.mergeRules,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
</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;
|