@nixweb/nixloc-ui 1.19.0 → 1.21.0
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 +1 -1
- package/src/component/forms/ButtonFilter.vue +104 -104
- package/src/component/forms/ButtonGroup.vue +66 -66
- package/src/component/forms/ButtonGroupInline.vue +210 -210
- package/src/component/forms/ButtonSub.vue +97 -97
- package/src/component/forms/ButtonToggle.vue +76 -76
- package/src/component/forms/DateYearMonth.vue +192 -192
- package/src/component/forms/ImageUpload.vue +214 -214
- package/src/component/forms/IncrementDecrement.vue +151 -151
- package/src/component/forms/InputAddressGoogle.vue +171 -171
- package/src/component/forms/InputCallToAction.vue +135 -135
- package/src/component/forms/InputDecimalDiscount.vue +146 -146
- package/src/component/forms/InputTag.vue +124 -124
- package/src/component/forms/InputTextEdit.vue +69 -69
- package/src/component/forms/InputWhatsApp.vue +47 -47
- package/src/component/forms/SideBar.vue +99 -99
- package/src/component/forms/Toggle.vue +72 -72
- package/src/component/layout/Account.vue +131 -131
- package/src/component/layout/AnimatedPhrase.vue +68 -68
- package/src/component/layout/BarFloating.vue +67 -67
- package/src/component/layout/BottomActionsBar.vue +205 -205
- package/src/component/layout/ColorPicker.vue +175 -175
- package/src/component/layout/Gantt.vue +128 -128
- package/src/component/layout/HideShow.vue +61 -61
- package/src/component/layout/IconMolded.vue +58 -58
- package/src/component/layout/IconPicker.vue +161 -161
- package/src/component/layout/NewAccount.vue +136 -136
- package/src/component/layout/NewHeader.vue +59 -59
- package/src/component/layout/NewIconMolded.vue +70 -70
- package/src/component/layout/NewMenu.vue +472 -472
- package/src/component/layout/Tab.vue +259 -259
- package/src/component/layout/Tag.vue +97 -97
- package/src/component/layout/Tooltip.vue +155 -155
- package/src/component/layout/Zoom.vue +111 -111
- package/src/component/rental/DisplayCalculatePeriod.vue +48 -48
- package/src/component/rental/DisplayPeriodRent.vue +55 -55
- package/src/component/rental/DisplayTotalization.vue +86 -86
- package/src/component/report/Fields.vue +108 -108
- package/src/component/report/Report.vue +377 -377
- package/src/component/report/ReportTable.vue +111 -111
- package/src/component/report/Totalization.vue +33 -33
- package/src/component/shared/CodeEditor.vue +128 -128
- package/src/component/shared/Confirmation.vue +74 -74
- package/src/component/shared/DocumentEditor.vue +99 -99
- package/src/component/shared/DocumentPreview.vue +117 -105
- package/src/component/shared/DocumentPublic.vue +33 -33
- package/src/component/shared/ExportExcel.vue +56 -56
- package/src/component/shared/FullCalendar.vue +175 -175
- package/src/component/shared/HeaderReport.vue +47 -47
- package/src/component/shared/ListNotifications.vue +70 -70
- package/src/component/shared/Loading.vue +1 -4
- package/src/component/shared/LoadingCard.vue +64 -64
- package/src/component/shared/ParameterLegend.vue +169 -169
- package/src/component/shared/Report.vue +250 -250
- package/src/component/shared/SaveCancel.vue +99 -117
- package/src/component/shared/SelectOption.vue +162 -162
- package/src/component/shared/TableDraggable.vue +117 -117
- package/src/component/shared/TableImport.vue +93 -93
- package/src/component/shared/TableItem.vue +228 -228
- package/src/component/shared/TableTotalPerPage.vue +114 -114
- package/src/component/shared/TableTotalRecords.vue +44 -44
- package/src/component/shared/TimeLine.vue +41 -41
- package/src/component/shared/Timer.vue +77 -77
- package/src/component/shared/ToggleTheme.vue +127 -127
- package/src/component/shared/TotalizationReport.vue +86 -86
- package/src/component/shared/actions/ActionButtons.vue +53 -53
- package/src/component/shared/actions/ActionErrorContent.vue +103 -103
- package/src/component/shared/actions/ActionFooter.vue +93 -99
- package/src/component/shared/actions/ActionHeader.vue +110 -110
- package/src/component/shared/actions/ActionItemList.vue +143 -143
- package/src/component/shared/actions/ActionsOptions.vue +209 -209
- package/src/component/shared/actions/ActionsSelected.vue +262 -262
- package/src/component/shared/automation/ActivitiesList.vue +43 -43
- package/src/component/shared/automation/AddRule.vue +60 -60
- package/src/component/shared/automation/AutomationBuilder.vue +26 -26
- package/src/component/shared/automation/DynamicComponentList.vue +85 -85
- package/src/component/shared/automation/SelectRule.vue +97 -97
- package/src/component/shared/automation/components/BillingByRent.vue +97 -97
- package/src/component/shared/automation/components/SendEmail.vue +93 -93
- package/src/component/shared/file-manager/FileManager.vue +390 -390
- package/src/component/shared/filter-builder/FilterBuilder.vue +220 -220
- package/src/component/shared/filter-builder/FilterQuery.vue +95 -95
- package/src/component/shared/query-builder/ConvertToOdata.js +86 -86
- package/src/component/shared/query-builder/DynamicComponent.vue +161 -161
- package/src/component/shared/query-builder/Fields.vue +93 -93
- package/src/component/shared/query-builder/Rules.vue +68 -68
- package/src/component/shared/query-builder/SelectRule.vue +97 -97
- package/src/component/shared/query-builder/Tags.vue +59 -59
- package/src/component/signature/Payment.vue +160 -160
- package/src/component/signature/Warning.vue +75 -75
- package/src/component/template/ReportCreateUpdate.vue +110 -110
- package/src/component/template/ViewTemplateDocumentView.vue +213 -213
- package/src/component/template/ViewTemplateImportFile.vue +347 -347
- package/src/component/template/ViewTemplateReportList.vue +240 -240
- package/src/component/template/ViewTemplateReportPreview.vue +521 -521
- package/src/component/template/ViewTemplateSelectOption.vue +46 -46
- package/src/component/template/model/Report.js +5 -5
- package/src/component/training/Course.vue +343 -343
- package/src/component/training/CourseView.vue +198 -198
- package/src/component/value-objects/Address.js +10 -10
- package/src/component/value-objects/Address.vue +173 -173
- package/src/component/value-objects/Contact.js +6 -6
- package/src/component/value-objects/Contact.vue +106 -106
- package/src/component/value-objects/Person.js +10 -10
- package/src/component/value-objects/Person.vue +130 -130
- package/src/store/modules/automation.js +30 -30
- package/src/store/modules/generic.js +16 -6
- package/src/store/modules/report.js +277 -277
- package/src/store/modules/user.js +69 -69
- package/src/store/modules/util.js +25 -25
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="zoom-controls">
|
|
4
|
-
<transition name="fade">
|
|
5
|
-
<span v-if="showZoomLabel">{{ (zoom * 100).toFixed(0) }}%</span>
|
|
6
|
-
</transition>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div class="zoom-container">
|
|
10
|
-
<div class="zoom-area" :style="zoomStyle">
|
|
11
|
-
<slot></slot>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
|
|
19
|
-
import { mapGetters } from "vuex";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: 'Zoom',
|
|
23
|
-
data() {
|
|
24
|
-
return {
|
|
25
|
-
zoom: 1,
|
|
26
|
-
zoomStep: 0.1,
|
|
27
|
-
zoomMin: 0.5,
|
|
28
|
-
zoomMax: 2.0,
|
|
29
|
-
showZoomLabel: false,
|
|
30
|
-
zoomTimeout: null
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
...mapGetters("generic", ["event"]),
|
|
35
|
-
zoomStyle() {
|
|
36
|
-
return {
|
|
37
|
-
transform: `scale(${this.zoom})`,
|
|
38
|
-
transformOrigin: 'top left',
|
|
39
|
-
width: `${100 / this.zoom}%`
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
zoomIn() {
|
|
45
|
-
if (this.zoom < this.zoomMax) {
|
|
46
|
-
this.zoom += this.zoomStep
|
|
47
|
-
this.showZoomTemporarily()
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
zoomOut() {
|
|
51
|
-
if (this.zoom > this.zoomMin) {
|
|
52
|
-
this.zoom -= this.zoomStep
|
|
53
|
-
this.showZoomTemporarily()
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
showZoomTemporarily() {
|
|
57
|
-
this.showZoomLabel = true
|
|
58
|
-
clearTimeout(this.zoomTimeout)
|
|
59
|
-
this.zoomTimeout = setTimeout(() => {
|
|
60
|
-
this.showZoomLabel = false
|
|
61
|
-
}, 1000)
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
beforeDestroy() {
|
|
65
|
-
clearTimeout(this.zoomTimeout)
|
|
66
|
-
},
|
|
67
|
-
watch: {
|
|
68
|
-
event: {
|
|
69
|
-
handler(event) {
|
|
70
|
-
if (event.name == "zoomIn") this.zoomIn();
|
|
71
|
-
if (event.name == "zoomOut") this.zoomOut();
|
|
72
|
-
},
|
|
73
|
-
deep: true,
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
}
|
|
78
|
-
</script>
|
|
79
|
-
|
|
80
|
-
<style scoped>
|
|
81
|
-
.zoom-controls {
|
|
82
|
-
margin-bottom: 10px;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
gap: 8px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.zoom-container {
|
|
89
|
-
overflow: auto;
|
|
90
|
-
width: 100%;
|
|
91
|
-
height: 100%;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.zoom-area {
|
|
95
|
-
background: #fff;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.fade-enter-active,
|
|
99
|
-
.fade-leave-active {
|
|
100
|
-
transition: opacity 0.5s ease;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.fade-enter,
|
|
104
|
-
.fade-leave-to {
|
|
105
|
-
opacity: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.zoom-controls span {
|
|
109
|
-
font-size: 13px;
|
|
110
|
-
}
|
|
111
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="zoom-controls">
|
|
4
|
+
<transition name="fade">
|
|
5
|
+
<span v-if="showZoomLabel">{{ (zoom * 100).toFixed(0) }}%</span>
|
|
6
|
+
</transition>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="zoom-container">
|
|
10
|
+
<div class="zoom-area" :style="zoomStyle">
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
|
|
19
|
+
import { mapGetters } from "vuex";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: 'Zoom',
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
zoom: 1,
|
|
26
|
+
zoomStep: 0.1,
|
|
27
|
+
zoomMin: 0.5,
|
|
28
|
+
zoomMax: 2.0,
|
|
29
|
+
showZoomLabel: false,
|
|
30
|
+
zoomTimeout: null
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
...mapGetters("generic", ["event"]),
|
|
35
|
+
zoomStyle() {
|
|
36
|
+
return {
|
|
37
|
+
transform: `scale(${this.zoom})`,
|
|
38
|
+
transformOrigin: 'top left',
|
|
39
|
+
width: `${100 / this.zoom}%`
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
zoomIn() {
|
|
45
|
+
if (this.zoom < this.zoomMax) {
|
|
46
|
+
this.zoom += this.zoomStep
|
|
47
|
+
this.showZoomTemporarily()
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
zoomOut() {
|
|
51
|
+
if (this.zoom > this.zoomMin) {
|
|
52
|
+
this.zoom -= this.zoomStep
|
|
53
|
+
this.showZoomTemporarily()
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
showZoomTemporarily() {
|
|
57
|
+
this.showZoomLabel = true
|
|
58
|
+
clearTimeout(this.zoomTimeout)
|
|
59
|
+
this.zoomTimeout = setTimeout(() => {
|
|
60
|
+
this.showZoomLabel = false
|
|
61
|
+
}, 1000)
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
beforeDestroy() {
|
|
65
|
+
clearTimeout(this.zoomTimeout)
|
|
66
|
+
},
|
|
67
|
+
watch: {
|
|
68
|
+
event: {
|
|
69
|
+
handler(event) {
|
|
70
|
+
if (event.name == "zoomIn") this.zoomIn();
|
|
71
|
+
if (event.name == "zoomOut") this.zoomOut();
|
|
72
|
+
},
|
|
73
|
+
deep: true,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<style scoped>
|
|
81
|
+
.zoom-controls {
|
|
82
|
+
margin-bottom: 10px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 8px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.zoom-container {
|
|
89
|
+
overflow: auto;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.zoom-area {
|
|
95
|
+
background: #fff;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.fade-enter-active,
|
|
99
|
+
.fade-leave-active {
|
|
100
|
+
transition: opacity 0.5s ease;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.fade-enter,
|
|
104
|
+
.fade-leave-to {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.zoom-controls span {
|
|
109
|
+
font-size: 13px;
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span class="title">
|
|
3
|
-
<span> (</span>
|
|
4
|
-
|
|
5
|
-
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.year > 0">
|
|
6
|
-
<span> {{ periodRent.year }}</span>
|
|
7
|
-
<span v-if="periodRent.year == 1"> Ano</span>
|
|
8
|
-
<span v-if="periodRent.year > 1"> Anos</span>
|
|
9
|
-
</span>
|
|
10
|
-
|
|
11
|
-
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.month > 0">
|
|
12
|
-
<span> {{ periodRent.month }}</span>
|
|
13
|
-
<span v-if="periodRent.month == 1"> Mês</span>
|
|
14
|
-
<span v-if="periodRent.month > 1"> Meses</span>
|
|
15
|
-
</span>
|
|
16
|
-
|
|
17
|
-
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.day > 0">
|
|
18
|
-
<span> {{ periodRent.day }}</span>
|
|
19
|
-
<span v-if="periodRent.day == 1"> Dia</span>
|
|
20
|
-
<span v-if="periodRent.day > 1"> Dias</span>
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.hour > 0">
|
|
24
|
-
<span> {{ periodRent.hour }}</span>
|
|
25
|
-
<span v-if="periodRent.hour == 1"> Hora</span>
|
|
26
|
-
<span v-if="periodRent.hour > 1"> Horas</span>
|
|
27
|
-
</span>
|
|
28
|
-
|
|
29
|
-
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.minute > 0">
|
|
30
|
-
<span> {{ periodRent.minute }}</span>
|
|
31
|
-
<span v-if="periodRent.minute == 1"> Minuto</span>
|
|
32
|
-
<span v-if="periodRent.minute > 1"> Minutos</span>
|
|
33
|
-
</span>
|
|
34
|
-
|
|
35
|
-
<span> )</span>
|
|
36
|
-
</span>
|
|
37
|
-
</template>
|
|
38
|
-
<script>
|
|
39
|
-
export default {
|
|
40
|
-
name: "DisplayCalculatePeriod",
|
|
41
|
-
props: {
|
|
42
|
-
periodRent: Object,
|
|
43
|
-
fontSize: {
|
|
44
|
-
type: Number,
|
|
45
|
-
default: 16,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
1
|
+
<template>
|
|
2
|
+
<span class="title">
|
|
3
|
+
<span> (</span>
|
|
4
|
+
|
|
5
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.year > 0">
|
|
6
|
+
<span> {{ periodRent.year }}</span>
|
|
7
|
+
<span v-if="periodRent.year == 1"> Ano</span>
|
|
8
|
+
<span v-if="periodRent.year > 1"> Anos</span>
|
|
9
|
+
</span>
|
|
10
|
+
|
|
11
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.month > 0">
|
|
12
|
+
<span> {{ periodRent.month }}</span>
|
|
13
|
+
<span v-if="periodRent.month == 1"> Mês</span>
|
|
14
|
+
<span v-if="periodRent.month > 1"> Meses</span>
|
|
15
|
+
</span>
|
|
16
|
+
|
|
17
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.day > 0">
|
|
18
|
+
<span> {{ periodRent.day }}</span>
|
|
19
|
+
<span v-if="periodRent.day == 1"> Dia</span>
|
|
20
|
+
<span v-if="periodRent.day > 1"> Dias</span>
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.hour > 0">
|
|
24
|
+
<span> {{ periodRent.hour }}</span>
|
|
25
|
+
<span v-if="periodRent.hour == 1"> Hora</span>
|
|
26
|
+
<span v-if="periodRent.hour > 1"> Horas</span>
|
|
27
|
+
</span>
|
|
28
|
+
|
|
29
|
+
<span :style="'font-size:' + fontSize + 'px'" v-if="periodRent.minute > 0">
|
|
30
|
+
<span> {{ periodRent.minute }}</span>
|
|
31
|
+
<span v-if="periodRent.minute == 1"> Minuto</span>
|
|
32
|
+
<span v-if="periodRent.minute > 1"> Minutos</span>
|
|
33
|
+
</span>
|
|
34
|
+
|
|
35
|
+
<span> )</span>
|
|
36
|
+
</span>
|
|
37
|
+
</template>
|
|
38
|
+
<script>
|
|
39
|
+
export default {
|
|
40
|
+
name: "DisplayCalculatePeriod",
|
|
41
|
+
props: {
|
|
42
|
+
periodRent: Object,
|
|
43
|
+
fontSize: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 16,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
49
|
</script>
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<span>
|
|
4
|
-
<slot name="start"></slot>
|
|
5
|
-
</span>
|
|
6
|
-
<span class="title-delivery" v-if="showDeliveryDevolution">{{ periodRent.deliveryDateHour }}
|
|
7
|
-
</span>
|
|
8
|
-
|
|
9
|
-
<span v-show="!showOnlyDeliveryDevolution">
|
|
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
|
-
</span>
|
|
18
|
-
|
|
19
|
-
<span v-show="!showOnlyDeliveryDevolution">
|
|
20
|
-
<DisplayCalculatePeriod :fontSize="fontSize" :periodRent="periodRent" />
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
<span class="title-devolution" v-if="showDeliveryDevolution">
|
|
24
|
-
{{ periodRent.devolutionDateHour }}
|
|
25
|
-
</span>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
<script>
|
|
29
|
-
import DisplayCalculatePeriod from "./DisplayCalculatePeriod.vue";
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
name: "DisplayPeriodRent",
|
|
33
|
-
props: {
|
|
34
|
-
periodRent: Object,
|
|
35
|
-
showOnlyDeliveryDevolution: Boolean,
|
|
36
|
-
showDeliveryDevolution: Boolean,
|
|
37
|
-
fontSize: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 16,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
components: {
|
|
43
|
-
DisplayCalculatePeriod,
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
</script>
|
|
47
|
-
<style scoped>
|
|
48
|
-
.title-delivery {
|
|
49
|
-
color: #009183;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.title-devolution {
|
|
53
|
-
color: #3d4eae;
|
|
54
|
-
}
|
|
55
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<span>
|
|
4
|
+
<slot name="start"></slot>
|
|
5
|
+
</span>
|
|
6
|
+
<span class="title-delivery" v-if="showDeliveryDevolution">{{ periodRent.deliveryDateHour }}
|
|
7
|
+
</span>
|
|
8
|
+
|
|
9
|
+
<span v-show="!showOnlyDeliveryDevolution">
|
|
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
|
+
</span>
|
|
18
|
+
|
|
19
|
+
<span v-show="!showOnlyDeliveryDevolution">
|
|
20
|
+
<DisplayCalculatePeriod :fontSize="fontSize" :periodRent="periodRent" />
|
|
21
|
+
</span>
|
|
22
|
+
|
|
23
|
+
<span class="title-devolution" v-if="showDeliveryDevolution">
|
|
24
|
+
{{ periodRent.devolutionDateHour }}
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<script>
|
|
29
|
+
import DisplayCalculatePeriod from "./DisplayCalculatePeriod.vue";
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: "DisplayPeriodRent",
|
|
33
|
+
props: {
|
|
34
|
+
periodRent: Object,
|
|
35
|
+
showOnlyDeliveryDevolution: Boolean,
|
|
36
|
+
showDeliveryDevolution: Boolean,
|
|
37
|
+
fontSize: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 16,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
components: {
|
|
43
|
+
DisplayCalculatePeriod,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
47
|
+
<style scoped>
|
|
48
|
+
.title-delivery {
|
|
49
|
+
color: #009183;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.title-devolution {
|
|
53
|
+
color: #3d4eae;
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="main side-by-side">
|
|
3
|
-
<div class="molded-totalization" @click="execute">
|
|
4
|
-
<div class="title">{{ title }}
|
|
5
|
-
<span v-if="discount > 0" class="div-discount">{{ discount }}%</span>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="value" :class="{ clicked: clicked }" v-if="currency" :style="_style">
|
|
8
|
-
{{ value | currency }}
|
|
9
|
-
<span class="icon-edit" v-if="clicked">
|
|
10
|
-
<i class="fa-solid fa-pen-to-square"></i>
|
|
11
|
-
</span>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="value" :class="{ clicked: clicked }" v-else :style="_style">
|
|
14
|
-
{{ value }}
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
<script>
|
|
20
|
-
export default {
|
|
21
|
-
name: "DisplayTotalization",
|
|
22
|
-
props: {
|
|
23
|
-
title: String,
|
|
24
|
-
currency: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: true,
|
|
27
|
-
},
|
|
28
|
-
discount: Number,
|
|
29
|
-
value: Number,
|
|
30
|
-
_style: String,
|
|
31
|
-
clicked: Function,
|
|
32
|
-
},
|
|
33
|
-
methods: {
|
|
34
|
-
execute() {
|
|
35
|
-
if (this.clicked) this.clicked(this.params);
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
</script>
|
|
40
|
-
<style scoped>
|
|
41
|
-
.main {
|
|
42
|
-
margin-bottom: 10px;
|
|
43
|
-
margin-right: 20px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.molded-totalization {
|
|
47
|
-
height: 63px;
|
|
48
|
-
border: 1px solid #dbdfe9;
|
|
49
|
-
border-radius: 30px;
|
|
50
|
-
padding-left: 8px;
|
|
51
|
-
padding-right: 15px;
|
|
52
|
-
margin-bottom: 20px;
|
|
53
|
-
font-size: 13px;
|
|
54
|
-
font-weight: 400;
|
|
55
|
-
min-width: 180px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.title {
|
|
59
|
-
padding-left: 10px;
|
|
60
|
-
font-weight: 500;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.value {
|
|
64
|
-
padding-left: 10px;
|
|
65
|
-
font-size: 18px;
|
|
66
|
-
font-weight: 700;
|
|
67
|
-
font-family: "inter", sans-serif !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.clicked:hover {
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.icon-edit {
|
|
75
|
-
font-size: 14px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.div-discount {
|
|
79
|
-
background-color: #FF4843;
|
|
80
|
-
width: 12px;
|
|
81
|
-
border-radius: 10px;
|
|
82
|
-
color: white;
|
|
83
|
-
font-size: 10px !important;
|
|
84
|
-
padding: 3px;
|
|
85
|
-
}
|
|
86
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="main side-by-side">
|
|
3
|
+
<div class="molded-totalization" @click="execute">
|
|
4
|
+
<div class="title">{{ title }}
|
|
5
|
+
<span v-if="discount > 0" class="div-discount">{{ discount }}%</span>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="value" :class="{ clicked: clicked }" v-if="currency" :style="_style">
|
|
8
|
+
{{ value | currency }}
|
|
9
|
+
<span class="icon-edit" v-if="clicked">
|
|
10
|
+
<i class="fa-solid fa-pen-to-square"></i>
|
|
11
|
+
</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="value" :class="{ clicked: clicked }" v-else :style="_style">
|
|
14
|
+
{{ value }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
<script>
|
|
20
|
+
export default {
|
|
21
|
+
name: "DisplayTotalization",
|
|
22
|
+
props: {
|
|
23
|
+
title: String,
|
|
24
|
+
currency: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true,
|
|
27
|
+
},
|
|
28
|
+
discount: Number,
|
|
29
|
+
value: Number,
|
|
30
|
+
_style: String,
|
|
31
|
+
clicked: Function,
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
execute() {
|
|
35
|
+
if (this.clicked) this.clicked(this.params);
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
<style scoped>
|
|
41
|
+
.main {
|
|
42
|
+
margin-bottom: 10px;
|
|
43
|
+
margin-right: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.molded-totalization {
|
|
47
|
+
height: 63px;
|
|
48
|
+
border: 1px solid #dbdfe9;
|
|
49
|
+
border-radius: 30px;
|
|
50
|
+
padding-left: 8px;
|
|
51
|
+
padding-right: 15px;
|
|
52
|
+
margin-bottom: 20px;
|
|
53
|
+
font-size: 13px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
min-width: 180px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.title {
|
|
59
|
+
padding-left: 10px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.value {
|
|
64
|
+
padding-left: 10px;
|
|
65
|
+
font-size: 18px;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
font-family: "inter", sans-serif !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.clicked:hover {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.icon-edit {
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.div-discount {
|
|
79
|
+
background-color: #FF4843;
|
|
80
|
+
width: 12px;
|
|
81
|
+
border-radius: 10px;
|
|
82
|
+
color: white;
|
|
83
|
+
font-size: 10px !important;
|
|
84
|
+
padding: 3px;
|
|
85
|
+
}
|
|
86
|
+
</style>
|