@nixweb/nixloc-ui 0.0.128 → 0.0.129
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 +87 -79
- package/src/App.vue +13 -13
- package/src/component/forms/Button.vue +171 -170
- package/src/component/forms/ButtonGroup.vue +57 -0
- package/src/component/forms/ButtonSub.vue +98 -0
- package/src/component/forms/CheckboxGroup.vue +73 -72
- package/src/component/forms/CheckboxSimple.vue +46 -46
- package/src/component/forms/Color.vue +38 -38
- package/src/component/forms/DateTime.vue +167 -167
- package/src/component/forms/Dropdown.vue +242 -218
- package/src/component/forms/EditorHtml.vue +126 -126
- package/src/component/forms/FileUpload.vue +185 -185
- package/src/component/forms/IncrementDecrement.vue +7 -2
- package/src/component/forms/InputDecimal.vue +150 -142
- package/src/component/forms/InputDecimalDiscount.vue +92 -0
- package/src/component/forms/InputNumber.vue +160 -154
- package/src/component/forms/InputPassword.vue +135 -135
- package/src/component/forms/InputText.vue +174 -162
- package/src/component/forms/InputTextEdit.vue +68 -0
- package/src/component/forms/Modal.vue +65 -65
- package/src/component/forms/RadioGroup.vue +50 -50
- package/src/component/forms/Select.vue +351 -349
- 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/forms/Toggle.vue +3 -1
- package/src/component/layout/Account.vue +3 -3
- package/src/component/layout/Alert.vue +92 -92
- package/src/component/layout/Badge.vue +104 -103
- package/src/component/layout/FixedBar.vue +100 -100
- package/src/component/layout/Gantt.vue +130 -0
- package/src/component/layout/Header.vue +38 -38
- package/src/component/layout/IconMolded.vue +48 -0
- package/src/component/layout/LoadingFullPage.vue +27 -27
- package/src/component/layout/Menu.vue +213 -210
- package/src/component/layout/Molded.vue +28 -28
- 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/Wizard.vue +211 -211
- package/src/component/rental/DisplayCalculatePeriod.vue +49 -0
- package/src/component/rental/DisplayPeriodRent.vue +19 -44
- package/src/component/rental/DisplayTotalization.vue +11 -2
- package/src/component/shared/Collapse.vue +131 -131
- package/src/component/shared/Confirmation.vue +21 -2
- package/src/component/shared/DocumentPreview.vue +2 -1
- package/src/component/shared/ExportPDF.vue +116 -116
- package/src/component/shared/FullCalendar.vue +159 -0
- 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/SaveCancel.vue +3 -2
- package/src/component/shared/Search.vue +154 -154
- package/src/component/shared/Table.vue +163 -163
- package/src/component/shared/TableButton.vue +36 -36
- package/src/component/shared/TableTotalization.vue +47 -47
- package/src/component/shared/TimeLine.vue +47 -0
- package/src/component/shared/Tip.vue +42 -42
- package/src/component/shared/Toast.vue +54 -54
- package/src/component/shared/VerticalFilter.vue +97 -97
- package/src/component/shared/query-builder/AddRule.vue +181 -181
- package/src/component/shared/query-builder/DynamicComponentList.vue +73 -73
- 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 -260
- package/src/component/template/ViewTemplateConfiguration.vue +64 -64
- package/src/component/template/ViewTemplateReportList.vue +1 -1
- package/src/component/template/ViewTemplateReportPreview.vue +0 -1
- package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/src/component/template/ViewTemplateWithTable.vue +56 -56
- 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 +543 -512
- package/src/store/modules/user.js +3 -0
- package/src/store/modules/validation.js +38 -38
- package/src/store/store.js +13 -13
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="div-table-sub">
|
|
4
|
+
<div class="btn-close" @click="show" v-if="!open">
|
|
5
|
+
<i class="icon-table-sub fa-solid fa-arrow-left"></i>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="btn-close" @click="hide" v-else>
|
|
8
|
+
<i class="icon-table-sub fa-solid fa-arrow-down"></i>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<script>
|
|
14
|
+
import { mapActions, mapMutations } from "vuex";
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: "ButtonSub",
|
|
18
|
+
props: {
|
|
19
|
+
itemId: String,
|
|
20
|
+
urlGet: String,
|
|
21
|
+
eventNameShow: String,
|
|
22
|
+
eventNameHide: String,
|
|
23
|
+
propsParam: Object,
|
|
24
|
+
value: Object,
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
open: false,
|
|
29
|
+
baseParams: {
|
|
30
|
+
search: undefined,
|
|
31
|
+
filter: "contains",
|
|
32
|
+
currentPage: 1,
|
|
33
|
+
totalPerPage: 20,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
...mapActions("generic", ["getApi"]),
|
|
39
|
+
...mapMutations("generic", ["addEvent"]),
|
|
40
|
+
getAll() {
|
|
41
|
+
this.$emit("input", { loading: true, itemId: this.itemId });
|
|
42
|
+
let params = {
|
|
43
|
+
url: this.urlGet,
|
|
44
|
+
obj: { ...this.propsParam, ...this.baseParams },
|
|
45
|
+
};
|
|
46
|
+
this.getApi(params).then((response) => {
|
|
47
|
+
this.addEvent({
|
|
48
|
+
name: this.eventNameShow,
|
|
49
|
+
data: { itemId: this.itemId, data: response.content.data },
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
let self = this;
|
|
53
|
+
setTimeout(function () {
|
|
54
|
+
self.$emit("input", { loading: false, itemId: this.itemId });
|
|
55
|
+
}, 500);
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
show() {
|
|
59
|
+
this.open = true;
|
|
60
|
+
this.getAll();
|
|
61
|
+
},
|
|
62
|
+
hide() {
|
|
63
|
+
this.open = false;
|
|
64
|
+
this.addEvent({
|
|
65
|
+
name: this.eventNameHide,
|
|
66
|
+
data: { itemId: this.itemId, data: [] },
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
</script>
|
|
72
|
+
<style scoped>
|
|
73
|
+
.div-table-sub {
|
|
74
|
+
overflow-y: hidden !important;
|
|
75
|
+
overflow-x: hidden !important;
|
|
76
|
+
background-color: #ececec;
|
|
77
|
+
border-radius: 50px;
|
|
78
|
+
height: 35px;
|
|
79
|
+
width: 35px;
|
|
80
|
+
margin-left: 10px;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.div-table-sub:hover {
|
|
85
|
+
background-color: #dfdfdf;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.icon-table-sub {
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
padding-top: 10px;
|
|
91
|
+
padding-right: 10px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.btn-close {
|
|
95
|
+
margin-left: 10px;
|
|
96
|
+
height: 30px;
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<b-form-group :label="title">
|
|
4
|
-
<b-form-checkbox-group
|
|
5
|
-
v-model="selected"
|
|
6
|
-
:options="options"
|
|
7
|
-
:stacked="stacked"
|
|
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
|
-
this
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<b-form-group :label="title">
|
|
4
|
+
<b-form-checkbox-group
|
|
5
|
+
v-model="selected"
|
|
6
|
+
:options="options"
|
|
7
|
+
:stacked="stacked"
|
|
8
|
+
disabled-field="disabled"
|
|
9
|
+
@click.native="execute"
|
|
10
|
+
></b-form-checkbox-group>
|
|
11
|
+
</b-form-group>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import { mapMutations } from "vuex";
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: "CheckboxGroup",
|
|
20
|
+
props: {
|
|
21
|
+
title: String,
|
|
22
|
+
options: Array,
|
|
23
|
+
params: Object,
|
|
24
|
+
changed: Function,
|
|
25
|
+
clicked: Function,
|
|
26
|
+
initialValue: Array,
|
|
27
|
+
value: Array,
|
|
28
|
+
stacked: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false,
|
|
31
|
+
},
|
|
32
|
+
markFormDirty: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
selected: [],
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
mounted() {
|
|
43
|
+
if (this.initialValue) this.selected = this.initialValue;
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
...mapMutations("validation", ["updateFormDirty"]),
|
|
47
|
+
execute(event) {
|
|
48
|
+
if (this.markFormDirty) this.updateFormDirty(true);
|
|
49
|
+
this.$emit("input", this.selected);
|
|
50
|
+
let self = this;
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
// adicionado o pointerId para prevenir que não seja executado em duplicidade
|
|
53
|
+
if (self.clicked && event.pointerId === 1) self.clicked(self.params);
|
|
54
|
+
}, 100);
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
watch: {
|
|
58
|
+
selected: {
|
|
59
|
+
handler(value) {
|
|
60
|
+
this.$emit("input", value);
|
|
61
|
+
if (this.changed) this.changed(this.params);
|
|
62
|
+
},
|
|
63
|
+
deep: true,
|
|
64
|
+
},
|
|
65
|
+
initialValue: {
|
|
66
|
+
handler(value) {
|
|
67
|
+
if (this.initialValue) this.selected = this.initialValue;
|
|
68
|
+
},
|
|
69
|
+
deep: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
</script>
|
|
@@ -1,46 +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
|
-
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
|
+
<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>
|