@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,42 +1,46 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
|
|
4
|
-
{{ title }}
|
|
5
|
-
<Tip :field="field" :formName="formName" />
|
|
6
|
-
</b-form-checkbox>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import Tip from "../shared/Tip.vue";
|
|
12
|
-
|
|
13
|
-
import { mapMutations } from "vuex";
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
components: { Tip },
|
|
17
|
-
name: "CheckboxSimple",
|
|
18
|
-
props: {
|
|
19
|
-
title: String,
|
|
20
|
-
formName: String,
|
|
21
|
-
field: String,
|
|
22
|
-
value: Boolean,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
|
|
4
|
+
{{ title }}
|
|
5
|
+
<Tip :field="field" :formName="formName" />
|
|
6
|
+
</b-form-checkbox>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import Tip from "../shared/Tip.vue";
|
|
12
|
+
|
|
13
|
+
import { mapMutations } from "vuex";
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
components: { Tip },
|
|
17
|
+
name: "CheckboxSimple",
|
|
18
|
+
props: {
|
|
19
|
+
title: String,
|
|
20
|
+
formName: String,
|
|
21
|
+
field: String,
|
|
22
|
+
value: Boolean,
|
|
23
|
+
markFormDirty: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
valueLocal: false,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
...mapMutations("validation", ["updateFormDirty"]),
|
|
35
|
+
},
|
|
36
|
+
watch: {
|
|
37
|
+
value() {
|
|
38
|
+
this.valueLocal = this.value;
|
|
39
|
+
},
|
|
40
|
+
valueLocal() {
|
|
41
|
+
this.$emit("input", this.valueLocal);
|
|
42
|
+
if (this.markFormDirty) this.updateFormDirty(true);
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="form-group">
|
|
3
|
-
<div>
|
|
4
|
-
<span class="title">{{ title }} </span>
|
|
5
|
-
<compact-picker v-model.trim="color.hex" />
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { Chrome } from "vue-color";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
name: "Color",
|
|
15
|
-
components: {
|
|
16
|
-
"compact-picker": Chrome,
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
title: String,
|
|
20
|
-
field: String,
|
|
21
|
-
formName: String,
|
|
22
|
-
value: String,
|
|
23
|
-
},
|
|
24
|
-
data() {
|
|
25
|
-
return {
|
|
26
|
-
color: { hex: "#40BF84" },
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
watch: {
|
|
30
|
-
value() {
|
|
31
|
-
this.color.hex = this.value;
|
|
32
|
-
},
|
|
33
|
-
"color.hex": function (value) {
|
|
34
|
-
if (value.hex) this.$emit("input", value.hex);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="form-group">
|
|
3
|
+
<div>
|
|
4
|
+
<span class="title">{{ title }} </span>
|
|
5
|
+
<compact-picker v-model.trim="color.hex" />
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { Chrome } from "vue-color";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "Color",
|
|
15
|
+
components: {
|
|
16
|
+
"compact-picker": Chrome,
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
title: String,
|
|
20
|
+
field: String,
|
|
21
|
+
formName: String,
|
|
22
|
+
value: String,
|
|
23
|
+
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
color: { hex: "#40BF84" },
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
watch: {
|
|
30
|
+
value() {
|
|
31
|
+
this.color.hex = this.value;
|
|
32
|
+
},
|
|
33
|
+
"color.hex": function (value) {
|
|
34
|
+
if (value.hex) this.$emit("input", value.hex);
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
</script>
|
|
@@ -1,163 +1,167 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="form-group">
|
|
3
|
-
<label>
|
|
4
|
-
<span class="title">{{ title }} </span>
|
|
5
|
-
<span class="required" v-if="required">*</span>
|
|
6
|
-
<Tip :field="field" :formName="formName" />
|
|
7
|
-
</label>
|
|
8
|
-
<div class="inner-addon right-addon">
|
|
9
|
-
<i
|
|
10
|
-
v-if="notifications.length > 0 && formDirty"
|
|
11
|
-
class="required glyphicon fas fa-exclamation-triangle"
|
|
12
|
-
></i>
|
|
13
|
-
<date-picker
|
|
14
|
-
lang="pt-br"
|
|
15
|
-
:range="range"
|
|
16
|
-
@confirm="executeConfirm"
|
|
17
|
-
@change="executeConfirm"
|
|
18
|
-
@clear="close"
|
|
19
|
-
:confirm="confirm"
|
|
20
|
-
:confirm-text="confirmText"
|
|
21
|
-
:format="format"
|
|
22
|
-
value-type="format"
|
|
23
|
-
:time-picker-options="{
|
|
24
|
-
start: '07:00',
|
|
25
|
-
step: '00:30',
|
|
26
|
-
end: '23:30',
|
|
27
|
-
format: 'HH:mm',
|
|
28
|
-
}"
|
|
29
|
-
width="100%"
|
|
30
|
-
:placeholder="placeholder"
|
|
31
|
-
:type="type"
|
|
32
|
-
v-model="valueLocal"
|
|
33
|
-
:class="{ 'is-invalid': notifications.length > 0 && formDirty }"
|
|
34
|
-
></date-picker>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<div v-if="formDirty">
|
|
38
|
-
<div v-for="message in notifications" :key="message">
|
|
39
|
-
<span class="invalid">{{ message }}</span>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<script>
|
|
46
|
-
import Tip from "../shared/Tip";
|
|
47
|
-
import DatePicker from "vue2-datepicker";
|
|
48
|
-
|
|
49
|
-
import { mapState, mapMutations } from "vuex";
|
|
50
|
-
|
|
51
|
-
export default {
|
|
52
|
-
components: { Tip, DatePicker },
|
|
53
|
-
name: "Data",
|
|
54
|
-
mixins: [],
|
|
55
|
-
props: [
|
|
56
|
-
"title",
|
|
57
|
-
"field",
|
|
58
|
-
"fieldTarget",
|
|
59
|
-
"placeholder",
|
|
60
|
-
"formName",
|
|
61
|
-
"required",
|
|
62
|
-
"format",
|
|
63
|
-
"type",
|
|
64
|
-
"value",
|
|
65
|
-
"range",
|
|
66
|
-
"confirm",
|
|
67
|
-
"confirmText",
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
this.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
this.
|
|
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
|
-
color: #
|
|
161
|
-
font-size: 14px;
|
|
162
|
-
}
|
|
163
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="form-group">
|
|
3
|
+
<label>
|
|
4
|
+
<span class="title">{{ title }} </span>
|
|
5
|
+
<span class="required" v-if="required">*</span>
|
|
6
|
+
<Tip :field="field" :formName="formName" />
|
|
7
|
+
</label>
|
|
8
|
+
<div class="inner-addon right-addon">
|
|
9
|
+
<i
|
|
10
|
+
v-if="notifications.length > 0 && formDirty"
|
|
11
|
+
class="required glyphicon fas fa-exclamation-triangle"
|
|
12
|
+
></i>
|
|
13
|
+
<date-picker
|
|
14
|
+
lang="pt-br"
|
|
15
|
+
:range="range"
|
|
16
|
+
@confirm="executeConfirm"
|
|
17
|
+
@change="executeConfirm"
|
|
18
|
+
@clear="close"
|
|
19
|
+
:confirm="confirm"
|
|
20
|
+
:confirm-text="confirmText"
|
|
21
|
+
:format="format"
|
|
22
|
+
value-type="format"
|
|
23
|
+
:time-picker-options="{
|
|
24
|
+
start: '07:00',
|
|
25
|
+
step: '00:30',
|
|
26
|
+
end: '23:30',
|
|
27
|
+
format: 'HH:mm',
|
|
28
|
+
}"
|
|
29
|
+
width="100%"
|
|
30
|
+
:placeholder="placeholder"
|
|
31
|
+
:type="type"
|
|
32
|
+
v-model="valueLocal"
|
|
33
|
+
:class="{ 'is-invalid': notifications.length > 0 && formDirty }"
|
|
34
|
+
></date-picker>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div v-if="formDirty">
|
|
38
|
+
<div v-for="message in notifications" :key="message">
|
|
39
|
+
<span class="invalid">{{ message }}</span>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import Tip from "../shared/Tip";
|
|
47
|
+
import DatePicker from "vue2-datepicker";
|
|
48
|
+
|
|
49
|
+
import { mapState, mapMutations } from "vuex";
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
components: { Tip, DatePicker },
|
|
53
|
+
name: "Data",
|
|
54
|
+
mixins: [],
|
|
55
|
+
props: [
|
|
56
|
+
"title",
|
|
57
|
+
"field",
|
|
58
|
+
"fieldTarget",
|
|
59
|
+
"placeholder",
|
|
60
|
+
"formName",
|
|
61
|
+
"required",
|
|
62
|
+
"format",
|
|
63
|
+
"type",
|
|
64
|
+
"value",
|
|
65
|
+
"range",
|
|
66
|
+
"confirm",
|
|
67
|
+
"confirmText",
|
|
68
|
+
"markFormDirty",
|
|
69
|
+
],
|
|
70
|
+
data() {
|
|
71
|
+
return {
|
|
72
|
+
notifications: [],
|
|
73
|
+
formDirty: false,
|
|
74
|
+
valueLocal: "",
|
|
75
|
+
markFormDirtyLocal: false,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
created() {
|
|
79
|
+
this.validate();
|
|
80
|
+
this.valueLocal = this.value;
|
|
81
|
+
|
|
82
|
+
if (this.markFormDirty == undefined) this.markFormDirtyLocal = true;
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
...mapMutations("validation", [
|
|
86
|
+
"addValidation",
|
|
87
|
+
"removeValidation",
|
|
88
|
+
"updateFormDirty",
|
|
89
|
+
]),
|
|
90
|
+
...mapMutations("generic", ["addFilter"]),
|
|
91
|
+
validate() {
|
|
92
|
+
this.notifications = [];
|
|
93
|
+
|
|
94
|
+
if (this.required && this.valueLocal.length == 0) {
|
|
95
|
+
var message = `${this.title} não pode ser vazio!`;
|
|
96
|
+
this.notifications.push(message);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
executeConfirm() {
|
|
100
|
+
if (this.range) {
|
|
101
|
+
let obj = {
|
|
102
|
+
fieldTarget: this.fieldTarget,
|
|
103
|
+
valueLocal: { start: this.valueLocal[0], end: this.valueLocal[1] },
|
|
104
|
+
};
|
|
105
|
+
this.addFilter(obj);
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
close() {
|
|
109
|
+
let obj = {
|
|
110
|
+
fieldTarget: this.fieldTarget,
|
|
111
|
+
valueLocal: { start: "", end: "" },
|
|
112
|
+
};
|
|
113
|
+
this.addFilter(obj);
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
computed: {
|
|
117
|
+
...mapState("validation", ["resetForm", "validations"]),
|
|
118
|
+
},
|
|
119
|
+
watch: {
|
|
120
|
+
valueLocal() {
|
|
121
|
+
this.validate();
|
|
122
|
+
this.formDirty = true;
|
|
123
|
+
if (this.markFormDirtyLocal) this.updateFormDirty(true);
|
|
124
|
+
this.$emit("input", this.valueLocal);
|
|
125
|
+
},
|
|
126
|
+
value() {
|
|
127
|
+
this.valueLocal = this.value;
|
|
128
|
+
},
|
|
129
|
+
notifications() {
|
|
130
|
+
let self = this;
|
|
131
|
+
this.notifications.forEach(function (notification) {
|
|
132
|
+
let obj = {
|
|
133
|
+
key: self.field + "&" + self.formName,
|
|
134
|
+
formName: self.formName,
|
|
135
|
+
notification: notification,
|
|
136
|
+
};
|
|
137
|
+
self.addValidation(obj);
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
if (this.notifications.length == 0) {
|
|
141
|
+
let obj = {
|
|
142
|
+
key: self.field + "&" + self.formName,
|
|
143
|
+
formName: self.formName,
|
|
144
|
+
};
|
|
145
|
+
self.removeValidation(obj);
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
resetForm: {
|
|
149
|
+
handler(form) {
|
|
150
|
+
if (form.name == this.formName) this.formDirty = false;
|
|
151
|
+
},
|
|
152
|
+
deep: true,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
</script>
|
|
157
|
+
|
|
158
|
+
<style scoped>
|
|
159
|
+
.success {
|
|
160
|
+
color: #94aa2a;
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
}
|
|
163
|
+
.invalid {
|
|
164
|
+
color: #f0134d;
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
}
|
|
167
|
+
</style>
|