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.
Files changed (237) hide show
  1. package/fesm2022/ng-components-tsi.mjs +5063 -0
  2. package/fesm2022/ng-components-tsi.mjs.map +1 -0
  3. package/index.d.ts +5 -0
  4. package/lib/directivas/acciones/atajos.directive.d.ts +8 -0
  5. package/lib/directivas/animaciones/fade-animation.d.ts +3 -0
  6. package/lib/directivas/estilos/animated-checkbox.directive.d.ts +9 -0
  7. package/lib/directivas/estilos/button.constants.d.ts +64 -0
  8. package/lib/directivas/estilos/buttons-modal.directive.d.ts +11 -0
  9. package/lib/directivas/estilos/buttons-outline-directive.d.ts +11 -0
  10. package/lib/directivas/estilos/icons.directive.d.ts +11 -0
  11. package/lib/directivas/inputs/caracteres-codigo.directive.d.ts +12 -0
  12. package/lib/directivas/inputs/decimal.directive.d.ts +13 -0
  13. package/lib/directivas/inputs/only-day.directive.d.ts +8 -0
  14. package/lib/directivas/inputs/only-number-flex.directive.d.ts +9 -0
  15. package/lib/directivas/inputs/only-number.directive.d.ts +8 -0
  16. package/lib/enums/table-events.d.ts +5 -0
  17. package/lib/modals/general/md-generico/md-generico.component.d.ts +25 -0
  18. package/lib/models/button-color.model.d.ts +3 -0
  19. package/{src/lib/models/button-properties.model.ts → lib/models/button-properties.model.d.ts} +7 -8
  20. package/lib/models/cell-rendered.d.ts +11 -0
  21. package/lib/models/comercial/documentos-cab-auxiliares.model.d.ts +17 -0
  22. package/{src/lib/models/dropdownoption.model.ts → lib/models/dropdownoption.model.d.ts} +14 -15
  23. package/lib/models/general/recursos.model.d.ts +271 -0
  24. package/lib/models/general/utils.interface.d.ts +57 -0
  25. package/lib/models/input-config.d.ts +25 -0
  26. package/{src/lib/models/selected-row.ts → lib/models/selected-row.d.ts} +4 -4
  27. package/{src/lib/models/table-data.model.ts → lib/models/table-data.model.d.ts} +21 -21
  28. package/lib/service/alert-confirmation.service.d.ts +26 -0
  29. package/lib/service/alert-error.service.d.ts +9 -0
  30. package/lib/service/alert.service.d.ts +33 -0
  31. package/lib/service/formateador.service.d.ts +10 -0
  32. package/lib/service/toast.service.d.ts +25 -0
  33. package/lib/ui/alerts/alert-confirmation/alert-confirmation.component.d.ts +32 -0
  34. package/lib/ui/alerts/alert-error/alert-error.component.d.ts +9 -0
  35. package/lib/ui/alerts/alerta/alerta.component.d.ts +12 -0
  36. package/lib/ui/alerts/badge/badge.component.d.ts +8 -0
  37. package/lib/ui/alerts/toaster/toaster.component.d.ts +17 -0
  38. package/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.d.ts +11 -0
  39. package/lib/ui/dropdown/dropdown-simple/dropdown.component.d.ts +13 -0
  40. package/lib/ui/forms/button/button.component.d.ts +47 -0
  41. package/lib/ui/forms/filter-toggle/filter-toggle.component.d.ts +9 -0
  42. package/lib/ui/forms/header/header.component.d.ts +17 -0
  43. package/lib/ui/forms/inputs/autocomplete/autocomplete.component.d.ts +43 -0
  44. package/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.d.ts +48 -0
  45. package/lib/ui/forms/inputs/check-box/check-box.component.d.ts +14 -0
  46. package/lib/ui/forms/inputs/doble-input/doble-input.component.d.ts +47 -0
  47. package/lib/ui/forms/inputs/input/input.component.d.ts +60 -0
  48. package/lib/ui/forms/inputs/input-clase/input-clase.component.d.ts +13 -0
  49. package/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.d.ts +8 -0
  50. package/lib/ui/forms/inputs/input-radio/input-radio.component.d.ts +24 -0
  51. package/lib/ui/forms/inputs/multiselected/multiselected.component.d.ts +39 -0
  52. package/lib/ui/forms/inputs/radio/radio.component.d.ts +14 -0
  53. package/lib/ui/forms/inputs/switch/switch.component.d.ts +20 -0
  54. package/lib/ui/forms/inputs/switch-activo/switch-activo.component.d.ts +21 -0
  55. package/lib/ui/forms/lists/list-option/list-option.component.d.ts +23 -0
  56. package/lib/ui/forms/lists/list-situaciones/list-situaciones.component.d.ts +28 -0
  57. package/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.d.ts +26 -0
  58. package/lib/ui/forms/sidebar/sidebar.component.d.ts +15 -0
  59. package/lib/ui/general/detalle-credito/detalle-credito.component.d.ts +8 -0
  60. package/lib/ui/general/montos-calcular/montos-calcular.component.d.ts +12 -0
  61. package/lib/ui/general/spinner/spinner.component.d.ts +5 -0
  62. package/lib/ui/tables/card-mobile/card-mobile.component.d.ts +17 -0
  63. package/lib/ui/tables/dropdown-menu/dropdown-menu.component.d.ts +43 -0
  64. package/lib/ui/tables/paginador/paginador.component.d.ts +20 -0
  65. package/lib/ui/tables/table-advance/table-advance.component.d.ts +94 -0
  66. package/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.d.ts +82 -0
  67. package/lib/ui/tables/table-agrupada/table-agrupada.component.d.ts +96 -0
  68. package/lib/ui/tables/table-busqueda/table-busqueda.component.d.ts +48 -0
  69. package/lib/ui/tables/table-detalle/table-detalle.component.d.ts +59 -0
  70. package/lib/ui/tables/table-simple/table-simple.component.d.ts +39 -0
  71. package/lib/ui/tables/table-ultimate/table-ultimate.component.d.ts +84 -0
  72. package/lib/ui/tabs/nav-tabs/nav-tabs.component.d.ts +9 -0
  73. package/lib/ui/tabs/tab-item/tab-item.component.d.ts +9 -0
  74. package/lib/utils/general/validaciones-simple.d.ts +2 -0
  75. package/lib/utils/general/validaciones.d.ts +11 -0
  76. package/lib/utils/helpers/api-result.d.ts +17 -0
  77. package/lib/utils/helpers/modal-result.d.ts +10 -0
  78. package/ng-components-tsi-0.0.39.tgz +0 -0
  79. package/package.json +31 -23
  80. package/{src/public-api.ts → public-api.d.ts} +68 -99
  81. package/ng-package.json +0 -7
  82. package/src/lib/directivas/acciones/atajos.directive.ts +0 -26
  83. package/src/lib/directivas/animaciones/fade-animation.ts +0 -45
  84. package/src/lib/directivas/animaciones/fade.directive.ts +0 -43
  85. package/src/lib/directivas/estilos/animated-checkbox.directive.ts +0 -26
  86. package/src/lib/directivas/estilos/button.constants.ts +0 -66
  87. package/src/lib/directivas/estilos/buttons-modal.directive.ts +0 -36
  88. package/src/lib/directivas/estilos/buttons-outline-directive.ts +0 -27
  89. package/src/lib/directivas/estilos/icons.directive.ts +0 -26
  90. package/src/lib/directivas/inputs/caracteres-codigo.directive.ts +0 -63
  91. package/src/lib/directivas/inputs/decimal.directive.ts +0 -51
  92. package/src/lib/directivas/inputs/only-day.directive.ts +0 -53
  93. package/src/lib/directivas/inputs/only-number-flex.directive.ts +0 -50
  94. package/src/lib/directivas/inputs/only-number.directive.ts +0 -53
  95. package/src/lib/enums/table-events.ts +0 -5
  96. package/src/lib/modals/general/md-generico/md-generico.component.html +0 -44
  97. package/src/lib/modals/general/md-generico/md-generico.component.scss +0 -4
  98. package/src/lib/modals/general/md-generico/md-generico.component.ts +0 -50
  99. package/src/lib/models/button-color.model.ts +0 -9
  100. package/src/lib/models/cell-rendered.ts +0 -12
  101. package/src/lib/models/comercial/documentos-cab-auxiliares.model.ts +0 -18
  102. package/src/lib/models/general/recursos.model.ts +0 -285
  103. package/src/lib/models/general/utils.interface.ts +0 -66
  104. package/src/lib/models/input-config.ts +0 -26
  105. package/src/lib/service/alert-confirmation.service.ts +0 -87
  106. package/src/lib/service/alert-error.service.ts +0 -27
  107. package/src/lib/service/alert.service.ts +0 -216
  108. package/src/lib/service/formateador.service.ts +0 -49
  109. package/src/lib/service/toast.service.ts +0 -75
  110. package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.html +0 -40
  111. package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.scss +0 -42
  112. package/src/lib/ui/alerts/alert-confirmation/alert-confirmation.component.ts +0 -118
  113. package/src/lib/ui/alerts/alert-error/alert-error.component.html +0 -11
  114. package/src/lib/ui/alerts/alert-error/alert-error.component.scss +0 -39
  115. package/src/lib/ui/alerts/alert-error/alert-error.component.ts +0 -27
  116. package/src/lib/ui/alerts/alerta/alerta.component.html +0 -18
  117. package/src/lib/ui/alerts/alerta/alerta.component.scss +0 -104
  118. package/src/lib/ui/alerts/alerta/alerta.component.ts +0 -25
  119. package/src/lib/ui/alerts/badge/badge.component.ts +0 -16
  120. package/src/lib/ui/alerts/toaster/toaster.component.html +0 -52
  121. package/src/lib/ui/alerts/toaster/toaster.component.scss +0 -275
  122. package/src/lib/ui/alerts/toaster/toaster.component.ts +0 -50
  123. package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.html +0 -20
  124. package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.scss +0 -11
  125. package/src/lib/ui/dropdown/dropdown-cdk/dropdown-cdk.component.ts +0 -18
  126. package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.html +0 -10
  127. package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.scss +0 -54
  128. package/src/lib/ui/dropdown/dropdown-simple/dropdown.component.ts +0 -36
  129. package/src/lib/ui/forms/button/button.component.html +0 -69
  130. package/src/lib/ui/forms/button/button.component.scss +0 -126
  131. package/src/lib/ui/forms/button/button.component.ts +0 -137
  132. package/src/lib/ui/forms/filter-toggle/filter-toggle.component.scss +0 -22
  133. package/src/lib/ui/forms/filter-toggle/filter-toggle.component.ts +0 -29
  134. package/src/lib/ui/forms/header/header.component.html +0 -22
  135. package/src/lib/ui/forms/header/header.component.scss +0 -22
  136. package/src/lib/ui/forms/header/header.component.ts +0 -40
  137. package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.html +0 -46
  138. package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.scss +0 -90
  139. package/src/lib/ui/forms/inputs/autocomplete/autocomplete.component.ts +0 -203
  140. package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.html +0 -61
  141. package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.scss +0 -128
  142. package/src/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.ts +0 -145
  143. package/src/lib/ui/forms/inputs/check-box/check-box.component.html +0 -6
  144. package/src/lib/ui/forms/inputs/check-box/check-box.component.ts +0 -24
  145. package/src/lib/ui/forms/inputs/doble-input/doble-input.component.html +0 -60
  146. package/src/lib/ui/forms/inputs/doble-input/doble-input.component.scss +0 -86
  147. package/src/lib/ui/forms/inputs/doble-input/doble-input.component.ts +0 -129
  148. package/src/lib/ui/forms/inputs/input/input.component.html +0 -169
  149. package/src/lib/ui/forms/inputs/input/input.component.scss +0 -74
  150. package/src/lib/ui/forms/inputs/input/input.component.ts +0 -147
  151. package/src/lib/ui/forms/inputs/input-clase/input-clase.component.html +0 -30
  152. package/src/lib/ui/forms/inputs/input-clase/input-clase.component.scss +0 -0
  153. package/src/lib/ui/forms/inputs/input-clase/input-clase.component.ts +0 -28
  154. package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.html +0 -41
  155. package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.scss +0 -0
  156. package/src/lib/ui/forms/inputs/input-dinamico/input-dinamico.component.ts +0 -17
  157. package/src/lib/ui/forms/inputs/input-radio/input-radio.component.html +0 -26
  158. package/src/lib/ui/forms/inputs/input-radio/input-radio.component.scss +0 -53
  159. package/src/lib/ui/forms/inputs/input-radio/input-radio.component.ts +0 -36
  160. package/src/lib/ui/forms/inputs/multiselected/multiselected.component.html +0 -56
  161. package/src/lib/ui/forms/inputs/multiselected/multiselected.component.scss +0 -145
  162. package/src/lib/ui/forms/inputs/multiselected/multiselected.component.ts +0 -109
  163. package/src/lib/ui/forms/inputs/radio/radio.component.html +0 -7
  164. package/src/lib/ui/forms/inputs/radio/radio.component.scss +0 -0
  165. package/src/lib/ui/forms/inputs/radio/radio.component.ts +0 -23
  166. package/src/lib/ui/forms/inputs/switch/switch.component.html +0 -12
  167. package/src/lib/ui/forms/inputs/switch/switch.component.scss +0 -48
  168. package/src/lib/ui/forms/inputs/switch/switch.component.ts +0 -50
  169. package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.html +0 -12
  170. package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.scss +0 -65
  171. package/src/lib/ui/forms/inputs/switch-activo/switch-activo.component.ts +0 -52
  172. package/src/lib/ui/forms/lists/list-option/list-option.component.html +0 -24
  173. package/src/lib/ui/forms/lists/list-option/list-option.component.scss +0 -49
  174. package/src/lib/ui/forms/lists/list-option/list-option.component.ts +0 -35
  175. package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.html +0 -29
  176. package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.scss +0 -0
  177. package/src/lib/ui/forms/lists/list-situaciones/list-situaciones.component.ts +0 -99
  178. package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.html +0 -46
  179. package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.scss +0 -30
  180. package/src/lib/ui/forms/lists/multi-select-dropdown/multi-select-dropdown.component.ts +0 -96
  181. package/src/lib/ui/forms/sidebar/sidebar.component.html +0 -33
  182. package/src/lib/ui/forms/sidebar/sidebar.component.scss +0 -85
  183. package/src/lib/ui/forms/sidebar/sidebar.component.ts +0 -61
  184. package/src/lib/ui/general/detalle-credito/detalle-credito.component.html +0 -35
  185. package/src/lib/ui/general/detalle-credito/detalle-credito.component.scss +0 -35
  186. package/src/lib/ui/general/detalle-credito/detalle-credito.component.ts +0 -14
  187. package/src/lib/ui/general/montos-calcular/montos-calcular.component.html +0 -17
  188. package/src/lib/ui/general/montos-calcular/montos-calcular.component.scss +0 -36
  189. package/src/lib/ui/general/montos-calcular/montos-calcular.component.ts +0 -19
  190. package/src/lib/ui/general/spinner/spinner.component.html +0 -8
  191. package/src/lib/ui/general/spinner/spinner.component.scss +0 -96
  192. package/src/lib/ui/general/spinner/spinner.component.ts +0 -11
  193. package/src/lib/ui/tables/card-mobile/card-mobile.component.html +0 -34
  194. package/src/lib/ui/tables/card-mobile/card-mobile.component.scss +0 -0
  195. package/src/lib/ui/tables/card-mobile/card-mobile.component.ts +0 -36
  196. package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.html +0 -59
  197. package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.scss +0 -88
  198. package/src/lib/ui/tables/dropdown-menu/dropdown-menu.component.ts +0 -171
  199. package/src/lib/ui/tables/paginador/paginador.component.html +0 -12
  200. package/src/lib/ui/tables/paginador/paginador.component.scss +0 -27
  201. package/src/lib/ui/tables/paginador/paginador.component.ts +0 -49
  202. package/src/lib/ui/tables/table-advance/table-advance.component.html +0 -322
  203. package/src/lib/ui/tables/table-advance/table-advance.component.scss +0 -282
  204. package/src/lib/ui/tables/table-advance/table-advance.component.ts +0 -421
  205. package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.html +0 -226
  206. package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.scss +0 -282
  207. package/src/lib/ui/tables/table-advance-optimizada/table-advance-optimizada.component.ts +0 -352
  208. package/src/lib/ui/tables/table-agrupada/table-agrupada.component.html +0 -340
  209. package/src/lib/ui/tables/table-agrupada/table-agrupada.component.scss +0 -282
  210. package/src/lib/ui/tables/table-agrupada/table-agrupada.component.ts +0 -425
  211. package/src/lib/ui/tables/table-busqueda/table-busqueda.component.html +0 -130
  212. package/src/lib/ui/tables/table-busqueda/table-busqueda.component.scss +0 -189
  213. package/src/lib/ui/tables/table-busqueda/table-busqueda.component.ts +0 -199
  214. package/src/lib/ui/tables/table-detalle/table-detalle.component.html +0 -220
  215. package/src/lib/ui/tables/table-detalle/table-detalle.component.scss +0 -135
  216. package/src/lib/ui/tables/table-detalle/table-detalle.component.ts +0 -336
  217. package/src/lib/ui/tables/table-simple/table-simple.component.html +0 -116
  218. package/src/lib/ui/tables/table-simple/table-simple.component.scss +0 -70
  219. package/src/lib/ui/tables/table-simple/table-simple.component.ts +0 -141
  220. package/src/lib/ui/tables/table-ultimate/table-ultimate.component.html +0 -268
  221. package/src/lib/ui/tables/table-ultimate/table-ultimate.component.scss +0 -282
  222. package/src/lib/ui/tables/table-ultimate/table-ultimate.component.ts +0 -383
  223. package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.html +0 -12
  224. package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.scss +0 -100
  225. package/src/lib/ui/tabs/nav-tabs/nav-tabs.component.ts +0 -19
  226. package/src/lib/ui/tabs/tab-item/tab-item.component.html +0 -0
  227. package/src/lib/ui/tabs/tab-item/tab-item.component.scss +0 -0
  228. package/src/lib/ui/tabs/tab-item/tab-item.component.ts +0 -13
  229. package/src/lib/utils/ayuda-global/datatable.ts +0 -67
  230. package/src/lib/utils/ayuda-global/filtros-busqueda.ts +0 -51
  231. package/src/lib/utils/general/validaciones-simple.ts +0 -14
  232. package/src/lib/utils/general/validaciones.ts +0 -123
  233. package/src/lib/utils/helpers/api-result.ts +0 -95
  234. package/src/lib/utils/helpers/modal-result.ts +0 -34
  235. package/tsconfig.lib.json +0 -15
  236. package/tsconfig.lib.prod.json +0 -11
  237. package/tsconfig.spec.json +0 -15
