@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
|
@@ -1,142 +1,140 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="panel">
|
|
3
|
-
<Toast />
|
|
4
|
-
<Loading v-show="isLoading('panel')" />
|
|
5
|
-
<div v-show="!isLoading('panel')">
|
|
6
|
-
<div v-show="showVerticalFilter">
|
|
7
|
-
<VerticalFilter>
|
|
8
|
-
<slot name="content-filter"></slot>
|
|
9
|
-
</VerticalFilter>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="local-container">
|
|
12
|
-
<Messages v-if="!modal.open" />
|
|
13
|
-
<div class="row">
|
|
14
|
-
<div class="col-10">
|
|
15
|
-
<div class="div-title">
|
|
16
|
-
<span class="module">
|
|
17
|
-
<span class="icon"><i class="fas fa-compass"></i></span>
|
|
18
|
-
{{ module }} |</span
|
|
19
|
-
>
|
|
20
|
-
<span class="title"> {{ title }}</span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
|
|
24
|
-
<div class="c-back" @click="back()">
|
|
25
|
-
<span class="g-espaco-esquerda">Voltar</span>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<br v-show="showButtons" />
|
|
30
|
-
<div class="row" v-show="showButtons">
|
|
31
|
-
<div class="col-12" v-show="showButtons">
|
|
32
|
-
<slot name="content-buttons"></slot>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<br v-show="showButtons || showSearch" />
|
|
36
|
-
<div v-show="showButtons || showSearch">
|
|
37
|
-
<div>
|
|
38
|
-
<div v-show="showSearch"><Search /></div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<br v-show="showSearch" />
|
|
42
|
-
<div>
|
|
43
|
-
<slot name="content-main"></slot>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<br /><br /><br />
|
|
48
|
-
</div>
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<script>
|
|
52
|
-
import Toast from "../shared/Toast.vue";
|
|
53
|
-
import Messages from "../shared/Messages.vue";
|
|
54
|
-
import Search from "../shared/Search.vue";
|
|
55
|
-
import Loading from "../shared/Loading.vue";
|
|
56
|
-
import VerticalFilter from "../shared/VerticalFilter";
|
|
57
|
-
|
|
58
|
-
import { mapState, mapGetters, mapMutations } from "vuex";
|
|
59
|
-
|
|
60
|
-
export default {
|
|
61
|
-
name: "Panel",
|
|
62
|
-
components: {
|
|
63
|
-
Loading,
|
|
64
|
-
VerticalFilter,
|
|
65
|
-
Search,
|
|
66
|
-
Messages,
|
|
67
|
-
Toast,
|
|
68
|
-
},
|
|
69
|
-
props: {
|
|
70
|
-
module: String,
|
|
71
|
-
title: String,
|
|
72
|
-
showVerticalFilter: Boolean,
|
|
73
|
-
showSearch: Boolean,
|
|
74
|
-
showButtons: Boolean,
|
|
75
|
-
},
|
|
76
|
-
data() {
|
|
77
|
-
return {
|
|
78
|
-
currentRoute: this.$route.name,
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
created() {
|
|
82
|
-
this.addLoading("panel");
|
|
83
|
-
},
|
|
84
|
-
updated() {
|
|
85
|
-
this.currentRoute = this.$route.name;
|
|
86
|
-
},
|
|
87
|
-
computed: {
|
|
88
|
-
...mapGetters("generic", ["isLoading"]),
|
|
89
|
-
...mapState("generic", ["modal"]),
|
|
90
|
-
},
|
|
91
|
-
methods: {
|
|
92
|
-
...mapMutations("generic", ["addLoading"]),
|
|
93
|
-
back() {
|
|
94
|
-
window.history.back();
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
</script>
|
|
99
|
-
<style scoped>
|
|
100
|
-
.local-container {
|
|
101
|
-
margin: auto;
|
|
102
|
-
padding-left:
|
|
103
|
-
max-width: 1400px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.div-title {
|
|
107
|
-
margin-top: 15px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.module {
|
|
111
|
-
font-size: 16px;
|
|
112
|
-
font-weight: 400;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.title {
|
|
116
|
-
font-size: 18px;
|
|
117
|
-
font-weight: 400;
|
|
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
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel">
|
|
3
|
+
<Toast />
|
|
4
|
+
<Loading v-show="isLoading('panel')" />
|
|
5
|
+
<div v-show="!isLoading('panel')">
|
|
6
|
+
<div v-show="showVerticalFilter">
|
|
7
|
+
<VerticalFilter>
|
|
8
|
+
<slot name="content-filter"></slot>
|
|
9
|
+
</VerticalFilter>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="local-container">
|
|
12
|
+
<Messages v-if="!modal.open" />
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-10">
|
|
15
|
+
<div class="div-title">
|
|
16
|
+
<span class="module">
|
|
17
|
+
<span class="icon"><i class="fas fa-compass"></i></span>
|
|
18
|
+
{{ module }} |</span
|
|
19
|
+
>
|
|
20
|
+
<span class="title"> {{ title }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
|
|
24
|
+
<div class="c-back" @click="back()">
|
|
25
|
+
<span class="g-espaco-esquerda">Voltar</span>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<br v-show="showButtons" />
|
|
30
|
+
<div class="row" v-show="showButtons">
|
|
31
|
+
<div class="col-12" v-show="showButtons">
|
|
32
|
+
<slot name="content-buttons"></slot>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<br v-show="showButtons || showSearch" />
|
|
36
|
+
<div v-show="showButtons || showSearch">
|
|
37
|
+
<div>
|
|
38
|
+
<div v-show="showSearch"><Search /></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<br v-show="showSearch" />
|
|
42
|
+
<div>
|
|
43
|
+
<slot name="content-main"></slot>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<br /><br /><br />
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import Toast from "../shared/Toast.vue";
|
|
53
|
+
import Messages from "../shared/Messages.vue";
|
|
54
|
+
import Search from "../shared/Search.vue";
|
|
55
|
+
import Loading from "../shared/Loading.vue";
|
|
56
|
+
import VerticalFilter from "../shared/VerticalFilter";
|
|
57
|
+
|
|
58
|
+
import { mapState, mapGetters, mapMutations } from "vuex";
|
|
59
|
+
|
|
60
|
+
export default {
|
|
61
|
+
name: "Panel",
|
|
62
|
+
components: {
|
|
63
|
+
Loading,
|
|
64
|
+
VerticalFilter,
|
|
65
|
+
Search,
|
|
66
|
+
Messages,
|
|
67
|
+
Toast,
|
|
68
|
+
},
|
|
69
|
+
props: {
|
|
70
|
+
module: String,
|
|
71
|
+
title: String,
|
|
72
|
+
showVerticalFilter: Boolean,
|
|
73
|
+
showSearch: Boolean,
|
|
74
|
+
showButtons: Boolean,
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
currentRoute: this.$route.name,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
created() {
|
|
82
|
+
this.addLoading("panel");
|
|
83
|
+
},
|
|
84
|
+
updated() {
|
|
85
|
+
this.currentRoute = this.$route.name;
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
...mapGetters("generic", ["isLoading"]),
|
|
89
|
+
...mapState("generic", ["modal"]),
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
...mapMutations("generic", ["addLoading"]),
|
|
93
|
+
back() {
|
|
94
|
+
window.history.back();
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
</script>
|
|
99
|
+
<style scoped>
|
|
100
|
+
.local-container {
|
|
101
|
+
margin: auto;
|
|
102
|
+
padding-left: 130px;
|
|
103
|
+
max-width: 1400px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.div-title {
|
|
107
|
+
margin-top: 15px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.module {
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
font-weight: 400;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.title {
|
|
116
|
+
font-size: 18px;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.icon {
|
|
121
|
+
opacity: 0.8;
|
|
122
|
+
font-size: 20px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.c-back {
|
|
126
|
+
margin-top: 20px;
|
|
127
|
+
margin-right: 12px;
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
color: #8ca1b7;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.c-back:hover {
|
|
134
|
+
color: #8ca1b7;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.panel {
|
|
138
|
+
padding: 25px;
|
|
139
|
+
}
|
|
140
|
+
</style>
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="center">
|
|
4
|
-
<span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
export default {
|
|
11
|
-
name: "Popover",
|
|
12
|
-
props: {
|
|
13
|
-
nome: String,
|
|
14
|
-
width: Number,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
18
|
-
<style lang="scss" scoped>
|
|
19
|
-
.center {
|
|
20
|
-
margin: 100px auto;
|
|
21
|
-
width: 30px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* The element to hover over */
|
|
25
|
-
.qs {
|
|
26
|
-
background-color: #02bdda;
|
|
27
|
-
border-radius: 16px;
|
|
28
|
-
color: #e3fbff;
|
|
29
|
-
cursor: default;
|
|
30
|
-
display: inline-block;
|
|
31
|
-
font-family: "Helvetica", sans-serif;
|
|
32
|
-
font-size: 18px;
|
|
33
|
-
font-weight: bold;
|
|
34
|
-
height: 30px;
|
|
35
|
-
line-height: 30px;
|
|
36
|
-
position: relative;
|
|
37
|
-
text-align: center;
|
|
38
|
-
width: 30px;
|
|
39
|
-
|
|
40
|
-
.popover {
|
|
41
|
-
background-color: rgba(0, 0, 0, 0.85);
|
|
42
|
-
border-radius: 5px;
|
|
43
|
-
bottom: 42px;
|
|
44
|
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
|
45
|
-
color: #fff;
|
|
46
|
-
display: none;
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
font-family: "Helvetica", sans-serif;
|
|
49
|
-
left: -95px;
|
|
50
|
-
padding: 7px 10px;
|
|
51
|
-
position: absolute;
|
|
52
|
-
width: 200px;
|
|
53
|
-
z-index: 4;
|
|
54
|
-
|
|
55
|
-
&:before {
|
|
56
|
-
border-top: 7px solid rgba(0, 0, 0, 0.85);
|
|
57
|
-
border-right: 7px solid transparent;
|
|
58
|
-
border-left: 7px solid transparent;
|
|
59
|
-
bottom: -7px;
|
|
60
|
-
content: "";
|
|
61
|
-
display: block;
|
|
62
|
-
left: 50%;
|
|
63
|
-
margin-left: -7px;
|
|
64
|
-
position: absolute;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:hover {
|
|
69
|
-
.popover {
|
|
70
|
-
display: block;
|
|
71
|
-
-webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
72
|
-
-moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
73
|
-
-ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@-webkit-keyframes fade-in {
|
|
79
|
-
from {
|
|
80
|
-
opacity: 0;
|
|
81
|
-
}
|
|
82
|
-
to {
|
|
83
|
-
opacity: 1;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
@-moz-keyframes fade-in {
|
|
87
|
-
from {
|
|
88
|
-
opacity: 0;
|
|
89
|
-
}
|
|
90
|
-
to {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
@-ms-keyframes fade-in {
|
|
95
|
-
from {
|
|
96
|
-
opacity: 0;
|
|
97
|
-
}
|
|
98
|
-
to {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
@-webkit-keyframes move-up {
|
|
103
|
-
from {
|
|
104
|
-
bottom: 30px;
|
|
105
|
-
}
|
|
106
|
-
to {
|
|
107
|
-
bottom: 42px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
@-moz-keyframes move-up {
|
|
111
|
-
from {
|
|
112
|
-
bottom: 30px;
|
|
113
|
-
}
|
|
114
|
-
to {
|
|
115
|
-
bottom: 42px;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
@-ms-keyframes move-up {
|
|
119
|
-
from {
|
|
120
|
-
bottom: 30px;
|
|
121
|
-
}
|
|
122
|
-
to {
|
|
123
|
-
bottom: 42px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="center">
|
|
4
|
+
<span class="qs">? <span class="popover above">Hey bro, cool popover!</span></span>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
name: "Popover",
|
|
12
|
+
props: {
|
|
13
|
+
nome: String,
|
|
14
|
+
width: Number,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
</script>
|
|
18
|
+
<style lang="scss" scoped>
|
|
19
|
+
.center {
|
|
20
|
+
margin: 100px auto;
|
|
21
|
+
width: 30px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* The element to hover over */
|
|
25
|
+
.qs {
|
|
26
|
+
background-color: #02bdda;
|
|
27
|
+
border-radius: 16px;
|
|
28
|
+
color: #e3fbff;
|
|
29
|
+
cursor: default;
|
|
30
|
+
display: inline-block;
|
|
31
|
+
font-family: "Helvetica", sans-serif;
|
|
32
|
+
font-size: 18px;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
height: 30px;
|
|
35
|
+
line-height: 30px;
|
|
36
|
+
position: relative;
|
|
37
|
+
text-align: center;
|
|
38
|
+
width: 30px;
|
|
39
|
+
|
|
40
|
+
.popover {
|
|
41
|
+
background-color: rgba(0, 0, 0, 0.85);
|
|
42
|
+
border-radius: 5px;
|
|
43
|
+
bottom: 42px;
|
|
44
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
|
45
|
+
color: #fff;
|
|
46
|
+
display: none;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
font-family: "Helvetica", sans-serif;
|
|
49
|
+
left: -95px;
|
|
50
|
+
padding: 7px 10px;
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 200px;
|
|
53
|
+
z-index: 4;
|
|
54
|
+
|
|
55
|
+
&:before {
|
|
56
|
+
border-top: 7px solid rgba(0, 0, 0, 0.85);
|
|
57
|
+
border-right: 7px solid transparent;
|
|
58
|
+
border-left: 7px solid transparent;
|
|
59
|
+
bottom: -7px;
|
|
60
|
+
content: "";
|
|
61
|
+
display: block;
|
|
62
|
+
left: 50%;
|
|
63
|
+
margin-left: -7px;
|
|
64
|
+
position: absolute;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
.popover {
|
|
70
|
+
display: block;
|
|
71
|
+
-webkit-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
72
|
+
-moz-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
73
|
+
-ms-animation: fade-in 0.3s linear 1, move-up 0.3s linear 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@-webkit-keyframes fade-in {
|
|
79
|
+
from {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
82
|
+
to {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@-moz-keyframes fade-in {
|
|
87
|
+
from {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
to {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@-ms-keyframes fade-in {
|
|
95
|
+
from {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
98
|
+
to {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
@-webkit-keyframes move-up {
|
|
103
|
+
from {
|
|
104
|
+
bottom: 30px;
|
|
105
|
+
}
|
|
106
|
+
to {
|
|
107
|
+
bottom: 42px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
@-moz-keyframes move-up {
|
|
111
|
+
from {
|
|
112
|
+
bottom: 30px;
|
|
113
|
+
}
|
|
114
|
+
to {
|
|
115
|
+
bottom: 42px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@-ms-keyframes move-up {
|
|
119
|
+
from {
|
|
120
|
+
bottom: 30px;
|
|
121
|
+
}
|
|
122
|
+
to {
|
|
123
|
+
bottom: 42px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:id="id"
|
|
4
|
-
class="scrollbar"
|
|
5
|
-
:style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
|
|
6
|
-
>
|
|
7
|
-
<slot></slot>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
import { mapMutations } from "vuex";
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
name: "ScrollBar",
|
|
16
|
-
props: {
|
|
17
|
-
id: String,
|
|
18
|
-
maxHeight: Number,
|
|
19
|
-
minHeight: Number,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
overflow-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:id="id"
|
|
4
|
+
class="scrollbar"
|
|
5
|
+
:style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
|
|
6
|
+
>
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { mapMutations } from "vuex";
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: "ScrollBar",
|
|
16
|
+
props: {
|
|
17
|
+
id: String,
|
|
18
|
+
maxHeight: Number,
|
|
19
|
+
minHeight: Number,
|
|
20
|
+
endScrollBar: Function,
|
|
21
|
+
},
|
|
22
|
+
mounted() {
|
|
23
|
+
const listElm = document.querySelector("#" + this.id);
|
|
24
|
+
if (listElm != null)
|
|
25
|
+
listElm.addEventListener("scroll", (e) => {
|
|
26
|
+
if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
|
|
27
|
+
if (this.endScrollBar) this.endScrollBar();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
...mapMutations("generic", ["addEvent"]),
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<style scoped>
|
|
38
|
+
div {
|
|
39
|
+
overflow-y: visible;
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
}
|
|
42
|
+
</style>
|