Files
doneit-web/.angular/cache/14.2.12/babel-webpack/417c97cc4058a04cd0eed8f78124a2ec.json
T

1 line
26 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"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 \"./despachos-pr.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./despachos-pr.page.scss?ngResource\";\nimport { Component, ViewChild } from '@angular/core';\nimport { CalendarComponent } from 'ionic2-calendar';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { ModalController } from '@ionic/angular';\nimport { AlertService } from 'src/app/services/alert.service';\nimport { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';\nimport { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';\nimport { NavigationStart, Router } from '@angular/router';\nimport { DespachosprStore } from 'src/app/store/despachospr-store.service';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { SortService } from 'src/app/services/functions/sort.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';\nimport { environment } from 'src/environments/environment';\nimport { TaskService } from 'src/app/services/task.service';\nimport { RouteService } from 'src/app/services/route.service';\nlet DespachosPrPage = class DespachosPrPage {\n constructor(processes, modalController, alertService, router, backgroundservice, sortService, ThemeService, TaskService, RouteService) {\n this.processes = processes;\n this.modalController = modalController;\n this.alertService = alertService;\n this.router = router;\n this.backgroundservice = backgroundservice;\n this.sortService = sortService;\n this.ThemeService = ThemeService;\n this.TaskService = TaskService;\n this.RouteService = RouteService;\n this.taskslist = [];\n this.despachoList = [];\n this.deferimentoList = [];\n this.taskList = [];\n this.dicIndex = 0;\n this.inicial = false;\n this.skeletonLoader = true;\n this.despachoprstore = DespachosprStore;\n this.customTaskPipe = new CustomTaskPipe();\n this.SessionStore = SessionStore;\n this.environment = environment;\n this.filterName = 'Todos';\n this.showSearch = false;\n this.searchSubject = '';\n this.list = [];\n this.ordinance = 'old';\n this.profile = 'mdgpr';\n }\n ngOnInit() {\n //Inicializar segment\n this.segment = \"despachos\";\n const location = window.location;\n const pathname = location.pathname + location.search;\n this.LoadList();\n this.router.events.forEach(event => {\n if (event instanceof NavigationStart && event.url.startsWith(pathname)) {\n if (window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {\n this.LoadList();\n } else {\n this.LoadList();\n }\n }\n });\n this.backgroundservice.registerBackService('Online', () => {\n this.LoadList();\n });\n this.dynamicSearch();\n }\n reorderList(orderBy) {\n this.ordinance = orderBy;\n this.dynamicSearch();\n }\n changeFilterName(filterName) {\n this.filterName = filterName;\n }\n dynamicSearch() {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.showSearch && _this.searchSubject) {\n const searchedList = _this.TaskService.despachoprstore.list.filter(task => {\n let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject;\n subject = subject.toLowerCase();\n return subject.includes(_this.searchSubject.toLowerCase());\n });\n _this.list = _this.TaskService.reorderList(_this.ordinance, searchedList);\n } else {\n const list = _this.TaskService.despachoprstore.list;\n _thi