@nixweb/nixloc-ui 1.17.0 → 1.20.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/.github/workflows/publish-npm.yml +32 -32
- package/@nixweb/nixloc-ui/.github/workflows/publish-npm.yml +32 -32
- package/@nixweb/nixloc-ui/README.md +24 -24
- package/@nixweb/nixloc-ui/babel.config.js +5 -5
- package/@nixweb/nixloc-ui/config/dev.env.js +8 -8
- package/@nixweb/nixloc-ui/config/index.js +69 -69
- package/@nixweb/nixloc-ui/config/prod.env.js +5 -5
- package/@nixweb/nixloc-ui/docs/src/component/template/ViewTemplateReportPreview.drawio +209 -209
- package/@nixweb/nixloc-ui/docs/src/store/modulos/relatorio.drawio +36 -36
- package/@nixweb/nixloc-ui/package.json +88 -88
- package/@nixweb/nixloc-ui/public/index.html +19 -19
- package/@nixweb/nixloc-ui/public/styles/app.css +52 -52
- package/@nixweb/nixloc-ui/src/App.vue +13 -13
- package/@nixweb/nixloc-ui/src/component/forms/Button.vue +163 -163
- package/@nixweb/nixloc-ui/src/component/forms/ButtonFilter.vue +74 -74
- package/@nixweb/nixloc-ui/src/component/forms/ButtonGroup.vue +66 -66
- package/@nixweb/nixloc-ui/src/component/forms/ButtonSub.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/forms/ButtonToggle.vue +76 -76
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxGroup.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxServer.vue +192 -192
- package/@nixweb/nixloc-ui/src/component/forms/CheckboxSimple.vue +60 -60
- package/@nixweb/nixloc-ui/src/component/forms/Color.vue +38 -38
- package/@nixweb/nixloc-ui/src/component/forms/DateTime.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/DateYearMonth.vue +193 -193
- package/@nixweb/nixloc-ui/src/component/forms/Dropdown.vue +236 -236
- package/@nixweb/nixloc-ui/src/component/forms/EditorHtml.vue +132 -132
- package/@nixweb/nixloc-ui/src/component/forms/FileUpload.vue +170 -170
- package/@nixweb/nixloc-ui/src/component/forms/ImageUpload.vue +214 -214
- package/@nixweb/nixloc-ui/src/component/forms/IncrementDecrement.vue +148 -148
- package/@nixweb/nixloc-ui/src/component/forms/InputAddressGoogle.vue +171 -171
- package/@nixweb/nixloc-ui/src/component/forms/InputCallToAction.vue +135 -135
- package/@nixweb/nixloc-ui/src/component/forms/InputDecimal.vue +153 -153
- package/@nixweb/nixloc-ui/src/component/forms/InputDecimalDiscount.vue +77 -77
- package/@nixweb/nixloc-ui/src/component/forms/InputNumber.vue +160 -160
- package/@nixweb/nixloc-ui/src/component/forms/InputPassword.vue +148 -148
- package/@nixweb/nixloc-ui/src/component/forms/InputTag.vue +124 -124
- package/@nixweb/nixloc-ui/src/component/forms/InputText.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/forms/InputTextEdit.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/forms/InputWhatsApp.vue +47 -47
- package/@nixweb/nixloc-ui/src/component/forms/Modal.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/forms/RadioGroup.vue +91 -91
- package/@nixweb/nixloc-ui/src/component/forms/Select.vue +378 -378
- package/@nixweb/nixloc-ui/src/component/forms/SelectStatic.vue +198 -198
- package/@nixweb/nixloc-ui/src/component/forms/SideBar.vue +99 -99
- package/@nixweb/nixloc-ui/src/component/forms/Slider.vue +18 -18
- package/@nixweb/nixloc-ui/src/component/forms/TextArea.vue +138 -138
- package/@nixweb/nixloc-ui/src/component/forms/Toggle.vue +72 -72
- package/@nixweb/nixloc-ui/src/component/layout/Account.vue +131 -131
- package/@nixweb/nixloc-ui/src/component/layout/Alert.vue +88 -88
- package/@nixweb/nixloc-ui/src/component/layout/Badge.vue +111 -111
- package/@nixweb/nixloc-ui/src/component/layout/BarFloating.vue +67 -67
- package/@nixweb/nixloc-ui/src/component/layout/FixedBar.vue +103 -103
- package/@nixweb/nixloc-ui/src/component/layout/Gantt.vue +128 -128
- package/@nixweb/nixloc-ui/src/component/layout/Header.vue +56 -56
- package/@nixweb/nixloc-ui/src/component/layout/HideShow.vue +61 -61
- package/@nixweb/nixloc-ui/src/component/layout/IconMolded.vue +58 -58
- package/@nixweb/nixloc-ui/src/component/layout/LoadingFullPage.vue +27 -27
- package/@nixweb/nixloc-ui/src/component/layout/Menu.vue +287 -287
- package/@nixweb/nixloc-ui/src/component/layout/Molded.vue +30 -30
- package/@nixweb/nixloc-ui/src/component/layout/NewAccount.vue +136 -136
- package/@nixweb/nixloc-ui/src/component/layout/NewHeader.vue +59 -59
- package/@nixweb/nixloc-ui/src/component/layout/NewIconMolded.vue +70 -70
- package/@nixweb/nixloc-ui/src/component/layout/NewMenu.vue +455 -455
- package/@nixweb/nixloc-ui/src/component/layout/Panel.vue +185 -185
- package/@nixweb/nixloc-ui/src/component/layout/Popover.vue +126 -126
- package/@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue +57 -57
- package/@nixweb/nixloc-ui/src/component/layout/Tab.vue +135 -135
- package/@nixweb/nixloc-ui/src/component/layout/Tag.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/layout/Wizard.vue +211 -211
- package/@nixweb/nixloc-ui/src/component/rental/DisplayCalculatePeriod.vue +48 -48
- package/@nixweb/nixloc-ui/src/component/rental/DisplayPeriodRent.vue +55 -55
- package/@nixweb/nixloc-ui/src/component/rental/DisplayTotalization.vue +86 -86
- package/@nixweb/nixloc-ui/src/component/report/Fields.vue +108 -108
- package/@nixweb/nixloc-ui/src/component/report/Report.vue +313 -313
- package/@nixweb/nixloc-ui/src/component/report/ReportTable.vue +111 -111
- package/@nixweb/nixloc-ui/src/component/report/Totalization.vue +33 -33
- package/@nixweb/nixloc-ui/src/component/shared/CodeEditor.vue +128 -128
- package/@nixweb/nixloc-ui/src/component/shared/Collapse.vue +131 -131
- package/@nixweb/nixloc-ui/src/component/shared/Confirmation.vue +74 -74
- package/@nixweb/nixloc-ui/src/component/shared/DocumentEditor.vue +99 -99
- package/@nixweb/nixloc-ui/src/component/shared/DocumentPreview.vue +81 -81
- package/@nixweb/nixloc-ui/src/component/shared/DocumentPublic.vue +33 -33
- package/@nixweb/nixloc-ui/src/component/shared/ExportExcel.vue +56 -56
- package/@nixweb/nixloc-ui/src/component/shared/ExportPDF.vue +116 -116
- package/@nixweb/nixloc-ui/src/component/shared/FullCalendar.vue +173 -173
- package/@nixweb/nixloc-ui/src/component/shared/HeaderReport.vue +47 -47
- package/@nixweb/nixloc-ui/src/component/shared/HorizontalFilter.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/shared/ListNotifications.vue +70 -70
- package/@nixweb/nixloc-ui/src/component/shared/Loading.vue +107 -107
- package/@nixweb/nixloc-ui/src/component/shared/LoadingCard.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/shared/LoadingMoreButton.vue +23 -23
- package/@nixweb/nixloc-ui/src/component/shared/Messages.vue +109 -109
- package/@nixweb/nixloc-ui/src/component/shared/PDFViewer.vue +24 -24
- package/@nixweb/nixloc-ui/src/component/shared/Pagination.vue +108 -108
- package/@nixweb/nixloc-ui/src/component/shared/ParameterLegend.vue +169 -169
- package/@nixweb/nixloc-ui/src/component/shared/ProgressBar.vue +25 -25
- package/@nixweb/nixloc-ui/src/component/shared/QueryButton.vue +66 -66
- package/@nixweb/nixloc-ui/src/component/shared/Report.vue +200 -200
- package/@nixweb/nixloc-ui/src/component/shared/SaveCancel.vue +99 -99
- package/@nixweb/nixloc-ui/src/component/shared/Search.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/SelectOption.vue +162 -162
- package/@nixweb/nixloc-ui/src/component/shared/Table.vue +174 -174
- package/@nixweb/nixloc-ui/src/component/shared/TableButton.vue +36 -36
- package/@nixweb/nixloc-ui/src/component/shared/TableDraggable.vue +117 -117
- package/@nixweb/nixloc-ui/src/component/shared/TableImport.vue +93 -93
- package/@nixweb/nixloc-ui/src/component/shared/TableItem.vue +214 -214
- package/@nixweb/nixloc-ui/src/component/shared/TableTotalPerPage.vue +77 -77
- package/@nixweb/nixloc-ui/src/component/shared/TableTotalRecords.vue +44 -44
- package/@nixweb/nixloc-ui/src/component/shared/TableTotalization.vue +47 -47
- package/@nixweb/nixloc-ui/src/component/shared/TimeLine.vue +41 -41
- package/@nixweb/nixloc-ui/src/component/shared/Timer.vue +77 -77
- package/@nixweb/nixloc-ui/src/component/shared/Tip.vue +42 -42
- package/@nixweb/nixloc-ui/src/component/shared/Toast.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/ToggleTheme.vue +127 -127
- package/@nixweb/nixloc-ui/src/component/shared/TotalizationReport.vue +86 -86
- package/@nixweb/nixloc-ui/src/component/shared/VerticalFilter.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/automation/ActivitiesList.vue +43 -43
- package/@nixweb/nixloc-ui/src/component/shared/automation/AddRule.vue +60 -60
- package/@nixweb/nixloc-ui/src/component/shared/automation/AutomationBuilder.vue +26 -26
- package/@nixweb/nixloc-ui/src/component/shared/automation/DynamicComponentList.vue +85 -85
- package/@nixweb/nixloc-ui/src/component/shared/automation/SelectRule.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/automation/components/BillingByRent.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/automation/components/SendEmail.vue +93 -93
- package/@nixweb/nixloc-ui/src/component/shared/file-manager/FileManager.vue +390 -390
- package/@nixweb/nixloc-ui/src/component/shared/filter-builder/FilterBuilder.vue +220 -220
- package/@nixweb/nixloc-ui/src/component/shared/filter-builder/FilterQuery.vue +94 -94
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/AddRule.vue +203 -203
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/ConvertToOdata.js +86 -86
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponent.vue +161 -161
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/DynamicComponentList.vue +70 -70
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/Fields.vue +93 -93
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/QueryBuilder.vue +69 -69
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/Rules.vue +68 -68
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/SelectRule.vue +97 -97
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/Tags.vue +59 -59
- package/@nixweb/nixloc-ui/src/component/shared/query-builder/utilities.js +21 -21
- package/@nixweb/nixloc-ui/src/component/signature/Payment.vue +160 -160
- package/@nixweb/nixloc-ui/src/component/signature/Warning.vue +75 -75
- package/@nixweb/nixloc-ui/src/component/template/ListViewWithDataHandler.vue +429 -429
- package/@nixweb/nixloc-ui/src/component/template/ReportCreateUpdate.vue +110 -110
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateConfiguration.vue +64 -64
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateDocumentView.vue +213 -213
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateImportFile.vue +347 -347
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateReportList.vue +217 -217
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateReportPreview.vue +432 -432
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateSelectOption.vue +46 -46
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithSalveCancel.vue +32 -32
- package/@nixweb/nixloc-ui/src/component/template/ViewTemplateWithTable.vue +62 -62
- package/@nixweb/nixloc-ui/src/component/template/model/Report.js +5 -5
- package/@nixweb/nixloc-ui/src/component/training/Course.vue +343 -343
- package/@nixweb/nixloc-ui/src/component/training/CourseView.vue +189 -189
- package/@nixweb/nixloc-ui/src/component/value-objects/Address.js +10 -10
- package/@nixweb/nixloc-ui/src/component/value-objects/Address.vue +157 -157
- package/@nixweb/nixloc-ui/src/component/value-objects/Contact.js +6 -6
- package/@nixweb/nixloc-ui/src/component/value-objects/Contact.vue +106 -106
- package/@nixweb/nixloc-ui/src/component/value-objects/Person.js +10 -10
- package/@nixweb/nixloc-ui/src/component/value-objects/Person.vue +129 -129
- package/@nixweb/nixloc-ui/src/config/axios.js +9 -9
- package/@nixweb/nixloc-ui/src/config/dicas.js +14 -14
- package/@nixweb/nixloc-ui/src/config/router.js +13 -13
- package/@nixweb/nixloc-ui/src/config/token.js +14 -14
- package/@nixweb/nixloc-ui/src/main.js +23 -23
- package/@nixweb/nixloc-ui/src/store/modules/automation.js +30 -30
- package/@nixweb/nixloc-ui/src/store/modules/generic.js +815 -815
- package/@nixweb/nixloc-ui/src/store/modules/report.js +277 -277
- package/@nixweb/nixloc-ui/src/store/modules/user.js +66 -66
- package/@nixweb/nixloc-ui/src/store/modules/util.js +25 -25
- package/@nixweb/nixloc-ui/src/store/modules/validation.js +38 -38
- package/@nixweb/nixloc-ui/src/store/store.js +13 -13
- package/README.md +24 -24
- package/babel.config.js +5 -5
- package/config/dev.env.js +8 -8
- package/config/index.js +69 -69
- package/config/prod.env.js +5 -5
- package/docs/src/component/template/ViewTemplateReportPreview.drawio +209 -209
- package/docs/src/store/modulos/relatorio.drawio +36 -36
- package/package.json +88 -88
- package/public/index.html +19 -19
- package/public/styles/app.css +52 -52
- package/src/component/layout/ScrollBar.vue +21 -8
- package/src/store/modules/generic.js +15 -1
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="line-arrow" v-if="type == 'arrow'">
|
|
4
|
-
<div class="arrow" @click="show" v-if="!showCollapse">
|
|
5
|
-
<b-row>
|
|
6
|
-
<b-col sm="6" class="text-left">
|
|
7
|
-
<span class="title">{{ title }}</span>
|
|
8
|
-
</b-col>
|
|
9
|
-
<b-col sm="6" class="text-right">
|
|
10
|
-
<i class="far fa-plus"></i>
|
|
11
|
-
</b-col>
|
|
12
|
-
</b-row>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="arrow" @click="hide" v-if="showCollapse">
|
|
15
|
-
<b-row>
|
|
16
|
-
<b-col sm="6" class="text-left">
|
|
17
|
-
<span class="title">{{ title }}</span>
|
|
18
|
-
</b-col>
|
|
19
|
-
<b-col sm="6" class="text-right">
|
|
20
|
-
<i class="far fa-minus"></i>
|
|
21
|
-
</b-col>
|
|
22
|
-
</b-row>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<b-collapse id="collapse-4" v-model="showCollapse" class="mt-2">
|
|
26
|
-
<slot></slot>
|
|
27
|
-
</b-collapse>
|
|
28
|
-
<div v-if="type == 'button'">
|
|
29
|
-
<b-row>
|
|
30
|
-
<b-col sm="12">
|
|
31
|
-
<div class="text-center">
|
|
32
|
-
<Button
|
|
33
|
-
v-if="!showCollapse"
|
|
34
|
-
:title="buttonShow.title"
|
|
35
|
-
:classIcon="buttonShow.icon"
|
|
36
|
-
:type="buttonShow.type"
|
|
37
|
-
size="small"
|
|
38
|
-
:clicked="show"
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
</b-col>
|
|
42
|
-
</b-row>
|
|
43
|
-
<b-row>
|
|
44
|
-
<b-col>
|
|
45
|
-
<div class="text-center">
|
|
46
|
-
<Button
|
|
47
|
-
v-if="showCollapse"
|
|
48
|
-
key="hideCollapse"
|
|
49
|
-
:title="buttonHide.title"
|
|
50
|
-
:classIcon="buttonHide.icon"
|
|
51
|
-
:type="buttonHide.type"
|
|
52
|
-
size="small"
|
|
53
|
-
:clicked="hide"
|
|
54
|
-
/>
|
|
55
|
-
</div>
|
|
56
|
-
</b-col>
|
|
57
|
-
</b-row>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</template>
|
|
61
|
-
|
|
62
|
-
<script>
|
|
63
|
-
import Button from "../forms/Button.vue";
|
|
64
|
-
|
|
65
|
-
import { mapMutations } from "vuex";
|
|
66
|
-
|
|
67
|
-
export default {
|
|
68
|
-
components: { Button },
|
|
69
|
-
name: "Collapse",
|
|
70
|
-
props: {
|
|
71
|
-
buttonShow: Object,
|
|
72
|
-
buttonHide: Object,
|
|
73
|
-
type: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: "button",
|
|
76
|
-
},
|
|
77
|
-
title: String,
|
|
78
|
-
startOpen: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
data() {
|
|
84
|
-
return {
|
|
85
|
-
showCollapse: false,
|
|
86
|
-
};
|
|
87
|
-
},
|
|
88
|
-
created() {
|
|
89
|
-
this.showCollapse = this.startOpen;
|
|
90
|
-
},
|
|
91
|
-
methods: {
|
|
92
|
-
...mapMutations("generic", ["removeLoading"]),
|
|
93
|
-
show() {
|
|
94
|
-
let self = this;
|
|
95
|
-
setTimeout(function () {
|
|
96
|
-
self.showCollapse = true;
|
|
97
|
-
}, 200);
|
|
98
|
-
this.removeLoadingButton();
|
|
99
|
-
},
|
|
100
|
-
hide() {
|
|
101
|
-
let self = this;
|
|
102
|
-
setTimeout(function () {
|
|
103
|
-
self.showCollapse = false;
|
|
104
|
-
}, 200);
|
|
105
|
-
this.removeLoadingButton();
|
|
106
|
-
},
|
|
107
|
-
removeLoadingButton() {
|
|
108
|
-
this.removeLoading(["showCollapse", "hideCollapse"]);
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
</script>
|
|
113
|
-
<style scoped>
|
|
114
|
-
.arrow {
|
|
115
|
-
font-size: 14px;
|
|
116
|
-
color: #577696;
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
margin-bottom: 10px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.title {
|
|
122
|
-
font-size: 16px;
|
|
123
|
-
margin-left: 5px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.line-arrow {
|
|
127
|
-
border-top: solid 1px #dbdfe9;
|
|
128
|
-
margin-top: 10px;
|
|
129
|
-
padding-top: 10px;
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="line-arrow" v-if="type == 'arrow'">
|
|
4
|
+
<div class="arrow" @click="show" v-if="!showCollapse">
|
|
5
|
+
<b-row>
|
|
6
|
+
<b-col sm="6" class="text-left">
|
|
7
|
+
<span class="title">{{ title }}</span>
|
|
8
|
+
</b-col>
|
|
9
|
+
<b-col sm="6" class="text-right">
|
|
10
|
+
<i class="far fa-plus"></i>
|
|
11
|
+
</b-col>
|
|
12
|
+
</b-row>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="arrow" @click="hide" v-if="showCollapse">
|
|
15
|
+
<b-row>
|
|
16
|
+
<b-col sm="6" class="text-left">
|
|
17
|
+
<span class="title">{{ title }}</span>
|
|
18
|
+
</b-col>
|
|
19
|
+
<b-col sm="6" class="text-right">
|
|
20
|
+
<i class="far fa-minus"></i>
|
|
21
|
+
</b-col>
|
|
22
|
+
</b-row>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<b-collapse id="collapse-4" v-model="showCollapse" class="mt-2">
|
|
26
|
+
<slot></slot>
|
|
27
|
+
</b-collapse>
|
|
28
|
+
<div v-if="type == 'button'">
|
|
29
|
+
<b-row>
|
|
30
|
+
<b-col sm="12">
|
|
31
|
+
<div class="text-center">
|
|
32
|
+
<Button
|
|
33
|
+
v-if="!showCollapse"
|
|
34
|
+
:title="buttonShow.title"
|
|
35
|
+
:classIcon="buttonShow.icon"
|
|
36
|
+
:type="buttonShow.type"
|
|
37
|
+
size="small"
|
|
38
|
+
:clicked="show"
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
41
|
+
</b-col>
|
|
42
|
+
</b-row>
|
|
43
|
+
<b-row>
|
|
44
|
+
<b-col>
|
|
45
|
+
<div class="text-center">
|
|
46
|
+
<Button
|
|
47
|
+
v-if="showCollapse"
|
|
48
|
+
key="hideCollapse"
|
|
49
|
+
:title="buttonHide.title"
|
|
50
|
+
:classIcon="buttonHide.icon"
|
|
51
|
+
:type="buttonHide.type"
|
|
52
|
+
size="small"
|
|
53
|
+
:clicked="hide"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
</b-col>
|
|
57
|
+
</b-row>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
61
|
+
|
|
62
|
+
<script>
|
|
63
|
+
import Button from "../forms/Button.vue";
|
|
64
|
+
|
|
65
|
+
import { mapMutations } from "vuex";
|
|
66
|
+
|
|
67
|
+
export default {
|
|
68
|
+
components: { Button },
|
|
69
|
+
name: "Collapse",
|
|
70
|
+
props: {
|
|
71
|
+
buttonShow: Object,
|
|
72
|
+
buttonHide: Object,
|
|
73
|
+
type: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "button",
|
|
76
|
+
},
|
|
77
|
+
title: String,
|
|
78
|
+
startOpen: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
data() {
|
|
84
|
+
return {
|
|
85
|
+
showCollapse: false,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
created() {
|
|
89
|
+
this.showCollapse = this.startOpen;
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
...mapMutations("generic", ["removeLoading"]),
|
|
93
|
+
show() {
|
|
94
|
+
let self = this;
|
|
95
|
+
setTimeout(function () {
|
|
96
|
+
self.showCollapse = true;
|
|
97
|
+
}, 200);
|
|
98
|
+
this.removeLoadingButton();
|
|
99
|
+
},
|
|
100
|
+
hide() {
|
|
101
|
+
let self = this;
|
|
102
|
+
setTimeout(function () {
|
|
103
|
+
self.showCollapse = false;
|
|
104
|
+
}, 200);
|
|
105
|
+
this.removeLoadingButton();
|
|
106
|
+
},
|
|
107
|
+
removeLoadingButton() {
|
|
108
|
+
this.removeLoading(["showCollapse", "hideCollapse"]);
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
</script>
|
|
113
|
+
<style scoped>
|
|
114
|
+
.arrow {
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
color: #577696;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
margin-bottom: 10px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.title {
|
|
122
|
+
font-size: 16px;
|
|
123
|
+
margin-left: 5px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.line-arrow {
|
|
127
|
+
border-top: solid 1px #dbdfe9;
|
|
128
|
+
margin-top: 10px;
|
|
129
|
+
padding-top: 10px;
|
|
130
|
+
}
|
|
131
|
+
</style>
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div @click="execute()">
|
|
4
|
-
<slot></slot>
|
|
5
|
-
</div>
|
|
6
|
-
<Modal v-if="isModal" :title="title" :width="450" :height="250" v-show="showModal(`confirmation${data.id}`)">
|
|
7
|
-
<b-col sm="12">
|
|
8
|
-
<div class="div-button text-center">
|
|
9
|
-
<Button key="notConfirm" type="edit" title="cancel" :disabled="disabled" size="small" :clicked="cancel" />
|
|
10
|
-
<Button key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled"
|
|
11
|
-
:clicked="confirm" />
|
|
12
|
-
</div>
|
|
13
|
-
</b-col>
|
|
14
|
-
</Modal>
|
|
15
|
-
<div v-else class="div-button text-center">
|
|
16
|
-
<Button _key="notConfirm" type="edit" title="cancel" size="small" :disabled="disabled" :clicked="cancel" />
|
|
17
|
-
<Button _key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled" :clicked="confirm" />
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
|
|
24
|
-
import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
|
|
25
|
-
|
|
26
|
-
import { mapGetters, mapMutations } from "vuex";
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
name: "Confirmation",
|
|
30
|
-
components: {
|
|
31
|
-
Button,
|
|
32
|
-
Modal,
|
|
33
|
-
},
|
|
34
|
-
props: {
|
|
35
|
-
title: String,
|
|
36
|
-
type: String,
|
|
37
|
-
data: Object,
|
|
38
|
-
isModal: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: true,
|
|
41
|
-
},
|
|
42
|
-
disabled: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false,
|
|
45
|
-
},
|
|
46
|
-
confirmed: Function,
|
|
47
|
-
},
|
|
48
|
-
methods: {
|
|
49
|
-
...mapMutations("generic", ["openModal", "hideModal", "removeLoading"]),
|
|
50
|
-
execute() {
|
|
51
|
-
this.openModal(`confirmation${this.data.id}`);
|
|
52
|
-
},
|
|
53
|
-
confirm() {
|
|
54
|
-
let self = this;
|
|
55
|
-
setTimeout(function () {
|
|
56
|
-
if (self.confirmed) self.confirmed(self.data);
|
|
57
|
-
}, 200);
|
|
58
|
-
},
|
|
59
|
-
cancel() {
|
|
60
|
-
this.removeLoading(["notConfirm"]);
|
|
61
|
-
this.hideModal();
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
computed: {
|
|
65
|
-
...mapGetters("generic", ["showModal", "event"]),
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
</script>
|
|
69
|
-
<style scoped>
|
|
70
|
-
.div-button {
|
|
71
|
-
padding-top: 20px;
|
|
72
|
-
height: 100px;
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div @click="execute()">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</div>
|
|
6
|
+
<Modal v-if="isModal" :title="title" :width="450" :height="250" v-show="showModal(`confirmation${data.id}`)">
|
|
7
|
+
<b-col sm="12">
|
|
8
|
+
<div class="div-button text-center">
|
|
9
|
+
<Button key="notConfirm" type="edit" title="cancel" :disabled="disabled" size="small" :clicked="cancel" />
|
|
10
|
+
<Button key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled"
|
|
11
|
+
:clicked="confirm" />
|
|
12
|
+
</div>
|
|
13
|
+
</b-col>
|
|
14
|
+
</Modal>
|
|
15
|
+
<div v-else class="div-button text-center">
|
|
16
|
+
<Button _key="notConfirm" type="edit" title="cancel" size="small" :disabled="disabled" :clicked="cancel" />
|
|
17
|
+
<Button _key="confirm" :type="type" title="Sim, confirmar" size="medium" :disabled="disabled" :clicked="confirm" />
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
|
|
24
|
+
import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
|
|
25
|
+
|
|
26
|
+
import { mapGetters, mapMutations } from "vuex";
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
name: "Confirmation",
|
|
30
|
+
components: {
|
|
31
|
+
Button,
|
|
32
|
+
Modal,
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
title: String,
|
|
36
|
+
type: String,
|
|
37
|
+
data: Object,
|
|
38
|
+
isModal: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true,
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false,
|
|
45
|
+
},
|
|
46
|
+
confirmed: Function,
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
...mapMutations("generic", ["openModal", "hideModal", "removeLoading"]),
|
|
50
|
+
execute() {
|
|
51
|
+
this.openModal(`confirmation${this.data.id}`);
|
|
52
|
+
},
|
|
53
|
+
confirm() {
|
|
54
|
+
let self = this;
|
|
55
|
+
setTimeout(function () {
|
|
56
|
+
if (self.confirmed) self.confirmed(self.data);
|
|
57
|
+
}, 200);
|
|
58
|
+
},
|
|
59
|
+
cancel() {
|
|
60
|
+
this.removeLoading(["notConfirm"]);
|
|
61
|
+
this.hideModal();
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
computed: {
|
|
65
|
+
...mapGetters("generic", ["showModal", "event"]),
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
</script>
|
|
69
|
+
<style scoped>
|
|
70
|
+
.div-button {
|
|
71
|
+
padding-top: 20px;
|
|
72
|
+
height: 100px;
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="form-group">
|
|
4
|
-
<div>
|
|
5
|
-
<div class="document-editor__toolbar"></div>
|
|
6
|
-
<div class="document-editor__editable-container">
|
|
7
|
-
<div id="template-dev">
|
|
8
|
-
<ckeditor :editor="editor" v-model="computedDocumentHtml" @ready="onReady" @focus="changed"></ckeditor>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<br />
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import CKEditor from "ckeditor5-custom-build/build/ckeditor";
|
|
19
|
-
import { mapState, mapMutations } from "vuex";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: "DocumentEditor",
|
|
23
|
-
props: ["editMode"],
|
|
24
|
-
components: {
|
|
25
|
-
CKEditor,
|
|
26
|
-
},
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
editor: CKEditor,
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
computed: {
|
|
33
|
-
...mapState("generic", ["documentHtml", "documentHtmlFinal"]),
|
|
34
|
-
computedDocumentHtml: {
|
|
35
|
-
get() {
|
|
36
|
-
if (this.editMode) {
|
|
37
|
-
return this.documentHtmlFinal
|
|
38
|
-
} else {
|
|
39
|
-
return this.documentHtml;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
set(newValue) {
|
|
43
|
-
if (this.editMode) {
|
|
44
|
-
this.updateDocumentHtmlFinal(newValue);
|
|
45
|
-
} else {
|
|
46
|
-
this.updateDocumentHtml(newValue);
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
...mapMutations("generic", ["updateDocumentHtmlFinal", "updateDocumentHtml", "addEvent"]),
|
|
53
|
-
onReady(editor) {
|
|
54
|
-
const toolbarContainer = document.querySelector(".document-editor__toolbar");
|
|
55
|
-
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
|
|
56
|
-
},
|
|
57
|
-
changed() {
|
|
58
|
-
this.addEvent({ name: "documentEditorChanged" });
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<style scoped>
|
|
65
|
-
/* Estilos do seu componente */
|
|
66
|
-
.document-editor {
|
|
67
|
-
border-radius: var(--ck-border-radius);
|
|
68
|
-
max-height: 700px;
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-flow: column nowrap;
|
|
71
|
-
margin: auto !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.document-editor__toolbar {
|
|
75
|
-
z-index: 1 !important;
|
|
76
|
-
min-width: 1100px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.document-editor__editable-container {
|
|
80
|
-
padding: 10px;
|
|
81
|
-
border: 1px solid #e4e6ec;
|
|
82
|
-
background: var(--ck-color-base-foreground);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.document-editor__editable-container .ck-editor__editable {
|
|
86
|
-
width: 26cm;
|
|
87
|
-
height: 700px;
|
|
88
|
-
padding: 20px;
|
|
89
|
-
border: 1px hsl(0, 0%, 82.7%) solid;
|
|
90
|
-
border-radius: var(--ck-border-radius);
|
|
91
|
-
background: white;
|
|
92
|
-
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.1);
|
|
93
|
-
margin: 0 auto;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.document-editor .ck-content {
|
|
97
|
-
font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div>
|
|
5
|
+
<div class="document-editor__toolbar"></div>
|
|
6
|
+
<div class="document-editor__editable-container">
|
|
7
|
+
<div id="template-dev">
|
|
8
|
+
<ckeditor :editor="editor" v-model="computedDocumentHtml" @ready="onReady" @focus="changed"></ckeditor>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<br />
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import CKEditor from "ckeditor5-custom-build/build/ckeditor";
|
|
19
|
+
import { mapState, mapMutations } from "vuex";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: "DocumentEditor",
|
|
23
|
+
props: ["editMode"],
|
|
24
|
+
components: {
|
|
25
|
+
CKEditor,
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
editor: CKEditor,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
computed: {
|
|
33
|
+
...mapState("generic", ["documentHtml", "documentHtmlFinal"]),
|
|
34
|
+
computedDocumentHtml: {
|
|
35
|
+
get() {
|
|
36
|
+
if (this.editMode) {
|
|
37
|
+
return this.documentHtmlFinal
|
|
38
|
+
} else {
|
|
39
|
+
return this.documentHtml;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
set(newValue) {
|
|
43
|
+
if (this.editMode) {
|
|
44
|
+
this.updateDocumentHtmlFinal(newValue);
|
|
45
|
+
} else {
|
|
46
|
+
this.updateDocumentHtml(newValue);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
...mapMutations("generic", ["updateDocumentHtmlFinal", "updateDocumentHtml", "addEvent"]),
|
|
53
|
+
onReady(editor) {
|
|
54
|
+
const toolbarContainer = document.querySelector(".document-editor__toolbar");
|
|
55
|
+
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
|
|
56
|
+
},
|
|
57
|
+
changed() {
|
|
58
|
+
this.addEvent({ name: "documentEditorChanged" });
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
/* Estilos do seu componente */
|
|
66
|
+
.document-editor {
|
|
67
|
+
border-radius: var(--ck-border-radius);
|
|
68
|
+
max-height: 700px;
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-flow: column nowrap;
|
|
71
|
+
margin: auto !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.document-editor__toolbar {
|
|
75
|
+
z-index: 1 !important;
|
|
76
|
+
min-width: 1100px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.document-editor__editable-container {
|
|
80
|
+
padding: 10px;
|
|
81
|
+
border: 1px solid #e4e6ec;
|
|
82
|
+
background: var(--ck-color-base-foreground);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.document-editor__editable-container .ck-editor__editable {
|
|
86
|
+
width: 26cm;
|
|
87
|
+
height: 700px;
|
|
88
|
+
padding: 20px;
|
|
89
|
+
border: 1px hsl(0, 0%, 82.7%) solid;
|
|
90
|
+
border-radius: var(--ck-border-radius);
|
|
91
|
+
background: white;
|
|
92
|
+
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.1);
|
|
93
|
+
margin: 0 auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.document-editor .ck-content {
|
|
97
|
+
font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
98
|
+
}
|
|
99
|
+
</style>
|