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

1 line
24 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 \"./pedidos.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./pedidos.page.scss?ngResource\";\nimport { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\nimport { CalendarComponent } from 'ionic2-calendar';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { ModalController } from '@ionic/angular';\nimport { PedidoPage } from 'src/app/pages/gabinete-digital/pedidos/pedido/pedido.page';\nimport { PedidosStore } from 'src/app/store/pedidos-store.service';\nimport { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';\nimport { SortService } from 'src/app/services/functions/sort.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { TaskService } from 'src/app/services/task.service';\nlet PedidosPage = class PedidosPage {\n constructor(router, processes, modalController, sortService, ThemeService, TaskService) {\n this.router = router;\n this.processes = processes;\n this.modalController = modalController;\n this.sortService = sortService;\n this.ThemeService = ThemeService;\n this.TaskService = TaskService;\n this.parecerList = [];\n this.parecerListResult = [];\n this.deferimentoListResult = [];\n this.deferimentoList = [];\n this.openPedido = new EventEmitter();\n this.skeletonLoader = true;\n this.pedidosstore = PedidosStore;\n this.customTaskPipe = new CustomTaskPipe();\n this.filterName = 'Todos';\n this.showSearch = false;\n this.searchSubject = '';\n this.listPedidosParecer = [];\n this.listPedidosDeferimento = [];\n this.hideSearchBtn = false;\n this.ordinance = 'old';\n this.profile = 'mdgpr';\n }\n ngOnInit() {\n this.LoadList();\n this.listSubscription = this.pedidosstore.registerCallback({\n id: import.meta.url,\n funx: () => {\n this.dynamicSearch();\n }\n });\n this.dynamicSearch();\n this.routerSubscription = this.router.events.subscribe(event => {\n if (event instanceof NavigationStart && '/home/gabinete-digital?parecer=true'.startsWith(event.url) || event instanceof NavigationStart && '/home/gabinete-digital?deferimento=true'.startsWith(event.url) || event instanceof NavigationStart && '/home/gabinete-digital?pedidos=true'.startsWith(event.url)) {\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 window['gabinete-aside-refresh'] = () => {\n this.LoadList();\n };\n }\n ngOnDestroy() {\n this.listSubscription.delete();\n this.routerSubscription?.unsubscribe();\n }\n reorderList(orderBy) {\n this.ordinance = orderBy;\n this.dynamicSearch();\n }\n dynamicSearch() {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.showSearch && _this.searchSubject) {\n const listPedidosParecer = _this.pedidosstore.listparecer.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.listPedidosParecer = _this.TaskService.reorderList(_this.ordinance, listPedidosParecer);\n const listPedidosDeferimento = _this.pedidosstore.listdeferimento.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.listPedidosDeferimento = _this.TaskService.reorderList(_this.ordinance, listPedido