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,50 +0,0 @@
1
- import { Directive, ElementRef, HostListener, inject } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[onlyNumberFlex]'
5
- })
6
- export class OnlyNumberFlexDirective {
7
-
8
- private elementRef = inject(ElementRef)
9
- private regex = /^-?[\d.,]*$/;
10
-
11
- @HostListener('keypress', ['$event'])
12
- onKeyPress(event: KeyboardEvent): void {
13
- const inputChar = event.key
14
-
15
- if (event.ctrlKey || event.metaKey || inputChar.length > 1) return
16
-
17
- const input = this.elementRef.nativeElement
18
- const currentValue = input.value
19
- const start = input.selectionStart ?? currentValue.length
20
- const end = input.selectionEnd ?? currentValue.length
21
-
22
- const proposed =
23
- currentValue.substring(0, start) +
24
- inputChar +
25
- currentValue.substring(end)
26
-
27
- if (!this.regex.test(proposed)) {
28
- event.preventDefault()
29
- }
30
- }
31
-
32
- @HostListener('paste', ['$event'])
33
- onPaste(event: ClipboardEvent): void {
34
- const pasted = event.clipboardData?.getData('text') || ''
35
- const input = this.elementRef.nativeElement
36
- const currentValue = input.value
37
- const start = input.selectionStart ?? currentValue.length
38
- const end = input.selectionEnd ?? currentValue.length
39
-
40
- const proposed =
41
- currentValue.substring(0, start) +
42
- pasted +
43
- currentValue.substring(end)
44
-
45
- if (!this.regex.test(proposed)) {
46
- event.preventDefault()
47
- }
48
- }
49
-
50
- }
@@ -1,53 +0,0 @@
1
- import { Directive, ElementRef, HostListener, inject } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[onlyNumber]'
5
- })
6
- export class OnlyNumberDirective {
7
-
8
- private elementRef = inject(ElementRef)
9
-
10
- @HostListener('keypress', ['$event'])
11
- onKeyPress(event: KeyboardEvent): void {
12
- const inputChar = event.key
13
-
14
- if (event.ctrlKey || event.metaKey || inputChar.length > 1) return
15
-
16
- const input = this.elementRef.nativeElement
17
- const currentValue = input.value
18
- const start = input.selectionStart ?? currentValue.length
19
- const end = input.selectionEnd ?? currentValue.length
20
-
21
- const proposed =
22
- currentValue.substring(0, start) +
23
- inputChar +
24
- currentValue.substring(end)
25
-
26
- const regex = /^-?\d*\.?\d*$/
27
-
28
- if (!regex.test(proposed)) {
29
- event.preventDefault()
30
- }
31
- }
32
-
33
- @HostListener('paste', ['$event'])
34
- onPaste(event: ClipboardEvent): void {
35
- const pasted = event.clipboardData?.getData('text') || ''
36
- const input = this.elementRef.nativeElement
37
- const currentValue = input.value
38
- const start = input.selectionStart ?? currentValue.length
39
- const end = input.selectionEnd ?? currentValue.length
40
-
41
- const proposed =
42
- currentValue.substring(0, start) +
43
- pasted +
44
- currentValue.substring(end)
45
-
46
- const regex = /^-?\d*\.?\d*$/
47
-
48
- if (!regex.test(proposed)) {
49
- event.preventDefault()
50
- }
51
- }
52
-
53
- }
@@ -1,5 +0,0 @@
1
- export enum TABLE_EVENTS {
2
- CLICK = 1,
3
- DOUBLE_CLICK = 2,
4
- RIGHT_CLICK = 3
5
- }
@@ -1,44 +0,0 @@
1
- <div class="modal-header py-2">
2
- <div class="w-100">
3
- <app-header [isModal]="isModal()" (cerrarModal)="cerrarModal()" [tamanio]="sizeTitle()" [showAlerta]="showAlerta()"
4
- [textAlerta]="textAlerta()" [title]="title()" [showFiltro]="showFiltro()" [hasData]="dataFiltro()"
5
- [(withFiltro)]="withFiltro" />
6
- </div>
7
- </div>
8
-
9
- <div class="modal-body" [ngClass]="{ 'max-height': scrollable() }">
10
- <ng-container *ngTemplateOutlet="content();"></ng-container>
11
- </div>
12
-
13
- @if( type() != 'APROB'){
14
- <div class="modal-footer">
15
- @if (footer()) {
16
- <ng-container *ngTemplateOutlet="footer();"></ng-container>
17
- }
18
- @if (type() == '1') {
19
- <app-button icon="adelante" texto="Continuar" color="verde" (accion)="continuar.emit()" />
20
- }
21
- @if (type() == '2') {
22
- <app-button icon="guardar" texto="Guardar" color="azul" (accion)="continuar.emit()" />
23
- }
24
- @if (type() == '3') {
25
- <app-button icon="imprimir" texto="Imprimir" color="gris" (accion)="continuar.emit()" />
26
- }
27
- @if( type() == '4'){
28
- <app-button icon="agregar" texto="Adicionar" color="verde" (accion)="continuar.emit()" />
29
- }
30
- @if( type() == '6'){
31
- <app-button icon="check" texto="Actualizar" color="azul" (accion)="continuar.emit()" />
32
- }
33
- @if( type() != '5'){
34
- <app-button icon="cancelar" texto="Cancelar" color="amarillo" (accion)="cerrarModal()" />
35
- }
36
- </div>
37
- }
38
-
39
- @if( type() == 'APROB'){
40
- <div class="modal-footer d-flex justify-content-center">
41
- <app-button icon="aprobar" texto="Aprobar" color="verde" (accion)="continuar.emit()" />
42
- <app-button icon="desaprobar" texto="Desaprobar" color="rojo" (accion)="continuar2.emit()" />
43
- </div>
44
- }
@@ -1,4 +0,0 @@
1
- .max-height {
2
- max-height: calc(100dvh - 210px);
3
- overflow-y: auto;
4
- }
@@ -1,50 +0,0 @@
1
- import { Component, contentChild, effect, inject, input, model, output, signal, TemplateRef } from '@angular/core';
2
- import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
3
- import { NgClass, NgTemplateOutlet } from '@angular/common';
4
- import { HeaderComponent } from '../../../ui/forms/header/header.component';
5
- import { ButtonComponent } from '../../../ui/forms/button/button.component';
6
-
7
- @Component({
8
- selector: 'app-md-generico',
9
- imports: [NgClass, NgTemplateOutlet, HeaderComponent, ButtonComponent],
10
- templateUrl: './md-generico.component.html',
11
- styleUrl: './md-generico.component.scss'
12
- })
13
-
14
- export class MdGenericoComponent {
15
-
16
- private modalService = inject(NgbActiveModal, { optional: true })
17
-
18
- title = input<string>('')
19
- continuar = output<void>()
20
- continuar2 = output<void>()
21
- cerrar = output<void>()
22
-
23
- scrollable = input<boolean>(true)
24
-
25
- type = input<'1' | '2' | '3' | '4' | '5' | '6' |'7' | 'APROB'>('1')
26
-
27
- content = contentChild<TemplateRef<any>>('body')
28
- footer = contentChild<TemplateRef<any>>('footer')
29
-
30
- showAlerta = input<boolean>(false)
31
- textAlerta = input<string>('La consulta muestra los 100 primeros registros.')
32
- sizeTitle = input<'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'>('8')
33
-
34
- showFiltro = input<boolean>(false)
35
- withFiltro = model(true)
36
- dataFiltro = input<boolean>(false)
37
-
38
- emitirFiltro = output<void>()
39
- isModal = input<boolean>(true)
40
-
41
- validaCierre = input<boolean>(false) // SI VALIDA CIERRE ES TRUE, ENTONCES SOLO SE EMITE LA ACCION, PERO NO CIERRA EN AUTOMATICO
42
-
43
- cerrarModal() {
44
- if(this.validaCierre()){
45
- this.cerrar.emit()
46
- return
47
- }
48
- this.modalService.dismiss()
49
- }
50
- }
@@ -1,9 +0,0 @@
1
- export type ColorType = 'azul' | 'rojo' | 'rojo_alerta' | 'verde' | 'negro' | 'amarillo' | 'gris' | 'plomo' | 'none' | undefined
2
-
3
- export type OutlineType = 'azul' | 'rojo' | 'verde' | 'negro' | 'amarillo' | 'gris' | 'plomo' | undefined
4
-
5
- export type IconType = 'agregar' | 'buscar' | 'guardar' | 'nocancelar' | 'cancelar' | 'cancelar2'
6
- | 'marcar' | 'atras' | 'adelante' | 'eliminar' | 'imprimir' | 'subir'
7
- | 'ver' | 'bajar' | 'comentario' | 'editar' | 'calcular' | 'aprobar'
8
- | 'desaprobar' | 'check' | 'excel' | 'pdf' | 'refresh' | 'cerrar' | 'visar' | 'anular' | 'trazabilidad' | 'bloquear' | 'desbloquear'
9
- | 'correo' | 'usuario' | 'enviarSunat' | 'descargar' | 'borrar' | 'lista' | 'monedas' | 'caja' | 'cerrar_caja' | 'abrir_caja' | 'liquidar' | 'configuracion' | 'contrato' | undefined
@@ -1,12 +0,0 @@
1
- export interface CellRender {
2
- class?: string
3
- icon?: string
4
- text?: string
5
- template?: any,
6
- hidden?: boolean
7
- }
8
-
9
- export interface CellRendered {
10
- matches: (col: string, value: any, row: any) => boolean
11
- render: (value: any, row: any) => CellRender
12
- }
@@ -1,18 +0,0 @@
1
- export interface CalcularTotales {
2
- title?: string;
3
- simbolo?: string;
4
- value?: number;
5
- title2?:string;
6
- value2?:number;
7
- }
8
-
9
- export interface DetalleCredito {
10
- limitecredito?: number;
11
- saldo?: number;
12
- pendiente?: number;
13
- vencido?: number;
14
- disponible?: number;
15
- puntaje?: number;
16
- credito?: boolean;
17
- simbolo?: string;
18
- }
@@ -1,285 +0,0 @@
1
-
2
- export class Recursos {
3
- almacenes?: Almacenes[]
4
- areas?: any[]
5
- documentoTipos?: any[]
6
- monedas?: Monedas[]
7
- motivos?: Motivos[]
8
- series?: Series[]
9
- transportistas?: Transportista[]
10
- usos?: any[]
11
- vehiculos?: any[]
12
- vendedores?: Vendedor[]
13
- }
14
-
15
- export class Series {
16
- id_cia?: any;
17
- codigo?: number;
18
- series?: string;
19
- tipinv?: number;
20
- codalm?: number;
21
- codsuc?: number;
22
- libro?: any;
23
- cuenta?: any;
24
- docid?: number;
25
- docdef?: boolean;
26
- descri?: string;
27
- correl?: number;
28
- nomser?: any;
29
- swcorr?: string;
30
- usuari?: any;
31
- fcreac?: any;
32
- factua?: any;
33
- activo?: any;
34
- lpt?: number;
35
- compago?: any;
36
- kardex?: string;
37
- canitem?: any;
38
- filart?: any;
39
- visachkcred?: string;
40
- despoblapro?: string;
41
- actcorr?: number;
42
- docelec?: boolean;
43
- tipimp?: any;
44
- sucursal?: any;
45
- glosa?: {
46
- id_cia?: any;
47
- codigo?: any;
48
- series?: any;
49
- observ?: string;
50
- swformat?: string;
51
- };
52
- clases?: any[];
53
- serieDefaultComercial?: boolean;
54
- serieDefaultVenta?: boolean;
55
- }
56
-
57
- export class Motivos {
58
- id_cia?: any;
59
- tipdoc?: number;
60
- tipdocDesc?: any;
61
- id?: string;
62
- codmot?: number;
63
- desmot?: string;
64
- abrevi?: string;
65
- costea?: string;
66
- cospro?: string;
67
- gening?: string;
68
- gensal?: string;
69
- reqpre?: string;
70
- fcreac?: any;
71
- factua?: any;
72
- usuari?: any;
73
- activo?: any;
74
- swacti?: any;
75
- tipcli?: string;
76
- docayuda?: number;
77
- docayudapv?: number;
78
- filtrodocu?: any;
79
- observ?: any;
80
- ucreac?: any;
81
- uactua?: any;
82
- clase01Moneda?: string;
83
- clase10incigv?: string;
84
- clase21NoAfectoIGV?: any;
85
- clase25Anticipo?: any;
86
- clase06AlmDestino?: any;
87
- clase18DocPadreOrdenPedido?: any;
88
- clase44TransGratuita?: any;
89
- clase52TipoTraslado?: any;
90
- clase26AplicaAnticipoRel?: any;
91
- clase53GeneraPercepcion?: any;
92
- clase61PermiteAdicionarDetalle?: any;
93
- clase62RecargaConsumo?: any;
94
- clases?: any[];
95
- }
96
-
97
- export class Monedas {
98
- id_cia?: any;
99
- codmon?: string;
100
- desmon?: string;
101
- abrevi?: string;
102
- simbolo?: string;
103
- nacional?: number;
104
- cdifdeb?: string;
105
- cdifhab?: string;
106
- codsunat?: string;
107
- fcreac?: any;
108
- factua?: any;
109
- usuari?: any;
110
- activo?: boolean;
111
- tcdesde?: number;
112
- tchasta?: number;
113
- }
114
-
115
- export class Vendedor {
116
- id_cia?: any;
117
- codven?: number;
118
- descven?: string;
119
- cargo?: any;
120
- email?: any;
121
- celular?: any;
122
- telefono?: any;
123
- comisi?: number;
124
- abrevi?: any;
125
- fcreac?: any;
126
- factua?: any;
127
- usuari?: any;
128
- activo?: boolean;
129
- firma?: any;
130
- formfirma?: any;
131
- metas?: any;
132
- }
133
-
134
- export class Transportista {
135
- id_cia?: any;
136
- codtra?: number;
137
- razonc?: string;
138
- descri?: string;
139
- domici?: string;
140
- ruc?: string;
141
- puntopartida?: any;
142
- puntollegada?: any;
143
- placa?: any;
144
- telefono?: any;
145
- licencia?: any;
146
- certificado?: any;
147
- fcreac?: any;
148
- factua?: any;
149
- usuari?: any;
150
- activo?: boolean;
151
- modificaendoc?: boolean;
152
- chofer?: any;
153
- chofer_apell?: any;
154
- chofer_tident?: any;
155
- chofer_dident?: any;
156
- email?: any;
157
- observ?: any;
158
- modalidad?: number;
159
- defaul?: string;
160
- }
161
-
162
- export class Cobradores {
163
- id_cia?: number;
164
- codcob?: number;
165
- nomcob?: string;
166
- porcom?: number;
167
- dni?: any;
168
- activo?: any;
169
- swacti?: string;
170
- usuari?: any;
171
- fcreac?: string;
172
- factua?: string;
173
- cuentacon?: string;
174
- }
175
-
176
-
177
- export class Almacenes {
178
- id_cia?: number;
179
- tipinv?: number;
180
- codalm?: number;
181
- codsuc?: number;
182
- sucursal?: any;
183
- descri?: string;
184
- abrevi?: string;
185
- fcreac?: any;
186
- factua?: any;
187
- usuari?: any;
188
- activo?: any;
189
- swterc?: any;
190
- ubigeo?: string;
191
- direcc?: any;
192
- consigna?: any;
193
- clases?: any[];
194
- ubicaciones?: any[];
195
- }
196
-
197
- export class Direcciones {
198
- id_cia?: number | null;
199
- codcli?: string;
200
- codenv?: number;
201
- descri?: string;
202
- direc1?: string;
203
- direc2?: string;
204
- telenv?: string;
205
- faxenv?: string;
206
- coddep?: string;
207
- codprv?: string;
208
- coddis?: string;
209
- codzon?: number;
210
- usuari?: string;
211
- swacti?: string;
212
- codcen?: string;
213
- sunatAnexo?: string;
214
- departamento?: string;
215
- provincia?: string;
216
- distrito?: string;
217
- ubigeo?: string;
218
- clases?: any;
219
- }
220
-
221
- export interface ClaseCabecera {
222
- id_cia?: any;
223
- clase?: number;
224
- descri?: string;
225
- vreal?: boolean;
226
- vstrg?: boolean;
227
- vchar?: boolean;
228
- vdate?: boolean;
229
- vtime?: boolean;
230
- ventero?: boolean;
231
- vglosa?: boolean;
232
- obligatorio?: boolean;
233
- vcodigo?: boolean;
234
- editable?: boolean;
235
- imprime?: boolean;
236
- codigos?: any[];
237
- value?: string;
238
- }
239
-
240
-
241
- export class TipoDocumento {
242
- id_cia?: number;
243
- tipdoc?: number;
244
- situac?: string;
245
- situacDesc?: string;
246
- permis?: string;
247
- alias?: string;
248
- activo?: boolean;
249
- usuari?: string;
250
- fcreac?: string;
251
- factua?: string;
252
- indice?: number;
253
- }
254
-
255
- export class TBanco {
256
- id_cia?: number;
257
- codban?: string;
258
- descri?: string;
259
- sector?: string | null;
260
- moneda?: string;
261
- direcc?: string | null;
262
- clibro?: string | null;
263
- cuenta?: string | null;
264
- codsunat?: string;
265
- situac?: string | null;
266
- usuari?: string;
267
- fcreac?: string;
268
- factua?: string;
269
- cuentacon?: string;
270
- cuentaret?: string;
271
- secuencia?: number;
272
- cuentacta?: string;
273
- cuentacar?: string;
274
- cuentacprot?: string | null;
275
- cuentacob?: string;
276
- cuentades?: string;
277
- cuentagar?: string;
278
- cuentaord01?: string;
279
- cuentaord02?: string;
280
- cuentaenvios?: string;
281
- filtro?: string;
282
- swacti?: string;
283
- abrevi?: string | null;
284
- clases?: string | null;
285
- }
@@ -1,66 +0,0 @@
1
- export interface Meses {
2
- id: number;
3
- nombre: string;
4
- }
5
-
6
- export interface DH {
7
- cod: string;
8
- descri: string;
9
- }
10
-
11
- export interface Filtro {
12
- libro: number;
13
- periodo: number;
14
- fechaDesde: Date;
15
- fechaHasta: Date;
16
- mes: number;
17
- asiento: number;
18
- }
19
-
20
- export interface Origen {
21
- id: number;
22
- nombre: string;
23
- selected?: boolean
24
- }
25
-
26
- export interface ConsultaPlanilla {
27
- libro?: string;
28
- periodo?: number;
29
- mes?: number;
30
- secuencia?: number
31
- }
32
-
33
- export interface FiltroReportes {
34
- cajaori?: number;
35
- libro?: string;
36
- periodo?: number;
37
- mes?: number;
38
- tipoArchivo?: string;
39
- }
40
-
41
- export interface FlujoCajaOperacion {
42
- concepto: string;
43
- operacion: string;
44
- importe: string;
45
- moneda: string;
46
- importeMN: string;
47
- importeME: string
48
- }
49
-
50
- export interface AccionTable {
51
- label?: string;
52
- icon?: string;
53
- accionType?: string;
54
- class?: string;
55
- }
56
-
57
- export interface VariablePlus {
58
- key?: string;
59
- pipe?: string;
60
- cssClass?: string;
61
- }
62
-
63
- export interface ItemMenuPage {
64
- nombre?: string;
65
- ruta?: string;
66
- }
@@ -1,26 +0,0 @@
1
- export interface InputConfig {
2
- label: string;
3
- fieldname: string;
4
- fieldname2?:string;
5
- disabled?: boolean;
6
- required?: boolean;
7
- wlabel?: number;
8
- maxlen?: number;
9
- position?: 'start' | 'center' | 'end';
10
- type?: 'text' | 'text-area' | 'date' | 'number' | 'select' | 'number-format-decimal' | 'number-integer' | 'input-switch';
11
- lista?: any[];
12
- keyCodigo?: string;
13
- keyDescri?: string;
14
- withTodos?: boolean;
15
- class?:string;
16
- joinInfo?:boolean;
17
- modelo?:'normal' | 'doble' | 'input-buscar' | 'doble-input-buscar' | 'check';
18
- buscar?:'cliente' | 'proveedor' | 'cuenta',
19
- viewInput?:'cod' | 'descri';
20
- alto?:number;
21
- }
22
-
23
- export interface InputValidate{
24
- key?:string;
25
- descri?:string;
26
- }