@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
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<b-tabs v-model="tabIndex" id="custom-tab">
|
|
4
|
+
<template #tabs-start v-if="tabs.length > 8">
|
|
5
|
+
<div class="arrow-left">
|
|
6
|
+
<span class="icon">
|
|
7
|
+
<i class="fa-solid fa-circle-chevron-left" @click="back()"></i>
|
|
8
|
+
</span>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<b-tab v-for="i in tabs" :key="'dyn-tab-' + i" :title="title(i).title">
|
|
12
|
+
<slot :name="i"></slot>
|
|
13
|
+
</b-tab>
|
|
14
|
+
<template #tabs-end v-if="tabs.length > 8">
|
|
15
|
+
<div class="arrow-right">
|
|
16
|
+
<span class="icon">
|
|
17
|
+
<i class="fa-solid fa-circle-chevron-right" @click="prev()"></i>
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
</b-tabs>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
props: {
|
|
28
|
+
initialTabs: Array,
|
|
29
|
+
value: Number,
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
tabIndex: 0,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
created() {
|
|
37
|
+
this.tabIndex = this.value;
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
tabs() {
|
|
41
|
+
let tabs = [];
|
|
42
|
+
this.initialTabs.forEach((item) => {
|
|
43
|
+
tabs.push(item.index);
|
|
44
|
+
});
|
|
45
|
+
return tabs;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
mounted() {
|
|
49
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
50
|
+
container.classList.remove("nav");
|
|
51
|
+
if (this.tabs.length > 8) container.classList.add("nav-custom");
|
|
52
|
+
if (this.tabs.length <= 8) container.classList.add("nav-default");
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
title(index) {
|
|
56
|
+
var ret = this.initialTabs.find((x) => x.index == index);
|
|
57
|
+
return ret;
|
|
58
|
+
},
|
|
59
|
+
prev() {
|
|
60
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
61
|
+
this.sideScroll(container, "right", 25, 100, 10);
|
|
62
|
+
},
|
|
63
|
+
back() {
|
|
64
|
+
var container = document.getElementById("custom-tab__BV_tab_controls_");
|
|
65
|
+
this.sideScroll(container, "left", 25, 100, 10);
|
|
66
|
+
},
|
|
67
|
+
sideScroll(element, direction, speed, distance, step) {
|
|
68
|
+
let scrollAmount = 0;
|
|
69
|
+
var slideTimer = setInterval(function () {
|
|
70
|
+
if (direction == "left") {
|
|
71
|
+
element.scrollLeft -= step;
|
|
72
|
+
} else {
|
|
73
|
+
element.scrollLeft += step;
|
|
74
|
+
}
|
|
75
|
+
scrollAmount += step;
|
|
76
|
+
if (scrollAmount >= distance) {
|
|
77
|
+
window.clearInterval(slideTimer);
|
|
78
|
+
}
|
|
79
|
+
}, speed);
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
tabIndex(tabIndex) {
|
|
84
|
+
this.$emit("input", tabIndex);
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
</script>
|
|
89
|
+
<style>
|
|
90
|
+
.arrow-left {
|
|
91
|
+
position: absolute;
|
|
92
|
+
margin-top: 28px;
|
|
93
|
+
left: 50%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.arrow-right {
|
|
97
|
+
position: absolute;
|
|
98
|
+
margin-top: 28px;
|
|
99
|
+
left: 53%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nav-default {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
padding-left: 0;
|
|
106
|
+
margin-bottom: 0;
|
|
107
|
+
list-style: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.nav-custom {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-wrap: nowrap !important;
|
|
113
|
+
padding-left: 0;
|
|
114
|
+
margin-bottom: 0;
|
|
115
|
+
list-style: none;
|
|
116
|
+
overflow: auto;
|
|
117
|
+
overflow-y: hidden;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.nav-custom::-webkit-scrollbar {
|
|
121
|
+
width: 10px;
|
|
122
|
+
height: 0px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.icon {
|
|
126
|
+
color: #c1c1c7;
|
|
127
|
+
font-size: 24px;
|
|
128
|
+
padding-left: 10px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.icon:hover {
|
|
133
|
+
color: #577696;
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="div-tag">
|
|
3
3
|
<div class="tag">
|
|
4
|
-
<span @click="execute()">{{ title }}: {{
|
|
4
|
+
<span @click="execute()">{{ title }}: {{ value }}</span>
|
|
5
5
|
<i @click="remove()" class="icon fas fa-times-circle"></i>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
name: "Tag",
|
|
15
15
|
props: {
|
|
16
16
|
title: String,
|
|
17
|
-
|
|
17
|
+
value: String,
|
|
18
18
|
eventName: String,
|
|
19
19
|
eventData: Object,
|
|
20
20
|
},
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
remove() {
|
|
31
31
|
this.addEvent({
|
|
32
|
-
|
|
32
|
+
name: "tagRemoved",
|
|
33
33
|
data: this.eventData,
|
|
34
34
|
});
|
|
35
35
|
},
|
|
@@ -1,213 +1,211 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="wrapper-stepper">
|
|
4
|
-
<div class="stepper">
|
|
5
|
-
<div class="stepper-progress" v-if="
|
|
6
|
-
<div class="stepper-progress-bar" :style="'width:' + stepperProgress"></div>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div
|
|
10
|
-
class="stepper-item"
|
|
11
|
-
v-if="
|
|
12
|
-
:class="{ current: step == item, success: step > item }"
|
|
13
|
-
v-for="item in
|
|
14
|
-
:key="item"
|
|
15
|
-
>
|
|
16
|
-
<div class="stepper-item-counter">
|
|
17
|
-
<img
|
|
18
|
-
class="icon-success"
|
|
19
|
-
src="https://www.seekpng.com/png/full/1-10353_check-mark-green-png-green-check-mark-svg.png"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</div>
|
|
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
|
-
margin-
|
|
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
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
font-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="wrapper-stepper">
|
|
4
|
+
<div class="stepper">
|
|
5
|
+
<div class="stepper-progress" v-if="showSteps">
|
|
6
|
+
<div class="stepper-progress-bar" :style="'width:' + stepperProgress"></div>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div
|
|
10
|
+
class="stepper-item"
|
|
11
|
+
v-if="showSteps"
|
|
12
|
+
:class="{ current: step == item, success: step > item }"
|
|
13
|
+
v-for="item in totalSteps"
|
|
14
|
+
:key="item"
|
|
15
|
+
>
|
|
16
|
+
<div class="stepper-item-counter">
|
|
17
|
+
<img
|
|
18
|
+
class="icon-success"
|
|
19
|
+
src="https://www.seekpng.com/png/full/1-10353_check-mark-green-png-green-check-mark-svg.png"
|
|
20
|
+
/>
|
|
21
|
+
<span class="number">
|
|
22
|
+
{{ item }}
|
|
23
|
+
</span>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="stepper-item-title text-center">{{ legend[item - 1] }}</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="stepper-content" v-for="item in totalSteps" :key="item">
|
|
29
|
+
<div class="stepper-pane" v-if="step == item">
|
|
30
|
+
<slot :name="step"></slot>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="controls">
|
|
34
|
+
<button class="btn" @click="step--" v-if="step != 1">Anterior</button>
|
|
35
|
+
<button
|
|
36
|
+
v-if="step < totalSteps"
|
|
37
|
+
class="btn btn--green-1"
|
|
38
|
+
@click="step++"
|
|
39
|
+
:disabled="!isFormValid(formName[step - 1])"
|
|
40
|
+
>
|
|
41
|
+
Próximo
|
|
42
|
+
</button>
|
|
43
|
+
<div class="slot-final" v-else>
|
|
44
|
+
<slot name="finish"></slot>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import { mapGetters, mapActions, mapMutations } from "vuex";
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
name: "Wizard",
|
|
56
|
+
props: {
|
|
57
|
+
totalSteps: Number,
|
|
58
|
+
legend: Array,
|
|
59
|
+
formName: Array,
|
|
60
|
+
showSteps: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: true,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
step: 1,
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
...mapGetters("validation", ["isFormValid"]),
|
|
72
|
+
stepperProgress() {
|
|
73
|
+
return (100 / this.totalSteps) * (this.step - 1) + "%";
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<style scoped>
|
|
80
|
+
.tx-green-1 {
|
|
81
|
+
color: #75cc65;
|
|
82
|
+
}
|
|
83
|
+
.wrapper-stepper {
|
|
84
|
+
background-color: #fff;
|
|
85
|
+
padding: 0px;
|
|
86
|
+
border-radius: 32px;
|
|
87
|
+
box-shadow: rgba(0, 0, 0, 0.09);
|
|
88
|
+
}
|
|
89
|
+
.stepper {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: space-between;
|
|
93
|
+
position: relative;
|
|
94
|
+
z-index: 0;
|
|
95
|
+
margin-bottom: 24px;
|
|
96
|
+
margin-left: 80px;
|
|
97
|
+
margin-right: 80px;
|
|
98
|
+
}
|
|
99
|
+
.stepper-progress {
|
|
100
|
+
position: absolute;
|
|
101
|
+
background-color: #dddada;
|
|
102
|
+
height: 1px;
|
|
103
|
+
z-index: -1;
|
|
104
|
+
left: 0;
|
|
105
|
+
right: 0;
|
|
106
|
+
margin: 0 auto;
|
|
107
|
+
}
|
|
108
|
+
.stepper-progress-bar {
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: 0;
|
|
111
|
+
height: 100%;
|
|
112
|
+
width: 0%;
|
|
113
|
+
background-color: #75cc65;
|
|
114
|
+
transition: all 500ms ease;
|
|
115
|
+
}
|
|
116
|
+
.stepper-item {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
align-items: center;
|
|
120
|
+
color: #c5c5c5;
|
|
121
|
+
transition: all 500ms ease;
|
|
122
|
+
}
|
|
123
|
+
.stepper-item-counter {
|
|
124
|
+
height: 38px;
|
|
125
|
+
width: 38px;
|
|
126
|
+
display: grid;
|
|
127
|
+
place-items: center;
|
|
128
|
+
background-color: #fff;
|
|
129
|
+
border-radius: 100%;
|
|
130
|
+
border: 1px solid #c5c5c5;
|
|
131
|
+
position: relative;
|
|
132
|
+
}
|
|
133
|
+
.stepper-item-counter .icon-success {
|
|
134
|
+
position: absolute;
|
|
135
|
+
opacity: 0;
|
|
136
|
+
transform: scale(0);
|
|
137
|
+
width: 20px;
|
|
138
|
+
transition: all 500ms ease;
|
|
139
|
+
}
|
|
140
|
+
.stepper-item-counter .number {
|
|
141
|
+
font-size: 15px;
|
|
142
|
+
transition: all 500ms ease;
|
|
143
|
+
}
|
|
144
|
+
.stepper-item-title {
|
|
145
|
+
position: absolute;
|
|
146
|
+
padding-top: 40px;
|
|
147
|
+
width: 40px;
|
|
148
|
+
margin-left: -16px;
|
|
149
|
+
}
|
|
150
|
+
.stepper-item.success .stepper-item-counter {
|
|
151
|
+
border-color: #75cc65;
|
|
152
|
+
background-color: #c8ebc1;
|
|
153
|
+
color: #fff;
|
|
154
|
+
}
|
|
155
|
+
.stepper-item.success .stepper-item-counter .icon-success {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
transform: scale(1);
|
|
158
|
+
}
|
|
159
|
+
.stepper-item.success .stepper-item-counter .number {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transform: scale(0);
|
|
162
|
+
}
|
|
163
|
+
.stepper-item.success .stepper-item-title {
|
|
164
|
+
color: #75cc65;
|
|
165
|
+
}
|
|
166
|
+
.stepper-item.current .stepper-item-counter {
|
|
167
|
+
border-color: #4ab4e2;
|
|
168
|
+
background-color: #4ab4e2;
|
|
169
|
+
color: #fff;
|
|
170
|
+
}
|
|
171
|
+
.stepper-item.current .stepper-item-title {
|
|
172
|
+
color: #818181;
|
|
173
|
+
}
|
|
174
|
+
.stepper-pane {
|
|
175
|
+
color: #333;
|
|
176
|
+
margin: 40px 0;
|
|
177
|
+
}
|
|
178
|
+
.controls {
|
|
179
|
+
display: flex;
|
|
180
|
+
}
|
|
181
|
+
.btn {
|
|
182
|
+
padding: 8px 12px;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
border: none;
|
|
185
|
+
border-radius: 40px !important;
|
|
186
|
+
font-size: 13px !important;
|
|
187
|
+
font-weight: normal;
|
|
188
|
+
font-style: normal !important;
|
|
189
|
+
letter-spacing: 1px !important;
|
|
190
|
+
background: #577696;
|
|
191
|
+
border-color: #577696;
|
|
192
|
+
color: #fff;
|
|
193
|
+
-webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
194
|
+
-moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12);
|
|
195
|
+
box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
|
|
196
|
+
}
|
|
197
|
+
.btn:disabled {
|
|
198
|
+
opacity: 0.5;
|
|
199
|
+
pointer-events: none;
|
|
200
|
+
}
|
|
201
|
+
.btn--green-1 {
|
|
202
|
+
background: #577696;
|
|
203
|
+
border-color: #577696;
|
|
204
|
+
color: #fff;
|
|
205
|
+
margin-left: auto;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.slot-final {
|
|
209
|
+
margin-left: auto;
|
|
210
|
+
}
|
|
211
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<span>
|
|
4
|
+
<slot name="start"></slot>
|
|
5
|
+
</span>
|
|
6
|
+
<span class="title-delivery" v-if="showDeliveryDevolution"
|
|
7
|
+
>{{ periodRent.deliveryDateHour }} -
|
|
8
|
+
</span>
|
|
9
|
+
|
|
10
|
+
<span class="title-main" :style="'font-size:' + fontSize + 'px'">{{
|
|
11
|
+
periodRent.startDateHour
|
|
12
|
+
}}</span>
|
|
13
|
+
-
|
|
14
|
+
<span class="title-main" :style="'font-size:' + fontSize + 'px'">{{
|
|
15
|
+
periodRent.endDateHour
|
|
16
|
+
}}</span>
|
|
17
|
+
|
|
18
|
+
<span> (</span>
|
|
19
|
+
|
|
20
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.year > 0">
|
|
21
|
+
<span> {{ periodRent.year }}</span>
|
|
22
|
+
<span v-if="periodRent.year == 1"> Ano</span>
|
|
23
|
+
<span v-if="periodRent.year > 1"> Anos</span>
|
|
24
|
+
</span>
|
|
25
|
+
|
|
26
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.month > 0">
|
|
27
|
+
<span> {{ periodRent.month }}</span>
|
|
28
|
+
<span v-if="periodRent.month == 1"> Mês</span>
|
|
29
|
+
<span v-if="periodRent.month > 1"> Meses</span>
|
|
30
|
+
</span>
|
|
31
|
+
|
|
32
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.day > 0">
|
|
33
|
+
<span> {{ periodRent.day }}</span>
|
|
34
|
+
<span v-if="periodRent.day == 1"> Dia</span>
|
|
35
|
+
<span v-if="periodRent.day > 1"> Dias</span>
|
|
36
|
+
</span>
|
|
37
|
+
|
|
38
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.hour > 0">
|
|
39
|
+
<span> {{ periodRent.hour }}</span>
|
|
40
|
+
<span v-if="periodRent.hour == 1"> Hora</span>
|
|
41
|
+
<span v-if="periodRent.hour > 1"> Horas</span>
|
|
42
|
+
</span>
|
|
43
|
+
|
|
44
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.minute > 0">
|
|
45
|
+
<span> {{ periodRent.minute }}</span>
|
|
46
|
+
<span v-if="periodRent.minute == 1"> Minuto</span>
|
|
47
|
+
<span v-if="periodRent.minute > 1"> Minutos</span>
|
|
48
|
+
</span>
|
|
49
|
+
|
|
50
|
+
<span> )</span>
|
|
51
|
+
|
|
52
|
+
<span class="title-devolution" v-if="showDeliveryDevolution">
|
|
53
|
+
- {{ periodRent.devolutionDateHour }}
|
|
54
|
+
</span>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
<script>
|
|
58
|
+
export default {
|
|
59
|
+
name: "DisplayPeriodRent",
|
|
60
|
+
props: {
|
|
61
|
+
periodRent: Object,
|
|
62
|
+
fontSize: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 16,
|
|
65
|
+
},
|
|
66
|
+
showDeliveryDevolution: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
</script>
|
|
73
|
+
<style scoped>
|
|
74
|
+
.title-delivery {
|
|
75
|
+
color: #009183;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.title-devolution {
|
|
79
|
+
color: #3d4eae;
|
|
80
|
+
}
|
|
81
|
+
</style>
|