mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
1 line
80 KiB
JSON
1 line
80 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 \"./search.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./search.page.scss?ngResource\";\nimport { Component, ViewChild } from '@angular/core';\nimport { ModalController, NavParams } from '@ionic/angular';\nimport { SearchService } from \"../../services/search.service\";\nimport { formatDate } from '@angular/common';\nimport { SenderPage } from 'src/app/pages/search/sender/sender.page';\nimport { OrganicEntityPage } from 'src/app/pages/search/organic-entity/organic-entity.page';\nimport WordCloud from 'src/plugin/wordcloud2.js';\nimport { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';\nimport { PublicationDetailPage } from '../publications/view-publications/publication-detail/publication-detail.page';\nimport { DocumentDetailPage } from 'src/app/modals/document-detail/document-detail.page';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';\nimport { Router } from '@angular/router';\nimport { environment } from 'src/environments/environment';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nimport { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';\nimport { momentG } from 'src/plugin/momentG';\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 SearchPage = class SearchPage {\n constructor(modalController, search, modalCtrl, navParams, ThemeService, router, httpErrorhandle) {\n this.modalController = modalController;\n this.search = search;\n this.modalCtrl = modalCtrl;\n this.navParams = navParams;\n this.ThemeService = ThemeService;\n this.router = router;\n this.httpErrorhandle = httpErrorhandle;\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.searchCategories = [];\n this.showSearchDocuments = [];\n this.searchDocuments = [];\n this.showDocuments = false;\n this.showAdvanceSearch = false;\n this.searchResult = \"Assuntos mais recebidos\";\n // See http://idangero.us/swiper/api/ for valid options.\n this.slideOpts = {\n slidesPerView: parseInt(`${window.innerWidth / 147}`, 10),\n initialSlide: 0,\n speed: 400\n };\n this.list = [];\n this.type = \"Agenda\";\n this.select = false;\n this.showSearchInput = false;\n this.TodosCategory = true;\n this.ordinance = \"recent\";\n this.currentPath = window.location.pathname;\n this.type = this.navParams.get('type');\n this.type = this.navParams.get('type');\n this.select = this.navParams.get('select');\n this.showSearchInput = this.navParams.get('showSearchInput');\n if (this.type == null || this.type == undefined) {\n if (this.currentPath == '/home/agenda') {\n this.type = \"Agenda\";\n } else if (this.currentPath == '/home/gabinete-digital') {\n this.type = \"AccoesPresidenciais & ArquivoDespachoElect\";\n } else if (this.currentPath == '/home/publications') {\n this.type = \"AccoesPresidenciais\";\n } else {}\n }\n }\n selectItem(item) {\n if (this.select) {\n this.modalController.dismiss({\n selected: item\n });\n }\n }\n view(item) {\n var _this = this;\n return _asyncToGenerator(function* () {\n const ApplicationType = item.ApplicationType.toString();\n const Id = item.Id;\n if (ApplicationType == '8') {\n // this.viewDocumentDetail(Id, ApplicationType);\n const modal = yield _
|