mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
42 KiB
JSON
1 line
42 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./edit-event.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./edit-event.page.scss?ngResource\";\nimport { Component, ViewChild } from '@angular/core';\nimport { AlertController, ModalController, NavParams } from '@ionic/angular';\nimport { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';\nimport { SearchPage } from 'src/app/pages/search/search.page';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { EventsService } from 'src/app/services/events.service';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';\nimport { Router } from '@angular/router';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nconst CUSTOM_DATE_FORMATS = {\n parse: {\n dateInput: \"YYYY-MMMM-DD HH:mm\"\n },\n display: {\n dateInput: \"DD MMM YYYY H:mm\",\n monthYearLabel: \"MMM YYYY\",\n dateA11yLabel: \"LL\",\n monthYearA11yLabel: \"MMMM YYYY\"\n }\n};\nlet EditEventToApproveComponent = class EditEventToApproveComponent {\n constructor(modalController, navParams, eventsService, alertController, attachmentsService, processes, toastService, router, ThemeService, httpErroHalde) {\n this.modalController = modalController;\n this.navParams = navParams;\n this.eventsService = eventsService;\n this.alertController = alertController;\n this.attachmentsService = attachmentsService;\n this.processes = processes;\n this.toastService = toastService;\n this.router = router;\n this.ThemeService = ThemeService;\n this.httpErroHalde = httpErroHalde;\n this.disabled = false;\n this.showSpinners = true;\n this.showSeconds = false;\n this.touchUi = false;\n this.enableMeridian = false;\n this.minDate = new Date().toISOString().slice(0, 10);\n this.endMinDate = new Date(new Date().getTime() + 15 * 60000);\n this.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 5;\n this.currentDate = new Date();\n this.showLoader = false;\n this.loadedAttachments = [];\n this.eventProcess = {\n serialNumber: \"\",\n taskStartDate: \"\",\n workflowInstanceDataFields: {\n Body: \"\",\n OccurrenceType: '',\n Category: '',\n LastOccurrence: new Date(),\n ParticipantsList: [],\n Agenda: '',\n EndDate: '',\n Location: '',\n Subject: '',\n InstanceId: '',\n EventType: '',\n StartDate: '',\n MDEmail: '',\n MDName: '',\n IsAllDayEvent: false,\n Message: '',\n IsRecurring: false\n }\n };\n this.show = false;\n this.segment = \"true\";\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.adding = \"intervenient\";\n this.Location = '';\n this.showAttendees = false;\n // Edit event to approve\n this.serialNumber = this.navParams.get('serialNumber');\n this.isEventEdited = false;\n }\n ngOnInit() {\n this.getTask();\n this.getRecurrenceTypes();\n }\n getTask() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const result = yield _this.processes.GetTask(_this.serialNumber).toPromise();\n _this.eventProcess = result;\n _this.eventProcess.workflowInstanceDataFields.Category = result.workflowInstanceDataFields.EventType;\n _this.eventProcess.workflowInstanceDataFields.LastOccurrence = new Date(_this.eventProcess.workflowInstanceDataFields.LastOccurrence);\n _this.startDate = new Date(_this.eventProcess.workflowInstanceDataFields.StartDate);\n _this.endDate = new Date(_this.eventPr
|