mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
1 line
52 KiB
JSON
1 line
52 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 \"./new-event.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./new-event.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { ModalController, NavParams, Platform } 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 { Event } from '../../../models/event.model';\nimport { AttendeesPageModal } from '../../events/attendees/attendees.page';\nimport { SearchPage } from '../../search/search.page';\nimport { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';\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 { ChatMethodsService } from 'src/app/services/chat/chat-methods.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nimport { environment } from 'src/environments/environment';\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 NewEventPage = class NewEventPage {\n constructor(modalController, navParams, eventService, attachmentsService, toastService, ThemeService, platform, chatMethodService, hhtpErrorHandle) {\n this.modalController = modalController;\n this.navParams = navParams;\n this.eventService = eventService;\n this.attachmentsService = attachmentsService;\n this.toastService = toastService;\n this.ThemeService = ThemeService;\n this.platform = platform;\n this.chatMethodService = chatMethodService;\n this.hhtpErrorHandle = hhtpErrorHandle;\n this.disabled = false;\n this.showSpinners = false;\n this.showSeconds = true;\n this.touchUi = false;\n this.enableMeridian = false;\n this.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 15;\n this.color = 'primary';\n this.validateFrom = false;\n this.segment = \"true\";\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.documents = [];\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.CalendarNamesOptions = ['Oficial', 'Pessoal'];\n this.globalEnd = new Date('1999');\n this.environment = environment;\n this.loggeduser = SessionStore.user;\n this.postEvent = new Event();\n this.postEvent.EventRecurrence = {\n Type: '-1'\n };\n this.eventBody = {\n BodyType: \"1\",\n Text: \"\"\n };\n this.postEvent.Body = this.eventBody;\n this.roomId = this.navParams.get('roomId');\n this.selectedSegment = this.navParams.get('segment');\n this.selectedDate = this.navParams.get('eventSelectedDate');\n this.taskParticipants = this.navParams.get('attendees');\n this.CalendarDate = this.navParams.get('CalendarDate');\n }\n ngOnInit() {\n if (this.platform.is('desktop')) {\n // this.taskParticipants = [];\n }\n if (!this.CalendarName) {\n console.log('true', this.eventService.calendarNamesAry.includes('Meu calendario'));\n if (this.eventService.calendarNamesAry.includes('Meu calendario')) {\n this.CalendarName = 'Meu calendario';\n console.log(this.eventService.calendarNamesAry);\n } else {\n this.CalendarName = this.eventService.calendarNamesAry[0];\n }\n }\n this.selectedRecurringType = \"-1\";\n this.getRecurrenceTypes();\n if (this.sele
|