@jvsoft/components 0.0.2 → 0.0.4
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/dialog-flotante/dialog-flotante.component.scss +36 -0
- package/fesm2022/jvsoft-components-dialog-flotante.mjs +21 -10
- package/fesm2022/jvsoft-components-dialog-flotante.mjs.map +1 -1
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs +5 -3
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs.map +1 -1
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs +689 -408
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs.map +1 -1
- package/fesm2022/jvsoft-components.mjs +704 -479
- package/fesm2022/jvsoft-components.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/luces-navidad/luces-navidad.component.scss +125 -0
- package/package.json +13 -14
- package/src/styles/base-jvsoft-components.css +9 -0
- package/src/styles/base.scss +9 -0
- package/tabla-mantenimiento/components/progress-bar/progress-bar.component.d.ts +3 -3
- package/tabla-mantenimiento/interfaces/archivo.d.ts +26 -0
- package/tabla-mantenimiento/interfaces/global/columnas-tabla.d.ts +97 -73
- package/tabla-mantenimiento/interfaces/implements/incluye-tabla-mantenimiento.d.ts +12 -0
- package/tabla-mantenimiento/interfaces/implements/index.d.ts +1 -0
- package/tabla-mantenimiento/interfaces/index.d.ts +3 -0
- package/tabla-mantenimiento/public-api.d.ts +1 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-date/column-type-date.component.d.ts +8 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-icons/column-type-icons.component.d.ts +9 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-money/column-type-money.component.d.ts +9 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-number/column-type-number.component.d.ts +8 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-progressbar/column-type-progressbar.component.d.ts +8 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-sino/column-type-sino.component.d.ts +9 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-text/column-type-text.component.d.ts +8 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.d.ts +18 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.module.d.ts +23 -0
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.d.ts +5 -10
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.scss +0 -0
- package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.scss +0 -0
- package/tabla-mantenimiento/tabla-mantenimiento.component.d.ts +14 -12
- package/tabla-mantenimiento/tabla-mantenimiento.component.scss +219 -0
- package/fesm2022/jvsoft-components-progress-spinner.mjs +0 -78
- package/fesm2022/jvsoft-components-progress-spinner.mjs.map +0 -1
- package/progress-spinner/index.d.ts +0 -5
- package/progress-spinner/progress-spinner.component.d.ts +0 -9
- package/progress-spinner/progress-spinner.service.d.ts +0 -25
- package/progress-spinner/public-api.d.ts +0 -2
- /package/src/{styles.scss → styles/tailwind.scss} +0 -0
package/index.d.ts
CHANGED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
|
|
2
|
+
$globe-width: 6px;
|
|
3
|
+
$globe-height: 14px;
|
|
4
|
+
$globe-spacing: 20px;
|
|
5
|
+
$globe-spread: 1px;
|
|
6
|
+
$light-off-opacity: 0.4;
|
|
7
|
+
|
|
8
|
+
.lightrope {
|
|
9
|
+
left: 0;
|
|
10
|
+
text-align: center;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
position: absolute;
|
|
14
|
+
z-index: 1000;
|
|
15
|
+
margin: -8px 0 0 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
width: 100%;
|
|
19
|
+
li {
|
|
20
|
+
position: relative;
|
|
21
|
+
animation-fill-mode: both;
|
|
22
|
+
animation-iteration-count:infinite;
|
|
23
|
+
list-style: none;
|
|
24
|
+
//margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
width: $globe-width;
|
|
27
|
+
height: $globe-height;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
margin: calc($globe-spacing / 2);
|
|
30
|
+
display: inline-block;
|
|
31
|
+
background: rgba(0,247,165,1);
|
|
32
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,247,165,1);
|
|
33
|
+
animation-name: flash-1;
|
|
34
|
+
animation-duration: 2s;
|
|
35
|
+
&:nth-child(2n+1) {
|
|
36
|
+
background: rgba(0,255,255,1);
|
|
37
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,255,255,0.5);
|
|
38
|
+
animation-name: flash-2;
|
|
39
|
+
animation-duration: 0.4s;
|
|
40
|
+
}
|
|
41
|
+
&:nth-child(4n+2) {
|
|
42
|
+
background: rgba(247,0,148,1);
|
|
43
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(247,0,148,1);
|
|
44
|
+
animation-name: flash-3;
|
|
45
|
+
animation-duration: 1.1s;
|
|
46
|
+
}
|
|
47
|
+
/* &:nth-child(4n+2) {
|
|
48
|
+
background: rgb(35, 71, 2);
|
|
49
|
+
box-shadow: 0px $globe-height/6 $globe-width*2 $globe-spread rgba(35,71,2,1);
|
|
50
|
+
animation-name: flash-3;
|
|
51
|
+
animation-duration: 1.1s;
|
|
52
|
+
}*/
|
|
53
|
+
&:nth-child(odd) {
|
|
54
|
+
animation-duration: 1.8s;
|
|
55
|
+
}
|
|
56
|
+
&:nth-child(3n+1) {
|
|
57
|
+
animation-duration: 1.4s;
|
|
58
|
+
}
|
|
59
|
+
&:before {
|
|
60
|
+
content: "";
|
|
61
|
+
position: absolute;
|
|
62
|
+
background: #222;
|
|
63
|
+
width: ($globe-width - 2);
|
|
64
|
+
height: calc($globe-height/3);
|
|
65
|
+
border-radius: 3px;
|
|
66
|
+
top: (0 - calc($globe-height/6));
|
|
67
|
+
left: 1px;
|
|
68
|
+
}
|
|
69
|
+
&:after {
|
|
70
|
+
content: "";
|
|
71
|
+
top: (0 - calc($globe-height/2));
|
|
72
|
+
left: $globe-width - 3;
|
|
73
|
+
position: absolute;
|
|
74
|
+
width: $globe-spacing + 12;
|
|
75
|
+
height: calc($globe-height/3 * 2);
|
|
76
|
+
border-bottom: solid #222 2px;
|
|
77
|
+
border-radius: 50%;
|
|
78
|
+
}
|
|
79
|
+
&:last-child:after {
|
|
80
|
+
content: none;
|
|
81
|
+
}
|
|
82
|
+
&:first-child {
|
|
83
|
+
margin-left: -$globe-spacing;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@keyframes flash-1 {
|
|
88
|
+
0%, 100% { background: rgba(0,247,165,1);
|
|
89
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,247,165,1);}
|
|
90
|
+
50% { background: rgba(0,247,165,$light-off-opacity);
|
|
91
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,247,165,0.2);}
|
|
92
|
+
}
|
|
93
|
+
@keyframes flash-2 {
|
|
94
|
+
0%, 100% { background: rgba(0,255,255,1);
|
|
95
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,255,255,1);}
|
|
96
|
+
50% { background: rgba(0,255,255,$light-off-opacity);
|
|
97
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(0,255,255,0.2);}
|
|
98
|
+
}
|
|
99
|
+
@keyframes flash-3 {
|
|
100
|
+
0%, 100% { background: rgba(247,0,148,1);
|
|
101
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(247,0,148,1);}
|
|
102
|
+
50% { background: rgba(247,0,148,$light-off-opacity);
|
|
103
|
+
box-shadow: 0px calc($globe-height/6) calc($globe-width*2) $globe-spread rgba(247,0,148,0.2);}
|
|
104
|
+
}
|
|
105
|
+
.christmas-tree {
|
|
106
|
+
position: fixed;
|
|
107
|
+
bottom: 20px;
|
|
108
|
+
left: 20px;
|
|
109
|
+
width: 80px;
|
|
110
|
+
height: 120px;
|
|
111
|
+
background: url('./christmas-tree.png') no-repeat center center;
|
|
112
|
+
background-size: contain;
|
|
113
|
+
opacity: 0.8;
|
|
114
|
+
z-index: 1000;
|
|
115
|
+
animation: glow 3s infinite ease-in-out;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes glow {
|
|
119
|
+
0%, 100% {
|
|
120
|
+
opacity: 0.8;
|
|
121
|
+
}
|
|
122
|
+
50% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jvsoft/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "
|
|
6
|
-
"@angular/core": "
|
|
7
|
-
"@angular/
|
|
5
|
+
"@angular/common": ">=16.0.0",
|
|
6
|
+
"@angular/core": ">=16.0.0",
|
|
7
|
+
"@angular/forms": ">=16.0.0",
|
|
8
|
+
"@angular/material": ">=16.0.0",
|
|
8
9
|
"@ngneat/until-destroy": "^10.0.0",
|
|
9
10
|
"moment": "^2.30.1",
|
|
10
11
|
"shorthash2": "^1.0.5",
|
|
@@ -15,9 +16,9 @@
|
|
|
15
16
|
"tslib": "^2.3.0"
|
|
16
17
|
},
|
|
17
18
|
"sideEffects": false,
|
|
18
|
-
"module": "fesm2022/jvsoft-components.mjs",
|
|
19
|
-
"typings": "index.d.ts",
|
|
20
19
|
"exports": {
|
|
20
|
+
"./base.scss": "./src/styles/base.scss",
|
|
21
|
+
"./styles.css": "./src/styles/base-jvsoft-components.css",
|
|
21
22
|
"./package.json": {
|
|
22
23
|
"default": "./package.json"
|
|
23
24
|
},
|
|
@@ -29,17 +30,13 @@
|
|
|
29
30
|
"types": "./dialog-flotante/index.d.ts",
|
|
30
31
|
"default": "./fesm2022/jvsoft-components-dialog-flotante.mjs"
|
|
31
32
|
},
|
|
32
|
-
"./luces-navidad": {
|
|
33
|
-
"types": "./luces-navidad/index.d.ts",
|
|
34
|
-
"default": "./fesm2022/jvsoft-components-luces-navidad.mjs"
|
|
35
|
-
},
|
|
36
33
|
"./mat-suffix-search-button": {
|
|
37
34
|
"types": "./mat-suffix-search-button/index.d.ts",
|
|
38
35
|
"default": "./fesm2022/jvsoft-components-mat-suffix-search-button.mjs"
|
|
39
36
|
},
|
|
40
|
-
"./
|
|
41
|
-
"types": "./
|
|
42
|
-
"default": "./fesm2022/jvsoft-components-
|
|
37
|
+
"./luces-navidad": {
|
|
38
|
+
"types": "./luces-navidad/index.d.ts",
|
|
39
|
+
"default": "./fesm2022/jvsoft-components-luces-navidad.mjs"
|
|
43
40
|
},
|
|
44
41
|
"./tabla-mantenimiento": {
|
|
45
42
|
"types": "./tabla-mantenimiento/index.d.ts",
|
|
@@ -49,5 +46,7 @@
|
|
|
49
46
|
"types": "./tabla-mantenimiento/components/progress-bar/index.d.ts",
|
|
50
47
|
"default": "./fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs"
|
|
51
48
|
}
|
|
52
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"module": "fesm2022/jvsoft-components.mjs",
|
|
51
|
+
"typings": "index.d.ts"
|
|
53
52
|
}
|
|
@@ -14,10 +14,10 @@ export declare class ProgressBarComponent implements OnInit {
|
|
|
14
14
|
set textoMostrar(val: string);
|
|
15
15
|
private _formatoNumero;
|
|
16
16
|
get formatoNumero(): string;
|
|
17
|
-
set formatoNumero(val: string);
|
|
17
|
+
set formatoNumero(val: string | undefined);
|
|
18
18
|
private _coloresValor;
|
|
19
19
|
get coloresValor(): EstilosBarra[];
|
|
20
|
-
set coloresValor(val: EstilosBarra[]);
|
|
20
|
+
set coloresValor(val: EstilosBarra[] | undefined);
|
|
21
21
|
constructor();
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
colorEstilo(): {
|
|
@@ -26,5 +26,5 @@ export declare class ProgressBarComponent implements OnInit {
|
|
|
26
26
|
};
|
|
27
27
|
ordenarPorPropiedad(objData: any[], propiedad: string, numeros?: boolean): any[];
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "
|
|
29
|
+
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
30
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface Archivo {
|
|
2
|
+
id: number;
|
|
3
|
+
key?: string;
|
|
4
|
+
nombre: string;
|
|
5
|
+
extension: string;
|
|
6
|
+
dataIcono?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
size?: number;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
archivoFisico?: File;
|
|
13
|
+
progress?: any;
|
|
14
|
+
keyFirmaTramite?: string;
|
|
15
|
+
cArchivoNombre?: string;
|
|
16
|
+
cArchivoKey?: any;
|
|
17
|
+
iArchivoId?: any;
|
|
18
|
+
cArchivoRuta?: string;
|
|
19
|
+
cArchivoData?: string;
|
|
20
|
+
servFile?: Archivo;
|
|
21
|
+
cantidadFirmas?: {
|
|
22
|
+
total: number;
|
|
23
|
+
digitales: number;
|
|
24
|
+
electronicas: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -1,96 +1,120 @@
|
|
|
1
1
|
import { TipoValorFuncion } from './otros';
|
|
2
2
|
import { EstilosBarra } from '../../components/progress-bar';
|
|
3
|
-
type TiposColumnas = '
|
|
4
|
-
export interface
|
|
3
|
+
type TiposColumnas = 'yes_no' | 'estiloEstablecido' | 'text' | 'number' | 'money' | 'date' | 'image' | 'estado' | 'badge' | 'progress' | 'checkbox' | 'icon' | 'icons' | 'icon_checkbox' | 'custom' | 'expandir' | 'numeracion_automatica';
|
|
4
|
+
export interface ColumnaTablaReporte {
|
|
5
|
+
ocultar?: boolean;
|
|
6
|
+
transformar?: (row: any) => any;
|
|
7
|
+
totalizar?: boolean | {
|
|
8
|
+
campoTotal?: string;
|
|
9
|
+
transformar?(titulo?: any): any;
|
|
10
|
+
};
|
|
11
|
+
opcionesPdfmake?: {
|
|
12
|
+
titulo?: object;
|
|
13
|
+
cuerpo?: object;
|
|
14
|
+
total?: TipoValorFuncion<any>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface IconsIcon {
|
|
18
|
+
icon: string;
|
|
19
|
+
iconSize?: string;
|
|
20
|
+
toolTip?: string;
|
|
21
|
+
toolTipField?: string;
|
|
22
|
+
contentCss?: string;
|
|
23
|
+
cssClass?: string;
|
|
24
|
+
click?(row: any): void;
|
|
25
|
+
esVisible?(row: any): boolean;
|
|
26
|
+
}
|
|
27
|
+
export type TiposColumnasNuevo = 'text' | 'checkbox' | 'money' | 'icon' | 'icons' | 'progress' | 'expandir' | 'date' | 'number';
|
|
28
|
+
type PropiedadString<T> = Extract<keyof T, string>;
|
|
29
|
+
interface BaseColumna<T> {
|
|
5
30
|
label: string;
|
|
6
31
|
labelLista?: string;
|
|
7
|
-
property
|
|
32
|
+
property: PropiedadString<T> | string;
|
|
8
33
|
/** esta propiedad solo se usa cuando se usará una funcion para modificarla */
|
|
9
|
-
propertyTemplate?:
|
|
34
|
+
propertyTemplate?: PropiedadString<T> | string;
|
|
10
35
|
type: TiposColumnas;
|
|
36
|
+
sort?: TipoValorFuncion<boolean>;
|
|
11
37
|
sortType?: 'number' | 'date';
|
|
12
38
|
reportType?: TiposColumnas;
|
|
13
|
-
visible?: boolean
|
|
14
|
-
/** esta propiedad NO TIENE USO REAL */
|
|
15
|
-
visibleAlias?: boolean;
|
|
39
|
+
visible?: TipoValorFuncion<boolean>;
|
|
16
40
|
cssClasses?: string[];
|
|
17
41
|
cssClassesTH?: string[];
|
|
18
42
|
textCss?: string | string[];
|
|
19
|
-
cssFooterClasses?: string
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
43
|
+
cssFooterClasses?: string[];
|
|
44
|
+
datosExtra?: any;
|
|
45
|
+
reporte?: ColumnaTablaReporte;
|
|
46
|
+
innerHTMLInvisible?: (row: any) => string;
|
|
47
|
+
esVisible?: () => boolean;
|
|
48
|
+
noMostrar?: () => boolean;
|
|
49
|
+
click?: (row: any) => void;
|
|
50
|
+
transformar?: (row: any) => any;
|
|
51
|
+
transformarFooter?: () => any;
|
|
52
|
+
}
|
|
53
|
+
export interface ColumnaTexto<T> extends BaseColumna<T> {
|
|
54
|
+
type: 'text';
|
|
55
|
+
innerHTML?: (row: any) => string;
|
|
56
|
+
zeroFill?: number;
|
|
57
|
+
text?: PropiedadesText;
|
|
58
|
+
}
|
|
59
|
+
export interface ColumnaCheckbox<T> extends BaseColumna<T> {
|
|
60
|
+
type: 'checkbox';
|
|
24
61
|
chkField?: string | string[];
|
|
25
62
|
chkFieldPersistente?: boolean;
|
|
26
63
|
chkFieldSeparador?: string;
|
|
27
|
-
simboloMoneda?: any;
|
|
28
|
-
zeroFill?: null | number;
|
|
29
|
-
sticky?: boolean;
|
|
30
|
-
sort?: boolean;
|
|
31
|
-
/** @deprecated usar '`reporte`', '`ocultar`' en su lugar */
|
|
32
|
-
ocultarReporte?: boolean;
|
|
33
|
-
stickyEnd?: boolean;
|
|
34
|
-
textArray?: string[];
|
|
35
|
-
text_rows?: TextRow[];
|
|
36
|
-
estados?: object[];
|
|
37
|
-
text?: PropiedadesText;
|
|
38
|
-
reporte?: ColumnaTablaReporte;
|
|
39
|
-
/** esta propiedad solo se usa cuando el tipo es 'progress' */
|
|
40
|
-
progressbar?: PropiedadesProgressBar;
|
|
41
|
-
iconsDef?: ColumnaIcons;
|
|
42
|
-
/** usar para cargar datos extra y evaluar durante la ejecucion */
|
|
43
|
-
datosExtra?: any;
|
|
44
|
-
innerHTML?(row: any): string;
|
|
45
|
-
innerHTMLInvisible?(row: any): string;
|
|
46
|
-
click?(row: any): void;
|
|
47
|
-
esVisible?(): boolean;
|
|
48
|
-
noMostrar?(): boolean;
|
|
49
|
-
condicionHabilitado?(): boolean;
|
|
50
|
-
/** @deprecated usar '`noMostrar`' en su lugar */
|
|
51
|
-
isIncluded?(vThis: any): boolean;
|
|
52
|
-
transformar?(row: any): any;
|
|
53
|
-
transformarDirecto?(row: any): any;
|
|
54
|
-
transformarFooter?(): any;
|
|
55
64
|
}
|
|
56
|
-
export interface
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
transformar?(titulo?: any): any;
|
|
61
|
-
};
|
|
62
|
-
opcionesPdfmake?: {
|
|
63
|
-
titulo?: object;
|
|
64
|
-
cuerpo?: object;
|
|
65
|
-
total?: TipoValorFuncion<any>;
|
|
66
|
-
};
|
|
65
|
+
export interface ColumnaMoney<T> extends BaseColumna<T> {
|
|
66
|
+
type: 'money';
|
|
67
|
+
simboloMoneda?: string;
|
|
68
|
+
format?: string;
|
|
67
69
|
}
|
|
68
|
-
export interface
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
textoCentrado?: boolean;
|
|
72
|
-
textoMostrar?(row: any): string;
|
|
73
|
-
porcentaje(row: any): number;
|
|
70
|
+
export interface ColumnaIcons<T> extends BaseColumna<T> {
|
|
71
|
+
type: 'icons';
|
|
72
|
+
iconsDef: ColumnaIconsDef;
|
|
74
73
|
}
|
|
74
|
+
export interface ColumnaProgress<T> extends BaseColumna<T> {
|
|
75
|
+
type: 'progress';
|
|
76
|
+
progressbar: PropiedadesProgressBar;
|
|
77
|
+
}
|
|
78
|
+
export interface ColumnaDate<T> extends BaseColumna<T> {
|
|
79
|
+
type: 'date';
|
|
80
|
+
format?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface ColumnaNumber<T> extends BaseColumna<T> {
|
|
83
|
+
type: 'number';
|
|
84
|
+
format?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface ColumnaExpandir<T> extends BaseColumna<T> {
|
|
87
|
+
type: 'expandir';
|
|
88
|
+
}
|
|
89
|
+
export interface ColumnaYesNo<T> extends BaseColumna<T> {
|
|
90
|
+
type: 'yes_no';
|
|
91
|
+
yesIcon?: string;
|
|
92
|
+
yesTooltip?: string;
|
|
93
|
+
yesValue?: any;
|
|
94
|
+
noIcon?: string;
|
|
95
|
+
noTooltip?: string;
|
|
96
|
+
noValue?: any;
|
|
97
|
+
}
|
|
98
|
+
export interface ColumnaOtros<T> extends BaseColumna<T> {
|
|
99
|
+
type: 'estiloEstablecido' | 'image' | 'custom' | 'estado' | 'numeracion_automatica';
|
|
100
|
+
/** @deprecated */
|
|
101
|
+
readonly estados?: object[];
|
|
102
|
+
}
|
|
103
|
+
export type ColumnaTabla<T> = ColumnaTexto<T> | ColumnaCheckbox<T> | ColumnaMoney<T> | ColumnaIcons<T> | ColumnaProgress<T> | ColumnaDate<T> | ColumnaNumber<T> | ColumnaExpandir<T> | ColumnaYesNo<T> | ColumnaOtros<T>;
|
|
75
104
|
export interface PropiedadesText {
|
|
76
105
|
separador?: string;
|
|
77
106
|
cssContenedor?: string;
|
|
78
107
|
cssStyle?: object;
|
|
79
|
-
click
|
|
108
|
+
click?: (row: any) => void;
|
|
80
109
|
}
|
|
81
|
-
export interface
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
siCampoNulo?: string[];
|
|
90
|
-
valueType?: 'number' | 'date' | 'money';
|
|
91
|
-
valueFormat?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface ColumnaIcons {
|
|
110
|
+
export interface PropiedadesProgressBar {
|
|
111
|
+
formatoNumero?: string;
|
|
112
|
+
coloresValor?: EstilosBarra[];
|
|
113
|
+
textoCentrado?: boolean;
|
|
114
|
+
textoMostrar?: (row: any) => string;
|
|
115
|
+
porcentaje: (row: any) => number;
|
|
116
|
+
}
|
|
117
|
+
export interface ColumnaIconsDef {
|
|
94
118
|
items: TipoValorFuncion<IconsIcon[]>;
|
|
95
119
|
soloIcono?: boolean;
|
|
96
120
|
iconSize?: string;
|
|
@@ -102,7 +126,7 @@ export interface IconsIcon {
|
|
|
102
126
|
toolTipField?: string;
|
|
103
127
|
contentCss?: string;
|
|
104
128
|
cssClass?: string;
|
|
105
|
-
click
|
|
106
|
-
esVisible
|
|
129
|
+
click?: (row: any) => void;
|
|
130
|
+
esVisible?: (row: any) => boolean;
|
|
107
131
|
}
|
|
108
132
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnaTabla, DataServidor, OpcionSeleccionada, TablaMantenimientoSeccionBotones } from '../global';
|
|
2
|
+
export declare interface IncluyeTablaMantenimiento {
|
|
3
|
+
dataServidorSuscripcion?: DataServidor;
|
|
4
|
+
botonesMenu?: TablaMantenimientoSeccionBotones;
|
|
5
|
+
columnasPrincipal: ColumnaTabla<any>[];
|
|
6
|
+
seleccionados: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
cargaInicial?<T>(): void | Promise<T>;
|
|
10
|
+
cargarLista?<T>(): void | Promise<T>;
|
|
11
|
+
opcMenu?(v: OpcionSeleccionada): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './incluye-tabla-mantenimiento';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnaDate } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeDateComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaDate<T>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeDateComponent<any>, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeDateComponent<any>, "jvs-column-type-date", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnaIcons, IconsIcon } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeIconsComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaIcons<T>;
|
|
6
|
+
obtenerItems(columna: any, row: any): IconsIcon[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeIconsComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeIconsComponent<any>, "jvs-column-type-icons", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnaMoney } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeMoneyComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaMoney<T>;
|
|
6
|
+
value(row: any): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeMoneyComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeMoneyComponent<any>, "jvs-column-type-money", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnaNumber } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeNumberComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaNumber<T>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeNumberComponent<any>, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeNumberComponent<any>, "jvs-column-type-number", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnaProgress } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeProgressbarComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaProgress<T>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeProgressbarComponent<any>, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeProgressbarComponent<any>, "jvs-column-type-progressbar", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnaYesNo } from '../../../interfaces';
|
|
2
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeSinoComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaYesNo<T>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeSinoComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeSinoComponent<any>, "jvs-column-type-sino", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnTypeComponent } from '../column-type.component';
|
|
2
|
+
import { ColumnaTexto } from '../../../interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnTypeTextComponent<T> extends ColumnTypeComponent<T> {
|
|
5
|
+
column: ColumnaTexto<T>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeTextComponent<any>, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeTextComponent<any>, "jvs-column-type-text", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AfterViewInit, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
3
|
+
import { ColumnaTabla } from '../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ColumnTypeComponent<T> implements OnInit, AfterViewInit {
|
|
6
|
+
private table;
|
|
7
|
+
column: ColumnaTabla<T>;
|
|
8
|
+
columnDef: MatColumnDef;
|
|
9
|
+
columnTitleTemplate?: TemplateRef<any>;
|
|
10
|
+
columnFooterTemplate?: TemplateRef<any>;
|
|
11
|
+
cellTemplate: TemplateRef<any>;
|
|
12
|
+
constructor(table: MatTable<T>);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
accionClick(item: T, event: Event): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeComponent<any>, [{ optional: true; }]>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTypeComponent<any>, "jvs-column-type", never, { "column": { "alias": "column"; "required": true; }; "columnTitleTemplate": { "alias": "columnTitleTemplate"; "required": false; }; "columnFooterTemplate": { "alias": "columnFooterTemplate"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.module.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./column-type.component";
|
|
3
|
+
import * as i2 from "./column-type-text/column-type-text.component";
|
|
4
|
+
import * as i3 from "./column-type-money/column-type-money.component";
|
|
5
|
+
import * as i4 from "./column-type-number/column-type-number.component";
|
|
6
|
+
import * as i5 from "./column-type-date/column-type-date.component";
|
|
7
|
+
import * as i6 from "./column-type-icons/column-type-icons.component";
|
|
8
|
+
import * as i7 from "./column-type-sino/column-type-sino.component";
|
|
9
|
+
import * as i8 from "./column-type-progressbar/column-type-progressbar.component";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/material/table";
|
|
12
|
+
import * as i11 from "@angular/material/sort";
|
|
13
|
+
import * as i12 from "@angular/material/tooltip";
|
|
14
|
+
import * as i13 from "../../pipes/no-sanitize.pipe";
|
|
15
|
+
import * as i14 from "../../pipes/zero-fill.pipe";
|
|
16
|
+
import * as i15 from "@angular/material/core";
|
|
17
|
+
import * as i16 from "@angular/material/icon";
|
|
18
|
+
import * as i17 from "../../components/progress-bar/progress-bar.component";
|
|
19
|
+
export declare class ColumnTypeModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTypeModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ColumnTypeModule, [typeof i1.ColumnTypeComponent, typeof i2.ColumnTypeTextComponent, typeof i3.ColumnTypeMoneyComponent, typeof i4.ColumnTypeNumberComponent, typeof i5.ColumnTypeDateComponent, typeof i6.ColumnTypeIconsComponent, typeof i7.ColumnTypeSinoComponent, typeof i8.ColumnTypeProgressbarComponent], [typeof i9.CommonModule, typeof i10.MatTableModule, typeof i11.MatSortModule, typeof i12.MatTooltipModule, typeof i13.NoSanitizePipe, typeof i14.ZeroFillPipe, typeof i15.MatRipple, typeof i16.MatIcon, typeof i17.ProgressBarComponent], [typeof i2.ColumnTypeTextComponent, typeof i3.ColumnTypeMoneyComponent, typeof i4.ColumnTypeNumberComponent, typeof i5.ColumnTypeDateComponent, typeof i6.ColumnTypeIconsComponent, typeof i7.ColumnTypeSinoComponent, typeof i8.ColumnTypeProgressbarComponent]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ColumnTypeModule>;
|
|
23
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, EventEmitter, QueryList } from '@angular/core';
|
|
2
2
|
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
3
|
-
import { ColumnaTabla
|
|
3
|
+
import { ColumnaTabla } from '../interfaces/global';
|
|
4
4
|
import { DataModel } from '../classes/data-model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../classes/data-model";
|
|
7
6
|
export declare class TablaMantenimientoColumnDefsComponent implements AfterContentInit {
|
|
8
7
|
table: MatTable<any>;
|
|
9
8
|
private cdRef;
|
|
@@ -12,15 +11,11 @@ export declare class TablaMantenimientoColumnDefsComponent implements AfterConte
|
|
|
12
11
|
colDetalle: ColumnaTabla<any>[];
|
|
13
12
|
chkLista: DataModel;
|
|
14
13
|
chkListaChange: EventEmitter<DataModel>;
|
|
15
|
-
|
|
14
|
+
columnDefLocales: QueryList<MatColumnDef>;
|
|
15
|
+
columnDefEnSubComponentes: QueryList<MatColumnDef>;
|
|
16
16
|
constructor(table: MatTable<any>, cdRef: ChangeDetectorRef);
|
|
17
17
|
ngAfterContentInit(): void;
|
|
18
|
-
trackByProperty<T>(index: number, column: ColumnaTabla<T>):
|
|
19
|
-
verTexto(row: any, campo: any, glue?: string): any;
|
|
20
|
-
camposNulos(row: any, campos: string[]): boolean;
|
|
21
|
-
accionClick(column: any, item: any, event: any): boolean;
|
|
22
|
-
obtenerItems(columna: any, row: any): IconsIcon[];
|
|
18
|
+
trackByProperty<T>(index: number, column: ColumnaTabla<T>): string | Extract<keyof T, string>;
|
|
23
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TablaMantenimientoColumnDefsComponent, [{ optional: true; }, null]>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TablaMantenimientoColumnDefsComponent, "jvs-tabla-mantenimiento-column-defs", never, { "objThis": { "alias": "objThis"; "required": false; }; "nombreColeccion": { "alias": "nombreColeccion"; "required": false; }; "colDetalle": { "alias": "colDetalle"; "required": false; }; "chkLista": { "alias": "chkLista"; "required": false; }; }, { "chkListaChange": "chkListaChange"; },
|
|
25
|
-
static ngAcceptInputType_chkLista: i1.DataModel;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TablaMantenimientoColumnDefsComponent, "jvs-tabla-mantenimiento-column-defs", never, { "objThis": { "alias": "objThis"; "required": false; }; "nombreColeccion": { "alias": "nombreColeccion"; "required": false; }; "colDetalle": { "alias": "colDetalle"; "required": false; }; "chkLista": { "alias": "chkLista"; "required": false; }; }, { "chkListaChange": "chkListaChange"; }, ["columnDefEnSubComponentes"], ["*"], true, never>;
|
|
26
21
|
}
|
|
File without changes
|
|
File without changes
|