@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,59 +1,59 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="filter-horizontal">
|
|
3
|
-
<Collapse
|
|
4
|
-
:buttonShow="{
|
|
5
|
-
title: 'Mais filtros',
|
|
6
|
-
icon: 'fas fa-arrow-alt-circle-down',
|
|
7
|
-
type: 'info',
|
|
8
|
-
}"
|
|
9
|
-
:buttonHide="{
|
|
10
|
-
title: 'Menos filtros',
|
|
11
|
-
icon: 'fas fa-arrow-alt-circle-up',
|
|
12
|
-
type: 'warning',
|
|
13
|
-
}"
|
|
14
|
-
>
|
|
15
|
-
<b-row>
|
|
16
|
-
<b-col :sm="showTotalPerPage ? 10 : 12">
|
|
17
|
-
<slot name="content-filter-horizontal"></slot>
|
|
18
|
-
</b-col>
|
|
19
|
-
<b-col xs="12" sm="12" md="12" lg="2" xl="2" v-if="showTotalPerPage">
|
|
20
|
-
<SelectStatic
|
|
21
|
-
title="
|
|
22
|
-
fieldTarget="totalPerPage"
|
|
23
|
-
:initialValue="{ content: '10', id: 10 }"
|
|
24
|
-
:data="[
|
|
25
|
-
{ content: '10', id: 10 },
|
|
26
|
-
{ content: '20', id: 20 },
|
|
27
|
-
{ content: '30', id: 30 },
|
|
28
|
-
{ content: '50', id: 50 },
|
|
29
|
-
{ content: '100', id: 100 },
|
|
30
|
-
]"
|
|
31
|
-
/>
|
|
32
|
-
</b-col>
|
|
33
|
-
</b-row>
|
|
34
|
-
</Collapse>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
import Collapse from "./Collapse.vue";
|
|
40
|
-
import SelectStatic from "../forms/SelectStatic.vue";
|
|
41
|
-
import Select from "../forms/Select";
|
|
42
|
-
|
|
43
|
-
export default {
|
|
44
|
-
name: "ListViewWithHandlerData",
|
|
45
|
-
components: { Select, SelectStatic, Collapse },
|
|
46
|
-
props: {
|
|
47
|
-
showTotalPerPage: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: true,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<style scoped>
|
|
56
|
-
.filter-horizontal {
|
|
57
|
-
margin-bottom: 5px;
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="filter-horizontal">
|
|
3
|
+
<Collapse
|
|
4
|
+
:buttonShow="{
|
|
5
|
+
title: 'Mais filtros',
|
|
6
|
+
icon: 'fas fa-arrow-alt-circle-down',
|
|
7
|
+
type: 'info',
|
|
8
|
+
}"
|
|
9
|
+
:buttonHide="{
|
|
10
|
+
title: 'Menos filtros',
|
|
11
|
+
icon: 'fas fa-arrow-alt-circle-up',
|
|
12
|
+
type: 'warning',
|
|
13
|
+
}"
|
|
14
|
+
>
|
|
15
|
+
<b-row>
|
|
16
|
+
<b-col :sm="showTotalPerPage ? 10 : 12">
|
|
17
|
+
<slot name="content-filter-horizontal"></slot>
|
|
18
|
+
</b-col>
|
|
19
|
+
<b-col xs="12" sm="12" md="12" lg="2" xl="2" v-if="showTotalPerPage">
|
|
20
|
+
<SelectStatic
|
|
21
|
+
title="Mostrar"
|
|
22
|
+
fieldTarget="totalPerPage"
|
|
23
|
+
:initialValue="{ content: '10', id: 10 }"
|
|
24
|
+
:data="[
|
|
25
|
+
{ content: '10', id: 10 },
|
|
26
|
+
{ content: '20', id: 20 },
|
|
27
|
+
{ content: '30', id: 30 },
|
|
28
|
+
{ content: '50', id: 50 },
|
|
29
|
+
{ content: '100', id: 100 },
|
|
30
|
+
]"
|
|
31
|
+
/>
|
|
32
|
+
</b-col>
|
|
33
|
+
</b-row>
|
|
34
|
+
</Collapse>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import Collapse from "./Collapse.vue";
|
|
40
|
+
import SelectStatic from "../forms/SelectStatic.vue";
|
|
41
|
+
import Select from "../forms/Select";
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: "ListViewWithHandlerData",
|
|
45
|
+
components: { Select, SelectStatic, Collapse },
|
|
46
|
+
props: {
|
|
47
|
+
showTotalPerPage: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style scoped>
|
|
56
|
+
.filter-horizontal {
|
|
57
|
+
margin-bottom: 5px;
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div v-if="type == 'bubbles'" :class="{ loading: center }">
|
|
4
|
-
<vue-loading
|
|
5
|
-
type="bubbles"
|
|
6
|
-
:color="color"
|
|
7
|
-
:size="{ width: width + 'px', height: height + 'px' }"
|
|
8
|
-
></vue-loading>
|
|
9
|
-
</div>
|
|
10
|
-
<div v-if="type == 'line'">
|
|
11
|
-
<div class="loader">
|
|
12
|
-
<div class="loader__element"></div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div :class="{ 'loading-text': center }">
|
|
16
|
-
<div>
|
|
17
|
-
<div class="message">{{ message }}</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
export default {
|
|
25
|
-
name: "Loading",
|
|
26
|
-
props: {
|
|
27
|
-
height: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 70,
|
|
30
|
-
},
|
|
31
|
-
width: {
|
|
32
|
-
type: Number,
|
|
33
|
-
default: 70,
|
|
34
|
-
},
|
|
35
|
-
center: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true,
|
|
38
|
-
},
|
|
39
|
-
color: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "#D98621",
|
|
42
|
-
},
|
|
43
|
-
type: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "
|
|
46
|
-
},
|
|
47
|
-
message: String,
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style scoped>
|
|
53
|
-
.loading {
|
|
54
|
-
position: absolute;
|
|
55
|
-
left: 50%;
|
|
56
|
-
top: 50%;
|
|
57
|
-
-webkit-transform: translate(-50%, -50%);
|
|
58
|
-
transform: translate(-50%, -50%);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.loading-text {
|
|
62
|
-
position: absolute;
|
|
63
|
-
left: 50%;
|
|
64
|
-
top: 45%;
|
|
65
|
-
-webkit-transform: translate(-50%, -50%);
|
|
66
|
-
transform: translate(-50%, -50%);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.message {
|
|
70
|
-
font-size: 15px;
|
|
71
|
-
margin-top: 5px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.loader {
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: 100%;
|
|
78
|
-
top: 0;
|
|
79
|
-
left: 0;
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
align-content: center;
|
|
83
|
-
justify-content: flex-start;
|
|
84
|
-
z-index: 100000;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.loader__element {
|
|
88
|
-
height: 3px;
|
|
89
|
-
width: 100%;
|
|
90
|
-
background: #fbf2e8;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.loader__element:before {
|
|
94
|
-
content: "";
|
|
95
|
-
display: block;
|
|
96
|
-
background-color: #fca944;
|
|
97
|
-
height: 3px;
|
|
98
|
-
width: 0;
|
|
99
|
-
animation: getWidth 1s ease-in infinite;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@keyframes getWidth {
|
|
103
|
-
100% {
|
|
104
|
-
width: 100%;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div v-if="type == 'bubbles'" :class="{ loading: center }">
|
|
4
|
+
<vue-loading
|
|
5
|
+
type="bubbles"
|
|
6
|
+
:color="color"
|
|
7
|
+
:size="{ width: width + 'px', height: height + 'px' }"
|
|
8
|
+
></vue-loading>
|
|
9
|
+
</div>
|
|
10
|
+
<div v-if="type == 'line'">
|
|
11
|
+
<div class="loader">
|
|
12
|
+
<div class="loader__element"></div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div :class="{ 'loading-text': center }">
|
|
16
|
+
<div>
|
|
17
|
+
<div class="message">{{ message }}</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
name: "Loading",
|
|
26
|
+
props: {
|
|
27
|
+
height: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 70,
|
|
30
|
+
},
|
|
31
|
+
width: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 70,
|
|
34
|
+
},
|
|
35
|
+
center: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true,
|
|
38
|
+
},
|
|
39
|
+
color: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "#D98621",
|
|
42
|
+
},
|
|
43
|
+
type: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "bubbles",
|
|
46
|
+
},
|
|
47
|
+
message: String,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style scoped>
|
|
53
|
+
.loading {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 50%;
|
|
56
|
+
top: 50%;
|
|
57
|
+
-webkit-transform: translate(-50%, -50%);
|
|
58
|
+
transform: translate(-50%, -50%);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.loading-text {
|
|
62
|
+
position: absolute;
|
|
63
|
+
left: 50%;
|
|
64
|
+
top: 45%;
|
|
65
|
+
-webkit-transform: translate(-50%, -50%);
|
|
66
|
+
transform: translate(-50%, -50%);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.message {
|
|
70
|
+
font-size: 15px;
|
|
71
|
+
margin-top: 5px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.loader {
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
align-content: center;
|
|
83
|
+
justify-content: flex-start;
|
|
84
|
+
z-index: 100000;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.loader__element {
|
|
88
|
+
height: 3px;
|
|
89
|
+
width: 100%;
|
|
90
|
+
background: #fbf2e8;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.loader__element:before {
|
|
94
|
+
content: "";
|
|
95
|
+
display: block;
|
|
96
|
+
background-color: #fca944;
|
|
97
|
+
height: 3px;
|
|
98
|
+
width: 0;
|
|
99
|
+
animation: getWidth 1s ease-in infinite;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes getWidth {
|
|
103
|
+
100% {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Button
|
|
4
|
-
key="loadingMore"
|
|
5
|
-
eventName="loadingMore"
|
|
6
|
-
type="warning"
|
|
7
|
-
title="Carregar mais..."
|
|
8
|
-
classIcon="fas fa-redo"
|
|
9
|
-
size="medium"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
<script>
|
|
14
|
-
import Button from "../forms/Button.vue";
|
|
15
|
-
export default {
|
|
16
|
-
name: "LoadingMoreButton",
|
|
17
|
-
components: { Button },
|
|
18
|
-
data() {
|
|
19
|
-
return {};
|
|
20
|
-
},
|
|
21
|
-
methods: {},
|
|
22
|
-
};
|
|
23
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Button
|
|
4
|
+
key="loadingMore"
|
|
5
|
+
eventName="loadingMore"
|
|
6
|
+
type="warning"
|
|
7
|
+
title="Carregar mais..."
|
|
8
|
+
classIcon="fas fa-redo"
|
|
9
|
+
size="medium"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
<script>
|
|
14
|
+
import Button from "../forms/Button.vue";
|
|
15
|
+
export default {
|
|
16
|
+
name: "LoadingMoreButton",
|
|
17
|
+
components: { Button },
|
|
18
|
+
data() {
|
|
19
|
+
return {};
|
|
20
|
+
},
|
|
21
|
+
methods: {},
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
@@ -1,83 +1,81 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
|
|
4
|
-
<div>
|
|
5
|
-
<Alert type="danger">
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
|
|
4
|
+
<div v-for="notification in storageNotification">
|
|
5
|
+
<Alert type="danger">
|
|
6
|
+
{{ notification.message }}
|
|
7
|
+
</Alert>
|
|
8
|
+
</div>
|
|
9
|
+
<b-alert
|
|
10
|
+
v-show="false"
|
|
11
|
+
:show="countdown"
|
|
12
|
+
dismissible
|
|
13
|
+
variant="danger"
|
|
14
|
+
@dismissed="countdown = 0"
|
|
15
|
+
@dismiss-count-down="countdownChanged"
|
|
16
|
+
>
|
|
17
|
+
</b-alert>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import Alert from "../layout/Alert.vue";
|
|
24
|
+
import { mapState, mapMutations } from "vuex";
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
components: { Alert },
|
|
28
|
+
name: "Messages",
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
maxSeconds: 10,
|
|
32
|
+
countdown: 10,
|
|
33
|
+
storageNotification: [],
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
...mapState("generic", ["notifications", "modal"]),
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
notifications() {
|
|
41
|
+
if (this.notifications.length > 0) {
|
|
42
|
+
this.storageNotification = this.notifications;
|
|
43
|
+
this.countdown = 5;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
countdown() {
|
|
47
|
+
if (this.countdown === 0) {
|
|
48
|
+
this.storageNotification = [];
|
|
49
|
+
this.removeNotificarions();
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
...mapMutations("generic", ["removeNotificarions"]),
|
|
55
|
+
countdownChanged(countdown) {
|
|
56
|
+
this.countdown = countdown;
|
|
57
|
+
},
|
|
58
|
+
messages(notifications) {
|
|
59
|
+
var message = "";
|
|
60
|
+
notifications.forEach(function (notification) {
|
|
61
|
+
message += notification.message + " ";
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
</script>
|
|
69
|
+
<style scoped>
|
|
70
|
+
.div-message {
|
|
71
|
+
margin-top: 15px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.div-message-modal {
|
|
75
|
+
margin-bottom: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.invalid {
|
|
79
|
+
color: #f0134d;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- used `style="height: 100vh;"` because without it in the Firefox 89 and Chrome 91 (June 2021) the `vue-pdf-app` is not rendering on the page, just empty space without any errors (since `vue-pdf-app` does not have height and it is the top tag in the generated markup ) -->
|
|
3
|
-
<!-- or you can just wrap `vue-pdf-app` in <div> tag and set height for it via CSS (like in `Script tag (unpkg)` example below) -->
|
|
4
|
-
<div>
|
|
5
|
-
<vue-pdf-app
|
|
6
|
-
style="height: 100vh"
|
|
7
|
-
pdf="https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf"
|
|
8
|
-
></vue-pdf-app>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import VuePdfApp from "vue-pdf-app";
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
components: {
|
|
17
|
-
VuePdfApp,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- used `style="height: 100vh;"` because without it in the Firefox 89 and Chrome 91 (June 2021) the `vue-pdf-app` is not rendering on the page, just empty space without any errors (since `vue-pdf-app` does not have height and it is the top tag in the generated markup ) -->
|
|
3
|
+
<!-- or you can just wrap `vue-pdf-app` in <div> tag and set height for it via CSS (like in `Script tag (unpkg)` example below) -->
|
|
4
|
+
<div>
|
|
5
|
+
<vue-pdf-app
|
|
6
|
+
style="height: 100vh"
|
|
7
|
+
pdf="https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf"
|
|
8
|
+
></vue-pdf-app>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import VuePdfApp from "vue-pdf-app";
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
components: {
|
|
17
|
+
VuePdfApp,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style scoped></style>
|