Files
doneit-web/.angular/cache/14.2.12/babel-webpack/5ade841d2606dd98c80f5ffedff3d76c.json
T
Eudes Inácio 53b71ea16f its working
2023-06-30 09:54:21 +01:00

1 line
6.5 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 \"./add-note.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./add-note.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { AnimationController, ModalController, NavParams } from '@ionic/angular';\nimport { SearchPage } from 'src/app/pages/search/search.page';\nimport { ThemeService } from 'src/app/services/theme.service';\nlet AddNotePage = class AddNotePage {\n constructor(modalController, animationController, navParams, ThemeService) {\n this.modalController = modalController;\n this.animationController = animationController;\n this.navParams = navParams;\n this.ThemeService = ThemeService;\n this.note = '';\n this.documents = [];\n this.hideThisFeature = true;\n this.note = '';\n this.hideThisFeature = this.navParams.get('showAttachmentBtn');\n this.actionName = this.navParams.get('actionName');\n }\n ngOnInit() {}\n close() {\n this.modalController.dismiss('');\n }\n save() {\n let body = {\n \"note\": this.note,\n \"documents\": this.documents\n };\n this.modalController.dismiss(body);\n }\n getDoc() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const modal = yield _this.modalController.create({\n component: SearchPage,\n cssClass: 'modal-width-100-width-background modal',\n componentProps: {\n type: 'AccoesPresidenciais & ArquivoDespachoElect',\n showSearchInput: true,\n select: true\n }\n });\n yield modal.present();\n modal.onDidDismiss().then(res => {\n if (res) {\n const data = res.data;\n _this.documents.push(data.selected);\n }\n });\n })();\n }\n removeAttachment(index) {\n this.documents = this.documents.filter((e, i) => index != i);\n }\n};\nAddNotePage.ctorParameters = () => [{\n type: ModalController\n}, {\n type: AnimationController\n}, {\n type: NavParams\n}, {\n type: ThemeService\n}];\nAddNotePage = __decorate([Component({\n selector: 'app-add-note',\n template: __NG_CLI_RESOURCE__0,\n styles: [__NG_CLI_RESOURCE__1]\n})], AddNotePage);\nexport { AddNotePage };","map":{"version":3,"mappings":";;;;AAAA,SAASA,SAAS,QAAgB,eAAe;AACjD,SAASC,mBAAmB,EAAEC,eAAe,EAAEC,SAAS,QAAQ,gBAAgB;AAEhF,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,YAAY,QAAQ,gCAAgC;AAOtD,IAAMC,WAAW,GAAjB,MAAMA,WAAW;EAOtBC,YACUC,eAAgC,EAChCC,mBAAwC,EACxCC,SAAoB,EACrBL,YAA0B;IAHzB,oBAAe,GAAfG,eAAe;IACf,wBAAmB,GAAnBC,mBAAmB;IACnB,cAAS,GAATC,SAAS;IACV,iBAAY,GAAZL,YAAY;IAVrB,SAAI,GAAW,EAAE;IACjB,cAAS,GAAiB,EAAE;IAE5B,oBAAe,GAAY,IAAI;IAS7B,IAAI,CAACM,IAAI,GAAG,EAAE;IACd,IAAI,CAACC,eAAe,GAAG,IAAI,CAACF,SAAS,CAACG,GAAG,CAAC,mBAAmB,CAAC;IAC9D,IAAI,CAACC,UAAU,GAAG,IAAI,CAACJ,SAAS,CAACG,GAAG,CAAC,YAAY,CAAC;EACnD;EAEDE,QAAQA,IAER;EAEAC,KAAKA;IACH,IAAI,CAACR,eAAe,CAACS,OAAO,CAAC,EAAE,CAAC;EAClC;EAEAC,IAAIA;IACF,IAAIC,IAAI,GAAG;MACT,MAAM,EAAC,IAAI,CAACR,IAAI;MAChB,WAAW,EAAC,IAAI,CAACS;KAClB;IACD,IAAI,CAACZ,eAAe,CAACS,OAAO,CAACE,IAAI,CAAC;EACpC;EAEME,MAAMA;IAAA;IAAA;MAEV,MAAMC,KAAK,SAASC,KAAI,CAACf,eAAe,CAACgB,MAAM,CAAC;QAC9CC,SAAS,EAAErB,UAAU;QACrBsB,QAAQ,EAAE,wCAAwC;QAClDC,cAAc,EAAE;UACdC,IAAI,EAAE,4CAA4C;UAClDC,eAAe,EAAE,IAAI;UACrBC,MAAM,EAAE;;OAEX,CAAC;MACF,MAAMR,KAAK,CAACS,OAAO,EAAE;MACnBT,KAAK,CAACU,YAAY,EAAE,CAACC,IAAI,CAAEC,GAAG,IAAG;QAC/B,IAAGA,GAAG,EAAC;UACL,MAAMC,IAAI,GAAGD,GAAG,CAACC,IAAI;UACrBZ,KAAI,CAACH,SAAS,CAACgB,IAAI,CAACD,IAAI,CAACE,QAAQ,CAAC;;MAExC,CAAC,CAAC;IAAC;EAEL;EAEAC,gBAAgBA,CAACC,KAAa;IAE5B,IAAI,CAACnB,SAAS,GAAG,IAAI,CAACA,SAAS,CAACoB,MAAM,CAAE,CAACC,CAAC,EAAEC,CAAC,KAAMH,KAAK,IAAIG,CAAC,CAAC;EAChE;;;;;;;;;;;AA1DWpC,WAAW,eALvBN,SAAS,CAAC;EACT2C,QAAQ,EAAE,cAAc;EACxBC,8BAAmC;;CAEpC,CAAC,GACWtC,WAAW;SAAXA,WAAW","names":["Component","AnimationController","ModalController","NavParams","SearchPage","ThemeService","AddNotePage","constructor","modalController","animationController","navParams","note","hideThisFeature","get","actionName","ngOnInit","close","dismiss","save","body","documents","getDoc","modal","_this","create","component","cssClass","componentProps","type","showSearchInput","select","present","onDidDismiss","then","res","data","push","selected","removeAttachment","index","filter","e","i","selector","template"],"sourceRoot":"","sources":["C:\\Users\\eudes.inacio\\GabineteDigital\\gabinete-digital-fo\\src\\app\\modals\\add-note\\add-note.page.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { AnimationController, ModalController, NavParams } from '@ionic/angular';\r\nimport { SearchList } from 'src/app/models/search-document';\r\nimport { SearchPage } from 'src/app/pages/search/search.page';\r\nimport { ThemeService } from 'src/app/services/theme.service'\r\n\r\n@Component({\r\n selector: 'app-add-note',\r\n templateUrl: './add-note.page.html',\r\n styleUrls: ['./add-note.page.scss'],\r\n})\r\nexport class AddNotePage implements OnInit {\r\n note: string = '';\r\n documents: SearchList[] = [];\r\n loadedAttachments:any;\r\n hideThisFeature: boolean = true;\r\n actionName: string;\r\n\r\n constructor(\r\n private modalController: ModalController,\r\n private animationController: AnimationController,\r\n private navParams: NavParams,\r\n public ThemeService: ThemeService\r\n ) {\r\n this.note = '';\r\n this.hideThisFeature = this.navParams.get('showAttachmentBtn');\r\n this.actionName = this.navParams.get('actionName');\r\n }\r\n\r\n ngOnInit() {\r\n\r\n }\r\n\r\n close() {\r\n this.modalController.dismiss('');\r\n }\r\n\r\n save() {\r\n let body = {\r\n \"note\":this.note,\r\n \"documents\":this.documents,\r\n }\r\n this.modalController.dismiss(body);\r\n }\r\n\r\n async getDoc() {\r\n\r\n const modal = await this.modalController.create({\r\n component: SearchPage,\r\n cssClass: 'modal-width-100-width-background modal',\r\n componentProps: {\r\n type: 'AccoesPresidenciais & ArquivoDespachoElect',\r\n showSearchInput: true,\r\n select: true\r\n }\r\n });\r\n await modal.present();\r\n modal.onDidDismiss().then((res)=>{\r\n if(res){\r\n const data = res.data;\r\n this.documents.push(data.selected);\r\n }\r\n });\r\n\r\n }\r\n\r\n removeAttachment(index: number){\r\n\r\n this.documents = this.documents.filter( (e, i) => index != i);\r\n }\r\n\r\n\r\n}\r\n"]},"metadata":{},"sourceType":"module"}