diff --git a/package-lock.json b/package-lock.json
index b68421a39..7340f71ad 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2030,6 +2030,14 @@
"integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
"dev": true
},
+ "@byteowls/capacitor-filesharer": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@byteowls/capacitor-filesharer/-/capacitor-filesharer-3.0.0.tgz",
+ "integrity": "sha512-7/ZL7eyK/7aZx7A5q2PtKc8s9jWAlHXmPOpINkEeoQ09xZNuKUFR/lxruPDgSJE+4/4wM5M4uxUBYCndmwXOSA==",
+ "requires": {
+ "file-saver": "^2.0.5"
+ }
+ },
"@capacitor-community/camera-preview": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@capacitor-community/camera-preview/-/camera-preview-1.2.1.tgz",
@@ -2069,9 +2077,9 @@
"integrity": "sha512-NAIGWnyHBGQ/dgla/D4KDkAeQ2f3fzw+D+DIkGNH3f1ciX4bXC7lNbDVU67SMOuNt+CmcTJF64q3nVXcpv5JvQ=="
},
"@capacitor/cli": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.3.0.tgz",
- "integrity": "sha512-BkxagJhHG11+0ivFwUOnAhhdwQ1WXoX0WEzqzzGVL9k63hStuIOvPUusp34+G4EcNU01BAJlBt+dgefSvDhOFw==",
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.3.2.tgz",
+ "integrity": "sha512-LmH3DzuwNL3k995CgAs20KXjQhDWrQCQgur3M8nqIKecZk0xCoSGghht+rEK8/Gqn0XqdBGdgUgop+nep17edg==",
"dev": true,
"requires": {
"@ionic/cli-framework-output": "^2.2.1",
@@ -2173,9 +2181,9 @@
}
},
"@capacitor/core": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.3.0.tgz",
- "integrity": "sha512-bKkg/IGALz5OKJPGwtGXoqi4JUXWbuILnZ9J12Mv21fPMFBoszYOiMfm7FqdcCwqcyJWCdG3SQDxCz0Q3e2y8Q==",
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.3.2.tgz",
+ "integrity": "sha512-pyI3dQdQjA1L5iEw0jkeKCogx9t5d5kIFTB5M3CJRg9Uj5MIpU2J5CRj+74A7BflvZJo8IBd6IfMJaOArRumaw==",
"requires": {
"tslib": "^2.1.0"
}
@@ -10223,6 +10231,11 @@
"escape-string-regexp": "^1.0.5"
}
},
+ "file-saver": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",
+ "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
+ },
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
@@ -16207,9 +16220,9 @@
}
},
"bplist-parser": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.0.tgz",
- "integrity": "sha512-zgmaRvT6AN1JpPPV+S0a1/FAtoxSreYDccZGIqEMSvZl9DMe70mJ7MFzpxa1X+gHVdkToE2haRUHHMiW1OdejA==",
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.1.tgz",
+ "integrity": "sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA==",
"dev": true,
"requires": {
"big-integer": "1.6.x"
diff --git a/package.json b/package.json
index fca672493..e1e480761 100644
--- a/package.json
+++ b/package.json
@@ -31,12 +31,13 @@
"@angular/platform-browser": "~12.1.2",
"@angular/platform-browser-dynamic": "~12.1.2",
"@angular/router": "~12.1.2",
+ "@byteowls/capacitor-filesharer": "^3.0.0",
"@capacitor-community/camera-preview": "^1.2.1",
"@capacitor/android": "^3.3.2",
"@capacitor/app": "^1.0.5",
"@capacitor/browser": "1.0.6",
"@capacitor/camera": "^1.2.0",
- "@capacitor/core": "^3.3.0",
+ "@capacitor/core": "^3.3.2",
"@capacitor/device": "^1.1.0",
"@capacitor/filesystem": "^1.0.6",
"@capacitor/haptics": "^1.1.2",
@@ -151,7 +152,7 @@
"@angular/compiler": "^12.1.2",
"@angular/compiler-cli": "^12.1.2",
"@angular/language-service": "^12.1.2",
- "@capacitor/cli": "^3.3.0",
+ "@capacitor/cli": "^3.3.2",
"@ionic/angular-toolkit": "^4.0.0",
"@ionic/lab": "3.1.7",
"@types/jasmine": "~3.6.0",
diff --git a/src/app/modals/preview-camera/preview-camera.page.html b/src/app/modals/preview-camera/preview-camera.page.html
index 1f853c4d8..f4a96098a 100644
--- a/src/app/modals/preview-camera/preview-camera.page.html
+++ b/src/app/modals/preview-camera/preview-camera.page.html
@@ -1,70 +1,34 @@
+
+
+
+
+
+
+
+
+
+
{{name}}
+ {{_updatedAt | date}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- {{username}} {{_updatedAt | date}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/app/modals/preview-camera/preview-camera.page.scss b/src/app/modals/preview-camera/preview-camera.page.scss
index f1d3a917e..617ad8cd0 100644
--- a/src/app/modals/preview-camera/preview-camera.page.scss
+++ b/src/app/modals/preview-camera/preview-camera.page.scss
@@ -36,25 +36,76 @@ float: right;
}
- circle-xmark-solid{
-
- // position: relative;
- width: 512px;
- height: 515px;
- position: absolute;
- left: 0%;
- right: 0%;
- top: 0%;
- bottom: 0%;
-
- background: #FCD13A;
-
+ ion-icon {
+ width: 500px;
+ height: 500px;
}
-
-
-
+ .Rectangle {
+ width: 400px;
+ height: 666px;
+ margin: 0px;
+ padding: 0px;
+ border-top-left-radius: 25px;
+ border-top-right-radius: 25px;
+ box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.49);
+ background-color: var(--white);
+
+ }
/* Vector */
+
+ .digitalizacao_001pd {
+ width: 238px;
+ height: 29px;
+ margin: 3px 3px 3px 0;
+ font-family: Roboto;
+ font-size: 20px;
+ font-weight: normal;
+ font-stretch: normal;
+ font-style: normal;
+ line-height: normal;
+ letter-spacing: normal;
+ color: var(--black);
+
+ }
+ .iconsarrowarrow-left {
+ width: 36px;
+ height: 35px;
+ padding: 9px 14px 8px 13px;
+ object-fit: contain;
+ }
+
+
+CSS
+.Rectangle-Copy-5 {
+ width: 400px;
+ height: 60px;
+ margin: 43px 0 0;
+ background-color: #f9f9f9;
+}
+
+CSS
+.Bitmap {
+ width: 358px;
+ height: 506px;
+ margin: 100px;
+}
+
+.inside{
+ background-color: var(--very-light-grey);
+}
+.place{
+float : left;
+font-size: 14px;
+
+}
+.footer{
+ background-color:transparent;
+}
+
+.distance{
+ margin-left: 100px;
+}
\ No newline at end of file
diff --git a/src/app/modals/preview-camera/preview-camera.page.ts b/src/app/modals/preview-camera/preview-camera.page.ts
index ae2dac286..6a32f3d6b 100644
--- a/src/app/modals/preview-camera/preview-camera.page.ts
+++ b/src/app/modals/preview-camera/preview-camera.page.ts
@@ -22,7 +22,7 @@ export class PreviewCameraPage implements OnInit {
@ViewChild(IonSlides) slides : IonSlides
image: any;
- username: string
+ name: string
_updatedAt: string
@@ -40,7 +40,7 @@ export class PreviewCameraPage implements OnInit {
ngOnInit() {
this.image = this.navParams.get('image')
- this.username = this.navParams.get('username')
+ this.name = this.navParams.get('username')
this._updatedAt = this.navParams.get('_updatedAt')
console.log(this.image)
// this.image = this.myimage
@@ -109,8 +109,6 @@ async getIconGallery(){
}
}
-
-
async getIconShare(){
@@ -118,7 +116,7 @@ async getIconShare(){
await Share.share({
title: 'See cool stuff',
text: 'Really awesome thing you need to see right meow',
- url: this.image,
+ url: "https://www.google.com/search?q=joao+louren%C3%A7o&rlz=1C1SQJL_pt-PTAO977AO977&sxsrf=AOaemvIEvXz_WiqNNapjaoE42Q8b71jtiA:1638355797910&source=lnms&tbm=isch&sa=X&sqi=2&ved=2ahUKEwjo9uX6tsL0AhXTlWoFHX1XAtcQ_AUoAXoECAMQAw&biw=1920&bih=937&dpr=1#imgrc=lH5UYZyhPKBhHM",
dialogTitle: 'Share with buddies',
});
diff --git a/src/app/pages/agenda/agenda.page.ts b/src/app/pages/agenda/agenda.page.ts
index 136a6a819..ec5221a8f 100644
--- a/src/app/pages/agenda/agenda.page.ts
+++ b/src/app/pages/agenda/agenda.page.ts
@@ -233,7 +233,7 @@ export class AgendaPage implements OnInit {
ngOnInit() {
- this.getFromDB();
+ //this.getFromDB();
const pathname = window.location.pathname
let realoadCounter = 0
@@ -243,7 +243,7 @@ export class AgendaPage implements OnInit {
this.segment = "Combinado";
}
if (realoadCounter != 0) {
- //this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
+ this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
}
realoadCounter++;
}
@@ -514,7 +514,8 @@ export class AgendaPage implements OnInit {
this.CalendarStore.pushEvent(response, 'md');
console.log('CALENDAR STORE', this.CalendarStore.eventSource)
- this.trasnformData(response,'md');
+ this.listToPresent = this.CalendarStore.eventSource
+ this.trasnformData(response, 'md');
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -537,11 +538,14 @@ export class AgendaPage implements OnInit {
else if (this.profile == "pr" && this.loggeduser.Profile == 'MDGPR') {
this.eventService.getAllSharedEvents(momentG(new Date(startTime), 'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime), 'yyyy-MM-dd 23:59:59')).then((response: any) => {
+ this.addEventToDB(response, "pr");
this.CalendarStore.removeRange(startTime, endTime, 'pr')
// calendar
this.CalendarStore.pushEvent(response, 'pr');
- this.trasnformData(response,'pr');
+
+ this.listToPresent = this.CalendarStore.eventSource
+
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -555,9 +559,9 @@ export class AgendaPage implements OnInit {
}).catch((error) => {
this.getFromDB()
})
- .finally(() => {
- this.showLoader = false;
- })
+ .finally(() => {
+ this.showLoader = false;
+ })
}
else if (this.loggeduser.Profile == 'PR') {
@@ -571,7 +575,8 @@ export class AgendaPage implements OnInit {
// startTime = 1, endTime = 31
this.CalendarStore.removeRange(startTime, endTime, 'pr')
this.CalendarStore.pushEvent(response, 'pr');
- this.trasnformData(response,'pr')
+
+ this.listToPresent = this.CalendarStore.eventSource
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -603,13 +608,15 @@ export class AgendaPage implements OnInit {
this.eventService.getAllMdEvents(momentG(new Date(startTime), 'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime), 'yyyy-MM-dd 23:59:59')).then((response: any) => {
+ this.addEventToDB(response, "md");
let eventsList = response;
this.CalendarStore.removeRange(startTime, endTime, 'md')
// loop
this.CalendarStore.pushEvent(eventsList, 'md');
- this.trasnformData(response,'md')
+
+ this.listToPresent = this.CalendarStore.eventSource
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -628,22 +635,25 @@ export class AgendaPage implements OnInit {
}).catch((error) => {
this.getFromDB()
})
- .finally(() => {
- counter++;
- if (counter == 2) {
- this.showLoader = false;
- }
- })
+ .finally(() => {
+ counter++;
+ if (counter == 2) {
+ this.showLoader = false;
+ }
+ })
this.eventService.getAllSharedEvents(momentG(new Date(startTime), 'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime), 'yyyy-MM-dd 23:59:59')).then((response: any) => {
+ this.addEventToDB(response, "pr");
let eventsList = response;
// clear the current month only
- /* this.CalendarStore.removeRange(startTime, endTime, 'pr')
+ this.CalendarStore.removeRange(startTime, endTime, 'pr')
+
+
+ this.CalendarStore.pushEvent(eventsList, 'pr');
+ this.listToPresent = this.CalendarStore.eventSource
- this.CalendarStore.pushEvent(eventsList, 'pr'); */
- this.trasnformData(response,'pr')
this.TimelinePRList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -663,18 +673,19 @@ export class AgendaPage implements OnInit {
}).catch((error) => {
this.getFromDB()
})
- .finally(() => {
- counter++;
- if (counter == 2) {
- this.showLoader = false;
- }
- })
+ .finally(() => {
+ counter++;
+ if (counter == 2) {
+ this.showLoader = false;
+ }
+ })
} else {
// view PR calendar with PR profile
this.eventService.getAllPrEvents(momentG(new Date(startTime), 'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime), 'yyyy-MM-dd 23:59:59')).then((response: any) => {
+ this.addEventToDB(response, "pr");
let eventsList;
if (this.segment == 'Oficial') {
eventsList = response.filter(data => data.CalendarName == "Oficial");
@@ -688,7 +699,7 @@ export class AgendaPage implements OnInit {
this.CalendarStore.removeRange(startTime, endTime, 'pr')
this.CalendarStore.pushEvent(eventsList, 'pr');
- this.trasnformData(eventsList,'pr')
+ this.listToPresent = this.CalendarStore.eventSource
this.TimelinePRList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
@@ -708,18 +719,19 @@ export class AgendaPage implements OnInit {
}).catch((error) => {
this.getFromDB()
})
- .finally(() => {
- if (counter == 1 || this.loggeduser.Profile == 'PR') {
- this.showLoader = false;
- }
- })
+ .finally(() => {
+ if (counter == 1 || this.loggeduser.Profile == 'PR') {
+ this.showLoader = false;
+ }
+ })
}
}
}
- trasnformData(response,profile) {
+ trasnformData(response, profile) {
+ console.log('Transform ', response)
response.forEach(element => {
let event = {
startTime: new Date(element.StartDate),
@@ -736,6 +748,25 @@ export class AgendaPage implements OnInit {
console.log('LIST TO PRESET', this.listToPresent)
}
+ //Deve ser removido para ficar só um method transform
+ trasnformDataDB(response) {
+ console.log('Transform ', response)
+ response.forEach(element => {
+ let event = {
+ startTime: new Date(element.StartDate),
+ endTime: new Date(element.EndDate),
+ allDay: false,
+ event: element,
+ calendarName: element.CalendarName,
+ profile: element.Profile,
+ id: element.EventId,
+ }
+ this.array.push(event)
+ });
+ this.listToPresent = this.array;
+ console.log('LIST TO PRESET', this.listToPresent)
+ }
+
addEventToDB(response, profile) {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
} else {
@@ -756,7 +787,7 @@ export class AgendaPage implements OnInit {
Profile: profile
}
this.sqliteservice.addEvent(event)
-
+
});
}
}
@@ -767,7 +798,8 @@ export class AgendaPage implements OnInit {
this.sqliteservice.getAllEvents().then((events: any[]) => {
console.log('ALL EVENTS FROM DB', events)
let eventArray = [];
- this.trasnformData(events,this.profile)
+
+ this.trasnformDataDB(events)
this.updateEventListBox()
this.myCal.update();
@@ -816,7 +848,7 @@ export class AgendaPage implements OnInit {
case "Oficial":
if (this.profile == "mdgpr" && this.loggeduser.Profile == 'MDGPR') {
- this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, {})
+ this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, {segment: this.segment, selectedDate: this.eventSelectedDate})
} else {
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
diff --git a/src/app/pages/agenda/edit-event/edit-event.page.ts b/src/app/pages/agenda/edit-event/edit-event.page.ts
index 8cd58e2f1..368bdc781 100644
--- a/src/app/pages/agenda/edit-event/edit-event.page.ts
+++ b/src/app/pages/agenda/edit-event/edit-event.page.ts
@@ -41,13 +41,11 @@ export class EditEventPage implements OnInit {
recurringTypes: any;
selectedRecurringType: any;
-
loadedEventAttachments: Attachment[] = [];
taskParticipants: any = [];
taskParticipantsCc: any = [];
adding: "intervenient" | "CC" = "intervenient";
-
showAttendees = false;
constructor(
@@ -196,19 +194,22 @@ export class EditEventPage implements OnInit {
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
- if(this.initCalendarName != this.postEvent.CalendarName){
+
+ if(this.initCalendarName != this.postEvent.CalendarName) {
+
let body = {
"EventId": this.postEvent.EventId,
"CalendarDestinationName": this.postEvent.CalendarName,
- }
- try {
- await this.eventsService.changeAgenda(body).toPromise();
- } catch (error) {}
- finally {
- this.goBack();
+ }
+ try {
+ await this.eventsService.changeAgenda(body).toPromise();
+ } catch (error) {}
+ finally {
+ this.goBack();
+ }
+
}
- }
this.toastService.successMessage();
}, error => {
diff --git a/src/app/pages/agenda/view-event/view-event.page.scss b/src/app/pages/agenda/view-event/view-event.page.scss
index 44837e303..828a438d8 100644
--- a/src/app/pages/agenda/view-event/view-event.page.scss
+++ b/src/app/pages/agenda/view-event/view-event.page.scss
@@ -198,7 +198,7 @@ ion-menu{
.attach-title-item{
width: 100%;
font-size: 15px;
- color:var(--title-text-color);
+ color: var(--title-text-color);
}
/* SPAN */
.span-left{
diff --git a/src/app/pages/chat/group-messages/group-messages.page.ts b/src/app/pages/chat/group-messages/group-messages.page.ts
index 4f6cbab0b..e571c6e4e 100644
--- a/src/app/pages/chat/group-messages/group-messages.page.ts
+++ b/src/app/pages/chat/group-messages/group-messages.page.ts
@@ -633,7 +633,7 @@ touchStart(card) {
cssClass: 'transparent-modal',
componentProps: {
image: img.attachments[0].image_url,
- username: img.u.username,
+ username: img.u.name,
_updatedAt: img._updatedAt
}
});
diff --git a/src/app/pages/chat/messages/messages.page.ts b/src/app/pages/chat/messages/messages.page.ts
index 214c66532..ee2bfbb2b 100644
--- a/src/app/pages/chat/messages/messages.page.ts
+++ b/src/app/pages/chat/messages/messages.page.ts
@@ -643,10 +643,10 @@ touchStart(card) {
async openPreview(msg) {
const modal = await this.modalController.create({
component: PreviewCameraPage,
- cssClass: 'transparent-modal',
+ cssClass: 'modal modal-desktop',
componentProps: {
image: msg.attachments[0].image_url,
- username: msg.u.username,
+ username: msg.u.name,
_updatedAt: msg._updatedAt,
}
diff --git a/src/app/pages/publications/view-publications/publication-detail/publication-detail.page.ts b/src/app/pages/publications/view-publications/publication-detail/publication-detail.page.ts
index d79e7f34a..7806b556e 100644
--- a/src/app/pages/publications/view-publications/publication-detail/publication-detail.page.ts
+++ b/src/app/pages/publications/view-publications/publication-detail/publication-detail.page.ts
@@ -126,7 +126,6 @@ export class PublicationDetailPage implements OnInit {
}
-
async editPost(publicationType:any) {
console.log(this.publication);
const modal = await this.modalController.create({
diff --git a/src/app/services/functions/file.service.ts b/src/app/services/functions/file.service.ts
index 90f969fdf..5973e67df 100644
--- a/src/app/services/functions/file.service.ts
+++ b/src/app/services/functions/file.service.ts
@@ -10,13 +10,13 @@ import { SearchList } from 'src/app/models/search-document';
import { ProcessesService } from '../processes.service';
import { ToastService } from '../toast.service';
import { Camera, CameraResultType, CameraSource, Photo} from '@capacitor/camera';
-
import { Filesystem, Directory } from '@capacitor/filesystem';
import { environment } from 'src/environments/environment';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
const IMAGE_DIR = 'stored-images';
+
interface LocalFile {
name: string;
path: string;
@@ -261,13 +261,6 @@ export class FileService {
if (image) {
await this.saveImage(image,roomId)
}
-/* const response = await fetch(capturedImage.webPath!);
- const blob = await response.blob();
-
- this.photos.unshift({
- filepath: "soon...",
- webviewPath: capturedImage.webPath
- }); */
//this.capturedImage = this.capturedImage;
@@ -287,6 +280,8 @@ export class FileService {
if (capturedImage) {
await this.saveImage(capturedImage,roomId)
}
+
+
/* const response = await fetch(capturedImage.webPath!);
const blob = await response.blob();
@@ -320,6 +315,24 @@ export class FileService {
//loader.remove();
});
*/ }
+ async shareLocalFile(){
+ this.http.get('./assets/any.svg', {responseType: 'blob'}).subscribe(res=>{
+ const reader = new FileReader()
+ reader.onloadend=()=>{
+ const result = reader.result as string
+ const base64Data = result.split(',')[1]
+
+ /* FileSharer.share({
+ filename:'any.pdf',
+ base64Data,
+ contentType: "application/pdf",
+ }) */
+ reader.readAsDataURL(res)
+ }
+
+ })
+
+}
addPictureToChat(roomId) {
diff --git a/src/app/shared/agenda/edit-event/edit-event.page.scss b/src/app/shared/agenda/edit-event/edit-event.page.scss
index 9eb41d3a8..4ef1fdcce 100644
--- a/src/app/shared/agenda/edit-event/edit-event.page.scss
+++ b/src/app/shared/agenda/edit-event/edit-event.page.scss
@@ -117,7 +117,7 @@ ion-content{
.attach-title-item{
width: 100%;
font-size: 15px;
- color:#0d89d1;
+ color: var(--title-text-color);
}
/* SPAN */
.span-left{
diff --git a/src/app/shared/agenda/edit-event/edit-event.page.ts b/src/app/shared/agenda/edit-event/edit-event.page.ts
index f66e97819..609cc47d9 100644
--- a/src/app/shared/agenda/edit-event/edit-event.page.ts
+++ b/src/app/shared/agenda/edit-event/edit-event.page.ts
@@ -14,7 +14,6 @@ import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ParticipantsPipe } from 'src/app/pipes/participants.pipe';
import { ThemeService } from 'src/app/services/theme.service'
-
@Component({
selector: 'app-edit-event',
templateUrl: './edit-event.page.html',
@@ -127,6 +126,7 @@ export class EditEventPage implements OnInit {
}
}
+ this.initCalendarName = this.postEvent.CalendarName;
this.loadedEventAttachments = this.loadedEventAttachments.concat(this.postEvent.Attachments)
diff --git a/src/app/shared/agenda/view-event/view-event.page.scss b/src/app/shared/agenda/view-event/view-event.page.scss
index 4f044aa5f..039695b83 100644
--- a/src/app/shared/agenda/view-event/view-event.page.scss
+++ b/src/app/shared/agenda/view-event/view-event.page.scss
@@ -176,7 +176,7 @@ ion-content{
.attach-title-item{
width: 100%;
font-size: 15px;
- color:#0d89d1;
+ color:var(--title-text-color);
}
/* SPAN */
.span-left{
diff --git a/src/app/shared/popover/despachos-options/despachos-options.page.ts b/src/app/shared/popover/despachos-options/despachos-options.page.ts
index bd0343cf6..b87751e16 100644
--- a/src/app/shared/popover/despachos-options/despachos-options.page.ts
+++ b/src/app/shared/popover/despachos-options/despachos-options.page.ts
@@ -216,19 +216,19 @@ export class DespachosOptionsPage implements OnInit {
Attachments: DocumentToSave,
}
- if(actionName == 'Executado'){
+ if(actionName == 'Executado') {
await this.executado(res.data.note, docs);
}
else if(actionName == 'Arquivar'){
await this.arquivar(res.data.note, docs);
}
- else if(actionName == 'Gerar Diploma'){
+ else if(actionName == 'Gerar Diploma') {
await this.generateDiploma(res.data.note, docs);
}
- else if(actionName == 'Concluido'){
+ else if(actionName == 'Concluido') {
//this.concluir(res.data.note, docs);
}
- else if(actionName == 'Reexecução'){
+ else if(actionName == 'Reexecução') {
await this.reexecutar(res.data.note, docs);
}
this.goBack();
diff --git a/src/app/shared/popover/opts-expediente/opts-expediente.page.html b/src/app/shared/popover/opts-expediente/opts-expediente.page.html
index c830407f6..57bd27f4e 100644
--- a/src/app/shared/popover/opts-expediente/opts-expediente.page.html
+++ b/src/app/shared/popover/opts-expediente/opts-expediente.page.html
@@ -28,8 +28,8 @@
-
-
+
+
diff --git a/src/assets/any.pdf b/src/assets/any.pdf
new file mode 100644
index 000000000..e24412c45
Binary files /dev/null and b/src/assets/any.pdf differ
diff --git a/src/global.scss b/src/global.scss
index 3e9a49fe0..05174772d 100644
--- a/src/global.scss
+++ b/src/global.scss
@@ -1340,12 +1340,12 @@ ngx-mat-datetime-content{
.ldio-rpinwye8j0b div { box-sizing: content-box; }
.transparent-modal {
- --background: #f1eaeae7;
+ --background:transparent;
--margin: 0;
--padding: 0;
ion-content {
- --background:#f1f0ebe7;
+ --background:transparent;
}
}
diff --git a/src/index.html b/src/index.html
index 2d40cbfe9..2d125ea04 100644
--- a/src/index.html
+++ b/src/index.html
@@ -11,7 +11,7 @@
-->
-
diff --git a/src/theme/variables.scss b/src/theme/variables.scss
index 84d552a9d..79c7281e0 100644
--- a/src/theme/variables.scss
+++ b/src/theme/variables.scss
@@ -715,6 +715,10 @@ body {
}
}
}
+
+ .desk{
+ color: black !important;
+ }
}
.gov {
@@ -794,6 +798,10 @@ body {
}
}
}
+
+ .desk{
+ color: black !important;
+ }
}
// blue
@@ -913,6 +921,7 @@ body {
}
}
}
+
}
.font-awesome {