mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
1 line
46 KiB
JSON
1 line
46 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 } from '@angular/core';\nimport { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { AlertController, ModalController, NavParams } from '@ionic/angular';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { EventsService } from 'src/app/services/events.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { AttendeesPageModal } from '../../events/attendees/attendees.page';\nimport { SearchPage } from '../../search/search.page';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';\nimport { SessionStore } from 'src/app/store/session.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 EditEventPage = class EditEventPage {\n constructor(modalController, navParams, eventsService, alertController, attachmentsService, toastService, router, ThemeService, httpErrorHandle) {\n this.modalController = modalController;\n this.navParams = navParams;\n this.eventsService = eventsService;\n this.alertController = alertController;\n this.attachmentsService = attachmentsService;\n this.toastService = toastService;\n this.router = router;\n this.ThemeService = ThemeService;\n this.httpErrorHandle = httpErrorHandle;\n this.validateFrom = false;\n this.segment = \"true\";\n this.disabled = false;\n this.showSpinners = true;\n this.showSeconds = false;\n this.touchUi = false;\n this.enableMeridian = false;\n this.endMinDate = new Date(new Date().getTime() + 15 * 60000).toISOString().slice(0, 10);\n this.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 15;\n this.loadedEventAttachments = [];\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.adding = \"intervenient\";\n this.showAttendees = false;\n this.listColors = ['primary', 'accent', 'warn'];\n this.stepHours = [1, 2, 3, 4, 5];\n this.stepMinutes = [1, 5, 10, 15, 20, 25];\n this.stepSeconds = [1, 5, 10, 15, 20, 25];\n this.sesseionStora = SessionStore;\n /* this.postEvent = new Event(); */\n this.isEventEdited = false;\n /* this.postEvent.EventRecurrence = { Type:'-1', LastOccurrence:''}; */\n this.postEvent = this.navParams.get('event');\n // console.log(this.postEvent);\n this.caller = this.navParams.get('caller');\n this.initCalendarName = this.postEvent.CalendarName;\n if (this.postEvent) {\n if (this.postEvent.Body) {\n if (typeof this.postEvent.Body.Text == 'string') {\n this.postEvent.Body.Text = this.postEvent.Body.Text.replace(/<[^>]+>/g, '');\n }\n }\n }\n if (this.postEvent.Attendees == null) {\n this.taskParticipants = [];\n } else {\n this.postEvent.Attendees.forEach(e => {\n if (e.IsRequired) {\n this.taskParticipants.push(e);\n } else {\n this.taskParticipantsCc.push(e);\n }\n });\n }\n if (this.postEvent.IsRecurring == false) {\n this.isRecurring = \"Não se repete\";\n } else {\n this.isRecurring = \"Repete\";\n }\n this.getAttachments(this.postEvent.EventId);\n }\n ngOnInit() {\n window.onresize = event => {\n // if not mobile remove all component\n if (window.innerWidth >= 1024) {\n this.modalControll
|