@nixweb/nixloc-ui 0.0.124 → 0.0.127
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 +3 -1
- package/src/component/forms/Button.vue +7 -6
- package/src/component/forms/CheckboxGroup.vue +7 -4
- package/src/component/forms/CheckboxSimple.vue +17 -2
- package/src/component/forms/DateTime.vue +15 -29
- package/src/component/forms/EditorHtml.vue +8 -5
- package/src/component/forms/FileUpload.vue +7 -11
- package/src/component/forms/ImageUpload.vue +222 -0
- package/src/component/forms/InputDecimal.vue +10 -9
- package/src/component/forms/InputNumber.vue +20 -15
- package/src/component/forms/InputPassword.vue +1 -1
- package/src/component/forms/InputText.vue +3 -3
- package/src/component/forms/Modal.vue +9 -4
- package/src/component/forms/Select.vue +12 -9
- package/src/component/forms/SelectStatic.vue +8 -1
- package/src/component/layout/Menu.vue +4 -3
- package/src/component/layout/Panel.vue +0 -2
- package/src/component/layout/{Scrollbar.vue → ScrollBar.vue} +4 -5
- package/src/component/layout/Tag.vue +3 -3
- package/src/component/layout/Wizard.vue +11 -13
- package/src/component/shared/BodyReport.vue +186 -0
- package/src/component/shared/Confirmation.vue +2 -2
- package/src/component/shared/DocumentEditor.vue +1 -1
- package/src/component/shared/ExportExcel.vue +1 -8
- package/src/component/shared/{HeaderPrint.vue → HeaderReport.vue} +3 -3
- package/src/component/shared/HorizontalFilter.vue +1 -1
- package/src/component/shared/Loading.vue +1 -1
- package/src/component/shared/Messages.vue +2 -4
- package/src/component/shared/Pagination.vue +4 -5
- package/src/component/shared/{LegendaParametro.vue → ParameterLegend.vue} +25 -29
- package/src/component/shared/ProgressBar.vue +2 -1
- package/src/component/shared/SaveCancel.vue +20 -4
- package/src/component/shared/Search.vue +16 -16
- package/src/component/shared/SelectOption.vue +137 -0
- package/src/component/shared/Table.vue +33 -22
- package/src/component/shared/TableButton.vue +3 -3
- package/src/component/shared/TableTotalRecords.vue +9 -10
- package/src/component/shared/Toast.vue +2 -2
- package/src/component/shared/VerticalFilter.vue +2 -50
- package/src/component/shared/query-builder/AddRule.vue +49 -55
- package/src/component/shared/query-builder/ConvertToOdata.js +39 -42
- package/src/component/shared/query-builder/DynamicComponent.vue +16 -15
- package/src/component/shared/query-builder/DynamicComponentList.vue +62 -0
- package/src/component/shared/query-builder/Fields.vue +32 -66
- package/src/component/shared/query-builder/QueryBuilder.vue +12 -12
- 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/template/{ListViewWithHandlerData.vue → ListViewWithDataHandler.vue} +30 -23
- package/src/component/template/{AddEditReport.vue → ReportCreateUpdate.vue} +31 -20
- package/src/component/template/ViewTemplateConfiguration.vue +6 -12
- package/src/component/template/ViewTemplateDocumentView.vue +21 -25
- package/src/component/template/ViewTemplateReportList.vue +39 -57
- package/src/component/template/ViewTemplateReportPreview.vue +238 -354
- package/src/component/template/ViewTemplateReportPreviewCOPIASEGURANCA.vue +497 -0
- package/src/component/template/ViewTemplateSelectOption.vue +60 -0
- package/src/component/template/ViewTemplateWithTable.vue +21 -14
- 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} +17 -17
- package/src/component/value-objects/Person.js +10 -0
- package/src/component/value-objects/{DadosPessoa.vue → Person.vue} +35 -35
- package/src/store/modules/generic.js +17 -11
- package/src/store/modules/report.js +124 -113
- package/src/store/modules/user.js +3 -0
- package/docs/src/component/template/ModeloRelatorioView.drawio +0 -160
- package/src/component/shared/query-builder/ListDynamicComponent.vue +0 -42
- package/src/component/value-objects/DadosPessoa.js +0 -10
- package/src/component/value-objects/Endereco.js +0 -11
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<mxfile host="65bd71144e">
|
|
2
|
+
<diagram id="82UZT3qeIvG22-4x18Pj" name="Page-1">
|
|
3
|
+
<mxGraphModel dx="1138" dy="863" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1200" pageHeight="1920" background="#ffffff" math="0" shadow="0">
|
|
4
|
+
<root>
|
|
5
|
+
<mxCell id="0"/>
|
|
6
|
+
<mxCell id="1" parent="0"/>
|
|
7
|
+
<mxCell id="34" value="" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="2" target="30" edge="1">
|
|
8
|
+
<mxGeometry relative="1" as="geometry">
|
|
9
|
+
<Array as="points"/>
|
|
10
|
+
</mxGeometry>
|
|
11
|
+
</mxCell>
|
|
12
|
+
<mxCell id="38" value="actions:addReport" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontColor=#000000;labelBackgroundColor=#FFFFFF;" parent="34" vertex="1" connectable="0">
|
|
13
|
+
<mxGeometry x="-0.0375" relative="1" as="geometry">
|
|
14
|
+
<mxPoint x="178" y="-79" as="offset"/>
|
|
15
|
+
</mxGeometry>
|
|
16
|
+
</mxCell>
|
|
17
|
+
<mxCell id="70" value="getters:oDataFilter" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=16;fontFamily=Helvetica;fontColor=#0000FF;labelBackgroundColor=#FFFFFF;" parent="34" vertex="1" connectable="0">
|
|
18
|
+
<mxGeometry x="-0.589" relative="1" as="geometry">
|
|
19
|
+
<mxPoint x="202" y="-82" as="offset"/>
|
|
20
|
+
</mxGeometry>
|
|
21
|
+
</mxCell>
|
|
22
|
+
<mxCell id="2" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">ViewTemplateReportPreview</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
23
|
+
<mxGeometry x="174" y="179" width="224" height="85" as="geometry"/>
|
|
24
|
+
</mxCell>
|
|
25
|
+
<mxCell id="26" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" source="4" target="24" edge="1">
|
|
26
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
27
|
+
</mxCell>
|
|
28
|
+
<mxCell id="4" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;InitialReport</font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
29
|
+
<mxGeometry x="40.25" y="-150" width="159.5" height="61" as="geometry"/>
|
|
30
|
+
</mxCell>
|
|
31
|
+
<mxCell id="12" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" source="2" target="10" edge="1">
|
|
32
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
33
|
+
</mxCell>
|
|
34
|
+
<mxCell id="15" value="<span style="background-color: rgb(255 , 255 , 255)"><font color="#000000">props:panel.module</font></span>" style="edgeStyle=none;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" target="13" edge="1">
|
|
35
|
+
<mxGeometry x="0.2693" relative="1" as="geometry">
|
|
36
|
+
<mxPoint x="399" y="222" as="sourcePoint"/>
|
|
37
|
+
<mxPoint as="offset"/>
|
|
38
|
+
</mxGeometry>
|
|
39
|
+
</mxCell>
|
|
40
|
+
<mxCell id="18" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" source="2" target="16" edge="1">
|
|
41
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
42
|
+
</mxCell>
|
|
43
|
+
<mxCell id="21" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" source="2" target="19" edge="1">
|
|
44
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
45
|
+
</mxCell>
|
|
46
|
+
<mxCell id="10" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">ProgressBar</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
47
|
+
<mxGeometry x="544" y="397" width="128" height="59" as="geometry"/>
|
|
48
|
+
</mxCell>
|
|
49
|
+
<mxCell id="76" value="" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fontSize=16;fontColor=#000000;strokeColor=#000000;" parent="1" source="13" target="74" edge="1">
|
|
50
|
+
<mxGeometry x="0.1862" y="-33" relative="1" as="geometry">
|
|
51
|
+
<mxPoint y="1" as="offset"/>
|
|
52
|
+
</mxGeometry>
|
|
53
|
+
</mxCell>
|
|
54
|
+
<mxCell id="77" value="actions:postApi" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontColor=#000000;labelBackgroundColor=#FFFFFF;" parent="76" vertex="1" connectable="0">
|
|
55
|
+
<mxGeometry x="-0.3009" y="-3" relative="1" as="geometry">
|
|
56
|
+
<mxPoint x="25" y="-26" as="offset"/>
|
|
57
|
+
</mxGeometry>
|
|
58
|
+
</mxCell>
|
|
59
|
+
<mxCell id="13" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">ReportCreateUpdate</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
60
|
+
<mxGeometry x="478" y="-58" width="176" height="72" as="geometry"/>
|
|
61
|
+
</mxCell>
|
|
62
|
+
<mxCell id="35" style="html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.7;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontSize=14;fontColor=#000000;strokeColor=#000000;shadow=0;sketch=0;" parent="1" source="16" target="30" edge="1">
|
|
63
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
64
|
+
</mxCell>
|
|
65
|
+
<mxCell id="36" value="getters:fields" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontColor=#000000;labelBackgroundColor=#FFFFFF;" parent="35" vertex="1" connectable="0">
|
|
66
|
+
<mxGeometry x="0.1009" y="-2" relative="1" as="geometry">
|
|
67
|
+
<mxPoint x="30" y="-20" as="offset"/>
|
|
68
|
+
</mxGeometry>
|
|
69
|
+
</mxCell>
|
|
70
|
+
<object label="mutations:updateSelectedFields" placeholders="1" id="39">
|
|
71
|
+
<mxCell style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontColor=#000000;labelBackgroundColor=#FFFFFF;" parent="35" vertex="1" connectable="0">
|
|
72
|
+
<mxGeometry x="-0.1898" y="-1" relative="1" as="geometry">
|
|
73
|
+
<mxPoint x="-11" y="22" as="offset"/>
|
|
74
|
+
</mxGeometry>
|
|
75
|
+
</mxCell>
|
|
76
|
+
</object>
|
|
77
|
+
<mxCell id="16" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">Fields</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
78
|
+
<mxGeometry x="542" y="222" width="128" height="59" as="geometry"/>
|
|
79
|
+
</mxCell>
|
|
80
|
+
<mxCell id="42" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;fontFamily=Helvetica;fontSize=12;fontColor=#ffffff;strokeColor=#000000;" parent="1" source="19" target="40" edge="1">
|
|
81
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
82
|
+
</mxCell>
|
|
83
|
+
<mxCell id="19" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">Rules</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
84
|
+
<mxGeometry x="542" y="305" width="128" height="59" as="geometry"/>
|
|
85
|
+
</mxCell>
|
|
86
|
+
<mxCell id="27" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;" parent="1" source="24" target="2" edge="1">
|
|
87
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
88
|
+
</mxCell>
|
|
89
|
+
<mxCell id="24" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"></p><span data-lucid-type="application/vnd.lucid.text" data-lucid-content="{&#34;t&#34;:&#34;&lt;&lt;methods&gt;&gt; obterTodos()&#34;,&#34;m&#34;:[{&#34;s&#34;:0,&#34;n&#34;:&#34;b&#34;,&#34;v&#34;:true,&#34;e&#34;:12},{&#34;s&#34;:12,&#34;n&#34;:&#34;s&#34;,&#34;v&#34;:20.22222222222222,&#34;e&#34;:24},{&#34;s&#34;:12,&#34;n&#34;:&#34;fc&#34;,&#34;v&#34;:&#34;Regular&#34;,&#34;e&#34;:24},{&#34;s&#34;:12,&#34;n&#34;:&#34;fid&#34;,&#34;v&#34;:2,&#34;e&#34;:24}]}" style="font-size: 13px"><div style="text-align: center"><span style="font-weight: bold">&lt;&lt;props&gt;&gt;</span></div></span><hr><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px">:panel="panel"</p><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px">templateList="templateList"</p><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px">templateReport="templateReport"</p><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
|
|
90
|
+
<mxGeometry x="12.75" y="-3" width="214.5" height="91.75" as="geometry"/>
|
|
91
|
+
</mxCell>
|
|
92
|
+
<mxCell id="29" style="edgeStyle=none;html=1;exitX=0.474;exitY=0.994;exitDx=0;exitDy=0;fontSize=14;fontColor=#FFFFFF;strokeColor=#000000;exitPerimeter=0;" parent="1" source="28" target="4" edge="1">
|
|
93
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
94
|
+
</mxCell>
|
|
95
|
+
<mxCell id="28" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"></p><span data-lucid-type="application/vnd.lucid.text" data-lucid-content="{&#34;t&#34;:&#34;&lt;&lt;methods&gt;&gt; obterTodos()&#34;,&#34;m&#34;:[{&#34;s&#34;:0,&#34;n&#34;:&#34;b&#34;,&#34;v&#34;:true,&#34;e&#34;:12},{&#34;s&#34;:12,&#34;n&#34;:&#34;s&#34;,&#34;v&#34;:20.22222222222222,&#34;e&#34;:24},{&#34;s&#34;:12,&#34;n&#34;:&#34;fc&#34;,&#34;v&#34;:&#34;Regular&#34;,&#34;e&#34;:24},{&#34;s&#34;:12,&#34;n&#34;:&#34;fid&#34;,&#34;v&#34;:2,&#34;e&#34;:24}]}" style="font-size: 13px"><div style="text-align: center"><span style="font-weight: bold"><font color="#000000">&lt;&lt;data&gt;&gt;</font></span></div></span><hr><p style="margin: 0px 0px 0px 8px ; font-size: 14px"><font style="font-size: 14px" color="#000000">panel{},</font></p><p style="margin: 0px 0px 0px 8px ; font-size: 14px"><font style="font-size: 14px" color="#000000">templatList{},</font></p><p style="margin: 0px 0px 0px 8px ; font-size: 14px"><font style="font-size: 14px" color="#000000">templateReport{fields[], rules[]}</font></p><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px"><br></p><p style="text-align: center ; margin: 0px 0px 0px 8px ; font-size: 13px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
|
|
96
|
+
<mxGeometry x="21" y="-329" width="209" height="109.62" as="geometry"/>
|
|
97
|
+
</mxCell>
|
|
98
|
+
<mxCell id="55" value="state:selectedRules" style="edgeStyle=none;html=1;exitX=1;exitY=0.7;exitDx=0;exitDy=0;entryX=0.47;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="30" target="53" edge="1">
|
|
99
|
+
<mxGeometry x="-0.4024" relative="1" as="geometry">
|
|
100
|
+
<mxPoint as="offset"/>
|
|
101
|
+
</mxGeometry>
|
|
102
|
+
</mxCell>
|
|
103
|
+
<mxCell id="61" value="mutations: mountFinalQueryFormatOData" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=16;fontFamily=Helvetica;fontColor=#0000FF;labelBackgroundColor=#FFFFFF;" parent="55" vertex="1" connectable="0">
|
|
104
|
+
<mxGeometry x="0.4049" y="1" relative="1" as="geometry">
|
|
105
|
+
<mxPoint x="31" y="12" as="offset"/>
|
|
106
|
+
</mxGeometry>
|
|
107
|
+
</mxCell>
|
|
108
|
+
<mxCell id="43" value="<font style="font-size: 14px ; background-color: rgb(255 , 255 , 255)" color="#000000">state:report { rules [ ]&nbsp; }</font>" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontFamily=Helvetica;fontSize=12;fontColor=#ffffff;strokeColor=#000000;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="30" target="40" edge="1">
|
|
109
|
+
<mxGeometry x="-0.3053" y="2" relative="1" as="geometry">
|
|
110
|
+
<mxPoint as="offset"/>
|
|
111
|
+
</mxGeometry>
|
|
112
|
+
</mxCell>
|
|
113
|
+
<mxCell id="49" value="props:rules [ ]" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="40" target="44" edge="1">
|
|
114
|
+
<mxGeometry x="0.1075" y="-2" relative="1" as="geometry">
|
|
115
|
+
<mxPoint as="offset"/>
|
|
116
|
+
</mxGeometry>
|
|
117
|
+
</mxCell>
|
|
118
|
+
<mxCell id="51" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="40" target="50" edge="1">
|
|
119
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
120
|
+
</mxCell>
|
|
121
|
+
<mxCell id="40" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">QueryBuilder</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
122
|
+
<mxGeometry x="802" y="305" width="146" height="63" as="geometry"/>
|
|
123
|
+
</mxCell>
|
|
124
|
+
<mxCell id="44" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">SelectRules</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
125
|
+
<mxGeometry x="1090" y="451" width="146" height="63" as="geometry"/>
|
|
126
|
+
</mxCell>
|
|
127
|
+
<mxCell id="52" value="mutations:addSelectedRules" style="edgeStyle=none;html=1;exitX=0.25;exitY=0;exitDx=0;exitDy=0;entryX=0.85;entryY=0.95;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="50" target="30" edge="1">
|
|
128
|
+
<mxGeometry x="-0.2495" y="-1" relative="1" as="geometry">
|
|
129
|
+
<mxPoint as="offset"/>
|
|
130
|
+
</mxGeometry>
|
|
131
|
+
</mxCell>
|
|
132
|
+
<mxCell id="54" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;" parent="1" source="50" target="53" edge="1">
|
|
133
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
134
|
+
</mxCell>
|
|
135
|
+
<mxCell id="50" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">AddRule</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
136
|
+
<mxGeometry x="1090" y="303" width="146" height="63" as="geometry"/>
|
|
137
|
+
</mxCell>
|
|
138
|
+
<mxCell id="57" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="53" target="56" edge="1">
|
|
139
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
140
|
+
</mxCell>
|
|
141
|
+
<mxCell id="58" value="props:rule [ ]" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontFamily=Helvetica;fontColor=#000000;labelBackgroundColor=#FFFFFF;" parent="57" vertex="1" connectable="0">
|
|
142
|
+
<mxGeometry x="-0.1429" relative="1" as="geometry">
|
|
143
|
+
<mxPoint y="1" as="offset"/>
|
|
144
|
+
</mxGeometry>
|
|
145
|
+
</mxCell>
|
|
146
|
+
<mxCell id="53" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">DynamicComponentList</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
147
|
+
<mxGeometry x="1338" y="297.5" width="198" height="74" as="geometry"/>
|
|
148
|
+
</mxCell>
|
|
149
|
+
<mxCell id="66" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=16;fontColor=#0000FF;endArrow=classic;strokeColor=#000000;" parent="1" source="56" target="62" edge="1">
|
|
150
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
151
|
+
</mxCell>
|
|
152
|
+
<mxCell id="67" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=16;fontColor=#0000FF;endArrow=classic;strokeColor=#000000;" parent="1" source="56" target="63" edge="1">
|
|
153
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
154
|
+
</mxCell>
|
|
155
|
+
<mxCell id="68" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=16;fontColor=#0000FF;endArrow=classic;strokeColor=#000000;" parent="1" source="56" target="64" edge="1">
|
|
156
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
157
|
+
</mxCell>
|
|
158
|
+
<mxCell id="69" style="edgeStyle=none;shape=connector;rounded=1;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.006;entryY=0.626;entryDx=0;entryDy=0;entryPerimeter=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=16;fontColor=#0000FF;endArrow=classic;strokeColor=#000000;" parent="1" source="56" target="65" edge="1">
|
|
159
|
+
<mxGeometry relative="1" as="geometry"/>
|
|
160
|
+
</mxCell>
|
|
161
|
+
<mxCell id="56" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">DynamicComponent</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
162
|
+
<mxGeometry x="1660" y="393.5" width="164" height="57.5" as="geometry"/>
|
|
163
|
+
</mxCell>
|
|
164
|
+
<mxCell id="62" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">RadioGroup</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
165
|
+
<mxGeometry x="1993" y="193" width="164" height="57.5" as="geometry"/>
|
|
166
|
+
</mxCell>
|
|
167
|
+
<mxCell id="63" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">CheckBoxGroup</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
168
|
+
<mxGeometry x="1995" y="283" width="164" height="57.5" as="geometry"/>
|
|
169
|
+
</mxCell>
|
|
170
|
+
<mxCell id="64" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">DateTime</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
171
|
+
<mxGeometry x="1995" y="390" width="164" height="57.5" as="geometry"/>
|
|
172
|
+
</mxCell>
|
|
173
|
+
<mxCell id="65" value="<font><font style="font-size: 14px"><font style="font-size: 14px">&lt;</font></font><font face="consolas, courier new, monospace"><span style="font-size: 14px">Select</span></font><span style="font-size: 14px">/&gt;</span></font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
174
|
+
<mxGeometry x="1995" y="503.5" width="164" height="57.5" as="geometry"/>
|
|
175
|
+
</mxCell>
|
|
176
|
+
<mxCell id="72" value="" style="group" parent="1" vertex="1" connectable="0">
|
|
177
|
+
<mxGeometry x="893" y="-51" width="132" height="152" as="geometry"/>
|
|
178
|
+
</mxCell>
|
|
179
|
+
<mxCell id="30" value="" style="shape=datastore;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;labelBackgroundColor=none;fontSize=14;fontColor=#333333;fillColor=#f5f5f5;strokeColor=#666666;" parent="72" vertex="1">
|
|
180
|
+
<mxGeometry width="132" height="152" as="geometry"/>
|
|
181
|
+
</mxCell>
|
|
182
|
+
<mxCell id="71" value="<font color="#000000" style="font-size: 16px">Store:report.js</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="72" vertex="1">
|
|
183
|
+
<mxGeometry x="14" y="75" width="110" height="19" as="geometry"/>
|
|
184
|
+
</mxCell>
|
|
185
|
+
<mxCell id="73" value="" style="group" parent="1" vertex="1" connectable="0">
|
|
186
|
+
<mxGeometry x="793" y="-271" width="132" height="152" as="geometry"/>
|
|
187
|
+
</mxCell>
|
|
188
|
+
<mxCell id="74" value="" style="shape=datastore;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;labelBackgroundColor=none;fontSize=14;fontColor=#333333;fillColor=#f5f5f5;strokeColor=#666666;" parent="73" vertex="1">
|
|
189
|
+
<mxGeometry width="132" height="152" as="geometry"/>
|
|
190
|
+
</mxCell>
|
|
191
|
+
<mxCell id="75" value="<font color="#000000" style="font-size: 16px">Store:generic.js</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="73" vertex="1">
|
|
192
|
+
<mxGeometry x="9" y="75" width="121" height="19" as="geometry"/>
|
|
193
|
+
</mxCell>
|
|
194
|
+
<mxCell id="80" style="edgeStyle=none;html=1;exitX=1;exitY=0.474;exitDx=0;exitDy=0;labelBackgroundColor=#FFFFFF;fontFamily=Helvetica;fontSize=14;fontColor=#000000;strokeColor=#000000;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="75" target="78" edge="1">
|
|
195
|
+
<mxGeometry relative="1" as="geometry">
|
|
196
|
+
<mxPoint x="962" y="-236" as="targetPoint"/>
|
|
197
|
+
</mxGeometry>
|
|
198
|
+
</mxCell>
|
|
199
|
+
<mxCell id="78" value="<font style="font-size: 14px"><font style="font-size: 14px"><font style="font-size: 14px">&lt;<span style="font-family: &#34;consolas&#34; , &#34;courier new&#34; , monospace">ViewTemplateReportList</span></font></font>/&gt;</font>" style="html=1;dropTarget=0;fillColor=#008a00;fontColor=#ffffff;strokeColor=none;rounded=1;" parent="1" vertex="1">
|
|
200
|
+
<mxGeometry x="1143" y="-231" width="224" height="85" as="geometry"/>
|
|
201
|
+
</mxCell>
|
|
202
|
+
<mxCell id="81" value="<font color="#0000cc" style="font-size: 16px">actions:addIInitialReportCustom</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];fontSize=14;fontColor=#000000;labelBackgroundColor=#FFFFFF;" vertex="1" connectable="0" parent="1">
|
|
203
|
+
<mxGeometry x="870.9978490341846" y="42.87588417127821" as="geometry">
|
|
204
|
+
<mxPoint x="-283" y="105" as="offset"/>
|
|
205
|
+
</mxGeometry>
|
|
206
|
+
</mxCell>
|
|
207
|
+
</root>
|
|
208
|
+
</mxGraphModel>
|
|
209
|
+
</diagram>
|
|
210
|
+
</mxfile>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixweb/nixloc-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.127",
|
|
4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": "Fábio Ávila <fabio@nixweb.com.br>",
|
|
6
6
|
"private": false,
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"vue-color": "^2.7.0",
|
|
23
23
|
"vue-currency-filter": "^3.3.0",
|
|
24
24
|
"vue-html2pdf": "^1.8.0",
|
|
25
|
+
"vue-image-crop-upload": "^3.0.3",
|
|
25
26
|
"vue-js-toggle-button": "^1.3.0",
|
|
26
27
|
"vue-json-excel": "^0.3.0",
|
|
27
28
|
"vue-loading-template": "^1.3.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"vue-upload-file": "^1.1.0",
|
|
38
39
|
"vue2-datepicker": "^2.13.0",
|
|
39
40
|
"vue2-editor": "^2.6.6",
|
|
41
|
+
"vuedraggable": "^2.24.3",
|
|
40
42
|
"vuejs-ace-editor": "^1.0.1",
|
|
41
43
|
"vuex": "^3.6.2",
|
|
42
44
|
"vuex-persistedstate": "^4.0.0"
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
:disabled="disabled"
|
|
18
18
|
@click="execute()"
|
|
19
19
|
>
|
|
20
|
-
<i class="title" :class="classIcon" v-if="!isLoading(this.
|
|
21
|
-
<span v-if="!isLoading(this.
|
|
20
|
+
<i class="title" :class="classIcon" v-if="!isLoading(this._key) && classIcon"></i>
|
|
21
|
+
<span v-if="!isLoading(this._key)">{{ title }}</span>
|
|
22
22
|
<vue-loading
|
|
23
|
-
v-if="isLoading(this.
|
|
23
|
+
v-if="isLoading(this._key)"
|
|
24
24
|
type="bubbles"
|
|
25
25
|
color="#fff"
|
|
26
26
|
:size="{ width: '26px', height: '26px' }"
|
|
@@ -35,7 +35,7 @@ import { mapGetters, mapMutations } from "vuex";
|
|
|
35
35
|
export default {
|
|
36
36
|
name: "Button",
|
|
37
37
|
props: {
|
|
38
|
-
|
|
38
|
+
_key: String,
|
|
39
39
|
title: String,
|
|
40
40
|
type: String,
|
|
41
41
|
size: String,
|
|
@@ -43,6 +43,7 @@ export default {
|
|
|
43
43
|
eventData: Object,
|
|
44
44
|
classIcon: String,
|
|
45
45
|
disabled: Boolean,
|
|
46
|
+
params: Object,
|
|
46
47
|
clicked: Function,
|
|
47
48
|
},
|
|
48
49
|
computed: {
|
|
@@ -56,8 +57,8 @@ export default {
|
|
|
56
57
|
name: this.eventName,
|
|
57
58
|
data: this.eventData,
|
|
58
59
|
});
|
|
59
|
-
this.addLoading(this.
|
|
60
|
-
if (this.clicked) this.clicked();
|
|
60
|
+
this.addLoading(this._key);
|
|
61
|
+
if (this.clicked) this.clicked(this.params);
|
|
61
62
|
},
|
|
62
63
|
},
|
|
63
64
|
};
|
|
@@ -39,7 +39,7 @@ export default {
|
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
41
|
mounted() {
|
|
42
|
-
this.selected = this.initialValue;
|
|
42
|
+
if (this.initialValue) this.selected = this.initialValue;
|
|
43
43
|
},
|
|
44
44
|
methods: {
|
|
45
45
|
...mapMutations("validation", ["updateFormDirty"]),
|
|
@@ -54,9 +54,12 @@ export default {
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
watch: {
|
|
57
|
-
selected
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
selected: {
|
|
58
|
+
handler(value) {
|
|
59
|
+
this.$emit("input", value);
|
|
60
|
+
if (this.changed) this.changed(this.params);
|
|
61
|
+
},
|
|
62
|
+
deep: true,
|
|
60
63
|
},
|
|
61
64
|
},
|
|
62
65
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<b-form-checkbox v-model="
|
|
3
|
+
<b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
|
|
4
4
|
{{ title }}
|
|
5
5
|
<Tip :field="field" :formName="formName" />
|
|
6
6
|
</b-form-checkbox>
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
import Tip from "../shared/Tip.vue";
|
|
12
|
+
|
|
13
|
+
import { mapMutations } from "vuex";
|
|
14
|
+
|
|
12
15
|
export default {
|
|
13
16
|
components: { Tip },
|
|
14
17
|
name: "CheckboxSimple",
|
|
@@ -18,9 +21,21 @@ export default {
|
|
|
18
21
|
field: String,
|
|
19
22
|
value: Boolean,
|
|
20
23
|
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
valueLocal: false,
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
...mapMutations("validation", ["updateFormDirty"]),
|
|
31
|
+
},
|
|
21
32
|
watch: {
|
|
22
33
|
value() {
|
|
23
|
-
this
|
|
34
|
+
this.valueLocal = this.value;
|
|
35
|
+
},
|
|
36
|
+
valueLocal() {
|
|
37
|
+
this.$emit("input", this.valueLocal);
|
|
38
|
+
this.updateFormDirty(true);
|
|
24
39
|
},
|
|
25
40
|
},
|
|
26
41
|
};
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
<date-picker
|
|
14
14
|
lang="pt-br"
|
|
15
15
|
:range="range"
|
|
16
|
-
@confirm="
|
|
17
|
-
@change="
|
|
18
|
-
@clear="
|
|
16
|
+
@confirm="executeConfirm"
|
|
17
|
+
@change="executeConfirm"
|
|
18
|
+
@clear="close"
|
|
19
19
|
:confirm="confirm"
|
|
20
20
|
:confirm-text="confirmText"
|
|
21
21
|
:format="format"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
width="100%"
|
|
30
30
|
:placeholder="placeholder"
|
|
31
31
|
:type="type"
|
|
32
|
-
v-model="
|
|
32
|
+
v-model="valueLocal"
|
|
33
33
|
:class="{ 'is-invalid': notifications.length > 0 && formDirty }"
|
|
34
34
|
></date-picker>
|
|
35
35
|
</div>
|
|
@@ -66,30 +66,16 @@ export default {
|
|
|
66
66
|
"confirm",
|
|
67
67
|
"confirmText",
|
|
68
68
|
],
|
|
69
|
-
/* props: {
|
|
70
|
-
title: String,
|
|
71
|
-
field: String,
|
|
72
|
-
fieldTarget: String,
|
|
73
|
-
placeholder: String,
|
|
74
|
-
formName: String,
|
|
75
|
-
required: Boolean,
|
|
76
|
-
format: String,
|
|
77
|
-
type: String,
|
|
78
|
-
value: String,
|
|
79
|
-
range: Boolean,
|
|
80
|
-
confirm: Boolean,
|
|
81
|
-
confirmText: String,
|
|
82
|
-
},*/
|
|
83
69
|
data() {
|
|
84
70
|
return {
|
|
85
71
|
notifications: [],
|
|
86
72
|
formDirty: false,
|
|
87
|
-
|
|
73
|
+
valueLocal: "",
|
|
88
74
|
};
|
|
89
75
|
},
|
|
90
76
|
created() {
|
|
91
77
|
this.validate();
|
|
92
|
-
this.
|
|
78
|
+
this.valueLocal = this.value;
|
|
93
79
|
},
|
|
94
80
|
methods: {
|
|
95
81
|
...mapMutations("validation", [
|
|
@@ -101,24 +87,24 @@ export default {
|
|
|
101
87
|
validate() {
|
|
102
88
|
this.notifications = [];
|
|
103
89
|
|
|
104
|
-
if (this.required && this.
|
|
90
|
+
if (this.required && this.valueLocal.length == 0) {
|
|
105
91
|
var message = `${this.title} não pode ser vazio!`;
|
|
106
92
|
this.notifications.push(message);
|
|
107
93
|
}
|
|
108
94
|
},
|
|
109
|
-
|
|
95
|
+
executeConfirm() {
|
|
110
96
|
if (this.range) {
|
|
111
97
|
let obj = {
|
|
112
98
|
fieldTarget: this.fieldTarget,
|
|
113
|
-
|
|
99
|
+
valueLocal: { start: this.valueLocal[0], end: this.valueLocal[1] },
|
|
114
100
|
};
|
|
115
101
|
this.addFilter(obj);
|
|
116
102
|
}
|
|
117
103
|
},
|
|
118
|
-
|
|
104
|
+
close() {
|
|
119
105
|
let obj = {
|
|
120
106
|
fieldTarget: this.fieldTarget,
|
|
121
|
-
|
|
107
|
+
valueLocal: { start: "", end: "" },
|
|
122
108
|
};
|
|
123
109
|
this.addFilter(obj);
|
|
124
110
|
},
|
|
@@ -127,14 +113,14 @@ export default {
|
|
|
127
113
|
...mapState("validation", ["resetForm", "validations"]),
|
|
128
114
|
},
|
|
129
115
|
watch: {
|
|
130
|
-
|
|
116
|
+
valueLocal() {
|
|
131
117
|
this.validate();
|
|
132
118
|
this.formDirty = true;
|
|
133
119
|
this.updateFormDirty(true);
|
|
134
|
-
this.$emit("input", this.
|
|
120
|
+
this.$emit("input", this.valueLocal);
|
|
135
121
|
},
|
|
136
122
|
value() {
|
|
137
|
-
this.
|
|
123
|
+
this.valueLocal = this.value;
|
|
138
124
|
},
|
|
139
125
|
notifications() {
|
|
140
126
|
let self = this;
|
|
@@ -157,7 +143,7 @@ export default {
|
|
|
157
143
|
},
|
|
158
144
|
resetForm: {
|
|
159
145
|
handler(form) {
|
|
160
|
-
if (form.
|
|
146
|
+
if (form.name == this.formName) this.formDirty = false;
|
|
161
147
|
},
|
|
162
148
|
deep: true,
|
|
163
149
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div class="div-main">
|
|
3
3
|
<label>
|
|
4
4
|
<span class="title">{{ title }}</span>
|
|
5
5
|
<span class="required" v-if="required">*</span>
|
|
@@ -46,9 +46,6 @@ export default {
|
|
|
46
46
|
textoEditor: "",
|
|
47
47
|
customToolbar: [
|
|
48
48
|
["bold", "italic", "underline"],
|
|
49
|
-
[{ list: "ordered" }, { list: "bullet" }],
|
|
50
|
-
[{ align: "" }, { align: "center" }, { align: "right" }, { align: "justify" }],
|
|
51
|
-
[{ header: [false] }],
|
|
52
49
|
],
|
|
53
50
|
};
|
|
54
51
|
},
|
|
@@ -56,7 +53,7 @@ export default {
|
|
|
56
53
|
this.validate();
|
|
57
54
|
},
|
|
58
55
|
methods: {
|
|
59
|
-
...mapMutations("validation", ["addValidation", "removeValidation"]),
|
|
56
|
+
...mapMutations("validation", ["addValidation", "removeValidation", "updateFormDirty"]),
|
|
60
57
|
validate() {
|
|
61
58
|
this.notifications = [];
|
|
62
59
|
|
|
@@ -81,6 +78,7 @@ export default {
|
|
|
81
78
|
this.validate();
|
|
82
79
|
this.formDirty = true;
|
|
83
80
|
this.$emit("input", this.value);
|
|
81
|
+
this.updateFormDirty(true);
|
|
84
82
|
},
|
|
85
83
|
notifications() {
|
|
86
84
|
let self = this;
|
|
@@ -112,6 +110,11 @@ export default {
|
|
|
112
110
|
</script>
|
|
113
111
|
|
|
114
112
|
<style scoped>
|
|
113
|
+
.div-main {
|
|
114
|
+
margin-top: 10px;
|
|
115
|
+
margin-bottom: 10px;
|
|
116
|
+
}
|
|
117
|
+
|
|
115
118
|
.success {
|
|
116
119
|
color: #94aa2a;
|
|
117
120
|
font-size: 14px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
type="file"
|
|
18
18
|
name="myfile"
|
|
19
19
|
ref="file"
|
|
20
|
-
:accept="
|
|
20
|
+
:accept="allowed"
|
|
21
21
|
v-on:change="upload()"
|
|
22
22
|
/>
|
|
23
23
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<i class="fas fa-cloud-download-alt"></i> Baixar
|
|
27
27
|
</button>
|
|
28
28
|
<button class="button small danger" v-if="!loadingAdd" @click="remove()">
|
|
29
|
-
<span v-if="!loadingRemove"
|
|
29
|
+
<span v-if="!loadingRemove">Remover</span>
|
|
30
30
|
<vue-loading
|
|
31
31
|
v-if="loadingRemove"
|
|
32
32
|
type="bubbles"
|
|
@@ -35,27 +35,19 @@
|
|
|
35
35
|
></vue-loading>
|
|
36
36
|
</button>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="div-alert">
|
|
39
|
-
<Alert type="info" v-if="value">
|
|
40
|
-
<span>{{ message }}</span>
|
|
41
|
-
</Alert>
|
|
42
|
-
</div>
|
|
43
38
|
</div>
|
|
44
39
|
</div>
|
|
45
40
|
</template>
|
|
46
41
|
|
|
47
42
|
<script>
|
|
48
|
-
import Alert from "../layout/Alert.vue";
|
|
49
|
-
|
|
50
43
|
import { mapActions } from "vuex";
|
|
51
44
|
|
|
52
45
|
export default {
|
|
53
46
|
name: "FileUpload",
|
|
54
|
-
components: { Alert },
|
|
55
47
|
props: {
|
|
56
48
|
title: String,
|
|
57
|
-
name: String,
|
|
58
49
|
container: String,
|
|
50
|
+
allowed: String,
|
|
59
51
|
accepted: String,
|
|
60
52
|
message: String,
|
|
61
53
|
urlPost: String,
|
|
@@ -186,4 +178,8 @@ export default {
|
|
|
186
178
|
.div-alert {
|
|
187
179
|
margin-top: 15px;
|
|
188
180
|
}
|
|
181
|
+
|
|
182
|
+
.div-image {
|
|
183
|
+
margin-bottom: 10px;
|
|
184
|
+
}
|
|
189
185
|
</style>
|