@jvsoft/components 0.0.9 → 0.0.10

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/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './tabla-mantenimiento/components/progress-bar';
4
4
  export * from './luces-navidad';
5
5
  export * from './mat-suffix-search-button';
6
6
  export * from './menu';
7
+ export * from './lista-arbol/public-api';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@jvsoft/components/lista-arbol" />
5
+ export * from './public-api';
@@ -0,0 +1,58 @@
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
+ strHijoContainer: string;
17
+ menuContextual?: {
18
+ abrirMenuContextual: Function;
19
+ cerrarMenuContextual: Function;
20
+ };
21
+ classSeleccionado: string[];
22
+ classAnulado: string[];
23
+ campoAnulado?: string | null;
24
+ templateTxtData?: TemplateRef<any>;
25
+ condicionMostrar?: (item: T) => boolean;
26
+ condicionesClaseFila: (item: T) => string[];
27
+ set selectionModel(val: SelectionModel<any>);
28
+ selectionModelChange: EventEmitter<SelectionModel<any>>;
29
+ seleccionado: EventEmitter<any>;
30
+ listaCheck: EventEmitter<T[]>;
31
+ listaCheckObj: EventEmitter<Record<string, any>>;
32
+ private _idTabla;
33
+ get idTabla(): string[];
34
+ set idTabla(val: string[] | string);
35
+ get buscarItemSeleccionado(): any;
36
+ get objSeleccionado(): any;
37
+ set objSeleccionado(val: any);
38
+ chkLista: DataModel;
39
+ listaMuestraArbol: T[];
40
+ listaOriginal: T[];
41
+ treeControl: NestedTreeControl<any, any>;
42
+ _seleccionado: any;
43
+ ngOnInit(): void;
44
+ idTablaValor(data: any): string;
45
+ propiedadSeleccion(item: any): string;
46
+ esSeleccionActual(item: any): boolean;
47
+ seleccionarItem(item?: any, forzado?: boolean): void;
48
+ hasChild: (_: number, node: any) => boolean;
49
+ opcMenu(v: any): void;
50
+ emitirModeloCheck(): void;
51
+ cambiarPadre(checkActual: T, estado: boolean): void;
52
+ cambiarCheck(checkActual: T, estado: boolean): void;
53
+ hijosActivos(tipo: 'checked' | 'indeterminate', checkActual: T): boolean;
54
+ classFila2(item: T): string[];
55
+ classFila(item: any): any[];
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListaArbolComponent<any>, never>;
57
+ 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; }; "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>;
58
+ }
@@ -0,0 +1 @@
1
+ export declare function generarArbol(lista: any[], campoId: string, campoIdPadre: string, idPadre?: null, strChildren?: string): any[];
@@ -0,0 +1 @@
1
+ export * from './lista-arbol.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jvsoft/components",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0",
6
6
  "@angular/core": ">=16.0.0",
@@ -13,6 +13,7 @@
13
13
  "xlsx": "^0.18.5"
14
14
  },
15
15
  "dependencies": {
16
+ "@jvsoft/utils": "0.0.7",
16
17
  "tslib": "^2.3.0"
17
18
  },
18
19
  "sideEffects": false,
@@ -34,6 +35,10 @@
34
35
  "types": "./luces-navidad/index.d.ts",
35
36
  "default": "./fesm2022/jvsoft-components-luces-navidad.mjs"
36
37
  },
38
+ "./lista-arbol": {
39
+ "types": "./lista-arbol/index.d.ts",
40
+ "default": "./fesm2022/jvsoft-components-lista-arbol.mjs"
41
+ },
37
42
  "./mat-suffix-search-button": {
38
43
  "types": "./mat-suffix-search-button/index.d.ts",
39
44
  "default": "./fesm2022/jvsoft-components-mat-suffix-search-button.mjs"