Cambiata visualizzazione calendario e aggiunto formAttività
|
Before Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 121 KiB |
@@ -1,275 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 28.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 522.92 500" style="enable-background:new 0 0 522.92 500;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{clip-path:url(#SVGID_00000023275264634511008070000003220646107616116611_);fill:#F4D160;}
|
||||
.st1{fill:none;stroke:#FFFFFF;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
||||
.st2{fill:#F4D160;}
|
||||
.st3{fill:#808183;}
|
||||
.st4{fill:#A6A8AA;}
|
||||
.st5{fill:#929496;}
|
||||
.st6{fill:#4E67AD;}
|
||||
.st7{fill:#E6E6E7;}
|
||||
.st8{fill:#FFFFFF;}
|
||||
.st9{fill:#FFFFFF;stroke:#F4D160;stroke-width:2.1553;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
||||
.st10{opacity:0.5;fill:#F4D160;}
|
||||
.st11{fill:#FFFFFF;stroke:#F4D160;stroke-width:1.0776;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
||||
.st12{opacity:0.5;}
|
||||
.st13{fill:#A53A0A;}
|
||||
.st14{fill:#D5652C;}
|
||||
.st15{fill:#BBBCBF;}
|
||||
.st16{font-family:'Rubik-Bold';}
|
||||
.st17{font-size:20.8057px;}
|
||||
.st18{fill:#BC3C15;}
|
||||
.st19{fill:#6D6E70;}
|
||||
.st20{fill:#D35B30;}
|
||||
.st21{fill:#C1451F;}
|
||||
.st22{fill:#434244;}
|
||||
.st23{fill:#F1F1F2;}
|
||||
.st24{fill:#D0D1D3;}
|
||||
.st25{fill:#512D0D;}
|
||||
.st26{fill:#603B16;}
|
||||
.st27{opacity:0.35;fill:#603B16;}
|
||||
.st28{fill:#845225;}
|
||||
</style>
|
||||
<g id="Background">
|
||||
<g>
|
||||
<defs>
|
||||
<path id="SVGID_1_" d="M476.16,235.41c26.1,59.8,17.3,111.85-8.43,147.15c-24.28,33.31-51.72,54.89-106.19,60.71
|
||||
c-55.72,5.95-72.73-19.05-126.95-28.04c-43.3-7.18-78.36,0.75-113.12,20.74c-36.79,21.16-78.39,42.22-97.98,0.42
|
||||
c-36.89-78.73-19.46-172.14-7.55-211.57c15.21-50.36,42.12-81.55,88.98-113.83c41.3-28.45,60.32-34.92,106.35-51.85
|
||||
c16.75-6.16,115.93-27.4,145.63,3.7c36.91,38.65-11.01,52.09,23.15,88.36C416.78,190.2,452.49,181.17,476.16,235.41z"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_00000088812324151204080360000018176712255185552313_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
|
||||
<rect style="clip-path:url(#SVGID_00000088812324151204080360000018176712255185552313_);fill:#F4D160;" width="522.92" height="500"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Design">
|
||||
<g>
|
||||
<g>
|
||||
<path class="st1" d="M152.26,394.1L49.09,413.5c-3.26,0.61-6.39-1.53-7-4.79l-19.4-103.16c-0.61-3.26,1.53-6.39,4.79-7
|
||||
l103.16-19.4c3.26-0.61,6.39,1.53,7,4.79l19.4,103.16C157.66,390.35,155.51,393.49,152.26,394.1z"/>
|
||||
<g>
|
||||
<line class="st1" x1="28.77" y1="309.89" x2="77.83" y2="300.66"/>
|
||||
<line class="st1" x1="31.16" y1="322.57" x2="80.22" y2="313.35"/>
|
||||
<line class="st1" x1="33.54" y1="335.25" x2="82.6" y2="326.03"/>
|
||||
<line class="st1" x1="35.93" y1="347.94" x2="84.99" y2="338.71"/>
|
||||
<line class="st1" x1="38.31" y1="360.62" x2="87.37" y2="351.4"/>
|
||||
<line class="st1" x1="40.69" y1="373.31" x2="89.76" y2="364.08"/>
|
||||
<line class="st1" x1="43.08" y1="385.99" x2="92.14" y2="376.76"/>
|
||||
<line class="st1" x1="45.46" y1="398.67" x2="94.53" y2="389.45"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st1" d="M383.31,329.59l-86.11-60.04c-2.72-1.89-3.38-5.63-1.49-8.35l60.04-86.11c1.89-2.72,5.63-3.38,8.35-1.49
|
||||
l86.11,60.04c2.72,1.89,3.38,5.63,1.49,8.35l-60.04,86.11C389.77,330.82,386.03,331.49,383.31,329.59z"/>
|
||||
<g>
|
||||
<line class="st1" x1="356.91" y1="182.47" x2="397.86" y2="211.03"/>
|
||||
<line class="st1" x1="349.53" y1="193.06" x2="390.48" y2="221.61"/>
|
||||
<line class="st1" x1="342.15" y1="203.65" x2="383.1" y2="232.2"/>
|
||||
<line class="st1" x1="334.77" y1="214.23" x2="375.72" y2="242.79"/>
|
||||
<line class="st1" x1="327.39" y1="224.82" x2="368.34" y2="253.37"/>
|
||||
<line class="st1" x1="320" y1="235.41" x2="360.96" y2="263.96"/>
|
||||
<line class="st1" x1="312.62" y1="245.99" x2="353.57" y2="274.55"/>
|
||||
<line class="st1" x1="305.24" y1="256.58" x2="346.19" y2="285.13"/>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<ellipse transform="matrix(0.1586 -0.9874 0.9874 0.1586 -5.1546 348.5406)" class="st1" cx="201.91" cy="177.29" rx="64.97" ry="64.97"/>
|
||||
<g>
|
||||
<path class="st2" d="M88.19,188.86c0.82-2.05,0.53-3.62-4.15-5.64c-3.81-1.64-5.97-1.19-6.98,0.94c-0.82,0.03-1.6,0.51-1.95,1.32
|
||||
c-0.3,0.69-0.21,1.45,0.16,2.04c-0.25,0.58-0.54,1.25-0.85,1.98c-1.97-0.38-4.57-0.43-5.45,1.6
|
||||
c-0.95,2.21-16.29,41.51-14.42,42.31c0,0,15.54-37.63,16.49-38.2c0.25-0.15,0.47,0.14,0.65,0.64
|
||||
c-4.29,9.98-10.97,25.56-18.07,42.23c-0.76,0.08-1.45,0.55-1.78,1.3c-0.33,0.76-0.19,1.6,0.29,2.21
|
||||
c-13.97,32.86-28.98,68.71-30.24,73.89c-1.72,7.08-0.81,9.63-0.16,10.52l-0.69,1.59c-0.13,0.31,0.01,0.67,0.32,0.8
|
||||
c0.31,0.13,0.67-0.01,0.8-0.32l0.69-1.59c1.09-0.13,3.58-1.23,7.55-7.33c2.9-4.46,18.66-39.89,32.99-72.56
|
||||
c0.88,0.03,1.73-0.46,2.1-1.32c0.37-0.85,0.15-1.8-0.46-2.42c9.78-22.32,18.61-42.73,21.84-50.18c0.8-0.04,1.56-0.52,1.9-1.31
|
||||
C89.15,190.48,88.89,189.47,88.19,188.86z"/>
|
||||
<g>
|
||||
<path class="st3" d="M70.11,184.49c0,0-6.49-2.1-7.77,1.38c-0.83,2.26-13.89,42.37-11.98,43.07c0,0,13.36-38.46,14.28-39.08
|
||||
c0.92-0.62,1.64,4.98,1.64,4.98L70.11,184.49z"/>
|
||||
<path d="M22.66,325.66L22.66,325.66c-0.32-0.12-0.48-0.47-0.36-0.78l1.26-3.44c0.12-0.32,0.47-0.48,0.78-0.36l0,0
|
||||
c0.32,0.12,0.48,0.47,0.36,0.78l-1.26,3.44C23.33,325.61,22.98,325.78,22.66,325.66z"/>
|
||||
<path class="st4" d="M81.32,182.77c0.81-2.21,0.58-3.81-4.38-5.62c-3.98-1.46-6.13-0.83-6.98,1.47
|
||||
c-0.07,0.18-0.31,0.24-0.46,0.4c0,0-45.22,123.74-47.05,133.72c-1.83,9.98,0.94,10.92,0.94,10.92s2.73,1.07,7.76-7.74
|
||||
c5.04-8.81,50.26-132.55,50.26-132.55C81.4,183.16,81.25,182.95,81.32,182.77z"/>
|
||||
<line class="st1" x1="63.29" y1="203.47" x2="56.77" y2="221.67"/>
|
||||
<line class="st1" x1="69.23" y1="186.88" x2="67.04" y2="192.98"/>
|
||||
<path class="st5" d="M81.32,182.77c0.81-2.21,0.58-3.81-4.38-5.62c-2.74-1-4.6-1-5.78-0.16c0.17,0.06,0.32,0.09,0.5,0.16
|
||||
c4.96,1.81,5.19,3.41,4.38,5.62c-0.07,0.18,0.08,0.39,0.1,0.6c0,0-45.22,123.74-50.26,132.55c-1.46,2.56-2.73,4.28-3.79,5.44
|
||||
c0.44,2,1.31,2.3,1.31,2.3s2.73,1.07,7.76-7.74c5.04-8.81,50.26-132.55,50.26-132.55C81.4,183.16,81.25,182.95,81.32,182.77z"/>
|
||||
<path class="st3" d="M59.14,241.47l-9.83-3.59c-1.14-0.42-1.72-1.68-1.31-2.82l0,0c0.42-1.14,1.68-1.73,2.82-1.31l9.83,3.59
|
||||
c1.14,0.42,1.72,1.68,1.31,2.82v0C61.54,241.3,60.28,241.89,59.14,241.47z"/>
|
||||
<path class="st3" d="M79.3,186.32l-9.83-3.59c-1.14-0.42-1.72-1.68-1.31-2.82l0,0c0.42-1.14,1.68-1.72,2.82-1.31l9.83,3.59
|
||||
c1.14,0.42,1.72,1.68,1.31,2.82l0,0C81.7,186.15,80.44,186.74,79.3,186.32z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st2" d="M92.64,244.48l-1.36,3.21c-0.89,2.11-0.82,4.52,0.2,6.56c8.1,16.25,44.33,90.68,55.15,143.31
|
||||
c1.02,4.95,6.37,7.54,10.76,5.23c16.78-8.83,56.12-26.58,108.76-31.33c1.32-0.12,2.59-0.58,3.67-1.37
|
||||
c9.76-7.06,61.57-43.35,105-50.83c4.51-0.78,7.33-5.45,5.94-9.92l-43.3-140.23c-1.26-4.07-5.5-6.31-9.46-5.01l-230.78,76.1
|
||||
C95.17,240.89,93.5,242.45,92.64,244.48z"/>
|
||||
<path class="st6" d="M75.39,225.85l-1.48,3.4c-0.97,2.24-0.89,4.79,0.22,6.97c8.82,17.24,48.25,96.21,60.03,152.07
|
||||
c1.11,5.25,6.93,8,11.71,5.55c18.27-9.37,61.08-28.21,118.37-33.24c1.44-0.13,2.82-0.62,4-1.45c10.62-7.49,67.01-46,114.28-53.93
|
||||
c4.91-0.82,7.97-5.78,6.47-10.53l-47.13-148.8c-1.37-4.32-5.98-6.7-10.29-5.31L80.38,221.32
|
||||
C78.14,222.04,76.32,223.69,75.39,225.85z"/>
|
||||
<path class="st7" d="M329.52,104.75c17.25,43.58,33.21,92.68,45.62,147.04c3.09,13.54,5.83,26.83,8.25,39.86
|
||||
c0.78,4.18-1.95,8.2-6.13,9.02c-2.55,0.5-5.14,1.05-7.76,1.65c-19.93,4.57-37.22,11.17-51.75,18.14
|
||||
C321.67,248.55,325.6,176.65,329.52,104.75z"/>
|
||||
<path class="st7" d="M71.42,223.64c-1.26-2.23-1.32-4.96-0.09-7.21c0.65-1.19,1.39-2.41,2.25-3.64
|
||||
c5.48-7.9,12.57-12.05,16.89-14.09c17.33,61.42,46.66,121.31,63.99,182.73l-10.29,2.13c-3.8,0.78-7.57-1.47-8.66-5.2
|
||||
c-13.83-47.62-31.61-95.37-58.41-144.52C75.22,230.41,73.33,227.01,71.42,223.64z"/>
|
||||
<path class="st8" d="M78.38,210.76l59.71,163.88c2.33,6.39,9.5,9.6,15.79,7.03c13.84-5.65,29.96-11.2,48.18-15.72
|
||||
c22.68-5.62,43.26-8.3,60.61-9.47c2.46-0.17,4.8-1.08,6.72-2.64c16.96-13.74,38.62-28.91,65.23-42.67
|
||||
c15.79-8.16,30.87-14.56,44.71-19.6c6.13-2.23,9.38-8.91,7.32-15.1c-19.4-58.3-38.8-116.6-58.2-174.89
|
||||
c-2.12-6.37-9.05-9.78-15.38-7.55c-13.86,4.87-29.35,11.37-45.65,20.13c-24.75,13.31-44.37,28.05-59.17,40.98
|
||||
c-1.98,1.73-4.47,2.77-7.1,2.94c-17.32,1.1-40.3,4.37-65.95,13.28c-21.29,7.39-38.66,16.67-51.97,25.13
|
||||
C78.47,199.52,76.45,205.45,78.38,210.76z"/>
|
||||
<path class="st9" d="M294.94,297.63c0,0,22.11-19.4,45.78-21.73"/>
|
||||
<path class="st9" d="M305.93,295.95c0,0,14.74-9.31,24.05-11.9"/>
|
||||
<path class="st9" d="M248.58,154.13c0,0,22.11-19.4,45.78-21.73"/>
|
||||
<path class="st9" d="M259.57,152.45c0,0,14.74-9.31,24.05-11.9"/>
|
||||
<path class="st10" d="M148.69,229.01l-19.37,8.66c-3.26,1.46-7.08,0-8.53-3.26l-9.51-21.26c-1.46-3.26,0-7.08,3.26-8.53
|
||||
l19.37-8.66c3.26-1.46,7.08,0,8.53,3.26l9.51,21.26C153.4,223.73,151.94,227.55,148.69,229.01z"/>
|
||||
<circle class="st10" cx="176.22" cy="202.45" r="8.73"/>
|
||||
<path class="st10" d="M171.12,326.85c-0.82,4.75-5.34,7.94-10.09,7.11c-4.75-0.82-7.94-5.34-7.11-10.09
|
||||
c0.82-4.75,5.34-7.94,10.09-7.11C168.75,317.59,171.94,322.1,171.12,326.85z"/>
|
||||
<path class="st10" d="M178.04,332.28c-0.82,4.75-5.34,7.94-10.09,7.11c-4.75-0.82-7.94-5.34-7.11-10.09
|
||||
c0.82-4.75,5.34-7.94,10.09-7.11C175.67,323.02,178.86,327.53,178.04,332.28z"/>
|
||||
|
||||
<ellipse transform="matrix(0.7071 -0.7071 0.7071 0.7071 -81.6645 186.4035)" class="st10" cx="184.18" cy="191.78" rx="12.22" ry="12.22"/>
|
||||
<path class="st9" d="M204.15,299.31c0,0,17.3-9.31,34.32-7.24"/>
|
||||
<path class="st9" d="M206.12,308.15c0,0,17.3-9.31,34.32-7.24"/>
|
||||
<path class="st9" d="M208.09,316.99c0,0,17.3-9.31,34.32-7.24"/>
|
||||
<path class="st11" d="M205.18,157.86c0,0,50.65,107.44,61.28,198.39"/>
|
||||
<g>
|
||||
<path class="st9" d="M141.37,251.05c0,0,28.66-19.61,59.37-20.71"/>
|
||||
<path class="st9" d="M144.22,260.55c0,0,28.66-19.61,59.37-20.71"/>
|
||||
<path class="st9" d="M147.06,270.06c0,0,28.66-19.61,59.37-20.71"/>
|
||||
<path class="st9" d="M149.9,279.56c0,0,28.66-19.61,59.37-20.71"/>
|
||||
<path class="st9" d="M152.74,289.06c0,0,28.66-19.61,59.37-20.71"/>
|
||||
<path class="st9" d="M155.59,298.57c0,0,28.66-19.61,59.37-20.71"/>
|
||||
</g>
|
||||
<g class="st12">
|
||||
<g>
|
||||
<path class="st2" d="M335.06,177.05l4.9,18.39c0.7,2.64-1.06,4.62-3.95,4.41l-35.97-2.57l-44.37-3.16l36.86-24.78l36.03,2.56
|
||||
c1.95,0.14,3.9,1.23,5.18,2.74C334.37,175.37,334.84,176.2,335.06,177.05z"/>
|
||||
<path class="st2" d="M339.08,211.36l-29.94-2.14l-36.87,24.8l74.26,5.3c2.89,0.21,4.65-1.77,3.95-4.41l-4.9-18.38
|
||||
C344.88,213.87,341.97,211.56,339.08,211.36z"/>
|
||||
<path class="st2" d="M339.42,212.61l-86.04,57.8l21.8,2.32l-3.62,18.48l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38
|
||||
C344.34,211.83,341.82,210.99,339.42,212.61z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st13" d="M334.26,173.47l4.9,18.39c0.7,2.64-1.06,4.62-3.95,4.41l-35.97-2.57l-44.37-3.16l36.86-24.78l36.03,2.56
|
||||
c1.95,0.14,3.9,1.23,5.18,2.74C333.56,171.79,334.03,172.62,334.26,173.47z"/>
|
||||
<path class="st10" d="M251.14,214.59l86.04-57.8l-21.8-2.32l3.62-18.48l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38
|
||||
C246.22,215.37,248.74,216.2,251.14,214.59z"/>
|
||||
<path class="st13" d="M338.28,207.78l-29.94-2.14l-36.87,24.8l70.8,4.47c2.89,0.21,7.57-2.99,6.86-5.63l-4.35-16.34
|
||||
C344.07,210.29,341.16,207.98,338.28,207.78z"/>
|
||||
<path class="st10" d="M261.61,253.89l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38c-0.7-2.64-3.22-3.48-5.62-1.86
|
||||
l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38C256.69,254.67,259.21,255.5,261.61,253.89z"/>
|
||||
<path class="st14" d="M338.61,209.03l-86.04,57.8l21.8,2.32l-3.62,18.48l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38
|
||||
C343.53,208.25,341.01,207.41,338.61,209.03z"/>
|
||||
<path class="st14" d="M250.33,211.01l86.04-57.8l-21.8-2.32l3.62-18.48l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38
|
||||
C245.41,211.79,247.93,212.62,250.33,211.01z"/>
|
||||
<path class="st14" d="M260.8,250.31l75.31-50.65c2.4-1.61,3.78-5.07,3.07-7.71l-4.9-18.38c-0.7-2.64-3.22-3.48-5.62-1.86
|
||||
l-75.31,50.65c-2.4,1.61-3.78,5.07-3.07,7.71l4.9,18.38C255.88,251.09,258.4,251.92,260.8,250.31z"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 268.682 189.8981)" class="st15 st16 st17">LOG</text>
|
||||
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 269.7597 188.8204)" class="st15 st16 st17">LOG</text>
|
||||
</g>
|
||||
<text transform="matrix(0.8508 -0.5255 0.5255 0.8508 269.7597 188.8204)" class="st8 st16 st17">LOG</text>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 279.1401 231.4013)" class="st15 st16 st17">BOOK</text>
|
||||
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 280.2178 230.3236)" class="st15 st16 st17">BOOK</text>
|
||||
</g>
|
||||
<text transform="matrix(0.8302 -0.5575 0.5575 0.8302 280.2178 230.3236)" class="st8 st16 st17">BOOK</text>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st2" d="M341.09,406.33l-1.31-0.83c0.03-1.01-0.59-3.42-5.43-7.83c-1.09-1-4.65-3.51-9.81-7
|
||||
c-0.52-0.88-1.26-1.69-2.19-2.33l-28.36-18.92c-1.31-0.9-2.68-1.36-3.93-1.39c-5.01-3.24-10.12-6.54-15.15-9.78
|
||||
c0.04-0.71-0.28-1.42-0.91-1.81c-0.62-0.39-1.36-0.37-1.96-0.03c-13.61-8.75-26.37-16.9-34.55-22.11
|
||||
c-0.12-0.47-0.11-0.81,0.15-0.83c0.99-0.08,31.37,19.92,31.37,19.92c0.96-1.6-30.12-22.97-31.93-24.12
|
||||
c-1.66-1.06-3.54,0.38-4.79,1.72c-0.61-0.39-1.15-0.73-1.63-1.04c-0.03-0.65-0.35-1.26-0.91-1.62c-0.66-0.42-1.47-0.37-2.08,0.05
|
||||
c-1.25-0.74-2.5-0.58-3.79,0.67l-3.16-2.01c-1.02-0.65-2.37-0.31-3.01,0.77l-0.75,1.27c-0.64,1.07-0.33,2.47,0.69,3.12l3.1,1.97
|
||||
c-0.67,1.99-0.04,2.92,1.15,3.72c-0.2,0.83,0.11,1.73,0.85,2.2c0.65,0.41,1.44,0.37,2.05-0.03c6.12,3.88,22.89,14.51,41.32,26.07
|
||||
c-0.14,0.79,0.19,1.62,0.88,2.07c0.7,0.45,1.57,0.36,2.2-0.13c5.1,3.2,10.28,6.44,15.37,9.61c0.59,1.22,1.6,2.34,2.94,3.12
|
||||
c0,0,0,0,0,0c0,0,0.01,0,0.01,0.01c0,0,0.15,0.08,0.39,0.23l28.85,16.74c0.52,0.3,1.07,0.51,1.61,0.67
|
||||
c5.95,3.56,10.16,5.97,11.61,6.57c5.99,2.47,8.36,1.96,9.22,1.47l1.31,0.83c0.25,0.16,0.59,0.08,0.75-0.19
|
||||
C341.42,406.84,341.34,406.49,341.09,406.33z"/>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st18" d="M234.59,327.36c0,0,3.67-5.08,6.37-3.16c1.75,1.24,31.67,24.2,30.64,25.75c0,0-29.3-21.55-30.29-21.52
|
||||
c-0.99,0.03,1.33,4.61,1.33,4.61L234.59,327.36z"/>
|
||||
<path d="M340.98,407.33L340.98,407.33c0.17-0.26,0.11-0.61-0.13-0.78l-2.66-1.89c-0.25-0.17-0.58-0.11-0.76,0.15l0,0
|
||||
c-0.17,0.26-0.11,0.61,0.13,0.78l2.66,1.89C340.47,407.65,340.81,407.59,340.98,407.33z"/>
|
||||
<path class="st19" d="M230.01,327.63l-0.82,1.23c-0.69,1.04-2.06,1.31-3.04,0.61l-4.74-3.37c-0.99-0.7-1.23-2.11-0.53-3.15
|
||||
l0.82-1.23c0.69-1.04,2.06-1.31,3.04-0.61l4.74,3.37C230.46,325.19,230.7,326.59,230.01,327.63z"/>
|
||||
<path class="st20" d="M225.53,332.13c-1.71-1.22-2.36-2.54,0.34-6.58c2.17-3.24,4.06-3.94,5.84-2.67
|
||||
c0.14,0.1,0.35,0.01,0.54,0.05c0,0,95.91,68.13,102.31,74.61c6.41,6.48,4.86,8.68,4.86,8.68s-1.45,2.27-9.6-1.59
|
||||
c-8.16-3.87-104.06-72-104.06-72C225.67,332.47,225.67,332.23,225.53,332.13z"/>
|
||||
<path class="st21" d="M332.26,402.21c-8.16-3.87-104.06-72-104.06-72c-0.1-0.17-0.1-0.4-0.24-0.5
|
||||
c-1.71-1.22-2.36-2.54,0.34-6.58c0.1-0.15,0.2-0.29,0.3-0.43c-0.86,0.49-1.77,1.42-2.73,2.86c-2.7,4.04-2.06,5.36-0.34,6.58
|
||||
c0.14,0.1,0.14,0.33,0.24,0.5c0,0,95.91,68.13,104.06,72c8.16,3.87,9.6,1.59,9.6,1.59s0.35-0.52,0.01-1.78
|
||||
C338,404.39,335.74,403.86,332.26,402.21z"/>
|
||||
<line class="st1" x1="255.28" y1="342.84" x2="260.61" y2="346.76"/>
|
||||
<line class="st1" x1="237.93" y1="330.07" x2="251.85" y2="340.32"/>
|
||||
<path class="st18" d="M271.56,364.06l5.36-8.01c0.62-0.93,0.41-2.19-0.48-2.81l0,0c-0.88-0.63-2.1-0.38-2.72,0.54l-5.36,8.01
|
||||
c-0.62,0.93-0.41,2.19,0.48,2.81l0,0C269.72,365.23,270.94,364.99,271.56,364.06z"/>
|
||||
<path class="st18" d="M228.81,333.7l5.36-8.01c0.62-0.93,0.41-2.19-0.48-2.81l0,0c-0.88-0.63-2.1-0.38-2.72,0.54l-5.36,8.01
|
||||
c-0.62,0.93-0.41,2.19,0.48,2.81l0,0C226.97,334.87,228.19,334.63,228.81,333.7z"/>
|
||||
</g>
|
||||
<path class="st22" d="M324.67,395.96l0.46-0.69c1.51-2.25,0.6-5.63-2.06-7.67l-27.35-20.37c-2.83-2.17-6.08-2.23-7.69,0.17
|
||||
l-1.9,2.84c-1.61,2.41-0.45,6.06,2.54,8.01L317,396.72C319.79,398.54,323.17,398.21,324.67,395.96z"/>
|
||||
<path class="st19" d="M288.29,376.25l5.38-8.46c0.46-0.73,1.45-0.92,2.15-0.41c4.82,3.54,21.64,16.04,26.14,19.38
|
||||
c0.63,0.47,0.79,1.34,0.37,2l-4.31,6.78c-0.45,0.7-1.38,0.91-2.08,0.45c-5.53-3.6-27.25-17.75-27.25-17.75
|
||||
c0,0-0.01-0.01-0.01-0.01C288.01,377.82,287.87,376.92,288.29,376.25z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<circle class="st2" cx="436.14" cy="340.38" r="66.73"/>
|
||||
<circle class="st8" cx="444.06" cy="327.42" r="66.73"/>
|
||||
<path class="st7" d="M450.9,390.55c-36.85,0-66.73-29.88-66.73-66.73c0-24.21,12.9-45.41,32.2-57.11
|
||||
c-23.03,10.52-39.04,33.74-39.04,60.71c0,36.85,29.88,66.73,66.73,66.73c12.64,0,24.46-3.52,34.53-9.62
|
||||
C470.15,388.38,460.78,390.55,450.9,390.55z"/>
|
||||
<circle class="st23" cx="444.06" cy="327.42" r="51.99"/>
|
||||
<path class="st7" d="M509.05,332.78h-38.18c-2.96,0-5.37-2.4-5.37-5.37l0,0c0-2.96,2.4-5.37,5.37-5.37h38.18
|
||||
c2.96,0,5.37,2.4,5.37,5.37l0,0C514.42,330.38,512.01,332.78,509.05,332.78z"/>
|
||||
<path class="st24" d="M512.85,331.21c-8.35-0.23-15.07-2.79-20.08-5.72c-3.95-2.31-8.49-3.43-13.07-3.43h-8.6
|
||||
c-2.8,0-5.31,2.05-5.57,4.84c-0.31,3.2,2.2,5.89,5.34,5.89h38.18C510.54,332.78,511.88,332.18,512.85,331.21z"/>
|
||||
<circle class="st7" cx="444.06" cy="327.42" r="43.47"/>
|
||||
<circle class="st25" cx="444.06" cy="327.42" r="37.98"/>
|
||||
<circle class="st26" cx="444.06" cy="327.42" r="32.1"/>
|
||||
<circle class="st27" cx="444.06" cy="327.42" r="30.06"/>
|
||||
<g>
|
||||
<path class="st28" d="M428.11,303.6c-5.07,2.75-10.72,8.73-11.95,21.24c-1.42,14.45,8.1,20.34,10.08,18.36
|
||||
c1.98-1.98-6.6-12.75,1.08-26.16c5.76-10.05,13.45-7.29,12.84-12.84C439.62,299.31,430.61,302.24,428.11,303.6z"/>
|
||||
<path class="st28" d="M428.73,348.45c0.22,0.22,11.52,8.19,12.87,4.59S425.76,345.48,428.73,348.45z"/>
|
||||
<path class="st28" d="M460.77,314.07c-4.26-4.26-12.69-7.11-23.22-0.54c-11.78,7.35-10.42,31.45,6.03,32.22
|
||||
c10.1,0.47,12.43-10.27,3.73-6.45c-1.57,0.69-5.34,2.02-7.12,0.24c-5.47-5.47,0.06-11.5,6.54-12.12
|
||||
c4.29-0.41,10.81,3.17,13.23,1.18C464.4,324.96,463.71,317.01,460.77,314.07z"/>
|
||||
<path class="st28" d="M470.4,320.82c1.23,1.23,2.25,5.67,0,14.85c-2.88,11.73-13.5,15.48-12.87,12.24s5.6-1.56,9.9-15.75
|
||||
C469.23,326.22,469.18,319.61,470.4,320.82z"/>
|
||||
<path class="st28" d="M452.88,301.98c-0.26-0.14-6.89-1.02-6.42,1.02c0.48,2.04,13.08,5.04,12.42,2.58
|
||||
C458.22,303.12,454.42,302.82,452.88,301.98z"/>
|
||||
<path class="st28" d="M463.13,308.46c-0.22-0.11-2.48-1.11-0.59,0.78c1.89,1.89,5.58,5.4,5.16,3.42
|
||||
C467.28,310.68,464.53,309.14,463.13,308.46z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB |
@@ -1,221 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 28.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 401 267" style="enable-background:new 0 0 401 267;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#E6E3FD;}
|
||||
.st1{fill:#C1BBF2;}
|
||||
.st2{fill:#F9B1D9;}
|
||||
.st3{fill:#59CF90;}
|
||||
.st4{fill:#42976B;}
|
||||
.st5{fill:#FDCB9A;}
|
||||
.st6{fill:#4F4E4D;}
|
||||
.st7{fill:#D67CC0;}
|
||||
.st8{fill:#E2F4EB;}
|
||||
.st9{fill:#E5B88D;}
|
||||
.st10{fill:#333233;}
|
||||
.st11{fill:#43966C;}
|
||||
.st12{fill:#BE70AC;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M75.45,258.94c0.61-1.21-58.33-84.42-62.09-91.41c4.02-6.74,5.65-8.75,8.58-12.54
|
||||
c10.91-14.09,26.76-21.15,44.1-24.71c7.94-1.63,16.13-0.94,24.22-0.96c1.25,0,2.13,0.62,2.9,1.47
|
||||
c10.29,11.4,23.97,16.05,38.43,18.71c10.85,2,21.82,3.03,32.92,3.23c14.84,0.27,29.44-0.59,43.61-5.3c3.38-1.12,6.95-1.84,9.98-3.9
|
||||
c1.09,1.08,1.77,2.23,0.68,3.71c-6.9,3.04-14.48,3.4-21.63,5.45c-8.7,0.65-16.61,2.62-20.2,11.92c-0.1,0.23-0.14,0.47-0.11,0.72
|
||||
c0,0,0,0,0,0c-2.82,3.66-2.06,7.87-0.78,11.54c2.59,7.44,8.93,12.44,13.44,18.65c2.37,3.26,5.53,5.97,7.72,9.44
|
||||
c2.02,14.08,4.03,28.15,6.05,42.23c-1.47,0.96-3.2,1.03-4.82,1.5c-3.16,0.91-6.36,1.96-7.39,5.71c-0.8,1.46-0.92,3.03-0.73,4.65
|
||||
C183.23,258.99,86.08,258.88,75.45,258.94z"/>
|
||||
<path class="st0" d="M263.13,111.31c2.8-0.35,4.55-2.49,6.58-4.05c10.05-7.73,21-13.74,33.4-16.58c8.34-1.91,16.84-2.97,25.49-2.72
|
||||
c3.3,0.1,5.34,2.05,7.46,3.79c14.91,12.2,27.96,26.12,38.15,42.55c11.52,18.57,19.01,38.67,22.43,60.26
|
||||
c1.86,11.72,2.49,23.43,0.13,35.19c-1.89,9.41-6.2,17.17-14.43,22.45c-0.11-1.88-1.35-3.09-2.51-4.4
|
||||
c-3.11-3.5-6.04-7.17-9.25-10.58c-3.53-3.75-6.25-8.25-10.52-11.31c-0.14-0.94-0.68-1.48-1.61-1.63c-0.86-2.37-2.62-4.07-4.26-5.89
|
||||
c-2.28-2.51-4.77-4.88-6.32-7.97c6.82-4.35,11.18-10.26,11.26-18.63c0.09-8.98,0.18-17.96-0.05-26.93
|
||||
c-0.23-8.88-4.43-15.37-12.67-19.03c-13.18-7.22-30.38,3.98-30.09,19.04c0.06,2.87-0.04,5.74-0.06,8.62
|
||||
c-1.14,0.05-1.82-0.73-2.47-1.47c-6.13-6.98-12.26-13.96-18.36-20.96c-6.42-7.37-12.41-15.12-19.51-21.89
|
||||
C271.65,123.22,267.39,117.26,263.13,111.31z"/>
|
||||
<path class="st1" d="M275.91,129.17c7.1,6.76,13.09,14.52,19.51,21.89c6.1,7,12.23,13.98,18.36,20.96
|
||||
c0.65,0.74,1.33,1.52,2.47,1.47c0.09,6.26,0.18,12.53,0.27,18.79c-0.32,2.54,0.26,4.88,1.29,7.23c3.51,8.03,9.65,12.36,18.25,13.36
|
||||
c0.23,3.84-0.27,7.72,0.59,11.54c-5.69,0.02-11.38,0.01-17.07,0.07c-3.66,0.04-5.4,2.21-4.63,5.76c0.51,2.32,3.01,2.04,4.42,3.2
|
||||
c0.02,0.26,0.05,0.52,0.07,0.78c0.02,1.85-0.4,3.84,0.14,5.52c2.03,6.27,1.49,12.88,2.83,19.22c0,0-0.02,0.06-0.02,0.06
|
||||
c-0.26,0.01-0.51,0.01-0.77,0.02c-0.74,0-1.48,0-2.22,0c-19.5,0-39,0-58.5,0c-0.48-0.02-0.96-0.03-1.44-0.05
|
||||
c-0.04-1.52-0.08-3.03-0.11-4.55c0.04-0.24,0.03-0.48,0-0.72c0.01-3.85,0.11-7.71,0.01-11.56c-0.11-4.07-2.3-6.67-5.8-7.23
|
||||
c-0.11-0.74-0.01-1.61-0.38-2.19c-3.21-5.14-5.52-10.77-9.07-15.73c-3.54-4.95-6.69-10.18-9.9-15.35
|
||||
c-3.98-6.42-7.87-12.91-11.76-19.39c-0.74-1.23-0.91-2.46,0.95-2.79c1.37-0.24,2.13-1.82,3.68-1.56c2.46,4.74,6.12,5.67,10.8,3.42
|
||||
c0.54-0.26,1.22-0.2,1.83-0.34c12.39-2.99,24.57-6.52,34.58-14.95c6.31-5.31,8.74-12.17,7.55-20.32c-0.13-0.87-0.58-1.33-1.41-1.48
|
||||
c0.49-3.11-0.9-5.65-2.28-8.28C277.03,133.85,275.39,131.84,275.91,129.17z"/>
|
||||
<path class="st2" d="M275.91,129.17c-0.51,2.66,1.13,4.68,2.22,6.78c1.37,2.63,2.76,5.17,2.28,8.28c-0.02,0.24-0.06,0.48-0.1,0.72
|
||||
c-1.46-0.06-2.49-1.03-3.68-1.68c-7.59-4.14-15.57-6.59-24.29-4.75c-5.84,1.23-11.53,3.09-17.28,4.66
|
||||
c-5.36,1.46-10.37,4.43-16.19,4.01c1.09-1.48,0.41-2.63-0.68-3.71c-0.27-0.74-0.54-1.47-0.81-2.21
|
||||
c-3.64-7.51-9.06-13.68-14.82-19.58c5.45-4.67,11.56-8.94,12.47-16.82c0.2-1.69,1.95-0.82,1.94-2.37
|
||||
c-7.6-0.82-15.19-1.79-22.8-2.37c-2.97-0.23-6-2.11-9.01-0.09c-2.21-1.91-4.96-2.37-7.69-3.04c-3.04-0.75-6.94-0.17-8.05-4.47
|
||||
c0.8-0.15,1.34-0.54,1.42-1.44c0.55-6.45,2.44-12.81,1.42-19.38c3.56-1.91,7.66-1.92,11.4-3.18c0.51-0.02,1.01-0.05,1.52-0.07
|
||||
c9.43-1.54,18.73-5.56,28.43-1.36c0.13,0.1,0.26,0.2,0.39,0.3c-0.1-0.13-0.21-0.25-0.31-0.38c-0.41-0.85-1.17-1.18-2.01-1.52
|
||||
c-4.3-1.7-8.63-1.94-13.15-0.88c-1.89,0.45-4.16,0.96-3.16-2.77c0.65-2.41,1.56-4.93,1.1-7.57c0.97-0.98,1.93-1.97,2.9-2.95
|
||||
c5.73,1.1,11.9,0.13,16.86,4.68c4.59,4.2,9.01,8.53,13.15,13.15c8.22,9.18,14.55,19.84,22.77,29.01
|
||||
c3.44,3.84,5.87,8.56,10.15,11.66c0.28,0.49,0.55,0.98,0.83,1.48C267.39,117.26,271.65,123.22,275.91,129.17z M215.2,68.89
|
||||
c0.5,0.37,0.84,0.79,1.26,0.89c0.73,0.17,0.83-0.43,0.56-0.87c-0.22-0.36-0.7-0.59-1.12-0.76
|
||||
C215.81,68.11,215.51,68.56,215.2,68.89z"/>
|
||||
<path class="st3" d="M83.81,230.47c-2.43,6.17-16.85,31.11-29.75,19.48c-20.03-18.07-45.38-73.65-42.98-78.68
|
||||
c0.87-1.82,1.37-2.44,2.37-3.8c5.71,0.04,11.39-0.84,17.16-0.11c5.36,0.67,10.46,2.06,15.5,3.85c2.68,0.95,4.52,2.22,2.48,5.88
|
||||
c5.25-4.27,8.45-0.25,11.7,2.37C76.51,192.57,84.98,209.31,83.81,230.47z"/>
|
||||
<path class="st4" d="M83.62,230.47c0.15,8.86-2.55,16.99-6.35,24.84c-0.59,1.22-1.21,2.42-1.82,3.63
|
||||
c-11.47,0.76-21.95-2.7-32.13-7.49c-4.69-3.26-13.13-8.22-19.01-14.36c-4.35-3.87-6.68-7.73-9.52-11.17
|
||||
c-8.86-15.57-11.01-32.88-5.99-49.22c0.58-1.87,1.29-3.48,2.28-5.44c3.04,0.56,6.08,1.1,9.11,1.68c2.15,0.41,3.89,0.9,3.77,3.91
|
||||
c-0.08,2.07,1.14,4.15,3.54,4.75c2.05,0.51,3.97,0.12,5.53-1.43c3.05-3.01,6.05-2.27,7.25,1.86c0.64,2.21,2.21,3.34,4.19,2.55
|
||||
c2.42-0.97,4.21-0.02,5.86,1.2c8.16,6,15.5,12.83,21.46,21.11C77.03,214.14,80.35,222.28,83.62,230.47z M65.04,228.2
|
||||
c-0.01-3.15-2-5.23-4.98-5.19c-2.89,0.04-4.82,2.03-4.82,4.97c0,3.13,2.05,5.42,4.88,5.46C63.07,233.49,65.05,231.38,65.04,228.2z
|
||||
M71.78,239.62c-0.06-1.59-0.94-2.91-2.81-3.03c-1.87-0.13-3.1,1.01-3.11,2.9c-0.02,1.9,1.19,2.89,3.07,3
|
||||
C70.74,242.58,71.72,241.74,71.78,239.62z M63.24,246.18c-0.25-0.97-0.88-1.45-1.85-1.32c-0.78,0.1-1.41,0.59-1.33,1.44
|
||||
c0.1,1.01,0.83,1.46,1.8,1.32C62.64,247.51,63.19,247.05,63.24,246.18z"/>
|
||||
<path class="st0" d="M202.56,121.69c5.76,5.91,11.19,12.07,14.82,19.58c-9.63,3.33-19.27,6.57-29.49,7.75
|
||||
c-9.79,1.12-19.5,1.62-29.37,0.7c-8.66-0.81-17.29-1.69-25.83-3.23c-12.23-2.21-23.94-5.81-33.74-13.93
|
||||
c-0.82-0.68-2.22-1.37-1.81-2.56c0.45-1.31,1.97-0.63,3.01-0.69c6.59-0.35,13.17,0.39,19.78-0.66c10.56-1.68,16.08-8.46,19.48-17.8
|
||||
c2.45-6.75,4.16-13.7,6.05-20.61c4.97,0.86,9.98,0.94,15.01,0.79c2.79,1.66,5.91,1.38,8.95,1.5c1.11,4.3,5.01,3.72,8.05,4.47
|
||||
c2.72,0.67,5.47,1.13,7.69,3.04C189.49,108.44,196.68,114.53,202.56,121.69z"/>
|
||||
<path class="st0" d="M262.3,109.83c-4.28-3.1-6.7-7.82-10.15-11.66c-8.22-9.16-14.55-19.83-22.77-29.01
|
||||
c-4.14-4.63-8.57-8.95-13.15-13.15c-4.96-4.54-11.12-3.57-16.86-4.68c-0.02-0.45-0.03-0.9-0.05-1.35
|
||||
c1.94-4.36,2.32-9.14,3.71-13.65c11.28-0.13,22.17,2.29,33.01,5.08c14.1,3.62,27.64,8.92,40.9,14.75
|
||||
c13.52,5.94,26.39,13.29,38.88,21.23c3.41,2.16,6.8,4.34,10.67,7.66c-8.71-0.3-16.24,1.06-23.68,2.71
|
||||
c-12.87,2.87-24.09,9.25-34.45,17.22C266.32,106.55,263.69,107.43,262.3,109.83z"/>
|
||||
<path class="st5" d="M160.47,91.02c-5.02,0.15-10.04,0.07-15.01-0.79c-5.13-1.21-10.3-2.22-15.41-3.54
|
||||
c-5.62-1.45-11.15-3.09-16.47-5.34c-6.39-2.7-12.68-5.57-19.8-5.65c0.47-0.27,0.95-0.54,1.97-1.12c-1.86,0-3.14,0-4.42,0
|
||||
c-0.47-0.03-0.94-0.05-1.42-0.08c-2.45-1.59-5.21-2.69-7.23-4.97c-2.44-2.75-5.66-4.36-9.09-5.54c-3.28-1.12-6.57-2.2-9.85-3.3
|
||||
c-1.17-0.39-2.48-0.65-2.32-2.35c6-0.24,11.79,1.33,17.6,2.33c16.82,2.9,33.64,5.58,50.71,6.55c7.52,0.43,14.98,1.81,22.47,2.76
|
||||
c6.09,1.93,12.45,1.36,18.68,1.94C170.54,80,166.86,86.25,160.47,91.02z"/>
|
||||
<path class="st6" d="M203.04,36.34c-1.39,4.51-1.77,9.29-3.71,13.64c-0.68,0.3-1.34,0.67-2.04,0.89c-2.34,0.75-4.77,1.1-6.67-0.79
|
||||
c-1.98-1.97-1.46-4.14-0.14-6.44c1.2-2.12,1.03-4.62,0.5-6.94c-0.5-2.18-2.23-3.45-4.41-3.25c-2.06,0.19-2.14,2.15-2.22,3.77
|
||||
c-0.1,2.11-0.04,4.23-0.1,6.35c-0.02,0.61-0.23,1.32-0.91,1.45c-0.72,0.14-1.26-0.48-1.3-1.07c-0.34-4.34-4.93-6.03-6.07-9.86
|
||||
c-0.53-2.02-1.71-3.16-3.92-3.21c-2.34-0.05-4.67-0.28-7-0.43c-9.58-2.12-13.03-8.39-9.09-16.46c1.5-3.08,3.86-4.78,7.24-3.6
|
||||
c4.47,1.56,8.43,0.57,12.63-1.11c10.67-4.27,15.21-2.64,21.31,7.26c0.51,0.83,1.01,0.81,1.76,0.91c3.87,0.53,5.44,2.36,5.25,6.59
|
||||
C203.92,28.16,203.41,32.25,203.04,36.34z"/>
|
||||
<path class="st5" d="M175.94,34.1c1.14,3.82,5.73,5.51,6.07,9.86c0.05,0.59,0.58,1.21,1.3,1.07c0.68-0.13,0.9-0.84,0.91-1.45
|
||||
c0.06-2.11,0-4.23,0.1-6.35c0.08-1.62,0.16-3.58,2.22-3.77c2.18-0.2,3.91,1.06,4.41,3.25c0.53,2.31,0.71,4.82-0.5,6.94
|
||||
c-1.31,2.31-1.84,4.48,0.14,6.44c1.9,1.89,4.33,1.54,6.67,0.79c0.7-0.23,1.36-0.59,2.04-0.89c0.01,0.45,0.03,0.9,0.05,1.36
|
||||
c-0.97,0.98-1.93,1.97-2.9,2.95c-3.11,1.64-4.87,4.76-7.54,6.88c-1.26-0.81-1.17-3.58-3.18-2.96c-2.7,0.83-5.63-0.07-8.18,1.37
|
||||
c-5.43-0.65-12,2.52-15.52-4.6c-0.02-0.44-0.04-0.88-0.06-1.32c0.19-0.28,0.38-0.56,0.57-0.84c0.62-6.27,0.19-12.67,2.23-18.78
|
||||
C168.5,34.63,172.22,35.19,175.94,34.1z"/>
|
||||
<path class="st1" d="M360.05,225.92c4.27,3.06,6.99,7.57,10.52,11.31c3.21,3.41,6.14,7.07,9.25,10.58c1.16,1.3,2.4,2.51,2.51,4.4
|
||||
c-9.35,5.1-19.56,6.39-29.97,6.74c1.26-7.95,2.89-15.86,2.99-23.95c0.27-0.73,0.54-1.47,0.8-2.2c2.88,0.23,4.05-1.1,3.74-3.94
|
||||
C359.79,227.89,359.99,226.9,360.05,225.92z"/>
|
||||
<path class="st2" d="M322.39,258.98c-1.34-6.34-0.8-12.95-2.83-19.22c-0.54-1.68-0.12-3.67-0.14-5.52
|
||||
c7.11,0.01,14.23,0.1,21.34-0.02c2.99-0.05,3.88,0.57,2.37,3.56c-3.54,7-6.86,14.12-10.26,21.2
|
||||
C329.37,258.97,325.88,258.97,322.39,258.98z"/>
|
||||
<path class="st7" d="M332.86,258.97c3.41-7.07,6.72-14.19,10.26-21.2c1.52-2.99,0.62-3.61-2.37-3.56
|
||||
c-7.11,0.12-14.23,0.03-21.34,0.02c-0.02-0.26-0.05-0.52-0.07-0.78c1.12-1.18,2.57-0.68,3.88-0.7c7.2-0.06,14.39-0.05,21.59-0.07
|
||||
c-0.06,1.7,0.74,2.38,2.46,2.32c2.69-0.09,5.38-0.02,8.07-0.01c-0.1,8.1-1.73,16-2.99,23.95c-0.26,0.08-0.51,0.15-0.77,0.23
|
||||
c-2.72,0.01-5.45,0.01-8.17,0.02C339.89,259.12,336.38,259.04,332.86,258.97z"/>
|
||||
<path class="st0" d="M162.05,54.98c3.52,7.12,10.09,3.95,15.52,4.6c1.41,3.41,4.41,5.72,6.09,8.94c-3.74,1.26-7.84,1.28-11.4,3.18
|
||||
c-0.46,0.07-0.92,0.15-1.38,0.22c-6.23-0.58-12.59-0.01-18.68-1.94C155.61,65.06,157.01,58.83,162.05,54.98z"/>
|
||||
<path class="st6" d="M259.33,254.45c0.04,1.52,0.08,3.03,0.11,4.55c-20.27-0.06-40.54-0.11-60.81-0.17
|
||||
c0.01-1.45,0.02-2.9,0.04-4.35C218.89,254.47,239.11,254.46,259.33,254.45z"/>
|
||||
<path class="st8" d="M24.51,237.09c-0.28-4.38-0.91-7.94-1.03-11.4c-0.07-1.84-0.71-5.08,0.95-5.11c2.16-0.05,1.47,2.52,1.75,4.86
|
||||
c0.16,1.33,0.05,2.74,1.07,4.45c1.98-4.03,4.65-7.1,3.79-12.07c-0.46-2.65-0.59-4.94-0.79-7.43c-0.09-1.15-0.7-2.91,1.06-3
|
||||
c1.63-0.08,1.4,1.75,1.55,2.92c0.26,2.08,0.02,4.23,1.08,6.93c1.79-3.44,3.4-6.41,4.87-9.45c0.49-1,0.74-2.51,2.07-1.99
|
||||
c1.59,0.63,0.65,1.68,0.25,2.63c-2.47,5.86-7.28,13.16-10.15,20.38c3.45-0.92,5.42-1.26,8.48-2.14c1.06-0.31,2.4-0.94,2.79,0.64
|
||||
c0.3,1.24-1,1.48-1.96,1.76c-3.1,0.93-6.19,1.9-9.3,2.8c-0.95,0.28-1.84,0.45-2.53,1.36c-3.04,4.04-2.23,4.82-1.19,6.47
|
||||
C25.3,237.87,25.55,238.22,24.51,237.09z"/>
|
||||
<path class="st9" d="M61.41,58.34c-0.16,1.71,1.15,1.96,2.32,2.35c3.28,1.1,6.57,2.18,9.85,3.3c3.43,1.18,6.65,2.79,9.09,5.54
|
||||
c2.02,2.28,4.78,3.38,7.23,4.97c-2.66,0.78-4.6-1.29-6.91-1.88c-3.6-0.92-7-2.59-10.81-2.76c-0.91-0.04-2.23-0.38-2.05-1.2
|
||||
c1.03-4.65-3.21-4.05-5.31-5.51c-1.21-0.84-2.77-1.2-3.92-2.1C59.7,60.11,59.1,58.84,61.41,58.34z"/>
|
||||
<path class="st0" d="M260.88,259.05c19.5,0,39,0,58.5,0c-0.91,0.94-2.08,0.65-3.17,0.65c-17.39,0.01-34.78,0.01-52.17,0
|
||||
C262.96,259.71,261.79,260,260.88,259.05z"/>
|
||||
<path class="st9" d="M175.94,34.1c-3.73,1.1-7.44,0.54-11.16-0.06c0.08-1.19,0.15-2.38,0.23-3.57c2.34,0.15,4.67,0.37,7.01,0.43
|
||||
C174.23,30.94,175.41,32.08,175.94,34.1z"/>
|
||||
<path class="st10" d="M198.67,254.48c-0.01,1.45-0.02,2.9-0.04,4.35c-2.74,0.05-5.48,0.1-8.22,0.14c-0.19-1.62-0.06-3.19,0.73-4.65
|
||||
C193.66,254.38,196.16,254.43,198.67,254.48z"/>
|
||||
<path class="st0" d="M343.41,259.19c2.72-0.01,5.45-0.01,8.17-0.02C348.86,260.07,346.14,260.04,343.41,259.19z"/>
|
||||
<path class="st9" d="M91.32,74.58c1.28,0,2.56,0,4.42,0c-1.01,0.58-1.49,0.85-1.97,1.12C92.68,75.94,91.69,75.96,91.32,74.58z"/>
|
||||
<path class="st0" d="M162.56,52.82c-0.19,0.28-0.38,0.56-0.57,0.84C162.18,53.38,162.37,53.1,162.56,52.82z"/>
|
||||
<path class="st0" d="M321.6,259.06c0.26-0.01,0.51-0.01,0.77-0.02C322.13,259.44,321.87,259.43,321.6,259.06z"/>
|
||||
<path class="st5" d="M227.05,177.9c-1.55-0.25-2.31,1.32-3.68,1.56c-1.86,0.33-1.69,1.56-0.95,2.79
|
||||
c3.9,6.48,7.78,12.97,11.76,19.39c3.21,5.18,6.37,10.4,9.9,15.35c3.55,4.97,5.87,10.6,9.07,15.73c0.36,0.58,0.26,1.46,0.37,2.19
|
||||
c0.19,2.43-0.96,3.23-3.33,3.11c-3.22-0.16-6.45-0.03-9.67-0.03c-2.39-0.01-4.88,0.51-5.84-2.86c-0.41-1.44-2.15-1.91-3.78-1.65
|
||||
c-4.36-6.72-10.07-12.32-15.56-18.02c-10.45-10.85-21.12-21.48-31.1-32.78c-4.39-4.97-8.81-9.97-7.33-17.43c0,0,0,0,0,0
|
||||
c0.1-0.06,0.28-0.13,0.27-0.18c-0.02-0.18-0.1-0.36-0.16-0.54c3.59-9.3,11.5-11.27,20.2-11.92c0.88,2.53,3.64,2.05,5.39,3.32
|
||||
c7.92,5.76,16.06,11.22,22.33,18.93C225.65,175.89,226.35,176.9,227.05,177.9z"/>
|
||||
<path class="st7" d="M211.36,159.47c4.67,3.44,8.81,7.47,12.97,11.49c1.43,1.38,1.51,2.44,0.61,3.92
|
||||
c-6.27-7.7-14.41-13.16-22.33-18.92c-1.74-1.27-4.51-0.79-5.39-3.32c7.15-2.05,14.73-2.4,21.63-5.45
|
||||
c5.82,0.42,10.84-2.56,16.19-4.01c5.76-1.57,11.44-3.43,17.28-4.66c8.72-1.84,16.7,0.61,24.29,4.75c1.2,0.65,2.22,1.62,3.68,1.68
|
||||
c0.58,11.03-8.43,19.18-18.09,23.61c-9.25,4.24-19.37,5.91-29.33,7.88c-1.63,0.32-2.74-0.24-3.72-1.73
|
||||
c-2.45-3.75-5.57-7.06-8.99-9.86"/>
|
||||
<path class="st1" d="M203.36,247.13c-2.02-14.08-4.03-28.15-6.05-42.23c3.06,2.38,5.54,5.4,7.73,8.45
|
||||
c5.15,7.17,11.2,13.54,16.9,20.22c-0.11,1.58,0.22,3.23-1.22,4.51C215.68,242.53,210.37,246.45,203.36,247.13z"/>
|
||||
<path class="st9" d="M221.94,233.57c-5.7-6.68-11.75-13.05-16.9-20.22c-2.19-3.05-4.68-6.08-7.73-8.45
|
||||
c-2.19-3.47-5.35-6.18-7.72-9.44c-4.51-6.21-10.85-11.22-13.44-18.65c-1.28-3.67-2.05-7.87,0.78-11.54
|
||||
c-1.48,7.46,2.94,12.46,7.33,17.43c9.97,11.3,20.64,21.93,31.1,32.78c5.49,5.7,11.2,11.3,15.56,18.02
|
||||
c-0.53,0.99-1.06,1.99-1.6,2.98C227.1,234.91,225.13,232.7,221.94,233.57z"/>
|
||||
<path class="st7" d="M221.94,233.57c3.19-0.86,5.15,1.35,7.37,2.92c0.11,1.47-1.02,2.21-1.88,3.06
|
||||
c-5.49,5.36-12.44,7.58-19.73,8.89c-3.34,0.6-6,1.91-8.16,5.3c20.27,0,40.03,0,59.78,0c0.04,0.24,0.04,0.48,0,0.72
|
||||
c-20.22,0.01-40.44,0.02-60.66,0.03c-2.51-0.05-5.02-0.1-7.52-0.15c1.03-3.75,4.23-4.8,7.39-5.71c1.62-0.47,3.35-0.53,4.82-1.5
|
||||
c7.01-0.67,12.32-4.59,17.36-9.05C222.16,236.8,221.84,235.15,221.94,233.57z"/>
|
||||
<path class="st9" d="M177.03,164.55c0.06,0.18,0.14,0.35,0.16,0.54c0.01,0.05-0.17,0.12-0.27,0.18
|
||||
C176.9,165.02,176.93,164.78,177.03,164.55z"/>
|
||||
<path class="st11" d="M346.39,145.84c8.25,3.66,12.44,10.15,12.67,19.03c0.23,8.97,0.15,17.95,0.05,26.93
|
||||
c-0.09,8.37-4.44,14.28-11.26,18.63c-2.89,1.17-5.75,2.52-9.02,2.09c-0.02-3.37,0.05-6.74-0.11-10.11
|
||||
c-0.14-2.88,0.97-4.73,3.34-6.48c1.72-1.26,3.93-2.35,5.15-4.85c-3.7,0.27-5.23,3.57-8.46,4.55c0-1.83,0.16-3.54-0.03-5.21
|
||||
c-0.43-3.76,0.48-6.65,3.89-8.87c1.69-1.1,4.02-2.2,4.45-5.21c-3.31,1.18-5.16,3.85-8.31,5.49c0-5.82,0.01-11.14-0.01-16.46
|
||||
c0-0.85,0.08-2.06-1.01-2.1c-1.12-0.04-1.1,1.15-1.11,2.01c-0.02,3.04-0.01,6.08-0.01,9.82c-2.35-2.01-4.91-2.35-6.06-4.67
|
||||
c1-1.42,1.82-3.02,3.02-4.22c2.63-2.63,2.52-7.86,7.73-8.11c0.69-0.03,0.76-1.35,0.4-1.97c-1.05-1.83,0.05-2.93,1.03-4.29
|
||||
C344.12,149.94,345.19,147.85,346.39,145.84z M350.09,163.64c-0.29-2.02-1.32-3.49-3.29-3.46c-1.98,0.04-3.59,1.06-3.41,3.46
|
||||
c0.15,2.06,1.37,3.11,3.39,3.1C348.83,166.74,349.9,165.58,350.09,163.64z"/>
|
||||
<path class="st3" d="M346.39,145.84c-1.2,2.01-2.27,4.1-3.63,6c-0.98,1.36-2.08,2.46-1.03,4.29c0.36,0.62,0.29,1.94-0.4,1.97
|
||||
c-5.21,0.25-5.1,5.48-7.73,8.11c-1.21,1.21-2.03,2.8-3.02,4.22c-0.82-0.37-2.16-1.19-2.46-0.56c-0.67,1.4,1.25,1.79,1.78,2.8
|
||||
c-1.82,1.72-3.15,3.78-4.43,5.91c-2.82,4.67-5.34,9.54-8.94,13.7c-0.09-6.26-0.18-12.53-0.27-18.79c0.02-2.87,0.12-5.75,0.06-8.62
|
||||
C316.01,149.82,333.21,138.62,346.39,145.84z"/>
|
||||
<path class="st1" d="M338.84,212.52c3.27,0.43,6.12-0.92,9.02-2.09c1.55,3.1,4.04,5.46,6.32,7.97c1.65,1.82,3.4,3.52,4.26,5.89
|
||||
c-3.52,0.08-7.04,0.15-10.56,0.22c-3.01-0.03-6.02-0.07-9.03-0.1C338.84,220.45,338.84,216.49,338.84,212.52z"/>
|
||||
<path class="st7" d="M347.88,224.52c3.52-0.07,7.04-0.15,10.56-0.22c0.94,0.15,1.47,0.69,1.62,1.63c-0.06,0.98-0.26,1.97-0.16,2.93
|
||||
c0.3,2.84-0.86,4.18-3.74,3.94c-3.76-0.27-7.57,0.16-11.34-0.11C345.82,230.2,346.87,227,347.88,224.52z"/>
|
||||
<path class="st2" d="M259.33,253.73c-19.76,0-39.52,0-59.78,0c2.16-3.39,4.82-4.7,8.16-5.3c7.29-1.31,14.24-3.53,19.73-8.89
|
||||
c0.87-0.85,2-1.58,1.88-3.06c0.53-0.99,1.06-1.99,1.59-2.98c1.63-0.26,3.37,0.21,3.78,1.65c0.96,3.37,3.45,2.85,5.84,2.86
|
||||
c3.22,0.01,6.46-0.13,9.67,0.03c2.37,0.12,3.52-0.68,3.33-3.11c3.51,0.56,5.69,3.17,5.8,7.23
|
||||
C259.44,246.02,259.34,249.88,259.33,253.73z"/>
|
||||
<path class="st11" d="M316.51,192.29c3.6-4.16,6.12-9.03,8.94-13.7c1.29-2.13,2.62-4.19,4.44-5.91c7.14,3.31,7.85,9.15,6.25,16.22
|
||||
c-1.41-1.11-2.65-2.12-3.93-3.07c-0.87-0.64-2.06-1.85-2.86-0.73c-0.89,1.25,0.97,1.67,1.67,2.39c1.79,1.83,5.01,2.57,5.47,5.28
|
||||
c0.54,3.19,0.13,6.54,0.13,10.12c-3.41-1.28-5.05-4.81-8.92-4.42c1.57,2.4,3.76,3.74,5.79,5.05c3.82,2.47,3.71,5.7,2.57,9.37
|
||||
c-8.61-1.01-14.75-5.33-18.26-13.37C316.77,197.17,316.18,194.83,316.51,192.29z M324.63,194.33c-0.01-1-0.14-1.96-1.48-2.02
|
||||
c-1.3-0.06-2.09,0.57-2.25,1.86c-0.15,1.17,0.48,1.93,1.57,2.07C323.76,196.4,324.52,195.7,324.63,194.33z"/>
|
||||
<path class="st12" d="M209.51,156.69c4.84,0.94,7.2,5.31,10.67,8.14c3.43,2.8,6.54,6.1,8.99,9.86c0.98,1.5,2.09,2.06,3.72,1.73
|
||||
c9.96-1.97,20.08-3.64,29.33-7.88c9.66-4.42,18.67-12.58,18.09-23.61c0.04-0.24,0.07-0.48,0.1-0.72c0.83,0.15,1.28,0.61,1.41,1.48
|
||||
c1.18,8.15-1.24,15.01-7.55,20.32c-10.01,8.43-22.19,11.96-34.58,14.95c-0.6,0.15-1.29,0.09-1.83,0.34
|
||||
c-4.69,2.25-8.34,1.33-10.8-3.42c-0.7-1.01-1.4-2.02-2.1-3.03c0.9-1.48,0.82-2.54-0.61-3.92c-4.17-4.02-8.3-8.04-12.97-11.49
|
||||
c-0.87-0.64-1.65-1.36-2.38-2.19L209.51,156.69z"/>
|
||||
<path class="st2" d="M347.88,224.52c-1,2.49-2.29,6.49-3.06,8.17c-7.2,0.02-14.39,0.01-21.59,0.07c-1.31,0.01-2.76-0.48-3.88,0.7
|
||||
c-1.41-1.15-3.91-0.88-4.42-3.2c-0.78-3.55,0.96-5.72,4.63-5.76c5.69-0.06,11.38-0.05,17.07-0.07c0.74,0,1.47,0,2.21,0
|
||||
C341.85,224.45,344.86,224.48,347.88,224.52z"/>
|
||||
<path class="st8" d="M338.84,224.42c-0.74,0-1.47,0-2.21,0c-0.85-3.81-0.36-7.69-0.59-11.54c0.26-4.76-0.02-7.74-2.57-9.37
|
||||
c-2.03-1.31-4.22-2.65-5.79-5.05c3.86-0.38,5.51,3.14,8.92,4.42c0-3.58,0.41-6.93-0.13-10.12c-0.46-2.71-3.68-3.45-5.47-5.28
|
||||
c-0.7-0.72-2.56-1.14-1.67-2.39c0.79-1.12,1.99,0.09,2.86,0.73c1.28,0.95,2.52,1.96,3.93,3.07c0.5-7.63,0.89-12.91-6.25-16.22
|
||||
c-0.54-1.02-2.46-1.41-1.78-2.8c0.3-0.63,1.65,0.18,2.46,0.56c1.16,2.32,3.71,2.65,6.06,4.66c0-3.74-0.02-6.78,0.01-9.82
|
||||
c0.01-0.86-0.01-2.05,1.11-2.01c1.09,0.04,1.01,1.25,1.01,2.1c0.02,5.32,0.01,10.64,0.01,16.46c3.15-1.64,5-4.31,8.31-5.49
|
||||
c-0.43,3.01-2.76,4.11-4.45,5.21c-3.42,2.23-4.32,5.11-3.89,8.87c0.19,1.67,0.03,3.38,0.03,5.21c3.23-0.98,4.76-4.28,8.46-4.55
|
||||
c-1.22,2.5-3.44,3.59-5.15,4.85c-2.37,1.75-3.47,3.6-3.34,6.48c0.16,3.36,0.08,6.74,0.11,10.11
|
||||
C338.84,216.49,338.84,220.45,338.84,224.42z"/>
|
||||
<path class="st7" d="M202.56,121.69c-5.87-7.16-13.07-13.25-17.4-21.66c3.01-2.01,6.04-0.13,9.01,0.09
|
||||
c7.62,0.58,15.2,1.55,22.8,2.37c0.01,1.55-1.75,0.68-1.94,2.37C214.12,112.75,208.01,117.02,202.56,121.69z"/>
|
||||
<path class="st7" d="M188.93,61.17c2.68-2.11,4.43-5.24,7.54-6.88c0.46,2.64-0.45,5.16-1.1,7.57c-1.01,3.73,1.27,3.21,3.16,2.77
|
||||
c4.51-1.07,8.85-0.82,13.15,0.88c0.84,0.33,1.6,0.66,2.01,1.52l-0.07,0.08c-9.7-4.19-19.01-0.18-28.43,1.36
|
||||
C186.43,66.03,187.68,63.6,188.93,61.17z"/>
|
||||
<path class="st9" d="M170.88,71.93c0.46-0.07,0.92-0.15,1.38-0.22c1.02,6.57-0.88,12.92-1.42,19.38c-0.08,0.9-0.61,1.29-1.42,1.44
|
||||
c-3.05-0.12-6.16,0.16-8.95-1.5C166.86,86.25,170.54,80,170.88,71.93z"/>
|
||||
<path class="st9" d="M188.93,61.17c-1.25,2.43-2.5,4.86-3.75,7.29c-0.51,0.02-1.01,0.04-1.52,0.07c-1.68-3.22-4.69-5.54-6.09-8.94
|
||||
c2.54-1.44,5.47-0.54,8.18-1.37C187.76,57.59,187.67,60.35,188.93,61.17z"/>
|
||||
<path class="st7" d="M215.2,68.89c0.31-0.34,0.6-0.79,0.7-0.75c0.42,0.17,0.9,0.4,1.12,0.76c0.27,0.44,0.17,1.04-0.56,0.87
|
||||
C216.04,69.68,215.7,69.26,215.2,68.89z"/>
|
||||
<path class="st7" d="M213.69,67.02c0.1,0.13,0.21,0.25,0.31,0.38c-0.13-0.1-0.26-0.2-0.39-0.3
|
||||
C213.62,67.09,213.69,67.02,213.69,67.02z"/>
|
||||
<path class="st3" d="M18.92,176.76c0,1.22-0.74,1.92-1.89,1.86c-1.15-0.06-1.69-0.87-1.7-1.99c-0.01-1.04,0.54-1.58,1.58-1.56
|
||||
C18.05,175.1,18.77,175.56,18.92,176.76z"/>
|
||||
<path class="st3" d="M26.12,185.41c1.07,0.16,1.81,0.84,1.95,1.84c0.14,1-0.67,1.48-1.6,1.59c-1.19,0.14-1.87-0.39-1.81-1.63
|
||||
C24.69,186.28,25.09,185.58,26.12,185.41z"/>
|
||||
<path class="st12" d="M344.82,232.68C344.82,232.45,344.79,232.92,344.82,232.68c3.76,0.27,7.57-0.16,11.34,0.11
|
||||
c-0.27,0.73-0.54,1.47-0.8,2.2c-2.69,0-5.39-0.08-8.07,0.01C345.55,235.06,344.76,234.39,344.82,232.68z"/>
|
||||
<path class="st7" d="M123.61,247.1c0.79-0.01,1.58-0.02,2.37-0.03"/>
|
||||
<path class="st12" d="M211.74,156.99c-0.54-0.1-0.9-0.35-0.84-1.17c0.01-0.09,0.15-0.23,0.23-0.23c0.82-0.05,1.05,0.17,1.14,0.72
|
||||
C212.28,156.31,211.74,156.99,211.74,156.99z"/>
|
||||
<path class="st3" d="M350.09,163.64c-0.19,1.93-1.26,3.09-3.31,3.1c-2.02,0.01-3.24-1.04-3.39-3.1c-0.17-2.4,1.44-3.42,3.41-3.46
|
||||
C348.77,160.15,349.8,161.62,350.09,163.64z"/>
|
||||
<path class="st3" d="M324.63,194.33c-0.11,1.37-0.87,2.07-2.16,1.91c-1.09-0.14-1.72-0.89-1.57-2.07c0.16-1.3,0.95-1.92,2.25-1.86
|
||||
C324.5,192.37,324.63,193.33,324.63,194.33z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 21 KiB |
@@ -5,8 +5,11 @@ namespace Template.Maui
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
MainPage = new MainPage();
|
||||
protected override Window CreateWindow(IActivationState? activationState)
|
||||
{
|
||||
return new Window(new MainPage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Linq.Expressions;
|
||||
using SQLite;
|
||||
using SQLite;
|
||||
using System.Linq.Expressions;
|
||||
using Template.Shared.Core.Entity;
|
||||
|
||||
namespace Template.Maui.Core.Services;
|
||||
|
||||
public class LocalDbService
|
||||
@@ -13,7 +12,6 @@ public class LocalDbService
|
||||
{
|
||||
_connection = new SQLiteAsyncConnection(Path.Combine(FileSystem.AppDataDirectory, DB_NAME));
|
||||
|
||||
//Creazione tabelle database
|
||||
_connection.CreateTableAsync<AnagClie>();
|
||||
_connection.CreateTableAsync<JtbComt>();
|
||||
_connection.CreateTableAsync<PtbPros>();
|
||||
@@ -52,9 +50,24 @@ public class LocalDbService
|
||||
}
|
||||
}
|
||||
|
||||
public Task Insert<T>(List<T> entityList) =>
|
||||
public Task InsertAll<T>(List<T> entityList) =>
|
||||
_connection.InsertAllAsync(entityList, typeof(T));
|
||||
|
||||
public async Task Insert<T>(List<T> entityList)
|
||||
{
|
||||
foreach (var entity in entityList)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _connection.InsertAsync(entity, typeof(T));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Errore db su {entity}: {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public async Task InsertOrUpdate<T>(List<T> entityList)
|
||||
{
|
||||
foreach (var entity in entityList)
|
||||
|
||||
@@ -37,12 +37,21 @@ public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManage
|
||||
var codJcomList = activities
|
||||
.Select(x => x.CodJcom)
|
||||
.Where(x => !string.IsNullOrEmpty(x))
|
||||
.Distinct()
|
||||
.ToList();
|
||||
.Distinct().ToList();
|
||||
|
||||
var jtbComtList = await localDb.Get<JtbComt>(x => codJcomList.Contains(x.CodJcom));
|
||||
var commesseDict = jtbComtList.ToDictionary(x => x.CodJcom, x => x.Descrizione);
|
||||
|
||||
var codAnagList = activities
|
||||
.Select(x => x.CodAnag)
|
||||
.Where(x => !string.IsNullOrEmpty(x))
|
||||
.Distinct().ToList();
|
||||
var clientList = await localDb.Get<AnagClie>(x => codAnagList.Contains(x.CodAnag));
|
||||
var distinctClient = clientList.ToDictionary(x => x.CodAnag, x => x.RagSoc);
|
||||
|
||||
var prospectList = await localDb.Get<PtbPros>(x => codAnagList.Contains(x.CodPpro));
|
||||
var distinctProspect = prospectList.ToDictionary(x => x.CodPpro, x => x.RagSoc);
|
||||
|
||||
var returnDto = activities
|
||||
.Select(activity =>
|
||||
{
|
||||
@@ -57,6 +66,16 @@ public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManage
|
||||
dto.Category = activity.CodAnag != null ? ActivityCategoryEnum.Interna : ActivityCategoryEnum.Memo;
|
||||
}
|
||||
|
||||
if (dto.Category == ActivityCategoryEnum.Interna && activity.CodAnag != null)
|
||||
{
|
||||
string? ragSoc;
|
||||
|
||||
if (distinctClient.TryGetValue(activity.CodAnag, out ragSoc) || distinctProspect.TryGetValue(activity.CodAnag, out ragSoc))
|
||||
{
|
||||
dto.Cliente = ragSoc;
|
||||
}
|
||||
}
|
||||
|
||||
dto.Commessa = activity.CodJcom != null && commesseDict.TryGetValue(activity.CodJcom, out var descr)
|
||||
? descr
|
||||
: null;
|
||||
@@ -67,6 +86,6 @@ public class ManageDataService(LocalDbService localDb, IMapper mapper) : IManage
|
||||
return returnDto;
|
||||
}
|
||||
|
||||
public async Task ClearDb() =>
|
||||
await localDb.ResetDb();
|
||||
public Task ClearDb() =>
|
||||
localDb.ResetDb();
|
||||
}
|
||||
@@ -10,7 +10,7 @@ public class SyncDbService(IIntegryApiService integryApiService, LocalDbService
|
||||
|
||||
if (allActivity is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(allActivity);
|
||||
await localDb.InsertAll(allActivity);
|
||||
else
|
||||
await localDb.InsertOrUpdate(allActivity);
|
||||
}
|
||||
@@ -21,49 +21,50 @@ public class SyncDbService(IIntegryApiService integryApiService, LocalDbService
|
||||
|
||||
if (allCommesse is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(allCommesse);
|
||||
await localDb.InsertAll(allCommesse);
|
||||
else
|
||||
await localDb.InsertOrUpdate(allCommesse);
|
||||
}
|
||||
|
||||
public async Task GetAndSaveProspect(string? dateFilter)
|
||||
{
|
||||
var tasks = new List<Task>();
|
||||
var taskSyncResponseDto = await integryApiService.GetProspect(dateFilter);
|
||||
|
||||
if (taskSyncResponseDto.PtbPros is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(taskSyncResponseDto.PtbPros);
|
||||
else
|
||||
await localDb.InsertOrUpdate(taskSyncResponseDto.PtbPros);
|
||||
tasks.Add(dateFilter is null
|
||||
? localDb.InsertAll(taskSyncResponseDto.PtbPros)
|
||||
: localDb.InsertOrUpdate(taskSyncResponseDto.PtbPros));
|
||||
|
||||
if (taskSyncResponseDto.PtbProsRif is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(taskSyncResponseDto.PtbProsRif);
|
||||
else
|
||||
await localDb.InsertOrUpdate(taskSyncResponseDto.PtbProsRif);
|
||||
tasks.Add(dateFilter is null
|
||||
? localDb.Insert(taskSyncResponseDto.PtbProsRif)
|
||||
: localDb.InsertOrUpdate(taskSyncResponseDto.PtbProsRif));
|
||||
|
||||
await Task.WhenAll(tasks.AsEnumerable());
|
||||
}
|
||||
|
||||
public async Task GetAndSaveClienti(string? dateFilter)
|
||||
{
|
||||
var tasks = new List<Task>();
|
||||
var taskSyncResponseDto = await integryApiService.GetAnagClie(dateFilter);
|
||||
|
||||
if (taskSyncResponseDto.AnagClie is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(taskSyncResponseDto.AnagClie);
|
||||
else
|
||||
await localDb.InsertOrUpdate(taskSyncResponseDto.AnagClie);
|
||||
tasks.Add(dateFilter is null
|
||||
? localDb.InsertAll(taskSyncResponseDto.AnagClie)
|
||||
: localDb.InsertOrUpdate(taskSyncResponseDto.AnagClie));
|
||||
|
||||
if (taskSyncResponseDto.VtbDest is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(taskSyncResponseDto.VtbDest);
|
||||
else
|
||||
await localDb.InsertOrUpdate(taskSyncResponseDto.VtbDest);
|
||||
tasks.Add(dateFilter is null
|
||||
? localDb.Insert(taskSyncResponseDto.VtbDest)
|
||||
: localDb.InsertOrUpdate(taskSyncResponseDto.VtbDest));
|
||||
|
||||
if (taskSyncResponseDto.VtbCliePersRif is not null)
|
||||
if (dateFilter is null)
|
||||
await localDb.Insert(taskSyncResponseDto.VtbCliePersRif);
|
||||
else
|
||||
await localDb.InsertOrUpdate(taskSyncResponseDto.VtbCliePersRif);
|
||||
tasks.Add(dateFilter is null
|
||||
? localDb.Insert(taskSyncResponseDto.VtbCliePersRif)
|
||||
: localDb.InsertOrUpdate(taskSyncResponseDto.VtbCliePersRif));
|
||||
|
||||
await Task.WhenAll(tasks.AsEnumerable());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using CommunityToolkit.Maui;
|
||||
using IntegryApiClient.MAUI;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -22,11 +23,12 @@ namespace Template.Maui
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.UseLoginAzienda(AppToken)
|
||||
.UseMauiCommunityToolkit()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
});
|
||||
})
|
||||
.UseLoginAzienda(AppToken);
|
||||
|
||||
builder.Services.AddMauiBlazorWebView();
|
||||
builder.Services.AddMudServices();
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace Template.Maui
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net9.0-ios;net9.0-android</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);net9.0-android</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);net9.0-ios</TargetFrameworks>
|
||||
<!--<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>-->
|
||||
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
|
||||
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
|
||||
@@ -112,12 +113,12 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Maui" Version="11.2.0" />
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
||||
<PackageReference Include="IntegryApiClient.MAUI" Version="1.1.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.4" />
|
||||
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.60" />
|
||||
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.60" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.60" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.4" />
|
||||
<PackageReference Include="IntegryApiClient.MAUI" Version="1.1.4" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.5" />
|
||||
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.70" />
|
||||
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.70" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="9.0.70" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.5" />
|
||||
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</div>
|
||||
|
||||
<script src="_framework/blazor.webview.js" autostart="false"></script>
|
||||
<script src="_content/Template.Shared/js/bootstrap/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="_content/Template.Shared/js/bootstrap/bootstrap.bundle.min.js"></script>
|
||||
<!-- Add chart.js reference if chart components are used in your application. -->
|
||||
<!--<script src="_content/Template.Shared/js/bootstrap/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>-->
|
||||
<!-- Add chartjs-plugin-datalabels.min.js reference if chart components with data label feature is used in your application. -->
|
||||
@@ -43,6 +43,7 @@
|
||||
<!--<script src="_content/Template.Shared/js/bootstrap/Sortable.min.js"></script>-->
|
||||
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
||||
<script src="_content/Template.Shared/js/main.js"></script>
|
||||
<script src="_content/Template.Shared/js/calendar.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -5,17 +5,21 @@
|
||||
@if (Back)
|
||||
{
|
||||
<div class="left-section">
|
||||
<MudButton StartIcon="@Icons.Material.Outlined.ArrowBackIosNew"
|
||||
<MudButton StartIcon="@(!Cancel ? Icons.Material.Outlined.ArrowBackIosNew : "")"
|
||||
OnClick="GoBack"
|
||||
Color="Color.Info"
|
||||
Style="text-transform: none"
|
||||
Variant="Variant.Text">@BackTo</MudButton>
|
||||
Variant="Variant.Text">
|
||||
@BackTo
|
||||
</MudButton>
|
||||
</div>
|
||||
}
|
||||
|
||||
<h3 class="page-title">@Title</h3>
|
||||
|
||||
<div class="right-section">
|
||||
@if (LabelSave.IsNullOrEmpty())
|
||||
{
|
||||
@if (ShowFilter)
|
||||
{
|
||||
<MudIconButton Icon="@Icons.Material.Outlined.FilterAlt" Color="Color.Dark"/>
|
||||
@@ -24,6 +28,20 @@
|
||||
{
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark"/>
|
||||
}
|
||||
@if (ShowCalendarToggle)
|
||||
{
|
||||
<MudIconButton OnClick="OnCalendarToggle" Icon="@Icons.Material.Filled.CalendarMonth" Color="Color.Dark"/>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudButton OnClick="OnSave"
|
||||
Color="Color.Info"
|
||||
Style="text-transform: none"
|
||||
Variant="Variant.Text">
|
||||
@LabelSave
|
||||
</MudButton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,6 +53,19 @@
|
||||
[Parameter] public bool Back { get; set; }
|
||||
[Parameter] public string BackTo { get; set; } = "";
|
||||
|
||||
[Parameter] public bool Cancel { get; set; }
|
||||
[Parameter] public string? LabelSave { get; set; }
|
||||
[Parameter] public EventCallback OnSave { get; set; }
|
||||
|
||||
[Parameter] public bool ShowCalendarToggle { get; set; }
|
||||
[Parameter] public EventCallback OnCalendarToggle { get; set; }
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
Back = !Back ? !Back && Cancel : Back;
|
||||
BackTo = Cancel ? "Annulla" : BackTo;
|
||||
}
|
||||
|
||||
private async Task GoBack()
|
||||
{
|
||||
await JS.InvokeVoidAsync("goBack");
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.left-section ::deep button {
|
||||
font-size: 1rem;
|
||||
.left-section ::deep button, .right-section ::deep button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.left-section ::deep .mud-button-icon-start {
|
||||
|
||||
157
Template.Shared/Components/Pages/ActivityForm.razor
Normal file
@@ -0,0 +1,157 @@
|
||||
@page "/activity"
|
||||
@page "/activity/{Id}"
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Components.Layout
|
||||
@using Template.Shared.Core.Interface
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject IManageDataService manageData
|
||||
|
||||
<HeaderLayout Cancel="true" LabelSave="@LabelSave" ShowNotifications="false" Title="@(IsNew ? "Nuova" : $"{ActivityModel.ActivityId}")"/>
|
||||
|
||||
<div class="content">
|
||||
<div class="input-card">
|
||||
<MudTextField T="string?" Placeholder="Descrizione" Variant="Variant.Text" Lines="3" @bind-Value="ActivityModel.ActivityDescription" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
|
||||
<div class="input-card">
|
||||
<div class="form-container">
|
||||
<MudInput T="string?" Placeholder="Cliente" @bind-Value="ActivityModel.Cliente" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="form-container">
|
||||
<MudInput T="string?" Placeholder="Commessa" @bind-Value="ActivityModel.Commessa" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-card">
|
||||
<div class="form-container">
|
||||
<span>Inizio</span>
|
||||
|
||||
<MudTextField T="DateTime?" Format="yyyy-MM-ddTHH:mm" InputType="InputType.DateTimeLocal" @bind-Value="ActivityModel.EstimatedTime" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="form-container">
|
||||
<span>Fine</span>
|
||||
|
||||
<MudTextField T="DateTime?" Format="yyyy-MM-ddTHH:mm" InputType="InputType.DateTimeLocal" @bind-Value="ActivityModel.EstimatedEndtime" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="form-container">
|
||||
<span>Avviso</span>
|
||||
|
||||
<MudSwitch T="bool" Disabled="true" Color="Color.Primary"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-card">
|
||||
<div class="form-container text-align-end">
|
||||
<span>Assegnata a</span>
|
||||
|
||||
<MudInput T="string" Placeholder="Nessuno" @bind-Value="ActivityModel.UserName" @bind-Value:after="OnAfterChangeValue"/>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="form-container">
|
||||
<span>Tipo</span>
|
||||
|
||||
<MudSelect T="string?" Variant="Variant.Text" @bind-Value="ActivityModel.ActivityTypeId" @bind-Value:after="OnAfterChangeValue" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
||||
@foreach (var state in ActivityResult)
|
||||
{
|
||||
<MudSelectItem Value="@state">@state</MudSelectItem>
|
||||
}
|
||||
</MudSelect>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="form-container">
|
||||
<span>Esito</span>
|
||||
|
||||
<MudSelect T="string?" Variant="Variant.Text" @bind-Value="ActivityModel.ActivityResultId" @bind-Value:after="OnAfterChangeValue" Class="customIcon-select" AdornmentIcon="@Icons.Material.Filled.Code">
|
||||
@foreach (var state in ActivityResult)
|
||||
{
|
||||
<MudSelectItem Value="@state">@state</MudSelectItem>
|
||||
}
|
||||
</MudSelect>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-card">
|
||||
<MudTextField T="string?" Placeholder="Note" Variant="Variant.Text" Lines="4" @bind-Value="ActivityModel.Note" @bind-Value:after="OnAfterChangeValue" />
|
||||
</div>
|
||||
|
||||
<MudOverlay @bind-Visible="_selectEstimatedTime" DarkBackground="true" AutoClose="true">
|
||||
<MudDatePicker @bind-Date:after="CloseDatePicker" @bind-Date="ActivityModel.EstimatedTime" PickerVariant="PickerVariant.Static"/>
|
||||
</MudOverlay>
|
||||
|
||||
<MudOverlay @bind-Visible="_selectEstimatedEndTime" DarkBackground="true" AutoClose="true">
|
||||
<MudDatePicker @bind-Date:after="CloseDatePicker" @bind-Date="ActivityModel.EstimatedEndtime" PickerVariant="PickerVariant.Static"/>
|
||||
</MudOverlay>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter] public string? Id { get; set; }
|
||||
|
||||
private ActivityDTO OriginalModel { get; set; } = new();
|
||||
private ActivityDTO ActivityModel { get; set; } = new();
|
||||
private List<ActivityResultDTO> ActivityResult { get; set; } = [];
|
||||
|
||||
private bool IsNew => Id.IsNullOrEmpty();
|
||||
private bool _selectEstimatedTime;
|
||||
private bool _selectEstimatedEndTime;
|
||||
|
||||
private string? LabelSave { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
LabelSave = IsNew ? "Aggiungi" : null;
|
||||
|
||||
if (!Id.IsNullOrEmpty())
|
||||
ActivityModel = (await manageData.GetActivity(x => x.ActivityId.Equals(Id))).Last();
|
||||
|
||||
if (IsNew)
|
||||
{
|
||||
ActivityModel.EstimatedTime = DateTime.Today.Add(TimeSpan.FromHours(DateTime.Now.Hour));
|
||||
ActivityModel.EstimatedEndtime = DateTime.Today.Add(TimeSpan.FromHours(DateTime.Now.Hour) + TimeSpan.FromHours(1));
|
||||
}
|
||||
|
||||
OriginalModel = ActivityModel.Clone();
|
||||
}
|
||||
|
||||
private async Task HandleValidSubmit()
|
||||
{
|
||||
// Salva su database (qui simulato)
|
||||
await Task.Delay(200);
|
||||
NavigationManager.NavigateTo("/attivita");
|
||||
}
|
||||
|
||||
private void Annulla()
|
||||
{
|
||||
NavigationManager.NavigateTo("/attivita");
|
||||
}
|
||||
|
||||
private void OnAfterChangeValue()
|
||||
{
|
||||
if (OriginalModel.Equals(ActivityModel))
|
||||
LabelSave = "Aggiorna";
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task CloseDatePicker()
|
||||
{
|
||||
await Task.Delay(150);
|
||||
|
||||
_selectEstimatedTime = false;
|
||||
_selectEstimatedEndTime = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
}
|
||||
50
Template.Shared/Components/Pages/ActivityForm.razor.css
Normal file
@@ -0,0 +1,50 @@
|
||||
.input-card {
|
||||
width: 100%;
|
||||
background: var(--mud-palette-background-gray);
|
||||
border-radius: 9px;
|
||||
padding: .5rem 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.input-card ::deep > .divider { margin: 0 !important; }
|
||||
|
||||
.form-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
min-height: 35px;
|
||||
}
|
||||
|
||||
.form-container > span {
|
||||
font-weight: 600;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.dateTime-picker {
|
||||
display: flex;
|
||||
gap: .3rem;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/*Custom mudBlazor*/
|
||||
|
||||
.form-container ::deep .mud-input.mud-input-underline:before { border-bottom: none !important; }
|
||||
|
||||
.form-container ::deep .mud-input.mud-input-underline:after { border-bottom: none !important; }
|
||||
|
||||
.form-container.text-align-end ::deep .mud-input-slot { text-align: end; }
|
||||
|
||||
.input-card ::deep .mud-input.mud-input-underline:before { border-bottom: none !important; }
|
||||
|
||||
.input-card ::deep .mud-input.mud-input-underline:after { border-bottom: none !important; }
|
||||
|
||||
.form-container ::deep .customIcon-select .mud-icon-root.mud-svg-icon {
|
||||
rotate: 90deg !important;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.input-card ::deep .mud-input {
|
||||
width: 100%;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -1,61 +1,103 @@
|
||||
@page "/Calendar"
|
||||
@attribute [Authorize]
|
||||
@page "/Calendar"
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Interface
|
||||
@using Template.Shared.Components.Layout
|
||||
@using Template.Shared.Components.SingleElements.Calendar
|
||||
@using Template.Shared.Components.SingleElements
|
||||
@using Template.Shared.Components.Layout.Spinner
|
||||
@inject IManageDataService manageData
|
||||
@inject IJSRuntime JS
|
||||
|
||||
<HeaderLayout Title="Agenda" ShowFilter="true"/>
|
||||
<HeaderLayout Title="@CurrentMonth.ToString("MMMM yyyy", new System.Globalization.CultureInfo("it-IT")).FirstCharToUpper()"
|
||||
ShowFilter="true"
|
||||
ShowCalendarToggle="true"
|
||||
OnCalendarToggle="ToggleExpanded"/>
|
||||
|
||||
<div class="content">
|
||||
<MudButtonGroup Size="Size.Small" Class="custom-mudButtonGroup" Color="Color.Surface" OverrideStyles="true" Variant="Variant.Outlined" DropShadow="true">
|
||||
<MudButton StartIcon="@Icons.Material.Filled.ViewStream" Class="@(FilterByDay ? "custom-button-active" : "")" OnClick="SelectDay">Giorno</MudButton>
|
||||
<MudButton StartIcon="@Icons.Material.Filled.CalendarViewDay" Class="@(FilterByWeek ? "custom-button-active" : "")" OnClick="SelectWeek">Settimana</MudButton>
|
||||
<MudButton StartIcon="@Icons.Material.Filled.CalendarViewMonth" Class="@(FilterByMonth ? "custom-button-active" : "")" OnClick="SelectMonth">Mese</MudButton>
|
||||
</MudButtonGroup>
|
||||
<div @ref="weekSliderRef" class="week-slider @(Expanded ? "expanded" : "") @(SliderAnimation)">
|
||||
@if (Expanded)
|
||||
{
|
||||
<!-- Vista mensile -->
|
||||
@foreach (var nomeGiorno in GiorniSettimana)
|
||||
{
|
||||
<div class="week-day">
|
||||
<div>@nomeGiorno</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="activity-filter">
|
||||
<div class="date-controller">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.ChevronLeft" @onclick="() => ChangeDate(-1)" Color="Color.Surface"/>
|
||||
<MudButton Variant="Variant.Text" Color="Color.Surface" OnClick="OpenCalendar">
|
||||
@if (FilterByDay)
|
||||
@foreach (var unused in Enumerable.Range(0, StartOffset))
|
||||
{
|
||||
@($"{DateFilter:M}")
|
||||
<div class="day" style="visibility: hidden"></div>
|
||||
}
|
||||
else if (FilterByWeek)
|
||||
|
||||
@for (var d = 1; d <= DaysInMonth; d++)
|
||||
{
|
||||
@($"{(DateRangeFilter.Start!.Value.Month == DateRangeFilter.End!.Value.Month ? DateRangeFilter.Start!.Value.Day : DateRangeFilter.Start!.Value.ToString("M"))} - {DateRangeFilter.End!.Value:M}")
|
||||
}
|
||||
else if (FilterByMonth)
|
||||
var day = new DateTime(CurrentMonth.Year, CurrentMonth.Month, d);
|
||||
var isSelected = IsSameDay(day, SelectedDate);
|
||||
var isToday = IsSameDay(day, DateTime.Today);
|
||||
var events = GetEventsForDay(day);
|
||||
|
||||
<div class="day @(isSelected ? "selected" : (isToday ? "today" : ""))"
|
||||
@onclick="() => SelezionaDataDalMese(day)">
|
||||
<div>@d</div>
|
||||
@if (events.Any())
|
||||
{
|
||||
@($"{DateFilter:Y}")
|
||||
<div class="event-dot-container" style="margin-top: 2px;">
|
||||
@foreach (var cat in events.Select(x => x.Category).Distinct())
|
||||
{
|
||||
<div class="event-dot @cat.ConvertToHumanReadable()" title="@cat.ConvertToHumanReadable()"></div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@foreach (var unused in Enumerable.Range(0, EndOffset))
|
||||
{
|
||||
<div class="day" style="visibility: hidden"></div>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<!-- Vista settimanale -->
|
||||
@foreach (var day in DaysOfWeek)
|
||||
{
|
||||
var isSelected = IsSameDay(day, SelectedDate);
|
||||
var isToday = IsSameDay(day, DateTime.Today);
|
||||
|
||||
<div class="week-day">
|
||||
<div>@day.ToString("ddd", new System.Globalization.CultureInfo("it-IT"))</div>
|
||||
<div class="day @(isSelected ? "selected" : (isToday ? "today" : ""))"
|
||||
@onclick="() => SelezionaData(day)">
|
||||
<div>@day.Day</div>
|
||||
@if (GetEventsForDay(day).Any())
|
||||
{
|
||||
<div class="event-dot-container" style="margin-top: 2px;">
|
||||
@foreach (var cat in GetEventsForDay(day).Select(x => x.Category).Distinct())
|
||||
{
|
||||
<div class="event-dot @cat.ConvertToHumanReadable()" title="@cat.ConvertToHumanReadable()"></div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</MudButton>
|
||||
<MudIconButton Icon="@Icons.Material.Filled.ChevronRight" @onclick="() => ChangeDate(1)" Color="Color.Surface"/>
|
||||
</div>
|
||||
|
||||
<MudOverlay @bind-Visible="_isVisible" DarkBackground="true" AutoClose="true">
|
||||
<MudDatePicker @bind-Date:after="CloseDatePicker" @bind-Date="DateFilter" PickerVariant="PickerVariant.Static">
|
||||
<PickerActions>
|
||||
@if (DateFilter != DateTime.Today)
|
||||
<div class="appointments">
|
||||
@if (IsLoading)
|
||||
{
|
||||
<MudButton Class="mr-auto align-self-start" OnClick="() => DateFilter = DateTime.Today">Oggi</MudButton>
|
||||
<SpinnerLayout FullScreen="false"/>
|
||||
}
|
||||
</PickerActions>
|
||||
</MudDatePicker>
|
||||
</MudOverlay>
|
||||
</div>
|
||||
|
||||
<div class="card-container">
|
||||
@if (FilterByDay)
|
||||
else if (FilteredActivities is { Count: > 0 })
|
||||
{
|
||||
<DayView @bind-Date="DateFilter"/>
|
||||
@foreach (var activity in FilteredActivities)
|
||||
{
|
||||
<ActivityCard Activity="activity"/>
|
||||
}
|
||||
else if (FilterByWeek)
|
||||
{
|
||||
<WeekView @bind-Date="DateRangeFilter" />
|
||||
}
|
||||
else if (FilterByMonth)
|
||||
else
|
||||
{
|
||||
<MonthView @bind-Date="DateTimeForMonthView"/>
|
||||
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -65,116 +107,196 @@
|
||||
</ActivatorContent>
|
||||
<ChildContent>
|
||||
<MudMenuItem>Nuovo contatto</MudMenuItem>
|
||||
<MudMenuItem>Nuova attivit<EFBFBD></MudMenuItem>
|
||||
<MudMenuItem OnClick="OpenActivityForm">Nuova attività</MudMenuItem>
|
||||
</ChildContent>
|
||||
</MudMenu>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private bool FilterByDay { get; set; } = true;
|
||||
private bool FilterByWeek { get; set; }
|
||||
private bool FilterByMonth { get; set; }
|
||||
private DateTime? DateFilter { get; set; } = DateTime.Today;
|
||||
private DateRange DateRangeFilter { get; set; } = new();
|
||||
private DateTime DateTimeForMonthView { get; set; }
|
||||
|
||||
private bool _isVisible;
|
||||
// Stato UI
|
||||
private bool Expanded { get; set; } = false;
|
||||
private string SliderAnimation { get; set; } = string.Empty;
|
||||
private ElementReference weekSliderRef;
|
||||
private DotNetObjectReference<Calendar>? dotNetHelper;
|
||||
|
||||
protected override void OnInitialized()
|
||||
// Stato calendario
|
||||
private DateTime SelectedDate { get; set; } = DateTime.Today;
|
||||
private DateTime _internalMonth = DateTime.Today;
|
||||
private DateTime CurrentMonth => new(_internalMonth.Year, _internalMonth.Month, 1);
|
||||
|
||||
// Stato attività
|
||||
private List<ActivityDTO> MonthActivities { get; set; } = [];
|
||||
private List<ActivityDTO> FilteredActivities { get; set; } = [];
|
||||
private bool IsLoading { get; set; } = true;
|
||||
|
||||
// Supporto rendering mese
|
||||
private static readonly string[] GiorniSettimana = ["Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"];
|
||||
private int DaysInMonth => DateTime.DaysInMonth(CurrentMonth.Year, CurrentMonth.Month);
|
||||
private int StartOffset => (int)CurrentMonth.DayOfWeek == 0 ? 6 : (int)CurrentMonth.DayOfWeek - 1;
|
||||
|
||||
private int EndOffset
|
||||
{
|
||||
CalcDateRange();
|
||||
get
|
||||
{
|
||||
var totalCells = (int)Math.Ceiling((DaysInMonth + StartOffset) / 7.0) * 7;
|
||||
return totalCells - (DaysInMonth + StartOffset);
|
||||
}
|
||||
}
|
||||
|
||||
public void OpenCalendar()
|
||||
// Supporto rendering settimana
|
||||
private IEnumerable<DateTime> DaysOfWeek
|
||||
{
|
||||
_isVisible = true;
|
||||
get
|
||||
{
|
||||
var start = GetStartOfWeek(SelectedDate);
|
||||
return Enumerable.Range(0, 7).Select(i => start.AddDays(i));
|
||||
}
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
dotNetHelper = DotNetObjectReference.Create(this);
|
||||
await JS.InvokeVoidAsync("calendarSwipe.register", weekSliderRef, dotNetHelper);
|
||||
_internalMonth = new DateTime(SelectedDate.Year, SelectedDate.Month, 1);
|
||||
await LoadMonthData();
|
||||
}
|
||||
}
|
||||
|
||||
[JSInvokable]
|
||||
public async Task OnSwipeLeft()
|
||||
{
|
||||
CambiaPeriodo(1);
|
||||
await LoadMonthData();
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void SelectDay()
|
||||
[JSInvokable]
|
||||
public async Task OnSwipeRight()
|
||||
{
|
||||
ResetFilterCalendar();
|
||||
FilterByDay = !FilterByDay;
|
||||
CambiaPeriodo(-1);
|
||||
await LoadMonthData();
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void SelectWeek()
|
||||
// Cambio periodo mese/settimana
|
||||
private void CambiaPeriodo(int direzione)
|
||||
{
|
||||
ResetFilterCalendar();
|
||||
FilterByWeek = !FilterByWeek;
|
||||
CalcDateRange();
|
||||
if (Expanded)
|
||||
{
|
||||
// Cambio solo il mese visualizzato, NON cambiare SelectedDate
|
||||
var y = CurrentMonth.Year;
|
||||
var m = CurrentMonth.Month + direzione;
|
||||
if (m < 1)
|
||||
{
|
||||
y--;
|
||||
m = 12;
|
||||
}
|
||||
|
||||
if (m > 12)
|
||||
{
|
||||
y++;
|
||||
m = 1;
|
||||
}
|
||||
|
||||
_internalMonth = new DateTime(y, m, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Cambio settimana: aggiorno anche il giorno selezionato
|
||||
SelectedDate = SelectedDate.AddDays(7 * direzione);
|
||||
_internalMonth = new DateTime(SelectedDate.Year, SelectedDate.Month, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Cambio modalità
|
||||
private async Task ToggleExpanded()
|
||||
{
|
||||
if (Expanded)
|
||||
{
|
||||
SliderAnimation = "collapse-animation";
|
||||
StateHasChanged();
|
||||
Expanded = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Expanded = true;
|
||||
SliderAnimation = "expand-animation";
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void SelectMonth()
|
||||
SliderAnimation = "";
|
||||
StateHasChanged();
|
||||
await LoadMonthData();
|
||||
}
|
||||
|
||||
// Caricamento attività al cambio mese
|
||||
private async Task LoadMonthData()
|
||||
{
|
||||
ResetFilterCalendar();
|
||||
FilterByMonth = !FilterByMonth;
|
||||
DateTimeForMonthView = new DateTime(DateFilter!.Value.Year, DateFilter!.Value.Month, 1);
|
||||
IsLoading = true;
|
||||
StateHasChanged();
|
||||
|
||||
// Carica tutte le attività del mese corrente visualizzato
|
||||
var start = CurrentMonth;
|
||||
var end = start.AddDays(DaysInMonth - 1);
|
||||
var activities = await manageData.GetActivity(x =>
|
||||
(x.EffectiveDate == null && x.EstimatedDate >= start && x.EstimatedDate <= end) ||
|
||||
(x.EffectiveDate >= start && x.EffectiveDate <= end));
|
||||
MonthActivities = activities.OrderBy(x => x.EffectiveDate ?? x.EstimatedDate).ToList();
|
||||
|
||||
// Filtro per il giorno selezionato (solo se il giorno selezionato è visibile nel mese corrente)
|
||||
if (SelectedDate.Month == CurrentMonth.Month && SelectedDate.Year == CurrentMonth.Year)
|
||||
FilteredActivities = GetEventsForDay(SelectedDate);
|
||||
else
|
||||
FilteredActivities = [];
|
||||
|
||||
IsLoading = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void ResetFilterCalendar(bool forceSelectDay = false)
|
||||
// Selezione giorno in settimana
|
||||
private void SelezionaData(DateTime day)
|
||||
{
|
||||
FilterByDay = false;
|
||||
FilterByWeek = false;
|
||||
FilterByMonth = false;
|
||||
}
|
||||
|
||||
private void ChangeDate(int value)
|
||||
{
|
||||
var date = DateFilter!.Value;
|
||||
|
||||
if (FilterByDay)
|
||||
{
|
||||
DateFilter = date.AddDays(value);
|
||||
}
|
||||
else if (FilterByWeek)
|
||||
{
|
||||
DateFilter = DateRangeFilter.Start!.Value.AddDays(value > 0 ? 7 : -7);
|
||||
}
|
||||
else if (FilterByMonth)
|
||||
{
|
||||
var year = date.Year;
|
||||
var month = value > 0 ? date.Month + 1 : date.Month - 1;
|
||||
|
||||
switch (month)
|
||||
{
|
||||
case > 12:
|
||||
year++;
|
||||
month = 1;
|
||||
break;
|
||||
case < 1:
|
||||
year--;
|
||||
month = 12;
|
||||
break;
|
||||
}
|
||||
|
||||
DateFilter = new DateTime(year, month, 1);
|
||||
DateTimeForMonthView = DateFilter.Value;
|
||||
}
|
||||
|
||||
CalcDateRange();
|
||||
SelectedDate = day;
|
||||
_internalMonth = new DateTime(day.Year, day.Month, 1); // Sync il mese visualizzato solo se cambio settimana!
|
||||
FilteredActivities = GetEventsForDay(day);
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void CalcDateRange()
|
||||
// Selezione giorno dal mese (chiude la vista mese!)
|
||||
private async Task SelezionaDataDalMese(DateTime day)
|
||||
{
|
||||
var giornoSettimana = DateFilter!.Value.DayOfWeek;
|
||||
var diffInizio = (7 + (giornoSettimana - DayOfWeek.Monday)) % 7;
|
||||
|
||||
DateRangeFilter.Start = DateFilter!.Value.AddDays(-diffInizio).Date;
|
||||
DateRangeFilter.End = DateRangeFilter.Start.Value.AddDays(6);
|
||||
}
|
||||
|
||||
private async Task CloseDatePicker()
|
||||
{
|
||||
DateTimeForMonthView = new DateTime(DateFilter!.Value.Year, DateFilter!.Value.Month, 1);
|
||||
CalcDateRange();
|
||||
await Task.Delay(150);
|
||||
|
||||
_isVisible = false;
|
||||
SelectedDate = day;
|
||||
FilteredActivities = GetEventsForDay(day);
|
||||
// Chiudi la vista mese e passa alla settimana, con animazione
|
||||
SliderAnimation = "collapse-animation";
|
||||
StateHasChanged();
|
||||
Expanded = false;
|
||||
_internalMonth = new DateTime(day.Year, day.Month, 1); // Sync il mese visualizzato
|
||||
SliderAnimation = "";
|
||||
StateHasChanged();
|
||||
await LoadMonthData(); // Aggiorna anche la lista attività (se hai cambiato mese)
|
||||
}
|
||||
|
||||
// Utility
|
||||
private static bool IsSameDay(DateTime d1, DateTime d2) => d1.Date == d2.Date;
|
||||
|
||||
private static DateTime GetStartOfWeek(DateTime date)
|
||||
{
|
||||
var day = date.DayOfWeek == DayOfWeek.Sunday ? 7 : (int)date.DayOfWeek;
|
||||
return date.AddDays(-day + 1).Date;
|
||||
}
|
||||
|
||||
private List<ActivityDTO> GetEventsForDay(DateTime day)
|
||||
=> MonthActivities?.Where(x => (x.EffectiveDate ?? x.EstimatedDate) == day.Date).ToList() ?? [];
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
dotNetHelper?.Dispose();
|
||||
}
|
||||
|
||||
private void OpenActivityForm() =>
|
||||
NavigationManager.NavigateTo("/activity");
|
||||
|
||||
}
|
||||
@@ -1,32 +1,151 @@
|
||||
.activity-filter { margin-top: .2rem; }
|
||||
.arrow-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--mud-palette-primary);
|
||||
font-size: 1.4rem;
|
||||
padding: 0 0.5rem;
|
||||
cursor: pointer;
|
||||
line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.card-container {
|
||||
margin-top: .2rem;
|
||||
.arrow-btn:active { color: #2a27b2; }
|
||||
|
||||
.calendar {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.week-slider {
|
||||
width: 100%;
|
||||
transition: all 0.4s ease;
|
||||
transform-origin: center center;
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
touch-action: pan-x;
|
||||
user-select: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.week-slider:not(.expanded) {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
gap: 0.6rem;
|
||||
padding: 1rem 0.3rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
.week-slider.expanded {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 0.4rem;
|
||||
padding: 1rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.week-slider.expand-animation { animation: expandFromCenter 0.3s ease forwards; }
|
||||
|
||||
.week-slider.collapse-animation { animation: collapseToCenter 0.3s ease forwards; }
|
||||
|
||||
@keyframes expandFromCenter {
|
||||
from {
|
||||
transform: scaleY(0.6);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes collapseToCenter {
|
||||
from {
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
to {
|
||||
transform: scaleY(0.6);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.week-day {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
gap: 1rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.date-controller {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
max-width: 60px;
|
||||
flex: 1 1 0;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.content ::deep > .custom-mudButtonGroup {
|
||||
width: 100%;
|
||||
.week-day > div:first-child {
|
||||
font-size: 0.8rem;
|
||||
color: var(--mud-palette-primary);
|
||||
margin-bottom: 0.2rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.content ::deep > .custom-mudButtonGroup .mud-button-root {
|
||||
border-radius: 12px;
|
||||
padding: .2rem 1.5rem;
|
||||
text-transform: none !important;
|
||||
font-size: .985rem;
|
||||
border: 1px solid var(--mud-palette-gray-light);
|
||||
.day {
|
||||
background: var(--mud-palette-surface);
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease, transform 0.2s ease;
|
||||
font-size: 0.95rem;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.content ::deep > .custom-mudButtonGroup .custom-button-active {
|
||||
background-color: hsl(from var(--mud-palette-primary) h s 95%);
|
||||
.day:hover { transform: scale(1.08); }
|
||||
|
||||
.week-slider:not(.expanded) .day {
|
||||
padding: 0;
|
||||
min-width: 38px;
|
||||
min-height: 38px;
|
||||
max-width: 48px;
|
||||
max-height: 48px;
|
||||
}
|
||||
|
||||
.day.selected {
|
||||
background: var(--mud-palette-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.appointments {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
overflow-y: auto;
|
||||
flex-direction: column;
|
||||
height: 70vh;
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.appointments::-webkit-scrollbar { display: none; }
|
||||
|
||||
.appointment {
|
||||
background: var(--mud-palette-surface);
|
||||
border-radius: 8px;
|
||||
padding: 0.8rem;
|
||||
margin-bottom: 0.5rem;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.toggle-month {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--mud-palette-primary);
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -5,24 +5,43 @@
|
||||
<HeaderLayout BackTo="@BackTo" ShowNotifications="false" Back="true" Title="Impostazioni"/>
|
||||
|
||||
<div class="content">
|
||||
<MudButton Class="user-button"
|
||||
<MudButton Class="button-settings"
|
||||
FullWidth="true"
|
||||
Size="Size.Medium"
|
||||
StartIcon="@Icons.Material.Outlined.Sync"
|
||||
OnClick="UpdateDb"
|
||||
Variant="Variant.Outlined">Sincronizza</MudButton>
|
||||
Size="Size.Medium"
|
||||
OnClick="() => UpdateDb(true)"
|
||||
Variant="Variant.Outlined">
|
||||
Sincronizza
|
||||
</MudButton>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<MudButton Class="button-settings"
|
||||
FullWidth="true"
|
||||
StartIcon="@Icons.Material.Outlined.Sync"
|
||||
Size="Size.Medium"
|
||||
OnClick="() => UpdateDb()"
|
||||
Variant="Variant.Outlined">
|
||||
Ripristina dati
|
||||
</MudButton>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter] public string BackTo { get; set; } = "";
|
||||
|
||||
private void UpdateDb()
|
||||
private void UpdateDb(bool withData = false)
|
||||
{
|
||||
var absoluteUri = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
|
||||
var pathAndQuery = absoluteUri.Segments.Length > 1 ? absoluteUri.PathAndQuery : null;
|
||||
|
||||
var path = pathAndQuery == null ? $"/sync/{DateTime.Today:yyyy-MM-dd}" : $"/sync/{DateTime.Today:yyyy-MM-dd}?path=" + System.Web.HttpUtility.UrlEncode(pathAndQuery);
|
||||
string path;
|
||||
|
||||
NavigationManager.NavigateTo(path);
|
||||
if (withData)
|
||||
path = pathAndQuery == null ? $"/sync/{DateTime.Today:yyyy-MM-dd}" : $"/sync/{DateTime.Today:yyyy-MM-dd}?path=" + System.Web.HttpUtility.UrlEncode(pathAndQuery);
|
||||
else
|
||||
path = pathAndQuery == null ? "/sync" : "/sync?path=" + System.Web.HttpUtility.UrlEncode(pathAndQuery);
|
||||
|
||||
NavigationManager.NavigateTo(path, replace: true);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
@using Template.Shared.Components.Layout.Spinner
|
||||
@using Template.Shared.Core.Interface
|
||||
@inject ISyncDbService syncDb
|
||||
@inject IManageDataService manageData
|
||||
|
||||
<SyncSpinner Elements="@Elements"/>
|
||||
|
||||
@@ -11,44 +12,88 @@
|
||||
|
||||
private Dictionary<string, bool> Elements { get; set; } = new();
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
private bool _hasStarted = false;
|
||||
private int _completedCount = 0;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Elements.Add("Attività", false);
|
||||
Elements.Add("Clienti", false);
|
||||
Elements.Add("Commesse", false);
|
||||
StateHasChanged();
|
||||
Elements["Attività"] = false;
|
||||
Elements["Commesse"] = false;
|
||||
Elements["Clienti"] = false;
|
||||
Elements["Prospect"] = false;
|
||||
}
|
||||
|
||||
await Task.WhenAll(SetActivity(), SetClienti(), SetCommesse());
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender && !_hasStarted)
|
||||
{
|
||||
_hasStarted = true;
|
||||
|
||||
if (DateFilter is null)
|
||||
{
|
||||
await manageData.ClearDb();
|
||||
}
|
||||
|
||||
await Task.WhenAll(RunAndTrack(SetActivity), RunAndTrack(SetClienti), RunAndTrack(SetProspect), RunAndTrack(SetCommesse));
|
||||
}
|
||||
}
|
||||
|
||||
private async Task RunAndTrack(Func<Task> func)
|
||||
{
|
||||
await func();
|
||||
|
||||
_completedCount++;
|
||||
if (_completedCount == Elements.Count)
|
||||
{
|
||||
LocalStorage.Set("last-sync", DateTime.Now);
|
||||
|
||||
var pathQuery = System.Web.HttpUtility.ParseQueryString(new UriBuilder(NavigationManager.Uri).Query);
|
||||
var originalPath = pathQuery["path"] ?? null;
|
||||
var path = originalPath ?? "/Calendar";
|
||||
|
||||
NavigationManager.NavigateTo(path);
|
||||
NavigationManager.NavigateTo(path, replace: true);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task SetActivity()
|
||||
{
|
||||
await Task.Run(async () =>
|
||||
{
|
||||
await syncDb.GetAndSaveActivity(DateFilter);
|
||||
});
|
||||
|
||||
Elements["Attività"] = true;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task SetClienti()
|
||||
{
|
||||
await Task.Run(async () =>
|
||||
{
|
||||
await syncDb.GetAndSaveClienti(DateFilter);
|
||||
await syncDb.GetAndSaveProspect(DateFilter);
|
||||
});
|
||||
|
||||
Elements["Clienti"] = true;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task SetProspect()
|
||||
{
|
||||
await Task.Run(async () =>
|
||||
{
|
||||
await syncDb.GetAndSaveProspect(DateFilter);
|
||||
});
|
||||
|
||||
Elements["Prospect"] = true;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task SetCommesse()
|
||||
{
|
||||
await Task.Run(async () =>
|
||||
{
|
||||
await syncDb.GetAndSaveCommesse(DateFilter);
|
||||
});
|
||||
|
||||
Elements["Commesse"] = true;
|
||||
StateHasChanged();
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
@using ConSegna.Shared.Core.Helpers
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Interface
|
||||
@using Template.Shared.Components.Layout.Spinner
|
||||
@inject IManageDataService manageData
|
||||
|
||||
<div class="calendar">
|
||||
@if (Load)
|
||||
{
|
||||
<SpinnerLayout FullScreen="false" />
|
||||
}
|
||||
else
|
||||
{
|
||||
@if (!Activities.IsNullOrEmpty())
|
||||
{
|
||||
@foreach (var activity in Activities!)
|
||||
@@ -15,6 +21,7 @@
|
||||
{
|
||||
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,7 +30,8 @@
|
||||
[Parameter] public required DateTime? Date { get; set; }
|
||||
[Parameter] public EventCallback<DateTime?> DateChanged { get; set; }
|
||||
|
||||
private List<ActivityDTO>? Activities { get; set; } = null;
|
||||
private List<ActivityDTO>? Activities { get; set; }
|
||||
private bool Load { get; set; } = true;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
@@ -40,9 +48,13 @@
|
||||
|
||||
private async Task LoadData()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
Load = true;
|
||||
StateHasChanged();
|
||||
|
||||
await Task.Delay(500);
|
||||
var refreshActivity = await RefreshActivity();
|
||||
Activities = refreshActivity;
|
||||
Load = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
.calendar::-webkit-scrollbar { display: none; }
|
||||
|
||||
|
||||
.calendar {
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<div class="calendar">
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Interface
|
||||
@inject IManageDataService manageData
|
||||
|
||||
<div class="calendar-activity">
|
||||
<div class="calendar">
|
||||
@foreach (var nomeGiorno in _giorniSettimana)
|
||||
{
|
||||
<div class="calendar-header">@nomeGiorno</div>
|
||||
@@ -13,21 +18,30 @@
|
||||
{
|
||||
var currentDate = new DateTime(Date.Year, Date.Month, day);
|
||||
var events = GetEventsForDay(currentDate);
|
||||
var daySelected = SelectedDate == currentDate;
|
||||
var isToday = currentDate == DateTime.Today;
|
||||
|
||||
var topRight = StartDays == 0 ? 7 : 7 - StartDays;
|
||||
var bottomLeft = DaysInMonth - (6 - EndDays);
|
||||
|
||||
<div class="calendar-day @(isToday ? "today" : "")
|
||||
var categoryActivityCount = events.Select(x => x.Category).Distinct().ToList();
|
||||
|
||||
<div @onclick="() => SelectDay(currentDate)" class="calendar-day @(isToday ? "today" : daySelected ? "selectedDay" : "")
|
||||
@(StartDays == 0 && day == 1 ? "radiusTopLeft" : "")
|
||||
@(EndDays == 0 && day == DaysInMonth ? "radiusBottomRight" : "")
|
||||
@(bottomLeft == day ? "radiusBottomLeft" : "")
|
||||
@(topRight == day ? "radiusTopRight" : "")">
|
||||
|
||||
<div class="calendar-day-wrapper">
|
||||
<span class="titleDay">@day</span>
|
||||
@if (events.Any())
|
||||
{
|
||||
<div class="event-dot"></div>
|
||||
<div class="event-dot-container">
|
||||
@foreach (var activityCategory in categoryActivityCount)
|
||||
{
|
||||
<div class="event-dot @activityCategory.ConvertToHumanReadable()"></div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,12 +53,25 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="activityContainer">
|
||||
@if (!FilteredActivityList.IsNullOrEmpty())
|
||||
{
|
||||
@foreach (var activity in FilteredActivityList!)
|
||||
{
|
||||
<ActivityCard Activity="activity"/>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter] public required DateTime Date { get; set; }
|
||||
[Parameter] public EventCallback<DateTime> DateChanged { get; set; }
|
||||
|
||||
private List<CalendarEvent> Events { get; set; }
|
||||
private List<ActivityDTO> ActivityList { get; set; } = [];
|
||||
private List<ActivityDTO> FilteredActivityList { get; set; } = [];
|
||||
private DateTime SelectedDate { get; set; } = DateTime.Today;
|
||||
|
||||
private int DaysInMonth { get; set; }
|
||||
private int StartDays { get; set; }
|
||||
@@ -52,17 +79,17 @@
|
||||
|
||||
readonly string[] _giorniSettimana = ["Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"];
|
||||
|
||||
protected override void OnInitialized()
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
ChangeMonth();
|
||||
await ChangeMonth();
|
||||
}
|
||||
|
||||
protected override void OnParametersSet()
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
ChangeMonth();
|
||||
await ChangeMonth();
|
||||
}
|
||||
|
||||
private void ChangeMonth()
|
||||
private async Task ChangeMonth()
|
||||
{
|
||||
var firstDay = Date;
|
||||
DaysInMonth = DateTime.DaysInMonth(firstDay.Year, firstDay.Month);
|
||||
@@ -74,23 +101,50 @@
|
||||
var totalCell = tempTotalCell * 7;
|
||||
EndDays = totalCell - (DaysInMonth + StartDays);
|
||||
|
||||
Events =
|
||||
[
|
||||
new CalendarEvent { Date = DateTime.Today, Title = "Meeting", Time = "10:00" },
|
||||
new CalendarEvent { Date = DateTime.Today.AddDays(2), Title = "Dentista", Time = "15:30" },
|
||||
new CalendarEvent { Date = DateTime.Today.AddDays(5), Title = "Scadenza", Time = "Tutto il giorno" }
|
||||
];
|
||||
await LoadData();
|
||||
}
|
||||
|
||||
private List<CalendarEvent> GetEventsForDay(DateTime day)
|
||||
private async Task LoadData()
|
||||
{
|
||||
return Events.Where(e => e.Date.Date == day.Date).ToList();
|
||||
// Load = true;
|
||||
// StateHasChanged();
|
||||
|
||||
await Task.Delay(500);
|
||||
var refreshActivity = await RefreshActivity();
|
||||
ActivityList = refreshActivity;
|
||||
// Load = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
public class CalendarEvent
|
||||
private async Task<List<ActivityDTO>> RefreshActivity()
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
public string Title { get; set; } = "";
|
||||
public string Time { get; set; } = "";
|
||||
var startDate = Date;
|
||||
var endDate = Date.AddDays(DateTime.DaysInMonth(startDate.Year, startDate.Month) - 1);
|
||||
|
||||
var dateRange = new DateRange(Date, endDate);
|
||||
|
||||
var activityDto = await Task.Run(async () =>
|
||||
{
|
||||
return (await manageData.GetActivity(x =>
|
||||
(x.EffectiveDate == null && x.EstimatedDate >= dateRange.Start && x.EstimatedDate <= dateRange.End) ||
|
||||
(x.EffectiveDate >= dateRange.Start && x.EffectiveDate <= dateRange.End)
|
||||
))
|
||||
.OrderBy(x => x.EffectiveDate ?? x.EstimatedDate)
|
||||
.ToList();
|
||||
});
|
||||
|
||||
return activityDto;
|
||||
}
|
||||
|
||||
private List<ActivityDTO> GetEventsForDay(DateTime day)
|
||||
{
|
||||
return ActivityList.IsNullOrEmpty() ? [] : ActivityList.Where(x => (x.EffectiveDate ?? x.EstimatedDate) == day.Date).ToList();
|
||||
}
|
||||
|
||||
private void SelectDay(DateTime currentDate)
|
||||
{
|
||||
SelectedDate = currentDate;
|
||||
StateHasChanged();
|
||||
FilteredActivityList = GetEventsForDay(currentDate);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
.calendar {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
/*border: 1px solid #ccc;*/
|
||||
}
|
||||
|
||||
.calendar-header, .calendar-day {
|
||||
@@ -31,6 +30,11 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.selectedDay > .calendar-day-wrapper > .titleDay {
|
||||
border: 1px solid var(--mud-palette-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.calendar-day-wrapper > .titleDay {
|
||||
padding: 6px;
|
||||
border-radius: 50%;
|
||||
@@ -38,15 +42,28 @@
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.event-dot-container {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .2rem;
|
||||
}
|
||||
|
||||
.event-dot {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
border-radius: 4px;
|
||||
background-color: var(--mud-palette-secondary);
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.event-dot.memo { background-color: var(--mud-palette-info-darken); }
|
||||
|
||||
.event-dot.interna { background-color: var(--mud-palette-success-darken); }
|
||||
|
||||
.event-dot.commessa { background-color: var(--mud-palette-warning); }
|
||||
|
||||
.calendar-day:hover .event-popup { display: block; }
|
||||
|
||||
.calendar-day-wrapper {
|
||||
@@ -62,3 +79,23 @@
|
||||
.radiusBottomLeft { border-bottom-left-radius: 12px; }
|
||||
|
||||
.radiusBottomRight { border-bottom-right-radius: 12px; }
|
||||
|
||||
.activityContainer { margin-top: 1rem; }
|
||||
|
||||
.calendar-activity {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
gap: 1rem;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.calendar-activity::-webkit-scrollbar { display: none; }
|
||||
|
||||
.calendar-activity {
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
@using ConSegna.Shared.Core.Helpers
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Interface
|
||||
@using Template.Shared.Components.Layout.Spinner
|
||||
@inject IManageDataService manageData
|
||||
|
||||
<div class="calendar">
|
||||
@@ -8,6 +8,12 @@
|
||||
DateTime? currentDate = null;
|
||||
}
|
||||
|
||||
@if (Load)
|
||||
{
|
||||
<SpinnerLayout FullScreen="false"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
@if (!Activities.IsNullOrEmpty())
|
||||
{
|
||||
foreach (var activity in Activities!)
|
||||
@@ -29,6 +35,7 @@
|
||||
{
|
||||
<NoDataAvailable Text="Nessuna attività trovata" ImageSource="_content/Template.Shared/images/undraw_file-search_cbur.svg"/>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@code
|
||||
@@ -37,6 +44,7 @@
|
||||
[Parameter] public EventCallback<DateRange> DateChanged { get; set; }
|
||||
|
||||
private List<ActivityDTO>? Activities { get; set; }
|
||||
private bool Load { get; set; } = true;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
@@ -53,9 +61,13 @@
|
||||
|
||||
private async Task LoadData()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
Load = true;
|
||||
StateHasChanged();
|
||||
|
||||
await Task.Delay(500);
|
||||
var refreshActivity = await RefreshActivity();
|
||||
Activities = refreshActivity;
|
||||
Load = false;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
@@ -63,7 +75,7 @@
|
||||
{
|
||||
var activityDto = await Task.Run(async () =>
|
||||
{
|
||||
return Activities = (await manageData.GetActivity(x =>
|
||||
return (await manageData.GetActivity(x =>
|
||||
(x.EffectiveDate == null && x.EstimatedDate >= Date.Start && x.EstimatedDate <= Date.End) ||
|
||||
(x.EffectiveDate >= Date.Start && x.EffectiveDate <= Date.End)
|
||||
))
|
||||
|
||||
@@ -1,7 +1,27 @@
|
||||
@using Template.Shared.Core.Dto
|
||||
@using Template.Shared.Core.Helpers.Enum
|
||||
|
||||
<div class="activity-card @Activity.Category.ConvertToHumanReadable()">
|
||||
<div class="activity-card @Activity.Category.ConvertToHumanReadable()" @onclick="() => OpenActivityForm(Activity.ActivityId)">
|
||||
<div class="activity-left-section">
|
||||
<div class="activity-body-section">
|
||||
<div class="title-section">
|
||||
<MudText Class="activity-title" Typo="Typo.body1" HtmlTag="h3">
|
||||
@switch (Activity.Category)
|
||||
{
|
||||
case ActivityCategoryEnum.Commessa:
|
||||
@Activity.Commessa
|
||||
break;
|
||||
case ActivityCategoryEnum.Interna:
|
||||
@Activity.Cliente
|
||||
break;
|
||||
case ActivityCategoryEnum.Memo:
|
||||
@Activity.ActivityDescription
|
||||
break;
|
||||
default:
|
||||
@("")
|
||||
break;
|
||||
}
|
||||
</MudText>
|
||||
<div class="activity-hours-section">
|
||||
<span class="activity-hours">
|
||||
@if (Activity.EffectiveTime is null)
|
||||
@@ -13,19 +33,25 @@
|
||||
@($"{Activity.EffectiveTime:t}")
|
||||
}
|
||||
</span>
|
||||
@if (Durata != null)
|
||||
{
|
||||
<MudChip T="string" Icon="@IconConstants.Chip.Time" Color="Color.Dark" Size="Size.Small">@($"{Durata.Value.TotalHours:####}h")</MudChip>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="activity-body-section">
|
||||
<MudText Class="activity-title" Typo="Typo.button" HtmlTag="h3">@Activity.Commessa</MudText>
|
||||
<MudText Class="activity-subtitle" Typo="Typo.caption">@Activity.ActivityDescription</MudText>
|
||||
</div>
|
||||
@if (Activity.Category != ActivityCategoryEnum.Memo)
|
||||
{
|
||||
<MudText Class="activity-subtitle" Typo="Typo.body1" HtmlTag="p">@Activity.ActivityDescription</MudText>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="activity-info-section">
|
||||
@if (Durata != null && (Durata.Value.TotalHours > 0 || Durata.Value.Minutes > 0))
|
||||
{
|
||||
var ore = (int)Durata.Value.TotalHours;
|
||||
var minuti = Durata.Value.Minutes;
|
||||
|
||||
<MudChip T="string" Icon="@IconConstants.Chip.Time" Color="Color.Dark" Size="Size.Small">
|
||||
@(ore > 0 ? $"{ore}h{(minuti > 0 ? $" {minuti}m" : "")}" : $"{minuti}m")
|
||||
</MudChip>
|
||||
}
|
||||
@if (Activity.ActivityResultId != null)
|
||||
{
|
||||
<MudChip T="string" Icon="@IconConstants.Chip.Stato" Size="Size.Small" Color="Color.Success">@Activity.ActivityResultId</MudChip>
|
||||
@@ -38,7 +64,6 @@
|
||||
[Parameter] public ActivityDTO Activity { get; set; } = new();
|
||||
|
||||
private TimeSpan? Durata { get; set; }
|
||||
private Color ColorStatus { get; set; }
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
@@ -46,7 +71,15 @@
|
||||
{
|
||||
{ EffectiveTime: not null, EffectiveEndtime: not null } => Activity.EffectiveEndtime.Value - Activity.EffectiveTime.Value,
|
||||
{ EstimatedTime: not null, EstimatedEndtime: not null } => Activity.EstimatedEndtime.Value - Activity.EstimatedTime.Value,
|
||||
_ => Durata
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
|
||||
private void OpenActivityForm(string? activityId)
|
||||
{
|
||||
var url = "/activity";
|
||||
url = !activityId.IsNullOrEmpty() ? $"{url}/{activityId}" : url;
|
||||
|
||||
NavigationManager.NavigateTo(url);
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
.activity-card {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: .5rem .7rem;
|
||||
flex-direction: column;
|
||||
padding: .5rem .5rem;
|
||||
border-radius: 12px;
|
||||
line-height: normal;
|
||||
border: 1px solid var(--card-border-color);
|
||||
box-shadow: var(--card-shadow);
|
||||
}
|
||||
|
||||
.activity-card.memo { border-left: 5px solid var(--mud-palette-info-darken); }
|
||||
@@ -20,13 +17,14 @@
|
||||
.activity-left-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.activity-hours-section {
|
||||
width: min-content;
|
||||
.title-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.activity-hours { font-weight: 700; }
|
||||
@@ -34,22 +32,24 @@
|
||||
.activity-hours-section ::deep .mud-chip { margin: 5px 0 0 !important; }
|
||||
|
||||
.activity-body-section {
|
||||
width: fit-content;
|
||||
margin: 0 1rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.activity-body-section ::deep > .activity-title {
|
||||
.title-section ::deep > .activity-title {
|
||||
font-weight: 800 !important;
|
||||
margin: 0 0 .2rem 0 !important;
|
||||
margin: 0 !important;
|
||||
line-height: normal !important;
|
||||
}
|
||||
|
||||
.activity-body-section ::deep > .activity-subtitle {
|
||||
font-size: smaller;
|
||||
color: var(--mud-palette-gray-darker);
|
||||
margin: .2rem 0 !important;
|
||||
line-height: normal !important;
|
||||
}
|
||||
|
||||
.activity-info-section { width: min-content; }
|
||||
.activity-info-section {
|
||||
width: min-content;
|
||||
display: flex;
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
.no-data {
|
||||
position: fixed;
|
||||
top: 35%;
|
||||
margin-top: 2rem;
|
||||
width: calc(100vw - (var(--bs-gutter-x) * .5) * 2);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,5 +6,92 @@ namespace Template.Shared.Core.Dto;
|
||||
public class ActivityDTO : StbActivity
|
||||
{
|
||||
public string? Commessa { get; set; }
|
||||
public string? Cliente { get; set; }
|
||||
public ActivityCategoryEnum Category { get; set; }
|
||||
public bool Complete { get; set; }
|
||||
|
||||
private sealed class ActivityDtoEqualityComparer : IEqualityComparer<ActivityDTO>
|
||||
{
|
||||
public bool Equals(ActivityDTO? x, ActivityDTO? y)
|
||||
{
|
||||
if (ReferenceEquals(x, y)) return true;
|
||||
if (x is null) return false;
|
||||
if (y is null) return false;
|
||||
if (x.GetType() != y.GetType()) return false;
|
||||
return x.ActivityId == y.ActivityId && x.ActivityResultId == y.ActivityResultId && x.ActivityTypeId == y.ActivityTypeId && x.DataInsAct.Equals(y.DataInsAct) && x.ActivityDescription == y.ActivityDescription && x.ParentActivityId == y.ParentActivityId && x.TipoAnag == y.TipoAnag && x.CodAnag == y.CodAnag && x.CodJcom == y.CodJcom && x.CodJfas == y.CodJfas && Nullable.Equals(x.EstimatedDate, y.EstimatedDate) && Nullable.Equals(x.EstimatedTime, y.EstimatedTime) && Nullable.Equals(x.AlarmDate, y.AlarmDate) && Nullable.Equals(x.AlarmTime, y.AlarmTime) && Nullable.Equals(x.EffectiveDate, y.EffectiveDate) && Nullable.Equals(x.EffectiveTime, y.EffectiveTime) && x.ResultDescription == y.ResultDescription && Nullable.Equals(x.EstimatedEnddate, y.EstimatedEnddate) && Nullable.Equals(x.EstimatedEndtime, y.EstimatedEndtime) && Nullable.Equals(x.EffectiveEnddate, y.EffectiveEnddate) && Nullable.Equals(x.EffectiveEndtime, y.EffectiveEndtime) && x.UserCreator == y.UserCreator && x.UserName == y.UserName && Nullable.Equals(x.PercComp, y.PercComp) && Nullable.Equals(x.EstimatedHours, y.EstimatedHours) && x.CodMart == y.CodMart && x.PartitaMag == y.PartitaMag && x.Matricola == y.Matricola && x.Priorita == y.Priorita && Nullable.Equals(x.ActivityPlayCounter, y.ActivityPlayCounter) && x.ActivityEvent == y.ActivityEvent && x.Guarantee == y.Guarantee && x.Note == y.Note && x.Rfid == y.Rfid && x.IdLotto == y.IdLotto && x.PersonaRif == y.PersonaRif && x.HrNum == y.HrNum && x.Gestione == y.Gestione && Nullable.Equals(x.DataOrd, y.DataOrd) && x.NumOrd == y.NumOrd && x.IdStep == y.IdStep && x.IdRiga == y.IdRiga && Nullable.Equals(x.OraInsAct, y.OraInsAct) && x.IndiceGradimento == y.IndiceGradimento && x.NoteGradimento == y.NoteGradimento && x.FlagRisolto == y.FlagRisolto && x.FlagTipologia == y.FlagTipologia && x.OreRapportino == y.OreRapportino && x.UserModifier == y.UserModifier && Nullable.Equals(x.OraModAct, y.OraModAct) && Nullable.Equals(x.OraViewAct, y.OraViewAct) && x.CodVdes == y.CodVdes && x.CodCmac == y.CodCmac && x.WrikeId == y.WrikeId && x.CodMgrp == y.CodMgrp && x.PlanId == y.PlanId && x.Commessa == y.Commessa && x.Cliente == y.Cliente && x.Category == y.Category && x.Complete == y.Complete;
|
||||
}
|
||||
|
||||
public int GetHashCode(ActivityDTO obj)
|
||||
{
|
||||
var hashCode = new HashCode();
|
||||
hashCode.Add(obj.ActivityId);
|
||||
hashCode.Add(obj.ActivityResultId);
|
||||
hashCode.Add(obj.ActivityTypeId);
|
||||
hashCode.Add(obj.DataInsAct);
|
||||
hashCode.Add(obj.ActivityDescription);
|
||||
hashCode.Add(obj.ParentActivityId);
|
||||
hashCode.Add(obj.TipoAnag);
|
||||
hashCode.Add(obj.CodAnag);
|
||||
hashCode.Add(obj.CodJcom);
|
||||
hashCode.Add(obj.CodJfas);
|
||||
hashCode.Add(obj.EstimatedDate);
|
||||
hashCode.Add(obj.EstimatedTime);
|
||||
hashCode.Add(obj.AlarmDate);
|
||||
hashCode.Add(obj.AlarmTime);
|
||||
hashCode.Add(obj.EffectiveDate);
|
||||
hashCode.Add(obj.EffectiveTime);
|
||||
hashCode.Add(obj.ResultDescription);
|
||||
hashCode.Add(obj.EstimatedEnddate);
|
||||
hashCode.Add(obj.EstimatedEndtime);
|
||||
hashCode.Add(obj.EffectiveEnddate);
|
||||
hashCode.Add(obj.EffectiveEndtime);
|
||||
hashCode.Add(obj.UserCreator);
|
||||
hashCode.Add(obj.UserName);
|
||||
hashCode.Add(obj.PercComp);
|
||||
hashCode.Add(obj.EstimatedHours);
|
||||
hashCode.Add(obj.CodMart);
|
||||
hashCode.Add(obj.PartitaMag);
|
||||
hashCode.Add(obj.Matricola);
|
||||
hashCode.Add(obj.Priorita);
|
||||
hashCode.Add(obj.ActivityPlayCounter);
|
||||
hashCode.Add(obj.ActivityEvent);
|
||||
hashCode.Add(obj.Guarantee);
|
||||
hashCode.Add(obj.Note);
|
||||
hashCode.Add(obj.Rfid);
|
||||
hashCode.Add(obj.IdLotto);
|
||||
hashCode.Add(obj.PersonaRif);
|
||||
hashCode.Add(obj.HrNum);
|
||||
hashCode.Add(obj.Gestione);
|
||||
hashCode.Add(obj.DataOrd);
|
||||
hashCode.Add(obj.NumOrd);
|
||||
hashCode.Add(obj.IdStep);
|
||||
hashCode.Add(obj.IdRiga);
|
||||
hashCode.Add(obj.OraInsAct);
|
||||
hashCode.Add(obj.IndiceGradimento);
|
||||
hashCode.Add(obj.NoteGradimento);
|
||||
hashCode.Add(obj.FlagRisolto);
|
||||
hashCode.Add(obj.FlagTipologia);
|
||||
hashCode.Add(obj.OreRapportino);
|
||||
hashCode.Add(obj.UserModifier);
|
||||
hashCode.Add(obj.OraModAct);
|
||||
hashCode.Add(obj.OraViewAct);
|
||||
hashCode.Add(obj.CodVdes);
|
||||
hashCode.Add(obj.CodCmac);
|
||||
hashCode.Add(obj.WrikeId);
|
||||
hashCode.Add(obj.CodMgrp);
|
||||
hashCode.Add(obj.PlanId);
|
||||
hashCode.Add(obj.Commessa);
|
||||
hashCode.Add(obj.Cliente);
|
||||
hashCode.Add((int)obj.Category);
|
||||
hashCode.Add(obj.Complete);
|
||||
return hashCode.ToHashCode();
|
||||
}
|
||||
}
|
||||
|
||||
public static IEqualityComparer<ActivityDTO> ActivityDtoComparer { get; } = new ActivityDtoEqualityComparer();
|
||||
|
||||
public ActivityDTO Clone()
|
||||
{
|
||||
return (ActivityDTO)MemberwiseClone();
|
||||
}
|
||||
}
|
||||
6
Template.Shared/Core/Dto/ActivityResultDTO.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Template.Shared.Core.Dto;
|
||||
|
||||
public class ActivityResultDTO
|
||||
{
|
||||
public string ActivityResultId { get; set; }
|
||||
}
|
||||
@@ -1,12 +1,22 @@
|
||||
using Template.Shared.Core.Entity;
|
||||
using System.Text.Json.Serialization;
|
||||
using Template.Shared.Core.Entity;
|
||||
|
||||
namespace Template.Shared.Core.Dto;
|
||||
|
||||
public class TaskSyncResponseDTO
|
||||
{
|
||||
[JsonPropertyName("anagClie")]
|
||||
public List<AnagClie>? AnagClie { get; set; }
|
||||
|
||||
[JsonPropertyName("vtbDest")]
|
||||
public List<VtbDest>? VtbDest { get; set; }
|
||||
|
||||
[JsonPropertyName("vtbCliePersRif")]
|
||||
public List<VtbCliePersRif>? VtbCliePersRif { get; set; }
|
||||
|
||||
[JsonPropertyName("ptbPros")]
|
||||
public List<PtbPros>? PtbPros { get; set; }
|
||||
|
||||
[JsonPropertyName("ptbProsRif")]
|
||||
public List<PtbProsRif>? PtbProsRif { get; set; }
|
||||
}
|
||||
@@ -6,10 +6,10 @@ namespace Template.Shared.Core.Entity;
|
||||
[Table("ptb_pros_rif")]
|
||||
public class PtbProsRif
|
||||
{
|
||||
[PrimaryKey, Column("cod_ppro"), JsonPropertyName("codPpro")]
|
||||
[Column("cod_ppro"), JsonPropertyName("codPpro"), Indexed(Name = "PtbProsRifPK", Order = 1, Unique = true)]
|
||||
public string CodPpro { get; set; }
|
||||
|
||||
[PrimaryKey, Column("id_pers_rif"), JsonPropertyName("idPersRif")]
|
||||
[Column("id_pers_rif"), JsonPropertyName("idPersRif"), Indexed(Name = "PtbProsRifPK", Order = 2, Unique = true)]
|
||||
public int IdPersRif { get; set; }
|
||||
|
||||
[Column("persona_rif"), JsonPropertyName("personaRif")]
|
||||
|
||||
@@ -6,10 +6,10 @@ namespace Template.Shared.Core.Entity;
|
||||
[Table("vtb_clie_pers_rif")]
|
||||
public class VtbCliePersRif
|
||||
{
|
||||
[PrimaryKey, Column("id_pers_rif"), JsonPropertyName("idPersRif")]
|
||||
[Column("id_pers_rif"), JsonPropertyName("idPersRif"), Indexed(Name = "VtbCliePersRifPK", Order = 1, Unique = true)]
|
||||
public int IdPersRif { get; set; }
|
||||
|
||||
[PrimaryKey, Column("cod_anag"), JsonPropertyName("codAnag")]
|
||||
[Column("cod_anag"), JsonPropertyName("codAnag"), Indexed(Name = "VtbCliePersRifPK", Order = 2, Unique = true)]
|
||||
public string CodAnag { get; set; }
|
||||
|
||||
[Column("persona_rif"), JsonPropertyName("personaRif")]
|
||||
|
||||
@@ -6,10 +6,10 @@ namespace Template.Shared.Core.Entity;
|
||||
[Table("vtb_dest")]
|
||||
public class VtbDest
|
||||
{
|
||||
[PrimaryKey, Column("cod_anag"), JsonPropertyName("codAnag")]
|
||||
[Column("cod_anag"), JsonPropertyName("codAnag"), Indexed(Name = "VtbDestPK", Order = 1, Unique = true)]
|
||||
public string CodAnag { get; set; }
|
||||
|
||||
[PrimaryKey, Column("cod_vdes"), JsonPropertyName("codVdes")]
|
||||
[Column("cod_vdes"), JsonPropertyName("codVdes"), Indexed(Name = "VtbDestPK", Order = 2, Unique = true)]
|
||||
public string CodVdes { get; set; }
|
||||
|
||||
[Column("destinatario"), JsonPropertyName("destinatario")]
|
||||
|
||||
@@ -9,7 +9,7 @@ public static class ActivityCategoryHelper
|
||||
return activityType switch
|
||||
{
|
||||
ActivityCategoryEnum.Memo => "memo",
|
||||
ActivityCategoryEnum.Interna => "inerna",
|
||||
ActivityCategoryEnum.Interna => "interna",
|
||||
ActivityCategoryEnum.Commessa => "commessa",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(activityType), activityType, null)
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections;
|
||||
|
||||
namespace ConSegna.Shared.Core.Helpers;
|
||||
namespace Template.Shared.Core.Helpers;
|
||||
|
||||
public static class ObjectExtensions
|
||||
{
|
||||
|
||||
@@ -15,4 +15,6 @@ public interface IManageDataService
|
||||
Task<List<VtbDest>> GetVtbDest(Expression<Func<VtbDest, bool>>? whereCond = null);
|
||||
|
||||
Task<List<ActivityDTO>> GetActivity(Expression<Func<StbActivity, bool>>? whereCond = null);
|
||||
|
||||
Task ClearDb();
|
||||
}
|
||||
@@ -13,7 +13,7 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser
|
||||
{
|
||||
var queryParams = new Dictionary<string, object> { { "dateFilter", dateFilter ?? "2020-01-01" } };
|
||||
|
||||
return integryApiRestClient.AuthorizedGet<List<StbActivity>?>("task/getActivity", queryParams);
|
||||
return integryApiRestClient.AuthorizedGet<List<StbActivity>?>("getActivityCrm", queryParams);
|
||||
}
|
||||
|
||||
public Task<List<JtbComt>?> GetAllCommesse(string? dateFilter)
|
||||
@@ -25,7 +25,7 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser
|
||||
queryParams.Add("dateFilter", dateFilter);
|
||||
}
|
||||
|
||||
return integryApiRestClient.AuthorizedGet<List<JtbComt>?>("task/getCommesse", queryParams);
|
||||
return integryApiRestClient.AuthorizedGet<List<JtbComt>?>("getCommesseCrm", queryParams);
|
||||
}
|
||||
|
||||
public Task<TaskSyncResponseDTO> GetAnagClie(string? dateFilter)
|
||||
@@ -37,7 +37,7 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser
|
||||
queryParams.Add("dateFilter", dateFilter);
|
||||
}
|
||||
|
||||
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("task/getAnagClie", queryParams)!;
|
||||
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("getAnagClieCrm", queryParams)!;
|
||||
}
|
||||
|
||||
public Task<TaskSyncResponseDTO> GetProspect(string? dateFilter)
|
||||
@@ -49,6 +49,6 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser
|
||||
queryParams.Add("dateFilter", dateFilter);
|
||||
}
|
||||
|
||||
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("task/getProspect", queryParams)!;
|
||||
return integryApiRestClient.AuthorizedGet<TaskSyncResponseDTO>("getProspectCrm", queryParams)!;
|
||||
}
|
||||
}
|
||||
@@ -8,4 +8,12 @@ public static class UtilityString
|
||||
.Split(' ', StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(word => char.ToUpper(word[0])));
|
||||
}
|
||||
|
||||
public static string FirstCharToUpper(this string input) =>
|
||||
input switch
|
||||
{
|
||||
null => throw new ArgumentNullException(nameof(input)),
|
||||
"" => throw new ArgumentException($"{nameof(input)} cannot be empty", nameof(input)),
|
||||
_ => input[0].ToString().ToUpper() + input.Substring(1)
|
||||
};
|
||||
}
|
||||
@@ -13,11 +13,11 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="14.0.0"/>
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
|
||||
<PackageReference Include="IntegryApiClient.Core" Version="1.1.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.4" />
|
||||
<PackageReference Include="IntegryApiClient.Core" Version="1.1.4"/>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.5"/>
|
||||
<PackageReference Include="sqlite-net-pcl" Version="1.9.172"/>
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.4" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.11.0"/>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.5"/>
|
||||
<PackageReference Include="MudBlazor" Version="8.6.0"/>
|
||||
<PackageReference Include="MudBlazor.ThemeManager" Version="3.0.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
@using Template.Shared.Components.SingleElements.Card
|
||||
@using Microsoft.AspNetCore.Components.Authorization
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Template.Shared.Core.Utility
|
||||
@using static InteractiveRenderSettings
|
||||
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
@@ -107,7 +107,7 @@ h1:focus { outline: none; }
|
||||
.divider {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid var(--card-border-color);
|
||||
border: .05rem solid var(--card-border-color);
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
|
||||
41
Template.Shared/wwwroot/js/calendar.js
Normal file
@@ -0,0 +1,41 @@
|
||||
window.calendarSwipe = {
|
||||
register: function (element, dotnetHelper) {
|
||||
let startX = 0;
|
||||
let endX = 0;
|
||||
|
||||
element.addEventListener('touchstart', (e) => {
|
||||
if (e.touches.length === 1) {
|
||||
startX = e.touches[0].clientX;
|
||||
}
|
||||
});
|
||||
|
||||
element.addEventListener('touchend', (e) => {
|
||||
if (e.changedTouches.length === 1) {
|
||||
endX = e.changedTouches[0].clientX;
|
||||
handle();
|
||||
}
|
||||
});
|
||||
|
||||
// Per desktop: mouse drag
|
||||
let mouseDown = false;
|
||||
element.addEventListener('mousedown', (e) => {
|
||||
if (e.button !== 0) return; // solo left mouse
|
||||
mouseDown = true;
|
||||
startX = e.clientX;
|
||||
});
|
||||
element.addEventListener('mouseup', (e) => {
|
||||
if (!mouseDown) return;
|
||||
mouseDown = false;
|
||||
endX = e.clientX;
|
||||
handle();
|
||||
});
|
||||
|
||||
function handle() {
|
||||
let diff = endX - startX;
|
||||
if (Math.abs(diff) > 40) {
|
||||
if (diff < 0) dotnetHelper.invokeMethodAsync('OnSwipeLeft');
|
||||
else dotnetHelper.invokeMethodAsync('OnSwipeRight');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -46,4 +46,9 @@ public class ManageDataService : IManageDataService
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task ClearDb()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor.Services;
|
||||
using Template.Shared.Components;
|
||||
using Template.Shared.Core.Interface;
|
||||
using Template.Shared.Core.Messages;
|
||||
using Template.Shared.Core.Services;
|
||||
using Template.Web.Core.Services;
|
||||
|
||||
@@ -18,6 +19,7 @@ builder.Services.AddScoped<INetworkService, NetworkService>();
|
||||
builder.Services.AddScoped<IIntegryApiService, IntegryApiService>();
|
||||
builder.Services.AddScoped<ISyncDbService, SyncDbService>();
|
||||
builder.Services.AddScoped<IManageDataService, ManageDataService>();
|
||||
builder.Services.AddScoped<BackNavigationService>();
|
||||
|
||||
builder.Services.AddScoped<AppAuthenticationStateProvider>();
|
||||
builder.Services.AddScoped<AuthenticationStateProvider>(provider => provider.GetRequiredService<AppAuthenticationStateProvider>());
|
||||
|
||||
@@ -7,10 +7,19 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="IntegryApiClient.Blazor" Version="1.1.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.4" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.4" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.4" />
|
||||
<Compile Remove="Services\**" />
|
||||
<Content Remove="Services\**" />
|
||||
<EmbeddedResource Remove="Services\**" />
|
||||
<MauiCss Remove="Services\**" />
|
||||
<MauiXaml Remove="Services\**" />
|
||||
<None Remove="Services\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="IntegryApiClient.Blazor" Version="1.1.4" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="9.0.5" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.5" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -18,7 +27,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Services\" />
|
||||
<Folder Include="wwwroot\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||