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
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
@if (withFiltro()) {
|
|
2
|
-
<div class="col-12 mb-2 mt-2 d-flex justify-content-end align-items-center position-relative">
|
|
3
|
-
<label for="" class="form-label me-2 pt-2">Buscar</label>
|
|
4
|
-
<input type="text" class="form-control cw-250" (input)="textoDigitado($event)">
|
|
5
|
-
<button (click)="togglePopoverFilter()" class="btn btn-dark boton-buscar fs-7">
|
|
6
|
-
<i class="fas fa-cog"></i>
|
|
7
|
-
</button>
|
|
8
|
-
@if (showPopoverFilter()) {
|
|
9
|
-
<div class="popover-menu-filter bg-white shadow" @dropdownAnimation>
|
|
10
|
-
<div class="popover-title fs-7 bg-white">Filtros</div>
|
|
11
|
-
<div class="form-check form-switch text-start">
|
|
12
|
-
<input class="form-check-input" type="checkbox" [checked]="true" (change)="toggleFiltros($event)">
|
|
13
|
-
<label class="form-check-label">Todos</label>
|
|
14
|
-
</div>
|
|
15
|
-
@for (col of columns(); track col.caption) {
|
|
16
|
-
<div class="form-check form-switch text-start">
|
|
17
|
-
<input type="checkbox" class="form-check-input" id="{{ 'filter_' + col.caption }}"
|
|
18
|
-
[(ngModel)]="filtrarColumnas()[col.fieldname]" />
|
|
19
|
-
<label class="form-check-label" for="{{ 'filter_' + col.caption }}">
|
|
20
|
-
{{ col.caption }}
|
|
21
|
-
</label>
|
|
22
|
-
</div>
|
|
23
|
-
}
|
|
24
|
-
</div>
|
|
25
|
-
}
|
|
26
|
-
</div>
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
<!-- VISTA MOBILE -->
|
|
30
|
-
|
|
31
|
-
@if (isLoadingResponsive()) {
|
|
32
|
-
<div class="d-flex flex-column justify-content-center align-items-center py-2">
|
|
33
|
-
<div class="spinner-border text-secondary mb-2" role="status"></div>
|
|
34
|
-
<span class="ms-2 fs-6">Cargando...</span>
|
|
35
|
-
</div>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@if (!isLoadingResponsive()) {
|
|
39
|
-
|
|
40
|
-
@if (isMobile()) {
|
|
41
|
-
<app-card-mobile [data]="rowFilter()" [columns]="columns()" [actions]="customActions()" [identifier]="identifier()"
|
|
42
|
-
[titleTabla]="titleTabla()" [altoContainer]="altoContainer()" />
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@if (!isMobile()) {
|
|
46
|
-
|
|
47
|
-
<div class="table-container table-responsive"
|
|
48
|
-
[style.height]="withHeight() && altoContenedor() ? 'calc(100vh - ' + altoContenedor() + 'px)' : ''"
|
|
49
|
-
[style.max-height]="altoContenedor()? 'calc(100vh - ' + altoContenedor() + 'px)' : ''">
|
|
50
|
-
<div>
|
|
51
|
-
<table #table class="table table-striped normal-table" [ngClass]="isDarkMode() ? 'table-dark' : ''">
|
|
52
|
-
<thead>
|
|
53
|
-
<tr class="shadow-sm">
|
|
54
|
-
@if (withDetails()) {
|
|
55
|
-
<th class="cw-20 b-table" [ngClass]="colorHeader()== 'normal' ? 'h-table' : ''"></th>
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@if (withCheckbox()) {
|
|
59
|
-
<th class="cw-20 b-table" [ngClass]="colorHeader()== 'normal' ? 'h-table' : ''">
|
|
60
|
-
<input type="checkbox" class="form-check-input fs-8 border border-secondary"
|
|
61
|
-
[checked]="validaAllCheck()" (change)="allCheck($event)">
|
|
62
|
-
</th>
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@if (customActions()) {
|
|
66
|
-
<th class="cw-40 b-table" [ngClass]="colorHeader()== 'normal' ? 'h-table' : ''">
|
|
67
|
-
|
|
68
|
-
<app-dropdown-cdk>
|
|
69
|
-
<ng-template #trigger>
|
|
70
|
-
<button class="btn p-0 text-dark d-flex mx-auto border-0">
|
|
71
|
-
<i class="fas fa-cog"></i>
|
|
72
|
-
</button>
|
|
73
|
-
</ng-template>
|
|
74
|
-
<ng-template #content>
|
|
75
|
-
<div class="popover-menu-column bg-white shadow" @dropdownAnimation>
|
|
76
|
-
<div class="popover-title fs-7 bg-white">Columnas</div>
|
|
77
|
-
@for (col of columns(); track col.caption) {
|
|
78
|
-
@if (col.caption) {
|
|
79
|
-
<div class="form-check form-switch text-start">
|
|
80
|
-
<input type="checkbox" class="form-check-input py-0 my-0 cw-25 ch-15"
|
|
81
|
-
id="{{'switch_' + col.caption}}"
|
|
82
|
-
[(ngModel)]="visibilidadColumn()[col.caption]" />
|
|
83
|
-
<label class="form-check-label ps-1 fs-6 cursor-pointer font-label"
|
|
84
|
-
for="{{'switch_' + col.caption}}">{{ col.caption }}</label>
|
|
85
|
-
</div>
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
</div>
|
|
89
|
-
</ng-template>
|
|
90
|
-
</app-dropdown-cdk>
|
|
91
|
-
</th>
|
|
92
|
-
}
|
|
93
|
-
@for (column of columns(); track $index) {
|
|
94
|
-
@if (validaVisibilidad(column.visible) && visibilidadColumn()[column.caption] !== false) {
|
|
95
|
-
<th class="b-table" #thElement [title]="column.caption"
|
|
96
|
-
[ngClass]="colorHeader()== 'normal' ? 'h-table' : ''">
|
|
97
|
-
{{ column.caption }}
|
|
98
|
-
@if(column.caption){
|
|
99
|
-
@if (sortColumn == column.fieldname) {
|
|
100
|
-
<span (click)="sortTable(column.fieldname)" class="cursor-pointer">
|
|
101
|
-
<i [ngClass]="sortDirection == 'asc' ? 'fas fa-angle-up fs-6':'fas fa-angle-down fs-6'"></i>
|
|
102
|
-
</span>
|
|
103
|
-
}
|
|
104
|
-
@if (sortColumn !== column.fieldname) {
|
|
105
|
-
<i class="fas fa-sort icon-sort cursor-pointer" (click)="sortTable(column.fieldname)"></i>
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</th>
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
</tr>
|
|
112
|
-
</thead>
|
|
113
|
-
<tbody>
|
|
114
|
-
@for (row of dataVirtual(); track row.idListTsi) {
|
|
115
|
-
<tr [ngClass]="{'table-active': (identifier().length < 1 ? selectedRow() == $index : selectedRow() == concatenarValue(row,identifier())),
|
|
116
|
-
'grilla-error': getSituacionNumberFromColumns(row, columns()) == 9}"
|
|
117
|
-
(click)="selectRow(identifier().length < 1 ? $index : row); onClick(row)"
|
|
118
|
-
(dblclick)="onDoubleClick(row)"
|
|
119
|
-
(contextmenu)="onRightClick($event,row)"
|
|
120
|
-
[id]="identifier().length < 1 ? ('row_table_' + $index) : ('row_table_'+ concatenarValue(row,identifier()))">
|
|
121
|
-
@if (withDetails()) {
|
|
122
|
-
<td class="b-table text-center mwp-25">
|
|
123
|
-
<a (click)="toggleExpandRow($index)" class="text-dark cursor-pointer fs-6">
|
|
124
|
-
<i class="fa-solid" [class.fa-chevron-right]="expandedRows != $index"
|
|
125
|
-
[class.fa-chevron-down]="expandedRows == $index"></i>
|
|
126
|
-
</a>
|
|
127
|
-
</td>
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@if (withCheckbox()) {
|
|
131
|
-
<td scope="col" class="text-center b-table">
|
|
132
|
-
<input type="checkbox" class="form-check-input fs-8 border border-secondary my-0 py-0"
|
|
133
|
-
[checked]="isItemSelected($index)" (change)="toogleItem($index, $event)">
|
|
134
|
-
</td>
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@if (customActions()) {
|
|
138
|
-
<td class="text-center mwp-90 b-table">
|
|
139
|
-
<ng-container *ngTemplateOutlet="customActions(); context: { $implicit: row }"></ng-container>
|
|
140
|
-
</td>
|
|
141
|
-
}
|
|
142
|
-
@for (column of columns(); track $index) {
|
|
143
|
-
@if (validaVisibilidad(column.visible) && visibilidadColumn()[column.caption] !== false) {
|
|
144
|
-
@switch (column.tipo) {
|
|
145
|
-
@case ('cell-render') {
|
|
146
|
-
@let resolverItem = resolveCell(column.fieldname, row);
|
|
147
|
-
@if (resolverItem) {
|
|
148
|
-
<td class="b-table" [title]="resolverItem.text" [class.text-center]="resolverItem.icon">
|
|
149
|
-
@if (resolverItem.icon) {
|
|
150
|
-
<i class="fs-5" [ngClass]="resolverItem.icon"></i>
|
|
151
|
-
} @else if (resolverItem.class) {
|
|
152
|
-
<span [ngClass]="row.situac == 'J' ? 'text-error' : resolverItem.class">
|
|
153
|
-
{{ resolverItem.text }}
|
|
154
|
-
</span>
|
|
155
|
-
} @else {
|
|
156
|
-
{{ resolverItem.text }}
|
|
157
|
-
}
|
|
158
|
-
</td>
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@default {
|
|
163
|
-
<td [innerHTML]="getHighlight(row._format?.[column.fieldname] ?? row[column.fieldname], column.fieldname)"
|
|
164
|
-
[title]="row._format?.[column.fieldname] ?? row[column.fieldname]" [ngClass]="getRowClass(row)"
|
|
165
|
-
class="b-table {{getPosition(column)}}">
|
|
166
|
-
</td>
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
</tr>
|
|
172
|
-
@if ($index == expandedRows) {
|
|
173
|
-
<tr @fadeInOut>
|
|
174
|
-
<td [attr.colspan]="columns().length + (withDetails()? 1 : 0) + (customActions() ? 1 : 0) + (withCheckbox() ? 1 : 0)"
|
|
175
|
-
class="table-blank">
|
|
176
|
-
<div class="d-flex flex-column auditoria">
|
|
177
|
-
<span class="fw-bold fs-7 text-dark">Datos de auditoría</span>
|
|
178
|
-
<span class="fs-6 text-dark fw-bold">
|
|
179
|
-
Creación: {{ row.nomucreac }} el {{ row._format?.fcreac ?? row.fcreac }} a las {{
|
|
180
|
-
row.hcreac }}
|
|
181
|
-
</span>
|
|
182
|
-
<span class="fs-6 text-dark fw-bold">
|
|
183
|
-
Actualización: {{ row.nomuactua }} el {{ row._format?.factua ?? row.factua }} a las {{
|
|
184
|
-
row.hactua }}
|
|
185
|
-
</span>
|
|
186
|
-
</div>
|
|
187
|
-
</td>
|
|
188
|
-
</tr>
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
<tr #anchor>
|
|
192
|
-
<td [attr.colspan]="columns().length + (withDetails()? 1 : 0) + (customActions() ? 1 : 0) + (withCheckbox() ? 1 : 0)" class="text-center text-muted py-3">
|
|
193
|
-
@if (isLoading()) {
|
|
194
|
-
<span>Cargando más registros...</span>
|
|
195
|
-
}
|
|
196
|
-
@if (!isLoading() && dataVirtual().length >= 5000) {
|
|
197
|
-
<span>No hay más registros</span>
|
|
198
|
-
}
|
|
199
|
-
</td>
|
|
200
|
-
</tr>
|
|
201
|
-
</tbody>
|
|
202
|
-
|
|
203
|
-
@if (withTotal()) {
|
|
204
|
-
<tfoot>
|
|
205
|
-
<tr>
|
|
206
|
-
<td class="b-table" [attr.colspan]="getColspanBeforeTotals()">Totales:</td>
|
|
207
|
-
@for (col of columns() ; track $index) {
|
|
208
|
-
@if (col.totalizable) {
|
|
209
|
-
<td class="b-table text-end">
|
|
210
|
-
{{ getTotals(col.fieldname)}}
|
|
211
|
-
</td>
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
</tr>
|
|
215
|
-
</tfoot>
|
|
216
|
-
}
|
|
217
|
-
</table>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
<!-- FIN VISTA MOBILE -->
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
.flex-table {
|
|
2
|
-
width: 100%;
|
|
3
|
-
;
|
|
4
|
-
min-width: max-content;
|
|
5
|
-
border-collapse: collapse;
|
|
6
|
-
table-layout: fixed;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.flex-table th,
|
|
10
|
-
td {
|
|
11
|
-
border: 1px solid #ddd;
|
|
12
|
-
padding: 8px;
|
|
13
|
-
position: relative;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
text-overflow: ellipsis;
|
|
17
|
-
min-width: 40px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.flex-table th {
|
|
21
|
-
transition: width 0.1s ease-out;
|
|
22
|
-
padding-right: 15px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.resize-handle {
|
|
26
|
-
width: 5px;
|
|
27
|
-
height: 100%;
|
|
28
|
-
background: rgb(215, 215, 215);
|
|
29
|
-
position: absolute;
|
|
30
|
-
right: 0;
|
|
31
|
-
top: 0;
|
|
32
|
-
cursor: ew-resize;
|
|
33
|
-
user-select: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.flex-table thead tr th {
|
|
38
|
-
font-size: 12px;
|
|
39
|
-
font-weight: bold;
|
|
40
|
-
color: black;
|
|
41
|
-
border: none;
|
|
42
|
-
border-bottom: 1px solid rgb(206, 206, 206);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
.flex-table tbody tr td {
|
|
47
|
-
font-size: 11px;
|
|
48
|
-
font-weight: 600;
|
|
49
|
-
color: black;
|
|
50
|
-
border: none;
|
|
51
|
-
border-bottom: 1px solid rgb(206, 206, 206);
|
|
52
|
-
padding-top: 7px;
|
|
53
|
-
padding-bottom: 7px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.flex-table tbody tr {
|
|
57
|
-
transition: transform 0.3s ease-in-out, opacity 0.6s ease-in-out;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
thead {
|
|
62
|
-
position: sticky;
|
|
63
|
-
top: 0;
|
|
64
|
-
z-index: 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.icon-sort {
|
|
68
|
-
font-size: 11px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.collapsed {
|
|
72
|
-
display: none;
|
|
73
|
-
max-height: 0;
|
|
74
|
-
opacity: 0;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.expand-row {
|
|
80
|
-
max-height: 100px;
|
|
81
|
-
opacity: 1;
|
|
82
|
-
transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.table-container {
|
|
86
|
-
width: 100%;
|
|
87
|
-
max-width: 100%;
|
|
88
|
-
overflow-x: auto;
|
|
89
|
-
display: block;
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.text-error {
|
|
94
|
-
color: rgb(214, 0, 0) !important;
|
|
95
|
-
font-weight: bold !important;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.text-error2 {
|
|
99
|
-
color: rgb(214, 0, 0);
|
|
100
|
-
font-weight: bold !important;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.text-exito {
|
|
104
|
-
color: rgb(0, 119, 60) !important;
|
|
105
|
-
font-weight: bold !important;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.text-alerta {
|
|
109
|
-
color: rgb(233, 167, 0) !important;
|
|
110
|
-
font-weight: bold !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.text-exito2 {
|
|
114
|
-
color: rgb(0, 119, 60);
|
|
115
|
-
font-weight: bold !important;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media (max-width:1600px) {
|
|
119
|
-
.flex-table tbody tr td {
|
|
120
|
-
font-size: 9px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.flex-table thead tr th {
|
|
124
|
-
font-size: 10px;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.table-blank {
|
|
129
|
-
--bs-table-bg-state: white !important
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.normal-table thead tr th {
|
|
133
|
-
font-size: 12px;
|
|
134
|
-
|
|
135
|
-
text-align: center;
|
|
136
|
-
font-weight: bold;
|
|
137
|
-
//color: black;
|
|
138
|
-
max-width: 220px;
|
|
139
|
-
white-space: nowrap;
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
text-overflow: ellipsis;
|
|
142
|
-
font-weight: 600;
|
|
143
|
-
//border: 1px solid rgb(226, 226, 226);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.normal-table tbody tr {
|
|
147
|
-
height: 30px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.normal-table tbody tr td {
|
|
151
|
-
font-size: 11px;
|
|
152
|
-
vertical-align: middle;
|
|
153
|
-
font-weight: 500;
|
|
154
|
-
//color: black;
|
|
155
|
-
white-space: nowrap;
|
|
156
|
-
text-overflow: ellipsis;
|
|
157
|
-
//border: 1px solid rgb(226, 226, 226);
|
|
158
|
-
padding-top: 0;
|
|
159
|
-
padding-bottom: 0;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.normal-table thead {
|
|
163
|
-
position: sticky;
|
|
164
|
-
top: 0;
|
|
165
|
-
z-index: 1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@media (max-width:1600px) {
|
|
169
|
-
.normal-table tbody tr td {
|
|
170
|
-
font-size: 9px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.normal-table thead tr th {
|
|
174
|
-
font-size: 10px;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.grilla-error td {
|
|
179
|
-
color: rgb(214, 0, 0) !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.auditoria {
|
|
183
|
-
padding-left: 35px;
|
|
184
|
-
padding-top: 8px;
|
|
185
|
-
padding-bottom: 10px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.popover-menu-column {
|
|
189
|
-
position: absolute;
|
|
190
|
-
top: 100%;
|
|
191
|
-
left: 0;
|
|
192
|
-
border-radius: 0.375rem;
|
|
193
|
-
padding: 0rem 0.75rem;
|
|
194
|
-
display: block;
|
|
195
|
-
max-height: 300px;
|
|
196
|
-
width: 250px;
|
|
197
|
-
overflow-y: auto;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.popover-title {
|
|
201
|
-
font-weight: 700;
|
|
202
|
-
margin-bottom: 0.7rem;
|
|
203
|
-
margin-left: -0.75rem;
|
|
204
|
-
margin-right: -0.75rem;
|
|
205
|
-
padding: 0.4rem 0.75rem;
|
|
206
|
-
border-bottom: 1px solid #7e7e7e;
|
|
207
|
-
position: sticky;
|
|
208
|
-
top: 0;
|
|
209
|
-
text-align: center;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.popover-menu-column::-webkit-scrollbar {
|
|
213
|
-
width: 5px;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.popover-menu-column::-webkit-scrollbar-track {
|
|
217
|
-
background: #f1f1f1;
|
|
218
|
-
border-radius: 4px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.popover-menu-column::-webkit-scrollbar-thumb {
|
|
222
|
-
background-color: #d7d7d7;
|
|
223
|
-
border-radius: 4px;
|
|
224
|
-
border: 2px solid transparent;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.popover-menu-filter {
|
|
228
|
-
position: absolute;
|
|
229
|
-
top: 85%;
|
|
230
|
-
right: 0;
|
|
231
|
-
background-color: rgb(255, 255, 255);
|
|
232
|
-
border: 1px solid #ddd;
|
|
233
|
-
border-radius: 0.375rem;
|
|
234
|
-
padding: 0rem 0.75rem;
|
|
235
|
-
display: block;
|
|
236
|
-
max-height: 300px;
|
|
237
|
-
width: 250px;
|
|
238
|
-
overflow-y: auto;
|
|
239
|
-
z-index: 2;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.popover-menu-filter::-webkit-scrollbar {
|
|
243
|
-
width: 5px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.popover-menu-filter::-webkit-scrollbar-track {
|
|
247
|
-
background: #f1f1f1;
|
|
248
|
-
border-radius: 4px;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.popover-menu-filter::-webkit-scrollbar-thumb {
|
|
252
|
-
background-color: #d7d7d7;
|
|
253
|
-
border-radius: 4px;
|
|
254
|
-
border: 2px solid transparent;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.font-label{
|
|
258
|
-
font-weight: 500 !important;
|
|
259
|
-
}
|
|
260
|
-
.mtn-0{
|
|
261
|
-
margin-top: 0px;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.normal-table tfoot tr {
|
|
265
|
-
height: 50px;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.normal-table tfoot tr td {
|
|
269
|
-
font-size: 11px;
|
|
270
|
-
vertical-align: middle;
|
|
271
|
-
font-weight: 500;
|
|
272
|
-
white-space: nowrap;
|
|
273
|
-
text-overflow: ellipsis;
|
|
274
|
-
padding-top: 0;
|
|
275
|
-
padding-bottom: 0;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.normal-table tfoot {
|
|
279
|
-
position: sticky;
|
|
280
|
-
bottom: 0;
|
|
281
|
-
z-index: 1;
|
|
282
|
-
}
|