@jvsoft/components 0.0.5 → 0.0.7
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-menu.mjs +102 -0
- package/fesm2022/jvsoft-components-menu.mjs.map +1 -0
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs +31 -12
- package/fesm2022/jvsoft-components-tabla-mantenimiento.mjs.map +1 -1
- package/fesm2022/jvsoft-components.mjs +121 -19
- package/fesm2022/jvsoft-components.mjs.map +1 -1
- package/index.d.ts +1 -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/menu/public-api.d.ts +1 -0
- package/package.json +5 -1
- package/tabla-mantenimiento/interfaces/global/columnas-tabla.d.ts +4 -0
- package/tabla-mantenimiento/interfaces/global/no-export.d.ts +1 -1
- package/tabla-mantenimiento/interfaces/global/otros.d.ts +1 -0
package/index.d.ts
CHANGED
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './menu.component';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jvsoft/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=16.0.0",
|
|
6
6
|
"@angular/core": ">=16.0.0",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"types": "./dialog-flotante/index.d.ts",
|
|
31
31
|
"default": "./fesm2022/jvsoft-components-dialog-flotante.mjs"
|
|
32
32
|
},
|
|
33
|
+
"./menu": {
|
|
34
|
+
"types": "./menu/index.d.ts",
|
|
35
|
+
"default": "./fesm2022/jvsoft-components-menu.mjs"
|
|
36
|
+
},
|
|
33
37
|
"./mat-suffix-search-button": {
|
|
34
38
|
"types": "./mat-suffix-search-button/index.d.ts",
|
|
35
39
|
"default": "./fesm2022/jvsoft-components-mat-suffix-search-button.mjs"
|
|
@@ -28,6 +28,7 @@ export interface IconsIcon {
|
|
|
28
28
|
export type TiposColumnasNuevo = 'text' | 'checkbox' | 'money' | 'icon' | 'icons' | 'progress' | 'expandir' | 'date' | 'number';
|
|
29
29
|
type PropiedadString<T> = Extract<keyof T, string>;
|
|
30
30
|
interface BaseColumna<T> {
|
|
31
|
+
tableDataIndex?: number;
|
|
31
32
|
label: string;
|
|
32
33
|
labelLista?: string;
|
|
33
34
|
property: PropiedadString<T> | string;
|
|
@@ -45,8 +46,11 @@ interface BaseColumna<T> {
|
|
|
45
46
|
datosExtra?: any;
|
|
46
47
|
reporte?: ColumnaTablaReporte;
|
|
47
48
|
innerHTMLInvisible?: (row: any) => string;
|
|
49
|
+
/** @deprecated usar `visible` en su lugar: ejm: visible: ():boolean => {}, visible: boolean */
|
|
48
50
|
esVisible?: () => boolean;
|
|
51
|
+
/** @deprecated usar `noMostrarEnLista` en su lugar: ejm: noMostrarEnLista: ():boolean => {}, noMostrarEnLista: boolean */
|
|
49
52
|
noMostrar?: () => boolean;
|
|
53
|
+
noMostrarEnLista?: TipoValorFuncion<boolean>;
|
|
50
54
|
click?: (row: any) => void;
|
|
51
55
|
transformar?: (row: any) => any;
|
|
52
56
|
transformarFooter?: () => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type TipoValorFuncion<T> = T | ((...param: any) => T);
|
|
2
|
-
export declare function tipoValorFuncion<T>(datoParam: T, ...param: any[]): T;
|
|
2
|
+
export declare function tipoValorFuncion<T>(datoParam: TipoValorFuncion<T>, defaultValue?: T, ...param: any[]): T | undefined;
|