diff --git a/src/app/pages/agenda/agenda.page.scss b/src/app/pages/agenda/agenda.page.scss index 5d392ec15..484293ee1 100644 --- a/src/app/pages/agenda/agenda.page.scss +++ b/src/app/pages/agenda/agenda.page.scss @@ -376,7 +376,7 @@ td.monthview-primary-with-event { .calendar-tool-tip{ - padding: 30px 10px 20px 10px; + padding: 37px 10px 20px 10px; //border: 1px solid orange; } @@ -962,7 +962,7 @@ $font-size: rem(15); position: absolute; float: right; right: 15px; - top: 1px; + top: 4px; background: transparent; color: transparent; @@ -1037,66 +1037,6 @@ $font-size: rem(15); } - -@media only screen and (min-width: 398px) { - .week-5 { - .calendar-title-container { - font-size: 16px; - } - .height-75 { - height: 75px; - } - - .height-356 { - height: 323px; - } - } - - .week-6 { - .calendar-title-container { - font-size: 16px; - } - .height-75 { - height: 75px; - } - - .height-356 { - height: 371px; - } - } - -} - -@media only screen and (min-width: 415px) { - .week-5 { - .calendar-title-container { - font-size: 16px; - } - .height-75 { - height: 75px; - } - - .height-356 { - height: 319px; - } - } - - .week-6 { - .calendar-title-container { - font-size: 16px; - } - .height-75 { - height: 75px; - } - - .height-356 { - height: 360px; - } - } - -} - - @media only screen and (min-width: 500px) { .week-5 { .calendar-title-container { diff --git a/src/app/pages/agenda/agenda.page.ts b/src/app/pages/agenda/agenda.page.ts index bd019d5ad..a409d91e3 100644 --- a/src/app/pages/agenda/agenda.page.ts +++ b/src/app/pages/agenda/agenda.page.ts @@ -235,6 +235,10 @@ export class AgendaPage implements OnInit { this.tigerUpdate() + window['reloadCalendar'] = () => { + this.reloadCalendar() + } + } 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 a6a5f8e58..517b498b9 100644 --- a/src/app/pages/agenda/edit-event/edit-event.page.ts +++ b/src/app/pages/agenda/edit-event/edit-event.page.ts @@ -353,6 +353,10 @@ export class EditEventPage implements OnInit { if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') { this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => { + if(window['reloadCalendar']) { + window['reloadCalendar']() + } + if(this.initCalendarName != this.postEvent.CalendarName) { let body = { @@ -375,6 +379,10 @@ export class EditEventPage implements OnInit { } else { this.eventsService.editEvent(this.postEvent, 2, 3, this.postEvent.CalendarId).subscribe(async () => { + if(window['reloadCalendar']) { + window['reloadCalendar']() + } + if(this.initCalendarName != this.postEvent.CalendarName) { let body = { diff --git a/src/app/pages/agenda/new-event/new-event.module.ts b/src/app/pages/agenda/new-event/new-event.module.ts index 76e2100d3..2dbd0de42 100644 --- a/src/app/pages/agenda/new-event/new-event.module.ts +++ b/src/app/pages/agenda/new-event/new-event.module.ts @@ -23,6 +23,7 @@ import { ReactiveFormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatSelectModule } from '@angular/material/select'; import { NgxMatMomentModule } from '@angular-material-components/moment-adapter'; +import { MatDialogModule } from '@angular/material/dialog'; @NgModule({ imports: [ @@ -30,6 +31,7 @@ import { NgxMatMomentModule } from '@angular-material-components/moment-adapter' FormsModule, IonicModule, NewEventPageRoutingModule, + // MatDatepickerModule, MatInputModule, MatNativeDateModule, @@ -39,7 +41,8 @@ import { NgxMatMomentModule } from '@angular-material-components/moment-adapter' NgxMatMomentModule, MatSelectModule, MatButtonModule, - ReactiveFormsModule + ReactiveFormsModule, + MatDialogModule, ], declarations: [NewEventPage] }) diff --git a/src/app/pages/agenda/new-event/new-event.page.html b/src/app/pages/agenda/new-event/new-event.page.html index 7d63fce78..6a5f4e8fe 100644 --- a/src/app/pages/agenda/new-event/new-event.page.html +++ b/src/app/pages/agenda/new-event/new-event.page.html @@ -129,11 +129,9 @@ > @@ -162,10 +160,8 @@ > diff --git a/src/app/pages/chat/group-messages/group-contacts/group-contacts.page.ts b/src/app/pages/chat/group-messages/group-contacts/group-contacts.page.ts index 5636f9a4f..90eab93a4 100644 --- a/src/app/pages/chat/group-messages/group-contacts/group-contacts.page.ts +++ b/src/app/pages/chat/group-messages/group-contacts/group-contacts.page.ts @@ -147,18 +147,37 @@ export class GroupContactsPage implements OnInit { this.modalController.dismiss(); } - onChange(event){ + onChange(event) { this.textSearch = event.detail.value; - this.users = this.contacts.filter( e => e.name.toLowerCase().includes(this.textSearch.toLowerCase())).sort((a,b) => { - if(a.name < b.name){ + const users = this.contacts.filter( e => e.name.toLowerCase().includes(this.textSearch.toLowerCase())).sort((a,b) => { + if(a.name < b.name) { return -1; } - if(a.name > b.name){ + if(a.name > b.name) { return 1; } return 0; }); + + const selectedUsers = this.users.filter( e => e?.isChecked == true) + + users.forEach( (user, index) => { + if(user[index]) { + console.log({user, index}) + const isCheck = selectedUsers.find( e => e._id == user._id)?.isChecked + if(isCheck) { + user[index].isChecked = isCheck + } + + // if(user[index].isChecked) { + // console.log('user[index].isChecked', user[index].isChecked) + // } + } + + }) + + this.users = users } diff --git a/src/app/pages/chat/messages/contacts/contacts.page.html b/src/app/pages/chat/messages/contacts/contacts.page.html index 0817a687c..21cce9129 100644 --- a/src/app/pages/chat/messages/contacts/contacts.page.html +++ b/src/app/pages/chat/messages/contacts/contacts.page.html @@ -24,16 +24,16 @@ - +
- + - +
{{header}}
diff --git a/src/app/pages/chat/messages/contacts/contacts.page.ts b/src/app/pages/chat/messages/contacts/contacts.page.ts index 9955b6bc1..c4ddf258b 100644 --- a/src/app/pages/chat/messages/contacts/contacts.page.ts +++ b/src/app/pages/chat/messages/contacts/contacts.page.ts @@ -95,9 +95,13 @@ export class ContactsPage implements OnInit { } this.chatService.createRoom(body).subscribe(async(res) => { this.room = res['room']; - await this.ChatSystemService.getAllRooms(); - this.getDirectMessage(this.room._id); - this.loading = false + + this.ChatSystemService.getAllRooms(() => { + this.getDirectMessage(this.room._id); + this.loading = false + }, this.room._id); + + }, ()=> { this.loading = false }); diff --git a/src/app/pages/publications/new-publication/new-publication.page.html b/src/app/pages/publications/new-publication/new-publication.page.html index 2e89f18df..b332563d8 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.html +++ b/src/app/pages/publications/new-publication/new-publication.page.html @@ -1,15 +1,15 @@
-
-
+
+
{{publicationTitle}}
Campos marcados com * são obrigatórios
-
+
@@ -25,41 +25,39 @@
-
- Fotografia Anexada +
+ Fotografia Anexada - - +
+
+ - - - - - - - -

{{capturedImageTitle}}

- -
-
+ + + +

{{capturedImageTitle}}

+ +
+
+ +
- - - +
-
+ +
image
{{publication.OriginalFileName}}.{{publication.FileExtension}}
-
75 Kb
+
-
-
X
+
+
@@ -101,10 +99,7 @@ - - diff --git a/src/app/pages/publications/new-publication/new-publication.page.scss b/src/app/pages/publications/new-publication/new-publication.page.scss index 2a9427312..2fa8e3f03 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.scss +++ b/src/app/pages/publications/new-publication/new-publication.page.scss @@ -55,9 +55,11 @@ ion-toolbar{ background: #ffffff; height: 100%; box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.6); - padding: 25px 20px 0 20px; overflow: auto; } +.padding{ + padding: 25px 20px 0 20px; +} .title-content{ margin: 0px auto; padding: 0 !important; diff --git a/src/app/pages/publications/new-publication/new-publication.page.ts b/src/app/pages/publications/new-publication/new-publication.page.ts index 51acf78e0..b9e15b1cc 100644 --- a/src/app/pages/publications/new-publication/new-publication.page.ts +++ b/src/app/pages/publications/new-publication/new-publication.page.ts @@ -125,6 +125,7 @@ export class NewPublicationPage implements OnInit { this.convertBlobToBase64Worker.postMessage(blob); this.convertBlobToBase64Worker.onmessage = async (oEvent)=> { this.capturedImage = oEvent.data + this.capturedImageTitle = 'foto' } } @@ -186,6 +187,7 @@ export class NewPublicationPage implements OnInit { this.convertBlobToBase64Worker.postMessage(blob); this.convertBlobToBase64Worker.onmessage = async (oEvent)=> { this.capturedImage = oEvent.data + this.capturedImageTitle = 'foto' } @@ -357,6 +359,7 @@ export class NewPublicationPage implements OnInit { } clear() { + this.capturedImageTitle = ''; this.capturedImage = ''; } @@ -375,30 +378,6 @@ export class NewPublicationPage implements OnInit { } } - /* async openGallery() { - const modal = await this.modalController.create({ - component: GalleryPage, - componentProps:{ - }, - cssClass: 'new-publication', - backdropDismiss: false - }); - await modal.present(); - modal.onDidDismiss(); - } */ - - /* async takePicture(){ - const image = await Plugins.Camera.getPhoto({ - quality: 100, - allowEditing: false, - resultType: CameraResultType.DataUrl, - source: CameraSource.Camera - }); - - - this.photo = this.sanitizer.bypassSecurityTrustResourceUrl(image && (image.dataUrl)); - } */ - async selectImage() { const image = await Camera.getPhoto({ quality: 90, @@ -453,26 +432,6 @@ export class NewPublicationPage implements OnInit { }); await loading.present(); - /* Filesystem.readdir({ - path: `${IMAGE_DIR}/${fileName}`, - directory: Directory.Data, - }).then(result => { - - let lastphoto = result.files[result.files.length - 1] - this.loadFileData(lastphoto); - }, - async (err) => { - - // Folder does not yet exists! - await Filesystem.mkdir({ - path: IMAGE_DIR, - directory: Directory.Data, - recursive: true - }); - } - ).then(_ => { - loading.dismiss(); - }); */ } async loadFileData(fileName: string) { @@ -506,22 +465,6 @@ export class NewPublicationPage implements OnInit { } - /* compressImage() { - let image = this.capturedImage; - this.imageCompress.compressFile(image, orientation, 50, 50,).then(() => { - - this.imgResultBeforeCompress = image; - - - this.imageCompress.compressFile(image, orientation, 50, 50).then( - result => { - this.imgResultAfterCompress = result; - - } - ); - }) - } */ - compressFile() { //this.imgResultBeforeCompress = image;s @@ -538,5 +481,7 @@ export class NewPublicationPage implements OnInit { } - + deletePublicationImage() { + this.publication.FileBase64 = "" + } } diff --git a/src/app/services/chat/chat-system.service.ts b/src/app/services/chat/chat-system.service.ts index de3410cf0..6c5c85cc7 100644 --- a/src/app/services/chat/chat-system.service.ts +++ b/src/app/services/chat/chat-system.service.ts @@ -199,7 +199,7 @@ export class ChatSystemService { } } - async getAllRooms () { + async getAllRooms (callback:Function = () =>{} , roomIdCallback = "") { this.loadingWholeList = true var rooms; @@ -295,7 +295,13 @@ export class ChatSystemService { rooms.result.update[index]['membersExcludeMe'] = users await this.prepareRoom(roomData); } + } + + if(roomId == roomIdCallback) { + callback() + } + index++; } diff --git a/src/app/services/task.service.ts b/src/app/services/task.service.ts index 85ea6cd63..12283484b 100644 --- a/src/app/services/task.service.ts +++ b/src/app/services/task.service.ts @@ -108,9 +108,6 @@ export class TaskService { return false } - const deadline = new Date(isoDateString) - const plusOneDeadline = deadline.getDate() + 1 - deadline.setDate(plusOneDeadline) return momentG(new Date(), 'dd MMMM yyyy') == momentG(new Date(isoDateString), 'dd MMMM yyyy') } diff --git a/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts b/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts index 77e4c4d77..7dd8027bb 100644 --- a/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts +++ b/src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts @@ -235,20 +235,39 @@ export class GroupContactsPage implements OnInit { } } - onChange(event){ + onChange(event) { this.textSearch = event.detail.value; - this.users = this.contacts.filter( e => e.name.toLowerCase().includes(this.textSearch.toLowerCase())).sort((a,b) => { - if(a.name < b.name){ + const users: any[] = this.contacts.filter( e => e.name.toLowerCase().includes(this.textSearch.toLowerCase())).sort((a,b) => { + if(a.name < b.name) { return -1; } - if(a.name > b.name){ + if(a.name > b.name) { return 1; } return 0; }); - + const selectedUsers = this.users.filter( e => e?.isChecked == true) + + users.forEach( (user, index) => { + if(user[index]) { + console.log({user, index}) + const isCheck = selectedUsers.find( e => e._id == user._id)?.isChecked + if(isCheck) { + user[index].isChecked = isCheck + } + + // if(user[index].isChecked) { + // console.log('user[index].isChecked', user[index].isChecked) + // } + } + + }) + + this.users = users + + // console.log('this.users', this.users) } clicked(){ diff --git a/src/app/shared/chat/messages/contacts/contacts.page.html b/src/app/shared/chat/messages/contacts/contacts.page.html index 1622ef118..d43a49411 100644 --- a/src/app/shared/chat/messages/contacts/contacts.page.html +++ b/src/app/shared/chat/messages/contacts/contacts.page.html @@ -22,7 +22,6 @@ - @@ -30,7 +29,7 @@
- +
diff --git a/src/app/shared/chat/messages/contacts/contacts.page.ts b/src/app/shared/chat/messages/contacts/contacts.page.ts index 4a7168408..681b0ff0f 100644 --- a/src/app/shared/chat/messages/contacts/contacts.page.ts +++ b/src/app/shared/chat/messages/contacts/contacts.page.ts @@ -21,6 +21,7 @@ export class ContactsPage implements OnInit { room:any; dm:any; sessionStore = SessionStore + loading = false @Input() roomId: string; @Output() openMessage:EventEmitter = new EventEmitter(); @@ -67,10 +68,19 @@ export class ContactsPage implements OnInit { let body = { username: username, } + + this.loading = true this.chatService.createRoom(body).subscribe(res => { - this.ChatSystemService.getAllRooms(); this.room = res['room']; - this.openMessage.emit(this.room._id); + + this.ChatSystemService.getAllRooms(() => { + this.openMessage.emit(this.room._id); + + this.loading = false + }, this.room._id); + + }, ()=> { + this.loading = false }); } } diff --git a/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.html b/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.html index c36c0dbfd..2f6b4d610 100644 --- a/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.html +++ b/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.html @@ -1,5 +1,5 @@ - -
+ +
@@ -7,7 +7,7 @@
-
+
diff --git a/src/app/shared/publication/new-publication/new-publication.page.html b/src/app/shared/publication/new-publication/new-publication.page.html index 9a69f55b3..c56c31771 100644 --- a/src/app/shared/publication/new-publication/new-publication.page.html +++ b/src/app/shared/publication/new-publication/new-publication.page.html @@ -29,39 +29,47 @@
- +
- Fotografia Anexada - - - - - - -

{{capturedImageTitle}}

- -
+ Fotografia Anexada +
+
+ + + + + +

{{capturedImageTitle}}

+ +
+
- +
+
+ + + +
+ +
+
+ + + + + +

{{publication.OriginalFileName}}.{{publication.FileExtension}}

+ +
+
+ +
- -
-
- image -
-
-
{{publication.OriginalFileName}}.{{publication.FileExtension}}
-
75 Kb
-
-
-
X
-
-
- -
@@ -99,7 +107,7 @@ diff --git a/src/app/shared/publication/new-publication/new-publication.page.ts b/src/app/shared/publication/new-publication/new-publication.page.ts index 5671ea3f8..89f89425f 100644 --- a/src/app/shared/publication/new-publication/new-publication.page.ts +++ b/src/app/shared/publication/new-publication/new-publication.page.ts @@ -93,7 +93,7 @@ export class NewPublicationPage implements OnInit { }); this.capturedImage = 'data:image/jpeg;base64,' +capturedImage.base64String; - this.capturedImageTitle = capturedImage.path; + this.capturedImageTitle = 'foto'; // } @@ -105,7 +105,7 @@ export class NewPublicationPage implements OnInit { }); this.capturedImage = 'data:image/jpeg;base64,' +capturedImage.base64String; - this.capturedImageTitle = capturedImage.path; + this.capturedImageTitle = 'foto'; } @@ -272,10 +272,15 @@ export class NewPublicationPage implements OnInit { this.goBack(); } - clear(){ + clear() { + this.capturedImageTitle = ''; this.capturedImage = ''; } + deletePublicationImage() { + this.publication.FileBase64 = "" + } + setTitle(){ if(this.publicationType == '1') { this.publicationTitle = 'Nova Publicação Rápida'; diff --git a/src/global.scss b/src/global.scss index cf0d964c4..b04fe890e 100644 --- a/src/global.scss +++ b/src/global.scss @@ -1143,14 +1143,6 @@ background: rgb(92, 92, 92); } } -ngx-mat-datetime-content{ - .actions { - .mat-button-disabled { - background-color: #ff5a5a59 !important; - } - } - -} // angular material inputs @@ -1503,6 +1495,16 @@ ngx-mat-datetime-content .ngx-mat-timepicker { ngx-mat-datetime-content .mat-input-element { padding: 0px !important; } + +ngx-mat-datetime-content{ + .actions { + .mat-button-disabled { + background-color: #ff5a5a59 !important; + } + } + +} + pre { font-family: 'Roboto' !important; font-size: rem(16) !important; diff --git a/version/git-version.ts b/version/git-version.ts index 4a8908fe6..689f7843b 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -1,12 +1,12 @@ export let versionData = { - "shortSHA": "ae2701cbc", - "SHA": "ae2701cbcd02b0d0331f13927bc26d36d0752167", + "shortSHA": "61a2b78ee", + "SHA": "61a2b78eeca3ec5cfd5481cec2b5c5f36eb727ae", "branch": "developer", "lastCommitAuthor": "'Eudes Inácio'", - "lastCommitTime": "'Tue Aug 15 12:44:53 2023 +0100'", - "lastCommitMessage": "pull made", - "lastCommitNumber": "5160", + "lastCommitTime": "'Tue Aug 15 18:09:03 2023 +0100'", + "lastCommitMessage": "Search solved, aprove envent and remove from home the serviceworker", + "lastCommitNumber": "5161", "change": "", - "changeStatus": "On branch developer\nYour branch is ahead of 'origin/developer' by 3 commits.\n (use \"git push\" to publish your local commits)\n\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/home/home.page.ts\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss\n\tmodified: src/app/pages/search/search.page.scss\n\tmodified: src/app/pages/search/search.page.ts\n\tmodified: version/git-version.ts", + "changeStatus": "On branch developer\nYour branch and 'origin/developer' have diverged,\nand have 4 and 7 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/pages/agenda/agenda.page.scss\n\tmodified: src/app/pages/agenda/agenda.page.ts\n\tmodified: src/app/pages/agenda/edit-event/edit-event.page.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.module.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.page.html\n\tmodified: src/app/pages/chat/group-messages/group-contacts/group-contacts.page.ts\n\tmodified: src/app/pages/chat/messages/contacts/contacts.page.html\n\tmodified: src/app/pages/chat/messages/contacts/contacts.page.ts\n\tmodified: src/app/pages/publications/new-publication/new-publication.page.html\n\tmodified: src/app/pages/publications/new-publication/new-publication.page.scss\n\tmodified: src/app/pages/publications/new-publication/new-publication.page.ts\n\tmodified: src/app/services/chat/chat-system.service.ts\n\tmodified: src/app/services/task.service.ts\n\tmodified: src/app/shared/chat/group-messages/group-contacts/group-contacts.page.ts\n\tmodified: src/app/shared/chat/messages/contacts/contacts.page.html\n\tmodified: src/app/shared/chat/messages/contacts/contacts.page.ts\n\tmodified: src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.html\n\tmodified: src/app/shared/publication/new-publication/new-publication.page.html\n\tmodified: src/app/shared/publication/new-publication/new-publication.page.ts\n\tmodified: src/global.scss", "changeAuthor": "eudes.inacio" } \ No newline at end of file