@jvsoft/components 0.0.13-alpha.0 → 0.0.13-alpha.2
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.d.ts +32 -0
- package/dialog-flotante/dialog-flotante.interface.d.ts +11 -0
- package/dialog-flotante/index.d.ts +5 -0
- package/fesm2022/jvsoft-components-dialog-flotante.mjs +129 -0
- package/fesm2022/jvsoft-components-dialog-flotante.mjs.map +1 -0
- package/fesm2022/jvsoft-components-lista-arbol.mjs +294 -0
- package/fesm2022/jvsoft-components-lista-arbol.mjs.map +1 -0
- package/fesm2022/jvsoft-components-luces-navidad.mjs +33 -0
- package/fesm2022/jvsoft-components-luces-navidad.mjs.map +1 -0
- package/fesm2022/jvsoft-components-mat-suffix-search-button.mjs +47 -0
- package/fesm2022/jvsoft-components-mat-suffix-search-button.mjs.map +1 -0
- package/fesm2022/jvsoft-components-menu.mjs +102 -0
- package/fesm2022/jvsoft-components-menu.mjs.map +1 -0
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs +91 -0
- package/fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs.map +1 -0
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs +1798 -0
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs.map +1 -0
- package/fesm2022/jvsoft-components.mjs +2333 -0
- package/fesm2022/jvsoft-components.mjs.map +1 -0
- package/{index.ts → index.d.ts} +1 -8
- package/lista-arbol/index.d.ts +5 -0
- package/lista-arbol/lista-arbol.component.d.ts +59 -0
- package/lista-arbol/lista-arbol.functions.d.ts +8 -0
- package/luces-navidad/index.d.ts +5 -0
- package/luces-navidad/luces-navidad.component.d.ts +11 -0
- package/mat-suffix-search-button/index.d.ts +5 -0
- package/mat-suffix-search-button/mat-suffix-search-button.component.d.ts +12 -0
- package/menu/index.d.ts +5 -0
- package/menu/menu.component.d.ts +25 -0
- package/menu/menu.interface.d.ts +16 -0
- package/package.json +45 -13
- package/src/styles/base-jvsoft-components.css +9 -0
- package/tabla-mantenimiento/classes/data-model.d.ts +25 -0
- package/tabla-mantenimiento/components/progress-bar/index.d.ts +5 -0
- package/tabla-mantenimiento/components/progress-bar/progress-bar.component.d.ts +30 -0
- package/tabla-mantenimiento/components/progress-bar/public-api.d.ts +1 -0
- package/tabla-mantenimiento/index.d.ts +5 -0
- package/tabla-mantenimiento/interfaces/{archivo.ts → archivo.d.ts} +4 -7
- package/tabla-mantenimiento/interfaces/global/{boton-mantenimiento.ts → boton-mantenimiento.d.ts} +3 -9
- package/tabla-mantenimiento/interfaces/global/{columnas-tabla.ts → columnas-tabla.d.ts} +12 -89
- package/tabla-mantenimiento/interfaces/global/no-export.d.ts +2 -0
- package/tabla-mantenimiento/interfaces/global/{otros.ts → otros.d.ts} +3 -15
- package/tabla-mantenimiento/interfaces/implements/{incluye-tabla-mantenimiento.ts → incluye-tabla-mantenimiento.d.ts} +4 -6
- package/tabla-mantenimiento/interfaces/implements/{index.ts → index.d.ts} +0 -1
- package/tabla-mantenimiento/mat-row-keyboard-selection.directive.d.ts +19 -0
- package/tabla-mantenimiento/pipes/no-sanitize.pipe.d.ts +10 -0
- package/tabla-mantenimiento/pipes/zero-fill.pipe.d.ts +8 -0
- package/tabla-mantenimiento/{public-api.ts → public-api.d.ts} +2 -3
- 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 +21 -0
- package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.d.ts +18 -0
- package/tabla-mantenimiento/tabla-mantenimiento.component.d.ts +147 -0
- package/tabla-mantenimiento/tabla-mantenimiento.functions.d.ts +5 -0
- package/tabla-mantenimiento/tabla-mantenimiento.service.d.ts +8 -0
- package/tabla-mantenimiento/table-util.d.ts +11 -0
- package/CHANGELOG.md +0 -26
- package/build.js +0 -20
- package/dialog-flotante/dialog-flotante.component.html +0 -66
- package/dialog-flotante/dialog-flotante.component.ts +0 -115
- package/dialog-flotante/dialog-flotante.interface.ts +0 -13
- package/dialog-flotante/index.ts +0 -1
- package/dialog-flotante/ng-package.json +0 -5
- package/lista-arbol/lista-arbol.component.html +0 -66
- package/lista-arbol/lista-arbol.component.ts +0 -238
- package/lista-arbol/lista-arbol.functions.ts +0 -46
- package/lista-arbol/ng-package.json +0 -5
- package/luces-navidad/christmas-tree.png +0 -0
- package/luces-navidad/index.ts +0 -1
- package/luces-navidad/luces-navidad.component.html +0 -6
- package/luces-navidad/luces-navidad.component.ts +0 -24
- package/luces-navidad/ng-package.json +0 -5
- package/mat-suffix-search-button/index.ts +0 -1
- package/mat-suffix-search-button/mat-suffix-search-button.component.html +0 -5
- package/mat-suffix-search-button/mat-suffix-search-button.component.ts +0 -36
- package/mat-suffix-search-button/ng-package.json +0 -5
- package/menu/index.ts +0 -1
- package/menu/menu.component.html +0 -40
- package/menu/menu.component.ts +0 -88
- package/menu/menu.interface.ts +0 -16
- package/menu/ng-package.json +0 -5
- package/ng-package.json +0 -17
- package/progress-spinner.zip +0 -0
- package/tabla-mantenimiento/classes/data-model.ts +0 -150
- package/tabla-mantenimiento/components/progress-bar/index.ts +0 -1
- package/tabla-mantenimiento/components/progress-bar/ng-package.json +0 -5
- package/tabla-mantenimiento/components/progress-bar/progress-bar.component.html +0 -10
- package/tabla-mantenimiento/components/progress-bar/progress-bar.component.ts +0 -85
- package/tabla-mantenimiento/components/progress-bar/public-api.ts +0 -2
- package/tabla-mantenimiento/index.ts +0 -1
- package/tabla-mantenimiento/interfaces/global/export-excel-servidor.ts +0 -0
- package/tabla-mantenimiento/interfaces/global/no-export.ts +0 -11
- package/tabla-mantenimiento/mat-row-keyboard-selection.directive.ts +0 -97
- package/tabla-mantenimiento/ng-package.json +0 -5
- package/tabla-mantenimiento/pipes/no-sanitize.pipe.ts +0 -12
- package/tabla-mantenimiento/pipes/zero-fill.pipe.ts +0 -19
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-date/column-type-date.component.html +0 -22
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-date/column-type-date.component.ts +0 -12
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-icons/column-type-icons.component.html +0 -58
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-icons/column-type-icons.component.ts +0 -19
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-money/column-type-money.component.html +0 -40
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-money/column-type-money.component.ts +0 -17
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-number/column-type-number.component.html +0 -25
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-number/column-type-number.component.ts +0 -14
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-progressbar/column-type-progressbar.component.html +0 -28
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-progressbar/column-type-progressbar.component.ts +0 -13
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-sino/column-type-sino.component.html +0 -30
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-sino/column-type-sino.component.ts +0 -38
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-text/column-type-text.component.html +0 -97
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type-text/column-type-text.component.ts +0 -43
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.html +0 -26
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.component.ts +0 -36
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/column-type/column-type.module.ts +0 -54
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.html +0 -76
- package/tabla-mantenimiento/tabla-mantenimiento-column-defs/tabla-mantenimiento-column-defs.component.ts +0 -67
- package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.html +0 -7
- package/tabla-mantenimiento/tabla-mantenimiento-menu/tabla-mantenimiento-menu.component.ts +0 -39
- package/tabla-mantenimiento/tabla-mantenimiento.component.html +0 -385
- package/tabla-mantenimiento/tabla-mantenimiento.component.ts +0 -951
- package/tabla-mantenimiento/tabla-mantenimiento.functions.ts +0 -57
- package/tabla-mantenimiento/tabla-mantenimiento.service.ts +0 -44
- package/tabla-mantenimiento/table-util.ts +0 -49
- package/tabla-mantenimiento.zip +0 -0
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
- package/yarn-error.log +0 -68
- /package/dialog-flotante/{public-api.ts → public-api.d.ts} +0 -0
- /package/lista-arbol/{public-api.ts → public-api.d.ts} +0 -0
- /package/luces-navidad/{public-api.ts → public-api.d.ts} +0 -0
- /package/mat-suffix-search-button/{public-api.ts → public-api.d.ts} +0 -0
- /package/menu/{public-api.ts → public-api.d.ts} +0 -0
- /package/tabla-mantenimiento/interfaces/global/{index.ts → index.d.ts} +0 -0
- /package/tabla-mantenimiento/interfaces/{index.ts → index.d.ts} +0 -0
package/{index.ts → index.d.ts}
RENAMED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
// export {};
|
|
2
|
-
// import './src/styles.scss';
|
|
3
|
-
|
|
4
1
|
export * from './dialog-flotante';
|
|
5
|
-
// export * from './progress-spinner';
|
|
6
2
|
export * from './tabla-mantenimiento';
|
|
7
3
|
export * from './tabla-mantenimiento/components/progress-bar';
|
|
8
4
|
export * from './luces-navidad';
|
|
9
5
|
export * from './mat-suffix-search-button';
|
|
10
6
|
export * from './menu';
|
|
11
|
-
export * from './lista-arbol/public-api'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
export * from './lista-arbol/public-api';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
4
|
+
import { DataModel } from '@jvsoft/utils';
|
|
5
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ListaArbolComponent<T = any> implements OnInit {
|
|
8
|
+
listaSuscription: Observable<T[]>;
|
|
9
|
+
nombreColeccion: string;
|
|
10
|
+
checkbox: boolean;
|
|
11
|
+
expandirRecursivo: boolean;
|
|
12
|
+
checkboxSeleccionados: T[];
|
|
13
|
+
campoId: string;
|
|
14
|
+
campoIdPadre: string;
|
|
15
|
+
campoStr: string;
|
|
16
|
+
campoOrden?: string;
|
|
17
|
+
strHijoContainer: string;
|
|
18
|
+
menuContextual?: {
|
|
19
|
+
abrirMenuContextual: Function;
|
|
20
|
+
cerrarMenuContextual: Function;
|
|
21
|
+
};
|
|
22
|
+
classSeleccionado: string[];
|
|
23
|
+
classAnulado: string[];
|
|
24
|
+
campoAnulado?: string | null;
|
|
25
|
+
templateTxtData?: TemplateRef<any>;
|
|
26
|
+
condicionMostrar?: (item: T) => boolean;
|
|
27
|
+
condicionesClaseFila: (item: T) => string[];
|
|
28
|
+
set selectionModel(val: SelectionModel<any>);
|
|
29
|
+
selectionModelChange: EventEmitter<SelectionModel<any>>;
|
|
30
|
+
seleccionado: EventEmitter<any>;
|
|
31
|
+
listaCheck: EventEmitter<T[]>;
|
|
32
|
+
listaCheckObj: EventEmitter<Record<string, any>>;
|
|
33
|
+
private _idTabla;
|
|
34
|
+
get idTabla(): string[];
|
|
35
|
+
set idTabla(val: string[] | string);
|
|
36
|
+
get buscarItemSeleccionado(): any;
|
|
37
|
+
get objSeleccionado(): any;
|
|
38
|
+
set objSeleccionado(val: any);
|
|
39
|
+
chkLista: DataModel;
|
|
40
|
+
listaMuestraArbol: T[];
|
|
41
|
+
listaOriginal: T[];
|
|
42
|
+
treeControl: NestedTreeControl<any, any>;
|
|
43
|
+
_seleccionado: any;
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
idTablaValor(data: any): string;
|
|
46
|
+
propiedadSeleccion(item: any): string;
|
|
47
|
+
esSeleccionActual(item: any): boolean;
|
|
48
|
+
seleccionarItem(item?: any, forzado?: boolean): void;
|
|
49
|
+
hasChild: (_: number, node: any) => boolean;
|
|
50
|
+
opcMenu(v: any): void;
|
|
51
|
+
emitirModeloCheck(): void;
|
|
52
|
+
cambiarPadre(checkActual: T, estado: boolean): void;
|
|
53
|
+
cambiarCheck(checkActual: T, estado: boolean): void;
|
|
54
|
+
hijosActivos(tipo: 'checked' | 'indeterminate', checkActual: T): boolean;
|
|
55
|
+
classFila2(item: T): string[];
|
|
56
|
+
classFila(item: any): any[];
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListaArbolComponent<any>, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListaArbolComponent<any>, "jvs-lista-arbol", never, { "listaSuscription": { "alias": "listaSuscription"; "required": false; }; "nombreColeccion": { "alias": "nombreColeccion"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "expandirRecursivo": { "alias": "expandirRecursivo"; "required": false; }; "checkboxSeleccionados": { "alias": "checkboxSeleccionados"; "required": false; }; "campoId": { "alias": "campoId"; "required": false; }; "campoIdPadre": { "alias": "campoIdPadre"; "required": false; }; "campoStr": { "alias": "campoStr"; "required": false; }; "campoOrden": { "alias": "campoOrden"; "required": false; }; "strHijoContainer": { "alias": "strHijoContainer"; "required": false; }; "menuContextual": { "alias": "menuContextual"; "required": false; }; "classSeleccionado": { "alias": "classSeleccionado"; "required": false; }; "classAnulado": { "alias": "classAnulado"; "required": false; }; "campoAnulado": { "alias": "campoAnulado"; "required": false; }; "templateTxtData": { "alias": "templateTxtData"; "required": false; }; "condicionMostrar": { "alias": "condicionMostrar"; "required": false; }; "condicionesClaseFila": { "alias": "condicionesClaseFila"; "required": false; }; "selectionModel": { "alias": "selectionModel"; "required": false; }; "idTabla": { "alias": "idTabla"; "required": true; }; }, { "selectionModelChange": "selectionModelChange"; "seleccionado": "seleccionado"; "listaCheck": "listaCheck"; "listaCheckObj": "listaCheckObj"; }, never, never, true, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LucesNavidadComponent implements OnInit {
|
|
4
|
+
enProduccion: boolean;
|
|
5
|
+
forzarMuestra: boolean;
|
|
6
|
+
mesActual: number;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LucesNavidadComponent, never>;
|
|
10
|
+
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MatSuffixSearchButtonComponent {
|
|
5
|
+
fControl: any;
|
|
6
|
+
eventLimpiar: EventEmitter<any>;
|
|
7
|
+
eventBuscar: EventEmitter<any>;
|
|
8
|
+
get control(): FormControl;
|
|
9
|
+
emitirClick(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffixSearchButtonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSuffixSearchButtonComponent, "div[matSuffix][matSuffixSearchButton]", never, { "fControl": { "alias": "fControl"; "required": true; }; }, { "eventLimpiar": "eventLimpiar"; "eventBuscar": "eventBuscar"; }, never, never, true, never>;
|
|
12
|
+
}
|
package/menu/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { MatMenu } from '@angular/material/menu';
|
|
3
|
+
import { BotonMenu } from './menu.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MenuComponent implements OnInit, AfterViewInit {
|
|
6
|
+
cssBoton?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
itemSeleccion?: string;
|
|
10
|
+
menu: BotonMenu[];
|
|
11
|
+
action: EventEmitter<string>;
|
|
12
|
+
matmenus: QueryList<MatMenu>;
|
|
13
|
+
menuItems: string[];
|
|
14
|
+
yet: boolean;
|
|
15
|
+
_submenus: BotonMenu[][];
|
|
16
|
+
get submenus(): BotonMenu[][];
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
onClick(value: string): void;
|
|
20
|
+
getMenu(index: number): MatMenu | null;
|
|
21
|
+
reindex(): void;
|
|
22
|
+
createSubmenus(menu: BotonMenu[], prefix: string, count: number): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
24
|
+
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface BotonMenu {
|
|
2
|
+
idUnico?: string;
|
|
3
|
+
class?: string;
|
|
4
|
+
icono?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
soloIcono?: boolean;
|
|
7
|
+
sinCondicion?: boolean;
|
|
8
|
+
badge?: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
idxOpcionCalc?: any;
|
|
11
|
+
subItems?: BotonMenu[];
|
|
12
|
+
datosExtra?: any;
|
|
13
|
+
valorSeleccion?: any;
|
|
14
|
+
esVisible?(dataValid?: any): boolean;
|
|
15
|
+
estaDeshabilitado?(item?: any): boolean;
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jvsoft/components",
|
|
3
|
-
"version": "0.0.13-alpha.
|
|
3
|
+
"version": "0.0.13-alpha.2",
|
|
4
|
+
"description": "JVSOFT Angular Components",
|
|
4
5
|
"publishConfig": {
|
|
6
|
+
"tag": "alpha",
|
|
5
7
|
"access": "public"
|
|
6
8
|
},
|
|
7
9
|
"peerDependencies": {
|
|
@@ -9,27 +11,57 @@
|
|
|
9
11
|
"@angular/core": ">=16.0.0",
|
|
10
12
|
"@angular/forms": ">=16.0.0",
|
|
11
13
|
"@angular/material": ">=16.0.0",
|
|
14
|
+
"@jvsoft/utils": "^0.0.13-alpha.2",
|
|
12
15
|
"@ngneat/until-destroy": "^10.0.0",
|
|
13
16
|
"moment": "^2.30.1",
|
|
14
17
|
"shorthash2": "^1.0.5",
|
|
15
18
|
"tailwindcss": "3",
|
|
16
|
-
"xlsx": "^0.18.5"
|
|
17
|
-
"@jvsoft/utils": "workspace:*"
|
|
19
|
+
"xlsx": "^0.18.5"
|
|
18
20
|
},
|
|
19
21
|
"dependencies": {
|
|
22
|
+
"@jvsoft/utils": "alpha",
|
|
20
23
|
"tslib": "^2.3.0"
|
|
21
24
|
},
|
|
22
25
|
"sideEffects": false,
|
|
23
26
|
"exports": {
|
|
24
27
|
"./base.scss": "./src/styles/base.scss",
|
|
25
|
-
"./styles.css": "./src/styles/base-jvsoft-components.css"
|
|
28
|
+
"./styles.css": "./src/styles/base-jvsoft-components.css",
|
|
29
|
+
"./package.json": {
|
|
30
|
+
"default": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./index.d.ts",
|
|
34
|
+
"default": "./fesm2022/jvsoft-components.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./dialog-flotante": {
|
|
37
|
+
"types": "./dialog-flotante/index.d.ts",
|
|
38
|
+
"default": "./fesm2022/jvsoft-components-dialog-flotante.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./lista-arbol": {
|
|
41
|
+
"types": "./lista-arbol/index.d.ts",
|
|
42
|
+
"default": "./fesm2022/jvsoft-components-lista-arbol.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./mat-suffix-search-button": {
|
|
45
|
+
"types": "./mat-suffix-search-button/index.d.ts",
|
|
46
|
+
"default": "./fesm2022/jvsoft-components-mat-suffix-search-button.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./menu": {
|
|
49
|
+
"types": "./menu/index.d.ts",
|
|
50
|
+
"default": "./fesm2022/jvsoft-components-menu.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./luces-navidad": {
|
|
53
|
+
"types": "./luces-navidad/index.d.ts",
|
|
54
|
+
"default": "./fesm2022/jvsoft-components-luces-navidad.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./tabla-mantenimiento": {
|
|
57
|
+
"types": "./tabla-mantenimiento/index.d.ts",
|
|
58
|
+
"default": "./fesm2022/jvsoft-components-tabla-mantenimiento.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./tabla-mantenimiento/components/progress-bar": {
|
|
61
|
+
"types": "./tabla-mantenimiento/components/progress-bar/index.d.ts",
|
|
62
|
+
"default": "./fesm2022/jvsoft-components-tabla-mantenimiento-components-progress-bar.mjs"
|
|
63
|
+
}
|
|
26
64
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"build:styles": "tailwindcss -i ./src/styles/base.scss -o ./src/styles/base-jvsoft-components.css",
|
|
31
|
-
"watch:styles": "yarn build:styles --watch",
|
|
32
|
-
"watch": "ng build components --watch --configuration development",
|
|
33
|
-
"test": "ng test components"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
65
|
+
"module": "fesm2022/jvsoft-components.mjs",
|
|
66
|
+
"typings": "index.d.ts"
|
|
67
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
export declare class DataModel {
|
|
3
|
+
modelosChk: {
|
|
4
|
+
[key: string]: boolean | any;
|
|
5
|
+
};
|
|
6
|
+
checkbox: ForCheckboxModel;
|
|
7
|
+
constructor();
|
|
8
|
+
generarId(row: any, campoValor: string[] | string, separador?: string): string;
|
|
9
|
+
agregarControles(lista: any[], idLista: string, limpiar?: boolean, campoValor?: string[] | string | null, campoValorSeparador?: string): void;
|
|
10
|
+
setState(idx: string, state: boolean): void;
|
|
11
|
+
getState(idx: string): boolean | any;
|
|
12
|
+
getDataMultiple(idx: string): any;
|
|
13
|
+
generarLista(tipoRetorno?: 'array' | 'object' | null, esCampoNumerico?: boolean): string | object | any[];
|
|
14
|
+
generarFormGroupFromModelosChk(tipo?: string): FormGroup;
|
|
15
|
+
}
|
|
16
|
+
declare class ForCheckboxModel {
|
|
17
|
+
private modeloCheck;
|
|
18
|
+
constructor(modeloCheck: DataModel);
|
|
19
|
+
get cantidadActivos(): number;
|
|
20
|
+
get existenActivados(): boolean;
|
|
21
|
+
get todosActivos(): boolean;
|
|
22
|
+
get algunosActivos(): boolean;
|
|
23
|
+
establecerTodos(activo: boolean): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface EstilosBarra {
|
|
4
|
+
valorMaximo: number;
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ProgressBarComponent implements OnInit {
|
|
9
|
+
objThis: any;
|
|
10
|
+
porcentaje: number;
|
|
11
|
+
textoCentrado: boolean;
|
|
12
|
+
private _textoMostrar;
|
|
13
|
+
get textoMostrar(): string;
|
|
14
|
+
set textoMostrar(val: string);
|
|
15
|
+
private _formatoNumero;
|
|
16
|
+
get formatoNumero(): string;
|
|
17
|
+
set formatoNumero(val: string | undefined);
|
|
18
|
+
private _coloresValor;
|
|
19
|
+
get coloresValor(): EstilosBarra[];
|
|
20
|
+
set coloresValor(val: EstilosBarra[] | undefined);
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
colorEstilo(): {
|
|
24
|
+
style: string;
|
|
25
|
+
class: string;
|
|
26
|
+
};
|
|
27
|
+
ordenarPorPropiedad(objData: any[], propiedad: string, numeros?: boolean): any[];
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './progress-bar.component';
|
|
@@ -11,19 +11,16 @@ export interface Archivo {
|
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
archivoFisico?: File;
|
|
13
13
|
progress?: any;
|
|
14
|
-
|
|
15
14
|
keyFirmaTramite?: string;
|
|
16
|
-
|
|
17
15
|
cArchivoNombre?: string;
|
|
18
16
|
cArchivoKey?: any;
|
|
19
17
|
iArchivoId?: any;
|
|
20
18
|
cArchivoRuta?: string;
|
|
21
19
|
cArchivoData?: string;
|
|
22
|
-
|
|
23
20
|
servFile?: Archivo;
|
|
24
21
|
cantidadFirmas?: {
|
|
25
|
-
total: number
|
|
26
|
-
digitales: number
|
|
27
|
-
electronicas: number
|
|
28
|
-
}
|
|
22
|
+
total: number;
|
|
23
|
+
digitales: number;
|
|
24
|
+
electronicas: number;
|
|
25
|
+
};
|
|
29
26
|
}
|
package/tabla-mantenimiento/interfaces/global/{boton-mantenimiento.ts → boton-mantenimiento.d.ts}
RENAMED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {TablaMantenimientoComponent} from '../../tabla-mantenimiento.component';
|
|
2
|
-
|
|
3
|
-
export type TiposOpciones = 'ver' | 'nuevo' | 'editar' | 'guardar' | 'eliminar' | 'seleccionar' | 'editar_item' | 'detalle' |
|
|
4
|
-
'ver_archivos' | 'eliminar_fila' | 'imprimir' | 'descargar' | 'exportar_pdf' | 'exportar_excel' |
|
|
5
|
-
'exportacion_avanzada' | 'ver_mapa' | string;
|
|
1
|
+
import { TablaMantenimientoComponent } from '../../tabla-mantenimiento.component';
|
|
2
|
+
export 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;
|
|
6
3
|
export interface BotonMantenimiento {
|
|
7
4
|
tipo: TiposOpciones;
|
|
8
5
|
tipoTemplate?: TiposOpciones;
|
|
@@ -23,7 +20,6 @@ export interface BotonMantenimiento {
|
|
|
23
20
|
esVisible?(item: any, tablaRef?: TablaMantenimientoComponent<any>): boolean;
|
|
24
21
|
estaDeshabilitado?(item: any, tablaRef?: TablaMantenimientoComponent<any>): boolean;
|
|
25
22
|
}
|
|
26
|
-
|
|
27
23
|
export interface BotonDialog {
|
|
28
24
|
tipo?: TiposOpciones;
|
|
29
25
|
class?: string;
|
|
@@ -31,7 +27,6 @@ export interface BotonDialog {
|
|
|
31
27
|
label?: string;
|
|
32
28
|
sinCondicion?: boolean;
|
|
33
29
|
}
|
|
34
|
-
|
|
35
30
|
export interface SeccionesBotonesMantenimiento {
|
|
36
31
|
crud?: BotonMantenimiento[];
|
|
37
32
|
principal?: BotonMantenimiento[];
|
|
@@ -39,9 +34,8 @@ export interface SeccionesBotonesMantenimiento {
|
|
|
39
34
|
derecha?: BotonMantenimiento[];
|
|
40
35
|
secundario?: BotonMantenimiento[];
|
|
41
36
|
inferior?: BotonMantenimiento[];
|
|
42
|
-
[key: string]: BotonMantenimiento[] | undefined;
|
|
37
|
+
[key: string]: BotonMantenimiento[] | undefined;
|
|
43
38
|
}
|
|
44
|
-
|
|
45
39
|
export interface TablaMantenimientoSeccionBotones {
|
|
46
40
|
[key: string]: SeccionesBotonesMantenimiento;
|
|
47
41
|
}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import {EstilosBarra} from '../../components/progress-bar';
|
|
2
|
-
import {TipoValorFuncion} from './no-export';
|
|
3
|
-
|
|
4
|
-
type TiposColumnas =
|
|
5
|
-
| 'yes_no'
|
|
6
|
-
| 'estiloEstablecido'
|
|
7
|
-
| 'text'
|
|
8
|
-
| 'number'
|
|
9
|
-
| 'money'
|
|
10
|
-
| 'date'
|
|
11
|
-
| 'image'
|
|
12
|
-
| 'estado'
|
|
13
|
-
| 'badge'
|
|
14
|
-
| 'progress'
|
|
15
|
-
| 'checkbox'
|
|
16
|
-
| 'icon'
|
|
17
|
-
| 'icons'
|
|
18
|
-
| 'icon_checkbox'
|
|
19
|
-
| 'custom'
|
|
20
|
-
| 'expandir'
|
|
21
|
-
| 'numeracion_automatica';
|
|
22
|
-
|
|
1
|
+
import { EstilosBarra } from '../../components/progress-bar';
|
|
2
|
+
import { TipoValorFuncion } from './no-export';
|
|
3
|
+
type TiposColumnas = 'yes_no' | 'estiloEstablecido' | 'text' | 'number' | 'money' | 'date' | 'image' | 'estado' | 'badge' | 'progress' | 'checkbox' | 'icon' | 'icons' | 'icon_checkbox' | 'custom' | 'expandir' | 'numeracion_automatica';
|
|
23
4
|
export interface ColumnaTablaReporte {
|
|
24
5
|
ocultar?: boolean;
|
|
25
6
|
transformar?: (row: any) => any;
|
|
@@ -29,13 +10,11 @@ export interface ColumnaTablaReporte {
|
|
|
29
10
|
};
|
|
30
11
|
opcionesPdfmake?: {
|
|
31
12
|
transformarCuerpo?(row: any): any;
|
|
32
|
-
titulo?: object
|
|
33
|
-
cuerpo?: object
|
|
13
|
+
titulo?: object;
|
|
14
|
+
cuerpo?: object;
|
|
34
15
|
total?: TipoValorFuncion<any>;
|
|
35
|
-
}
|
|
16
|
+
};
|
|
36
17
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
18
|
export interface IconsIcon {
|
|
40
19
|
icon: string;
|
|
41
20
|
iconSize?: string;
|
|
@@ -43,25 +22,10 @@ export interface IconsIcon {
|
|
|
43
22
|
toolTipField?: string;
|
|
44
23
|
contentCss?: string;
|
|
45
24
|
cssClass?: string;
|
|
46
|
-
|
|
47
25
|
click?(row: any): void;
|
|
48
|
-
|
|
49
26
|
esVisible?(row: any): boolean;
|
|
50
27
|
}
|
|
51
|
-
|
|
52
|
-
// VERSION MEJORADA //
|
|
53
|
-
|
|
54
|
-
export type TiposColumnasNuevo =
|
|
55
|
-
| 'text'
|
|
56
|
-
| 'checkbox'
|
|
57
|
-
| 'money'
|
|
58
|
-
| 'icon'
|
|
59
|
-
| 'icons'
|
|
60
|
-
| 'progress'
|
|
61
|
-
| 'expandir'
|
|
62
|
-
| 'date'
|
|
63
|
-
| 'number';
|
|
64
|
-
|
|
28
|
+
export type TiposColumnasNuevo = 'text' | 'checkbox' | 'money' | 'icon' | 'icons' | 'progress' | 'expandir' | 'date' | 'number';
|
|
65
29
|
type PropiedadString<T> = Extract<keyof T, string>;
|
|
66
30
|
interface BaseColumna<T> {
|
|
67
31
|
tableDataIndex?: number;
|
|
@@ -75,72 +39,57 @@ interface BaseColumna<T> {
|
|
|
75
39
|
sortType?: 'number' | 'date';
|
|
76
40
|
reportType?: TiposColumnas;
|
|
77
41
|
visible?: TipoValorFuncion<boolean>;
|
|
78
|
-
// sticky?: boolean;
|
|
79
|
-
// stickyEnd?: boolean;
|
|
80
42
|
cssClasses?: string[];
|
|
81
43
|
cssClassesTH?: string[];
|
|
82
44
|
textCss?: string | string[];
|
|
83
45
|
cssFooterClasses?: string[];
|
|
84
46
|
datosExtra?: any;
|
|
85
|
-
|
|
86
47
|
reporte?: ColumnaTablaReporte;
|
|
87
|
-
|
|
88
48
|
innerHTMLInvisible?: (row: any) => string;
|
|
89
49
|
/** @deprecated usar `visible` en su lugar: ejm: visible: ():boolean => {}, visible: boolean */
|
|
90
50
|
esVisible?: () => boolean;
|
|
91
51
|
/** @deprecated usar `noMostrarEnLista` en su lugar: ejm: noMostrarEnLista: ():boolean => {}, noMostrarEnLista: boolean */
|
|
92
52
|
noMostrar?: () => boolean;
|
|
93
53
|
noMostrarEnLista?: TipoValorFuncion<boolean>;
|
|
94
|
-
|
|
95
54
|
click?: (row: any) => void;
|
|
96
55
|
transformar?: (row: any) => any;
|
|
97
56
|
transformarFooter?: () => any;
|
|
98
|
-
|
|
99
57
|
/** @deprecated usar `reporte.opcionesPdfmake.transformarCuerpo` */
|
|
100
58
|
transformarDirecto?: never;
|
|
101
|
-
|
|
102
59
|
}
|
|
103
|
-
|
|
104
60
|
export interface ColumnaTexto<T> extends BaseColumna<T> {
|
|
105
61
|
type: 'text';
|
|
106
62
|
innerHTML?: (row: any) => string;
|
|
107
63
|
zeroFill?: number;
|
|
108
64
|
text?: PropiedadesText;
|
|
109
65
|
}
|
|
110
|
-
|
|
111
66
|
export interface ColumnaCheckbox<T> extends BaseColumna<T> {
|
|
112
67
|
type: 'checkbox';
|
|
113
68
|
chkField?: string | string[];
|
|
114
69
|
chkFieldPersistente?: boolean;
|
|
115
70
|
chkFieldSeparador?: string;
|
|
116
71
|
}
|
|
117
|
-
|
|
118
72
|
export interface ColumnaMoney<T> extends BaseColumna<T> {
|
|
119
73
|
type: 'money';
|
|
120
74
|
simboloMoneda?: string;
|
|
121
75
|
format?: string;
|
|
122
76
|
}
|
|
123
|
-
|
|
124
77
|
export interface ColumnaIcons<T> extends BaseColumna<T> {
|
|
125
78
|
type: 'icons';
|
|
126
79
|
iconsDef: ColumnaIconsDef;
|
|
127
|
-
|
|
128
80
|
}
|
|
129
81
|
export interface ColumnaProgress<T> extends BaseColumna<T> {
|
|
130
82
|
type: 'progress';
|
|
131
83
|
progressbar: PropiedadesProgressBar;
|
|
132
84
|
}
|
|
133
|
-
|
|
134
85
|
export interface ColumnaDate<T> extends BaseColumna<T> {
|
|
135
86
|
type: 'date';
|
|
136
87
|
format?: string;
|
|
137
88
|
}
|
|
138
|
-
|
|
139
89
|
export interface ColumnaNumber<T> extends BaseColumna<T> {
|
|
140
90
|
type: 'number';
|
|
141
91
|
format?: string;
|
|
142
92
|
}
|
|
143
|
-
|
|
144
93
|
export interface ColumnaExpandir<T> extends BaseColumna<T> {
|
|
145
94
|
type: 'expandir';
|
|
146
95
|
}
|
|
@@ -148,52 +97,27 @@ export interface ColumnaYesNo<T> extends BaseColumna<T> {
|
|
|
148
97
|
type: 'yes_no';
|
|
149
98
|
yesIcon?: string;
|
|
150
99
|
yesTooltip?: string;
|
|
151
|
-
yesValue?: any
|
|
100
|
+
yesValue?: any;
|
|
152
101
|
noIcon?: string;
|
|
153
102
|
noTooltip?: string;
|
|
154
|
-
noValue?: any
|
|
103
|
+
noValue?: any;
|
|
155
104
|
}
|
|
156
|
-
|
|
157
105
|
export interface ColumnaEstiloEstablecido<T> extends BaseColumna<T> {
|
|
158
106
|
type: 'estiloEstablecido';
|
|
159
107
|
propertyTemplate: PropiedadString<T> | string;
|
|
160
108
|
}
|
|
161
|
-
|
|
162
109
|
export interface ColumnaOtros<T> extends BaseColumna<T> {
|
|
163
|
-
type:
|
|
164
|
-
// | 'estiloEstablecido'
|
|
165
|
-
| 'image'
|
|
166
|
-
| 'custom'
|
|
167
|
-
| 'estado'
|
|
168
|
-
| 'numeracion_automatica';
|
|
169
|
-
|
|
110
|
+
type: 'image' | 'custom' | 'estado' | 'numeracion_automatica';
|
|
170
111
|
/** @deprecated */
|
|
171
112
|
readonly estados?: object[];
|
|
172
113
|
}
|
|
173
|
-
|
|
174
|
-
// 🔹 Unimos todas las interfaces en un solo tipo discriminado
|
|
175
|
-
export type ColumnaTabla<T> =
|
|
176
|
-
| ColumnaEstiloEstablecido<T>
|
|
177
|
-
|
|
178
|
-
| ColumnaTexto<T>
|
|
179
|
-
| ColumnaCheckbox<T>
|
|
180
|
-
| ColumnaMoney<T>
|
|
181
|
-
| ColumnaIcons<T>
|
|
182
|
-
| ColumnaProgress<T>
|
|
183
|
-
| ColumnaDate<T>
|
|
184
|
-
| ColumnaNumber<T>
|
|
185
|
-
| ColumnaExpandir<T>
|
|
186
|
-
| ColumnaYesNo<T>
|
|
187
|
-
| ColumnaOtros<T>
|
|
188
|
-
|
|
189
|
-
// 🟢 Definición de propiedades específicas
|
|
114
|
+
export 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>;
|
|
190
115
|
export interface PropiedadesText {
|
|
191
116
|
separador?: string;
|
|
192
117
|
cssContenedor?: string;
|
|
193
118
|
cssStyle?: object;
|
|
194
119
|
click?: (row: any) => void;
|
|
195
120
|
}
|
|
196
|
-
|
|
197
121
|
export interface PropiedadesProgressBar {
|
|
198
122
|
formatoNumero?: string;
|
|
199
123
|
coloresValor?: EstilosBarra[];
|
|
@@ -201,13 +125,11 @@ export interface PropiedadesProgressBar {
|
|
|
201
125
|
textoMostrar?: (row: any) => string;
|
|
202
126
|
porcentaje: (row: any) => number;
|
|
203
127
|
}
|
|
204
|
-
|
|
205
128
|
export interface ColumnaIconsDef {
|
|
206
129
|
items: TipoValorFuncion<IconsIcon[]>;
|
|
207
130
|
soloIcono?: boolean;
|
|
208
131
|
iconSize?: string;
|
|
209
132
|
}
|
|
210
|
-
|
|
211
133
|
export interface IconsIcon {
|
|
212
134
|
icon: string;
|
|
213
135
|
iconSize?: string;
|
|
@@ -218,3 +140,4 @@ export interface IconsIcon {
|
|
|
218
140
|
click?: (row: any) => void;
|
|
219
141
|
esVisible?: (row: any) => boolean;
|
|
220
142
|
}
|
|
143
|
+
export {};
|