mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
68 KiB
JSON
1 line
68 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, Input, Output, EventEmitter } from '@angular/core';\nimport { EventsService } from 'src/app/services/events.service';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { Event } from 'src/app/models/event.model';\nimport { ModalController } from '@ionic/angular';\nimport { removeDuplicate } from 'src/plugin/removeDuplicate.js';\nimport { SearchPage } from 'src/app/pages/search/search.page';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { DateAdapter } from '@angular/material/core';\nimport { UntypedFormControl } from '@angular/forms';\nimport { ViewChild } from '@angular/core';\nimport { UntypedFormGroup, Validators } from '@angular/forms';\nimport { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { ChatMethodsService } from 'src/app/services/chat/chat-methods.service';\nimport { SessionStore } from 'src/app/store/session.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, eventService, attachmentsService, toastService, dateAdapter, ThemeService, chatMethodService, hhtpErrorHandle) {\n this.modalController = modalController;\n this.eventService = eventService;\n this.attachmentsService = attachmentsService;\n this.toastService = toastService;\n this.dateAdapter = dateAdapter;\n this.ThemeService = ThemeService;\n this.chatMethodService = chatMethodService;\n this.hhtpErrorHandle = hhtpErrorHandle;\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.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 15;\n this.currentDate = this.roundTimeQuarterHour();\n this.color = 'primary';\n this.recurringTypes = [];\n this.taskParticipants = [];\n this.taskParticipantsCc = [];\n this.setIntervenient = new EventEmitter();\n this.setIntervenientCC = new EventEmitter();\n this.onAddEvent = new EventEmitter();\n this.openAttendeesComponent = new EventEmitter();\n this.clearContact = new EventEmitter();\n this.GoBackEditOrAdd = new EventEmitter();\n this.cloneAllmobileComponent = new EventEmitter();\n this.backToChat = new EventEmitter();\n this.documents = [];\n this.validateFrom = false;\n this.options = [{\n value: true,\n label: 'True'\n }, {\n value: false,\n label: 'False'\n }];\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.showLoader = false;\n this.CalendarNameShow = true;\n this.CalendarNamesOptions = ['Oficial', 'Pessoal'];\n this.environment = environment;\n this.dateAdapter.setLocale('pt');\n this.loggeduser = SessionStore.user;\n this.postEvent = new Event();\n }\n ngOnInit() {\n if (!this.CalendarName) {\n if (this.eventService.calendarNamesAry.includes('Meu calendario')) {\n this.CalendarName = 'Meu calendario';\n } else {\n this.CalendarName = this.eventService.calendarNamesAry[0];\n }\n }\n this.getRecurrenceTypes();\n if (!
|