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

1 line
17 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 \"./expediente.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./expediente.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { ExpedienteGdStore } from 'src/app/store/expedientegd-store.service';\nimport { ExpedienteTaskPipe } from 'src/app/pipes/expediente-task.pipe';\nimport { SqliteService } from 'src/app/services/sqlite.service';\nimport { Platform } from '@ionic/angular';\nimport { BackgroundService } from '../../../services/background.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { SortService } from 'src/app/services/functions/sort.service';\nimport { Storage } from '@ionic/storage';\nimport { EventTrigger } from 'src/app/services/eventTrigger.service';\nimport { TaskDeadlineService } from 'src/app/services/task-deadline.service';\nimport { TaskService } from 'src/app/services/task.service';\nimport { RouteService } from 'src/app/services/route.service';\nlet ExpedientePage = class ExpedientePage {\n constructor(processes, router, toastService, platform, sqliteservice, backgroundservice, ThemeService, sortService, storage, eventTriger, TaskDeadlineService, TaskService, RouteService) {\n this.processes = processes;\n this.router = router;\n this.toastService = toastService;\n this.platform = platform;\n this.sqliteservice = sqliteservice;\n this.backgroundservice = backgroundservice;\n this.ThemeService = ThemeService;\n this.sortService = sortService;\n this.storage = storage;\n this.eventTriger = eventTriger;\n this.TaskDeadlineService = TaskDeadlineService;\n this.TaskService = TaskService;\n this.RouteService = RouteService;\n this.skeletonLoader = true;\n //expedienteGdStore = ExpedienteGdStore;\n this.expedientegbstore = ExpedienteGdStore;\n this.expedienteTaskPipe = new ExpedienteTaskPipe();\n this.showSearch = false;\n this.searchSubject = '';\n this.list = [];\n this.ordinance = 'old';\n this.filterName = 'Todos';\n this.eventTriger.getObservable().subscribe(event => {\n if (event.notification == \"recive\") {\n this.refreshing();\n }\n // console.log(event)\n });\n }\n\n ngOnInit() {\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.refreshing();\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 dynamicSearch() {\n var _this = this;\n return _asyncToGenerator(function* () {\n if (_this.showSearch && _this.searchSubject) {\n const searchedList = _this.expedientegbstore.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.expedientegbstore.list;\n _this.list = _this.TaskService.reorderList(_this.ordinance, list);\n }\n })();\n }\n LoadList() {\n var _this2 = this;\n this.pr