commit version change

This commit is contained in:
Eudes Inácio
2023-11-03 05:52:01 +01:00
14 changed files with 193 additions and 126 deletions
+48 -17
View File
@@ -1,28 +1,44 @@
workflows: workflows:
ios-native-workflow: ios-workflow:
name: iOS Native name: iOS Workflow
instance_type: mac_mini_m1 max_build_duration: 120
integrations: integrations:
app_store_connect: GabineteDigital app_store_connect: 433YAF3YWG
environment: environment:
ios_signing: ios_signing:
distribution_type: app_store distribution_type: app_store
bundle_identifier: com.gpr.gabinetedigital.teste bundle_identifier: com.gpr.gabinetedigital.teste
vars: vars:
BUNDLE_ID: "com.gpr.gabinetedigital.teste" APP_STORE_APPLE_ID: 1664747447
APP_STORE_APPLE_ID: DV5P2ZCAPJ XCODE_WORKSPACE: "platforms/ios/App.app.xcworkspace"
xcode: latest XCODE_SCHEME: "App.app"
cocoapods: default
scripts: scripts:
- name: Install CocoaPods dependencies - name: Install npm dependencies for Ionic Capacitor project
script: | script: |
pod install npm install
- name: Set up provisioning profiles settings on Xcode project - name: Cocoapods installation
script: xcode-project use-profiles script: |
cd ios/App && pod install
- name: Update dependencies and copy web assets to native project
script: |
# if you don't need to update native dependencies, use this:
# npx cap copyapp
#
# to update native dependencies, use this command:
npx cap sync
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles
- name: Increment build number
script: |
cd $CM_BUILD_DIR/ios/App
LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_STORE_APPLE_ID")
agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
- name: Build ipa for distribution - name: Build ipa for distribution
script: | script: |
cd $CM_BUILD_DIR/ios/App
xcode-project build-ipa \ xcode-project build-ipa \
--workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \ --workspace "$XCODE_WORKSPACE" \
--scheme "$XCODE_SCHEME" --scheme "$XCODE_SCHEME"
artifacts: artifacts:
- build/ios/ipa/*.ipa - build/ios/ipa/*.ipa
@@ -30,7 +46,22 @@ workflows:
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing: publishing:
email:
recipients:
- romavicdosanjoskc@gmail.com
notify:
success: true
failure: false
app_store_connect: app_store_connect:
auth: integration auth: integration
# Configuration related to TestFlight (optional)
# Note: This action is performed during post-processing.
submit_to_testflight: true submit_to_testflight: true
submit_to_app_store: false beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- group name 1
- group name 2
# Configuration related to App Store (optional)
# Note: This action is performed during post-processing.
submit_to_app_store: false
@@ -191,6 +191,6 @@
<button *ngIf="taskType == '1'" class="btn-ok" shape="round" (click)="saveTask()">Solicitar</button> <button *ngIf="taskType == '1'" class="btn-ok" shape="round" (click)="saveTask()">Solicitar</button>
<button *ngIf="taskType == '2'" class="btn-ok" shape="round" (click)="saveTask()">Solicitar</button> <button *ngIf="taskType == '2'" class="btn-ok" shape="round" (click)="saveTask()">Solicitar</button>
<button class="btn-cancel" shape="round" (click)="cancelTask()">Cancelar</button> <button class="btn-cancel" shape="round" (click)="cancelTask()">Cancelar</button>
</div> </div>
</ion-footer> </ion-footer>
@@ -223,7 +223,7 @@ export class DocumentDetailPage implements OnInit {
backdropDismiss: false backdropDismiss: false
}); });
modal.onDidDismiss().then(res=>{ modal.onDidDismiss().then(res => {
//this.RouteService.goBack(); //this.RouteService.goBack();
}, (error) => { }, (error) => {
console.log(error) console.log(error)
@@ -117,14 +117,45 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.document = this.navParams.get('document') this.document = this.navParams.get('document')
if(Array.isArray(this.document)) { if(Array.isArray(this.document)) {
this.attachments = this.document const E = this.document
this.document = []
E.forEach((e)=> {
this.document.push({
ApplicationId: e.ApplicationId || e.ApplicationType,
Source: 1,
SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id,
SourceName: e.Assunto || e.attachments,
DocDate: e.CreateDate,
Data: e.Data,
Assunto: e.Description,
...e
})
})
} else if (this.document) {
const E = this.document
this.document = []
this.document.push({
ApplicationId: E.ApplicationId || E.ApplicationType,
Source: 1,
SourceId: E.DocId || E.docID || E.docId || E.SourceId || E.Id,
SourceName: E.Assunto || E.attachments,
DocDate: E.CreateDate,
Data: E.Data,
Assunto: E.Description,
...E
})
} else { } else {
this.attachments = [this.document] this.document = []
} }
this.document = [] if(Array.isArray(this.document)) {
this.attachments = this.document
} else {
this.attachments = [this.document]
}
this.subject = this.navParams.get('subject') this.subject = this.navParams.get('subject')
@@ -277,25 +308,6 @@ export class DocumentSetUpMeetingPage implements OnInit {
let Attendees = this.taskParticipants.concat(this.taskParticipantsCc); let Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
if(this.document.Documents) {
this.document.Documents.forEach((e)=> {
this.docs.push({
ApplicationId: e.ApplicationId || e.ApplicationType,
Source: 1,
SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id,
SourceName: e.Assunto
})
})
}
else{
this.docs.push({
ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
Source: 1,
SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId || this.document.Id,
SourceName: this.document.Assunto
})
}
let postEvent = { let postEvent = {
EventId: '', EventId: '',
Subject: this.postData.Subject, Subject: this.postData.Subject,
@@ -318,10 +330,11 @@ export class DocumentSetUpMeetingPage implements OnInit {
Type: this.EventRecurrenceType, Type: this.EventRecurrenceType,
LastOccurrence: this.Occurrence, LastOccurrence: this.Occurrence,
}, },
// Attachments: this.docs, Attachments: this.attachments,
} }
const laoder = this.toastService.loading() const laoder = this.toastService.loading();
this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => { this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {
laoder.remove(); laoder.remove();
@@ -58,7 +58,7 @@ export class ViewDocumentPage implements OnInit {
ngOnInit() { ngOnInit() {
this.processes.GetViewer(this.docId, this.applicationId).subscribe(async(res)=> { this.processes.GetViewer(this.docId, this.applicationId).subscribe(async(res)=> {
const link: string = res.replace('//pdfjs/web/', '/pdfjs/web/') const link: string = res.replace('//pdfjs/web/', '/pdfjs/web/')
this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link); this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link);
@@ -125,7 +125,7 @@ export class ViewDocumentPage implements OnInit {
} }
async openBookMeetingModal() { async openBookMeetingModal() {
console.log('this.Document', this.Document) console.log('this.Document----------', this.Document)
let classs; let classs;
if( window.innerWidth < 701) { if( window.innerWidth < 701) {
classs = 'book-meeting-modal modal modal-desktop' classs = 'book-meeting-modal modal modal-desktop'
@@ -164,6 +164,8 @@ export class ViewDocumentPage implements OnInit {
classs = 'modal modal-desktop showAsideOptions' classs = 'modal modal-desktop showAsideOptions'
} }
// check passing // check passing
console.log('this.Document----------openExpedientActionsModal', this.Document)
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: ExpedientTaskModalPage, component: ExpedientTaskModalPage,
componentProps: { componentProps: {
@@ -175,7 +177,7 @@ export class ViewDocumentPage implements OnInit {
cssClass: classs, cssClass: classs,
}); });
modal.onDidDismiss().then( modal.onDidDismiss().then(
async(res)=>{} async(res)=>{}
, (error) => { , (error) => {
console.log(error) console.log(error)
+49 -28
View File
@@ -220,7 +220,7 @@ export class AgendaPage implements OnInit {
} else if (this.eventService.hasSharedCalendar) { } else if (this.eventService.hasSharedCalendar) {
this.profile = "pr"; this.profile = "pr";
} }
} }
this.calendarHeight = ["height-356"]; this.calendarHeight = ["height-356"];
@@ -253,7 +253,7 @@ export class AgendaPage implements OnInit {
}, 1000) }, 1000)
} }
ngOnInit() { ngOnInit() {
@@ -270,18 +270,26 @@ export class AgendaPage implements OnInit {
this.segment = "Combinado"; this.segment = "Combinado";
} }
if (realoadCounter != 0) { if (realoadCounter != 0) {
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
if(this.currentMoth.rangeStartDate != null) {
this.loadRangeEvents(this.currentMoth.rangeStartDate, this.currentMoth.rangeEndDate)
} else {
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
}
this.updateEventListBox() this.updateEventListBox()
} }
realoadCounter++; realoadCounter++;
this.weekToShow() this.weekToShow()
} }
}); });
this.backgroundservice.registerBackService('Online', () => { this.backgroundservice.registerBackService('Online', () => {
//this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); //this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
}); });
window.onresize = (event) => { window.onresize = (event) => {
// if not table remove all component // if not table remove all component
if (window.innerWidth <= 1024) { if (window.innerWidth <= 1024) {
@@ -296,7 +304,7 @@ export class AgendaPage implements OnInit {
setTimeout(() => { setTimeout(() => {
try { try {
let weekNum = 0; let weekNum = 0;
function Week(a) { function Week(a) {
for(let b of a.querySelectorAll('td')) { for(let b of a.querySelectorAll('td')) {
if(!b.className.includes('text-muted')) { if(!b.className.includes('text-muted')) {
@@ -305,17 +313,17 @@ export class AgendaPage implements OnInit {
} }
} }
} }
const dayBoxHeight = document.querySelector('.monthview-container .swiper-container .swiper-slide-active table tbody tr td').clientHeight const dayBoxHeight = document.querySelector('.monthview-container .swiper-container .swiper-slide-active table tbody tr td').clientHeight
const weeks = document.querySelectorAll('.monthview-container .swiper-container .swiper-slide-active table tbody tr'); const weeks = document.querySelectorAll('.monthview-container .swiper-container .swiper-slide-active table tbody tr');
for (let week of weeks as any ){ for (let week of weeks as any ){
Week(week) Week(week)
} }
this.showCalendar = true this.showCalendar = true
this.listBoxService.height = (weekNum * dayBoxHeight) +'px' this.listBoxService.height = (weekNum * dayBoxHeight) +'px'
if(dayBoxHeight == 0) { if(dayBoxHeight == 0) {
this.weekToShow() this.weekToShow()
} }
@@ -424,10 +432,23 @@ export class AgendaPage implements OnInit {
this.eventSelectedDate2 = ev.selectedTime; this.eventSelectedDate2 = ev.selectedTime;
} }
currentMoth = {
rangeStartDate: null,
rangeEndDate: null
}
onRangeChanged(ev: { startTime: Date, endTime: Date }) { onRangeChanged(ev: { startTime: Date, endTime: Date }) {
this.rangeStartDate = ev.startTime; this.rangeStartDate = ev.startTime;
this.rangeEndDate = ev.endTime; this.rangeEndDate = ev.endTime;
if(this.currentMoth.rangeEndDate == null) {
this.currentMoth = {
rangeStartDate: ev.startTime,
rangeEndDate: ev.endTime
}
}
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
@@ -554,7 +575,7 @@ export class AgendaPage implements OnInit {
loadRangeEvents(startTime: Date, endTime: Date) { loadRangeEvents(startTime: Date, endTime: Date) {
this.weekToShow() this.weekToShow()
if(!this.eventService.hasAnyCalendar) { if(!this.eventService.hasAnyCalendar) {
return false return false
} }
@@ -602,7 +623,7 @@ export class AgendaPage implements OnInit {
} catch (error) { } catch (error) {
} }
let load = 0; let load = 0;
@@ -622,7 +643,7 @@ export class AgendaPage implements OnInit {
let eventsList = response; let eventsList = response;
this.CalendarStore.removeRangeForCalendar(startTime, endTime, label, selectedCalendar.CalendarId) this.CalendarStore.removeRangeForCalendar(startTime, endTime, label, selectedCalendar.CalendarId)
this.CalendarStore.pushEvent(eventsList, label); this.CalendarStore.pushEvent(eventsList, label);
this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds) this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds)
this.updateEventListBox() this.updateEventListBox()
@@ -635,7 +656,7 @@ export class AgendaPage implements OnInit {
if(load == selectedCalendarIds.length) { if(load == selectedCalendarIds.length) {
this.showLoader = false; this.showLoader = false;
} }
this.myCal.update(); this.myCal.update();
this.myCal.loadEvents(); this.myCal.loadEvents();
this.updateEventListBox() this.updateEventListBox()
@@ -657,19 +678,19 @@ export class AgendaPage implements OnInit {
return result.concat(join) return result.concat(join)
} else { } else {
const calendar = this.eventService.calendarNamesType[this.CalendarName]; const calendar = this.eventService.calendarNamesType[this.CalendarName];
let Oficial = calendar?.['OficialId'] let Oficial = calendar?.['OficialId']
let Pessoal = calendar?.['PessoalId'] let Pessoal = calendar?.['PessoalId']
if(Oficial && Pessoal) { if(Oficial && Pessoal) {
return [ return [
{ {
CalendarId : Oficial, CalendarId : Oficial,
OwnerId: calendar.OwnerId, OwnerId: calendar.OwnerId,
CalendarName: calendar.CalendarName CalendarName: calendar.CalendarName
}, },
{ {
OwnerId: calendar.OwnerId, OwnerId: calendar.OwnerId,
CalendarId : Pessoal, CalendarId : Pessoal,
@@ -700,7 +721,7 @@ export class AgendaPage implements OnInit {
} }
} }
} }
@@ -743,7 +764,7 @@ export class AgendaPage implements OnInit {
this.updateEventListBox() this.updateEventListBox()
} else { } else {
} }
@@ -751,7 +772,7 @@ export class AgendaPage implements OnInit {
changeMonth = (month) => { changeMonth = (month) => {
const a = this.calendar.currentDate; const a = this.calendar.currentDate;
const isInvalidDate = (dateString) => JSON.stringify(new Date(dateString)) === 'null'; const isInvalidDate = (dateString) => JSON.stringify(new Date(dateString)) === 'null';
@@ -768,7 +789,7 @@ export class AgendaPage implements OnInit {
this.updateEventListBox() this.updateEventListBox()
} else { } else {
} }
} }
@@ -796,7 +817,7 @@ export class AgendaPage implements OnInit {
} }
changeProfile() { changeProfile() {
if (this.profile == "mdgpr") { if (this.profile == "mdgpr") {
this.profile = "pr"; this.profile = "pr";
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
@@ -839,7 +860,7 @@ export class AgendaPage implements OnInit {
cssClass: 'modal modal-desktop', cssClass: 'modal modal-desktop',
backdropDismiss: false backdropDismiss: false
}); });
modal.onDidDismiss().then((data) => { modal.onDidDismiss().then((data) => {
if (data) { if (data) {
@@ -870,7 +891,7 @@ export class AgendaPage implements OnInit {
openAddEventDismiss(data) { openAddEventDismiss(data) {
try { try {
let postEvent: Event = data; let postEvent: Event = data;
if (postEvent.Subject != null) { if (postEvent.Subject != null) {
// this.eventSource.push({ // this.eventSource.push({
@@ -900,7 +921,7 @@ export class AgendaPage implements OnInit {
let navigationExtras: NavigationExtras = { queryParams: { CalendarId } } let navigationExtras: NavigationExtras = { queryParams: { CalendarId } }
this.router.navigate(['/home/agenda/',eventId,'agenda'], navigationExtras); this.router.navigate(['/home/agenda/',eventId,'agenda'], navigationExtras);
} }
// open component // open component
@@ -923,7 +944,7 @@ export class AgendaPage implements OnInit {
setTimeout(()=>{ setTimeout(()=>{
this.onCurrentChanged(this.eventSelectedDate) this.onCurrentChanged(this.eventSelectedDate)
}, 500) }, 500)
} }
@@ -1083,7 +1104,7 @@ export class AgendaPage implements OnInit {
} }
reloadCalendar() { reloadCalendar() {
// //
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
} }
@@ -40,7 +40,6 @@
<i class="far fa-clock font-15"></i> <i class="far fa-clock font-15"></i>
<ion-label class="font-15 pl-10" color="warning">{{roomCountDownDate}}</ion-label> <ion-label class="font-15 pl-10" color="warning">{{roomCountDownDate}}</ion-label>
</div> </div>
{{ RouteService.history }}
</div> </div>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
@@ -341,4 +340,4 @@
</div> </div>
</div> </div>
</ion-footer> </ion-footer>
@@ -17,7 +17,7 @@
<div *ngIf="Form && validateFrom" > <div *ngIf="Form && validateFrom" >
<div *ngIf="Form.get('Subject').invalid " class="input-errror-message"> <div *ngIf="Form.get('Subject').invalid " class="input-errror-message">
<div *ngIf="Form.get('Subject').errors?.required"> <div *ngIf="Form.get('Subject').errors?.required">
</div> </div>
<div *ngIf="Form.get('Subject').errors?.minlength"> <div *ngIf="Form.get('Subject').errors?.minlength">
O campo deve ter pelo menos 4 caracteres. O campo deve ter pelo menos 4 caracteres.
@@ -34,12 +34,12 @@
<mat-form-field appearance="none" class="width-100" color="ion-color-secondary" placeholder="Selecione agenda"> <mat-form-field appearance="none" class="width-100" color="ion-color-secondary" placeholder="Selecione agenda">
<mat-select [(value)]="CalendarName" (selectionChange)="changeAgenda()"> <mat-select [(value)]="CalendarName" (selectionChange)="changeAgenda()">
<!-- <mat-option *ngFor="let calendars of _eventService.calendarNamesAry; let i = index" value="{{calendars}}"> <!-- <mat-option *ngFor="let calendars of _eventService.calendarNamesAry; let i = index" value="{{calendars}}">
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Presidente da República'"> {{ environment.agendaPR}} </div> <div *ngIf="calendars != 'Meu calendario' && calendars == 'Presidente da República'"> {{ environment.agendaPR}} </div>
<div *ngIf="calendars != 'Meu calendario' && calendars == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div> <div *ngIf="calendars != 'Meu calendario' && calendars == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
<div *ngIf="calendars != 'Meu calendario' && calendars != 'Ministro e Director do Gabinete do PR' && calendars != 'Presidente da República'"> Agenda do {{calendars}} </div> <div *ngIf="calendars != 'Meu calendario' && calendars != 'Ministro e Director do Gabinete do PR' && calendars != 'Presidente da República'"> Agenda do {{calendars}} </div>
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div> --> <div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div> -->
<mat-option *ngFor="let calendars of eventService.calendarNamesAry" value="{{ calendars.Fullname || calendars}}"> <mat-option *ngFor="let calendars of eventService.calendarNamesAry" value="{{ calendars.Fullname || calendars}}">
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div> <div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
@@ -47,7 +47,7 @@
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div> <div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div> <div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
</mat-option> </mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
@@ -72,16 +72,16 @@
<ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-calendar.svg"></ion-icon>
</div> </div>
<div class="ion-input-class flex-grow-1 justify-center align-center material-inputs " [class.input-error]="Form?.get('CalendarName')?.invalid && validateFrom "> <div class="ion-input-class flex-grow-1 justify-center align-center material-inputs " [class.input-error]="Form?.get('CalendarName')?.invalid && validateFrom ">
<mat-form-field appearance="none" class="width-100" color="ion-color-secondary" placeholder="Selecione agenda"> <mat-form-field appearance="none" class="width-100" color="ion-color-secondary" placeholder="Selecione agenda">
<mat-select [(value)]="postData.CalendarName" > <mat-select [(value)]="postData.CalendarName" >
<mat-option *ngFor="let calendars of CalendarNamesOptions" value="{{calendars}}"> <mat-option *ngFor="let calendars of CalendarNamesOptions" value="{{calendars}}">
Agenda {{ calendars }} Agenda {{ calendars }}
</mat-option> </mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>
</div> </div>
@@ -195,7 +195,7 @@
[stepHour]="stepHour" [stepMinute]="stepMinute" [stepHour]="stepHour" [stepMinute]="stepMinute"
[stepSecond]="stepSecond" [stepSecond]="stepSecond"
[touchUi]="touchUi" [touchUi]="touchUi"
> >
</ngx-mat-datetime-picker> </ngx-mat-datetime-picker>
</mat-form-field> </mat-form-field>
@@ -232,7 +232,7 @@
<div class="ion-icon-class"> <div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-people-cc.svg"></ion-icon>
</div> </div>
<div class="ion-input-class-no-height"> <div class="ion-input-class-no-height cursor-pointer" (click)="addParticipantsCc()">
<div class="list-people"> <div class="list-people">
<ion-item lines="none"> <ion-item lines="none">
<ion-list> <ion-list>
@@ -241,7 +241,7 @@
</ion-list> </ion-list>
</ion-item> </ion-item>
</div> </div>
<div class="add-people" (click)="addParticipantsCc()"> <div class="add-people" >
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon> <ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon> <ion-icon *ngIf="ThemeService.currentTheme == 'gov' " slot="start" src="assets/images/theme/gov/icons-arrow-forward.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " slot="start" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg"></ion-icon> <ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " slot="start" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-arrow-forward.svg"></ion-icon>
@@ -124,37 +124,30 @@ export class ExpedientTaskModalPage implements OnInit {
this.SearchFolder = this.navParams.get('SearchFolder'); this.SearchFolder = this.navParams.get('SearchFolder');
this.aplicationId = this.navParams.get('aplicationId') this.aplicationId = this.navParams.get('aplicationId')
// this.document = this.navParams.get('document') this.document = this.navParams.get('document')
this.taskType = this.navParams.get('taskAction'); this.taskType = this.navParams.get('taskAction');
// try {
// if(this.document) { // if(this.document) {
// const doc: any = this.document // const doc: any = this.document
// this.documents.push({
// this.documents.push({ // ApplicationId: (doc.ApplicationType || doc.ApplicationId),
// ApplicationId: (doc.ApplicationType || doc.ApplicationId), // ApplicationType: (doc.ApplicationType || doc.ApplicationId),
// ApplicationType: (doc.ApplicationType || doc.ApplicationId), // SourceId: (doc.Id || doc.DocId || doc.SourceId),
// SourceId: (doc.Id || doc.DocId || doc.SourceId), // Id: (doc.Id || doc.DocId || doc.SourceId),
// Id: (doc.Id || doc.DocId || doc.SourceId), // EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),
// EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), // Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),
// Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), // Data: (doc.DocDate || doc.Data),
// Data: (doc.DocDate || doc.Data), // DocDate: (doc.DocDate || doc.Data),
// DocDate: (doc.DocDate || doc.Data), // Assunto: doc.Assunto,
// Assunto: doc.Assunto, // } as any)
// } as any) // }
// } catch (error) {
// console.log(error)
// } // }
// console.log('this.document', this.document)
const DocumentToSave = this.documents.map((e) => {
return {
ApplicationId: e.ApplicationType,
SourceId: e.Id
}
});
console.log('this.document', this.document)
/* this.selectedTypes = ['99999850']; */ /* this.selectedTypes = ['99999850']; */
+2
View File
@@ -319,6 +319,8 @@ export class MessageService {
if(params?.attachments) { if(params?.attachments) {
if(params?.attachments[0]?.image_url) { if(params?.attachments[0]?.image_url) {
delete params?.attachments[0]?.image_url delete params?.attachments[0]?.image_url
delete params?.file?.image_url
// delete
} }
} }
+17 -11
View File
@@ -43,11 +43,15 @@ export class NotificationHolderService {
notificationObject(notification) { notificationObject(notification) {
const element = notification const element = notification
const i = this._notificationList.length + 1
let notificationObject; let notificationObject;
if (element.notification) { if (element.notification) {
notificationObject = { notificationObject = {
id: notification?.id, id: notification?.id || uuidv4(),
index: i,
title: element.notification.title, title: element.notification.title,
Service: element.data.Service, Service: element.data.Service,
Object: element.data.Object, Object: element.data.Object,
@@ -65,7 +69,8 @@ export class NotificationHolderService {
} else if (element.data) { } else if (element.data) {
notificationObject = { notificationObject = {
id: notification?.id, id: notification?.id || uuidv4(),
index: i,
title: element.title, title: element.title,
Service: element.data.Service, Service: element.data.Service,
Object: element.data.Object, Object: element.data.Object,
@@ -84,19 +89,20 @@ export class NotificationHolderService {
} else { } else {
{ {
notificationObject = { notificationObject = {
id: notification?.id, id: notification?.id || uuidv4(),
title: element.title,
Service: element.Service,
Object: element.Object,
IdObject: element.IdObject,
FolderId: element.FolderId, FolderId: element.FolderId,
body: element.body, IdObject: element.IdObject,
dateInit: element.dateInit,
dateEnd: element.dateEnd,
Location: element.Location, Location: element.Location,
TypeAgenda: element.TypeAgenda, Object: element.Object,
Role: element.Role, Role: element.Role,
Service: element.Service,
Status: element.Status, Status: element.Status,
TypeAgenda: element.TypeAgenda,
body: element.body,
dateEnd: element.dateEnd,
dateInit: element.dateInit,
index: element.index,
title: element.title,
read: false, read: false,
} }
} }
+1 -1
View File
@@ -4,4 +4,4 @@ import { doneITProd } from './suport/doneIt'
import { DevDev } from './suport/dev' import { DevDev } from './suport/dev'
export const environment: Environment = DevDev; export const environment: Environment = oaprProd;
+1 -1
View File
@@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt'
import { DevDev } from './suport/dev' import { DevDev } from './suport/dev'
export const environment: Environment = DevDev export const environment: Environment = oaprDev
File diff suppressed because one or more lines are too long