mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
1 line
51 KiB
JSON
1 line
51 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-to-approve.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./edit-event-to-approve.page.scss?ngResource\";\nimport { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';\nimport { AlertController, ModalController } from '@ionic/angular';\nimport * as moment from 'moment';\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 { removeDuplicate } from 'src/plugin/removeDuplicate.js';\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 EditEventToApprovePage = class EditEventToApprovePage {\n constructor(modalController, eventsService, alertController, attachmentsService, processes, toastService, ThemeService, httpErrorHandler) {\n this.modalController = modalController;\n this.eventsService = eventsService;\n this.alertController = alertController;\n this.attachmentsService = attachmentsService;\n this.processes = processes;\n this.toastService = toastService;\n this.ThemeService = ThemeService;\n this.httpErrorHandler = httpErrorHandler;\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();\n this.endMinDate = new Date(new Date().getTime() + 15 * 60000);\n this.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 5;\n this.dateControlStart = new UntypedFormControl(moment(\"DD MM YYYY hh\"));\n this.dateControlEnd = new UntypedFormControl(moment(\"DD MM YYYY hh\"));\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 IsRecurring: false,\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 Status: ''\n }\n };\n this.show = false;\n this.adding = \"intervenient\";\n this.showAttendees = false;\n this.validateFrom = false;\n this.openAttendeesComponent = new EventEmitter();\n this.clearContact = new EventEmitter();\n this.setIntervenient = new EventEmitter();\n this.setIntervenientCC = new EventEmitter();\n this.closeComponent = new EventEmitter();\n this.closeEventToApprove = new EventEmitter();\n this.approveEventDismiss = new EventEmitter();\n this.isEventEdited = false;\n }\n get dateStart() {\n return this.dateControlStart.value;\n }\n get dateEnd() {\n return this.dateControlEnd.value;\n }\n ngOnInit() {\n if (this.restoreTemporaryData()) {\n this.setOtherData();\n } else {\n this.getTask();\n }\n this.getRecurrenceTypes();\n }\n getTask() {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.processes.GetTask(_this.serialNumber).subscribe(result => {\n
|