@@ -1,61 +0,0 @@
1
- import { Component, inject, input, signal } from '@angular/core';
2
- import { ActivatedRoute, NavigationEnd, Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
3
- import { filter, fromEvent, map, startWith, throttleTime } from 'rxjs';
4
- import { toSignal } from '@angular/core/rxjs-interop';
5
- import { NgClass } from '@angular/common';
6
-
7
- @Component({
8
- selector: 'app-sidebar',
9
- imports: [NgClass, RouterLink, RouterOutlet, RouterLinkActive],
10
- templateUrl: './sidebar.component.html',
11
- styleUrl: './sidebar.component.scss'
12
- })
13
- export class SidebarComponent {
14
-
15
- private route = inject(ActivatedRoute)
16
- private router = inject(Router)
17
-
18
- showMenu = signal<boolean>(true)
19
- lista = input<any[]>([])
20
- titleMenu = input<string>('')
21
- expandedWidth = input<string>('320px')
22
-
23
- title = toSignal(
24
- this.router.events.pipe(
25
- filter((e): e is NavigationEnd => e instanceof NavigationEnd),
26
- startWith(null),
27
- map(() => {
28
- let route = this.route
29
- while (route.firstChild) route = route.firstChild
30
- return route.snapshot?.data?.['title'] || ''
31
- })
32
- ),
33
- { initialValue: '' }
34
- )
35
-
36
- constructor() {
37
- if (typeof window != 'undefined') {
38
- fromEvent(window, 'resize')
39
- .pipe(throttleTime(200))
40
- .subscribe(() => {
41
- const isMediumScreen = window.innerWidth <= 1160 && window.innerWidth >= 700
42
- this.showMenu.set(!isMediumScreen)
43
- })
44
- const initialCheck = window.innerWidth <= 1160 && window.innerWidth >= 700
45
- this.showMenu.set(!initialCheck)
46
- }
47
- }
48
- onMiddleClick(event: MouseEvent, ruta: string) {
49
- if (event.button == 1 && ruta) {
50
- event.preventDefault()
51
- window.open(ruta, '_blank')
52
- }
53
- }
54
-
55
- onRightClick(event: MouseEvent, ruta: string) {
56
- if (ruta) {
57
- event.preventDefault()
58
- window.open(ruta, '_blank')
59
- }
60
- }
61
- }
@@ -1,35 +0,0 @@
1
- @let simbolo = data().simbolo || 'S/.';
2
-
3
- <div class="d-flex item-credito mt-2">
4
- <div class="title-credito text-dark">Crédito:</div>
5
- <div class="subtitle fw-bold" [ngClass]="data().credito ? 'text-success' : 'text-danger'">{{data().credito ? 'Abierto' : 'Cerrado'}}</div>
6
- </div>
7
- <div class="d-flex item-credito">
8
- <div class="title-credito">Línea:</div>
9
- <div class="subtitle">{{simbolo}} {{data().limitecredito ?? 0 | number:'1.2-2'}}</div>
10
- </div>
11
-
12
- <div class="d-flex item-credito">
13
- <div class="title-credito">Utilizado:</div>
14
- <div class="subtitle" (click)="data().saldo ? utilizado.emit() : null" [ngClass]="data().saldo ? 'cursor-pointer underline' : ''">{{simbolo}} {{ data().saldo ?? 0 | number:'1.2-2' }}</div>
15
- </div>
16
-
17
- <div class="d-flex item-credito">
18
- <div class="title-credito">Por vencer:</div>
19
- <div class="subtitle">{{simbolo}} {{ data().pendiente ?? 0 | number:'1.2-2' }}</div>
20
- </div>
21
-
22
- <div class="d-flex item-credito">
23
- <div class="title-credito">Vencido:</div>
24
- <div class="subtitle">{{simbolo}} {{ data().vencido ?? 0 | number:'1.2-2' }}</div>
25
- </div>
26
-
27
- <div class="d-flex item-credito">
28
- <div class="title-credito">Disponible:</div>
29
- <div class="subtitle">{{simbolo}} {{ data().disponible ?? 0 | number:'1.2-2' }}</div>
30
- </div>
31
-
32
- <div class="d-flex item-credito">
33
- <div class="title-credito">Puntos:</div>
34
- <div class="subtitle">{{ data().puntaje ?? 0 }}</div>
35
- </div>
@@ -1,35 +0,0 @@
1
- .title-credito{
2
- min-width: 130px;
3
- width: 130px;
4
- font-size: 18px;
5
- font-weight: 600;
6
- }
7
-
8
- .subtitle{
9
- font-size: 18px;
10
- font-weight: 600;
11
- }
12
-
13
- .underline{
14
- transition: all 0.3s ease-in-out;
15
- }
16
- .underline:hover{
17
- text-decoration: underline;
18
- transform: scale(1.05);
19
- color: rgb(129, 129, 129);
20
- }
21
-
22
- @media (max-width: 380px) {
23
- .item-credito{
24
- padding-left: 5px;
25
- padding-right: 5px;
26
- flex-wrap: wrap;
27
- }
28
- .title-credito{
29
- font-size: 16px !important;
30
- }
31
- .subtitle{
32
- font-size: 15px !important;
33
- font-weight: 600 !important;
34
- }
35
- }
@@ -1,14 +0,0 @@
1
- import { Component, input, output } from '@angular/core';
2
- import { DecimalPipe, NgClass } from '@angular/common';
3
- import { DetalleCredito } from '../../../models/comercial/documentos-cab-auxiliares.model';
4
-
5
- @Component({
6
- selector: 'app-detalle-credito',
7
- imports: [NgClass,DecimalPipe],
8
- templateUrl: './detalle-credito.component.html',
9
- styleUrl: './detalle-credito.component.scss'
10
- })
11
- export class DetalleCreditoComponent {
12
- data = input<DetalleCredito>({})
13
- utilizado = output<void>()
14
- }
@@ -1,17 +0,0 @@
1
- <div class="container mt-2">
2
- <div class="table-responsive-custom">
3
- <table class="table total-table bg-dark">
4
- <tbody>
5
- @for (item of data(); track $index) {
6
- <tr [style.font-size.px]="sizeFont() ?? null">
7
- <td>{{item.title}}</td>
8
- @if (withSimbolo()) {
9
- <td>{{item.simbolo ?? simbolo()}}</td>
10
- }
11
- <td>{{cleanNumber(item.value) | number:'1.2-2'}}</td>
12
- </tr>
13
- }
14
- </tbody>
15
- </table>
16
- </div>
17
- </div>
@@ -1,36 +0,0 @@
1
- .table-responsive-custom {
2
- width: 100%;
3
- overflow-x: auto;
4
- -webkit-overflow-scrolling: touch;
5
- }
6
-
7
- .total-table {
8
- font-size: 14px;
9
- min-width: 280px;
10
- width: 100%;
11
- }
12
-
13
- .total-table tbody tr td {
14
- padding: 0 10px;
15
- border: none;
16
- font-weight: 600;
17
- text-align: right;
18
- white-space: nowrap;
19
- }
20
-
21
- @media (max-width: 380px) {
22
- .container {
23
- padding: 5px 0;
24
- margin: 0;
25
- }
26
-
27
- .total-table tbody tr td {
28
- padding: 0 5px;
29
- text-align: left;
30
- }
31
- .table-responsive-custom {
32
- -webkit-overflow-scrolling: touch;
33
- overflow-x: auto;
34
- display: block;
35
- }
36
- }
@@ -1,19 +0,0 @@
1
- import { Component, input, model } from '@angular/core';
2
- import { DecimalPipe } from '@angular/common';
3
- import { CalcularTotales } from '../../../models/comercial/documentos-cab-auxiliares.model';
4
- import { cleanNumber } from 'shared-tsi';
5
-
6
- @Component({
7
- selector: 'app-montos-calcular',
8
- imports: [DecimalPipe],
9
- templateUrl: './montos-calcular.component.html',
10
- styleUrl: './montos-calcular.component.scss'
11
- })
12
- export class MontosCalcularComponent {
13
-
14
- data = input<CalcularTotales[]>([])
15
- sizeFont = input<number>()
16
- simbolo = model<string>('S/.')
17
- cleanNumber = cleanNumber
18
- withSimbolo = input<boolean>(true)
19
- }
@@ -1,8 +0,0 @@
1
- <div id="custom-spinner" class="spinner-overlay" hidden>
2
- <div class="spinner-container">
3
- <div class="spinner-border-wrapper">
4
- <div class="spinner-border"></div>
5
- </div>
6
- <img src="../assets/images/logo-tsi-tres.png" class="spinner-img" />
7
- </div>
8
- </div>
@@ -1,96 +0,0 @@
1
- .spinner-overlay {
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- width: 100vw;
6
- height: 100vh;
7
- background: rgba(0, 0, 0, 0.85);
8
- display: flex;
9
- justify-content: center;
10
- align-items: center;
11
- z-index: 9999;
12
- touch-action: none;
13
- user-select: none;
14
- pointer-events: auto;
15
-
16
- &::before {
17
- content: '';
18
- position: absolute;
19
- top: 0;
20
- left: 0;
21
- width: 100%;
22
- height: 100%;
23
- z-index: -1;
24
- }
25
- }
26
-
27
- .spinner-container {
28
- position: relative;
29
- width: 300px;
30
- height: 300px;
31
- display: flex;
32
- justify-content: center;
33
- align-items: center;
34
- animation: heartbeat 1.5s infinite ease-in-out;
35
- user-select: none;
36
- }
37
-
38
- .spinner-border-wrapper {
39
- position: absolute;
40
- width: 100%;
41
- height: 100%;
42
- display: flex;
43
- justify-content: center;
44
- align-items: center;
45
- animation: heartbeat 1.5s infinite ease-in-out;
46
- }
47
-
48
- .spinner-border {
49
- position: absolute;
50
- width: 100%;
51
- height: 100%;
52
- border-radius: 50%;
53
- border: 10px dotted white;
54
- animation: spin 5s linear infinite;
55
- mask-image: conic-gradient(rgba(255, 255, 255, 1) 0%,
56
- rgba(255, 255, 255, 1) 70%,
57
- rgba(255, 255, 255, 0) 100%);
58
- -webkit-mask-image: conic-gradient(rgba(255, 255, 255, 1) 0%,
59
- rgba(255, 255, 255, 1) 70%,
60
- rgba(255, 255, 255, 0) 100%);
61
- pointer-events: none;
62
- }
63
-
64
- .spinner-img {
65
- opacity: 0.85;
66
- width: 200px;
67
- height: auto;
68
- position: relative;
69
- z-index: 1;
70
- animation: heartbeat 1.5s infinite ease-in-out;
71
- user-select: none;
72
- pointer-events: none;
73
- -webkit-user-drag: none;
74
- }
75
-
76
- @keyframes heartbeat {
77
-
78
- 0%,
79
- 100% {
80
- transform: scale(1);
81
- }
82
-
83
- 50% {
84
- transform: scale(1.02);
85
- }
86
- }
87
-
88
- @keyframes spin {
89
- 0% {
90
- transform: rotate(0deg);
91
- }
92
-
93
- 100% {
94
- transform: rotate(360deg);
95
- }
96
- }
@@ -1,11 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'app-spinner',
5
- imports: [],
6
- templateUrl: './spinner.component.html',
7
- styleUrl: './spinner.component.scss'
8
- })
9
- export class SpinnerComponent {
10
-
11
- }
@@ -1,34 +0,0 @@
1
- <cdk-virtual-scroll-viewport itemSize="120" [style.height]="altoContainer() ? 'calc(100vh - ' + altoContainer() + 'px)' : ''" >
2
- <div class="row g-2 py-2">
3
- <div *cdkVirtualFor="let item of data(); let i = index" class="col-12">
4
- <div class="card shadow-sm">
5
- <span class="pt-2 px-3 fw-bold fs-7">{{titleTabla() ?? ''}} {{getIdentifier(item)}}</span>
6
- <div class="card-body py-1 my-0">
7
- @for (col of columns(); track $index) {
8
- @if (col.swmobile) {
9
- <div class="d-flex py-1">
10
- <strong class="fs-6 me-2 flex-shrink-0 text-truncate" style="min-width: 90px; max-width: 90px;">
11
- {{ col.caption }}
12
- </strong>
13
-
14
- <span class="fs-6 fw-normal text-break text-wrap flex-grow-1">
15
- {{ item._format?.[col.fieldname] ?? item[col.fieldname] }}
16
- </span>
17
-
18
- </div>
19
- }
20
-
21
- }
22
- </div>
23
- @if (actions()) {
24
- <div class="pb-2 px-3 d-flex justify-content-between align-items-center">
25
- <app-badge label="Acciones:" color="bg-success"></app-badge>
26
- <div>
27
- <ng-container *ngTemplateOutlet="actions(); context: { $implicit: item }"></ng-container>
28
- </div>
29
- </div>
30
- }
31
- </div>
32
- </div>
33
- </div>
34
- </cdk-virtual-scroll-viewport>
@@ -1,36 +0,0 @@
1
- import { Component, input, TemplateRef } from '@angular/core';
2
- import { BadgeComponent } from "../../alerts/badge/badge.component";
3
- import { NgTemplateOutlet } from '@angular/common';
4
- import { ScrollingModule } from '@angular/cdk/scrolling';
5
- import { TableData } from '../../../models/table-data.model';
6
- import { CellRender, CellRendered } from '../../../models/cell-rendered';
7
- import { validaArray } from 'shared-tsi';
8
-
9
- @Component({
10
- selector: 'app-card-mobile',
11
- imports: [BadgeComponent, NgTemplateOutlet,ScrollingModule],
12
- templateUrl: './card-mobile.component.html',
13
- styleUrl: './card-mobile.component.scss'
14
- })
15
- export class CardMobileComponent {
16
- data = input<any[]>([])
17
- columns = input<TableData[]>([])
18
- identifier = input<string[]>([])
19
- titleTabla = input<string>('Contrato')
20
- actions = input<TemplateRef<any>>(null)
21
- altoContainer = input<number>()
22
-
23
- rendered = input<CellRendered[]>([])
24
-
25
- getIdentifier (row:any) {
26
- if(!validaArray(this.identifier())) return ''
27
- const join = this.identifier().map(k => row[k]).join(' ')
28
- return `N° ${join}`;
29
- }
30
-
31
- resolveCell(col: string, row: any): CellRender | null {
32
- const value = row[col]
33
- const r = this.rendered().find(r => r.matches(col, value, row))
34
- return r ? r.render(value, row) : null
35
- }
36
- }
@@ -1,59 +0,0 @@
1
- <div class="d-inline-block" ngbDropdown container="body">
2
- @if (buttonProps()) {
3
- <button [colorBtn]="buttonProps()?.color || null"
4
- [colorOutlineBtn]="!buttonProps()?.color ? buttonProps()?.colorOutline : null" [disabled]="disabled()"
5
- class="button-tilt-hover w-auto w-sm-100" [ngClass]="{
6
- 'btn text-white me-1 fs-6 px-3 py-0 radius-none padd': inputButton(),
7
- 'pbp-6 wrap': !inputButton()
8
- }" ngbDropdownToggle (mouseenter)="handleMainButtonMouseEnter()" (mouseleave)="handleMainButtonMouseLeave()">
9
- <i [iconName]="buttonProps()?.icon" class="button-icon-hover"></i> {{ buttonProps()?.texto }}
10
- </button>
11
- } @else {
12
- <button class="btn btn-sm border-0" ngbDropdownToggle (mouseenter)="handleMainButtonMouseEnter()"
13
- (mouseleave)="handleMainButtonMouseLeave()" [disabled]="disabled()">
14
- <i class="fas fa-align-left fs-6"></i>
15
- </button>
16
- }
17
-
18
- <div ngbDropdownMenu class="my-0 py-0" (mouseenter)="!isMobile() && handleDropdownMouseEnter()"
19
- (mouseleave)="!isMobile() && handleDropdownMouseLeave()">
20
- @for (option of visibleOptions(); track $index) {
21
- @if (isMobile() && option.submenu) {
22
- @for (sub of getVisibleSubmenuItems(option.submenu); track $index; let last = $last) {
23
- <app-button [icon]="sub.icon" [texto]="sub.text" (accion)="!sub.upload && sub.action()" [uploadButton]="sub.upload"
24
- [accept]="sub.accept" (fileSelected)="sub.fileAction && sub.fileAction($event)"
25
- [tooltip]="getPropertyName(sub.property)" [extraClass]="
26
- (isFirstMobileItem(sub) ? 'border-top-radius ' : '') +
27
- (isLastMobileItem(sub) ? 'border-bottom-radius' : '')
28
- " [buttonDeshabilitado]="sub.property && !propiedades()[sub.property.key]" [dropdownButton]="true" />
29
- }
30
- }
31
- @else if (!option.submenu || (option.submenu && !isMobile())) {
32
- <div class="dropdown-item-with-submenu" ngbDropdown #submenuAnchor="ngbDropdown"
33
- (mouseenter)="!isMobile() && submenuAnchor.open()">
34
- @if (option.condition !== false && (!option.factor || factores()[option.factor.key])) {
35
- <app-button [icon]="option.icon" [texto]="option.text" (accion)="!option.upload && option.action()"
36
- [uploadButton]="option.upload" [accept]="option.accept"
37
- (fileSelected)="option.fileAction && option.fileAction($event)" [tooltip]="getPropertyName(option.property)"
38
- [extraClass]="($index == 0 ? 'border-top-radius ' : '') + ($index == visibleOptions().length - 1 ? 'border-bottom-radius' : '')"
39
- [buttonDeshabilitado]="option.property && !propiedades()[option.property.key]" [dropdownButton]="true"
40
- (mouseleave)="!isMobile() && mouseLeaveItem(submenuAnchor, $event, option.text)">
41
- @if (option.submenu && !isMobile()) {
42
- <div ngbDropdownMenu placement="end" class="my-0 py-0 submenu-container" #submenuDiv
43
- (mouseleave)="!isMobile() && mouseLeaveSubmenu(submenuAnchor, $event, option.text)">
44
- @for (sub of getVisibleSubmenuItems(option.submenu); track $index; let last = $last) {
45
- <app-button [icon]="sub.icon" [texto]="sub.text" (accion)="!sub.upload && sub.action()"
46
- [uploadButton]="sub.upload" [accept]="sub.accept" (fileSelected)="sub.fileAction && sub.fileAction($event)"
47
- [tooltip]="getPropertyName(sub.property)"
48
- [extraClass]="($index == 0 ? 'border-top-radius ' : '') + (last ? 'border-bottom-radius' : '')"
49
- [buttonDeshabilitado]="sub.property && !propiedades()[sub.property.key]" [dropdownButton]="true" />
50
- }
51
- </div>
52
- }
53
- </app-button>
54
- }
55
- </div>
56
- }
57
- }
58
- </div>
59
- </div>
@@ -1,88 +0,0 @@
1
- .dropdown-item-with-submenu {
2
- position: relative;
3
- transition: all 0.3s ease;
4
- }
5
-
6
- .submenu-container {
7
- position: absolute;
8
- left: 100%;
9
- top: 0;
10
- margin-top: 0 !important;
11
- opacity: 0;
12
- transform: translateY(-10px);
13
- transition: opacity 0.3s ease, transform 0.3s ease;
14
- pointer-events: none;
15
- }
16
-
17
- .dropdown-item-with-submenu:hover .submenu-container,
18
- .dropdown-item-with-submenu:focus-within .submenu-container {
19
- opacity: 1;
20
- transform: translateY(0);
21
- pointer-events: auto;
22
- }
23
-
24
- @keyframes tilt-bounce {
25
-
26
- 0%,
27
- 100% {
28
- transform: rotate(0deg);
29
- }
30
-
31
- 25% {
32
- transform: rotate(-0.5deg);
33
- }
34
-
35
- 75% {
36
- transform: rotate(0.5deg);
37
- }
38
- }
39
-
40
- @keyframes icon-rotate-pop {
41
- 0% {
42
- transform: rotate(0deg) scale(1);
43
- }
44
-
45
- 25% {
46
- transform: rotate(10deg) scale(1.05);
47
- }
48
-
49
- 50% {
50
- transform: rotate(-10deg) scale(1.1);
51
- }
52
-
53
- 75% {
54
- transform: rotate(10deg) scale(1.05);
55
- }
56
-
57
- 100% {
58
- transform: rotate(0deg) scale(1);
59
- }
60
- }
61
-
62
- .button-tilt-hover:hover {
63
- animation: tilt-bounce 0.6s infinite ease-in-out;
64
- }
65
-
66
- .button-tilt-hover:hover .button-icon-hover {
67
- animation: icon-rotate-pop 1s ease-in-out infinite;
68
- }
69
-
70
- .wrap {
71
- overflow: hidden;
72
- text-overflow: ellipsis;
73
- }
74
-
75
- @media (max-width: 575px) {
76
- .d-inline-block {
77
- display: block !important;
78
- }
79
- }
80
-
81
- button.radius-none,
82
- .btn.radius-none {
83
- border-radius: 0 !important;
84
- }
85
-
86
- .padd {
87
- padding: 3px 8px !important;
88
- }