ng-components-tsi 0.0.38 → 0.0.39
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/ng-components-tsi.mjs +5063 -0
- package/fesm2022/ng-components-tsi.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/directivas/acciones/atajos.directive.d.ts +8 -0
- package/lib/directivas/animaciones/fade-animation.d.ts +3 -0
- package/lib/directivas/estilos/animated-checkbox.directive.d.ts +9 -0
- package/lib/directivas/estilos/button.constants.d.ts +64 -0
- package/lib/directivas/estilos/buttons-modal.directive.d.ts +11 -0
- package/lib/directivas/estilos/buttons-outline-directive.d.ts +11 -0
- package/lib/directivas/estilos/icons.directive.d.ts +11 -0
- package/lib/directivas/inputs/caracteres-codigo.directive.d.ts +12 -0
- package/lib/directivas/inputs/decimal.directive.d.ts +13 -0
- package/lib/directivas/inputs/only-day.directive.d.ts +8 -0
- package/lib/directivas/inputs/only-number-flex.directive.d.ts +9 -0
- package/lib/directivas/inputs/only-number.directive.d.ts +8 -0
- package/lib/enums/table-events.d.ts +5 -0
- package/lib/modals/general/md-generico/md-generico.component.d.ts +25 -0
- package/lib/models/button-color.model.d.ts +3 -0
- package/{src/lib/models/button-properties.model.ts → lib/models/button-properties.model.d.ts} +7 -8
- package/lib/models/cell-rendered.d.ts +11 -0
- package/lib/models/comercial/documentos-cab-auxiliares.model.d.ts +17 -0
- package/{src/lib/models/dropdownoption.model.ts → lib/models/dropdownoption.model.d.ts} +14 -15
- package/lib/models/general/recursos.model.d.ts +271 -0
- package/lib/models/general/utils.interface.d.ts +57 -0
- package/lib/models/input-config.d.ts +25 -0
- package/{src/lib/models/selected-row.ts → lib/models/selected-row.d.ts} +4 -4
- package/{src/lib/models/table-data.model.ts → lib/models/table-data.model.d.ts} +21 -21
- package/lib/service/alert-confirmation.service.d.ts +26 -0
- package/lib/service/alert-error.service.d.ts +9 -0
- package/lib/service/alert.service.d.ts +33 -0
- package/lib/service/formateador.service.d.ts +10 -0
- package/lib/service/toast.service.d.ts +25 -0
- package/lib/ui/alerts/alert-confirmation/alert-confirmation.component.d.ts +32 -0
- package/lib/ui/alerts/alert-error/alert-error.component.d.ts +9 -0
- package/lib/ui/alerts/alerta/alerta.component.d.ts +12 -0
- package/lib/ui/alerts/badge/badge.component.d.ts +8 -0
- package/lib/ui/alerts/toaster/toaster.component.d.ts +17 -0
- package/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.d.ts +11 -0
- package/lib/ui/dropdown/dropdown-simple/dropdown.component.d.ts +13 -0
- package/lib/ui/forms/button/button.component.d.ts +47 -0
- package/lib/ui/forms/filter-toggle/filter-toggle.component.d.ts +9 -0
- package/lib/ui/forms/header/header.component.d.ts +17 -0
- package/lib/ui/forms/inputs/autocomplete/autocomplete.component.d.ts +43 -0
- package/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.d.ts +48 -0
- package/lib/ui/forms/inputs/check-box/check-box.component.d.ts +14 -0
- package/lib/ui/forms/inputs/doble-input/doble-input.component.d.ts +47 -0
- package/lib/ui/forms/inputs/input/input.component.d.ts +60 -0
- package/lib/ui/forms/inputs/input-clase/input-clase.component.d.ts +13 -0
- package/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.d.ts +8 -0
- package/lib/ui/forms/inputs/input-radio/input-radio.component.d.ts +24 -0
- package/lib/ui/forms/inputs/multiselected/multiselected.component.d.ts +39 -0
- package/lib/ui/forms/inputs/radio/radio.component.d.ts +14 -0
- package/lib/ui/forms/inputs/switch/switch.component.d.ts +20 -0
- package/lib/ui/forms/inputs/switch-activo/switch-activo.component.d.ts +21 -0
- package/lib/ui/forms/lists/list-option/list-option.component.d.ts +23 -0
- package/lib/ui/forms/lists/list-situaciones/list-situaciones.component.d.ts +28 -0
- package/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.d.ts +26 -0
- package/lib/ui/forms/sidebar/sidebar.component.d.ts +15 -0
- package/lib/ui/general/detalle-credito/detalle-credito.component.d.ts +8 -0
- package/lib/ui/general/montos-calcular/montos-calcular.component.d.ts +12 -0
- package/lib/ui/general/spinner/spinner.component.d.ts +5 -0
- package/lib/ui/tables/card-mobile/card-mobile.component.d.ts +17 -0
- package/lib/ui/tables/dropdown-menu/dropdown-menu.component.d.ts +43 -0
- package/lib/ui/tables/paginador/paginador.component.d.ts +20 -0
- package/lib/ui/tables/table-advance/table-advance.component.d.ts +94 -0
- package/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.d.ts +82 -0
- package/lib/ui/tables/table-agrupada/table-agrupada.component.d.ts +96 -0
- package/lib/ui/tables/table-busqueda/table-busqueda.component.d.ts +48 -0
- package/lib/ui/tables/table-detalle/table-detalle.component.d.ts +59 -0
- package/lib/ui/tables/table-simple/table-simple.component.d.ts +39 -0
- package/lib/ui/tables/table-ultimate/table-ultimate.component.d.ts +84 -0
- package/lib/ui/tabs/nav-tabs/nav-tabs.component.d.ts +9 -0
- package/lib/ui/tabs/tab-item/tab-item.component.d.ts +9 -0
- package/lib/utils/general/validaciones-simple.d.ts +2 -0
- package/lib/utils/general/validaciones.d.ts +11 -0
- package/lib/utils/helpers/api-result.d.ts +17 -0
- package/lib/utils/helpers/modal-result.d.ts +10 -0
- package/ng-components-tsi-0.0.39.tgz +0 -0
- package/package.json +31 -23
- package/{src/public-api.ts → public-api.d.ts} +68 -99
- package/ng-package.json +0 -7
- package/src/lib/directivas/acciones/atajos.directive.ts +0 -26
- package/src/lib/directivas/animaciones/fade-animation.ts +0 -45
- package/src/lib/directivas/animaciones/fade.directive.ts +0 -43
- package/src/lib/directivas/estilos/animated-checkbox.directive.ts +0 -26
- package/src/lib/directivas/estilos/button.constants.ts +0 -66
- package/src/lib/directivas/estilos/buttons-modal.directive.ts +0 -36
- package/src/lib/directivas/estilos/buttons-outline-directive.ts +0 -27
- package/src/lib/directivas/estilos/icons.directive.ts +0 -26
- package/src/lib/directivas/inputs/caracteres-codigo.directive.ts +0 -63
- package/src/lib/directivas/inputs/decimal.directive.ts +0 -51
- package/src/lib/directivas/inputs/only-day.directive.ts +0 -53
- package/src/lib/directivas/inputs/only-number-flex.directive.ts +0 -50
- package/src/lib/directivas/inputs/only-number.directive.ts +0 -53
- package/src/lib/enums/table-events.ts +0 -5
- package/src/lib/modals/general/md-generico/md-generico.component.html +0 -44
- package/src/lib/modals/general/md-generico/md-generico.component.scss +0 -4
- package/src/lib/modals/general/md-generico/md-generico.component.ts +0 -50
- package/src/lib/models/button-color.model.ts +0 -9
- package/src/lib/models/cell-rendered.ts +0 -12
- package/src/lib/models/comercial/documentos-cab-auxiliares.model.ts +0 -18
- package/src/lib/models/general/recursos.model.ts +0 -285
- package/src/lib/models/general/utils.interface.ts +0 -66
- package/src/lib/models/input-config.ts +0 -26
- package/src/lib/service/alert-confirmation.service.ts +0 -87
- package/src/lib/service/alert-error.service.ts +0 -27
- package/src/lib/service/alert.service.ts +0 -216
- package/src/lib/service/formateador.service.ts +0 -49
- package/src/lib/service/toast.service.ts +0 -75
- package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.html +0 -40
- package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.scss +0 -42
- package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.ts +0 -118
- package/src/lib/ui/alerts/alert-error/alert-error.component.html +0 -11
- package/src/lib/ui/alerts/alert-error/alert-error.component.scss +0 -39
- package/src/lib/ui/alerts/alert-error/alert-error.component.ts +0 -27
- package/src/lib/ui/alerts/alerta/alerta.component.html +0 -18
- package/src/lib/ui/alerts/alerta/alerta.component.scss +0 -104
- package/src/lib/ui/alerts/alerta/alerta.component.ts +0 -25
- package/src/lib/ui/alerts/badge/badge.component.ts +0 -16
- package/src/lib/ui/alerts/toaster/toaster.component.html +0 -52
- package/src/lib/ui/alerts/toaster/toaster.component.scss +0 -275
- package/src/lib/ui/alerts/toaster/toaster.component.ts +0 -50
- package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.html +0 -20
- package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.scss +0 -11
- package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.ts +0 -18
- package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.html +0 -10
- package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.scss +0 -54
- package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.ts +0 -36
- package/src/lib/ui/forms/button/button.component.html +0 -69
- package/src/lib/ui/forms/button/button.component.scss +0 -126
- package/src/lib/ui/forms/button/button.component.ts +0 -137
- package/src/lib/ui/forms/filter-toggle/filter-toggle.component.scss +0 -22
- package/src/lib/ui/forms/filter-toggle/filter-toggle.component.ts +0 -29
- package/src/lib/ui/forms/header/header.component.html +0 -22
- package/src/lib/ui/forms/header/header.component.scss +0 -22
- package/src/lib/ui/forms/header/header.component.ts +0 -40
- package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.html +0 -46
- package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.scss +0 -90
- package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.ts +0 -203
- package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.html +0 -61
- package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.scss +0 -128
- package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.ts +0 -145
- package/src/lib/ui/forms/inputs/check-box/check-box.component.html +0 -6
- package/src/lib/ui/forms/inputs/check-box/check-box.component.ts +0 -24
- package/src/lib/ui/forms/inputs/doble-input/doble-input.component.html +0 -60
- package/src/lib/ui/forms/inputs/doble-input/doble-input.component.scss +0 -86
- package/src/lib/ui/forms/inputs/doble-input/doble-input.component.ts +0 -129
- package/src/lib/ui/forms/inputs/input/input.component.html +0 -169
- package/src/lib/ui/forms/inputs/input/input.component.scss +0 -74
- package/src/lib/ui/forms/inputs/input/input.component.ts +0 -147
- package/src/lib/ui/forms/inputs/input-clase/input-clase.component.html +0 -30
- package/src/lib/ui/forms/inputs/input-clase/input-clase.component.scss +0 -0
- package/src/lib/ui/forms/inputs/input-clase/input-clase.component.ts +0 -28
- package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.html +0 -41
- package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.scss +0 -0
- package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.ts +0 -17
- package/src/lib/ui/forms/inputs/input-radio/input-radio.component.html +0 -26
- package/src/lib/ui/forms/inputs/input-radio/input-radio.component.scss +0 -53
- package/src/lib/ui/forms/inputs/input-radio/input-radio.component.ts +0 -36
- package/src/lib/ui/forms/inputs/multiselected/multiselected.component.html +0 -56
- package/src/lib/ui/forms/inputs/multiselected/multiselected.component.scss +0 -145
- package/src/lib/ui/forms/inputs/multiselected/multiselected.component.ts +0 -109
- package/src/lib/ui/forms/inputs/radio/radio.component.html +0 -7
- package/src/lib/ui/forms/inputs/radio/radio.component.scss +0 -0
- package/src/lib/ui/forms/inputs/radio/radio.component.ts +0 -23
- package/src/lib/ui/forms/inputs/switch/switch.component.html +0 -12
- package/src/lib/ui/forms/inputs/switch/switch.component.scss +0 -48
- package/src/lib/ui/forms/inputs/switch/switch.component.ts +0 -50
- package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.html +0 -12
- package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.scss +0 -65
- package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.ts +0 -52
- package/src/lib/ui/forms/lists/list-option/list-option.component.html +0 -24
- package/src/lib/ui/forms/lists/list-option/list-option.component.scss +0 -49
- package/src/lib/ui/forms/lists/list-option/list-option.component.ts +0 -35
- package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.html +0 -29
- package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.scss +0 -0
- package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.ts +0 -99
- package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.html +0 -46
- package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.scss +0 -30
- package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.ts +0 -96
- package/src/lib/ui/forms/sidebar/sidebar.component.html +0 -33
- package/src/lib/ui/forms/sidebar/sidebar.component.scss +0 -85
- package/src/lib/ui/forms/sidebar/sidebar.component.ts +0 -61
- package/src/lib/ui/general/detalle-credito/detalle-credito.component.html +0 -35
- package/src/lib/ui/general/detalle-credito/detalle-credito.component.scss +0 -35
- package/src/lib/ui/general/detalle-credito/detalle-credito.component.ts +0 -14
- package/src/lib/ui/general/montos-calcular/montos-calcular.component.html +0 -17
- package/src/lib/ui/general/montos-calcular/montos-calcular.component.scss +0 -36
- package/src/lib/ui/general/montos-calcular/montos-calcular.component.ts +0 -19
- package/src/lib/ui/general/spinner/spinner.component.html +0 -8
- package/src/lib/ui/general/spinner/spinner.component.scss +0 -96
- package/src/lib/ui/general/spinner/spinner.component.ts +0 -11
- package/src/lib/ui/tables/card-mobile/card-mobile.component.html +0 -34
- package/src/lib/ui/tables/card-mobile/card-mobile.component.scss +0 -0
- package/src/lib/ui/tables/card-mobile/card-mobile.component.ts +0 -36
- package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.html +0 -59
- package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.scss +0 -88
- package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.ts +0 -171
- package/src/lib/ui/tables/paginador/paginador.component.html +0 -12
- package/src/lib/ui/tables/paginador/paginador.component.scss +0 -27
- package/src/lib/ui/tables/paginador/paginador.component.ts +0 -49
- package/src/lib/ui/tables/table-advance/table-advance.component.html +0 -322
- package/src/lib/ui/tables/table-advance/table-advance.component.scss +0 -282
- package/src/lib/ui/tables/table-advance/table-advance.component.ts +0 -421
- package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.html +0 -226
- package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.scss +0 -282
- package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.ts +0 -352
- package/src/lib/ui/tables/table-agrupada/table-agrupada.component.html +0 -340
- package/src/lib/ui/tables/table-agrupada/table-agrupada.component.scss +0 -282
- package/src/lib/ui/tables/table-agrupada/table-agrupada.component.ts +0 -425
- package/src/lib/ui/tables/table-busqueda/table-busqueda.component.html +0 -130
- package/src/lib/ui/tables/table-busqueda/table-busqueda.component.scss +0 -189
- package/src/lib/ui/tables/table-busqueda/table-busqueda.component.ts +0 -199
- package/src/lib/ui/tables/table-detalle/table-detalle.component.html +0 -220
- package/src/lib/ui/tables/table-detalle/table-detalle.component.scss +0 -135
- package/src/lib/ui/tables/table-detalle/table-detalle.component.ts +0 -336
- package/src/lib/ui/tables/table-simple/table-simple.component.html +0 -116
- package/src/lib/ui/tables/table-simple/table-simple.component.scss +0 -70
- package/src/lib/ui/tables/table-simple/table-simple.component.ts +0 -141
- package/src/lib/ui/tables/table-ultimate/table-ultimate.component.html +0 -268
- package/src/lib/ui/tables/table-ultimate/table-ultimate.component.scss +0 -282
- package/src/lib/ui/tables/table-ultimate/table-ultimate.component.ts +0 -383
- package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.html +0 -12
- package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.scss +0 -100
- package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.ts +0 -19
- package/src/lib/ui/tabs/tab-item/tab-item.component.html +0 -0
- package/src/lib/ui/tabs/tab-item/tab-item.component.scss +0 -0
- package/src/lib/ui/tabs/tab-item/tab-item.component.ts +0 -13
- package/src/lib/utils/ayuda-global/datatable.ts +0 -67
- package/src/lib/utils/ayuda-global/filtros-busqueda.ts +0 -51
- package/src/lib/utils/general/validaciones-simple.ts +0 -14
- package/src/lib/utils/general/validaciones.ts +0 -123
- package/src/lib/utils/helpers/api-result.ts +0 -95
- package/src/lib/utils/helpers/modal-result.ts +0 -34
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ElementRef, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { CellRender, CellRendered } from '../../../models/cell-rendered';
|
|
3
|
+
import { TableData } from '../../../models/table-data.model';
|
|
4
|
+
import { SelectedRow } from '../../../models/selected-row';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface HeaderSegment {
|
|
7
|
+
type: 'column' | 'group';
|
|
8
|
+
column?: TableData;
|
|
9
|
+
group?: {
|
|
10
|
+
label: string;
|
|
11
|
+
colspan: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare class TableAgrupadaComponent {
|
|
15
|
+
tableHeaders: import("@angular/core").Signal<QueryList<ElementRef<any>>>;
|
|
16
|
+
customActions: import("@angular/core").Signal<TemplateRef<any>>;
|
|
17
|
+
anchor: import("@angular/core").Signal<ElementRef<HTMLTableRowElement>>;
|
|
18
|
+
private readonly formateador;
|
|
19
|
+
private decimalPipe;
|
|
20
|
+
titleTabla: import("@angular/core").InputSignal<string>;
|
|
21
|
+
rows: import("@angular/core").InputSignal<any[]>;
|
|
22
|
+
columns: import("@angular/core").InputSignal<any[]>;
|
|
23
|
+
withDetails: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
withFiltro: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
altoContainer: import("@angular/core").InputSignal<number>;
|
|
26
|
+
colorHeader: import("@angular/core").InputSignal<"normal" | "light">;
|
|
27
|
+
busqueda: import("@angular/core").WritableSignal<string>;
|
|
28
|
+
selectedRow: import("@angular/core").ModelSignal<any>;
|
|
29
|
+
identifier: import("@angular/core").InputSignal<string[]>;
|
|
30
|
+
altoContenedor: import("@angular/core").WritableSignal<number>;
|
|
31
|
+
withHeight: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
rendered: import("@angular/core").InputSignal<CellRendered[]>;
|
|
33
|
+
withTotal: import("@angular/core").InputSignal<boolean>;
|
|
34
|
+
withCheckbox: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
selectItems: import("@angular/core").ModelSignal<SelectedRow<any>[]>;
|
|
36
|
+
isDarkMode: import("@angular/core").InputSignal<boolean>;
|
|
37
|
+
sortColumn: string | null;
|
|
38
|
+
sortDirection: 'asc' | 'desc';
|
|
39
|
+
expandedRows: number;
|
|
40
|
+
activeMobileMode: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
dataVirtual: import("@angular/core").WritableSignal<any[]>;
|
|
42
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
43
|
+
isLoadingResponsive: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
+
private loadedCount;
|
|
45
|
+
private observer;
|
|
46
|
+
maxItems: import("@angular/core").InputSignal<number>;
|
|
47
|
+
batchSize: import("@angular/core").InputSignal<number>;
|
|
48
|
+
rowClassFn: import("@angular/core").InputSignal<(row: any) => string | string[] | Record<string, boolean>>;
|
|
49
|
+
rowDisabledFn: import("@angular/core").InputSignal<(row: any) => boolean>;
|
|
50
|
+
hasColumnGroups: import("@angular/core").Signal<boolean>;
|
|
51
|
+
groupedColumns: import("@angular/core").Signal<any[]>;
|
|
52
|
+
headerSegments: import("@angular/core").Signal<HeaderSegment[]>;
|
|
53
|
+
rowEvent: import("@angular/core").OutputEmitterRef<any>;
|
|
54
|
+
rowFormat: import("@angular/core").Signal<any[]>;
|
|
55
|
+
rowFilter: import("@angular/core").WritableSignal<any[]>;
|
|
56
|
+
filtrarColumnas: import("@angular/core").WritableSignal<{
|
|
57
|
+
[caption: string]: boolean;
|
|
58
|
+
}>;
|
|
59
|
+
toggleFiltros(event: Event): void;
|
|
60
|
+
visibilidadColumn: import("@angular/core").WritableSignal<{
|
|
61
|
+
[key: string]: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
concatenarValue(obj: any, value: string[]): string;
|
|
64
|
+
isMobile: import("@angular/core").WritableSignal<boolean>;
|
|
65
|
+
constructor();
|
|
66
|
+
onResize(event: any): void;
|
|
67
|
+
resetSroll(): void;
|
|
68
|
+
actionsAnchor(): void;
|
|
69
|
+
selectRow(index: any): void;
|
|
70
|
+
sortTable(column: string): void;
|
|
71
|
+
toggleExpandRow(index: number): void;
|
|
72
|
+
textoDigitado(event: Event): void;
|
|
73
|
+
getHighlight(text: any, fieldname: string): string;
|
|
74
|
+
getSituacionNumberFromColumns(row: any, columns: any[]): number;
|
|
75
|
+
private filtraItem;
|
|
76
|
+
validaVisibilidad(value: boolean): boolean;
|
|
77
|
+
isCheckboxDisabled(row: any): boolean;
|
|
78
|
+
allCheck(event: Event): void;
|
|
79
|
+
validaAllCheck(): boolean;
|
|
80
|
+
isItemSelected(id: string): boolean;
|
|
81
|
+
toogleItem(idList: string, event: Event): void;
|
|
82
|
+
resolveCell(col: string, row: any): CellRender | null;
|
|
83
|
+
getTotals(fieldname: string): string;
|
|
84
|
+
getColspanBeforeTotals(): number;
|
|
85
|
+
getRowClass(row: any): {
|
|
86
|
+
[key: string]: boolean;
|
|
87
|
+
};
|
|
88
|
+
getPosition(col: TableData): string;
|
|
89
|
+
private loadMore;
|
|
90
|
+
onClick(row: any): void;
|
|
91
|
+
onDoubleClick(row: any): void;
|
|
92
|
+
onRightClick(event: MouseEvent, row: any): void;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableAgrupadaComponent, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableAgrupadaComponent, "app-table-agrupada", never, { "titleTabla": { "alias": "titleTabla"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "withDetails": { "alias": "withDetails"; "required": false; "isSignal": true; }; "withFiltro": { "alias": "withFiltro"; "required": false; "isSignal": true; }; "altoContainer": { "alias": "altoContainer"; "required": false; "isSignal": true; }; "colorHeader": { "alias": "colorHeader"; "required": false; "isSignal": true; }; "selectedRow": { "alias": "selectedRow"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "withHeight": { "alias": "withHeight"; "required": false; "isSignal": true; }; "rendered": { "alias": "rendered"; "required": false; "isSignal": true; }; "withTotal": { "alias": "withTotal"; "required": false; "isSignal": true; }; "withCheckbox": { "alias": "withCheckbox"; "required": false; "isSignal": true; }; "selectItems": { "alias": "selectItems"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; "activeMobileMode": { "alias": "activeMobileMode"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; "batchSize": { "alias": "batchSize"; "required": false; "isSignal": true; }; "rowClassFn": { "alias": "rowClassFn"; "required": false; "isSignal": true; }; "rowDisabledFn": { "alias": "rowDisabledFn"; "required": false; "isSignal": true; }; }, { "selectedRow": "selectedRowChange"; "selectItems": "selectItemsChange"; "rowEvent": "rowEvent"; }, ["customActions"], never, true, never>;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TableBusquedaComponent {
|
|
4
|
+
filas: QueryList<ElementRef>;
|
|
5
|
+
tableHeaders: QueryList<ElementRef>;
|
|
6
|
+
rows: import("@angular/core").InputSignal<any[]>;
|
|
7
|
+
columns: import("@angular/core").InputSignal<any[]>;
|
|
8
|
+
withFiltro: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
mode: import("@angular/core").InputSignal<string>;
|
|
10
|
+
altoContainer: import("@angular/core").InputSignal<number>;
|
|
11
|
+
emitirBusqueda: import("@angular/core").OutputEmitterRef<string>;
|
|
12
|
+
emitirCheck: import("@angular/core").OutputEmitterRef<any>;
|
|
13
|
+
emitirSelected: import("@angular/core").OutputEmitterRef<any>;
|
|
14
|
+
colorHeader: import("@angular/core").InputSignal<"normal" | "light">;
|
|
15
|
+
busqueda: string;
|
|
16
|
+
resizingColumn: HTMLElement | null;
|
|
17
|
+
startX: number;
|
|
18
|
+
startWidth: number;
|
|
19
|
+
selectedRow: number;
|
|
20
|
+
sortColumn: string | null;
|
|
21
|
+
sortDirection: 'asc' | 'desc';
|
|
22
|
+
situacDaClave: Record<string, string>;
|
|
23
|
+
situacDaStringClave: Record<string, string>;
|
|
24
|
+
situacDaRendicion: Record<string, string>;
|
|
25
|
+
situacDaClaveRendicion: Record<string, string>;
|
|
26
|
+
situacTesoreria: Record<number, string>;
|
|
27
|
+
checkString: {
|
|
28
|
+
S: string;
|
|
29
|
+
N: string;
|
|
30
|
+
};
|
|
31
|
+
showPopover: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
selectRow(index: number): void;
|
|
33
|
+
onResizeStart(event: MouseEvent, thElement: HTMLElement): void;
|
|
34
|
+
onResizing: (event: MouseEvent) => void;
|
|
35
|
+
onResizeEnd: () => void;
|
|
36
|
+
sortTable(column: string): void;
|
|
37
|
+
textoDigitado(event: Event): void;
|
|
38
|
+
getHighlight(text: any): string;
|
|
39
|
+
desglozarValor: (valor: string) => string[];
|
|
40
|
+
getSituacionNumberFromColumns(row: any, columns: any[]): number;
|
|
41
|
+
clicCheck(item: string, event: Event, row: any): void;
|
|
42
|
+
manejarTeclado(event: KeyboardEvent): void;
|
|
43
|
+
scrollToFila(): void;
|
|
44
|
+
enviarDataClick(obj: any): void;
|
|
45
|
+
tooglePopover(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBusquedaComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBusquedaComponent, "app-table-busqueda", never, { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "withFiltro": { "alias": "withFiltro"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "altoContainer": { "alias": "altoContainer"; "required": false; "isSignal": true; }; "colorHeader": { "alias": "colorHeader"; "required": false; "isSignal": true; }; }, { "emitirBusqueda": "emitirBusqueda"; "emitirCheck": "emitirCheck"; "emitirSelected": "emitirSelected"; }, never, never, true, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { CellRender, CellRendered } from '../../../models/cell-rendered';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableDetalleComponent {
|
|
5
|
+
private datePipe;
|
|
6
|
+
private decimalPipe;
|
|
7
|
+
selectedRow: import("@angular/core").ModelSignal<any>;
|
|
8
|
+
identifier: import("@angular/core").InputSignal<string[]>;
|
|
9
|
+
altoContainer: import("@angular/core").InputSignal<number>;
|
|
10
|
+
withFiltro: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
busqueda: import("@angular/core").ModelSignal<string>;
|
|
12
|
+
rows: import("@angular/core").InputSignal<any[]>;
|
|
13
|
+
columns: import("@angular/core").InputSignal<any[]>;
|
|
14
|
+
lastItemDisabled: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
position: import("@angular/core").InputSignal<"block" | "flex">;
|
|
16
|
+
withCheckbox: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
withEditItem: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
colorHeader: import("@angular/core").InputSignal<"normal" | "light">;
|
|
19
|
+
customActions: TemplateRef<any>;
|
|
20
|
+
valueTemporal: any;
|
|
21
|
+
deleteItems: import("@angular/core").ModelSignal<number[]>;
|
|
22
|
+
selectItems: import("@angular/core").ModelSignal<any[]>;
|
|
23
|
+
isDarkMode: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
selectedRadio: import("@angular/core").ModelSignal<number>;
|
|
25
|
+
editItem: import("@angular/core").OutputEmitterRef<any>;
|
|
26
|
+
rendered: import("@angular/core").InputSignal<CellRendered[]>;
|
|
27
|
+
concatenarValue(obj: any, value: string[]): string;
|
|
28
|
+
selectRow(index: any): void;
|
|
29
|
+
getSituacionNumberFromColumns(row: any, columns: any[]): number;
|
|
30
|
+
focusData(data: any): void;
|
|
31
|
+
validarData(value: any): boolean;
|
|
32
|
+
toogleItem(index: number, event: Event): void;
|
|
33
|
+
allCheck(event: Event): void;
|
|
34
|
+
validaAllCheck(): boolean;
|
|
35
|
+
isItemSelected(index: number): boolean;
|
|
36
|
+
clickRadio(index: number): void;
|
|
37
|
+
validaLastRegistro: (index: number) => boolean;
|
|
38
|
+
limpiarNumero(numero: any): any;
|
|
39
|
+
widthDefault: (column: any) => any;
|
|
40
|
+
manejarDataEtiqueta(data: any, row: any): void;
|
|
41
|
+
limpiarEtiqueta(event: boolean, row: any): void;
|
|
42
|
+
generateKeyDisabled: (item: any, column: any) => any;
|
|
43
|
+
validaAccionDescri: (index: number) => boolean;
|
|
44
|
+
validarFunction: (value: any) => any;
|
|
45
|
+
validaEdit(positi: number): boolean;
|
|
46
|
+
disabledColumn: (row: any, column: any) => boolean;
|
|
47
|
+
resolveCell(col: string, row: any): CellRender;
|
|
48
|
+
getRowClass(row: any): string;
|
|
49
|
+
rowFilter: import("@angular/core").Signal<any[]>;
|
|
50
|
+
getTipoCampo(fieldname: string): string;
|
|
51
|
+
private filtraItem;
|
|
52
|
+
filtrarColumnas: import("@angular/core").WritableSignal<{
|
|
53
|
+
[caption: string]: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
textoDigitado(event: Event): void;
|
|
56
|
+
getHighlight(text: any): string;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableDetalleComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableDetalleComponent, "app-table-detalle", never, { "selectedRow": { "alias": "selectedRow"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "altoContainer": { "alias": "altoContainer"; "required": false; "isSignal": true; }; "withFiltro": { "alias": "withFiltro"; "required": false; "isSignal": true; }; "busqueda": { "alias": "busqueda"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "lastItemDisabled": { "alias": "lastItemDisabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "withCheckbox": { "alias": "withCheckbox"; "required": false; "isSignal": true; }; "withEditItem": { "alias": "withEditItem"; "required": false; "isSignal": true; }; "colorHeader": { "alias": "colorHeader"; "required": false; "isSignal": true; }; "deleteItems": { "alias": "deleteItems"; "required": false; "isSignal": true; }; "selectItems": { "alias": "selectItems"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; "selectedRadio": { "alias": "selectedRadio"; "required": false; "isSignal": true; }; "rendered": { "alias": "rendered"; "required": false; "isSignal": true; }; }, { "selectedRow": "selectedRowChange"; "busqueda": "busquedaChange"; "deleteItems": "deleteItemsChange"; "selectItems": "selectItemsChange"; "selectedRadio": "selectedRadioChange"; "editItem": "editItem"; }, ["customActions"], never, true, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { CellRender, CellRendered } from '../../../models/cell-rendered';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableSimpleComponent {
|
|
5
|
+
private datePipe;
|
|
6
|
+
private decimalPipe;
|
|
7
|
+
withFiltro: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
busqueda: import("@angular/core").ModelSignal<string>;
|
|
9
|
+
rows: import("@angular/core").InputSignal<any[]>;
|
|
10
|
+
columns: import("@angular/core").InputSignal<any[]>;
|
|
11
|
+
altoContainer: import("@angular/core").InputSignal<number>;
|
|
12
|
+
selectedRow: import("@angular/core").ModelSignal<any>;
|
|
13
|
+
identifier: import("@angular/core").InputSignal<string[]>;
|
|
14
|
+
position: import("@angular/core").InputSignal<"block" | "flex">;
|
|
15
|
+
withSelect: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
selected: import("@angular/core").OutputEmitterRef<any>;
|
|
17
|
+
rendered: import("@angular/core").InputSignal<CellRendered[]>;
|
|
18
|
+
isDarkMode: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
customActions: TemplateRef<any>;
|
|
20
|
+
checkString: {
|
|
21
|
+
S: string;
|
|
22
|
+
N: string;
|
|
23
|
+
};
|
|
24
|
+
rowFilter: import("@angular/core").Signal<any[]>;
|
|
25
|
+
filtrarColumnas: import("@angular/core").WritableSignal<{
|
|
26
|
+
[caption: string]: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
concatenarValue(obj: any, value: string[]): string;
|
|
29
|
+
selectRow(index: any): void;
|
|
30
|
+
checkItem(row: any): void;
|
|
31
|
+
getHighlight(text: any): string;
|
|
32
|
+
generateValueContainer: () => string;
|
|
33
|
+
getTipoCampo(fieldname: string): string;
|
|
34
|
+
private filtraItem;
|
|
35
|
+
textoDigitado(event: Event): void;
|
|
36
|
+
resolveCell(col: string, row: any): CellRender | null;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSimpleComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSimpleComponent, "app-table-simple", never, { "withFiltro": { "alias": "withFiltro"; "required": false; "isSignal": true; }; "busqueda": { "alias": "busqueda"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "altoContainer": { "alias": "altoContainer"; "required": false; "isSignal": true; }; "selectedRow": { "alias": "selectedRow"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "withSelect": { "alias": "withSelect"; "required": false; "isSignal": true; }; "rendered": { "alias": "rendered"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; }, { "busqueda": "busquedaChange"; "selectedRow": "selectedRowChange"; "selected": "selected"; }, ["customActions"], never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ElementRef, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { CellRender, CellRendered } from '../../../models/cell-rendered';
|
|
3
|
+
import { TableData } from '../../../models/table-data.model';
|
|
4
|
+
import { SelectedRow } from '../../../models/selected-row';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TableUltimateComponent {
|
|
7
|
+
tableHeaders: import("@angular/core").Signal<QueryList<ElementRef<any>>>;
|
|
8
|
+
customActions: import("@angular/core").Signal<TemplateRef<any>>;
|
|
9
|
+
anchor: import("@angular/core").Signal<ElementRef<HTMLTableRowElement>>;
|
|
10
|
+
private readonly formateador;
|
|
11
|
+
private decimalPipe;
|
|
12
|
+
titleTabla: import("@angular/core").InputSignal<string>;
|
|
13
|
+
rows: import("@angular/core").InputSignal<any[]>;
|
|
14
|
+
columns: import("@angular/core").InputSignal<any[]>;
|
|
15
|
+
withDetails: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
withFiltro: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
altoContainer: import("@angular/core").InputSignal<number>;
|
|
18
|
+
colorHeader: import("@angular/core").InputSignal<"normal" | "light">;
|
|
19
|
+
busqueda: import("@angular/core").WritableSignal<string>;
|
|
20
|
+
selectedRow: import("@angular/core").ModelSignal<any>;
|
|
21
|
+
identifier: import("@angular/core").InputSignal<string[]>;
|
|
22
|
+
altoContenedor: import("@angular/core").WritableSignal<number>;
|
|
23
|
+
withHeight: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
rendered: import("@angular/core").InputSignal<CellRendered[]>;
|
|
25
|
+
withTotal: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
withCheckbox: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
selectItems: import("@angular/core").ModelSignal<SelectedRow<any>[]>;
|
|
28
|
+
isDarkMode: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
sortColumn: string | null;
|
|
30
|
+
sortDirection: 'asc' | 'desc';
|
|
31
|
+
expandedRows: number;
|
|
32
|
+
activeMobileMode: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
dataVirtual: import("@angular/core").WritableSignal<any[]>;
|
|
34
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
isLoadingResponsive: import("@angular/core").WritableSignal<boolean>;
|
|
36
|
+
private loadedCount;
|
|
37
|
+
private observer;
|
|
38
|
+
maxItems: import("@angular/core").InputSignal<number>;
|
|
39
|
+
batchSize: import("@angular/core").InputSignal<number>;
|
|
40
|
+
rowClassFn: import("@angular/core").InputSignal<(row: any) => string | string[] | Record<string, boolean>>;
|
|
41
|
+
rowDisabledFn: import("@angular/core").InputSignal<(row: any) => boolean>;
|
|
42
|
+
rowEvent: import("@angular/core").OutputEmitterRef<any>;
|
|
43
|
+
rowFormat: import("@angular/core").Signal<any[]>;
|
|
44
|
+
rowFilter: import("@angular/core").WritableSignal<any[]>;
|
|
45
|
+
filtrarColumnas: import("@angular/core").WritableSignal<{
|
|
46
|
+
[caption: string]: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
toggleFiltros(event: Event): void;
|
|
49
|
+
visibilidadColumn: import("@angular/core").WritableSignal<{
|
|
50
|
+
[key: string]: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
concatenarValue(obj: any, value: string[]): string;
|
|
53
|
+
isMobile: import("@angular/core").WritableSignal<boolean>;
|
|
54
|
+
constructor();
|
|
55
|
+
onResize(event: any): void;
|
|
56
|
+
resetSroll(): void;
|
|
57
|
+
actionsAnchor(): void;
|
|
58
|
+
selectRow(index: any): void;
|
|
59
|
+
sortTable(column: string): void;
|
|
60
|
+
toggleExpandRow(index: number): void;
|
|
61
|
+
textoDigitado(event: Event): void;
|
|
62
|
+
getHighlight(text: any, fieldname: string): string;
|
|
63
|
+
getSituacionNumberFromColumns(row: any, columns: any[]): number;
|
|
64
|
+
private filtraItem;
|
|
65
|
+
validaVisibilidad(value: boolean): boolean;
|
|
66
|
+
isCheckboxDisabled(row: any): boolean;
|
|
67
|
+
allCheck(event: Event): void;
|
|
68
|
+
validaAllCheck(): boolean;
|
|
69
|
+
isItemSelected(id: string): boolean;
|
|
70
|
+
toogleItem(idList: string, event: Event): void;
|
|
71
|
+
resolveCell(col: string, row: any): CellRender | null;
|
|
72
|
+
getTotals(fieldname: string): string;
|
|
73
|
+
getColspanBeforeTotals(): number;
|
|
74
|
+
getRowClass(row: any): {
|
|
75
|
+
[key: string]: boolean;
|
|
76
|
+
};
|
|
77
|
+
getPosition(col: TableData): string;
|
|
78
|
+
private loadMore;
|
|
79
|
+
onClick(row: any): void;
|
|
80
|
+
onDoubleClick(row: any): void;
|
|
81
|
+
onRightClick(event: MouseEvent, row: any): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableUltimateComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableUltimateComponent, "app-table-ultimate", never, { "titleTabla": { "alias": "titleTabla"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "withDetails": { "alias": "withDetails"; "required": false; "isSignal": true; }; "withFiltro": { "alias": "withFiltro"; "required": false; "isSignal": true; }; "altoContainer": { "alias": "altoContainer"; "required": false; "isSignal": true; }; "colorHeader": { "alias": "colorHeader"; "required": false; "isSignal": true; }; "selectedRow": { "alias": "selectedRow"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "withHeight": { "alias": "withHeight"; "required": false; "isSignal": true; }; "rendered": { "alias": "rendered"; "required": false; "isSignal": true; }; "withTotal": { "alias": "withTotal"; "required": false; "isSignal": true; }; "withCheckbox": { "alias": "withCheckbox"; "required": false; "isSignal": true; }; "selectItems": { "alias": "selectItems"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; "activeMobileMode": { "alias": "activeMobileMode"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; "batchSize": { "alias": "batchSize"; "required": false; "isSignal": true; }; "rowClassFn": { "alias": "rowClassFn"; "required": false; "isSignal": true; }; "rowDisabledFn": { "alias": "rowDisabledFn"; "required": false; "isSignal": true; }; }, { "selectedRow": "selectedRowChange"; "selectItems": "selectItemsChange"; "rowEvent": "rowEvent"; }, ["customActions"], never, true, never>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavTabsComponent {
|
|
4
|
+
tabItems: import("@angular/core").Signal<readonly TabItemComponent[]>;
|
|
5
|
+
active: import("@angular/core").ModelSignal<string | number>;
|
|
6
|
+
isDestroy: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavTabsComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavTabsComponent, "app-nav-tabs", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "isDestroy": { "alias": "isDestroy"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["tabItems"], never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TabItemComponent {
|
|
4
|
+
id: import("@angular/core").InputSignal<string | number>;
|
|
5
|
+
title: import("@angular/core").InputSignal<string>;
|
|
6
|
+
content: import("@angular/core").Signal<TemplateRef<any>>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabItemComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabItemComponent, "app-tab-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, ["content"], never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputConfig, InputValidate } from "../../models/input-config";
|
|
2
|
+
import { ToastService } from "../../service/toast.service";
|
|
3
|
+
export declare function validaPeriodo(toast: ToastService, periodo: number, mensaje?: string): boolean;
|
|
4
|
+
export declare function validarSituacion(toast: ToastService, situac: string | number): boolean;
|
|
5
|
+
export declare function validaLista(toast: ToastService, lista: any[], valor: any, nombreLista: string, key?: string): boolean;
|
|
6
|
+
export declare function validaFecha(toast: ToastService, fechaDesde: string, fechaHasta: string, nombreDesde?: string, nombreHasta?: string): boolean;
|
|
7
|
+
export declare function validaPosicion(value: string): 'center' | 'start' | 'end';
|
|
8
|
+
export declare function validaTipo(value: string): 'text' | 'text-area' | 'date' | 'number' | 'select' | 'number-format-decimal' | 'number-integer';
|
|
9
|
+
export declare function showError(alert: ToastService, msg: string): boolean;
|
|
10
|
+
export declare function validarObligatorio(data: any, campos: any[], toast: ToastService): boolean;
|
|
11
|
+
export declare function getInputsObligatorios(data: InputConfig[]): InputValidate[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Signal, WritableSignal } from "@angular/core";
|
|
2
|
+
import { ToastService } from "../../service/toast.service";
|
|
3
|
+
import { TableData } from "../../models/table-data.model";
|
|
4
|
+
import { FormateadorService } from "../../service/formateador.service";
|
|
5
|
+
import { AlertErrorService } from "../../service/alert-error.service";
|
|
6
|
+
import { Observable } from "rxjs";
|
|
7
|
+
export declare function handleErrorsApi(err: any, alert: AlertErrorService): void;
|
|
8
|
+
export declare function throwIfEmptyArray<T>(): import("rxjs").OperatorFunction<T[], T[]>;
|
|
9
|
+
export declare function handleEmptyResult<T>(data: WritableSignal<T[]>, withFiltro: WritableSignal<boolean>, toast: ToastService, message?: string): void;
|
|
10
|
+
export declare function handleSuccessResult<T>(data: WritableSignal<T[]>, withFiltro: WritableSignal<boolean>, result: T[], reload: boolean, tableHeader?: TableData[], procesador?: FormateadorService): void;
|
|
11
|
+
export declare function handleSuccessApi(toast: ToastService, onRefresh?: () => void, message?: string): void;
|
|
12
|
+
export declare function handleReset<T>(reset: boolean, page: WritableSignal<number>, sender: WritableSignal<T>): void;
|
|
13
|
+
export declare function handleResetNoSignal<T extends {
|
|
14
|
+
offset?: number;
|
|
15
|
+
}>(reset: boolean, page: WritableSignal<number>, sender: T): void;
|
|
16
|
+
export declare function handleResource<T>(apiFn: () => Observable<T>, signal?: Signal<any>): import("@angular/core").ResourceRef<T>;
|
|
17
|
+
export declare function handleResourceV2<T>(fn: () => Observable<T> | void, signal?: Signal<any>): import("@angular/core").ResourceRef<T>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgbModalOptions, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
|
|
2
|
+
export declare function configModal(size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'): NgbModalOptions;
|
|
3
|
+
export interface ModalConfig<T> {
|
|
4
|
+
component: any;
|
|
5
|
+
data?: T;
|
|
6
|
+
init?: (instance: any) => void;
|
|
7
|
+
updatePredicate: (oldItem: T, newItem: T) => boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function handleModal<T>(modalRef: NgbModalRef, onSuccess: (data: T) => void, onDismiss?: () => void): void;
|
|
10
|
+
export declare function handleModalReturn<T>(modalRef: NgbModalRef): Promise<T | null>;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ng-components-tsi",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"shared-tsi": "^0.0.13",
|
|
6
|
-
"core-tsi": "^0.0.13",
|
|
7
|
-
"@angular/animations": "^19.2.6",
|
|
8
|
-
"@angular/cdk": "^19.2.6",
|
|
9
|
-
"sweetalert2": "^11.19.1",
|
|
10
|
-
"@ng-bootstrap/ng-bootstrap": "^18.0.0",
|
|
11
|
-
"@popperjs/core": "^2.11.8",
|
|
12
|
-
"bootstrap": "^5.3.5",
|
|
13
|
-
"@angular/common": "^19.2.0",
|
|
14
|
-
"@angular/core": "^19.2.0"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"tslib": "^2.3.0"
|
|
18
|
-
},
|
|
19
|
-
"sideEffects": false,
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "ng-components-tsi",
|
|
3
|
+
"version": "0.0.39",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"shared-tsi": "^0.0.13",
|
|
6
|
+
"core-tsi": "^0.0.13",
|
|
7
|
+
"@angular/animations": "^19.2.6",
|
|
8
|
+
"@angular/cdk": "^19.2.6",
|
|
9
|
+
"sweetalert2": "^11.19.1",
|
|
10
|
+
"@ng-bootstrap/ng-bootstrap": "^18.0.0",
|
|
11
|
+
"@popperjs/core": "^2.11.8",
|
|
12
|
+
"bootstrap": "^5.3.5",
|
|
13
|
+
"@angular/common": "^19.2.0",
|
|
14
|
+
"@angular/core": "^19.2.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"tslib": "^2.3.0"
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"module": "fesm2022/ng-components-tsi.mjs",
|
|
21
|
+
"typings": "index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
"./package.json": {
|
|
24
|
+
"default": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./index.d.ts",
|
|
28
|
+
"default": "./fesm2022/ng-components-tsi.mjs"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|