sf-documents 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/dialog/upload-dialog/upload-dialog.component.d.ts +18 -0
- package/fesm2022/sf-documents.mjs +640 -0
- package/fesm2022/sf-documents.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/gateways/document.port.d.ts +8 -0
- package/lib/pipes/safe.pipe.d.ts +10 -0
- package/lib/sf-documents.component.d.ts +99 -0
- package/lib/sf-documents.service.d.ts +6 -0
- package/package.json +26 -0
- package/public-api.d.ts +3 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# SfDocuments
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build sf-documents
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/sf-documents
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UploadDialogComponent {
|
|
4
|
+
selectedDocument: any;
|
|
5
|
+
onUploaded: EventEmitter<{
|
|
6
|
+
fileList: FileList;
|
|
7
|
+
tagValue: any;
|
|
8
|
+
}>;
|
|
9
|
+
loadFile: EventEmitter<void>;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
fileInput: ElementRef<HTMLInputElement>;
|
|
12
|
+
constructor();
|
|
13
|
+
showDialog(): void;
|
|
14
|
+
loadFileClick(): void;
|
|
15
|
+
fileChange(event: any): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadDialogComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadDialogComponent, "lib-upload-dialog", never, { "selectedDocument": { "alias": "selectedDocument"; "required": false; }; }, { "onUploaded": "onUploaded"; "loadFile": "loadFile"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Pipe, InjectionToken, EventEmitter, ViewChild, Output, Input, Component, inject, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i3 from 'primeng/api';
|
|
4
|
+
import { ConfirmationService } from 'primeng/api';
|
|
5
|
+
import * as i2$1 from 'primeng/dynamicdialog';
|
|
6
|
+
import { DialogService } from 'primeng/dynamicdialog';
|
|
7
|
+
import { ToastModule } from 'primeng/toast';
|
|
8
|
+
import * as _ from 'lodash';
|
|
9
|
+
import * as i1$1 from 'primeng/button';
|
|
10
|
+
import { ButtonModule } from 'primeng/button';
|
|
11
|
+
import * as i5 from 'primeng/confirmdialog';
|
|
12
|
+
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
13
|
+
import * as i6 from 'primeng/panel';
|
|
14
|
+
import { PanelModule } from 'primeng/panel';
|
|
15
|
+
import * as i7 from 'primeng/checkbox';
|
|
16
|
+
import { CheckboxModule } from 'primeng/checkbox';
|
|
17
|
+
import * as i2 from 'primeng/dialog';
|
|
18
|
+
import { DialogModule } from 'primeng/dialog';
|
|
19
|
+
import * as i9 from '@angular/common';
|
|
20
|
+
import { CommonModule } from '@angular/common';
|
|
21
|
+
import * as i10 from '@angular/forms';
|
|
22
|
+
import { FormsModule } from '@angular/forms';
|
|
23
|
+
import * as i1 from '@angular/platform-browser';
|
|
24
|
+
import * as i11 from 'primeng/inputtext';
|
|
25
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
26
|
+
import { InputIcon } from 'primeng/inputicon';
|
|
27
|
+
import { IconField } from 'primeng/iconfield';
|
|
28
|
+
import { firstValueFrom } from 'rxjs';
|
|
29
|
+
|
|
30
|
+
class SfDocumentsService {
|
|
31
|
+
constructor() { }
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SfDocumentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SfDocumentsService, providedIn: 'root' });
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SfDocumentsService, decorators: [{
|
|
36
|
+
type: Injectable,
|
|
37
|
+
args: [{
|
|
38
|
+
providedIn: 'root'
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: () => [] });
|
|
41
|
+
|
|
42
|
+
class SafePipe {
|
|
43
|
+
sanitizer;
|
|
44
|
+
constructor(sanitizer) {
|
|
45
|
+
this.sanitizer = sanitizer;
|
|
46
|
+
}
|
|
47
|
+
transform(url) {
|
|
48
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
51
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: SafePipe, isStandalone: true, name: "safe" });
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SafePipe, decorators: [{
|
|
54
|
+
type: Pipe,
|
|
55
|
+
args: [{ name: 'safe' }]
|
|
56
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
|
57
|
+
|
|
58
|
+
const DOCUMENT_SERVICE = new InjectionToken('DOCUMENT_SERVICE');
|
|
59
|
+
|
|
60
|
+
class UploadDialogComponent {
|
|
61
|
+
selectedDocument;
|
|
62
|
+
onUploaded = new EventEmitter();
|
|
63
|
+
loadFile = new EventEmitter();
|
|
64
|
+
visible = false;
|
|
65
|
+
fileInput;
|
|
66
|
+
constructor() { }
|
|
67
|
+
showDialog() {
|
|
68
|
+
this.loadFile.emit();
|
|
69
|
+
this.visible = true;
|
|
70
|
+
}
|
|
71
|
+
loadFileClick() {
|
|
72
|
+
this.fileInput.nativeElement.value = '';
|
|
73
|
+
this.fileInput.nativeElement.click();
|
|
74
|
+
}
|
|
75
|
+
fileChange(event) {
|
|
76
|
+
const input = event.target;
|
|
77
|
+
let fileList = input.files;
|
|
78
|
+
const imagePathInput = input.value;
|
|
79
|
+
if (fileList?.length)
|
|
80
|
+
this.onUploaded.emit({ fileList, tagValue: imagePathInput });
|
|
81
|
+
this.visible = false;
|
|
82
|
+
}
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UploadDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: UploadDialogComponent, isStandalone: true, selector: "lib-upload-dialog", inputs: { selectedDocument: "selectedDocument" }, outputs: { onUploaded: "onUploaded", loadFile: "loadFile" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, static: true }], ngImport: i0, template: "<button pButton type=\"button\" label=\"Adicionar\" icon=\"pi pi-plus\"\r\n (click)=\"showDialog()\"></button>\r\n\r\n<p-dialog [header] = \"'Adicionar ' + selectedDocument.label\" [(visible)]=\"visible\" [modal]=\"true\" [style]=\"{ width: '30rem' }\" [breakpoints]=\"{ '1199px': '75vw', '575px': '90vw' }\"\r\nposition = \"top\" [closable]=\"true\" (onHide)=\"visible=false\">\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <input #fileInput type=\"file\" (change)=\"fileChange($event)\" class=\"hidden\"\r\n placeholder=\"Upload file\" multiple>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <p-button\r\n icon=\"pi pi-upload\"\r\n (click)=\"loadFileClick()\"\r\n [text] = \"true\"\r\n [rounded]=\"true\"\r\n size=\"large\"\r\n ></p-button>\r\n\r\n <!-- <label *ngIf=\"isMobile\" (click)=\"openModal2(scanContent)\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">camera_alt</mat-icon>\r\n </label> -->\r\n </div>\r\n </div>\r\n</p-dialog>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UploadDialogComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{ selector: 'lib-upload-dialog', imports: [CommonModule, ButtonModule, DialogModule], template: "<button pButton type=\"button\" label=\"Adicionar\" icon=\"pi pi-plus\"\r\n (click)=\"showDialog()\"></button>\r\n\r\n<p-dialog [header] = \"'Adicionar ' + selectedDocument.label\" [(visible)]=\"visible\" [modal]=\"true\" [style]=\"{ width: '30rem' }\" [breakpoints]=\"{ '1199px': '75vw', '575px': '90vw' }\"\r\nposition = \"top\" [closable]=\"true\" (onHide)=\"visible=false\">\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <input #fileInput type=\"file\" (change)=\"fileChange($event)\" class=\"hidden\"\r\n placeholder=\"Upload file\" multiple>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <p-button\r\n icon=\"pi pi-upload\"\r\n (click)=\"loadFileClick()\"\r\n [text] = \"true\"\r\n [rounded]=\"true\"\r\n size=\"large\"\r\n ></p-button>\r\n\r\n <!-- <label *ngIf=\"isMobile\" (click)=\"openModal2(scanContent)\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">camera_alt</mat-icon>\r\n </label> -->\r\n </div>\r\n </div>\r\n</p-dialog>\r\n" }]
|
|
89
|
+
}], ctorParameters: () => [], propDecorators: { selectedDocument: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], onUploaded: [{
|
|
92
|
+
type: Output
|
|
93
|
+
}], loadFile: [{
|
|
94
|
+
type: Output
|
|
95
|
+
}], fileInput: [{
|
|
96
|
+
type: ViewChild,
|
|
97
|
+
args: ['fileInput', { static: true }]
|
|
98
|
+
}] } });
|
|
99
|
+
|
|
100
|
+
class SfDocumentsComponent {
|
|
101
|
+
sanitizer;
|
|
102
|
+
dialog;
|
|
103
|
+
snackBar;
|
|
104
|
+
appRef;
|
|
105
|
+
confirmationService;
|
|
106
|
+
documentsService = inject(DOCUMENT_SERVICE);
|
|
107
|
+
accion = "";
|
|
108
|
+
entidad = "";
|
|
109
|
+
ndoc = "";
|
|
110
|
+
tdoc = "";
|
|
111
|
+
tipo = "";
|
|
112
|
+
//Información necesaria para cargar documentos de productos
|
|
113
|
+
Kasociada = "";
|
|
114
|
+
Producto = "";
|
|
115
|
+
Solicitud = "";
|
|
116
|
+
oSession;
|
|
117
|
+
perfilDocumentos;
|
|
118
|
+
subestado = '';
|
|
119
|
+
isMobile = false;
|
|
120
|
+
nextTabPapa = new EventEmitter();
|
|
121
|
+
bAtras = false;
|
|
122
|
+
bFinal = false;
|
|
123
|
+
botones = true;
|
|
124
|
+
aplFiltro = false;
|
|
125
|
+
nmco = [];
|
|
126
|
+
server = "";
|
|
127
|
+
valorFiltro = "";
|
|
128
|
+
tab = 1;
|
|
129
|
+
enProceso = false;
|
|
130
|
+
carpetaSeleccionada;
|
|
131
|
+
files;
|
|
132
|
+
filesFilter;
|
|
133
|
+
imagePathInput;
|
|
134
|
+
modalReference;
|
|
135
|
+
modalReference2;
|
|
136
|
+
documentoSeleccionado;
|
|
137
|
+
docsEliminables = [];
|
|
138
|
+
totalDocsEliminadosApi = { existoso: 0, fallido: 0 };
|
|
139
|
+
file;
|
|
140
|
+
urlDoc;
|
|
141
|
+
pdfUrl;
|
|
142
|
+
current_path = "";
|
|
143
|
+
current_label = "";
|
|
144
|
+
scanFileList = new Array();
|
|
145
|
+
displayPDF = false;
|
|
146
|
+
panel;
|
|
147
|
+
UsuarioNdoc;
|
|
148
|
+
UsuarioTdoc;
|
|
149
|
+
idKatios;
|
|
150
|
+
constructor(sanitizer, dialog, snackBar, appRef, confirmationService) {
|
|
151
|
+
this.sanitizer = sanitizer;
|
|
152
|
+
this.dialog = dialog;
|
|
153
|
+
this.snackBar = snackBar;
|
|
154
|
+
this.appRef = appRef;
|
|
155
|
+
this.confirmationService = confirmationService;
|
|
156
|
+
}
|
|
157
|
+
ngOnInit() {
|
|
158
|
+
if (this.oSession != null && this.oSession.UsuarioSistema.TDOC !== undefined && this.oSession.UsuarioSistema.NDOC !== undefined) {
|
|
159
|
+
this.idKatios = this.oSession.UsuarioSistema.IDKATIOS.trim();
|
|
160
|
+
this.perfilDocumentos = this.oSession.UsuarioSistema.PERDOCUMENTOS.trim();
|
|
161
|
+
}
|
|
162
|
+
if (this.tipo && this.perfilDocumentos) {
|
|
163
|
+
this.cargarParametros(this.tipo);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
cargarParametros(tipo) {
|
|
167
|
+
var data;
|
|
168
|
+
switch (tipo) {
|
|
169
|
+
case "1":
|
|
170
|
+
this.enProceso = true;
|
|
171
|
+
data = { "Accion": this.accion, "Entidad": this.entidad, "IdKatios": this.idKatios, "TDoc": this.tdoc, "NDoc": this.ndoc, "Solicitud": this.Solicitud, "perfilDocumentos": this.perfilDocumentos, "Producto": this.Producto };
|
|
172
|
+
this.documentsService.getCarptasByAccion(this.idKatios, data, this.okCargoArbol, this.errorCargarArbol);
|
|
173
|
+
this.tab = 1;
|
|
174
|
+
this.documentoSeleccionado = null;
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
expandAll() {
|
|
179
|
+
this.files.forEach((node) => {
|
|
180
|
+
this.expandRecursive(node, true);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
expandRecursive(node, isExpand) {
|
|
184
|
+
node.expanded = isExpand;
|
|
185
|
+
var objeto;
|
|
186
|
+
objeto = node;
|
|
187
|
+
if (node.children && node.children?.length > 0) {
|
|
188
|
+
node.children.forEach(childNode => {
|
|
189
|
+
this.expandRecursive(childNode, isExpand);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
else if (objeto.Path !== undefined) {
|
|
193
|
+
var path = 'Imagenes/' + objeto.Path + objeto.label;
|
|
194
|
+
var re = /[\\]/gi;
|
|
195
|
+
path = path.replace(re, "/");
|
|
196
|
+
objeto.Path = this.server + path;
|
|
197
|
+
//this.sanitizer.bypassSecurityTrustUrl(this.server + path)
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
okCargoArbol = (iArbol) => {
|
|
201
|
+
if (iArbol.CARPETA.length === undefined) {
|
|
202
|
+
iArbol = new Array(iArbol.CARPETA);
|
|
203
|
+
}
|
|
204
|
+
iArbol.forEach((element) => {
|
|
205
|
+
this.convertirArrayChildren(element);
|
|
206
|
+
});
|
|
207
|
+
//
|
|
208
|
+
this.filtrarTipoDocumento(iArbol);
|
|
209
|
+
//
|
|
210
|
+
this.files = iArbol;
|
|
211
|
+
this.filesFilter = iArbol;
|
|
212
|
+
this.expandAll();
|
|
213
|
+
this.enProceso = false;
|
|
214
|
+
};
|
|
215
|
+
errorCargarArbol = (iError) => {
|
|
216
|
+
this.message("Error al traer la información del servidor", "Ups!");
|
|
217
|
+
this.enProceso = false;
|
|
218
|
+
};
|
|
219
|
+
onClickedCheckDelete($event, document) {
|
|
220
|
+
if ($event.checked)
|
|
221
|
+
this.docsEliminables.push(document);
|
|
222
|
+
else
|
|
223
|
+
this.docsEliminables = this.docsEliminables.filter(doc => doc !== document);
|
|
224
|
+
}
|
|
225
|
+
funcOkDelDocumentMasivo = () => {
|
|
226
|
+
this.totalDocsEliminadosApi.existoso += 1;
|
|
227
|
+
if (this.totalDocsEliminadosApi.existoso + this.totalDocsEliminadosApi.fallido === this.docsEliminables.length) {
|
|
228
|
+
this.cargarParametros(this.tipo);
|
|
229
|
+
if (this.totalDocsEliminadosApi.fallido > 0)
|
|
230
|
+
this.message("Algunos documentos no pudieron ser eliminados", "Entiendo");
|
|
231
|
+
else
|
|
232
|
+
this.message("Documentos eliminados satisfactoriamente", "");
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
funcErrDelDocumentMasivo = () => {
|
|
236
|
+
this.totalDocsEliminadosApi.fallido += 1;
|
|
237
|
+
if (this.totalDocsEliminadosApi.existoso + this.totalDocsEliminadosApi.fallido === this.docsEliminables.length) {
|
|
238
|
+
this.cargarParametros(this.tipo);
|
|
239
|
+
this.message("Algunos documentos no pudieron ser eliminados", "Entiendo");
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
eliminarMasivo() {
|
|
243
|
+
this.confirmationService.confirm({
|
|
244
|
+
message: `¿Desea eliminar los ${this.docsEliminables.length} documentos seleccionados?`,
|
|
245
|
+
acceptLabel: 'Si',
|
|
246
|
+
rejectLabel: 'No',
|
|
247
|
+
accept: () => {
|
|
248
|
+
this.enProceso = true;
|
|
249
|
+
this.totalDocsEliminadosApi = { existoso: 0, fallido: 0 };
|
|
250
|
+
this.docsEliminables.forEach(doc => {
|
|
251
|
+
let data = { "idKatios": this.idKatios, "codigo": doc.codigo, "estado": "DES" };
|
|
252
|
+
this.documentsService.updateEstadoFileSystemByCodigo(data, this.funcOkDelDocumentMasivo, this.funcErrDelDocumentMasivo);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
filtrarTipoDocumento(iArbol) {
|
|
258
|
+
if (this.nmco.length !== 0) {
|
|
259
|
+
iArbol.forEach((element) => {
|
|
260
|
+
element.children = element.children.filter((child) => this.nmco.includes(child.NMCo));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
convertirArrayChildren(node) {
|
|
265
|
+
if (node.children === undefined)
|
|
266
|
+
node.children = [];
|
|
267
|
+
else if (node.children.length == undefined) {
|
|
268
|
+
node.children = new Array(node.children);
|
|
269
|
+
}
|
|
270
|
+
node.children.forEach((childNode) => {
|
|
271
|
+
this.convertirArrayChildren(childNode);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
openBigModal(content) {
|
|
275
|
+
this.modalReference = this.dialog.open(content, {
|
|
276
|
+
width: '70%',
|
|
277
|
+
modal: true,
|
|
278
|
+
closable: true
|
|
279
|
+
});
|
|
280
|
+
this.modalReference.onClose.subscribe((result) => {
|
|
281
|
+
//this.closeResult = `Closed with: ${result}`;
|
|
282
|
+
});
|
|
283
|
+
// this.modalReference.onHide.subscribe(() => {
|
|
284
|
+
// //this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
|
|
285
|
+
// });
|
|
286
|
+
}
|
|
287
|
+
openModal2(content) {
|
|
288
|
+
this.modalReference2 = this.dialog.open(content, {});
|
|
289
|
+
this.modalReference2.onClose.subscribe((result) => {
|
|
290
|
+
//this.closeResult = `Closed with: ${result}`;
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
// takePhotoClick() {
|
|
294
|
+
// this.documentsService.openCamera(this.ok_openCamera, this.error_openCamera);
|
|
295
|
+
// }
|
|
296
|
+
/////Cuando se cargar archivos adjuntos
|
|
297
|
+
fileChange(data) {
|
|
298
|
+
const fileList = data.fileList;
|
|
299
|
+
const tagValue = data.tagValue;
|
|
300
|
+
this.file = fileList[0];
|
|
301
|
+
this.imagePathInput = tagValue;
|
|
302
|
+
this.generarData(fileList);
|
|
303
|
+
}
|
|
304
|
+
// ok_openCamera = (imageUri: any) => {
|
|
305
|
+
// this.makeFileIntoBlob(imageUri)
|
|
306
|
+
// .then((file: Blob) => {
|
|
307
|
+
// this.appRef.tick();
|
|
308
|
+
// if (file.size > 1000000) {
|
|
309
|
+
// if (confirm("Este archivo es bastate pesado, le recomendamos bajar la calidad de la cámara. ¿Desea subir este archivo?")) {
|
|
310
|
+
// this.loadFileToList(file);
|
|
311
|
+
// }
|
|
312
|
+
// } else {
|
|
313
|
+
// this.loadFileToList(file);
|
|
314
|
+
// }
|
|
315
|
+
// this.enProceso = false;
|
|
316
|
+
// })
|
|
317
|
+
// .catch((error: Error) => {
|
|
318
|
+
// console.error('Error processing camera image:', error);
|
|
319
|
+
// this.message("Error al procesar la imagen de la cámara", "Error");
|
|
320
|
+
// this.enProceso = false;
|
|
321
|
+
// });
|
|
322
|
+
// }
|
|
323
|
+
loadFileToList(file) {
|
|
324
|
+
setTimeout(() => {
|
|
325
|
+
file["name"] = "scan" + Date.now() + this.scanFileList.length + ".jpg";
|
|
326
|
+
this.scanFileList.push(file);
|
|
327
|
+
this.scanFileList = this.scanFileList.slice();
|
|
328
|
+
this.enProceso = false;
|
|
329
|
+
this.message("Archivo cargado", "");
|
|
330
|
+
this.appRef.tick();
|
|
331
|
+
}, 200);
|
|
332
|
+
}
|
|
333
|
+
subirFotosScan() {
|
|
334
|
+
this.generarData(this.scanFileList);
|
|
335
|
+
}
|
|
336
|
+
// error_openCamera = (err: any) => {
|
|
337
|
+
// console.log(err);
|
|
338
|
+
// this.message("No se pudo acceder a la camara", "Error")
|
|
339
|
+
// }
|
|
340
|
+
noZonePatch(cb) {
|
|
341
|
+
const orig = FileReader;
|
|
342
|
+
const unpatched = window.FileReader.__zone_symbol__OriginalDelegate;
|
|
343
|
+
window.FileReader = unpatched;
|
|
344
|
+
cb();
|
|
345
|
+
window.FileReader = orig;
|
|
346
|
+
}
|
|
347
|
+
makeFileIntoBlob(_imagePath) {
|
|
348
|
+
this.enProceso = true;
|
|
349
|
+
// INSTALL PLUGIN - cordova plugin add cordova-plugin-file
|
|
350
|
+
return new Promise((resolve, reject) => {
|
|
351
|
+
try {
|
|
352
|
+
window.resolveLocalFileSystemURL(_imagePath, (fileEntry) => {
|
|
353
|
+
fileEntry.file((resFile) => {
|
|
354
|
+
this.noZonePatch(() => {
|
|
355
|
+
var reader = new FileReader();
|
|
356
|
+
reader.onloadend = (evt) => {
|
|
357
|
+
var imgBlob = new Blob([evt.target.result], { type: 'image/jpeg' });
|
|
358
|
+
imgBlob.name = 'scan.jpg';
|
|
359
|
+
resolve(imgBlob);
|
|
360
|
+
};
|
|
361
|
+
reader.onerror = (e) => {
|
|
362
|
+
console.log('Failed file read: ' + e.toString());
|
|
363
|
+
reject(e);
|
|
364
|
+
};
|
|
365
|
+
reader.readAsArrayBuffer(resFile);
|
|
366
|
+
}); //!Comentarear esta linea y una de de arriba para ambiente de prueba
|
|
367
|
+
});
|
|
368
|
+
}, (error) => {
|
|
369
|
+
console.error('Error resolving file system URL:', error);
|
|
370
|
+
reject(error);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
catch (ex) {
|
|
374
|
+
console.error('Error in makeFileIntoBlob:', ex);
|
|
375
|
+
reject(ex);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
subirImagen(data, fileList) {
|
|
380
|
+
this.enProceso = true;
|
|
381
|
+
const formData = new FormData();
|
|
382
|
+
var dataDocs;
|
|
383
|
+
var sIdKatios = this.idKatios;
|
|
384
|
+
let json;
|
|
385
|
+
let headers = new Headers();
|
|
386
|
+
dataDocs = { "data": data };
|
|
387
|
+
formData.append('data', JSON.stringify(dataDocs));
|
|
388
|
+
formData.append('unificar', "true");
|
|
389
|
+
for (let _i = 0; _i < fileList.length; _i++) {
|
|
390
|
+
formData.append('uploadFile_' + data.id + '_' + _i, fileList[_i], fileList[_i].name);
|
|
391
|
+
}
|
|
392
|
+
firstValueFrom(this.documentsService.postServiceHttpOptionsDocs(sIdKatios, formData, headers)).then((posts) => {
|
|
393
|
+
this.scanFileList = new Array();
|
|
394
|
+
if (this.modalReference2) {
|
|
395
|
+
this.modalReference2.close();
|
|
396
|
+
}
|
|
397
|
+
if (this.modalReference) {
|
|
398
|
+
this.modalReference.close();
|
|
399
|
+
}
|
|
400
|
+
this.message("Se almaceno exitosamente el documento", "Felicidades");
|
|
401
|
+
this.cargarParametros(this.tipo);
|
|
402
|
+
this.enProceso = false;
|
|
403
|
+
this.appRef.tick();
|
|
404
|
+
}, (err) => {
|
|
405
|
+
this.enProceso = false;
|
|
406
|
+
this.message("Se presentaron inconvenientes almacenando el documento", "Ups!");
|
|
407
|
+
console.error("Error : " + err);
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
generarData(fileList) {
|
|
411
|
+
this.enProceso = true;
|
|
412
|
+
var sPath1;
|
|
413
|
+
var dataClientes;
|
|
414
|
+
let sPaths = "";
|
|
415
|
+
if (this.documentoSeleccionado.Tipo.trim().toUpperCase() == "PERSONA") {
|
|
416
|
+
sPath1 = this.documentoSeleccionado.Tipo.trim() + "\\" + this.tdoc.trim() +
|
|
417
|
+
"\\" + this.ndoc.trim() + "\\Cliente\\" + this.documentoSeleccionado.NMCo.trim();
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
//Kasociada
|
|
421
|
+
//producto
|
|
422
|
+
//Falta numero de solicitud
|
|
423
|
+
sPath1 = this.documentoSeleccionado.Tipo.trim() + "\\" + this.Kasociada +
|
|
424
|
+
"\\" + this.Producto + "\\" + this.Solicitud + "\\" + this.documentoSeleccionado.NMCo;
|
|
425
|
+
}
|
|
426
|
+
dataClientes = {
|
|
427
|
+
"Tipo": this.documentoSeleccionado.Tipo,
|
|
428
|
+
"id": "1",
|
|
429
|
+
"documento": this.documentoSeleccionado.NMCo,
|
|
430
|
+
"tdoc": this.tdoc.trim(),
|
|
431
|
+
"ndoc": this.ndoc.trim(),
|
|
432
|
+
"IdProducto": this.Solicitud,
|
|
433
|
+
"TipoProducto": this.Producto,
|
|
434
|
+
"Kasociada": this.Kasociada,
|
|
435
|
+
"archivoUpload": fileList[0],
|
|
436
|
+
"nombre": this.tdoc.trim() + '-' + this.ndoc.trim(),
|
|
437
|
+
"fileCargado": fileList[0],
|
|
438
|
+
"pathArchivo": sPath1,
|
|
439
|
+
"TipoArchivo": this.documentoSeleccionado.TipoArchivo
|
|
440
|
+
};
|
|
441
|
+
sPaths = sPaths + sPath1 + ",";
|
|
442
|
+
this.subirImagen(dataClientes, fileList);
|
|
443
|
+
}
|
|
444
|
+
cargarArchivo(iNodo) {
|
|
445
|
+
this.scanFileList = new Array();
|
|
446
|
+
this.documentoSeleccionado = iNodo;
|
|
447
|
+
}
|
|
448
|
+
openDoc(item, pdfContent) {
|
|
449
|
+
if (this.carpetaSeleccionada.TipoArchivo == '1' && this.isMobile) {
|
|
450
|
+
cordova.InAppBrowser.open(item.Path, '_system', 'location=yes');
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
this.current_path = item.Path;
|
|
454
|
+
this.current_label = item.label;
|
|
455
|
+
this.openBigModal(pdfContent);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
openVisorDoc(item) {
|
|
459
|
+
if (this.carpetaSeleccionada.TipoArchivo == '1' && this.isMobile) { //is mobile
|
|
460
|
+
cordova.InAppBrowser.open(item.Path, '_system', 'location=yes');
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
this.current_path = item.Path;
|
|
464
|
+
this.current_label = item.label;
|
|
465
|
+
this.displayPDF = true;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
openNewWindow(item) {
|
|
469
|
+
window.open(item.Path, '_blank').focus();
|
|
470
|
+
}
|
|
471
|
+
seleccionoDocs(iNodo) {
|
|
472
|
+
var path = iNodo.Path + iNodo.label;
|
|
473
|
+
this.pdfUrl = this.server + "//imagenes//" + iNodo.idKatios + "//" + path;
|
|
474
|
+
this.pdfUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.pdfUrl);
|
|
475
|
+
;
|
|
476
|
+
this.gotoBottom();
|
|
477
|
+
}
|
|
478
|
+
message(mensaje, tipo) {
|
|
479
|
+
this.snackBar.add({
|
|
480
|
+
severity: tipo,
|
|
481
|
+
summary: mensaje,
|
|
482
|
+
life: 4000
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
gotoBottom() {
|
|
486
|
+
window.scrollBy(0, this.panel.nativeElement.scrollHeight);
|
|
487
|
+
}
|
|
488
|
+
VerDetalleTab(items) {
|
|
489
|
+
if (items?.reglas && typeof (items.reglas) == 'string')
|
|
490
|
+
items.reglas = JSON.parse(items.reglas);
|
|
491
|
+
if (!items?.reglas?.permisos?.subestados && items?.reglas?.permisos) {
|
|
492
|
+
items.reglas.permisos.cargarFront = items.reglas.permisos.cargar;
|
|
493
|
+
items.reglas.permisos.borrarFront = items.reglas.permisos.borrar;
|
|
494
|
+
}
|
|
495
|
+
else if (items?.reglas?.permisos?.subestados && !this.isEmptyString(this.subestado)) {
|
|
496
|
+
items.reglas.permisos.cargarFront = Array.isArray(items.reglas.permisos.subestados.cargar) ? items.reglas.permisos.subestados.cargar.map((c) => c.toLowerCase().trim()).includes(this.subestado.toLowerCase().trim()) : items.reglas.permisos.cargar;
|
|
497
|
+
items.reglas.permisos.borrarFront = Array.isArray(items.reglas.permisos.subestados.borrar) ? items.reglas.permisos.subestados.borrar.map((b) => b.toLowerCase().trim()).includes(this.subestado.toLowerCase().trim()) : items.reglas.permisos.borrar;
|
|
498
|
+
}
|
|
499
|
+
this.carpetaSeleccionada = items;
|
|
500
|
+
this.docsEliminables = [];
|
|
501
|
+
this.totalDocsEliminadosApi = { existoso: 0, fallido: 0 };
|
|
502
|
+
this.carpetaSeleccionada.children.forEach((element) => element.delete = false);
|
|
503
|
+
console.log(this.carpetaSeleccionada);
|
|
504
|
+
this.tab = 2;
|
|
505
|
+
}
|
|
506
|
+
isEmptyString(str) {
|
|
507
|
+
return str === undefined || str === null || str.trim() === '';
|
|
508
|
+
}
|
|
509
|
+
eliminarDocumento(docEliminar, e, funcOkDelDocument = this.ok_eliminarDocumento, funcErrDelDocument = this.err_eliminarDocumento) {
|
|
510
|
+
e.stopPropagation();
|
|
511
|
+
this.confirmationService.confirm({
|
|
512
|
+
message: `¿Desea eliminar el documento?`,
|
|
513
|
+
accept: () => {
|
|
514
|
+
let data = { "idKatios": this.idKatios, "codigo": docEliminar.codigo, "estado": "DES" };
|
|
515
|
+
this.documentsService.updateEstadoFileSystemByCodigo(data, funcOkDelDocument, funcErrDelDocument);
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
ok_eliminarDocumento = () => {
|
|
520
|
+
this.message("Documento eliminado satisfactoriamente", "");
|
|
521
|
+
if (this.tipo !== undefined) {
|
|
522
|
+
this.cargarParametros(this.tipo);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
err_eliminarDocumento = (err) => {
|
|
526
|
+
this.message("No se pudo eliminar el documento", "Ups!");
|
|
527
|
+
console.log(err);
|
|
528
|
+
};
|
|
529
|
+
goToTab(tab) {
|
|
530
|
+
this.tab = tab;
|
|
531
|
+
}
|
|
532
|
+
next(iValor) {
|
|
533
|
+
if (iValor < 0) {
|
|
534
|
+
this.nextTabPapa.emit(iValor);
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
var respuesta = "";
|
|
538
|
+
if (this.files)
|
|
539
|
+
respuesta = this.valorDocumentosPendientes(this.files[0]);
|
|
540
|
+
if (respuesta == "") {
|
|
541
|
+
this.nextTabPapa.emit(iValor);
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
this.message(respuesta, "Ups!");
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
valorDocumentosPendientes(carpetas) {
|
|
549
|
+
var respuesta = "";
|
|
550
|
+
if (carpetas.children) {
|
|
551
|
+
carpetas.children.forEach((carpeta) => {
|
|
552
|
+
if (carpeta.Obligatorio == 1 && (!carpeta.children || carpeta.children.length == 0))
|
|
553
|
+
respuesta = "Falta " + carpeta.label;
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
return respuesta;
|
|
557
|
+
}
|
|
558
|
+
filtrarDocumentos() {
|
|
559
|
+
this.filesFilter = _.cloneDeep(this.files);
|
|
560
|
+
for (let i = 0; i < this.files.length; i++) {
|
|
561
|
+
let node = [];
|
|
562
|
+
for (let j = 0; j < this.files[i].children.length; j++) {
|
|
563
|
+
let file = this.files[i].children[j];
|
|
564
|
+
if (file.label.toLowerCase().indexOf(this.valorFiltro.toLowerCase()) == 0)
|
|
565
|
+
node.push(file);
|
|
566
|
+
}
|
|
567
|
+
this.filesFilter[i].children = node;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
ngOnDestroy() {
|
|
571
|
+
if (this.modalReference) {
|
|
572
|
+
this.modalReference.close();
|
|
573
|
+
}
|
|
574
|
+
if (this.modalReference2) {
|
|
575
|
+
this.modalReference2.close();
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SfDocumentsComponent, deps: [{ token: i1.DomSanitizer }, { token: i2$1.DialogService }, { token: i3.MessageService }, { token: i0.ApplicationRef }, { token: i3.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: SfDocumentsComponent, isStandalone: true, selector: "app-sf-documents", inputs: { accion: "accion", entidad: "entidad", ndoc: "ndoc", tdoc: "tdoc", tipo: "tipo", Kasociada: "Kasociada", Producto: "Producto", Solicitud: "Solicitud", oSession: "oSession", perfilDocumentos: "perfilDocumentos", subestado: "subestado", isMobile: "isMobile", bAtras: "bAtras", bFinal: "bFinal", botones: "botones", aplFiltro: "aplFiltro", nmco: "nmco", server: "server", idKatios: "idKatios" }, outputs: { nextTabPapa: "nextTabPapa" }, providers: [DialogService, ConfirmationService], viewQueries: [{ propertyName: "panel", first: true, predicate: ["pdf"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n</div>\r\n<p-iconfield *ngIf=\"aplFiltro\">\r\n <p-inputicon class=\"pi pi-search\" />\r\n <input type=\"text\" pInputText placeholder=\"Busqueda\" [(ngModel)]=\"valorFiltro\" (keyup)=\"filtrarDocumentos()\" class=\"w-full\">\r\n</p-iconfield>\r\n<p-confirmDialog header=\"Atencion\" icon=\"pi pi-exclamation-triangle\"></p-confirmDialog>\r\n<ng-container *ngIf=\"tab==1\" class=\"tablaGestor\">\r\n <ng-container *ngFor=\"let carpeta of filesFilter\" class=\"tablaGestor\">\r\n <p-panel header=\"{{carpeta.label}}\" [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpeta.children\">\r\n <a (click)=\"VerDetalleTab(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.children?.length > 0 ? 'green':'red' }\"> <i\r\n class=\"{{item.collapsedIcon || 'pi pi-folder'}}\"></i>\r\n </span>\r\n <span class=\"name\">{{item.label}}</span>\r\n <span class=\"email\" *ngIf=\"item.children !== undefined && item.children.length > 0\">Documentos cargados:\r\n {{item.children.length}}</span>\r\n <span class=\"email\" *ngIf=\"item.children?.length === undefined || item.children?.length == 0\">Sin documentos cargados</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n </ng-container>\r\n <ng-container class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n </ng-container>\r\n</ng-container>\r\n<ng-container *ngIf=\"tab==2\">\r\n <div style=\"margin-block: 15px; display: flex;\">\r\n <button pButton type=\"button\" icon=\"pi pi-arrow-left\" label=\"Volver\" (click)=\"goToTab('1')\"></button>\r\n </div>\r\n <p-panel [header]=\"carpetaSeleccionada.label.replace('#toolbar=0&navpanes=0&statusbar=0','')\"\r\n [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpetaSeleccionada.children\">\r\n <p-checkbox *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" [binary]=\"true\" [(ngModel)]=\"item.delete\"\r\n (onChange)=\"onClickedCheckDelete($event, item)\"></p-checkbox>\r\n <a (click)=\"openVisorDoc(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.color }\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" class=\"frameDoc\" scrolling=\"no\"\r\n [src]=\"item.Path | safe\" style=\"width:75px; height:90px;\">\r\n <img *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && isMobile\" class=\"frameDoc\" scrolling=\"no\"\r\n src=\"https://macuna.tecfinanzas.com/Imagenes/pdf_icon.png\" style=\"width:75px; height:90px;\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && !isMobile\" class=\"frameDoc\"\r\n style=\"width:85px; height:90px;\" [src]=\"item.Path | safe\" frameborder=\"0\"></iframe>\r\n </span>\r\n <div>\r\n <div>\r\n <span class=\"name\">{{item.label}}</span>\r\n </div>\r\n <div>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && !isMobile\">Fecha Subida: {{item.FechaSubida}}</span>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && isMobile\">{{item.FechaSubida}}</span>\r\n </div>\r\n </div>\r\n <span class=\"celular\">\r\n <i\r\n class=\"pi pi-external-link text-blue-500 text-2xl cursor-pointer\"\r\n (click)=\"openNewWindow(item); $event.stopPropagation()\"\r\n role=\"button\"\r\n tabindex=\"0\"\r\n aria-label=\"Abrir en una nueva ventana\"\r\n (keydown.enter)=\"openNewWindow(item); $event.stopPropagation()\"\r\n (keydown.space)=\"openNewWindow(item); $event.stopPropagation()\"\r\n ></i>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n <div class=\"div-table\" style=\"text-align: center;\">\r\n <div class=\"div-table-row\" style=\"text-align: center;\" class=\"buttons\">\r\n <lib-upload-dialog *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.cargarFront\" [selectedDocument]=\"carpetaSeleccionada\" (onUploaded)=\"fileChange($event)\" (loadFile)=\"cargarArchivo(carpetaSeleccionada)\"></lib-upload-dialog>\r\n <button pButton type=\"button\" label=\"Eliminar\" icon=\"pi pi-trash\"\r\n *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" (click)=\"eliminarMasivo()\"\r\n [disabled]=\"docsEliminables.length === 0\"></button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"div-table\" style=\"font-size: 5px\">\r\n V1.0.3\r\n </div>\r\n</ng-container>\r\n\r\n<p-dialog *ngIf=\"displayPDF\" [(visible)]=\"displayPDF\"\r\n header=\"{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\" [modal]=\"true\" [style]=\"{width: '70vw'}\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n</p-dialog>\r\n\r\n\r\n<ng-template #pdfContent>\r\n <div class=\"modal-header\">\r\n <h4 class=\"modal-title\" id=\"modal-basic-title\">{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\r\n </h4>\r\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"modalReference?.close()\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div>\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n\r\n </div>\r\n</ng-template>\r\n\r\n<!-- <ng-template #scanContent>\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <h4>Escanear documentos</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n Archivos cargados: <h4>{{scanFileList.length}}</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <label (click)=\"takePhotoClick()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">add_to_photos</mat-icon>\r\n </label>\r\n\r\n <label *ngIf=\"scanFileList.length != 0\" (click)=\"subirFotosScan()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">share</mat-icon>\r\n </label>\r\n </div>\r\n </div>\r\n</ng-template> -->\r\n\r\n\r\n<div *ngIf=\"enProceso\" id=\"divProceso\" class=\"cCargando\">\r\n <div id=\"divProcesoMsg\" class=\"cCargandoImg\">\r\n <br />\r\n <i style=\"font-size: 50px\" class=\"pi pi-cog pi-spin\"></i>\r\n <br />\r\n </div>\r\n</div>", styles: [".iconWhatsApp{font-size:40px;color:#6495ed}.buttons{display:flex;justify-content:space-around;margin-block:15px}.frameDoc{overflow:hidden;border:none}.contacts{list-style-type:none;padding:0;margin:0}.contacts li{display:flex;border-bottom:1px solid #e3e3e3}.contacts li>p-checkbox{margin-inline:10px}.contacts li a{padding:0;width:100%;height:90px;box-sizing:border-box;text-decoration:none;position:relative;display:flex;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-transition:background-color .2s;-o-transition:background-color .2s;-webkit-transition:background-color .2s;transition:background-color .2s}.contacts li a .name{position:absolute;right:0;top:3px;font-size:18px}.contacts li a .Label{position:absolute;right:0;top:22px;font-size:13px}.contacts li a .email{position:absolute;right:0;top:30px;font-size:14px;color:#a4a4a4}.contacts li a .imagen{height:40px;width:40px;border-radius:50%;font-size:25px;color:#000;top:5px;display:absolute;text-align:left;vertical-align:center}.contacts li a .celular{position:absolute;right:10px;top:45px;font-size:14px;color:#a4a4a4}.contacts li a:hover{cursor:pointer;background-color:#eee}.contacts li:last-child{border:0}@media only screen and (max-width: 656px),(max-device-width: 656px){.contacts li a .name{position:absolute;right:0;top:10px;font-size:15px;width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contacts li>p-checkbox{margin-left:0}.contacts li a .email{position:absolute;right:0;top:30px;font-size:12px;color:#a4a4a4}.contacts li a .imagen{height:40px;width:40px;border-radius:50%;left:0%;font-size:25px;color:#000;top:5px;display:inline-block;text-align:center;vertical-align:center}.contacts li a .celular{position:absolute;right:10px;top:45px;font-size:15px;color:#00f}.tablaGestor{width:100%}}.buttonResponsive,buttonResponsiveBotonFinal{display:inline-block;border-radius:4px;background-color:#00f;border:none;color:#fff;text-align:center;font-size:12px;padding:10px;width:200px;transition:all .5s;cursor:pointer;margin:20px 5px 5px}\n"], dependencies: [{ kind: "ngmodule", type: ToastModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i5.ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "ngmodule", type: PanelModule }, { kind: "component", type: i6.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i7.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: SafePipe, name: "safe" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i11.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "component", type: UploadDialogComponent, selector: "lib-upload-dialog", inputs: ["selectedDocument"], outputs: ["onUploaded", "loadFile"] }] });
|
|
580
|
+
}
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SfDocumentsComponent, decorators: [{
|
|
582
|
+
type: Component,
|
|
583
|
+
args: [{ selector: 'app-sf-documents', imports: [ToastModule, ButtonModule, ConfirmDialogModule, PanelModule, CheckboxModule, DialogModule, CommonModule, FormsModule, SafePipe, InputTextModule, InputIcon,
|
|
584
|
+
IconField, UploadDialogComponent
|
|
585
|
+
], providers: [DialogService, ConfirmationService], standalone: true, template: "<div class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n</div>\r\n<p-iconfield *ngIf=\"aplFiltro\">\r\n <p-inputicon class=\"pi pi-search\" />\r\n <input type=\"text\" pInputText placeholder=\"Busqueda\" [(ngModel)]=\"valorFiltro\" (keyup)=\"filtrarDocumentos()\" class=\"w-full\">\r\n</p-iconfield>\r\n<p-confirmDialog header=\"Atencion\" icon=\"pi pi-exclamation-triangle\"></p-confirmDialog>\r\n<ng-container *ngIf=\"tab==1\" class=\"tablaGestor\">\r\n <ng-container *ngFor=\"let carpeta of filesFilter\" class=\"tablaGestor\">\r\n <p-panel header=\"{{carpeta.label}}\" [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpeta.children\">\r\n <a (click)=\"VerDetalleTab(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.children?.length > 0 ? 'green':'red' }\"> <i\r\n class=\"{{item.collapsedIcon || 'pi pi-folder'}}\"></i>\r\n </span>\r\n <span class=\"name\">{{item.label}}</span>\r\n <span class=\"email\" *ngIf=\"item.children !== undefined && item.children.length > 0\">Documentos cargados:\r\n {{item.children.length}}</span>\r\n <span class=\"email\" *ngIf=\"item.children?.length === undefined || item.children?.length == 0\">Sin documentos cargados</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n </ng-container>\r\n <ng-container class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n </ng-container>\r\n</ng-container>\r\n<ng-container *ngIf=\"tab==2\">\r\n <div style=\"margin-block: 15px; display: flex;\">\r\n <button pButton type=\"button\" icon=\"pi pi-arrow-left\" label=\"Volver\" (click)=\"goToTab('1')\"></button>\r\n </div>\r\n <p-panel [header]=\"carpetaSeleccionada.label.replace('#toolbar=0&navpanes=0&statusbar=0','')\"\r\n [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpetaSeleccionada.children\">\r\n <p-checkbox *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" [binary]=\"true\" [(ngModel)]=\"item.delete\"\r\n (onChange)=\"onClickedCheckDelete($event, item)\"></p-checkbox>\r\n <a (click)=\"openVisorDoc(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.color }\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" class=\"frameDoc\" scrolling=\"no\"\r\n [src]=\"item.Path | safe\" style=\"width:75px; height:90px;\">\r\n <img *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && isMobile\" class=\"frameDoc\" scrolling=\"no\"\r\n src=\"https://macuna.tecfinanzas.com/Imagenes/pdf_icon.png\" style=\"width:75px; height:90px;\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && !isMobile\" class=\"frameDoc\"\r\n style=\"width:85px; height:90px;\" [src]=\"item.Path | safe\" frameborder=\"0\"></iframe>\r\n </span>\r\n <div>\r\n <div>\r\n <span class=\"name\">{{item.label}}</span>\r\n </div>\r\n <div>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && !isMobile\">Fecha Subida: {{item.FechaSubida}}</span>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && isMobile\">{{item.FechaSubida}}</span>\r\n </div>\r\n </div>\r\n <span class=\"celular\">\r\n <i\r\n class=\"pi pi-external-link text-blue-500 text-2xl cursor-pointer\"\r\n (click)=\"openNewWindow(item); $event.stopPropagation()\"\r\n role=\"button\"\r\n tabindex=\"0\"\r\n aria-label=\"Abrir en una nueva ventana\"\r\n (keydown.enter)=\"openNewWindow(item); $event.stopPropagation()\"\r\n (keydown.space)=\"openNewWindow(item); $event.stopPropagation()\"\r\n ></i>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n <div class=\"div-table\" style=\"text-align: center;\">\r\n <div class=\"div-table-row\" style=\"text-align: center;\" class=\"buttons\">\r\n <lib-upload-dialog *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.cargarFront\" [selectedDocument]=\"carpetaSeleccionada\" (onUploaded)=\"fileChange($event)\" (loadFile)=\"cargarArchivo(carpetaSeleccionada)\"></lib-upload-dialog>\r\n <button pButton type=\"button\" label=\"Eliminar\" icon=\"pi pi-trash\"\r\n *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" (click)=\"eliminarMasivo()\"\r\n [disabled]=\"docsEliminables.length === 0\"></button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"div-table\" style=\"font-size: 5px\">\r\n V1.0.3\r\n </div>\r\n</ng-container>\r\n\r\n<p-dialog *ngIf=\"displayPDF\" [(visible)]=\"displayPDF\"\r\n header=\"{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\" [modal]=\"true\" [style]=\"{width: '70vw'}\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n</p-dialog>\r\n\r\n\r\n<ng-template #pdfContent>\r\n <div class=\"modal-header\">\r\n <h4 class=\"modal-title\" id=\"modal-basic-title\">{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\r\n </h4>\r\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"modalReference?.close()\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div>\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n\r\n </div>\r\n</ng-template>\r\n\r\n<!-- <ng-template #scanContent>\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <h4>Escanear documentos</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n Archivos cargados: <h4>{{scanFileList.length}}</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <label (click)=\"takePhotoClick()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">add_to_photos</mat-icon>\r\n </label>\r\n\r\n <label *ngIf=\"scanFileList.length != 0\" (click)=\"subirFotosScan()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">share</mat-icon>\r\n </label>\r\n </div>\r\n </div>\r\n</ng-template> -->\r\n\r\n\r\n<div *ngIf=\"enProceso\" id=\"divProceso\" class=\"cCargando\">\r\n <div id=\"divProcesoMsg\" class=\"cCargandoImg\">\r\n <br />\r\n <i style=\"font-size: 50px\" class=\"pi pi-cog pi-spin\"></i>\r\n <br />\r\n </div>\r\n</div>", styles: [".iconWhatsApp{font-size:40px;color:#6495ed}.buttons{display:flex;justify-content:space-around;margin-block:15px}.frameDoc{overflow:hidden;border:none}.contacts{list-style-type:none;padding:0;margin:0}.contacts li{display:flex;border-bottom:1px solid #e3e3e3}.contacts li>p-checkbox{margin-inline:10px}.contacts li a{padding:0;width:100%;height:90px;box-sizing:border-box;text-decoration:none;position:relative;display:flex;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-transition:background-color .2s;-o-transition:background-color .2s;-webkit-transition:background-color .2s;transition:background-color .2s}.contacts li a .name{position:absolute;right:0;top:3px;font-size:18px}.contacts li a .Label{position:absolute;right:0;top:22px;font-size:13px}.contacts li a .email{position:absolute;right:0;top:30px;font-size:14px;color:#a4a4a4}.contacts li a .imagen{height:40px;width:40px;border-radius:50%;font-size:25px;color:#000;top:5px;display:absolute;text-align:left;vertical-align:center}.contacts li a .celular{position:absolute;right:10px;top:45px;font-size:14px;color:#a4a4a4}.contacts li a:hover{cursor:pointer;background-color:#eee}.contacts li:last-child{border:0}@media only screen and (max-width: 656px),(max-device-width: 656px){.contacts li a .name{position:absolute;right:0;top:10px;font-size:15px;width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contacts li>p-checkbox{margin-left:0}.contacts li a .email{position:absolute;right:0;top:30px;font-size:12px;color:#a4a4a4}.contacts li a .imagen{height:40px;width:40px;border-radius:50%;left:0%;font-size:25px;color:#000;top:5px;display:inline-block;text-align:center;vertical-align:center}.contacts li a .celular{position:absolute;right:10px;top:45px;font-size:15px;color:#00f}.tablaGestor{width:100%}}.buttonResponsive,buttonResponsiveBotonFinal{display:inline-block;border-radius:4px;background-color:#00f;border:none;color:#fff;text-align:center;font-size:12px;padding:10px;width:200px;transition:all .5s;cursor:pointer;margin:20px 5px 5px}\n"] }]
|
|
586
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }, { type: i2$1.DialogService }, { type: i3.MessageService }, { type: i0.ApplicationRef }, { type: i3.ConfirmationService }], propDecorators: { accion: [{
|
|
587
|
+
type: Input
|
|
588
|
+
}], entidad: [{
|
|
589
|
+
type: Input
|
|
590
|
+
}], ndoc: [{
|
|
591
|
+
type: Input
|
|
592
|
+
}], tdoc: [{
|
|
593
|
+
type: Input
|
|
594
|
+
}], tipo: [{
|
|
595
|
+
type: Input
|
|
596
|
+
}], Kasociada: [{
|
|
597
|
+
type: Input
|
|
598
|
+
}], Producto: [{
|
|
599
|
+
type: Input
|
|
600
|
+
}], Solicitud: [{
|
|
601
|
+
type: Input
|
|
602
|
+
}], oSession: [{
|
|
603
|
+
type: Input
|
|
604
|
+
}], perfilDocumentos: [{
|
|
605
|
+
type: Input
|
|
606
|
+
}], subestado: [{
|
|
607
|
+
type: Input
|
|
608
|
+
}], isMobile: [{
|
|
609
|
+
type: Input
|
|
610
|
+
}], nextTabPapa: [{
|
|
611
|
+
type: Output
|
|
612
|
+
}], bAtras: [{
|
|
613
|
+
type: Input
|
|
614
|
+
}], bFinal: [{
|
|
615
|
+
type: Input
|
|
616
|
+
}], botones: [{
|
|
617
|
+
type: Input
|
|
618
|
+
}], aplFiltro: [{
|
|
619
|
+
type: Input
|
|
620
|
+
}], nmco: [{
|
|
621
|
+
type: Input
|
|
622
|
+
}], server: [{
|
|
623
|
+
type: Input
|
|
624
|
+
}], panel: [{
|
|
625
|
+
type: ViewChild,
|
|
626
|
+
args: ['pdf', { read: ElementRef }]
|
|
627
|
+
}], idKatios: [{
|
|
628
|
+
type: Input
|
|
629
|
+
}] } });
|
|
630
|
+
|
|
631
|
+
/*
|
|
632
|
+
* Public API Surface of sf-documents
|
|
633
|
+
*/
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Generated bundle index. Do not edit.
|
|
637
|
+
*/
|
|
638
|
+
|
|
639
|
+
export { DOCUMENT_SERVICE, SfDocumentsComponent, SfDocumentsService };
|
|
640
|
+
//# sourceMappingURL=sf-documents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sf-documents.mjs","sources":["../../../projects/sf-documents/src/lib/sf-documents.service.ts","../../../projects/sf-documents/src/lib/pipes/safe.pipe.ts","../../../projects/sf-documents/src/lib/gateways/document.port.ts","../../../projects/sf-documents/src/dialog/upload-dialog/upload-dialog.component.ts","../../../projects/sf-documents/src/dialog/upload-dialog/upload-dialog.component.html","../../../projects/sf-documents/src/lib/sf-documents.component.ts","../../../projects/sf-documents/src/lib/sf-documents.component.html","../../../projects/sf-documents/src/public-api.ts","../../../projects/sf-documents/src/sf-documents.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SfDocumentsService {\r\n\r\n constructor() { }\r\n}\r\n","import { Pipe, PipeTransform } from \"@angular/core\";\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\n\r\n@Pipe({ name: 'safe' })\r\n\r\nexport class SafePipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n transform(url:any) {\r\n return this.sanitizer.bypassSecurityTrustResourceUrl(url);\r\n }\r\n}","import { InjectionToken } from \"@angular/core\";\r\nimport { Observable } from \"rxjs\";\r\n\r\nexport interface DocumentGatewayService{\r\n getCarptasByAccion(idKatios: string, data: any, okCallback: any, errorCallback: any): Promise<any>;\r\n updateEstadoFileSystemByCodigo(data: any, okCallback: any, errorCallback: any): Promise<any>;\r\n postServiceHttpOptionsDocs(idKatios: string, formData: FormData, headers: any): Observable<any>;\r\n}\r\n\r\nexport const DOCUMENT_SERVICE = new InjectionToken<DocumentGatewayService>('DOCUMENT_SERVICE');","import { CommonModule } from '@angular/common';\r\nimport { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { DialogModule } from 'primeng/dialog';\r\n\r\n@Component({\r\n selector: 'lib-upload-dialog',\r\n imports: [CommonModule, ButtonModule, DialogModule],\r\n templateUrl: './upload-dialog.component.html',\r\n styleUrl: './upload-dialog.component.css'\r\n})\r\nexport class UploadDialogComponent {\r\n @Input() selectedDocument: any;\r\n @Output() onUploaded = new EventEmitter<{ fileList: FileList, tagValue: any }>();\r\n @Output() loadFile = new EventEmitter<void>();\r\n visible: boolean = false;\r\n @ViewChild('fileInput', { static: true })\r\n fileInput!: ElementRef<HTMLInputElement>;\r\n\r\n constructor() { }\r\n\r\n showDialog(){\r\n this.loadFile.emit();\r\n this.visible = true;\r\n }\r\n loadFileClick() {\r\n this.fileInput.nativeElement.value = '';\r\n this.fileInput.nativeElement.click();\r\n }\r\n fileChange(event: any) {\r\n const input = event.target as HTMLInputElement;\r\n let fileList = input.files as FileList | null;\r\n const imagePathInput = input.value;\r\n if(fileList?.length) this.onUploaded.emit({ fileList, tagValue: imagePathInput });\r\n this.visible = false;\r\n }\r\n\r\n}\r\n","<button pButton type=\"button\" label=\"Adicionar\" icon=\"pi pi-plus\"\r\n (click)=\"showDialog()\"></button>\r\n\r\n<p-dialog [header] = \"'Adicionar ' + selectedDocument.label\" [(visible)]=\"visible\" [modal]=\"true\" [style]=\"{ width: '30rem' }\" [breakpoints]=\"{ '1199px': '75vw', '575px': '90vw' }\"\r\nposition = \"top\" [closable]=\"true\" (onHide)=\"visible=false\">\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <input #fileInput type=\"file\" (change)=\"fileChange($event)\" class=\"hidden\"\r\n placeholder=\"Upload file\" multiple>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <p-button\r\n icon=\"pi pi-upload\"\r\n (click)=\"loadFileClick()\"\r\n [text] = \"true\"\r\n [rounded]=\"true\"\r\n size=\"large\"\r\n ></p-button>\r\n\r\n <!-- <label *ngIf=\"isMobile\" (click)=\"openModal2(scanContent)\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">camera_alt</mat-icon>\r\n </label> -->\r\n </div>\r\n </div>\r\n</p-dialog>\r\n","import { ApplicationRef, Component, ElementRef, EventEmitter, inject, Input, OnChanges, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { DomSanitizer } from '@angular/platform-browser';\r\nimport { ConfirmationService, MessageService, TreeNode } from 'primeng/api';\r\nimport { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\r\nimport { ToastModule } from 'primeng/toast';\r\n\r\nimport * as _ from \"lodash\";\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { ConfirmDialogModule } from 'primeng/confirmdialog';\r\nimport { PanelModule } from 'primeng/panel';\r\nimport { CheckboxModule } from 'primeng/checkbox';\r\nimport { DialogModule } from 'primeng/dialog';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { SafePipe } from './pipes/safe.pipe';\r\nimport { DOCUMENT_SERVICE, DocumentGatewayService } from './gateways/document.port';\r\nimport { InputTextModule } from 'primeng/inputtext';\r\nimport { InputIcon } from 'primeng/inputicon';\r\nimport { IconField } from 'primeng/iconfield';\r\nimport { UploadDialogComponent } from '../dialog/upload-dialog/upload-dialog.component';\r\nimport { firstValueFrom } from 'rxjs';\r\n\r\ndeclare var cordova: any;\r\ndeclare var window: any;\r\n\r\n@Component({\r\n selector: 'app-sf-documents',\r\n imports: [ToastModule, ButtonModule, ConfirmDialogModule,PanelModule,CheckboxModule, DialogModule, CommonModule, FormsModule,SafePipe, InputTextModule, InputIcon,\r\n IconField, UploadDialogComponent\r\n ],\r\n templateUrl: './sf-documents.component.html',\r\n styleUrls: ['./sf-documents.component.scss'],\r\n providers: [DialogService, ConfirmationService],\r\n standalone: true\r\n})\r\nexport class SfDocumentsComponent implements OnDestroy, OnInit{\r\n private documentsService = inject<DocumentGatewayService>(DOCUMENT_SERVICE);\r\n @Input() accion: string = \"\";\r\n @Input() entidad: string = \"\";\r\n @Input() ndoc: string = \"\";\r\n @Input() tdoc: string = \"\";\r\n @Input() tipo: string = \"\";\r\n //Información necesaria para cargar documentos de productos\r\n @Input() Kasociada: string = \"\";\r\n @Input() Producto: string = \"\";\r\n @Input() Solicitud: string = \"\";\r\n @Input() oSession: any;\r\n @Input() perfilDocumentos: any;\r\n @Input() subestado: string = '';\r\n @Input() isMobile: boolean = false;\r\n @Output() nextTabPapa: EventEmitter<number> = new EventEmitter<number>();\r\n\r\n @Input() bAtras: boolean = false;\r\n @Input() bFinal: boolean = false;\r\n @Input() botones: boolean = true;\r\n @Input() aplFiltro: boolean = false;\r\n\r\n @Input() nmco: string[] = [];\r\n\r\n @Input() server: string = \"\";\r\n valorFiltro: string = \"\";\r\n\r\n tab = 1;\r\n enProceso = false;\r\n carpetaSeleccionada: any;\r\n files: any;\r\n filesFilter: any;\r\n imagePathInput: any;\r\n modalReference: DynamicDialogRef | undefined;\r\n modalReference2: DynamicDialogRef | undefined;\r\n documentoSeleccionado: any;\r\n docsEliminables: any[] = [];\r\n totalDocsEliminadosApi = {existoso: 0, fallido: 0};\r\n file: any;\r\n urlDoc: any;\r\n pdfUrl: any;\r\n current_path: string = \"\";\r\n current_label: string = \"\";\r\n scanFileList = new Array<any>();\r\n displayPDF: boolean = false;\r\n\r\n @ViewChild('pdf', { read: ElementRef }) public panel!: ElementRef<any>;\r\n UsuarioNdoc: any;\r\n UsuarioTdoc: any;\r\n @Input() idKatios: any;\r\n constructor(\r\n private sanitizer: DomSanitizer,\r\n private dialog: DialogService,\r\n public snackBar: MessageService,\r\n private appRef: ApplicationRef,\r\n private confirmationService: ConfirmationService\r\n ) { }\r\n\r\n ngOnInit() {\r\n if (this.oSession != null && this.oSession.UsuarioSistema.TDOC !== undefined && this.oSession.UsuarioSistema.NDOC !== undefined) {\r\n this.idKatios = this.oSession.UsuarioSistema.IDKATIOS.trim();\r\n this.perfilDocumentos = this.oSession.UsuarioSistema.PERDOCUMENTOS.trim();\r\n } \r\n if (this.tipo && this.perfilDocumentos) {\r\n this.cargarParametros(this.tipo)\r\n }\r\n }\r\n\r\n cargarParametros(tipo: string) {\r\n var data;\r\n switch (tipo) {\r\n case \"1\":\r\n this.enProceso = true;\r\n data = { \"Accion\": this.accion, \"Entidad\": this.entidad, \"IdKatios\": this.idKatios, \"TDoc\": this.tdoc, \"NDoc\": this.ndoc, \"Solicitud\": this.Solicitud, \"perfilDocumentos\": this.perfilDocumentos,\"Producto\": this.Producto }\r\n this.documentsService.getCarptasByAccion(this.idKatios, data, this.okCargoArbol, this.errorCargarArbol)\r\n this.tab = 1\r\n this.documentoSeleccionado = null\r\n break;\r\n }\r\n }\r\n\r\n expandAll() {\r\n this.files.forEach((node: any) => {\r\n this.expandRecursive(node, true);\r\n });\r\n }\r\n\r\n private expandRecursive(node: TreeNode, isExpand: boolean) {\r\n node.expanded = isExpand;\r\n var objeto: any;\r\n objeto = node\r\n if (node.children && node.children?.length > 0) {\r\n node.children.forEach(childNode => {\r\n this.expandRecursive(childNode, isExpand);\r\n });\r\n } else if (objeto.Path !== undefined) {\r\n var path = 'Imagenes/' + objeto.Path + objeto.label\r\n var re = /[\\\\]/gi;\r\n path = path.replace(re, \"/\")\r\n objeto.Path = this.server + path\r\n //this.sanitizer.bypassSecurityTrustUrl(this.server + path)\r\n }\r\n }\r\n \r\n public okCargoArbol = (iArbol: any) => {\r\n if (iArbol.CARPETA.length === undefined) {\r\n iArbol = new Array(iArbol.CARPETA)\r\n }\r\n\r\n iArbol.forEach((element: any) => {\r\n this.convertirArrayChildren(element)\r\n });\r\n\r\n //\r\n this.filtrarTipoDocumento(iArbol)\r\n //\r\n this.files = iArbol;\r\n this.filesFilter = iArbol;\r\n this.expandAll();\r\n this.enProceso = false;\r\n }\r\n public errorCargarArbol = (iError: any) => {\r\n this.message(\"Error al traer la información del servidor\", \"Ups!\")\r\n this.enProceso = false;\r\n }\r\n\r\n onClickedCheckDelete($event: any, document: any) {\r\n if ($event.checked) this.docsEliminables.push(document);\r\n else this.docsEliminables = this.docsEliminables.filter(doc => doc !== document);\r\n }\r\n\r\n funcOkDelDocumentMasivo = () => {\r\n this.totalDocsEliminadosApi.existoso += 1;\r\n if (this.totalDocsEliminadosApi.existoso + this.totalDocsEliminadosApi.fallido === this.docsEliminables.length) {\r\n this.cargarParametros(this.tipo);\r\n if ( this.totalDocsEliminadosApi.fallido > 0) this.message(\"Algunos documentos no pudieron ser eliminados\", \"Entiendo\");\r\n else this.message(\"Documentos eliminados satisfactoriamente\", \"\");\r\n\r\n }\r\n }\r\n\r\n funcErrDelDocumentMasivo = () => {\r\n this.totalDocsEliminadosApi.fallido += 1;\r\n if (this.totalDocsEliminadosApi.existoso + this.totalDocsEliminadosApi.fallido === this.docsEliminables.length) {\r\n this.cargarParametros(this.tipo);\r\n this.message(\"Algunos documentos no pudieron ser eliminados\", \"Entiendo\");\r\n }\r\n }\r\n\r\n eliminarMasivo(){\r\n this.confirmationService.confirm({\r\n message: `¿Desea eliminar los ${this.docsEliminables.length} documentos seleccionados?`,\r\n acceptLabel: 'Si',\r\n rejectLabel: 'No',\r\n accept: () => {\r\n this.enProceso = true\r\n this.totalDocsEliminadosApi = {existoso: 0, fallido: 0};\r\n this.docsEliminables.forEach(doc => {\r\n let data = { \"idKatios\": this.idKatios, \"codigo\": doc.codigo, \"estado\": \"DES\" };\r\n this.documentsService.updateEstadoFileSystemByCodigo(data, this.funcOkDelDocumentMasivo, this.funcErrDelDocumentMasivo);\r\n })\r\n }\r\n });\r\n }\r\n\r\n filtrarTipoDocumento(iArbol: any){\r\n if(this.nmco.length !== 0){\r\n iArbol.forEach((element: any) => {\r\n element.children = element.children.filter((child: any) => this.nmco.includes(child.NMCo));\r\n })\r\n }\r\n }\r\n\r\n convertirArrayChildren(node: any) {\r\n if (node.children === undefined) node.children = []\r\n else if (node.children.length == undefined) {\r\n node.children = new Array(node.children)\r\n }\r\n node.children.forEach((childNode: any) => {\r\n this.convertirArrayChildren(childNode);\r\n });\r\n\r\n }\r\n openBigModal(content: any) {\r\n this.modalReference = this.dialog.open(content, { \r\n width: '70%',\r\n modal: true,\r\n closable: true\r\n });\r\n this.modalReference.onClose.subscribe((result: any) => {\r\n //this.closeResult = `Closed with: ${result}`;\r\n });\r\n // this.modalReference.onHide.subscribe(() => {\r\n // //this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;\r\n // });\r\n }\r\n\r\n openModal2(content: any) {\r\n this.modalReference2 = this.dialog.open(content,{});\r\n this.modalReference2.onClose.subscribe((result: any) => {\r\n //this.closeResult = `Closed with: ${result}`;\r\n });\r\n }\r\n\r\n\r\n // takePhotoClick() {\r\n // this.documentsService.openCamera(this.ok_openCamera, this.error_openCamera);\r\n // }\r\n /////Cuando se cargar archivos adjuntos\r\n fileChange(data: any) {\r\n const fileList = data.fileList;\r\n const tagValue = data.tagValue;\r\n this.file = fileList[0];\r\n this.imagePathInput = tagValue;\r\n this.generarData(fileList);\r\n }\r\n\r\n // ok_openCamera = (imageUri: any) => {\r\n // this.makeFileIntoBlob(imageUri)\r\n // .then((file: Blob) => {\r\n // this.appRef.tick();\r\n // if (file.size > 1000000) {\r\n // if (confirm(\"Este archivo es bastate pesado, le recomendamos bajar la calidad de la cámara. ¿Desea subir este archivo?\")) {\r\n // this.loadFileToList(file);\r\n // }\r\n // } else {\r\n // this.loadFileToList(file);\r\n // }\r\n // this.enProceso = false;\r\n // })\r\n // .catch((error: Error) => {\r\n // console.error('Error processing camera image:', error);\r\n // this.message(\"Error al procesar la imagen de la cámara\", \"Error\");\r\n // this.enProceso = false;\r\n // });\r\n // }\r\n\r\n loadFileToList(file: any) {\r\n\r\n setTimeout(() => {\r\n file[\"name\"] = \"scan\" + Date.now() + this.scanFileList.length + \".jpg\"\r\n this.scanFileList.push(file);\r\n this.scanFileList = this.scanFileList.slice();\r\n this.enProceso = false\r\n this.message(\"Archivo cargado\", \"\")\r\n\r\n this.appRef.tick();\r\n }, 200)\r\n }\r\n\r\n subirFotosScan() {\r\n this.generarData(this.scanFileList);\r\n }\r\n // error_openCamera = (err: any) => {\r\n // console.log(err);\r\n // this.message(\"No se pudo acceder a la camara\", \"Error\")\r\n // }\r\n\r\n noZonePatch(cb: () => void) {\r\n const orig = FileReader;\r\n const unpatched = ((window as any).FileReader as any).__zone_symbol__OriginalDelegate;\r\n (window as any).FileReader = unpatched;\r\n cb();\r\n (window as any).FileReader = orig;\r\n }\r\n\r\n makeFileIntoBlob(_imagePath: any): Promise<Blob> {\r\n this.enProceso = true;\r\n // INSTALL PLUGIN - cordova plugin add cordova-plugin-file\r\n return new Promise((resolve, reject) => {\r\n try {\r\n window.resolveLocalFileSystemURL(_imagePath, (fileEntry: any) => {\r\n fileEntry.file((resFile: any) => {\r\n this.noZonePatch(() => {//! Alert 1: Comentarear esta linea y una de de abajo para ambiente de prueba\r\n var reader = new FileReader();\r\n\r\n reader.onloadend = (evt: any) => {\r\n var imgBlob: any = new Blob([evt.target.result], { type: 'image/jpeg' });\r\n imgBlob.name = 'scan.jpg';\r\n resolve(imgBlob);\r\n };\r\n\r\n reader.onerror = (e) => {\r\n console.log('Failed file read: ' + e.toString());\r\n reject(e);\r\n };\r\n reader.readAsArrayBuffer(resFile);\r\n });//!Comentarear esta linea y una de de arriba para ambiente de prueba\r\n });\r\n }, (error: any) => {\r\n console.error('Error resolving file system URL:', error);\r\n reject(error);\r\n });\r\n } catch (ex) {\r\n console.error('Error in makeFileIntoBlob:', ex);\r\n reject(ex);\r\n }\r\n });\r\n }\r\n\r\n subirImagen(data: any, fileList: any) {\r\n this.enProceso = true;\r\n const formData: FormData = new FormData();\r\n var dataDocs;\r\n var sIdKatios = this.idKatios;\r\n let json;\r\n let headers = new Headers()\r\n dataDocs = { \"data\": data };\r\n formData.append('data', JSON.stringify(dataDocs));\r\n formData.append('unificar', \"true\");\r\n\r\n for (let _i = 0; _i < fileList.length; _i++) {\r\n formData.append('uploadFile_' + data.id + '_' + _i, fileList[_i], fileList[_i].name);\r\n }\r\n\r\n firstValueFrom(this.documentsService.postServiceHttpOptionsDocs(sIdKatios, formData, headers)).then((posts: any) => {\r\n this.scanFileList = new Array<any>();\r\n if (this.modalReference2) {\r\n this.modalReference2.close();\r\n }\r\n if(this.modalReference) {\r\n this.modalReference.close();\r\n }\r\n this.message(\"Se almaceno exitosamente el documento\", \"Felicidades\")\r\n this.cargarParametros(this.tipo)\r\n this.enProceso = false;\r\n this.appRef.tick();\r\n },\r\n\r\n (err: any) => {\r\n this.enProceso = false;\r\n this.message(\"Se presentaron inconvenientes almacenando el documento\", \"Ups!\")\r\n console.error(\"Error : \" + err);\r\n },\r\n );\r\n }\r\n\r\n generarData(fileList: any) {\r\n this.enProceso = true\r\n var sPath1;\r\n var dataClientes\r\n let sPaths = \"\";\r\n if (this.documentoSeleccionado.Tipo.trim().toUpperCase() == \"PERSONA\") {\r\n sPath1 = this.documentoSeleccionado.Tipo.trim() + \"\\\\\" + this.tdoc.trim() +\r\n \"\\\\\" + this.ndoc.trim() + \"\\\\Cliente\\\\\" + this.documentoSeleccionado.NMCo.trim();\r\n } else {\r\n //Kasociada\r\n //producto\r\n //Falta numero de solicitud\r\n\r\n\r\n\r\n sPath1 = this.documentoSeleccionado.Tipo.trim() + \"\\\\\" + this.Kasociada +\r\n \"\\\\\" + this.Producto + \"\\\\\" + this.Solicitud + \"\\\\\" + this.documentoSeleccionado.NMCo;\r\n }\r\n\r\n dataClientes = {\r\n \"Tipo\": this.documentoSeleccionado.Tipo,\r\n \"id\": \"1\",\r\n \"documento\": this.documentoSeleccionado.NMCo,\r\n \"tdoc\": this.tdoc.trim(),\r\n \"ndoc\": this.ndoc.trim(),\r\n \"IdProducto\": this.Solicitud,\r\n \"TipoProducto\": this.Producto,\r\n \"Kasociada\": this.Kasociada,\r\n \"archivoUpload\": fileList[0],\r\n \"nombre\": this.tdoc.trim() + '-' + this.ndoc.trim(),\r\n \"fileCargado\": fileList[0],\r\n \"pathArchivo\": sPath1,\r\n \"TipoArchivo\": this.documentoSeleccionado.TipoArchivo\r\n }\r\n sPaths = sPaths + sPath1 + \",\";\r\n this.subirImagen(dataClientes, fileList)\r\n }\r\n\r\n cargarArchivo(iNodo: any) {\r\n this.scanFileList = new Array<any>();\r\n this.documentoSeleccionado = iNodo;\r\n }\r\n\r\n openDoc(item: any, pdfContent: any) {\r\n if (this.carpetaSeleccionada.TipoArchivo == '1' && this.isMobile) {\r\n cordova.InAppBrowser.open(item.Path, '_system', 'location=yes');\r\n } else {\r\n this.current_path = item.Path;\r\n this.current_label = item.label;\r\n this.openBigModal(pdfContent);\r\n }\r\n }\r\n\r\n openVisorDoc(item: any) {\r\n if (this.carpetaSeleccionada.TipoArchivo == '1' && this.isMobile) {//is mobile\r\n cordova.InAppBrowser.open(item.Path, '_system', 'location=yes');\r\n } else {\r\n this.current_path = item.Path;\r\n this.current_label = item.label;\r\n this.displayPDF = true;\r\n }\r\n }\r\n\r\n openNewWindow(item: any) {\r\n window.open(item.Path, '_blank').focus();\r\n }\r\n\r\n seleccionoDocs(iNodo: any) {\r\n var path = iNodo.Path + iNodo.label\r\n this.pdfUrl = this.server + \"//imagenes//\" + iNodo.idKatios + \"//\" + path;\r\n this.pdfUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.pdfUrl);;\r\n this.gotoBottom();\r\n }\r\n\r\n\r\n message(mensaje: any, tipo: any) {\r\n this.snackBar.add({\r\n severity: tipo,\r\n summary: mensaje,\r\n life: 4000\r\n });\r\n }\r\n\r\n\r\n public gotoBottom(): void {\r\n window.scrollBy(0, this.panel.nativeElement.scrollHeight)\r\n }\r\n\r\n\r\n public VerDetalleTab(items: any) {\r\n if(items?.reglas && typeof(items.reglas) == 'string') items.reglas = JSON.parse(items.reglas);\r\n if (!items?.reglas?.permisos?.subestados && items?.reglas?.permisos){\r\n items.reglas.permisos.cargarFront = items.reglas.permisos.cargar;\r\n items.reglas.permisos.borrarFront = items.reglas.permisos.borrar;\r\n }\r\n else if (items?.reglas?.permisos?.subestados && !this.isEmptyString(this.subestado)){\r\n items.reglas.permisos.cargarFront = Array.isArray(items.reglas.permisos.subestados.cargar) ? items.reglas.permisos.subestados.cargar.map((c: any) => c.toLowerCase().trim()).includes(this.subestado.toLowerCase().trim()): items.reglas.permisos.cargar;\r\n items.reglas.permisos.borrarFront = Array.isArray(items.reglas.permisos.subestados.borrar) ? items.reglas.permisos.subestados.borrar.map((b: any) => b.toLowerCase().trim()).includes(this.subestado.toLowerCase().trim()): items.reglas.permisos.borrar;\r\n }\r\n this.carpetaSeleccionada = items\r\n this.docsEliminables = []\r\n this.totalDocsEliminadosApi = {existoso: 0, fallido: 0};\r\n this.carpetaSeleccionada.children.forEach((element: any) => element.delete = false);\r\n console.log(this.carpetaSeleccionada)\r\n this.tab = 2\r\n }\r\n\r\n private isEmptyString(str: string): boolean {\r\n return str === undefined || str === null || str.trim() === '';\r\n }\r\n\r\n eliminarDocumento(docEliminar: any, e: any, funcOkDelDocument=this.ok_eliminarDocumento, funcErrDelDocument=this.err_eliminarDocumento) {\r\n e.stopPropagation();\r\n this.confirmationService.confirm({\r\n message: `¿Desea eliminar el documento?`,\r\n accept: () => {\r\n let data = { \"idKatios\": this.idKatios, \"codigo\": docEliminar.codigo, \"estado\": \"DES\" };\r\n this.documentsService.updateEstadoFileSystemByCodigo(data, funcOkDelDocument, funcErrDelDocument);\r\n }\r\n });\r\n }\r\n ok_eliminarDocumento = () => {\r\n this.message(\"Documento eliminado satisfactoriamente\", \"\");\r\n\r\n if (this.tipo !== undefined) {\r\n this.cargarParametros(this.tipo)\r\n }\r\n }\r\n err_eliminarDocumento = (err: any) => {\r\n this.message(\"No se pudo eliminar el documento\", \"Ups!\");\r\n console.log(err);\r\n }\r\n\r\n goToTab(tab: any) {\r\n this.tab = tab;\r\n }\r\n\r\n next(iValor: any) {\r\n if (iValor < 0) {\r\n this.nextTabPapa.emit(iValor)\r\n } else {\r\n var respuesta = \"\"\r\n if (this.files) respuesta = this.valorDocumentosPendientes(this.files[0])\r\n\r\n if (respuesta == \"\") {\r\n this.nextTabPapa.emit(iValor)\r\n } else {\r\n this.message(respuesta, \"Ups!\");\r\n }\r\n }\r\n }\r\n\r\n valorDocumentosPendientes(carpetas: any) {\r\n\r\n var respuesta = \"\";\r\n if (carpetas.children) {\r\n carpetas.children.forEach((carpeta: any) => {\r\n\r\n if (carpeta.Obligatorio == 1 && (!carpeta.children || carpeta.children.length == 0)) respuesta = \"Falta \" + carpeta.label\r\n })\r\n }\r\n return respuesta\r\n\r\n }\r\n\r\n filtrarDocumentos() {\r\n this.filesFilter = _.cloneDeep(this.files);\r\n for (let i = 0; i < this.files.length; i++) {\r\n let node = [];\r\n for (let j = 0; j < this.files[i].children.length; j++) {\r\n let file = this.files[i].children[j];\r\n if (file.label.toLowerCase().indexOf(this.valorFiltro.toLowerCase()) == 0) node.push(file)\r\n }\r\n this.filesFilter[i].children = node;\r\n }\r\n }\r\n ngOnDestroy() {\r\n if (this.modalReference) {\r\n this.modalReference.close();\r\n }\r\n if(this.modalReference2) {\r\n this.modalReference2.close();\r\n }\r\n }\r\n}\r\n","<div class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n</div>\r\n<p-iconfield *ngIf=\"aplFiltro\">\r\n <p-inputicon class=\"pi pi-search\" />\r\n <input type=\"text\" pInputText placeholder=\"Busqueda\" [(ngModel)]=\"valorFiltro\" (keyup)=\"filtrarDocumentos()\" class=\"w-full\">\r\n</p-iconfield>\r\n<p-confirmDialog header=\"Atencion\" icon=\"pi pi-exclamation-triangle\"></p-confirmDialog>\r\n<ng-container *ngIf=\"tab==1\" class=\"tablaGestor\">\r\n <ng-container *ngFor=\"let carpeta of filesFilter\" class=\"tablaGestor\">\r\n <p-panel header=\"{{carpeta.label}}\" [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpeta.children\">\r\n <a (click)=\"VerDetalleTab(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.children?.length > 0 ? 'green':'red' }\"> <i\r\n class=\"{{item.collapsedIcon || 'pi pi-folder'}}\"></i>\r\n </span>\r\n <span class=\"name\">{{item.label}}</span>\r\n <span class=\"email\" *ngIf=\"item.children !== undefined && item.children.length > 0\">Documentos cargados:\r\n {{item.children.length}}</span>\r\n <span class=\"email\" *ngIf=\"item.children?.length === undefined || item.children?.length == 0\">Sin documentos cargados</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n </ng-container>\r\n <ng-container class=\"buttons\" *ngIf=\"botones\">\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"bAtras\">\r\n <button pButton type=\"button\" label=\"Atras\" icon=\"pi pi-arrow-left\" (click)=\"next(-1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" style=\"text-align: center\" *ngIf=\"!bFinal && botones\">\r\n <button pButton type=\"button\" label=\"Siguiente\" icon=\"pi pi-arrow-right\" (click)=\"next(1)\"></button>\r\n </div>\r\n <div class=\"div-table-col50\" *ngIf=\"bFinal\">\r\n <button pButton type=\"button\" label=\"Finalizar\" icon=\"pi pi-home\" (click)=\"next(0)\"></button>\r\n </div>\r\n </ng-container>\r\n</ng-container>\r\n<ng-container *ngIf=\"tab==2\">\r\n <div style=\"margin-block: 15px; display: flex;\">\r\n <button pButton type=\"button\" icon=\"pi pi-arrow-left\" label=\"Volver\" (click)=\"goToTab('1')\"></button>\r\n </div>\r\n <p-panel [header]=\"carpetaSeleccionada.label.replace('#toolbar=0&navpanes=0&statusbar=0','')\"\r\n [style]=\"{'height':'100%'}\">\r\n <ul class=\"contacts\">\r\n <li *ngFor=\"let item of carpetaSeleccionada.children\">\r\n <p-checkbox *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" [binary]=\"true\" [(ngModel)]=\"item.delete\"\r\n (onChange)=\"onClickedCheckDelete($event, item)\"></p-checkbox>\r\n <a (click)=\"openVisorDoc(item)\">\r\n <span class=\"imagen\" [ngStyle]=\"{'color': item.color }\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" class=\"frameDoc\" scrolling=\"no\"\r\n [src]=\"item.Path | safe\" style=\"width:75px; height:90px;\">\r\n <img *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && isMobile\" class=\"frameDoc\" scrolling=\"no\"\r\n src=\"https://macuna.tecfinanzas.com/Imagenes/pdf_icon.png\" style=\"width:75px; height:90px;\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1' && !isMobile\" class=\"frameDoc\"\r\n style=\"width:85px; height:90px;\" [src]=\"item.Path | safe\" frameborder=\"0\"></iframe>\r\n </span>\r\n <div>\r\n <div>\r\n <span class=\"name\">{{item.label}}</span>\r\n </div>\r\n <div>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && !isMobile\">Fecha Subida: {{item.FechaSubida}}</span>\r\n <span class=\"Label\" *ngIf=\"item.FechaSubida && isMobile\">{{item.FechaSubida}}</span>\r\n </div>\r\n </div>\r\n <span class=\"celular\">\r\n <i\r\n class=\"pi pi-external-link text-blue-500 text-2xl cursor-pointer\"\r\n (click)=\"openNewWindow(item); $event.stopPropagation()\"\r\n role=\"button\"\r\n tabindex=\"0\"\r\n aria-label=\"Abrir en una nueva ventana\"\r\n (keydown.enter)=\"openNewWindow(item); $event.stopPropagation()\"\r\n (keydown.space)=\"openNewWindow(item); $event.stopPropagation()\"\r\n ></i>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </p-panel>\r\n <div class=\"div-table\" style=\"text-align: center;\">\r\n <div class=\"div-table-row\" style=\"text-align: center;\" class=\"buttons\">\r\n <lib-upload-dialog *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.cargarFront\" [selectedDocument]=\"carpetaSeleccionada\" (onUploaded)=\"fileChange($event)\" (loadFile)=\"cargarArchivo(carpetaSeleccionada)\"></lib-upload-dialog>\r\n <button pButton type=\"button\" label=\"Eliminar\" icon=\"pi pi-trash\"\r\n *ngIf=\"carpetaSeleccionada?.reglas?.permisos?.borrarFront\" (click)=\"eliminarMasivo()\"\r\n [disabled]=\"docsEliminables.length === 0\"></button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"div-table\" style=\"font-size: 5px\">\r\n V1.0.3\r\n </div>\r\n</ng-container>\r\n\r\n<p-dialog *ngIf=\"displayPDF\" [(visible)]=\"displayPDF\"\r\n header=\"{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\" [modal]=\"true\" [style]=\"{width: '70vw'}\">\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n</p-dialog>\r\n\r\n\r\n<ng-template #pdfContent>\r\n <div class=\"modal-header\">\r\n <h4 class=\"modal-title\" id=\"modal-basic-title\">{{current_label.replace('#toolbar=0&navpanes=0&statusbar=0','')}}\r\n </h4>\r\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"modalReference?.close()\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div>\r\n <embed *ngIf=\"carpetaSeleccionada.TipoArchivo == '2'\" [src]=\"current_path | safe\"\r\n style=\"width:100%; min-height: 600px\">\r\n <iframe *ngIf=\"carpetaSeleccionada.TipoArchivo == '1'\" style=\"width:100%; min-height: 600px\"\r\n [src]=\"current_path | safe\"></iframe>\r\n\r\n </div>\r\n</ng-template>\r\n\r\n<!-- <ng-template #scanContent>\r\n <div class=\"div-table\">\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <h4>Escanear documentos</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n Archivos cargados: <h4>{{scanFileList.length}}</h4>\r\n </div>\r\n <div class=\"div-table-row\" style=\"text-align: center\">\r\n <label (click)=\"takePhotoClick()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">add_to_photos</mat-icon>\r\n </label>\r\n\r\n <label *ngIf=\"scanFileList.length != 0\" (click)=\"subirFotosScan()\" class=\"btn\">\r\n <mat-icon style=\"font-size: 2.5em; color:#0056b2\">share</mat-icon>\r\n </label>\r\n </div>\r\n </div>\r\n</ng-template> -->\r\n\r\n\r\n<div *ngIf=\"enProceso\" id=\"divProceso\" class=\"cCargando\">\r\n <div id=\"divProcesoMsg\" class=\"cCargandoImg\">\r\n <br />\r\n <i style=\"font-size: 50px\" class=\"pi pi-cog pi-spin\"></i>\r\n <br />\r\n </div>\r\n</div>","/*\r\n * Public API Surface of sf-documents\r\n */\r\n\r\nexport * from './lib/sf-documents.service';\r\nexport * from './lib/sf-documents.component';\r\nexport * from './lib/gateways/document.port';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKa,kBAAkB,CAAA;AAE7B,IAAA,WAAA,GAAA;wGAFW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cAFjB,MAAM,EAAA,CAAA;;4FAEP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCCY,QAAQ,CAAA;AAEC,IAAA,SAAA;AAApB,IAAA,WAAA,CAAoB,SAAuB,EAAA;QAAvB,IAAS,CAAA,SAAA,GAAT,SAAS;;AAC7B,IAAA,SAAS,CAAC,GAAO,EAAA;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8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AA,CAAA;sBAAd;gBAsB8C,KAAK,EAAA,CAAA;sBAAnD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;gBAG7B,QAAQ,EAAA,CAAA;sBAAhB;;;AEpFH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
export interface DocumentGatewayService {
|
|
4
|
+
getCarptasByAccion(idKatios: string, data: any, okCallback: any, errorCallback: any): Promise<any>;
|
|
5
|
+
updateEstadoFileSystemByCodigo(data: any, okCallback: any, errorCallback: any): Promise<any>;
|
|
6
|
+
postServiceHttpOptionsDocs(idKatios: string, formData: FormData, headers: any): Observable<any>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DOCUMENT_SERVICE: InjectionToken<DocumentGatewayService>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SafePipe implements PipeTransform {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
transform(url: any): import("@angular/platform-browser").SafeResourceUrl;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ApplicationRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
4
|
+
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SfDocumentsComponent implements OnDestroy, OnInit {
|
|
7
|
+
private sanitizer;
|
|
8
|
+
private dialog;
|
|
9
|
+
snackBar: MessageService;
|
|
10
|
+
private appRef;
|
|
11
|
+
private confirmationService;
|
|
12
|
+
private documentsService;
|
|
13
|
+
accion: string;
|
|
14
|
+
entidad: string;
|
|
15
|
+
ndoc: string;
|
|
16
|
+
tdoc: string;
|
|
17
|
+
tipo: string;
|
|
18
|
+
Kasociada: string;
|
|
19
|
+
Producto: string;
|
|
20
|
+
Solicitud: string;
|
|
21
|
+
oSession: any;
|
|
22
|
+
perfilDocumentos: any;
|
|
23
|
+
subestado: string;
|
|
24
|
+
isMobile: boolean;
|
|
25
|
+
nextTabPapa: EventEmitter<number>;
|
|
26
|
+
bAtras: boolean;
|
|
27
|
+
bFinal: boolean;
|
|
28
|
+
botones: boolean;
|
|
29
|
+
aplFiltro: boolean;
|
|
30
|
+
nmco: string[];
|
|
31
|
+
server: string;
|
|
32
|
+
valorFiltro: string;
|
|
33
|
+
tab: number;
|
|
34
|
+
enProceso: boolean;
|
|
35
|
+
carpetaSeleccionada: any;
|
|
36
|
+
files: any;
|
|
37
|
+
filesFilter: any;
|
|
38
|
+
imagePathInput: any;
|
|
39
|
+
modalReference: DynamicDialogRef | undefined;
|
|
40
|
+
modalReference2: DynamicDialogRef | undefined;
|
|
41
|
+
documentoSeleccionado: any;
|
|
42
|
+
docsEliminables: any[];
|
|
43
|
+
totalDocsEliminadosApi: {
|
|
44
|
+
existoso: number;
|
|
45
|
+
fallido: number;
|
|
46
|
+
};
|
|
47
|
+
file: any;
|
|
48
|
+
urlDoc: any;
|
|
49
|
+
pdfUrl: any;
|
|
50
|
+
current_path: string;
|
|
51
|
+
current_label: string;
|
|
52
|
+
scanFileList: any[];
|
|
53
|
+
displayPDF: boolean;
|
|
54
|
+
panel: ElementRef<any>;
|
|
55
|
+
UsuarioNdoc: any;
|
|
56
|
+
UsuarioTdoc: any;
|
|
57
|
+
idKatios: any;
|
|
58
|
+
constructor(sanitizer: DomSanitizer, dialog: DialogService, snackBar: MessageService, appRef: ApplicationRef, confirmationService: ConfirmationService);
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
cargarParametros(tipo: string): void;
|
|
61
|
+
expandAll(): void;
|
|
62
|
+
private expandRecursive;
|
|
63
|
+
okCargoArbol: (iArbol: any) => void;
|
|
64
|
+
errorCargarArbol: (iError: any) => void;
|
|
65
|
+
onClickedCheckDelete($event: any, document: any): void;
|
|
66
|
+
funcOkDelDocumentMasivo: () => void;
|
|
67
|
+
funcErrDelDocumentMasivo: () => void;
|
|
68
|
+
eliminarMasivo(): void;
|
|
69
|
+
filtrarTipoDocumento(iArbol: any): void;
|
|
70
|
+
convertirArrayChildren(node: any): void;
|
|
71
|
+
openBigModal(content: any): void;
|
|
72
|
+
openModal2(content: any): void;
|
|
73
|
+
fileChange(data: any): void;
|
|
74
|
+
loadFileToList(file: any): void;
|
|
75
|
+
subirFotosScan(): void;
|
|
76
|
+
noZonePatch(cb: () => void): void;
|
|
77
|
+
makeFileIntoBlob(_imagePath: any): Promise<Blob>;
|
|
78
|
+
subirImagen(data: any, fileList: any): void;
|
|
79
|
+
generarData(fileList: any): void;
|
|
80
|
+
cargarArchivo(iNodo: any): void;
|
|
81
|
+
openDoc(item: any, pdfContent: any): void;
|
|
82
|
+
openVisorDoc(item: any): void;
|
|
83
|
+
openNewWindow(item: any): void;
|
|
84
|
+
seleccionoDocs(iNodo: any): void;
|
|
85
|
+
message(mensaje: any, tipo: any): void;
|
|
86
|
+
gotoBottom(): void;
|
|
87
|
+
VerDetalleTab(items: any): void;
|
|
88
|
+
private isEmptyString;
|
|
89
|
+
eliminarDocumento(docEliminar: any, e: any, funcOkDelDocument?: () => void, funcErrDelDocument?: (err: any) => void): void;
|
|
90
|
+
ok_eliminarDocumento: () => void;
|
|
91
|
+
err_eliminarDocumento: (err: any) => void;
|
|
92
|
+
goToTab(tab: any): void;
|
|
93
|
+
next(iValor: any): void;
|
|
94
|
+
valorDocumentosPendientes(carpetas: any): string;
|
|
95
|
+
filtrarDocumentos(): void;
|
|
96
|
+
ngOnDestroy(): void;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SfDocumentsComponent, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SfDocumentsComponent, "app-sf-documents", never, { "accion": { "alias": "accion"; "required": false; }; "entidad": { "alias": "entidad"; "required": false; }; "ndoc": { "alias": "ndoc"; "required": false; }; "tdoc": { "alias": "tdoc"; "required": false; }; "tipo": { "alias": "tipo"; "required": false; }; "Kasociada": { "alias": "Kasociada"; "required": false; }; "Producto": { "alias": "Producto"; "required": false; }; "Solicitud": { "alias": "Solicitud"; "required": false; }; "oSession": { "alias": "oSession"; "required": false; }; "perfilDocumentos": { "alias": "perfilDocumentos"; "required": false; }; "subestado": { "alias": "subestado"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "bAtras": { "alias": "bAtras"; "required": false; }; "bFinal": { "alias": "bFinal"; "required": false; }; "botones": { "alias": "botones"; "required": false; }; "aplFiltro": { "alias": "aplFiltro"; "required": false; }; "nmco": { "alias": "nmco"; "required": false; }; "server": { "alias": "server"; "required": false; }; "idKatios": { "alias": "idKatios"; "required": false; }; }, { "nextTabPapa": "nextTabPapa"; }, never, never, true, never>;
|
|
99
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sf-documents",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.2.0",
|
|
6
|
+
"@angular/core": "^19.2.0",
|
|
7
|
+
"primeng": "^19.0.0",
|
|
8
|
+
"primeicons": "^7.0.0",
|
|
9
|
+
"primeflex": "^4.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.3.0"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"module": "fesm2022/sf-documents.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./fesm2022/sf-documents.mjs"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
package/public-api.d.ts
ADDED