@jvsoft/components 1.0.0-alpha.13 → 1.0.0-alpha.16
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/fesm2022/jvsoft-components-alerta.mjs +19 -20
- package/fesm2022/jvsoft-components-alerta.mjs.map +1 -1
- package/fesm2022/jvsoft-components-dialog-flotante.mjs +15 -15
- package/fesm2022/jvsoft-components-dialog-flotante.mjs.map +1 -1
- package/fesm2022/jvsoft-components-filtro-busqueda.mjs +19 -19
- package/fesm2022/jvsoft-components-filtro-busqueda.mjs.map +1 -1
- package/fesm2022/jvsoft-components-foto-persona.mjs +481 -0
- package/fesm2022/jvsoft-components-foto-persona.mjs.map +1 -0
- package/fesm2022/jvsoft-components-lista-arbol.mjs +32 -34
- package/fesm2022/jvsoft-components-lista-arbol.mjs.map +1 -1
- package/fesm2022/jvsoft-components-luces-navidad.mjs +4 -8
- package/fesm2022/jvsoft-components-luces-navidad.mjs.map +1 -1
- package/fesm2022/jvsoft-components-mat-suffix-search-button.mjs +3 -3
- package/fesm2022/jvsoft-components-mat-suffix-search-button.mjs.map +1 -1
- package/fesm2022/jvsoft-components-menu.mjs +9 -12
- package/fesm2022/jvsoft-components-menu.mjs.map +1 -1
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs +4 -4
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs.map +1 -1
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs +76 -78
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs.map +1 -1
- package/fesm2022/jvsoft-components.mjs +9 -3015
- package/fesm2022/jvsoft-components.mjs.map +1 -1
- package/foto-persona/README.md +341 -0
- package/package.json +22 -17
- package/src/styles/base-jvsoft-components.css +1542 -5
- package/types/jvsoft-components-alerta.d.ts +33 -0
- package/types/jvsoft-components-dialog-flotante.d.ts +34 -0
- package/types/jvsoft-components-filtro-busqueda.d.ts +217 -0
- package/types/jvsoft-components-foto-persona.d.ts +300 -0
- package/types/jvsoft-components-lista-arbol.d.ts +60 -0
- package/{luces-navidad/luces-navidad.component.d.ts → types/jvsoft-components-luces-navidad.d.ts} +5 -2
- package/{mat-suffix-search-button/mat-suffix-search-button.component.d.ts → types/jvsoft-components-mat-suffix-search-button.d.ts} +5 -2
- package/{menu/menu.component.d.ts → types/jvsoft-components-menu.d.ts} +24 -4
- package/{tabla-mantenimiento/components/progress-bar/progress-bar.component.d.ts → types/jvsoft-components-tabla-mantenimiento-components-progress-bar.d.ts} +7 -3
- package/types/jvsoft-components-tabla-mantenimiento.d.ts +469 -0
- package/types/jvsoft-components.d.ts +9 -0
- package/alerta/alerta.component.d.ts +0 -29
- package/alerta/index.d.ts +0 -5
- package/alerta/public-api.d.ts +0 -1
- package/dialog-flotante/dialog-flotante.component.d.ts +0 -23
- package/dialog-flotante/dialog-flotante.interface.d.ts +0 -11
- package/dialog-flotante/index.d.ts +0 -5
- package/dialog-flotante/public-api.d.ts +0 -1
- package/filtro-busqueda/filtro-busqueda.component.d.ts +0 -89
- package/filtro-busqueda/filtro-busqueda.service.d.ts +0 -40
- package/filtro-busqueda/index.d.ts +0 -5
- package/filtro-busqueda/interfaces/filtro-busqueda.interface.d.ts +0 -86
- package/filtro-busqueda/public-api.d.ts +0 -3
- package/index.d.ts +0 -9
- package/lista-arbol/index.d.ts +0 -5
- package/lista-arbol/lista-arbol.component.d.ts +0 -57
- package/lista-arbol/lista-arbol.functions.d.ts +0 -8
- package/lista-arbol/public-api.d.ts +0 -1
- package/luces-navidad/index.d.ts +0 -5
- package/luces-navidad/public-api.d.ts +0 -1
- package/mat-suffix-search-button/index.d.ts +0 -5
- package/mat-suffix-search-button/public-api.d.ts +0 -1
- package/menu/index.d.ts +0 -5
- package/menu/menu.interface.d.ts +0 -16
- package/menu/public-api.d.ts +0 -2
- package/tabla-mantenimiento/classes/data-model.d.ts +0 -25
- package/tabla-mantenimiento/components/progress-bar/index.d.ts +0 -5
- package/tabla-mantenimiento/components/progress-bar/public-api.d.ts +0 -1
- package/tabla-mantenimiento/index.d.ts +0 -5
- package/tabla-mantenimiento/interfaces/Implements/incluye-tabla-mantenimiento.d.ts +0 -12
- package/tabla-mantenimiento/interfaces/Implements/index.d.ts +0 -1
- package/tabla-mantenimiento/interfaces/archivo.d.ts +0 -26
- package/tabla-mantenimiento/interfaces/global/boton-mantenimiento.d.ts +0 -41
- package/tabla-mantenimiento/interfaces/global/columnas-tabla.d.ts +0 -142
- package/tabla-mantenimiento/interfaces/global/index.d.ts +0 -3
- package/tabla-mantenimiento/interfaces/global/no-export.d.ts +0 -2
- package/tabla-mantenimiento/interfaces/global/otros.d.ts +0 -28
- package/tabla-mantenimiento/interfaces/index.d.ts +0 -3
- package/tabla-mantenimiento/mat-row-keyboard-selection.directive.d.ts +0 -19
- package/tabla-mantenimiento/pipes/no-sanitize.pipe.d.ts +0 -10
- package/tabla-mantenimiento/pipes/zero-fill.pipe.d.ts +0 -8
- package/tabla-mantenimiento/public-api.d.ts +0 -4
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-date/column-type-date.component.d.ts +0 -8
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-icons/column-type-icons.component.d.ts +0 -9
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-money/column-type-money.component.d.ts +0 -9
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-number/column-type-number.component.d.ts +0 -8
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-progressbar/column-type-progressbar.component.d.ts +0 -8
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-sino/column-type-sino.component.d.ts +0 -9
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-text/column-type-text.component.d.ts +0 -8
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.d.ts +0 -18
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.module.d.ts +0 -24
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.d.ts +0 -21
- package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.d.ts +0 -18
- package/tabla-mantenimiento/tabla-mantenimiento.component.d.ts +0 -159
- package/tabla-mantenimiento/tabla-mantenimiento.functions.d.ts +0 -5
- package/tabla-mantenimiento/tabla-mantenimiento.service.d.ts +0 -8
- package/tabla-mantenimiento/table-util.d.ts +0 -11
package/{luces-navidad/luces-navidad.component.d.ts → types/jvsoft-components-luces-navidad.d.ts}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
declare class LucesNavidadComponent implements OnInit {
|
|
4
5
|
enProduccion: boolean;
|
|
5
6
|
forzarMuestra: boolean;
|
|
6
7
|
mesActual: number;
|
|
@@ -9,3 +10,5 @@ export declare class LucesNavidadComponent implements OnInit {
|
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LucesNavidadComponent, never>;
|
|
10
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<LucesNavidadComponent, "jvs-luces-navidad, [jvsLucesNavidad]", never, { "enProduccion": { "alias": "enProduccion"; "required": false; }; "forzarMuestra": { "alias": "forzarMuestra"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
export { LucesNavidadComponent };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
1
2
|
import { EventEmitter } from '@angular/core';
|
|
2
3
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
declare class MatSuffixSearchButtonComponent {
|
|
5
6
|
fControl: any;
|
|
6
7
|
eventLimpiar: EventEmitter<any>;
|
|
7
8
|
eventBuscar: EventEmitter<any>;
|
|
@@ -10,3 +11,5 @@ export declare class MatSuffixSearchButtonComponent {
|
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffixSearchButtonComponent, never>;
|
|
11
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSuffixSearchButtonComponent, "div[matSuffix][matSuffixSearchButton]", never, { "fControl": { "alias": "fControl"; "required": true; }; }, { "eventLimpiar": "eventLimpiar"; "eventBuscar": "eventBuscar"; }, never, never, true, never>;
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
export { MatSuffixSearchButtonComponent };
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, EventEmitter, QueryList } from '@angular/core';
|
|
2
3
|
import { MatMenu } from '@angular/material/menu';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
interface BotonMenu {
|
|
6
|
+
idUnico?: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
icono?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
soloIcono?: boolean;
|
|
11
|
+
sinCondicion?: boolean;
|
|
12
|
+
badge?: string;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
idxOpcionCalc?: any;
|
|
15
|
+
subItems?: BotonMenu[];
|
|
16
|
+
datosExtra?: any;
|
|
17
|
+
valorSeleccion?: any;
|
|
18
|
+
esVisible?(dataValid?: any): boolean;
|
|
19
|
+
estaDeshabilitado?(item?: any): boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class MenuComponent implements OnInit, AfterViewInit {
|
|
6
23
|
cssBoton?: string;
|
|
7
24
|
title?: string;
|
|
8
25
|
disabled: boolean;
|
|
@@ -23,3 +40,6 @@ export declare class MenuComponent implements OnInit, AfterViewInit {
|
|
|
23
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
24
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "jvs-menu", never, { "cssBoton": { "alias": "cssBoton"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "itemSeleccion": { "alias": "itemSeleccion"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
25
42
|
}
|
|
43
|
+
|
|
44
|
+
export { MenuComponent };
|
|
45
|
+
export type { BotonMenu };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
interface EstilosBarra {
|
|
4
5
|
valorMaximo: number;
|
|
5
6
|
class?: string;
|
|
6
7
|
style?: string;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
declare class ProgressBarComponent implements OnInit {
|
|
9
10
|
objThis: any;
|
|
10
11
|
porcentaje: number;
|
|
11
12
|
textoCentrado: boolean;
|
|
@@ -28,3 +29,6 @@ export declare class ProgressBarComponent implements OnInit {
|
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "jvs-progress-bar", never, { "objThis": { "alias": "objThis"; "required": false; }; "porcentaje": { "alias": "porcentaje"; "required": false; }; "textoCentrado": { "alias": "textoCentrado"; "required": false; }; "textoMostrar": { "alias": "textoMostrar"; "required": false; }; "formatoNumero": { "alias": "formatoNumero"; "required": false; }; "coloresValor": { "alias": "coloresValor"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
31
|
}
|
|
32
|
+
|
|
33
|
+
export { ProgressBarComponent };
|
|
34
|
+
export type { EstilosBarra };
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import * as _jvsoft_components_tabla_mantenimiento from '@jvsoft/components/tabla-mantenimiento';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { OnInit, TemplateRef, AfterContentInit, OnChanges, ViewContainerRef, EventEmitter, QueryList, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
5
|
+
import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
|
|
6
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
7
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
8
|
+
import { MatSort } from '@angular/material/sort';
|
|
9
|
+
import { MatTableDataSource, MatTable, MatColumnDef } from '@angular/material/table';
|
|
10
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
11
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
13
|
+
|
|
14
|
+
declare class DataModel {
|
|
15
|
+
modelosChk: {
|
|
16
|
+
[key: string]: boolean | any;
|
|
17
|
+
};
|
|
18
|
+
checkbox: ForCheckboxModel;
|
|
19
|
+
constructor();
|
|
20
|
+
generarId(row: any, campoValor: string[] | string, separador?: string): string;
|
|
21
|
+
agregarControles(lista: any[], idLista: string, limpiar?: boolean, campoValor?: string[] | string | null, campoValorSeparador?: string): void;
|
|
22
|
+
setState(idx: string, state: boolean): void;
|
|
23
|
+
getState(idx: string): boolean | any;
|
|
24
|
+
getDataMultiple(idx: string): any;
|
|
25
|
+
generarLista(tipoRetorno?: 'array' | 'object' | null, esCampoNumerico?: boolean): string | object | any[];
|
|
26
|
+
generarFormGroupFromModelosChk(tipo?: string): FormGroup;
|
|
27
|
+
}
|
|
28
|
+
declare class ForCheckboxModel {
|
|
29
|
+
private modeloCheck;
|
|
30
|
+
constructor(modeloCheck: DataModel);
|
|
31
|
+
get cantidadActivos(): number;
|
|
32
|
+
get existenActivados(): boolean;
|
|
33
|
+
get todosActivos(): boolean;
|
|
34
|
+
get algunosActivos(): boolean;
|
|
35
|
+
establecerTodos(activo: boolean): void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface EstilosBarra {
|
|
39
|
+
valorMaximo: number;
|
|
40
|
+
class?: string;
|
|
41
|
+
style?: string;
|
|
42
|
+
}
|
|
43
|
+
declare class ProgressBarComponent implements OnInit {
|
|
44
|
+
objThis: any;
|
|
45
|
+
porcentaje: number;
|
|
46
|
+
textoCentrado: boolean;
|
|
47
|
+
private _textoMostrar;
|
|
48
|
+
get textoMostrar(): string;
|
|
49
|
+
set textoMostrar(val: string);
|
|
50
|
+
private _formatoNumero;
|
|
51
|
+
get formatoNumero(): string;
|
|
52
|
+
set formatoNumero(val: string | undefined);
|
|
53
|
+
private _coloresValor;
|
|
54
|
+
get coloresValor(): EstilosBarra[];
|
|
55
|
+
set coloresValor(val: EstilosBarra[] | undefined);
|
|
56
|
+
constructor();
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
colorEstilo(): {
|
|
59
|
+
style: string;
|
|
60
|
+
class: string;
|
|
61
|
+
};
|
|
62
|
+
ordenarPorPropiedad(objData: any[], propiedad: string, numeros?: boolean): any[];
|
|
63
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
64
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "jvs-progress-bar", never, { "objThis": { "alias": "objThis"; "required": false; }; "porcentaje": { "alias": "porcentaje"; "required": false; }; "textoCentrado": { "alias": "textoCentrado"; "required": false; }; "textoMostrar": { "alias": "textoMostrar"; "required": false; }; "formatoNumero": { "alias": "formatoNumero"; "required": false; }; "coloresValor": { "alias": "coloresValor"; "required": false; }; }, {}, never, never, true, never>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type TipoValorFuncion<T> = T | ((...param: any) => T);
|
|
68
|
+
declare function tipoValorFuncion<T>(datoParam: TipoValorFuncion<T>, defaultValue?: T, ...param: any[]): T | undefined;
|
|
69
|
+
|
|
70
|
+
interface PopoverConfig<T> {
|
|
71
|
+
content?: (row: T) => string;
|
|
72
|
+
template?: TemplateRef<any>;
|
|
73
|
+
trigger?: 'hover' | 'click' | 'focus';
|
|
74
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
75
|
+
customClass?: string;
|
|
76
|
+
}
|
|
77
|
+
type TiposColumnas = 'yes_no' | 'estiloEstablecido' | 'text' | 'number' | 'money' | 'date' | 'image' | 'estado' | 'badge' | 'progress' | 'checkbox' | 'icon' | 'icons' | 'icon_checkbox' | 'custom' | 'expandir' | 'numeracion_automatica';
|
|
78
|
+
interface ColumnaTablaReporte {
|
|
79
|
+
ocultar?: boolean;
|
|
80
|
+
transformar?: (row: any) => any;
|
|
81
|
+
totalizar?: boolean | {
|
|
82
|
+
campoTotal?: string;
|
|
83
|
+
transformar?(titulo?: any): any;
|
|
84
|
+
};
|
|
85
|
+
opcionesPdfmake?: {
|
|
86
|
+
transformarCuerpo?(row: any): any;
|
|
87
|
+
titulo?: object;
|
|
88
|
+
cuerpo?: object;
|
|
89
|
+
total?: TipoValorFuncion<any>;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
type TiposColumnasNuevo = 'text' | 'checkbox' | 'money' | 'icon' | 'icons' | 'progress' | 'expandir' | 'date' | 'number';
|
|
93
|
+
type PropiedadString<T> = Extract<keyof T, string>;
|
|
94
|
+
interface BaseColumna<T> {
|
|
95
|
+
tableDataIndex?: number;
|
|
96
|
+
label: '' | string;
|
|
97
|
+
labelLista?: string;
|
|
98
|
+
property: PropiedadString<T> | string;
|
|
99
|
+
/** esta propiedad solo se usa cuando se usará una funcion para modificarla */
|
|
100
|
+
propertyTemplate?: PropiedadString<T> | string;
|
|
101
|
+
type: TiposColumnas;
|
|
102
|
+
sort?: TipoValorFuncion<boolean>;
|
|
103
|
+
sortType?: 'number' | 'date';
|
|
104
|
+
reportType?: TiposColumnas;
|
|
105
|
+
visible?: TipoValorFuncion<boolean>;
|
|
106
|
+
cssClasses?: string[];
|
|
107
|
+
cssClassesTH?: string[];
|
|
108
|
+
textCss?: string | string[];
|
|
109
|
+
cssFooterClasses?: string[];
|
|
110
|
+
datosExtra?: any;
|
|
111
|
+
popover?: PopoverConfig<T>;
|
|
112
|
+
reporte?: ColumnaTablaReporte;
|
|
113
|
+
innerHTMLInvisible?: (row: any) => string;
|
|
114
|
+
/** @deprecated usar `visible` en su lugar: ejm: visible: ():boolean => {}, visible: boolean */
|
|
115
|
+
esVisible?: () => boolean;
|
|
116
|
+
/** @deprecated usar `noMostrarEnLista` en su lugar: ejm: noMostrarEnLista: ():boolean => {}, noMostrarEnLista: boolean */
|
|
117
|
+
noMostrar?: () => boolean;
|
|
118
|
+
noMostrarEnLista?: TipoValorFuncion<boolean>;
|
|
119
|
+
click?: (row: any) => void;
|
|
120
|
+
transformar?: (row: any) => any;
|
|
121
|
+
transformarFooter?: () => any;
|
|
122
|
+
/** @deprecated usar `reporte.opcionesPdfmake.transformarCuerpo` */
|
|
123
|
+
transformarDirecto?: never;
|
|
124
|
+
}
|
|
125
|
+
interface ColumnaTexto<T> extends BaseColumna<T> {
|
|
126
|
+
type: 'text';
|
|
127
|
+
innerHTML?: (row: any) => string;
|
|
128
|
+
zeroFill?: number;
|
|
129
|
+
text?: PropiedadesText;
|
|
130
|
+
}
|
|
131
|
+
interface ColumnaCheckbox<T> extends BaseColumna<T> {
|
|
132
|
+
type: 'checkbox';
|
|
133
|
+
chkField?: string | string[];
|
|
134
|
+
chkFieldPersistente?: boolean;
|
|
135
|
+
chkFieldSeparador?: string;
|
|
136
|
+
}
|
|
137
|
+
interface ColumnaMoney<T> extends BaseColumna<T> {
|
|
138
|
+
type: 'money';
|
|
139
|
+
simboloMoneda?: string;
|
|
140
|
+
format?: string;
|
|
141
|
+
}
|
|
142
|
+
interface ColumnaIcons<T> extends BaseColumna<T> {
|
|
143
|
+
type: 'icons';
|
|
144
|
+
iconsDef: ColumnaIconsDef;
|
|
145
|
+
}
|
|
146
|
+
interface ColumnaProgress<T> extends BaseColumna<T> {
|
|
147
|
+
type: 'progress';
|
|
148
|
+
progressbar: PropiedadesProgressBar;
|
|
149
|
+
}
|
|
150
|
+
interface ColumnaDate<T> extends BaseColumna<T> {
|
|
151
|
+
type: 'date';
|
|
152
|
+
format?: string;
|
|
153
|
+
}
|
|
154
|
+
interface ColumnaNumber<T> extends BaseColumna<T> {
|
|
155
|
+
type: 'number';
|
|
156
|
+
format?: string;
|
|
157
|
+
}
|
|
158
|
+
interface ColumnaExpandir<T> extends BaseColumna<T> {
|
|
159
|
+
type: 'expandir';
|
|
160
|
+
}
|
|
161
|
+
interface ColumnaYesNo<T> extends BaseColumna<T> {
|
|
162
|
+
type: 'yes_no';
|
|
163
|
+
yesIcon?: string;
|
|
164
|
+
yesTooltip?: string;
|
|
165
|
+
yesValue?: any;
|
|
166
|
+
noIcon?: string;
|
|
167
|
+
noTooltip?: string;
|
|
168
|
+
noValue?: any;
|
|
169
|
+
}
|
|
170
|
+
interface ColumnaEstiloEstablecido<T> extends BaseColumna<T> {
|
|
171
|
+
type: 'estiloEstablecido';
|
|
172
|
+
propertyTemplate: PropiedadString<T> | string;
|
|
173
|
+
}
|
|
174
|
+
interface ColumnaOtros<T> extends BaseColumna<T> {
|
|
175
|
+
type: 'image' | 'custom' | 'estado' | 'numeracion_automatica';
|
|
176
|
+
/** @deprecated */
|
|
177
|
+
readonly estados?: object[];
|
|
178
|
+
}
|
|
179
|
+
type ColumnaTabla<T> = ColumnaEstiloEstablecido<T> | ColumnaTexto<T> | ColumnaCheckbox<T> | ColumnaMoney<T> | ColumnaIcons<T> | ColumnaProgress<T> | ColumnaDate<T> | ColumnaNumber<T> | ColumnaExpandir<T> | ColumnaYesNo<T> | ColumnaOtros<T>;
|
|
180
|
+
interface PropiedadesText {
|
|
181
|
+
separador?: string;
|
|
182
|
+
cssContenedor?: string;
|
|
183
|
+
cssStyle?: object;
|
|
184
|
+
click?: (row: any) => void;
|
|
185
|
+
}
|
|
186
|
+
interface PropiedadesProgressBar {
|
|
187
|
+
formatoNumero?: string;
|
|
188
|
+
coloresValor?: EstilosBarra[];
|
|
189
|
+
textoCentrado?: boolean;
|
|
190
|
+
textoMostrar?: (row: any) => string;
|
|
191
|
+
porcentaje: (row: any) => number;
|
|
192
|
+
}
|
|
193
|
+
interface ColumnaIconsDef {
|
|
194
|
+
items: TipoValorFuncion<IconsIcon[]>;
|
|
195
|
+
soloIcono?: boolean;
|
|
196
|
+
iconSize?: string;
|
|
197
|
+
}
|
|
198
|
+
interface IconsIcon {
|
|
199
|
+
icon: string;
|
|
200
|
+
iconSize?: string;
|
|
201
|
+
toolTip?: string;
|
|
202
|
+
toolTipField?: string;
|
|
203
|
+
contentCss?: string;
|
|
204
|
+
cssClass?: string;
|
|
205
|
+
click?: (row: any) => void;
|
|
206
|
+
esVisible?: (row: any) => boolean;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type TiposOpciones = 'ver' | 'nuevo' | 'editar' | 'guardar' | 'eliminar' | 'seleccionar' | 'editar_item' | 'detalle' | 'ver_archivos' | 'eliminar_fila' | 'imprimir' | 'descargar' | 'exportar_pdf' | 'exportar_excel' | 'exportacion_avanzada' | 'ver_mapa' | string;
|
|
210
|
+
interface BotonMantenimiento {
|
|
211
|
+
tipo: TiposOpciones;
|
|
212
|
+
tipoTemplate?: TiposOpciones;
|
|
213
|
+
cDerechoCodigo?: string;
|
|
214
|
+
class?: string;
|
|
215
|
+
icono?: string;
|
|
216
|
+
label?: string;
|
|
217
|
+
soloIcono?: boolean;
|
|
218
|
+
sinCondicion?: boolean;
|
|
219
|
+
esIndependiente?: boolean;
|
|
220
|
+
ignorarDerecho?: boolean;
|
|
221
|
+
ignorarReadOnly?: boolean;
|
|
222
|
+
badge?: string;
|
|
223
|
+
tooltip?: string;
|
|
224
|
+
noContextual?: boolean;
|
|
225
|
+
subItems?: BotonMantenimiento[];
|
|
226
|
+
datosExtra?: any;
|
|
227
|
+
esVisible?(item: any, tablaRef?: TablaMantenimientoComponent<any>): boolean;
|
|
228
|
+
estaDeshabilitado?(item: any, tablaRef?: TablaMantenimientoComponent<any>): boolean;
|
|
229
|
+
}
|
|
230
|
+
interface BotonDialog {
|
|
231
|
+
tipo?: TiposOpciones;
|
|
232
|
+
class?: string;
|
|
233
|
+
icono?: string;
|
|
234
|
+
label?: string;
|
|
235
|
+
sinCondicion?: boolean;
|
|
236
|
+
}
|
|
237
|
+
interface SeccionesBotonesMantenimiento {
|
|
238
|
+
crud?: BotonMantenimiento[];
|
|
239
|
+
principal?: BotonMantenimiento[];
|
|
240
|
+
izquierda?: BotonMantenimiento[];
|
|
241
|
+
derecha?: BotonMantenimiento[];
|
|
242
|
+
secundario?: BotonMantenimiento[];
|
|
243
|
+
inferior?: BotonMantenimiento[];
|
|
244
|
+
[key: string]: BotonMantenimiento[] | undefined;
|
|
245
|
+
}
|
|
246
|
+
interface TablaMantenimientoSeccionBotones {
|
|
247
|
+
[key: string]: SeccionesBotonesMantenimiento;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
interface OpcionSeleccionada {
|
|
251
|
+
readonly tableDataIndex?: number;
|
|
252
|
+
item?: any;
|
|
253
|
+
itemSeleccionado?: any;
|
|
254
|
+
objSeleccionado?: any;
|
|
255
|
+
seccion: string;
|
|
256
|
+
tipo: TiposOpciones;
|
|
257
|
+
/** Solo emite cuando se tiene los checkbox para seleccion */
|
|
258
|
+
idsSeleccionados?: any;
|
|
259
|
+
itemsSeleccionados?: any[];
|
|
260
|
+
datosExtra?: any;
|
|
261
|
+
/** @deprecated usar '`datosExtra`' en su lugar */
|
|
262
|
+
formGroup?: any;
|
|
263
|
+
/** @deprecated usar '`datosExtra`' en su lugar */
|
|
264
|
+
dialog?: any;
|
|
265
|
+
}
|
|
266
|
+
interface DialogDatosRecibidos {
|
|
267
|
+
opcMenuSubmit?: OpcionSeleccionada;
|
|
268
|
+
[key: string]: any;
|
|
269
|
+
}
|
|
270
|
+
interface DataServidor {
|
|
271
|
+
[key: string]: BehaviorSubject<any>;
|
|
272
|
+
}
|
|
273
|
+
interface OpcMenuEvent extends OpcionSeleccionada {
|
|
274
|
+
datosGuardados?: any;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare interface IncluyeTablaMantenimiento {
|
|
278
|
+
dataServidorSuscripcion?: DataServidor;
|
|
279
|
+
botonesMenu?: TablaMantenimientoSeccionBotones;
|
|
280
|
+
columnasPrincipal: ColumnaTabla<any>[];
|
|
281
|
+
seleccionados: {
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
};
|
|
284
|
+
cargaInicial?<T>(): void | Promise<T>;
|
|
285
|
+
cargarLista?<T>(): void | Promise<T>;
|
|
286
|
+
opcMenu?(v: OpcionSeleccionada): void;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface Archivo {
|
|
290
|
+
id: number;
|
|
291
|
+
key?: string;
|
|
292
|
+
nombre: string;
|
|
293
|
+
extension: string;
|
|
294
|
+
dataIcono?: string;
|
|
295
|
+
url?: string;
|
|
296
|
+
path?: string;
|
|
297
|
+
type?: string;
|
|
298
|
+
size?: number;
|
|
299
|
+
loading?: boolean;
|
|
300
|
+
archivoFisico?: File;
|
|
301
|
+
progress?: any;
|
|
302
|
+
keyFirmaTramite?: string;
|
|
303
|
+
cArchivoNombre?: string;
|
|
304
|
+
cArchivoKey?: any;
|
|
305
|
+
iArchivoId?: any;
|
|
306
|
+
cArchivoRuta?: string;
|
|
307
|
+
cArchivoData?: string;
|
|
308
|
+
servFile?: Archivo;
|
|
309
|
+
cantidadFirmas?: {
|
|
310
|
+
total: number;
|
|
311
|
+
digitales: number;
|
|
312
|
+
electronicas: number;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare function capitalizarTexto(texto: string): string;
|
|
317
|
+
|
|
318
|
+
declare class TablaMantenimientoService {
|
|
319
|
+
get templateBotonesComunes(): BotonMantenimiento[];
|
|
320
|
+
get templateColumnasTabla(): ColumnaTabla<any>[];
|
|
321
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TablaMantenimientoService, never>;
|
|
322
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TablaMantenimientoService>;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface MantenimientoFilaExtraData {
|
|
326
|
+
template?: TemplateRef<any>;
|
|
327
|
+
esVisible?(item?: any): boolean;
|
|
328
|
+
}
|
|
329
|
+
type TiposControlBusqueda = 'query' | 'simple' | '';
|
|
330
|
+
declare class TablaMantenimientoComponent<T> implements OnInit, AfterContentInit, OnChanges {
|
|
331
|
+
private fb;
|
|
332
|
+
overlay: Overlay;
|
|
333
|
+
viewContainerRef: ViewContainerRef;
|
|
334
|
+
protected tablaMantenimientoService: TablaMantenimientoService;
|
|
335
|
+
private cdRef;
|
|
336
|
+
static nextId: number;
|
|
337
|
+
readonly id: string;
|
|
338
|
+
readonly router: Router;
|
|
339
|
+
readonly route: ActivatedRoute;
|
|
340
|
+
private readonly destroyRef;
|
|
341
|
+
get templateBotonesComunes(): BotonMantenimiento[];
|
|
342
|
+
get templateColumnasTabla(): ColumnaTabla<any>[];
|
|
343
|
+
dataSuscription: Observable<any> | undefined;
|
|
344
|
+
objThis: any;
|
|
345
|
+
nombreColeccion: any;
|
|
346
|
+
busquedaValor: _angular_core.InputSignal<string>;
|
|
347
|
+
busquedaPlaceholder: _angular_core.InputSignal<string>;
|
|
348
|
+
filtroCampos: boolean;
|
|
349
|
+
paginador: boolean;
|
|
350
|
+
esTabla: boolean;
|
|
351
|
+
readOnly: boolean | 'permitirSeleccion';
|
|
352
|
+
filaExtraHeader: MantenimientoFilaExtraData | any;
|
|
353
|
+
filaFooter: boolean;
|
|
354
|
+
botonesCRUD: string;
|
|
355
|
+
dblclickItem: EventEmitter<any>;
|
|
356
|
+
objBotonesCRUD: BotonMantenimiento[];
|
|
357
|
+
classSeleccionado: string[];
|
|
358
|
+
classAnulado: string[];
|
|
359
|
+
campoAnulado: any;
|
|
360
|
+
campoAnuladoMensaje: any;
|
|
361
|
+
opcionSelecionada: EventEmitter<any>;
|
|
362
|
+
opcBusqueda: EventEmitter<any>;
|
|
363
|
+
accionRecargar: EventEmitter<any>;
|
|
364
|
+
set selectionModel(val: SelectionModel<any>);
|
|
365
|
+
selectionModelChange: EventEmitter<SelectionModel<any>>;
|
|
366
|
+
isRecargarUsed: boolean;
|
|
367
|
+
filaExtraTemplate: TemplateRef<any> | undefined;
|
|
368
|
+
paginator: MatPaginator;
|
|
369
|
+
sort: MatSort;
|
|
370
|
+
exportarExcel: boolean;
|
|
371
|
+
busquedaCompacta: _angular_core.InputSignal<boolean>;
|
|
372
|
+
alturaFull: _angular_core.InputSignal<boolean>;
|
|
373
|
+
pageSize: number;
|
|
374
|
+
pageSizeOptions: number[];
|
|
375
|
+
dataSourceChange: EventEmitter<any>;
|
|
376
|
+
resultados: EventEmitter<any>;
|
|
377
|
+
dataSource: MatTableDataSource<T, MatPaginator>;
|
|
378
|
+
table: MatTable<T>;
|
|
379
|
+
columnDefs: QueryList<MatColumnDef>;
|
|
380
|
+
componenteCargadoTotalmente: boolean;
|
|
381
|
+
paginacion: {
|
|
382
|
+
pageSize: number;
|
|
383
|
+
pageSizeOptions: number[];
|
|
384
|
+
pageCurrent: any;
|
|
385
|
+
pageIndex: number;
|
|
386
|
+
pageLength: null;
|
|
387
|
+
};
|
|
388
|
+
ignorarDerechos: boolean;
|
|
389
|
+
derechosActuales: any;
|
|
390
|
+
rows: QueryList<ElementRef<HTMLTableRowElement>>;
|
|
391
|
+
rowFooter: ElementRef<HTMLTableRowElement>;
|
|
392
|
+
mouseEvent$: Subscription | undefined;
|
|
393
|
+
overlayRef: OverlayRef | undefined;
|
|
394
|
+
userMenu: TemplateRef<any>;
|
|
395
|
+
compactSearchMenuTrigger: MatMenuTrigger;
|
|
396
|
+
opcFiltroActual: {};
|
|
397
|
+
protected readonly capitalizarTexto: typeof capitalizarTexto;
|
|
398
|
+
_seleccionado: any;
|
|
399
|
+
cCampoBusqueda: FormControl<string | null>;
|
|
400
|
+
chkLista: DataModel;
|
|
401
|
+
bDireccionOrden: _angular_core.WritableSignal<number>;
|
|
402
|
+
mostrarBotonOrden: _angular_core.InputSignal<boolean>;
|
|
403
|
+
constructor(fb: FormBuilder, overlay: Overlay, viewContainerRef: ViewContainerRef, tablaMantenimientoService: TablaMantenimientoService, cdRef: ChangeDetectorRef);
|
|
404
|
+
busquedaTipo: _angular_core.InputSignalWithTransform<TiposControlBusqueda, string>;
|
|
405
|
+
private _leyenda;
|
|
406
|
+
get leyenda(): {
|
|
407
|
+
text: string;
|
|
408
|
+
class?: string;
|
|
409
|
+
} | undefined;
|
|
410
|
+
set leyenda(val: {
|
|
411
|
+
text: string;
|
|
412
|
+
class?: string;
|
|
413
|
+
} | string);
|
|
414
|
+
private _idTabla;
|
|
415
|
+
get idTabla(): string[];
|
|
416
|
+
set idTabla(val: string[] | string);
|
|
417
|
+
private _columnasTabla;
|
|
418
|
+
get columnasTabla(): ColumnaTabla<any>[];
|
|
419
|
+
set columnasTabla(val: ColumnaTabla<any>[]);
|
|
420
|
+
private _botonesMenu;
|
|
421
|
+
get botonesMenu(): SeccionesBotonesMantenimiento;
|
|
422
|
+
get botonesMenuFinal(): SeccionesBotonesMantenimiento;
|
|
423
|
+
set botonesMenu(val: SeccionesBotonesMantenimiento);
|
|
424
|
+
get listaMenuCompleto(): BotonMantenimiento[];
|
|
425
|
+
get objVisibleColumns(): ColumnaTabla<any>[];
|
|
426
|
+
get visibleColumns(): string[];
|
|
427
|
+
get tieneCheckbox(): false | _jvsoft_components_tabla_mantenimiento.ColumnaCheckbox<any>;
|
|
428
|
+
get buscarItemSeleccionado(): any;
|
|
429
|
+
get objSeleccionado(): any;
|
|
430
|
+
set objSeleccionado(val: any);
|
|
431
|
+
get idsSeleccionado(): string;
|
|
432
|
+
get itemsSeleccionados(): T[];
|
|
433
|
+
idTablaValor(data: any): string;
|
|
434
|
+
condicionesClaseFila: (item: any) => any[];
|
|
435
|
+
rowTooltip: (item: any) => string;
|
|
436
|
+
soloIconos?: TipoValorFuncion<boolean>;
|
|
437
|
+
ngOnInit(): void;
|
|
438
|
+
ngAfterContentInit(): void;
|
|
439
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
440
|
+
trackByFn: (index: number, item: any) => string;
|
|
441
|
+
getDeepestRoute(route: ActivatedRoute): ActivatedRoute;
|
|
442
|
+
agregarBotonesExportacion(): void;
|
|
443
|
+
actualizarCrud(): void;
|
|
444
|
+
classFila(item: any): any[];
|
|
445
|
+
procesarRowTooltip(item: any): string;
|
|
446
|
+
subItemsActivos(btn: any, item: any): boolean;
|
|
447
|
+
get noData(): any;
|
|
448
|
+
onFilterChange(value: string): void;
|
|
449
|
+
toggleColumnVisibility(column: any, event: any): void;
|
|
450
|
+
cargarData(retorno?: boolean): any;
|
|
451
|
+
toggleDireccionOrden(): void;
|
|
452
|
+
setData(data: any): void;
|
|
453
|
+
botonDisabled(btn: BotonMantenimiento, item: any): boolean | undefined;
|
|
454
|
+
propiedadSeleccion(item: any): string;
|
|
455
|
+
esSeleccionActual(item: any): boolean;
|
|
456
|
+
seleccionarItem(item?: any, forzado?: boolean): void;
|
|
457
|
+
opcMenu(item: any, objMenu: OpcionSeleccionada, modal?: null, retorno?: boolean): 1 | OpcionSeleccionada;
|
|
458
|
+
emitirResultados(evento?: {}): void;
|
|
459
|
+
abrirMenuContextual({ x, y }: MouseEvent, user: any): void;
|
|
460
|
+
cerrarMenuContextual(): void;
|
|
461
|
+
ejecutarBusquedaCompacta(): void;
|
|
462
|
+
emitirAccionRecargar(): void;
|
|
463
|
+
protected readonly tipoValorFuncion: typeof tipoValorFuncion;
|
|
464
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TablaMantenimientoComponent<any>, never>;
|
|
465
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TablaMantenimientoComponent<any>, "jvs-tabla-mantenimiento", never, { "dataSuscription": { "alias": "dataSuscription"; "required": false; }; "objThis": { "alias": "objThis"; "required": true; }; "nombreColeccion": { "alias": "nombreColeccion"; "required": true; }; "busquedaValor": { "alias": "ctrlBusquedaValue"; "required": false; "isSignal": true; }; "busquedaPlaceholder": { "alias": "ctrlBusquedaPlaceholder"; "required": false; "isSignal": true; }; "filtroCampos": { "alias": "filtroCampos"; "required": false; }; "paginador": { "alias": "paginador"; "required": false; }; "esTabla": { "alias": "esTabla"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "filaExtraHeader": { "alias": "filaExtraHeader"; "required": false; }; "filaFooter": { "alias": "filaFooter"; "required": false; }; "botonesCRUD": { "alias": "botonesCRUD"; "required": false; }; "objBotonesCRUD": { "alias": "objBotonesCRUD"; "required": false; }; "classSeleccionado": { "alias": "classSeleccionado"; "required": false; }; "classAnulado": { "alias": "classAnulado"; "required": false; }; "campoAnulado": { "alias": "campoAnulado"; "required": false; }; "campoAnuladoMensaje": { "alias": "campoAnuladoMensaje"; "required": false; }; "selectionModel": { "alias": "selectionModel"; "required": false; }; "filaExtraTemplate": { "alias": "filaExtraTemplate"; "required": false; }; "exportarExcel": { "alias": "exportarExcel"; "required": false; }; "busquedaCompacta": { "alias": "busquedaCompacta"; "required": false; "isSignal": true; }; "alturaFull": { "alias": "alturaFull"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "derechosActuales": { "alias": "derechosActuales"; "required": false; }; "mostrarBotonOrden": { "alias": "mostrarBotonOrden"; "required": false; "isSignal": true; }; "busquedaTipo": { "alias": "ctrlBusqueda"; "required": false; "isSignal": true; }; "leyenda": { "alias": "leyenda"; "required": false; }; "idTabla": { "alias": "idTabla"; "required": true; }; "columnasTabla": { "alias": "columnasTabla"; "required": false; }; "botonesMenu": { "alias": "botonesMenu"; "required": false; }; "condicionesClaseFila": { "alias": "condicionesClaseFila"; "required": false; }; "rowTooltip": { "alias": "rowTooltip"; "required": false; }; "soloIconos": { "alias": "soloIconos"; "required": false; }; }, { "dblclickItem": "dblclickItem"; "opcionSelecionada": "opcionSelecionada"; "opcBusqueda": "opcBusqueda"; "accionRecargar": "accionRecargar"; "selectionModelChange": "selectionModelChange"; "dataSourceChange": "dataSourceChange"; "resultados": "resultados"; }, ["columnDefs"], ["[filtro]", "[objetosMenuPegado]", "[objetosMenu]", "[botonesFiltro]", "[botonesConfig]", "[cuerpo]", "[tableDefinitions]", "[appendTable]"], true, never>;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export { ProgressBarComponent, TablaMantenimientoComponent, TablaMantenimientoService };
|
|
469
|
+
export type { Archivo, BotonDialog, BotonMantenimiento, ColumnaCheckbox, ColumnaDate, ColumnaEstiloEstablecido, ColumnaExpandir, ColumnaIcons, ColumnaIconsDef, ColumnaMoney, ColumnaNumber, ColumnaOtros, ColumnaProgress, ColumnaTabla, ColumnaTablaReporte, ColumnaTexto, ColumnaYesNo, DataServidor, DialogDatosRecibidos, EstilosBarra, IconsIcon, IncluyeTablaMantenimiento, MantenimientoFilaExtraData, OpcMenuEvent, OpcionSeleccionada, PopoverConfig, PropiedadesProgressBar, PropiedadesText, SeccionesBotonesMantenimiento, TablaMantenimientoSeccionBotones, TiposColumnasNuevo, TiposOpciones };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from '@jvsoft/components/dialog-flotante';
|
|
2
|
+
export * from '@jvsoft/components/tabla-mantenimiento';
|
|
3
|
+
export * from '@jvsoft/components/luces-navidad';
|
|
4
|
+
export * from '@jvsoft/components/mat-suffix-search-button';
|
|
5
|
+
export * from '@jvsoft/components/menu';
|
|
6
|
+
export * from '@jvsoft/components/lista-arbol';
|
|
7
|
+
export * from '@jvsoft/components/filtro-busqueda';
|
|
8
|
+
export * from '@jvsoft/components/alerta';
|
|
9
|
+
export * from '@jvsoft/components/foto-persona';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface AlertaClases {
|
|
3
|
-
contenedor?: string;
|
|
4
|
-
icono?: string;
|
|
5
|
-
titulo?: string;
|
|
6
|
-
mensaje?: string;
|
|
7
|
-
acciones?: string;
|
|
8
|
-
}
|
|
9
|
-
export type AlertaTipo = 'info' | 'error' | 'success' | 'warning' | 'custom';
|
|
10
|
-
export declare class AlertaComponent {
|
|
11
|
-
tipo: import("@angular/core").InputSignal<AlertaTipo>;
|
|
12
|
-
titulo: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
-
mensaje: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
-
iconoManual: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
-
clasesManual: import("@angular/core").InputSignal<AlertaClases>;
|
|
16
|
-
botonCerrar: import("@angular/core").InputSignal<boolean>;
|
|
17
|
-
botonAcepto: import("@angular/core").InputSignal<boolean>;
|
|
18
|
-
textoAcepto: import("@angular/core").InputSignal<string>;
|
|
19
|
-
alCerrar: import("@angular/core").OutputEmitterRef<void>;
|
|
20
|
-
alAceptar: import("@angular/core").OutputEmitterRef<void>;
|
|
21
|
-
private defaults;
|
|
22
|
-
clasesContenedor: import("@angular/core").Signal<string>;
|
|
23
|
-
iconoFinal: import("@angular/core").Signal<string>;
|
|
24
|
-
clasesIcono: import("@angular/core").Signal<string>;
|
|
25
|
-
clasesTitulo: import("@angular/core").Signal<string>;
|
|
26
|
-
clasesMensaje: import("@angular/core").Signal<string>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertaComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertaComponent, "jvs-alerta", never, { "tipo": { "alias": "tipo"; "required": false; "isSignal": true; }; "titulo": { "alias": "titulo"; "required": false; "isSignal": true; }; "mensaje": { "alias": "mensaje"; "required": false; "isSignal": true; }; "iconoManual": { "alias": "icono"; "required": false; "isSignal": true; }; "clasesManual": { "alias": "clases"; "required": false; "isSignal": true; }; "botonCerrar": { "alias": "botonCerrar"; "required": false; "isSignal": true; }; "botonAcepto": { "alias": "botonAcepto"; "required": false; "isSignal": true; }; "textoAcepto": { "alias": "textoAcepto"; "required": false; "isSignal": true; }; }, { "alCerrar": "alCerrar"; "alAceptar": "alAceptar"; }, never, ["*"], true, never>;
|
|
29
|
-
}
|
package/alerta/index.d.ts
DELETED
package/alerta/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './alerta.component';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { BotonDialog } from './dialog-flotante.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DialogFlotanteComponent {
|
|
5
|
-
cssClases: import("@angular/core").InputSignal<Record<string, string>>;
|
|
6
|
-
sinTitulo: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
-
sinBarraDeAccion: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
btnCerrarBarra: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
-
iconoTitulo: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
-
matDialogRefActual: import("@angular/core").InputSignal<MatDialogRef<any, any> | undefined>;
|
|
11
|
-
btnGuardarInput: import("@angular/core").InputSignal<string | boolean | BotonDialog | undefined>;
|
|
12
|
-
btnCerrarInput: import("@angular/core").InputSignal<string | boolean | BotonDialog | undefined>;
|
|
13
|
-
btnGuardarClick: import("@angular/core").OutputEmitterRef<any>;
|
|
14
|
-
btnCerrarClick: import("@angular/core").OutputEmitterRef<any>;
|
|
15
|
-
private readonly defaultBtnCerrar;
|
|
16
|
-
private readonly defaultBtnGuardar;
|
|
17
|
-
btnCerrar: import("@angular/core").Signal<BotonDialog | undefined>;
|
|
18
|
-
btnGuardar: import("@angular/core").Signal<BotonDialog | undefined>;
|
|
19
|
-
guardarDialogo(): void;
|
|
20
|
-
cerrarDialogo(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogFlotanteComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogFlotanteComponent, "[jvsDialogFlotante]", never, { "cssClases": { "alias": "cssClases"; "required": false; "isSignal": true; }; "sinTitulo": { "alias": "sinTitulo"; "required": false; "isSignal": true; }; "sinBarraDeAccion": { "alias": "sinBarraDeAccion"; "required": false; "isSignal": true; }; "btnCerrarBarra": { "alias": "btnCerrarBarra"; "required": false; "isSignal": true; }; "iconoTitulo": { "alias": "iconoTitulo"; "required": false; "isSignal": true; }; "matDialogRefActual": { "alias": "matDialogRefActual"; "required": false; "isSignal": true; }; "btnGuardarInput": { "alias": "btnGuardar"; "required": false; "isSignal": true; }; "btnCerrarInput": { "alias": "btnCerrar"; "required": false; "isSignal": true; }; }, { "btnGuardarClick": "btnGuardarClick"; "btnCerrarClick": "btnCerrarClick"; }, never, ["[tituloImagen]", "[titulo]", "[selectTitulo]", "[cuerpo]", "[pieIzquierda]", "[pieCentro]", "[pieDerecha]"], true, never>;
|
|
23
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface DialogFlotanteInterface {
|
|
2
|
-
}
|
|
3
|
-
type TiposOpciones = 'ver' | 'nuevo' | 'editar' | 'guardar' | 'eliminar' | 'seleccionar' | 'editar_item' | 'detalle' | 'ver_archivos' | 'eliminar_fila' | 'imprimir' | 'descargar' | 'exportar_pdf' | 'exportar_excel' | string;
|
|
4
|
-
export interface BotonDialog {
|
|
5
|
-
tipo?: TiposOpciones;
|
|
6
|
-
class?: string;
|
|
7
|
-
icono?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
sinCondicion?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export {};
|