mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
22 KiB
JSON
1 line
22 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 \"./pendentes.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./pendentes.page.scss?ngResource\";\nimport { Component, Input, ViewChild } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { CalendarComponent } from 'ionic2-calendar';\nimport { removeDuplicate } from 'src/plugin/removeDuplicate.js';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { AlertService } from 'src/app/services/alert.service';\nimport { PendentesStore } from 'src/app/store/pendestes-store.service';\nimport { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { SortService } from 'src/app/services/functions/sort.service';\nimport { Storage } from '@ionic/storage';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nimport { TaskService } from 'src/app/services/task.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { RouteService } from 'src/app/services/route.service';\nlet PendentesPage = class PendentesPage {\n constructor(processes, alertService, router, backgroundservices, sortService, storage, httpErroHandle, TaskService, ThemeService, RouteService) {\n this.processes = processes;\n this.alertService = alertService;\n this.router = router;\n this.backgroundservices = backgroundservices;\n this.sortService = sortService;\n this.storage = storage;\n this.httpErroHandle = httpErroHandle;\n this.TaskService = TaskService;\n this.ThemeService = ThemeService;\n this.RouteService = RouteService;\n this.skeletonLoader = true;\n this.pendentesstore = PendentesStore;\n this.customTaskPipe = new CustomTaskPipe();\n this.listToPresent = [];\n this.filterName = 'Todos';\n this.showSearch = false;\n this.searchSubject = '';\n this.list = [];\n this.ordinance = 'old';\n this.headerName = \"Pendentes\";\n this.loggeduser = SessionStore.user;\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 NavigationEnd && event.url.startsWith(pathname)) {\n if (window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {\n this.refreshing();\n } else {\n this.LoadList();\n }\n }\n });\n this.backgroundservices.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 list = _this.pendentesstore.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, list);\n } else {\n const list = _this.pendentesstore.list;\n _this.list = _this.TaskService.reorderList(_this.ordinance, list);\n }\n })();\n }\n segmentChanged(ev) {\n this.refreshing();\n }\n goBack() {\n this.RouteService.goBack();\n }\n notImplemented() {\n this.alertService.presentAlert('Funcionalidade em desenvolvimento');\n
|