@cauca-911/material 21.0.1 → 21.0.3

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 (241) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -24
  3. package/{src/assets → assets}/i18n/cauca/en-material.json +104 -104
  4. package/{src/assets → assets}/i18n/cauca/es-material.json +104 -104
  5. package/{src/assets → assets}/i18n/cauca/fr-material.json +106 -106
  6. package/fesm2022/cauca-911-material.mjs +4145 -0
  7. package/fesm2022/cauca-911-material.mjs.map +1 -0
  8. package/package.json +38 -23
  9. package/types/cauca-911-material.d.ts +745 -0
  10. package/.eslintrc.json +0 -79
  11. package/README_PACKAGE.md +0 -5
  12. package/cauca-911-material-21.0.0.tgz +0 -0
  13. package/karma.conf.js +0 -50
  14. package/ng-package.json +0 -7
  15. package/src/lib/cauca-material.component.html +0 -1
  16. package/src/lib/cauca-material.component.spec.ts +0 -29
  17. package/src/lib/cauca-material.component.ts +0 -12
  18. package/src/lib/cauca-material.service.spec.ts +0 -16
  19. package/src/lib/cauca-material.service.ts +0 -7
  20. package/src/lib/components/button/button.component.html +0 -52
  21. package/src/lib/components/button/button.component.scss +0 -6
  22. package/src/lib/components/button/button.component.spec.ts +0 -142
  23. package/src/lib/components/button/button.component.ts +0 -22
  24. package/src/lib/components/buttons/base-button.ts +0 -35
  25. package/src/lib/components/buttons/basic-button/basic-button.component.html +0 -5
  26. package/src/lib/components/buttons/basic-button/basic-button.component.scss +0 -12
  27. package/src/lib/components/buttons/basic-button/basic-button.component.spec.ts +0 -106
  28. package/src/lib/components/buttons/basic-button/basic-button.component.ts +0 -17
  29. package/src/lib/components/buttons/fab-button/fab-button.component.html +0 -3
  30. package/src/lib/components/buttons/fab-button/fab-button.component.scss +0 -12
  31. package/src/lib/components/buttons/fab-button/fab-button.component.spec.ts +0 -82
  32. package/src/lib/components/buttons/fab-button/fab-button.component.ts +0 -16
  33. package/src/lib/components/buttons/flat-button/flat-button.component.html +0 -5
  34. package/src/lib/components/buttons/flat-button/flat-button.component.scss +0 -12
  35. package/src/lib/components/buttons/flat-button/flat-button.component.spec.ts +0 -106
  36. package/src/lib/components/buttons/flat-button/flat-button.component.ts +0 -17
  37. package/src/lib/components/buttons/icon-button/icon-button.component.html +0 -3
  38. package/src/lib/components/buttons/icon-button/icon-button.component.scss +0 -23
  39. package/src/lib/components/buttons/icon-button/icon-button.component.spec.ts +0 -38
  40. package/src/lib/components/buttons/icon-button/icon-button.component.ts +0 -15
  41. package/src/lib/components/buttons/link-button/link-button.component.html +0 -1
  42. package/src/lib/components/buttons/link-button/link-button.component.scss +0 -3
  43. package/src/lib/components/buttons/link-button/link-button.component.spec.ts +0 -97
  44. package/src/lib/components/buttons/link-button/link-button.component.ts +0 -25
  45. package/src/lib/components/buttons/menu-item/menu-item.component.html +0 -5
  46. package/src/lib/components/buttons/menu-item/menu-item.component.scss +0 -6
  47. package/src/lib/components/buttons/menu-item/menu-item.component.spec.ts +0 -66
  48. package/src/lib/components/buttons/menu-item/menu-item.component.ts +0 -19
  49. package/src/lib/components/buttons/raised-button/raised-button.component.html +0 -5
  50. package/src/lib/components/buttons/raised-button/raised-button.component.scss +0 -12
  51. package/src/lib/components/buttons/raised-button/raised-button.component.spec.ts +0 -108
  52. package/src/lib/components/buttons/raised-button/raised-button.component.ts +0 -17
  53. package/src/lib/components/buttons/refresh-button/refresh-button.component.html +0 -1
  54. package/src/lib/components/buttons/refresh-button/refresh-button.component.scss +0 -0
  55. package/src/lib/components/buttons/refresh-button/refresh-button.component.spec.ts +0 -81
  56. package/src/lib/components/buttons/refresh-button/refresh-button.component.ts +0 -19
  57. package/src/lib/components/buttons/round-button/round-button.component.html +0 -3
  58. package/src/lib/components/buttons/round-button/round-button.component.scss +0 -34
  59. package/src/lib/components/buttons/round-button/round-button.component.spec.ts +0 -26
  60. package/src/lib/components/buttons/round-button/round-button.component.ts +0 -14
  61. package/src/lib/components/buttons/stroked-button/stroked-button.component.html +0 -5
  62. package/src/lib/components/buttons/stroked-button/stroked-button.component.scss +0 -23
  63. package/src/lib/components/buttons/stroked-button/stroked-button.component.spec.ts +0 -114
  64. package/src/lib/components/buttons/stroked-button/stroked-button.component.ts +0 -17
  65. package/src/lib/components/cauca-date-time-picker/cauca-date-time-picker.component.html +0 -9
  66. package/src/lib/components/cauca-date-time-picker/cauca-date-time-picker.component.scss +0 -7
  67. package/src/lib/components/cauca-date-time-picker/cauca-date-time-picker.component.spec.ts +0 -68
  68. package/src/lib/components/cauca-date-time-picker/cauca-date-time-picker.component.ts +0 -155
  69. package/src/lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.html +0 -6
  70. package/src/lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.scss +0 -25
  71. package/src/lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.spec.ts +0 -23
  72. package/src/lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.ts +0 -23
  73. package/src/lib/components/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.html +0 -77
  74. package/src/lib/components/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.scss +0 -124
  75. package/src/lib/components/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.spec.ts +0 -96
  76. package/src/lib/components/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.ts +0 -228
  77. package/src/lib/components/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.html +0 -9
  78. package/src/lib/components/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.scss +0 -15
  79. package/src/lib/components/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.spec.ts +0 -105
  80. package/src/lib/components/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.ts +0 -48
  81. package/src/lib/components/cauca-date-time-picker/models/dialog-date-time-picker-data.ts +0 -29
  82. package/src/lib/components/deprecated-components/cauca-input-file/cauca-input-file.component.html +0 -14
  83. package/src/lib/components/deprecated-components/cauca-input-file/cauca-input-file.component.scss +0 -3
  84. package/src/lib/components/deprecated-components/cauca-input-file/cauca-input-file.component.ts +0 -87
  85. package/src/lib/components/deprecated-components/cauca-input-multiple-langue/cauca-input-multiple-langue.component.html +0 -12
  86. package/src/lib/components/deprecated-components/cauca-input-multiple-langue/cauca-input-multiple-langue.component.scss +0 -3
  87. package/src/lib/components/deprecated-components/cauca-input-multiple-langue/cauca-input-multiple-langue.component.spec.ts +0 -35
  88. package/src/lib/components/deprecated-components/cauca-input-multiple-langue/cauca-input-multiple-langue.component.ts +0 -57
  89. package/src/lib/components/deprecated-components/cauca-menu-vertical/cauca-menu-vertical.component.html +0 -49
  90. package/src/lib/components/deprecated-components/cauca-menu-vertical/cauca-menu-vertical.component.ts +0 -56
  91. package/src/lib/components/deprecated-components/cauca-simple-dialog/cauca-simple-dialog.component.html +0 -11
  92. package/src/lib/components/deprecated-components/cauca-simple-dialog/cauca-simple-dialog.component.scss +0 -4
  93. package/src/lib/components/deprecated-components/cauca-simple-dialog/cauca-simple-dialog.component.spec.ts +0 -39
  94. package/src/lib/components/deprecated-components/cauca-simple-dialog/cauca-simple-dialog.component.ts +0 -20
  95. package/src/lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.html +0 -7
  96. package/src/lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.scss +0 -41
  97. package/src/lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.spec.ts +0 -24
  98. package/src/lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.ts +0 -67
  99. package/src/lib/components/deprecated-components/shared/models/menu-item.ts +0 -11
  100. package/src/lib/components/deprecated-components/shared/models/simple-dialog-data.ts +0 -5
  101. package/src/lib/components/dialogs/alert-dialog/alert-dialog.component.html +0 -10
  102. package/src/lib/components/dialogs/alert-dialog/alert-dialog.component.scss +0 -14
  103. package/src/lib/components/dialogs/alert-dialog/alert-dialog.component.spec.ts +0 -90
  104. package/src/lib/components/dialogs/alert-dialog/alert-dialog.component.ts +0 -41
  105. package/src/lib/components/dialogs/confirm-dialog/confirm-dialog.component.html +0 -11
  106. package/src/lib/components/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -29
  107. package/src/lib/components/dialogs/confirm-dialog/confirm-dialog.component.spec.ts +0 -137
  108. package/src/lib/components/dialogs/confirm-dialog/confirm-dialog.component.ts +0 -47
  109. package/src/lib/components/dialogs/delete-dialog/delete-dialog.component.html +0 -17
  110. package/src/lib/components/dialogs/delete-dialog/delete-dialog.component.scss +0 -14
  111. package/src/lib/components/dialogs/delete-dialog/delete-dialog.component.spec.ts +0 -96
  112. package/src/lib/components/dialogs/delete-dialog/delete-dialog.component.ts +0 -40
  113. package/src/lib/components/dialogs/delete-dialog/models/delete-dialog-data.spec.ts +0 -7
  114. package/src/lib/components/dialogs/delete-dialog/models/delete-dialog-data.ts +0 -5
  115. package/src/lib/components/dialogs/dialog-styles.css +0 -9
  116. package/src/lib/components/dialogs/dialog-styles.scss +0 -9
  117. package/src/lib/components/dialogs/error-dialog/error-dialog.component.html +0 -10
  118. package/src/lib/components/dialogs/error-dialog/error-dialog.component.scss +0 -10
  119. package/src/lib/components/dialogs/error-dialog/error-dialog.component.spec.ts +0 -91
  120. package/src/lib/components/dialogs/error-dialog/error-dialog.component.ts +0 -32
  121. package/src/lib/components/dialogs/services/dialog.service.spec.ts +0 -82
  122. package/src/lib/components/dialogs/services/dialog.service.ts +0 -107
  123. package/src/lib/components/dialogs/text-input-dialog/text-input-dialog.component.html +0 -24
  124. package/src/lib/components/dialogs/text-input-dialog/text-input-dialog.component.scss +0 -22
  125. package/src/lib/components/dialogs/text-input-dialog/text-input-dialog.component.spec.ts +0 -126
  126. package/src/lib/components/dialogs/text-input-dialog/text-input-dialog.component.ts +0 -66
  127. package/src/lib/components/inputs/color-picker/color-picker.component.html +0 -9
  128. package/src/lib/components/inputs/color-picker/color-picker.component.scss +0 -0
  129. package/src/lib/components/inputs/color-picker/color-picker.component.spec.ts +0 -29
  130. package/src/lib/components/inputs/color-picker/color-picker.component.ts +0 -111
  131. package/src/lib/components/inputs/date-range-picker/date-range-picker.component.html +0 -13
  132. package/src/lib/components/inputs/date-range-picker/date-range-picker.component.scss +0 -0
  133. package/src/lib/components/inputs/date-range-picker/date-range-picker.component.spec.ts +0 -80
  134. package/src/lib/components/inputs/date-range-picker/date-range-picker.component.ts +0 -46
  135. package/src/lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.html +0 -40
  136. package/src/lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.scss +0 -39
  137. package/src/lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.spec.ts +0 -135
  138. package/src/lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.ts +0 -263
  139. package/src/lib/components/inputs/password/password-criteria/password-criteria.component.html +0 -6
  140. package/src/lib/components/inputs/password/password-criteria/password-criteria.component.scss +0 -27
  141. package/src/lib/components/inputs/password/password-criteria/password-criteria.component.spec.ts +0 -90
  142. package/src/lib/components/inputs/password/password-criteria/password-criteria.component.ts +0 -17
  143. package/src/lib/components/inputs/password/password-criteria-viewer/password-criteria-viewer.component.html +0 -5
  144. package/src/lib/components/inputs/password/password-criteria-viewer/password-criteria-viewer.component.scss +0 -8
  145. package/src/lib/components/inputs/password/password-criteria-viewer/password-criteria-viewer.component.spec.ts +0 -98
  146. package/src/lib/components/inputs/password/password-criteria-viewer/password-criteria-viewer.component.ts +0 -16
  147. package/src/lib/components/inputs/password/password-input/password-input.component.html +0 -11
  148. package/src/lib/components/inputs/password/password-input/password-input.component.scss +0 -12
  149. package/src/lib/components/inputs/password/password-input/password-input.component.spec.ts +0 -141
  150. package/src/lib/components/inputs/password/password-input/password-input.component.ts +0 -67
  151. package/src/lib/components/inputs/password/password-selection/password-selection.component.html +0 -15
  152. package/src/lib/components/inputs/password/password-selection/password-selection.component.scss +0 -32
  153. package/src/lib/components/inputs/password/password-selection/password-selection.component.spec.ts +0 -138
  154. package/src/lib/components/inputs/password/password-selection/password-selection.component.ts +0 -101
  155. package/src/lib/components/inputs/select-with-search/select-with-search.component.html +0 -19
  156. package/src/lib/components/inputs/select-with-search/select-with-search.component.scss +0 -0
  157. package/src/lib/components/inputs/select-with-search/select-with-search.component.spec.ts +0 -215
  158. package/src/lib/components/inputs/select-with-search/select-with-search.component.ts +0 -108
  159. package/src/lib/components/layout/expandable-panel/expandable-panel.component.html +0 -14
  160. package/src/lib/components/layout/expandable-panel/expandable-panel.component.scss +0 -48
  161. package/src/lib/components/layout/expandable-panel/expandable-panel.component.spec.ts +0 -48
  162. package/src/lib/components/layout/expandable-panel/expandable-panel.component.ts +0 -19
  163. package/src/lib/components/layout/group-container/group-container.component.html +0 -6
  164. package/src/lib/components/layout/group-container/group-container.component.scss +0 -22
  165. package/src/lib/components/layout/group-container/group-container.component.spec.ts +0 -34
  166. package/src/lib/components/layout/group-container/group-container.component.ts +0 -14
  167. package/src/lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.html +0 -13
  168. package/src/lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.scss +0 -27
  169. package/src/lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.spec.ts +0 -144
  170. package/src/lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts +0 -52
  171. package/src/lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.html +0 -4
  172. package/src/lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.scss +0 -10
  173. package/src/lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.spec.ts +0 -80
  174. package/src/lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.ts +0 -28
  175. package/src/lib/components/layout/page-title/page-title.component.html +0 -28
  176. package/src/lib/components/layout/page-title/page-title.component.scss +0 -40
  177. package/src/lib/components/layout/page-title/page-title.component.spec.ts +0 -162
  178. package/src/lib/components/layout/page-title/page-title.component.ts +0 -28
  179. package/src/lib/components/layout/sections/main-section/main-section.component.html +0 -6
  180. package/src/lib/components/layout/sections/main-section/main-section.component.scss +0 -27
  181. package/src/lib/components/layout/sections/main-section/main-section.component.spec.ts +0 -42
  182. package/src/lib/components/layout/sections/main-section/main-section.component.ts +0 -13
  183. package/src/lib/components/layout/sections/section-column/section-column.component.html +0 -3
  184. package/src/lib/components/layout/sections/section-column/section-column.component.scss +0 -18
  185. package/src/lib/components/layout/sections/section-column/section-column.component.spec.ts +0 -35
  186. package/src/lib/components/layout/sections/section-column/section-column.component.ts +0 -12
  187. package/src/lib/components/layout/sections/section-field/section-field.component.html +0 -21
  188. package/src/lib/components/layout/sections/section-field/section-field.component.scss +0 -44
  189. package/src/lib/components/layout/sections/section-field/section-field.component.spec.ts +0 -74
  190. package/src/lib/components/layout/sections/section-field/section-field.component.ts +0 -22
  191. package/src/lib/components/list-paginator/list-paginator.component.html +0 -16
  192. package/src/lib/components/list-paginator/list-paginator.component.scss +0 -46
  193. package/src/lib/components/list-paginator/list-paginator.component.spec.ts +0 -248
  194. package/src/lib/components/list-paginator/list-paginator.component.ts +0 -81
  195. package/src/lib/components/misc/loading-error/loading-error.component.html +0 -11
  196. package/src/lib/components/misc/loading-error/loading-error.component.scss +0 -0
  197. package/src/lib/components/misc/loading-error/loading-error.component.spec.ts +0 -75
  198. package/src/lib/components/misc/loading-error/loading-error.component.ts +0 -18
  199. package/src/lib/components/misc/loading-spinner-indicator/loading-spinner-indicator.component.html +0 -3
  200. package/src/lib/components/misc/loading-spinner-indicator/loading-spinner-indicator.component.scss +0 -0
  201. package/src/lib/components/misc/loading-spinner-indicator/loading-spinner-indicator.component.spec.ts +0 -43
  202. package/src/lib/components/misc/loading-spinner-indicator/loading-spinner-indicator.component.ts +0 -16
  203. package/src/lib/components/misc/snack-bar/snack-bar.component.html +0 -16
  204. package/src/lib/components/misc/snack-bar/snack-bar.component.scss +0 -84
  205. package/src/lib/components/misc/snack-bar/snack-bar.component.spec.ts +0 -136
  206. package/src/lib/components/misc/snack-bar/snack-bar.component.ts +0 -39
  207. package/src/lib/components/notifications/saving-confirmed-box/saving-confirmed-box.component.html +0 -11
  208. package/src/lib/components/notifications/saving-confirmed-box/saving-confirmed-box.component.scss +0 -0
  209. package/src/lib/components/notifications/saving-confirmed-box/saving-confirmed-box.component.spec.ts +0 -67
  210. package/src/lib/components/notifications/saving-confirmed-box/saving-confirmed-box.component.ts +0 -15
  211. package/src/lib/components/notifications/saving-error-box/saving-error-box.component.html +0 -11
  212. package/src/lib/components/notifications/saving-error-box/saving-error-box.component.scss +0 -0
  213. package/src/lib/components/notifications/saving-error-box/saving-error-box.component.spec.ts +0 -77
  214. package/src/lib/components/notifications/saving-error-box/saving-error-box.component.ts +0 -17
  215. package/src/lib/components/presenters/badge/badge.component.html +0 -6
  216. package/src/lib/components/presenters/badge/badge.component.scss +0 -10
  217. package/src/lib/components/presenters/badge/badge.component.spec.ts +0 -41
  218. package/src/lib/components/presenters/badge/badge.component.ts +0 -18
  219. package/src/lib/components/presenters/icon/icon.component.scss +0 -9
  220. package/src/lib/components/presenters/icon/icon.component.spec.ts +0 -38
  221. package/src/lib/components/presenters/icon/icon.component.ts +0 -37
  222. package/src/lib/core/breadcrumb.service.spec.ts +0 -35
  223. package/src/lib/core/breadcrumb.service.ts +0 -24
  224. package/src/lib/core/directives/auto-trim-and-lower.directive.spec.ts +0 -22
  225. package/src/lib/core/directives/auto-trim-and-lower.directive.ts +0 -19
  226. package/src/lib/core/directives/form-error/form-error.module.ts +0 -21
  227. package/src/lib/core/directives/form-error/has-error-root.directive.ts +0 -31
  228. package/src/lib/core/directives/form-error/has-error.directive.ts +0 -95
  229. package/src/lib/core/loading-state.service.spec.ts +0 -57
  230. package/src/lib/core/loading-state.service.ts +0 -44
  231. package/src/lib/core/models/breadcrumb-location.ts +0 -6
  232. package/src/lib/core/models/password-validation.ts +0 -20
  233. package/src/lib/core/validators/password/password-validator.spec.ts +0 -155
  234. package/src/lib/core/validators/password/password-validator.ts +0 -30
  235. package/src/lib/provide-cauca-material.ts +0 -10
  236. package/src/public-api.ts +0 -70
  237. package/src/test.ts +0 -17
  238. package/tsconfig.lib.json +0 -18
  239. package/tsconfig.lib.prod.json +0 -4
  240. package/tsconfig.spec.json +0 -17
  241. /package/{src/assets → assets}/images/loading.gif +0 -0
@@ -0,0 +1,4145 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, ChangeDetectionStrategy, Component, input, output, signal, inject, HostListener, computed, Injector, ElementRef, Directive, forwardRef, model, TemplateRef, Input, Optional, Self, ContentChild, ViewChild, resource, effect, NgModule, EventEmitter, Output } from '@angular/core';
3
+ import * as i1 from '@ngx-translate/core';
4
+ import { TranslateModule, TranslatePipe, TranslateService } from '@ngx-translate/core';
5
+ import * as i1$5 from '@angular/material/dialog';
6
+ import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogTitle, MatDialogContent, MatDialogActions } from '@angular/material/dialog';
7
+ import * as i1$2 from '@angular/material/icon';
8
+ import { MatIconModule, MatIcon } from '@angular/material/icon';
9
+ import * as i3$1 from '@angular/material/input';
10
+ import { MatInputModule, MatInput } from '@angular/material/input';
11
+ import { provideNativeDateAdapter } from '@angular/material/core';
12
+ import * as i2 from '@angular/material/datepicker';
13
+ import { MatDatepickerModule } from '@angular/material/datepicker';
14
+ import * as i1$3 from '@angular/material/list';
15
+ import { MatListModule } from '@angular/material/list';
16
+ import { CaucaCoreForChildModule, toLowerCaseAndWithoutDiacritics, TranslateService as TranslateService$1, CaucaCoreService } from '@cauca-911/core';
17
+ import * as i1$1 from '@angular/material/button';
18
+ import { MatButtonModule, MatButton, MatIconButton } from '@angular/material/button';
19
+ import * as i3 from '@angular/common';
20
+ import { CommonModule, DatePipe, NgClass } from '@angular/common';
21
+ import * as i1$4 from '@angular/material/form-field';
22
+ import { MatFormFieldModule, MatFormFieldControl, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
23
+ import * as i1$6 from '@angular/forms';
24
+ import { Validators, NgControl, FormControlName, ControlContainer, FormControl, NG_VALUE_ACCESSOR, UntypedFormBuilder, ReactiveFormsModule, FormsModule, FormGroup, NgForm, FormGroupDirective, FormControlDirective, UntypedFormControl } from '@angular/forms';
25
+ import { Clipboard } from '@angular/cdk/clipboard';
26
+ import { MatMenuItem, MatMenuTrigger } from '@angular/material/menu';
27
+ import { firstValueFrom, of, tap, mergeMap, catchError, finalize, throwError, filter, Subject, startWith, map, ReplaySubject, switchMap, EMPTY, combineLatest, distinctUntilChanged } from 'rxjs';
28
+ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
29
+ import { BreakpointObserver } from '@angular/cdk/layout';
30
+ import * as i4 from '@angular/cdk/text-field';
31
+ import { MatProgressSpinner } from '@angular/material/progress-spinner';
32
+ import * as i1$7 from '@angular/material/chips';
33
+ import { MatChipsModule, MatChipGrid, MatChip, MatChipRemove, MatChipInput } from '@angular/material/chips';
34
+ import * as i1$8 from '@fortawesome/angular-fontawesome';
35
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
36
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
37
+ import * as i2$1 from '@angular/material/autocomplete';
38
+ import { MatAutocompleteModule, MatAutocompleteTrigger } from '@angular/material/autocomplete';
39
+ import { ColorPickerDirective } from 'ngx-color-picker';
40
+ import * as i2$2 from '@angular/material/select';
41
+ import { MatSelectModule } from '@angular/material/select';
42
+ import * as i5 from 'ngx-mat-select-search';
43
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
44
+ import * as i1$9 from '@angular/router';
45
+ import { RouterModule, Router } from '@angular/router';
46
+ import { MatTabGroup, MatTab } from '@angular/material/tabs';
47
+
48
+ class CaucaMaterialService {
49
+ static { this.ɵfac = function CaucaMaterialService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaMaterialService)(); }; }
50
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaucaMaterialService, factory: CaucaMaterialService.ɵfac, providedIn: 'root' }); }
51
+ }
52
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialService, [{
53
+ type: Injectable,
54
+ args: [{
55
+ providedIn: 'root'
56
+ }]
57
+ }], null, null); })();
58
+
59
+ class CaucaMaterialComponent {
60
+ static { this.ɵfac = function CaucaMaterialComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaMaterialComponent)(); }; }
61
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) { if (rf & 1) {
62
+ i0.ɵɵdomElementStart(0, "div");
63
+ i0.ɵɵtext(1);
64
+ i0.ɵɵpipe(2, "translate");
65
+ i0.ɵɵdomElementEnd();
66
+ } if (rf & 2) {
67
+ i0.ɵɵadvance();
68
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
69
+ } }, dependencies: [TranslateModule, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
70
+ }
71
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialComponent, [{
72
+ type: Component,
73
+ args: [{ selector: 'cauca-material', imports: [TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
74
+ }], null, null); })();
75
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib/cauca-material.component.ts", lineNumber: 11 }); })();
76
+
77
+ class MobileTimePickerComponent {
78
+ constructor() {
79
+ this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
80
+ this.options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
81
+ this.valueChange = output();
82
+ }
83
+ valueUp() {
84
+ const currentIndex = this.options().indexOf(this.value());
85
+ let newValue = 0;
86
+ if (currentIndex === this.options().length - 1) {
87
+ newValue = this.options()[0];
88
+ }
89
+ else {
90
+ newValue = this.options()[currentIndex + 1];
91
+ }
92
+ this.valueChange.emit(newValue);
93
+ }
94
+ valueDown() {
95
+ const currentIndex = this.options().indexOf(this.value());
96
+ let newValue = 0;
97
+ if (currentIndex === 0) {
98
+ newValue = this.options()[this.options().length - 1];
99
+ }
100
+ else {
101
+ newValue = this.options()[currentIndex - 1];
102
+ }
103
+ this.valueChange.emit(newValue);
104
+ }
105
+ static { this.ɵfac = function MobileTimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MobileTimePickerComponent)(); }; }
106
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MobileTimePickerComponent, selectors: [["cauca-mobile-time-picker"]], inputs: { value: [1, "value"], options: [1, "options"] }, outputs: { valueChange: "valueChange" }, decls: 8, vars: 1, consts: [["mat-icon-button", "", 3, "click"]], template: function MobileTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
107
+ i0.ɵɵelementStart(0, "button", 0);
108
+ i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_0_listener() { return ctx.valueUp(); });
109
+ i0.ɵɵelementStart(1, "mat-icon");
110
+ i0.ɵɵtext(2, "keyboard_arrow_up");
111
+ i0.ɵɵelementEnd()();
112
+ i0.ɵɵelementStart(3, "div");
113
+ i0.ɵɵtext(4);
114
+ i0.ɵɵelementEnd();
115
+ i0.ɵɵelementStart(5, "button", 0);
116
+ i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_5_listener() { return ctx.valueDown(); });
117
+ i0.ɵɵelementStart(6, "mat-icon");
118
+ i0.ɵɵtext(7, "keyboard_arrow_down");
119
+ i0.ɵɵelementEnd()();
120
+ } if (rf & 2) {
121
+ i0.ɵɵadvance(4);
122
+ i0.ɵɵtextInterpolate1("\n", (ctx.value() < 10 ? "0" : "") + ctx.value(), "\n");
123
+ } }, dependencies: [MatButtonModule, i1$1.MatIconButton, MatIconModule, i1$2.MatIcon, MatFormFieldModule,
124
+ MatInputModule], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:70px;font-family:var(--mat-form-field-container-text-font)}.mat-mdc-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px;padding:0}"], changeDetection: 0 }); }
125
+ }
126
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MobileTimePickerComponent, [{
127
+ type: Component,
128
+ args: [{ selector: 'cauca-mobile-time-picker', imports: [
129
+ MatButtonModule,
130
+ MatIconModule,
131
+ MatFormFieldModule,
132
+ MatInputModule
133
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button mat-icon-button (click)=\"valueUp()\">\n <mat-icon>keyboard_arrow_up</mat-icon>\n</button>\n<div>\n{{(value() < 10 ? '0' : '' ) + value()}}\n</div>\n<button mat-icon-button (click)=\"valueDown()\">\n <mat-icon>keyboard_arrow_down</mat-icon>\n</button>\n", styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;height:70px;font-family:var(--mat-form-field-container-text-font)}.mat-mdc-icon-button{height:24px;width:24px;line-height:24px;padding:0}\n"] }]
134
+ }], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
135
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MobileTimePickerComponent, { className: "MobileTimePickerComponent", filePath: "lib/components/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.ts", lineNumber: 19 }); })();
136
+
137
+ function DesktopTimePickerComponent_For_2_Template(rf, ctx) { if (rf & 1) {
138
+ const _r1 = i0.ɵɵgetCurrentView();
139
+ i0.ɵɵelementStart(0, "mat-list-item", 2);
140
+ i0.ɵɵlistener("click", function DesktopTimePickerComponent_For_2_Template_mat_list_item_click_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.valueChange.emit(option_r2)); });
141
+ i0.ɵɵtext(1);
142
+ i0.ɵɵelementEnd();
143
+ } if (rf & 2) {
144
+ let tmp_11_0;
145
+ const option_r2 = ctx.$implicit;
146
+ const ctx_r2 = i0.ɵɵnextContext();
147
+ i0.ɵɵproperty("activated", ctx_r2.value() === option_r2)("disabled", (tmp_11_0 = ctx_r2.disabled()) == null ? null : tmp_11_0.someOptions == null ? null : tmp_11_0.someOptions.includes(option_r2));
148
+ i0.ɵɵadvance();
149
+ i0.ɵɵtextInterpolate((option_r2 < 10 ? "0" : "") + option_r2);
150
+ } }
151
+ class DesktopTimePickerComponent {
152
+ constructor() {
153
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
154
+ this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
155
+ this.disabled = input(...(ngDevMode ? [undefined, { debugName: "disabled" }] : []));
156
+ this.valueChange = output();
157
+ }
158
+ static { this.ɵfac = function DesktopTimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DesktopTimePickerComponent)(); }; }
159
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DesktopTimePickerComponent, selectors: [["cauca-desktop-time-picker"]], inputs: { options: [1, "options"], value: [1, "value"], disabled: [1, "disabled"] }, outputs: { valueChange: "valueChange" }, decls: 3, vars: 1, consts: [[3, "disabled"], [3, "activated", "disabled"], [3, "click", "activated", "disabled"]], template: function DesktopTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
160
+ i0.ɵɵelementStart(0, "mat-list", 0);
161
+ i0.ɵɵrepeaterCreate(1, DesktopTimePickerComponent_For_2_Template, 2, 3, "mat-list-item", 1, i0.ɵɵrepeaterTrackByIdentity);
162
+ i0.ɵɵelementEnd();
163
+ } if (rf & 2) {
164
+ let tmp_0_0;
165
+ i0.ɵɵproperty("disabled", (tmp_0_0 = ctx.disabled()) == null ? null : tmp_0_0.all);
166
+ i0.ɵɵadvance();
167
+ i0.ɵɵrepeater(ctx.options());
168
+ } }, dependencies: [MatListModule, i1$3.MatList, i1$3.MatListItem], styles: ["mat-list[_ngcontent-%COMP%]{width:50px;padding:0}mat-list[_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]:not(.mat-mdc-list-item-interactive){cursor:pointer} > div[_ngcontent-%COMP%]::-webkit-scrollbar{display:none} .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)} .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)} .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}"], changeDetection: 0 }); }
169
+ }
170
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DesktopTimePickerComponent, [{
171
+ type: Component,
172
+ args: [{ selector: 'cauca-desktop-time-picker', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
173
+ MatListModule
174
+ ], template: "<mat-list [disabled]=\"disabled()?.all\">\n @for (option of options(); track option) {\n <mat-list-item [activated]=\"value() === option\" [disabled]=\"disabled()?.someOptions?.includes(option)\"\n (click)=\"valueChange.emit(option)\">{{(option < 10 ? '0' : '' ) + option}}</mat-list-item>\n }\n</mat-list>", styles: ["mat-list{width:50px;padding:0}mat-list .mat-mdc-list-item:not(.mat-mdc-list-item-interactive){cursor:pointer}>div::-webkit-scrollbar{display:none}::ng-deep .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}::ng-deep .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}::ng-deep .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}\n"] }]
175
+ }], null, { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] }); })();
176
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.ts", lineNumber: 13 }); })();
177
+
178
+ const _c0$c = (a0, a1) => ({ all: a0, someOptions: a1 });
179
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
180
+ const _r1 = i0.ɵɵgetCurrentView();
181
+ i0.ɵɵelementStart(0, "div", 8)(1, "cauca-desktop-time-picker", 13);
182
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_0_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.hourChanged($event)); });
183
+ i0.ɵɵelementEnd()();
184
+ } if (rf & 2) {
185
+ const ctx_r1 = i0.ɵɵnextContext(2);
186
+ i0.ɵɵadvance();
187
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$c, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
188
+ } }
189
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
190
+ const _r3 = i0.ɵɵgetCurrentView();
191
+ i0.ɵɵelementStart(0, "div", 8)(1, "cauca-mobile-time-picker", 14);
192
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_1_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.hourChanged($event)); });
193
+ i0.ɵɵelementEnd()();
194
+ } if (rf & 2) {
195
+ const ctx_r1 = i0.ɵɵnextContext(2);
196
+ i0.ɵɵadvance();
197
+ i0.ɵɵproperty("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
198
+ } }
199
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
200
+ i0.ɵɵelementStart(0, "div", 9);
201
+ i0.ɵɵtext(1, ":");
202
+ i0.ɵɵelementEnd();
203
+ } }
204
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
205
+ const _r4 = i0.ɵɵgetCurrentView();
206
+ i0.ɵɵelementStart(0, "div", 10)(1, "cauca-desktop-time-picker", 13);
207
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_3_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.minuteChanged($event)); });
208
+ i0.ɵɵelementEnd()();
209
+ } if (rf & 2) {
210
+ const ctx_r1 = i0.ɵɵnextContext(2);
211
+ i0.ɵɵadvance();
212
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$c, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
213
+ } }
214
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
215
+ const _r5 = i0.ɵɵgetCurrentView();
216
+ i0.ɵɵelementStart(0, "div", 10)(1, "cauca-mobile-time-picker", 14);
217
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_4_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.minuteChanged($event)); });
218
+ i0.ɵɵelementEnd()();
219
+ } if (rf & 2) {
220
+ const ctx_r1 = i0.ɵɵnextContext(2);
221
+ i0.ɵɵadvance();
222
+ i0.ɵɵproperty("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
223
+ } }
224
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_5_Template(rf, ctx) { if (rf & 1) {
225
+ i0.ɵɵelementStart(0, "div", 11);
226
+ i0.ɵɵtext(1, ":");
227
+ i0.ɵɵelementEnd();
228
+ } }
229
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_6_Template(rf, ctx) { if (rf & 1) {
230
+ const _r6 = i0.ɵɵgetCurrentView();
231
+ i0.ɵɵelementStart(0, "div", 12)(1, "cauca-desktop-time-picker", 13);
232
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_6_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.secondChanged($event)); });
233
+ i0.ɵɵelementEnd()();
234
+ } if (rf & 2) {
235
+ const ctx_r1 = i0.ɵɵnextContext(2);
236
+ i0.ɵɵadvance();
237
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$c, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
238
+ } }
239
+ function DialogDateTimePickerComponent_Conditional_4_Conditional_7_Template(rf, ctx) { if (rf & 1) {
240
+ const _r7 = i0.ɵɵgetCurrentView();
241
+ i0.ɵɵelementStart(0, "div", 12)(1, "cauca-mobile-time-picker", 14);
242
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_Conditional_4_Conditional_7_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.secondChanged($event)); });
243
+ i0.ɵɵelementEnd()();
244
+ } if (rf & 2) {
245
+ const ctx_r1 = i0.ɵɵnextContext(2);
246
+ i0.ɵɵadvance();
247
+ i0.ɵɵproperty("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
248
+ } }
249
+ function DialogDateTimePickerComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
250
+ i0.ɵɵconditionalCreate(0, DialogDateTimePickerComponent_Conditional_4_Conditional_0_Template, 2, 6, "div", 8);
251
+ i0.ɵɵconditionalCreate(1, DialogDateTimePickerComponent_Conditional_4_Conditional_1_Template, 2, 2, "div", 8);
252
+ i0.ɵɵconditionalCreate(2, DialogDateTimePickerComponent_Conditional_4_Conditional_2_Template, 2, 0, "div", 9);
253
+ i0.ɵɵconditionalCreate(3, DialogDateTimePickerComponent_Conditional_4_Conditional_3_Template, 2, 6, "div", 10);
254
+ i0.ɵɵconditionalCreate(4, DialogDateTimePickerComponent_Conditional_4_Conditional_4_Template, 2, 2, "div", 10);
255
+ i0.ɵɵconditionalCreate(5, DialogDateTimePickerComponent_Conditional_4_Conditional_5_Template, 2, 0, "div", 11);
256
+ i0.ɵɵconditionalCreate(6, DialogDateTimePickerComponent_Conditional_4_Conditional_6_Template, 2, 6, "div", 12);
257
+ i0.ɵɵconditionalCreate(7, DialogDateTimePickerComponent_Conditional_4_Conditional_7_Template, 2, 2, "div", 12);
258
+ } if (rf & 2) {
259
+ const ctx_r1 = i0.ɵɵnextContext();
260
+ i0.ɵɵconditional(!ctx_r1.showMobileUi ? 0 : -1);
261
+ i0.ɵɵadvance();
262
+ i0.ɵɵconditional(ctx_r1.showMobileUi ? 1 : -1);
263
+ i0.ɵɵadvance();
264
+ i0.ɵɵconditional(ctx_r1.showMobileUi ? 2 : -1);
265
+ i0.ɵɵadvance();
266
+ i0.ɵɵconditional(!ctx_r1.showMobileUi ? 3 : -1);
267
+ i0.ɵɵadvance();
268
+ i0.ɵɵconditional(ctx_r1.showMobileUi ? 4 : -1);
269
+ i0.ɵɵadvance();
270
+ i0.ɵɵconditional(ctx_r1.showSeconds() && ctx_r1.showMobileUi ? 5 : -1);
271
+ i0.ɵɵadvance();
272
+ i0.ɵɵconditional(ctx_r1.showSeconds() && !ctx_r1.showMobileUi ? 6 : -1);
273
+ i0.ɵɵadvance();
274
+ i0.ɵɵconditional(ctx_r1.showSeconds() && ctx_r1.showMobileUi ? 7 : -1);
275
+ } }
276
+ function DialogDateTimePickerComponent_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
277
+ i0.ɵɵelementStart(0, "mat-icon");
278
+ i0.ɵɵtext(1, "clear");
279
+ i0.ɵɵelementEnd();
280
+ } }
281
+ function DialogDateTimePickerComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
282
+ const _r8 = i0.ɵɵgetCurrentView();
283
+ i0.ɵɵelementStart(0, "button", 15);
284
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.clear()); });
285
+ i0.ɵɵconditionalCreate(1, DialogDateTimePickerComponent_Conditional_6_Conditional_1_Template, 2, 0, "mat-icon");
286
+ i0.ɵɵtext(2);
287
+ i0.ɵɵpipe(3, "translate");
288
+ i0.ɵɵelementEnd();
289
+ } if (rf & 2) {
290
+ const ctx_r1 = i0.ɵɵnextContext();
291
+ i0.ɵɵadvance();
292
+ i0.ɵɵconditional(ctx_r1.showButtonIcons ? 1 : -1);
293
+ i0.ɵɵadvance();
294
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "material.clear"), " ");
295
+ } }
296
+ function DialogDateTimePickerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
297
+ i0.ɵɵelementStart(0, "mat-icon");
298
+ i0.ɵɵtext(1, "cancel");
299
+ i0.ɵɵelementEnd();
300
+ } }
301
+ function DialogDateTimePickerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
302
+ i0.ɵɵelementStart(0, "mat-icon");
303
+ i0.ɵɵtext(1, "check");
304
+ i0.ɵɵelementEnd();
305
+ } }
306
+ class DialogDateTimePickerComponent {
307
+ constructor() {
308
+ this.selectedHour = 0;
309
+ this.selectedMinute = 0;
310
+ this.selectedSecond = 0;
311
+ this.initialDate = null;
312
+ this.selectedDate = null;
313
+ this.minimumDate = new Date();
314
+ this.maximumDate = new Date();
315
+ this.showSeconds = signal(false, ...(ngDevMode ? [{ debugName: "showSeconds" }] : []));
316
+ this.showClearButton = true;
317
+ this.showButtonIcons = true;
318
+ this.hours = [...Array(24).keys()];
319
+ this.minutes = [...Array(60).keys()];
320
+ this.seconds = [...Array(60).keys()];
321
+ this.showMobileUi = false;
322
+ this.showTime = signal(true, ...(ngDevMode ? [{ debugName: "showTime" }] : []));
323
+ this.disabled = {
324
+ hours: true,
325
+ someHours: [],
326
+ minutes: true,
327
+ someMinutes: [],
328
+ seconds: true,
329
+ someSeconds: [],
330
+ };
331
+ this.step = {
332
+ hours: 1,
333
+ minutes: 1,
334
+ seconds: 1,
335
+ };
336
+ this.dialogRef = inject(MatDialogRef);
337
+ this.options = inject(MAT_DIALOG_DATA);
338
+ const options = this.options;
339
+ this.step = options.step || this.step;
340
+ this.showSeconds.set(options.showSeconds);
341
+ this.showButtonIcons = options.showButtonIcons ?? this.showButtonIcons;
342
+ this.showClearButton = options.showClearButton ?? this.showClearButton;
343
+ this.showTime.set(options.showTime ?? true);
344
+ this.setListHoursMinutes();
345
+ this.initialEachComponentValue(options);
346
+ }
347
+ ngOnInit() {
348
+ this.onWindowWithChange(window.innerWidth);
349
+ }
350
+ onResize(event) {
351
+ this.onWindowWithChange(event.target.innerWidth);
352
+ }
353
+ dateChanged(date) {
354
+ if (date) {
355
+ this.selectedDate = date;
356
+ this.selectedDate.setHours(this.selectedHour);
357
+ this.selectedDate.setMinutes(this.selectedMinute);
358
+ this.selectedDate.setSeconds(this.selectedSecond);
359
+ this.disabled.hours = false;
360
+ this.disabled.someHours = this.hours.filter(hour => this.hourOfSelectedDateIsDisabled(hour));
361
+ }
362
+ else {
363
+ this.selectedDate = null;
364
+ this.disabled.hours = true;
365
+ }
366
+ }
367
+ hourChanged(hour) {
368
+ if (this.disabled.hours || this.disabled.someHours.includes(hour))
369
+ return;
370
+ this.selectedHour = hour;
371
+ this.selectedDate.setHours(hour);
372
+ this.disabled.minutes = false;
373
+ this.disabled.someMinutes = this.minutes.filter(minute => this.minuteOfSelectedDateIsDisabled(minute));
374
+ }
375
+ minuteChanged(minute) {
376
+ if (this.disabled.minutes || this.disabled.someMinutes.includes(minute))
377
+ return;
378
+ this.selectedMinute = minute;
379
+ this.selectedDate.setMinutes(minute);
380
+ this.disabled.seconds = false;
381
+ this.disabled.someSeconds = this.seconds.filter(second => this.secondOfSelectedDateIsDisabled(second));
382
+ }
383
+ secondChanged(second) {
384
+ if (this.disabled.seconds || this.disabled.someSeconds.includes(second))
385
+ return;
386
+ this.selectedSecond = second;
387
+ this.selectedDate.setSeconds(second);
388
+ }
389
+ clear() {
390
+ this.dialogRef.close({
391
+ value: null
392
+ });
393
+ }
394
+ cancel() {
395
+ this.dialogRef.close({
396
+ value: this.initialDate
397
+ });
398
+ }
399
+ confirm() {
400
+ this.dialogRef.close({
401
+ value: this.selectedDate
402
+ });
403
+ }
404
+ onWindowWithChange(width) {
405
+ this.showMobileUi = width && width <= 555;
406
+ }
407
+ hourOfSelectedDateIsDisabled(hour) {
408
+ if (this.selectedDateIsTheMinimumDate()) {
409
+ return hour < this.minimumDate.getHours();
410
+ }
411
+ else if (this.selectedDateIsTheMaximumDate()) {
412
+ return hour > this.maximumDate.getHours();
413
+ }
414
+ return false;
415
+ }
416
+ minuteOfSelectedDateIsDisabled(minute) {
417
+ if (this.selectedDateIsTheMinimumDate() &&
418
+ this.selectedDate.getHours() === this.minimumDate.getHours()) {
419
+ return minute < this.minimumDate.getMinutes();
420
+ }
421
+ else if (this.selectedDateIsTheMaximumDate() &&
422
+ this.selectedDate.getHours() === this.maximumDate.getHours()) {
423
+ return minute > this.maximumDate.getMinutes();
424
+ }
425
+ return false;
426
+ }
427
+ secondOfSelectedDateIsDisabled(second) {
428
+ if (this.selectedDateIsTheMinimumDate() &&
429
+ this.selectedDate.getHours() === this.minimumDate.getHours() &&
430
+ this.selectedDate.getMinutes() === this.minimumDate.getMinutes()) {
431
+ return second < this.minimumDate.getSeconds();
432
+ }
433
+ else if (this.selectedDateIsTheMaximumDate() &&
434
+ this.selectedDate.getMinutes() === this.maximumDate.getMinutes()) {
435
+ return second > this.maximumDate.getSeconds();
436
+ }
437
+ return false;
438
+ }
439
+ initialEachComponentValue(options) {
440
+ this.initialDate = options.selectedDate ? new Date(options.selectedDate) : null;
441
+ this.minimumDate = options.minimumDate ? new Date(options.minimumDate) : null;
442
+ this.maximumDate = options.maximumDate ? new Date(options.maximumDate) : null;
443
+ this.selectedDate = options.selectedDate ? new Date(options.selectedDate) : new Date();
444
+ this.dateChanged(options.selectedDate ? new Date(options.selectedDate) : null);
445
+ this.hourChanged(options.selectedDate ? new Date(options.selectedDate).getHours() : 0);
446
+ this.minuteChanged(options.selectedDate ? new Date(options.selectedDate).getMinutes() : 0);
447
+ this.secondChanged(options.selectedDate ? new Date(options.selectedDate).getSeconds() : 0);
448
+ }
449
+ selectedDateIsTheMinimumDate() {
450
+ return (this.minimumDate &&
451
+ this.selectedDate.getFullYear() === this.minimumDate.getFullYear() &&
452
+ this.selectedDate.getMonth() === this.minimumDate.getMonth() &&
453
+ this.selectedDate.getDate() === this.minimumDate.getDate());
454
+ }
455
+ selectedDateIsTheMaximumDate() {
456
+ return (this.maximumDate &&
457
+ this.selectedDate.getFullYear() === this.maximumDate.getFullYear() &&
458
+ this.selectedDate.getMonth() === this.maximumDate.getMonth() &&
459
+ this.selectedDate.getDate() === this.maximumDate.getDate());
460
+ }
461
+ setListHoursMinutes() {
462
+ this.hours = this.hours.filter(hour => hour % this.step.hours === 0);
463
+ this.minutes = this.minutes.filter(minute => minute % this.step.minutes === 0);
464
+ this.seconds = this.seconds.filter(seconde => seconde % this.step.seconds === 0);
465
+ }
466
+ static { this.ɵfac = function DialogDateTimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DialogDateTimePickerComponent)(); }; }
467
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]], hostBindings: function DialogDateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 1) {
468
+ i0.ɵɵlistener("resize", function DialogDateTimePickerComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, i0.ɵɵresolveWindow);
469
+ } }, features: [i0.ɵɵProvidersFeature([provideNativeDateAdapter()])], decls: 15, vars: 14, consts: [["mat-dialog-content", ""], [1, "date-time-picker", 3, "ngClass"], [1, "calendar"], [3, "selectedChange", "minDate", "maxDate", "selected"], ["mat-dialog-actions", "", "align", "end"], ["mat-stroked-button", ""], ["color", "primary", "mat-stroked-button", "", 3, "click"], ["color", "primary", "mat-raised-button", "", "cdkFocusInitial", "", 3, "click"], [1, "hours"], [1, "hour-and-minute-separator"], [1, "minutes"], [1, "minute-and-second-separator"], [1, "seconds"], [3, "valueChange", "disabled", "options", "value"], [3, "valueChange", "options", "value"], ["mat-stroked-button", "", 3, "click"]], template: function DialogDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
470
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "mat-calendar", 3);
471
+ i0.ɵɵlistener("selectedChange", function DialogDateTimePickerComponent_Template_mat_calendar_selectedChange_3_listener($event) { return ctx.dateChanged($event); });
472
+ i0.ɵɵelementEnd()();
473
+ i0.ɵɵconditionalCreate(4, DialogDateTimePickerComponent_Conditional_4_Template, 8, 8);
474
+ i0.ɵɵelementEnd()();
475
+ i0.ɵɵelementStart(5, "div", 4);
476
+ i0.ɵɵconditionalCreate(6, DialogDateTimePickerComponent_Conditional_6_Template, 4, 4, "button", 5);
477
+ i0.ɵɵelementStart(7, "button", 6);
478
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_7_listener() { return ctx.cancel(); });
479
+ i0.ɵɵconditionalCreate(8, DialogDateTimePickerComponent_Conditional_8_Template, 2, 0, "mat-icon");
480
+ i0.ɵɵtext(9);
481
+ i0.ɵɵpipe(10, "translate");
482
+ i0.ɵɵelementEnd();
483
+ i0.ɵɵelementStart(11, "button", 7);
484
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_11_listener() { return ctx.confirm(); });
485
+ i0.ɵɵconditionalCreate(12, DialogDateTimePickerComponent_Conditional_12_Template, 2, 0, "mat-icon");
486
+ i0.ɵɵtext(13);
487
+ i0.ɵɵpipe(14, "translate");
488
+ i0.ɵɵelementEnd()();
489
+ } if (rf & 2) {
490
+ i0.ɵɵadvance();
491
+ i0.ɵɵproperty("ngClass", ctx.showSeconds() ? "show-seconds" : "hide-seconds");
492
+ i0.ɵɵadvance(2);
493
+ i0.ɵɵproperty("minDate", ctx.minimumDate)("maxDate", ctx.maximumDate)("selected", ctx.selectedDate);
494
+ i0.ɵɵadvance();
495
+ i0.ɵɵconditional(ctx.showTime() ? 4 : -1);
496
+ i0.ɵɵadvance(2);
497
+ i0.ɵɵconditional(ctx.showClearButton ? 6 : -1);
498
+ i0.ɵɵadvance(2);
499
+ i0.ɵɵconditional(ctx.showButtonIcons ? 8 : -1);
500
+ i0.ɵɵadvance();
501
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "material.cancel"), " ");
502
+ i0.ɵɵadvance(3);
503
+ i0.ɵɵconditional(ctx.showButtonIcons ? 12 : -1);
504
+ i0.ɵɵadvance();
505
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 12, "material.ok"), " ");
506
+ } }, dependencies: [CommonModule, i3.NgClass, CaucaCoreForChildModule,
507
+ MatButtonModule, i1$1.MatButton, MatDatepickerModule, i2.MatCalendar, MatIconModule, i1$2.MatIcon, MatListModule,
508
+ MobileTimePickerComponent,
509
+ DesktopTimePickerComponent, i1.TranslatePipe], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{padding:8px;border-top:1px solid #ccc}div[mat-dialog-actions][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:2px}.date-time-picker[_ngcontent-%COMP%]{display:grid;grid-template-areas:\"calendar hours minutes seconds\";height:350px;overflow:hidden;justify-content:center}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{overflow:auto;flex:1;max-width:50px;scrollbar-width:none;border-left:1px solid #ccc}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex:4;max-width:290px;border-left:none}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child mat-calendar[_ngcontent-%COMP%]{width:290px;height:350px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.calendar[_ngcontent-%COMP%]{grid-area:calendar}.hours[_ngcontent-%COMP%]{grid-area:hours}.minutes[_ngcontent-%COMP%]{grid-area:minutes}.seconds[_ngcontent-%COMP%]{grid-area:seconds}.hour-and-minute-separator[_ngcontent-%COMP%]{grid-area:hour-and-minute-separator;display:flex;align-items:center;justify-content:center;font-weight:700}.minute-and-second-separator[_ngcontent-%COMP%]{grid-area:minute-and-second-separator;display:flex;align-items:center;justify-content:center;font-weight:700}@media only screen and (max-width:555px){.show-seconds[_ngcontent-%COMP%]{grid-template-areas:\"calendar calendar calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes minute-and-second-separator seconds .\";grid-template-columns:auto 40px 2px 40px 2px 40px auto}.hide-seconds[_ngcontent-%COMP%]{grid-template-areas:\"calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes .\";grid-template-columns:auto 40px 2px 40px auto}.date-time-picker[_ngcontent-%COMP%]{grid-template-rows:auto auto;height:450px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-left:none}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:70px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{overflow:initial;flex:4;max-width:290px;border-left:none}}"], changeDetection: 0 }); }
510
+ }
511
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogDateTimePickerComponent, [{
512
+ type: Component,
513
+ args: [{ selector: 'cauca-dialog-date-time-picker', imports: [
514
+ CommonModule,
515
+ CaucaCoreForChildModule,
516
+ MatButtonModule,
517
+ MatDatepickerModule,
518
+ MatIconModule,
519
+ MatListModule,
520
+ MobileTimePickerComponent,
521
+ DesktopTimePickerComponent
522
+ ], providers: [provideNativeDateAdapter()], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div mat-dialog-content>\n <div [ngClass]=\"showSeconds() ? 'show-seconds' : 'hide-seconds'\" class=\"date-time-picker\">\n <div class=\"calendar\">\n <mat-calendar\n [minDate]=\"minimumDate\"\n [maxDate]=\"maximumDate\"\n [selected]=\"selectedDate\"\n (selectedChange)=\"dateChanged($event)\"\n ></mat-calendar>\n </div>\n\n @if (showTime()) {\n @if (!showMobileUi) {\n <div class=\"hours\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.hours, someOptions: disabled.someHours}\" (valueChange)=\"hourChanged($event)\" [options]=\"hours\" [value]=\"selectedHour\"/>\n </div>\n }\n @if (showMobileUi) {\n <div class=\"hours\">\n <cauca-mobile-time-picker (valueChange)=\"hourChanged($event)\" [options]=\"hours\" [value]=\"selectedHour\" />\n </div>\n }\n\n @if (showMobileUi) {\n <div class=\"hour-and-minute-separator\">:</div>\n }\n\n @if (!showMobileUi) {\n <div class=\"minutes\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.minutes, someOptions: disabled.someMinutes}\" (valueChange)=\"minuteChanged($event)\" [options]=\"minutes\" [value]=\"selectedMinute\"/>\n </div>\n }\n @if (showMobileUi) {\n <div class=\"minutes\">\n <cauca-mobile-time-picker (valueChange)=\"minuteChanged($event)\" [options]=\"minutes\" [value]=\"selectedMinute\" />\n </div>\n }\n\n @if (showSeconds() && showMobileUi) {\n <div class=\"minute-and-second-separator\">:</div>\n }\n @if (showSeconds() && !showMobileUi) {\n <div class=\"seconds\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.seconds, someOptions: disabled.someSeconds}\" (valueChange)=\"secondChanged($event)\" [options]=\"seconds\" [value]=\"selectedSecond\"/>\n </div>\n }\n @if (showSeconds() && showMobileUi) {\n <div class=\"seconds\">\n <cauca-mobile-time-picker (valueChange)=\"secondChanged($event)\" [options]=\"seconds\" [value]=\"selectedSecond\" />\n </div>\n }\n }\n </div>\n</div>\n\n<div mat-dialog-actions align=\"end\">\n @if (showClearButton) {\n <button mat-stroked-button (click)=\"clear()\">\n @if (showButtonIcons) {\n <mat-icon>clear</mat-icon>\n }\n {{'material.clear' | translate}}\n </button>\n }\n <button color=\"primary\" mat-stroked-button (click)=\"cancel()\">\n @if (showButtonIcons) {\n <mat-icon>cancel</mat-icon>\n }\n {{'material.cancel' | translate}}\n </button>\n <button color=\"primary\" mat-raised-button cdkFocusInitial (click)=\"confirm()\">\n @if (showButtonIcons) {\n <mat-icon>check</mat-icon>\n }\n {{'material.ok' | translate}}\n </button>\n</div>", styles: ["div[mat-dialog-actions]{padding:8px;border-top:1px solid #ccc}div[mat-dialog-actions] button{margin:2px}.date-time-picker{display:grid;grid-template-areas:\"calendar hours minutes seconds\";height:350px;overflow:hidden;justify-content:center}.date-time-picker>div{overflow:auto;flex:1;max-width:50px;scrollbar-width:none;border-left:1px solid #ccc}.date-time-picker>div:first-child{flex:4;max-width:290px;border-left:none}.date-time-picker>div:first-child mat-calendar{width:290px;height:350px}.date-time-picker>div::-webkit-scrollbar{display:none}.date-time-picker ::ng-deep .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.date-time-picker ::ng-deep .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}.date-time-picker ::ng-deep .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.calendar{grid-area:calendar}.hours{grid-area:hours}.minutes{grid-area:minutes}.seconds{grid-area:seconds}.hour-and-minute-separator{grid-area:hour-and-minute-separator;display:flex;align-items:center;justify-content:center;font-weight:700}.minute-and-second-separator{grid-area:minute-and-second-separator;display:flex;align-items:center;justify-content:center;font-weight:700}@media only screen and (max-width:555px){.show-seconds{grid-template-areas:\"calendar calendar calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes minute-and-second-separator seconds .\";grid-template-columns:auto 40px 2px 40px 2px 40px auto}.hide-seconds{grid-template-areas:\"calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes .\";grid-template-columns:auto 40px 2px 40px auto}.date-time-picker{grid-template-rows:auto auto;height:450px}.date-time-picker>div{border-left:none}.date-time-picker>div:not(:first-child){height:70px}.date-time-picker>div:first-child{overflow:initial;flex:4;max-width:290px;border-left:none}}\n"] }]
523
+ }], () => [], { onResize: [{
524
+ type: HostListener,
525
+ args: ['window:resize', ['$event']]
526
+ }] }); })();
527
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DialogDateTimePickerComponent, { className: "DialogDateTimePickerComponent", filePath: "lib/components/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.ts", lineNumber: 31 }); })();
528
+
529
+ function CaucaDateTimePickerComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
530
+ i0.ɵɵelementStart(0, "mat-label");
531
+ i0.ɵɵtext(1);
532
+ i0.ɵɵpipe(2, "translate");
533
+ i0.ɵɵelementEnd();
534
+ } if (rf & 2) {
535
+ const ctx_r0 = i0.ɵɵnextContext();
536
+ i0.ɵɵadvance();
537
+ i0.ɵɵtextInterpolate2("", ctx_r0.translateLabel() ? i0.ɵɵpipeBind1(2, 2, ctx_r0.label()) : ctx_r0.label(), "", ctx_r0.isRequired() ? "*" : "");
538
+ } }
539
+ class CaucaDateTimePickerComponent {
540
+ constructor() {
541
+ this.subscriptSizing = input('fixed', ...(ngDevMode ? [{ debugName: "subscriptSizing" }] : []));
542
+ this.showTime = input(true, ...(ngDevMode ? [{ debugName: "showTime" }] : []));
543
+ this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
544
+ this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
545
+ this.stepHours = input(1, ...(ngDevMode ? [{ debugName: "stepHours" }] : []));
546
+ this.stepMinutes = input(1, ...(ngDevMode ? [{ debugName: "stepMinutes" }] : []));
547
+ this.stepSecondes = input(1, ...(ngDevMode ? [{ debugName: "stepSecondes" }] : []));
548
+ this.minimumDate = input(null, ...(ngDevMode ? [{ debugName: "minimumDate" }] : []));
549
+ this.maximumDate = input(null, ...(ngDevMode ? [{ debugName: "maximumDate" }] : []));
550
+ this.showSeconds = input(false, ...(ngDevMode ? [{ debugName: "showSeconds" }] : []));
551
+ this.showFormat = input('yyyy/MM/dd, HH:mm', ...(ngDevMode ? [{ debugName: "showFormat" }] : []));
552
+ this.showClearButton = input(true, ...(ngDevMode ? [{ debugName: "showClearButton" }] : []));
553
+ this.showButtonIcons = input(true, ...(ngDevMode ? [{ debugName: "showButtonIcons" }] : []));
554
+ this.selectedChange = output();
555
+ this.stringDate = signal('', ...(ngDevMode ? [{ debugName: "stringDate" }] : []));
556
+ this.isRequired = computed(() => Boolean(this.control?.hasValidator(Validators.required)), ...(ngDevMode ? [{ debugName: "isRequired" }] : []));
557
+ this.injector = inject(Injector);
558
+ this.elementRef = inject(ElementRef);
559
+ this.dialog = inject(MatDialog);
560
+ this.datePipe = inject(DatePipe);
561
+ this.onChange = (value) => value;
562
+ this.onTouched = () => { };
563
+ }
564
+ set value(value) {
565
+ if (value) {
566
+ this.stringDate.set(this.stringifyDate(value));
567
+ this.selectedDate = value;
568
+ }
569
+ }
570
+ ngOnInit() {
571
+ const ngControl = this.injector.get(NgControl, null, { self: true, optional: true });
572
+ if (ngControl instanceof FormControlName) {
573
+ const container = this.injector.get(ControlContainer).control;
574
+ this.control = container.controls[ngControl.name];
575
+ }
576
+ else {
577
+ this.control = new FormControl();
578
+ }
579
+ }
580
+ showDialog() {
581
+ const dialogRef = this.dialog.open(DialogDateTimePickerComponent, {
582
+ position: this.getDialogPosition(),
583
+ data: this.getDateTimePickerOptions(),
584
+ maxWidth: '100vw',
585
+ });
586
+ dialogRef.afterClosed().subscribe((data) => {
587
+ if (data) {
588
+ this.stringDate.set(this.stringifyDate(data.value));
589
+ this.selectedDate = data.value;
590
+ this.selectedChange.emit(data.value);
591
+ this.onChange(data.value);
592
+ }
593
+ });
594
+ }
595
+ writeValue(date) {
596
+ this.value = date;
597
+ }
598
+ registerOnChange(fn) {
599
+ this.onChange = fn;
600
+ }
601
+ registerOnTouched(fn) {
602
+ this.onTouched = fn;
603
+ }
604
+ getDateTimePickerOptions() {
605
+ return {
606
+ selectedDate: this.selectedDate,
607
+ minimumDate: this.minimumDate(),
608
+ maximumDate: this.maximumDate(),
609
+ showSeconds: this.showSeconds(),
610
+ showClearButton: this.showClearButton(),
611
+ showButtonIcons: this.showButtonIcons(),
612
+ showTime: this.showTime(),
613
+ step: {
614
+ hours: this.stepHours(),
615
+ minutes: this.stepMinutes(),
616
+ seconds: this.stepSecondes(),
617
+ }
618
+ };
619
+ }
620
+ stringifyDate(date) {
621
+ return this.datePipe.transform(date, this.showFormat());
622
+ }
623
+ getDialogPosition() {
624
+ const rect = this.elementRef.nativeElement.getBoundingClientRect();
625
+ const top = rect.y + rect.height - 22;
626
+ const bottom = window.innerHeight - rect.y;
627
+ const minimumDialogHeight = 400;
628
+ const minimumScreenSize = 800;
629
+ if (window.innerHeight < minimumScreenSize || window.innerWidth < minimumScreenSize) {
630
+ return null;
631
+ }
632
+ else if (window.innerHeight > (top + minimumDialogHeight)) {
633
+ return {
634
+ left: `${rect.x}px`,
635
+ top: `${top}px`,
636
+ };
637
+ }
638
+ return {
639
+ left: `${rect.x}px`,
640
+ bottom: `${bottom}px`,
641
+ };
642
+ }
643
+ static { this.ɵfac = function CaucaDateTimePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaDateTimePickerComponent)(); }; }
644
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaDateTimePickerComponent, selectors: [["cauca-date-time-picker"]], inputs: { subscriptSizing: [1, "subscriptSizing"], showTime: [1, "showTime"], label: [1, "label"], translateLabel: [1, "translateLabel"], stepHours: [1, "stepHours"], stepMinutes: [1, "stepMinutes"], stepSecondes: [1, "stepSecondes"], minimumDate: [1, "minimumDate"], maximumDate: [1, "maximumDate"], showSeconds: [1, "showSeconds"], showFormat: [1, "showFormat"], showClearButton: [1, "showClearButton"], showButtonIcons: [1, "showButtonIcons"] }, outputs: { selectedChange: "selectedChange" }, features: [i0.ɵɵProvidersFeature([
645
+ DatePipe,
646
+ {
647
+ provide: NG_VALUE_ACCESSOR,
648
+ multi: true,
649
+ useExisting: CaucaDateTimePickerComponent,
650
+ }
651
+ ])], decls: 6, vars: 3, consts: [[3, "subscriptSizing"], ["matInput", "", "readonly", "readonly", 3, "focusout", "value"], ["matSuffix", "", "mat-icon-button", "", 3, "click"]], template: function CaucaDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
652
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
653
+ i0.ɵɵconditionalCreate(1, CaucaDateTimePickerComponent_Conditional_1_Template, 3, 4, "mat-label");
654
+ i0.ɵɵelementStart(2, "input", 1);
655
+ i0.ɵɵlistener("focusout", function CaucaDateTimePickerComponent_Template_input_focusout_2_listener() { return ctx.onTouched(); });
656
+ i0.ɵɵelementEnd();
657
+ i0.ɵɵelementStart(3, "button", 2);
658
+ i0.ɵɵlistener("click", function CaucaDateTimePickerComponent_Template_button_click_3_listener() { return ctx.showDialog(); });
659
+ i0.ɵɵelementStart(4, "mat-icon");
660
+ i0.ɵɵtext(5, "calendar_month");
661
+ i0.ɵɵelementEnd()()();
662
+ } if (rf & 2) {
663
+ i0.ɵɵproperty("subscriptSizing", ctx.subscriptSizing());
664
+ i0.ɵɵadvance();
665
+ i0.ɵɵconditional(ctx.label() ? 1 : -1);
666
+ i0.ɵɵadvance();
667
+ i0.ɵɵproperty("value", ctx.stringDate());
668
+ } }, dependencies: [TranslateModule,
669
+ MatButtonModule, i1$1.MatIconButton, MatIconModule, i1$2.MatIcon, MatInputModule, i3$1.MatInput, i1$4.MatFormField, i1$4.MatLabel, i1$4.MatSuffix, MatFormFieldModule, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 }); }
670
+ }
671
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaDateTimePickerComponent, [{
672
+ type: Component,
673
+ args: [{ selector: 'cauca-date-time-picker', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
674
+ TranslateModule,
675
+ MatButtonModule,
676
+ MatIconModule,
677
+ MatInputModule,
678
+ MatFormFieldModule
679
+ ], providers: [
680
+ DatePipe,
681
+ {
682
+ provide: NG_VALUE_ACCESSOR,
683
+ multi: true,
684
+ useExisting: CaucaDateTimePickerComponent,
685
+ }
686
+ ], template: "<mat-form-field [subscriptSizing]=\"subscriptSizing()\">\n @if (label()) {\n <mat-label>{{ translateLabel() ? (label() | translate) : label() }}{{isRequired() ? '*' : ''}}</mat-label>\n }\n <input (focusout)=\"onTouched()\" matInput [value]=\"stringDate()\" readonly=\"readonly\">\n <button matSuffix mat-icon-button (click)=\"showDialog()\">\n <mat-icon>calendar_month</mat-icon>\n </button>\n</mat-form-field>", styles: [":host{display:block}mat-form-field{width:100%}\n"] }]
687
+ }], null, { subscriptSizing: [{ type: i0.Input, args: [{ isSignal: true, alias: "subscriptSizing", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], translateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateLabel", required: false }] }], stepHours: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHours", required: false }] }], stepMinutes: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinutes", required: false }] }], stepSecondes: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepSecondes", required: false }] }], minimumDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimumDate", required: false }] }], maximumDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximumDate", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFormat", required: false }] }], showClearButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearButton", required: false }] }], showButtonIcons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonIcons", required: false }] }], selectedChange: [{ type: i0.Output, args: ["selectedChange"] }] }); })();
688
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib/components/cauca-date-time-picker/cauca-date-time-picker.component.ts", lineNumber: 34 }); })();
689
+
690
+ class BaseButton {
691
+ constructor() {
692
+ this.colorOnHover = input(undefined, ...(ngDevMode ? [{ debugName: "colorOnHover" }] : []));
693
+ this.color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : []));
694
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
695
+ this.iconAlignment = input('left', ...(ngDevMode ? [{ debugName: "iconAlignment" }] : []));
696
+ this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
697
+ this.isInProgress = input(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
698
+ this.iconColor = computed(() => this.isHovered() ? this.colorOnHover() || this.color() : this.color(), ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
699
+ this.showIcon = computed(() => !!this.icon() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "showIcon" }] : []));
700
+ this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon(), ...(ngDevMode ? [{ debugName: "iconToShow" }] : []));
701
+ this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress(), ...(ngDevMode ? [{ debugName: "buttonDisabled" }] : []));
702
+ this.buttonClick = output();
703
+ this.isHovered = signal(false, ...(ngDevMode ? [{ debugName: "isHovered" }] : []));
704
+ }
705
+ onMouseEnter() {
706
+ this.isHovered.set(true);
707
+ }
708
+ onMouseLeave() {
709
+ this.isHovered.set(false);
710
+ }
711
+ static { this.ɵfac = function BaseButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BaseButton)(); }; }
712
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButton, inputs: { colorOnHover: [1, "colorOnHover"], color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
713
+ }
714
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
715
+ type: Directive
716
+ }], null, { colorOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorOnHover", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconAlignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAlignment", required: false }] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }], isInProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "isInProgress", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }] }); })();
717
+ class BaseButtonWithLabel extends BaseButton {
718
+ constructor() {
719
+ super(...arguments);
720
+ this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
721
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
722
+ this.small = input(false, ...(ngDevMode ? [{ debugName: "small" }] : []));
723
+ }
724
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(__ngFactoryType__) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(__ngFactoryType__ || BaseButtonWithLabel); }; })(); }
725
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"], small: [1, "small"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
726
+ }
727
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
728
+ type: Directive
729
+ }], null, { translateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], small: [{ type: i0.Input, args: [{ isSignal: true, alias: "small", required: false }] }] }); })();
730
+
731
+ function BasicButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
732
+ i0.ɵɵelementStart(0, "mat-icon");
733
+ i0.ɵɵtext(1);
734
+ i0.ɵɵelementEnd();
735
+ } if (rf & 2) {
736
+ const ctx_r0 = i0.ɵɵnextContext();
737
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
738
+ i0.ɵɵadvance();
739
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
740
+ } }
741
+ function BasicButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
742
+ i0.ɵɵtext(0);
743
+ i0.ɵɵpipe(1, "translate");
744
+ } if (rf & 2) {
745
+ const ctx_r0 = i0.ɵɵnextContext();
746
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
747
+ } }
748
+ function BasicButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
749
+ i0.ɵɵtext(0);
750
+ } if (rf & 2) {
751
+ const ctx_r0 = i0.ɵɵnextContext();
752
+ i0.ɵɵtextInterpolate(ctx_r0.label());
753
+ } }
754
+ function BasicButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
755
+ i0.ɵɵelementStart(0, "mat-icon");
756
+ i0.ɵɵtext(1);
757
+ i0.ɵɵelementEnd();
758
+ } if (rf & 2) {
759
+ const ctx_r0 = i0.ɵɵnextContext();
760
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
761
+ i0.ɵɵadvance();
762
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
763
+ } }
764
+ class BasicButtonComponent extends BaseButtonWithLabel {
765
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBasicButtonComponent_BaseFactory; return function BasicButtonComponent_Factory(__ngFactoryType__) { return (ɵBasicButtonComponent_BaseFactory || (ɵBasicButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BasicButtonComponent)))(__ngFactoryType__ || BasicButtonComponent); }; })(); }
766
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BasicButtonComponent, selectors: [["cauca-basic-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function BasicButtonComponent_Template(rf, ctx) { if (rf & 1) {
767
+ i0.ɵɵelementStart(0, "button", 0);
768
+ i0.ɵɵlistener("click", function BasicButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
769
+ i0.ɵɵconditionalCreate(1, BasicButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
770
+ i0.ɵɵconditionalCreate(2, BasicButtonComponent_Conditional_2_Template, 2, 3)(3, BasicButtonComponent_Conditional_3_Template, 1, 1);
771
+ i0.ɵɵconditionalCreate(4, BasicButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
772
+ i0.ɵɵelementEnd();
773
+ } if (rf & 2) {
774
+ i0.ɵɵproperty("ngClass", ctx.small() ? "small-button" : "")("color", ctx.color())("disabled", ctx.buttonDisabled());
775
+ i0.ɵɵadvance();
776
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
777
+ i0.ɵɵadvance();
778
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
779
+ i0.ɵɵadvance(2);
780
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
781
+ } }, dependencies: [MatIcon, MatButton, TranslateModule, NgClass, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
782
+ }
783
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasicButtonComponent, [{
784
+ type: Component,
785
+ args: [{ selector: 'cauca-basic-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon, MatButton, TranslateModule, NgClass], template: "<button mat-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
786
+ }], null, null); })();
787
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib/components/buttons/basic-button/basic-button.component.ts", lineNumber: 16 }); })();
788
+
789
+ function FabButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
790
+ i0.ɵɵelementStart(0, "mat-icon");
791
+ i0.ɵɵtext(1);
792
+ i0.ɵɵelementEnd();
793
+ } if (rf & 2) {
794
+ const ctx_r0 = i0.ɵɵnextContext();
795
+ i0.ɵɵstyleProp("color", ctx_r0.iconColor());
796
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
797
+ i0.ɵɵadvance();
798
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
799
+ } }
800
+ class FabButtonComponent extends BaseButtonWithLabel {
801
+ constructor() {
802
+ super(...arguments);
803
+ this.iconColor = computed(() => this.color() === 'primary' ? 'white' : undefined, ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
804
+ }
805
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFabButtonComponent_BaseFactory; return function FabButtonComponent_Factory(__ngFactoryType__) { return (ɵFabButtonComponent_BaseFactory || (ɵFabButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FabButtonComponent)))(__ngFactoryType__ || FabButtonComponent); }; })(); }
806
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FabButtonComponent, selectors: [["cauca-fab-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [["mat-fab", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "color", "button-spin"]], template: function FabButtonComponent_Template(rf, ctx) { if (rf & 1) {
807
+ i0.ɵɵelementStart(0, "button", 0);
808
+ i0.ɵɵlistener("click", function FabButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
809
+ i0.ɵɵconditionalCreate(1, FabButtonComponent_Conditional_1_Template, 2, 5, "mat-icon", 1);
810
+ i0.ɵɵelementEnd();
811
+ } if (rf & 2) {
812
+ i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
813
+ i0.ɵɵadvance();
814
+ i0.ɵɵconditional(ctx.showIcon() ? 1 : -1);
815
+ } }, dependencies: [MatButtonModule, i1$1.MatFabButton, MatIconModule, i1$2.MatIcon], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-mdc-fab[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
816
+ }
817
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FabButtonComponent, [{
818
+ type: Component,
819
+ args: [{ selector: 'cauca-fab-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, MatIconModule], template: "<button mat-fab [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if (showIcon()) { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-mdc-fab{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
820
+ }], null, null); })();
821
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FabButtonComponent, { className: "FabButtonComponent", filePath: "lib/components/buttons/fab-button/fab-button.component.ts", lineNumber: 14 }); })();
822
+
823
+ function FlatButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
824
+ i0.ɵɵelementStart(0, "mat-icon");
825
+ i0.ɵɵtext(1);
826
+ i0.ɵɵelementEnd();
827
+ } if (rf & 2) {
828
+ const ctx_r0 = i0.ɵɵnextContext();
829
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
830
+ i0.ɵɵadvance();
831
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
832
+ } }
833
+ function FlatButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
834
+ i0.ɵɵtext(0);
835
+ i0.ɵɵpipe(1, "translate");
836
+ } if (rf & 2) {
837
+ const ctx_r0 = i0.ɵɵnextContext();
838
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
839
+ } }
840
+ function FlatButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
841
+ i0.ɵɵtext(0);
842
+ } if (rf & 2) {
843
+ const ctx_r0 = i0.ɵɵnextContext();
844
+ i0.ɵɵtextInterpolate(ctx_r0.label());
845
+ } }
846
+ function FlatButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
847
+ i0.ɵɵelementStart(0, "mat-icon");
848
+ i0.ɵɵtext(1);
849
+ i0.ɵɵelementEnd();
850
+ } if (rf & 2) {
851
+ const ctx_r0 = i0.ɵɵnextContext();
852
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
853
+ i0.ɵɵadvance();
854
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
855
+ } }
856
+ class FlatButtonComponent extends BaseButtonWithLabel {
857
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFlatButtonComponent_BaseFactory; return function FlatButtonComponent_Factory(__ngFactoryType__) { return (ɵFlatButtonComponent_BaseFactory || (ɵFlatButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FlatButtonComponent)))(__ngFactoryType__ || FlatButtonComponent); }; })(); }
858
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FlatButtonComponent, selectors: [["cauca-flat-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-flat-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function FlatButtonComponent_Template(rf, ctx) { if (rf & 1) {
859
+ i0.ɵɵelementStart(0, "button", 0);
860
+ i0.ɵɵlistener("click", function FlatButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
861
+ i0.ɵɵconditionalCreate(1, FlatButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
862
+ i0.ɵɵconditionalCreate(2, FlatButtonComponent_Conditional_2_Template, 2, 3)(3, FlatButtonComponent_Conditional_3_Template, 1, 1);
863
+ i0.ɵɵconditionalCreate(4, FlatButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
864
+ i0.ɵɵelementEnd();
865
+ } if (rf & 2) {
866
+ i0.ɵɵproperty("ngClass", ctx.small() ? "small-button" : "")("color", ctx.color())("disabled", ctx.buttonDisabled());
867
+ i0.ɵɵadvance();
868
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
869
+ i0.ɵɵadvance();
870
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
871
+ i0.ɵɵadvance(2);
872
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
873
+ } }, dependencies: [MatIcon, MatButton, TranslateModule, NgClass, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
874
+ }
875
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlatButtonComponent, [{
876
+ type: Component,
877
+ args: [{ selector: 'cauca-flat-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon, MatButton, TranslateModule, NgClass], template: "<button mat-flat-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit();\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
878
+ }], null, null); })();
879
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib/components/buttons/flat-button/flat-button.component.ts", lineNumber: 16 }); })();
880
+
881
+ class IconButtonComponent extends BaseButton {
882
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(__ngFactoryType__) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(__ngFactoryType__ || IconButtonComponent); }; })(); }
883
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["cauca-icon-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
884
+ i0.ɵɵelementStart(0, "button", 0);
885
+ i0.ɵɵlistener("mouseenter", function IconButtonComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function IconButtonComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function IconButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
886
+ i0.ɵɵelementStart(1, "mat-icon");
887
+ i0.ɵɵtext(2);
888
+ i0.ɵɵelementEnd()();
889
+ } if (rf & 2) {
890
+ i0.ɵɵproperty("disabled", ctx.buttonDisabled());
891
+ i0.ɵɵadvance();
892
+ i0.ɵɵstyleProp("color", ctx.iconColor());
893
+ i0.ɵɵclassProp("button-spin", ctx.isInProgress());
894
+ i0.ɵɵadvance();
895
+ i0.ɵɵtextInterpolate(ctx.iconToShow());
896
+ } }, dependencies: [MatIconButton, MatIcon], styles: ["[_nghost-%COMP%]{display:flex}.mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:#006496}.mat-mdc-button-disabled[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#12101461}"], changeDetection: 0 }); }
897
+ }
898
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconButtonComponent, [{
899
+ type: Component,
900
+ args: [{ selector: 'cauca-icon-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconButton, MatIcon], template: "<button (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" mat-icon-button onclick=\"this.blur()\" (click)=\"buttonClick.emit();\" [disabled]=\"buttonDisabled()\">\r\n <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon>\r\n</button>", styles: [":host{display:flex}.mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:#006496}.mat-mdc-button-disabled .mat-icon{color:#12101461}\n"] }]
901
+ }], null, null); })();
902
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconButtonComponent, { className: "IconButtonComponent", filePath: "lib/components/buttons/icon-button/icon-button.component.ts", lineNumber: 14 }); })();
903
+
904
+ function ButtonComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
905
+ i0.ɵɵelementStart(0, "mat-icon");
906
+ i0.ɵɵtext(1);
907
+ i0.ɵɵelementEnd();
908
+ } if (rf & 2) {
909
+ const ctx_r1 = i0.ɵɵnextContext(2);
910
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
911
+ i0.ɵɵadvance();
912
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
913
+ } }
914
+ function ButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
915
+ const _r1 = i0.ɵɵgetCurrentView();
916
+ i0.ɵɵelementStart(0, "button", 6);
917
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
918
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_0_Conditional_1_Template, 2, 3, "mat-icon", 7);
919
+ i0.ɵɵelementStart(2, "span");
920
+ i0.ɵɵtext(3);
921
+ i0.ɵɵelementEnd()();
922
+ } if (rf & 2) {
923
+ const ctx_r1 = i0.ɵɵnextContext();
924
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
925
+ i0.ɵɵadvance();
926
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
927
+ i0.ɵɵadvance(2);
928
+ i0.ɵɵtextInterpolate(ctx_r1.label());
929
+ } }
930
+ function ButtonComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
931
+ i0.ɵɵelementStart(0, "mat-icon");
932
+ i0.ɵɵtext(1);
933
+ i0.ɵɵelementEnd();
934
+ } if (rf & 2) {
935
+ const ctx_r1 = i0.ɵɵnextContext(2);
936
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
937
+ i0.ɵɵadvance();
938
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
939
+ } }
940
+ function ButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
941
+ const _r3 = i0.ɵɵgetCurrentView();
942
+ i0.ɵɵelementStart(0, "button", 8);
943
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
944
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_1_Conditional_1_Template, 2, 3, "mat-icon", 7);
945
+ i0.ɵɵelementStart(2, "span");
946
+ i0.ɵɵtext(3);
947
+ i0.ɵɵelementEnd()();
948
+ } if (rf & 2) {
949
+ const ctx_r1 = i0.ɵɵnextContext();
950
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
951
+ i0.ɵɵadvance();
952
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
953
+ i0.ɵɵadvance(2);
954
+ i0.ɵɵtextInterpolate(ctx_r1.label());
955
+ } }
956
+ function ButtonComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
957
+ i0.ɵɵelementStart(0, "mat-icon");
958
+ i0.ɵɵtext(1);
959
+ i0.ɵɵelementEnd();
960
+ } if (rf & 2) {
961
+ const ctx_r1 = i0.ɵɵnextContext(2);
962
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
963
+ i0.ɵɵadvance();
964
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
965
+ } }
966
+ function ButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
967
+ const _r4 = i0.ɵɵgetCurrentView();
968
+ i0.ɵɵelementStart(0, "button", 9);
969
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
970
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_2_Conditional_1_Template, 2, 3, "mat-icon", 7);
971
+ i0.ɵɵelementStart(2, "span");
972
+ i0.ɵɵtext(3);
973
+ i0.ɵɵelementEnd()();
974
+ } if (rf & 2) {
975
+ const ctx_r1 = i0.ɵɵnextContext();
976
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
977
+ i0.ɵɵadvance();
978
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
979
+ i0.ɵɵadvance(2);
980
+ i0.ɵɵtextInterpolate(ctx_r1.label());
981
+ } }
982
+ function ButtonComponent_Conditional_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
983
+ i0.ɵɵelementStart(0, "mat-icon");
984
+ i0.ɵɵtext(1);
985
+ i0.ɵɵelementEnd();
986
+ } if (rf & 2) {
987
+ const ctx_r1 = i0.ɵɵnextContext(2);
988
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
989
+ i0.ɵɵadvance();
990
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
991
+ } }
992
+ function ButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
993
+ const _r5 = i0.ɵɵgetCurrentView();
994
+ i0.ɵɵelementStart(0, "button", 10);
995
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
996
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_3_Conditional_1_Template, 2, 3, "mat-icon", 7);
997
+ i0.ɵɵelementStart(2, "span");
998
+ i0.ɵɵtext(3);
999
+ i0.ɵɵelementEnd()();
1000
+ } if (rf & 2) {
1001
+ const ctx_r1 = i0.ɵɵnextContext();
1002
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
1003
+ i0.ɵɵadvance();
1004
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
1005
+ i0.ɵɵadvance(2);
1006
+ i0.ɵɵtextInterpolate(ctx_r1.label());
1007
+ } }
1008
+ function ButtonComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1009
+ i0.ɵɵelementStart(0, "mat-icon");
1010
+ i0.ɵɵtext(1);
1011
+ i0.ɵɵelementEnd();
1012
+ } if (rf & 2) {
1013
+ const ctx_r1 = i0.ɵɵnextContext(2);
1014
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
1015
+ i0.ɵɵadvance();
1016
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
1017
+ } }
1018
+ function ButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1019
+ const _r6 = i0.ɵɵgetCurrentView();
1020
+ i0.ɵɵelementStart(0, "button", 11);
1021
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
1022
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_4_Conditional_1_Template, 2, 3, "mat-icon", 7);
1023
+ i0.ɵɵelementEnd();
1024
+ } if (rf & 2) {
1025
+ const ctx_r1 = i0.ɵɵnextContext();
1026
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
1027
+ i0.ɵɵadvance();
1028
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
1029
+ } }
1030
+ function ButtonComponent_Conditional_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1031
+ i0.ɵɵelementStart(0, "mat-icon");
1032
+ i0.ɵɵtext(1);
1033
+ i0.ɵɵelementEnd();
1034
+ } if (rf & 2) {
1035
+ const ctx_r1 = i0.ɵɵnextContext(2);
1036
+ i0.ɵɵclassProp("button-spin", ctx_r1.inProgress());
1037
+ i0.ɵɵadvance();
1038
+ i0.ɵɵtextInterpolate(ctx_r1.inProgress() ? "update" : ctx_r1.icon());
1039
+ } }
1040
+ function ButtonComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
1041
+ const _r7 = i0.ɵɵgetCurrentView();
1042
+ i0.ɵɵelementStart(0, "button", 12);
1043
+ i0.ɵɵlistener("click", function ButtonComponent_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
1044
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_5_Conditional_1_Template, 2, 3, "mat-icon", 7);
1045
+ i0.ɵɵelementStart(2, "span");
1046
+ i0.ɵɵtext(3);
1047
+ i0.ɵɵelementEnd()();
1048
+ } if (rf & 2) {
1049
+ const ctx_r1 = i0.ɵɵnextContext();
1050
+ i0.ɵɵproperty("ngClass", ctx_r1.class())("disabled", ctx_r1.disable() || ctx_r1.inProgress())("color", ctx_r1.color());
1051
+ i0.ɵɵadvance();
1052
+ i0.ɵɵconditional(ctx_r1.inProgress() || ctx_r1.icon() ? 1 : -1);
1053
+ i0.ɵɵadvance(2);
1054
+ i0.ɵɵtextInterpolate(ctx_r1.label());
1055
+ } }
1056
+ class ButtonComponent {
1057
+ constructor() {
1058
+ this.class = input(null, ...(ngDevMode ? [{ debugName: "class" }] : []));
1059
+ this.inProgress = input(false, ...(ngDevMode ? [{ debugName: "inProgress" }] : []));
1060
+ this.disable = input(false, ...(ngDevMode ? [{ debugName: "disable" }] : []));
1061
+ this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
1062
+ this.icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : []));
1063
+ this.color = input('', ...(ngDevMode ? [{ debugName: "color" }] : []));
1064
+ this.type = input('basic', ...(ngDevMode ? [{ debugName: "type" }] : []));
1065
+ this.buttonClick = output();
1066
+ }
1067
+ static { this.ɵfac = function ButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ButtonComponent)(); }; }
1068
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ButtonComponent, selectors: [["cauca-button"]], inputs: { class: [1, "class"], inProgress: [1, "inProgress"], disable: [1, "disable"], label: [1, "label"], icon: [1, "icon"], color: [1, "color"], type: [1, "type"] }, outputs: { buttonClick: "buttonClick" }, decls: 6, vars: 6, consts: [["mat-button", "", 1, "button-basic", 3, "ngClass", "disabled", "color"], ["matButton", "elevated", 1, "button-raised", 3, "ngClass", "disabled", "color"], ["matButton", "outlined", 1, "button-stroked", 3, "ngClass", "disabled", "color"], ["matButton", "filled", 1, "button-flat", 3, "ngClass", "disabled", "color"], ["matIconButton", "", 1, "button-icon", 3, "ngClass", "disabled", "color"], ["matFab", "", 1, "button-icon", 3, "ngClass", "disabled", "color"], ["mat-button", "", 1, "button-basic", 3, "click", "ngClass", "disabled", "color"], [3, "button-spin"], ["matButton", "elevated", 1, "button-raised", 3, "click", "ngClass", "disabled", "color"], ["matButton", "outlined", 1, "button-stroked", 3, "click", "ngClass", "disabled", "color"], ["matButton", "filled", 1, "button-flat", 3, "click", "ngClass", "disabled", "color"], ["matIconButton", "", 1, "button-icon", 3, "click", "ngClass", "disabled", "color"], ["matFab", "", 1, "button-icon", 3, "click", "ngClass", "disabled", "color"]], template: function ButtonComponent_Template(rf, ctx) { if (rf & 1) {
1069
+ i0.ɵɵconditionalCreate(0, ButtonComponent_Conditional_0_Template, 4, 5, "button", 0);
1070
+ i0.ɵɵconditionalCreate(1, ButtonComponent_Conditional_1_Template, 4, 5, "button", 1);
1071
+ i0.ɵɵconditionalCreate(2, ButtonComponent_Conditional_2_Template, 4, 5, "button", 2);
1072
+ i0.ɵɵconditionalCreate(3, ButtonComponent_Conditional_3_Template, 4, 5, "button", 3);
1073
+ i0.ɵɵconditionalCreate(4, ButtonComponent_Conditional_4_Template, 2, 4, "button", 4);
1074
+ i0.ɵɵconditionalCreate(5, ButtonComponent_Conditional_5_Template, 4, 5, "button", 5);
1075
+ } if (rf & 2) {
1076
+ i0.ɵɵconditional(ctx.type() === "basic" ? 0 : -1);
1077
+ i0.ɵɵadvance();
1078
+ i0.ɵɵconditional(ctx.type() === "raised" ? 1 : -1);
1079
+ i0.ɵɵadvance();
1080
+ i0.ɵɵconditional(ctx.type() === "stroked" ? 2 : -1);
1081
+ i0.ɵɵadvance();
1082
+ i0.ɵɵconditional(ctx.type() === "flat" ? 3 : -1);
1083
+ i0.ɵɵadvance();
1084
+ i0.ɵɵconditional(ctx.type() === "icon" ? 4 : -1);
1085
+ i0.ɵɵadvance();
1086
+ i0.ɵɵconditional(ctx.type() === "fab" ? 5 : -1);
1087
+ } }, dependencies: [MatIconModule, i1$2.MatIcon, MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, i1$1.MatFabButton, NgClass], styles: ["@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.button-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spinner 1s linear infinite}"], changeDetection: 0 }); }
1088
+ }
1089
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonComponent, [{
1090
+ type: Component,
1091
+ args: [{ selector: 'cauca-button', imports: [MatIconModule, MatButtonModule, NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'basic') {\n <button [ngClass]=\"class()\" mat-button (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-basic\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n <span>{{label()}}</span>\n </button>\n}\n\n@if (type() === 'raised') {\n <button [ngClass]=\"class()\" matButton=\"elevated\" (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-raised\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n <span>{{label()}}</span>\n </button>\n}\n\n@if (type() === 'stroked') {\n <button [ngClass]=\"class()\" matButton=\"outlined\" (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-stroked\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n <span>{{label()}}</span>\n </button>\n}\n\n@if (type() === 'flat') {\n <button [ngClass]=\"class()\" matButton=\"filled\" (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-flat\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n <span>{{label()}}</span>\n </button>\n}\n\n@if (type() === 'icon') {\n <button [ngClass]=\"class()\" matIconButton (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-icon\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n </button>\n}\n\n@if (type() === 'fab') {\n <button [ngClass]=\"class()\" matFab (click)=\"buttonClick.emit()\" [disabled]=\"disable() || inProgress()\" [color]=\"color()\" class=\"button-icon\">\n @if (inProgress() || icon()) {\n <mat-icon [class.button-spin]=\"inProgress()\">{{ inProgress() ? 'update' : icon() }}</mat-icon>\n }\n <span>{{label()}}</span>\n </button>\n}", styles: ["@keyframes spinner{to{transform:rotate(360deg)}}.button-spin{animation:spinner 1s linear infinite}\n"] }]
1092
+ }], null, { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], inProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "inProgress", required: false }] }], disable: [{ type: i0.Input, args: [{ isSignal: true, alias: "disable", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }] }); })();
1093
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ButtonComponent, { className: "ButtonComponent", filePath: "lib/components/button/button.component.ts", lineNumber: 13 }); })();
1094
+
1095
+ class LinkButtonComponent {
1096
+ constructor() {
1097
+ this.segments = input(...(ngDevMode ? [undefined, { debugName: "segments" }] : []));
1098
+ this.clipboard = inject(Clipboard);
1099
+ }
1100
+ copyLink() {
1101
+ const link = location.origin + this.segments().map((segment) => `/${segment}`).join('');
1102
+ this.clipboard.copy(link);
1103
+ }
1104
+ static { this.ɵfac = function LinkButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LinkButtonComponent)(); }; }
1105
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkButtonComponent, selectors: [["cauca-link-button"]], inputs: { segments: [1, "segments"] }, decls: 2, vars: 3, consts: [["icon", "link", "type", "stroked", "color", "primary", 1, "link-button", 3, "buttonClick", "label"]], template: function LinkButtonComponent_Template(rf, ctx) { if (rf & 1) {
1106
+ i0.ɵɵelementStart(0, "cauca-button", 0);
1107
+ i0.ɵɵpipe(1, "translate");
1108
+ i0.ɵɵlistener("buttonClick", function LinkButtonComponent_Template_cauca_button_buttonClick_0_listener() { return ctx.copyLink(); });
1109
+ i0.ɵɵelementEnd();
1110
+ } if (rf & 2) {
1111
+ i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 1, "copyLink"));
1112
+ } }, dependencies: [ButtonComponent, TranslatePipe], styles: [".link-button[_ngcontent-%COMP%]{text-decoration:dashed}"], changeDetection: 0 }); }
1113
+ }
1114
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkButtonComponent, [{
1115
+ type: Component,
1116
+ args: [{ selector: 'cauca-link-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonComponent, TranslatePipe], template: "<cauca-button class=\"link-button\" icon=\"link\" type=\"stroked\" color=\"primary\" (buttonClick)=\"copyLink()\" [label]=\"'copyLink'|translate\" />", styles: [".link-button{text-decoration:dashed}\n"] }]
1117
+ }], null, { segments: [{ type: i0.Input, args: [{ isSignal: true, alias: "segments", required: false }] }] }); })();
1118
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkButtonComponent, { className: "LinkButtonComponent", filePath: "lib/components/buttons/link-button/link-button.component.ts", lineNumber: 14 }); })();
1119
+
1120
+ function MenuItemComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1121
+ i0.ɵɵelementStart(0, "mat-icon");
1122
+ i0.ɵɵtext(1);
1123
+ i0.ɵɵelementEnd();
1124
+ } if (rf & 2) {
1125
+ const ctx_r0 = i0.ɵɵnextContext();
1126
+ i0.ɵɵstyleProp("color", ctx_r0.iconColor());
1127
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1128
+ i0.ɵɵadvance();
1129
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1130
+ } }
1131
+ function MenuItemComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1132
+ i0.ɵɵtext(0);
1133
+ i0.ɵɵpipe(1, "translate");
1134
+ } if (rf & 2) {
1135
+ const ctx_r0 = i0.ɵɵnextContext();
1136
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
1137
+ } }
1138
+ function MenuItemComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1139
+ i0.ɵɵtext(0);
1140
+ } if (rf & 2) {
1141
+ const ctx_r0 = i0.ɵɵnextContext();
1142
+ i0.ɵɵtextInterpolate(ctx_r0.label());
1143
+ } }
1144
+ function MenuItemComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1145
+ i0.ɵɵelementStart(0, "mat-icon");
1146
+ i0.ɵɵtext(1);
1147
+ i0.ɵɵelementEnd();
1148
+ } if (rf & 2) {
1149
+ const ctx_r0 = i0.ɵɵnextContext();
1150
+ i0.ɵɵstyleProp("color", ctx_r0.iconColor());
1151
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1152
+ i0.ɵɵadvance();
1153
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1154
+ } }
1155
+ class MenuItemComponent extends BaseButtonWithLabel {
1156
+ constructor() {
1157
+ super(...arguments);
1158
+ this.translateLabel = input(false, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
1159
+ this.trigger = input(...(ngDevMode ? [undefined, { debugName: "trigger" }] : []));
1160
+ }
1161
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMenuItemComponent_BaseFactory; return function MenuItemComponent_Factory(__ngFactoryType__) { return (ɵMenuItemComponent_BaseFactory || (ɵMenuItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MenuItemComponent)))(__ngFactoryType__ || MenuItemComponent); }; })(); }
1162
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemComponent, selectors: [["cauca-menu-item"]], inputs: { translateLabel: [1, "translateLabel"], trigger: [1, "trigger"] }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-menu-item", "", 1, "change-password-menu-item", 3, "mouseenter", "mouseleave", "click", "ngClass", "matMenuTriggerFor", "disabled"], [3, "color", "button-spin"]], template: function MenuItemComponent_Template(rf, ctx) { if (rf & 1) {
1163
+ i0.ɵɵelementStart(0, "button", 0);
1164
+ i0.ɵɵlistener("mouseenter", function MenuItemComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function MenuItemComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function MenuItemComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1165
+ i0.ɵɵconditionalCreate(1, MenuItemComponent_Conditional_1_Template, 2, 5, "mat-icon", 1);
1166
+ i0.ɵɵconditionalCreate(2, MenuItemComponent_Conditional_2_Template, 2, 3)(3, MenuItemComponent_Conditional_3_Template, 1, 1);
1167
+ i0.ɵɵconditionalCreate(4, MenuItemComponent_Conditional_4_Template, 2, 5, "mat-icon", 1);
1168
+ i0.ɵɵelementEnd();
1169
+ } if (rf & 2) {
1170
+ i0.ɵɵproperty("ngClass", ctx.small() ? "small-button" : "")("matMenuTriggerFor", ctx.trigger())("disabled", ctx.buttonDisabled());
1171
+ i0.ɵɵadvance();
1172
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
1173
+ i0.ɵɵadvance();
1174
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
1175
+ i0.ɵɵadvance(2);
1176
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
1177
+ } }, dependencies: [MatMenuItem, TranslateModule, MatIcon, MatMenuTrigger, NgClass, i1.TranslatePipe], styles: [".mat-mdc-menu-item[_ngcontent-%COMP%] .mat-icon-no-color[_ngcontent-%COMP%]{color:#0000008f}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1178
+ }
1179
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemComponent, [{
1180
+ type: Component,
1181
+ args: [{ selector: 'cauca-menu-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatMenuItem, TranslateModule, MatIcon, MatMenuTrigger, NgClass], template: "<button (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" mat-menu-item [ngClass]=\"small() ? 'small-button' : ''\" class=\"change-password-menu-item\" [matMenuTriggerFor]=\"trigger()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [style.color]=\"iconColor()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>\r\n", styles: [".mat-mdc-menu-item .mat-icon-no-color{color:#0000008f}mat-icon{color:inherit}\n"] }]
1182
+ }], null, { translateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateLabel", required: false }] }], trigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "trigger", required: false }] }] }); })();
1183
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib/components/buttons/menu-item/menu-item.component.ts", lineNumber: 16 }); })();
1184
+
1185
+ function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1186
+ i0.ɵɵelementStart(0, "mat-icon");
1187
+ i0.ɵɵtext(1);
1188
+ i0.ɵɵelementEnd();
1189
+ } if (rf & 2) {
1190
+ const ctx_r0 = i0.ɵɵnextContext();
1191
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1192
+ i0.ɵɵadvance();
1193
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1194
+ } }
1195
+ function RaisedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1196
+ i0.ɵɵtext(0);
1197
+ i0.ɵɵpipe(1, "translate");
1198
+ } if (rf & 2) {
1199
+ const ctx_r0 = i0.ɵɵnextContext();
1200
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
1201
+ } }
1202
+ function RaisedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1203
+ i0.ɵɵtext(0);
1204
+ } if (rf & 2) {
1205
+ const ctx_r0 = i0.ɵɵnextContext();
1206
+ i0.ɵɵtextInterpolate(ctx_r0.label());
1207
+ } }
1208
+ function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1209
+ i0.ɵɵelementStart(0, "mat-icon");
1210
+ i0.ɵɵtext(1);
1211
+ i0.ɵɵelementEnd();
1212
+ } if (rf & 2) {
1213
+ const ctx_r0 = i0.ɵɵnextContext();
1214
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1215
+ i0.ɵɵadvance();
1216
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1217
+ } }
1218
+ class RaisedButtonComponent extends BaseButtonWithLabel {
1219
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(__ngFactoryType__) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(__ngFactoryType__ || RaisedButtonComponent); }; })(); }
1220
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["cauca-raised-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1221
+ i0.ɵɵelementStart(0, "button", 0);
1222
+ i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1223
+ i0.ɵɵconditionalCreate(1, RaisedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
1224
+ i0.ɵɵconditionalCreate(2, RaisedButtonComponent_Conditional_2_Template, 2, 3)(3, RaisedButtonComponent_Conditional_3_Template, 1, 1);
1225
+ i0.ɵɵconditionalCreate(4, RaisedButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
1226
+ i0.ɵɵelementEnd();
1227
+ } if (rf & 2) {
1228
+ i0.ɵɵproperty("ngClass", ctx.small() ? "small-button" : "")("color", ctx.color())("disabled", ctx.buttonDisabled());
1229
+ i0.ɵɵadvance();
1230
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
1231
+ i0.ɵɵadvance();
1232
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
1233
+ i0.ɵɵadvance(2);
1234
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
1235
+ } }, dependencies: [MatButton, MatIconModule, i1$2.MatIcon, TranslateModule, NgClass, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1236
+ }
1237
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
1238
+ type: Component,
1239
+ args: [{ selector: 'cauca-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule, NgClass], template: "<button mat-raised-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if (showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if (showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:inherit}\n"] }]
1240
+ }], null, null); })();
1241
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib/components/buttons/raised-button/raised-button.component.ts", lineNumber: 16 }); })();
1242
+
1243
+ class RefreshButtonComponent {
1244
+ constructor() {
1245
+ this.inProgress = input(false, ...(ngDevMode ? [{ debugName: "inProgress" }] : []));
1246
+ this.refreshEvent = output();
1247
+ }
1248
+ refresh() {
1249
+ this.refreshEvent.emit();
1250
+ }
1251
+ static { this.ɵfac = function RefreshButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || RefreshButtonComponent)(); }; }
1252
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RefreshButtonComponent, selectors: [["cauca-refresh-button"]], inputs: { inProgress: [1, "inProgress"] }, outputs: { refreshEvent: "refreshEvent" }, decls: 2, vars: 3, consts: [["icon", "refresh", "type", "stroked", "color", "primary", 1, "refresh-button", 3, "buttonClick", "label"]], template: function RefreshButtonComponent_Template(rf, ctx) { if (rf & 1) {
1253
+ i0.ɵɵelementStart(0, "cauca-button", 0);
1254
+ i0.ɵɵpipe(1, "translate");
1255
+ i0.ɵɵlistener("buttonClick", function RefreshButtonComponent_Template_cauca_button_buttonClick_0_listener() { return ctx.refresh(); });
1256
+ i0.ɵɵelementEnd();
1257
+ } if (rf & 2) {
1258
+ i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 1, "refresh"));
1259
+ } }, dependencies: [ButtonComponent, TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
1260
+ }
1261
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RefreshButtonComponent, [{
1262
+ type: Component,
1263
+ args: [{ selector: 'cauca-refresh-button', imports: [ButtonComponent, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cauca-button class=\"refresh-button\" icon=\"refresh\" type=\"stroked\" color=\"primary\" (buttonClick)=\"refresh()\" [label]=\"'refresh' | translate\" />" }]
1264
+ }], null, { inProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "inProgress", required: false }] }], refreshEvent: [{ type: i0.Output, args: ["refreshEvent"] }] }); })();
1265
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RefreshButtonComponent, { className: "RefreshButtonComponent", filePath: "lib/components/buttons/refresh-button/refresh-button.component.ts", lineNumber: 12 }); })();
1266
+
1267
+ function RoundButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1268
+ i0.ɵɵtext(0);
1269
+ i0.ɵɵpipe(1, "translate");
1270
+ } if (rf & 2) {
1271
+ const ctx_r0 = i0.ɵɵnextContext();
1272
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
1273
+ } }
1274
+ function RoundButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1275
+ i0.ɵɵtext(0);
1276
+ } if (rf & 2) {
1277
+ const ctx_r0 = i0.ɵɵnextContext();
1278
+ i0.ɵɵtextInterpolate(ctx_r0.label());
1279
+ } }
1280
+ class RoundButtonComponent extends BaseButtonWithLabel {
1281
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRoundButtonComponent_BaseFactory; return function RoundButtonComponent_Factory(__ngFactoryType__) { return (ɵRoundButtonComponent_BaseFactory || (ɵRoundButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RoundButtonComponent)))(__ngFactoryType__ || RoundButtonComponent); }; })(); }
1282
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RoundButtonComponent, selectors: [["cauca-round-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["onclick", "this.blur()", 3, "mouseenter", "mouseleave", "click", "disabled"]], template: function RoundButtonComponent_Template(rf, ctx) { if (rf & 1) {
1283
+ i0.ɵɵdomElementStart(0, "button", 0);
1284
+ i0.ɵɵdomListener("mouseenter", function RoundButtonComponent_Template_button_mouseenter_0_listener() { return ctx.onMouseEnter(); })("mouseleave", function RoundButtonComponent_Template_button_mouseleave_0_listener() { return ctx.onMouseLeave(); })("click", function RoundButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1285
+ i0.ɵɵconditionalCreate(1, RoundButtonComponent_Conditional_1_Template, 2, 3)(2, RoundButtonComponent_Conditional_2_Template, 1, 1);
1286
+ i0.ɵɵdomElementEnd();
1287
+ } if (rf & 2) {
1288
+ i0.ɵɵdomProperty("disabled", ctx.buttonDisabled());
1289
+ i0.ɵɵadvance();
1290
+ i0.ɵɵconditional(ctx.translateLabel() ? 1 : 2);
1291
+ } }, dependencies: [TranslateModule, i1.TranslatePipe], styles: ["button[_ngcontent-%COMP%]{border-radius:100px;background-color:inherit;outline:none;border-width:0px;height:40px;width:40px;cursor:pointer}[_nghost-%COMP%]{display:flex}.mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}mat-icon[_ngcontent-%COMP%]{color:#006496}.mat-mdc-button-disabled[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#12101461}"], changeDetection: 0 }); }
1292
+ }
1293
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RoundButtonComponent, [{
1294
+ type: Component,
1295
+ args: [{ selector: 'cauca-round-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule], template: "<button (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" onclick=\"this.blur()\" (click)=\"buttonClick.emit();\" [disabled]=\"buttonDisabled()\">\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n</button>", styles: ["button{border-radius:100px;background-color:inherit;outline:none;border-width:0px;height:40px;width:40px;cursor:pointer}:host{display:flex}.mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}mat-icon{color:#006496}.mat-mdc-button-disabled .mat-icon{color:#12101461}\n"] }]
1296
+ }], null, null); })();
1297
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RoundButtonComponent, { className: "RoundButtonComponent", filePath: "lib/components/buttons/round-button/round-button.component.ts", lineNumber: 13 }); })();
1298
+
1299
+ function StrokedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1300
+ i0.ɵɵelementStart(0, "mat-icon");
1301
+ i0.ɵɵtext(1);
1302
+ i0.ɵɵelementEnd();
1303
+ } if (rf & 2) {
1304
+ const ctx_r0 = i0.ɵɵnextContext();
1305
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1306
+ i0.ɵɵadvance();
1307
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1308
+ } }
1309
+ function StrokedButtonComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1310
+ i0.ɵɵtext(0);
1311
+ i0.ɵɵpipe(1, "translate");
1312
+ } if (rf & 2) {
1313
+ const ctx_r0 = i0.ɵɵnextContext(2);
1314
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
1315
+ } }
1316
+ function StrokedButtonComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1317
+ i0.ɵɵtext(0);
1318
+ } if (rf & 2) {
1319
+ const ctx_r0 = i0.ɵɵnextContext(2);
1320
+ i0.ɵɵtextInterpolate(ctx_r0.label());
1321
+ } }
1322
+ function StrokedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1323
+ i0.ɵɵconditionalCreate(0, StrokedButtonComponent_Conditional_2_Conditional_0_Template, 2, 3)(1, StrokedButtonComponent_Conditional_2_Conditional_1_Template, 1, 1);
1324
+ } if (rf & 2) {
1325
+ const ctx_r0 = i0.ɵɵnextContext();
1326
+ i0.ɵɵconditional(ctx_r0.translateLabel() ? 0 : 1);
1327
+ } }
1328
+ function StrokedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1329
+ i0.ɵɵelementStart(0, "mat-icon");
1330
+ i0.ɵɵtext(1);
1331
+ i0.ɵɵelementEnd();
1332
+ } if (rf & 2) {
1333
+ const ctx_r0 = i0.ɵɵnextContext();
1334
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
1335
+ i0.ɵɵadvance();
1336
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
1337
+ } }
1338
+ class StrokedButtonComponent extends BaseButtonWithLabel {
1339
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵStrokedButtonComponent_BaseFactory; return function StrokedButtonComponent_Factory(__ngFactoryType__) { return (ɵStrokedButtonComponent_BaseFactory || (ɵStrokedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(StrokedButtonComponent)))(__ngFactoryType__ || StrokedButtonComponent); }; })(); }
1340
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StrokedButtonComponent, selectors: [["cauca-stroked-button"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 8, consts: [["mat-stroked-button", "", "onclick", "this.blur()", 3, "click", "ngClass", "color", "disabled"], [3, "button-spin"]], template: function StrokedButtonComponent_Template(rf, ctx) { if (rf & 1) {
1341
+ i0.ɵɵelementStart(0, "button", 0);
1342
+ i0.ɵɵlistener("click", function StrokedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
1343
+ i0.ɵɵconditionalCreate(1, StrokedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1);
1344
+ i0.ɵɵconditionalCreate(2, StrokedButtonComponent_Conditional_2_Template, 2, 1);
1345
+ i0.ɵɵconditionalCreate(3, StrokedButtonComponent_Conditional_3_Template, 2, 3, "mat-icon", 1);
1346
+ i0.ɵɵelementEnd();
1347
+ } if (rf & 2) {
1348
+ i0.ɵɵclassProp("icon-only", !ctx.label());
1349
+ i0.ɵɵproperty("ngClass", ctx.small() ? "small-button" : "")("color", ctx.color())("disabled", ctx.buttonDisabled());
1350
+ i0.ɵɵadvance();
1351
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
1352
+ i0.ɵɵadvance();
1353
+ i0.ɵɵconditional(ctx.label() ? 2 : -1);
1354
+ i0.ɵɵadvance();
1355
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 3 : -1);
1356
+ } }, dependencies: [MatButton, MatIconModule, i1$2.MatIcon, TranslateModule, NgClass, i1.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}.icon-only[_ngcontent-%COMP%]{width:36px;height:36px;min-width:38px;padding:0}.icon-only[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1357
+ }
1358
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StrokedButtonComponent, [{
1359
+ type: Component,
1360
+ args: [{ selector: 'cauca-stroked-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule, NgClass], template: "<button mat-stroked-button [ngClass]=\"small() ? 'small-button' : ''\" [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\" [class.icon-only]=\"!label()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (label()) { @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}} }\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}.icon-only{width:36px;height:36px;min-width:38px;padding:0}.icon-only mat-icon{margin:0}mat-icon{color:inherit}\n"] }]
1361
+ }], null, null); })();
1362
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StrokedButtonComponent, { className: "StrokedButtonComponent", filePath: "lib/components/buttons/stroked-button/stroked-button.component.ts", lineNumber: 16 }); })();
1363
+
1364
+ class AlertDialogComponent {
1365
+ constructor() {
1366
+ this.dialogRef = inject(MatDialogRef);
1367
+ const data = inject(MAT_DIALOG_DATA);
1368
+ const breakdownObserver = inject(BreakpointObserver);
1369
+ this.title = data.title;
1370
+ this.message = data.message;
1371
+ this.dialogRef.addPanelClass("dialog-global-style");
1372
+ breakdownObserver.observe('(max-width: 500px)').pipe(takeUntilDestroyed()).subscribe(result => this.dialogRef.updateSize(result.matches ? '100vw' : 'auto'));
1373
+ }
1374
+ closeClick() {
1375
+ this.dialogRef.close();
1376
+ }
1377
+ static { this.ɵfac = function AlertDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AlertDialogComponent)(); }; }
1378
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertDialogComponent, selectors: [["cauca-alert-dialog"]], decls: 11, vars: 6, consts: [["mat-dialog-title", ""], [1, "h6"], ["id", "closeButton", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", "", 1, "alert-dialog-content"], ["align", "end"], ["id", "okButton", "label", "ok", "color", "primary", 3, "buttonClick"]], template: function AlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
1379
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
1380
+ i0.ɵɵtext(2);
1381
+ i0.ɵɵpipe(3, "translate");
1382
+ i0.ɵɵelementEnd();
1383
+ i0.ɵɵelementStart(4, "cauca-icon-button", 2);
1384
+ i0.ɵɵlistener("buttonClick", function AlertDialogComponent_Template_cauca_icon_button_buttonClick_4_listener() { return ctx.closeClick(); });
1385
+ i0.ɵɵelementEnd()();
1386
+ i0.ɵɵelementStart(5, "div", 3)(6, "p");
1387
+ i0.ɵɵtext(7);
1388
+ i0.ɵɵpipe(8, "translate");
1389
+ i0.ɵɵelementEnd()();
1390
+ i0.ɵɵelementStart(9, "mat-dialog-actions", 4)(10, "cauca-raised-button", 5);
1391
+ i0.ɵɵlistener("buttonClick", function AlertDialogComponent_Template_cauca_raised_button_buttonClick_10_listener() { return ctx.closeClick(); });
1392
+ i0.ɵɵelementEnd()();
1393
+ } if (rf & 2) {
1394
+ i0.ɵɵadvance(2);
1395
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.title));
1396
+ i0.ɵɵadvance(5);
1397
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 4, ctx.message));
1398
+ } }, dependencies: [TranslateModule, RaisedButtonComponent, IconButtonComponent, MatDialogModule, i1$5.MatDialogTitle, i1$5.MatDialogActions, i1$5.MatDialogContent, i1.TranslatePipe], styles: ["@media(max-width:500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}.alert-dialog-content[_ngcontent-%COMP%]{white-space:pre-wrap}"], changeDetection: 0 }); }
1399
+ }
1400
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDialogComponent, [{
1401
+ type: Component,
1402
+ args: [{ selector: 'cauca-alert-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RaisedButtonComponent, IconButtonComponent, MatDialogModule], template: "<div mat-dialog-title>\n <div class=\"h6\">{{ title | translate }}</div>\n <cauca-icon-button id=\"closeButton\" (buttonClick)=\"closeClick()\" icon=\"close\" />\n</div>\n<div class=\"alert-dialog-content\" mat-dialog-content>\n <p>{{ message | translate }}</p>\n</div>\n<mat-dialog-actions align=\"end\">\n <cauca-raised-button id=\"okButton\" label=\"ok\" color=\"primary\" (buttonClick)=\"closeClick()\" />\n</mat-dialog-actions>", styles: ["@media(max-width:500px){::ng-deep .dialog-global-style{max-width:100vw!important}}::ng-deep .dialog-global-style{margin:auto!important}:host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}.alert-dialog-content{white-space:pre-wrap}\n"] }]
1403
+ }], () => [], null); })();
1404
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDialogComponent, { className: "AlertDialogComponent", filePath: "lib/components/dialogs/alert-dialog/alert-dialog.component.ts", lineNumber: 18 }); })();
1405
+
1406
+ class ConfirmDialogComponent {
1407
+ constructor() {
1408
+ this.dialogRef = inject(MatDialogRef);
1409
+ const data = inject(MAT_DIALOG_DATA);
1410
+ const breakdownObserver = inject(BreakpointObserver);
1411
+ this.title = data.title;
1412
+ this.message = data.message;
1413
+ this.options = data.options;
1414
+ this.dialogRef.addPanelClass("dialog-global-style");
1415
+ breakdownObserver.observe('(max-width: 500px)').pipe(takeUntilDestroyed()).subscribe(result => this.dialogRef.updateSize(result.matches ? '100vw' : 'auto'));
1416
+ }
1417
+ noClick() {
1418
+ this.dialogRef.close(ConfirmationResult.No);
1419
+ }
1420
+ yesClick() {
1421
+ this.dialogRef.close(ConfirmationResult.Yes);
1422
+ }
1423
+ cancelClick() {
1424
+ this.dialogRef.close(ConfirmationResult.Cancel);
1425
+ }
1426
+ static { this.ɵfac = function ConfirmDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConfirmDialogComponent)(); }; }
1427
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmDialogComponent, selectors: [["cauca-confirm-dialog"]], decls: 12, vars: 12, consts: [["mat-dialog-title", ""], [1, "h6", "title"], ["id", "close-button", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", ""], [1, "message"], ["align", "end", 1, "action-buttons"], [1, "no-button", 3, "buttonClick", "label", "color"], [1, "yes-button", 3, "buttonClick", "label", "color"]], template: function ConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
1428
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
1429
+ i0.ɵɵtext(2);
1430
+ i0.ɵɵpipe(3, "translate");
1431
+ i0.ɵɵelementEnd();
1432
+ i0.ɵɵelementStart(4, "cauca-icon-button", 2);
1433
+ i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_cauca_icon_button_buttonClick_4_listener() { return ctx.cancelClick(); });
1434
+ i0.ɵɵelementEnd()();
1435
+ i0.ɵɵelementStart(5, "div", 3)(6, "p", 4);
1436
+ i0.ɵɵtext(7);
1437
+ i0.ɵɵpipe(8, "translate");
1438
+ i0.ɵɵelementEnd()();
1439
+ i0.ɵɵelementStart(9, "mat-dialog-actions", 5)(10, "cauca-stroked-button", 6);
1440
+ i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_cauca_stroked_button_buttonClick_10_listener() { return ctx.noClick(); });
1441
+ i0.ɵɵelementEnd();
1442
+ i0.ɵɵelementStart(11, "cauca-raised-button", 7);
1443
+ i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_cauca_raised_button_buttonClick_11_listener() { return ctx.yesClick(); });
1444
+ i0.ɵɵelementEnd()();
1445
+ } if (rf & 2) {
1446
+ i0.ɵɵadvance(2);
1447
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(3, 6, ctx.title, ctx.options.titleArgs));
1448
+ i0.ɵɵadvance(5);
1449
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 9, ctx.message, ctx.options.messageArgs));
1450
+ i0.ɵɵadvance(3);
1451
+ i0.ɵɵproperty("label", ctx.options.noText)("color", ctx.options.noColor);
1452
+ i0.ɵɵadvance();
1453
+ i0.ɵɵproperty("label", ctx.options.yesText)("color", ctx.options.yesColor);
1454
+ } }, dependencies: [TranslateModule, MatDialogModule, i1$5.MatDialogTitle, i1$5.MatDialogActions, i1$5.MatDialogContent, RaisedButtonComponent, StrokedButtonComponent, IconButtonComponent, i1.TranslatePipe], styles: ["@media(max-width:500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}.yes-button[_ngcontent-%COMP%]{padding-left:8px}.message[_ngcontent-%COMP%]{white-space:pre-wrap}.title[_ngcontent-%COMP%]{padding-top:8px}.action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:row;gap:8px}"], changeDetection: 0 }); }
1455
+ }
1456
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialogComponent, [{
1457
+ type: Component,
1458
+ args: [{ selector: 'cauca-confirm-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatDialogModule, RaisedButtonComponent, StrokedButtonComponent, IconButtonComponent], template: "<div mat-dialog-title>\n <div class=\"h6 title\">{{ title | translate: options.titleArgs }}</div>\n <cauca-icon-button id=\"close-button\" (buttonClick)=\"cancelClick()\" icon=\"close\" />\n </div>\n <div mat-dialog-content>\n <p class=\"message\">{{ message | translate: options.messageArgs }}</p>\n </div>\n <mat-dialog-actions align=\"end\" class=\"action-buttons\">\n <cauca-stroked-button class=\"no-button\" [label]=\"options.noText\" [color]=\"options.noColor\" (buttonClick)=\"noClick()\" />\n <cauca-raised-button class=\"yes-button\" [label]=\"options.yesText\" [color]=\"options.yesColor\" (buttonClick)=\"yesClick()\" />\n </mat-dialog-actions>", styles: ["@media(max-width:500px){::ng-deep .dialog-global-style{max-width:100vw!important}}::ng-deep .dialog-global-style{margin:auto!important}:host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}.yes-button{padding-left:8px}.message{white-space:pre-wrap}.title{padding-top:8px}.action-buttons{display:flex;align-items:center;flex-direction:row;gap:8px}\n"] }]
1459
+ }], () => [], null); })();
1460
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialogComponent, { className: "ConfirmDialogComponent", filePath: "lib/components/dialogs/confirm-dialog/confirm-dialog.component.ts", lineNumber: 20 }); })();
1461
+
1462
+ function TextInputDialogComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
1463
+ i0.ɵɵelement(0, "textarea", 5);
1464
+ } }
1465
+ function TextInputDialogComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
1466
+ i0.ɵɵelement(0, "input", 6);
1467
+ } }
1468
+ function TextInputDialogComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
1469
+ i0.ɵɵelementStart(0, "span", 7);
1470
+ i0.ɵɵtext(1);
1471
+ i0.ɵɵelementEnd();
1472
+ } if (rf & 2) {
1473
+ const ctx_r0 = i0.ɵɵnextContext();
1474
+ i0.ɵɵadvance();
1475
+ i0.ɵɵtextInterpolate(ctx_r0.suffix());
1476
+ } }
1477
+ function TextInputDialogComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
1478
+ i0.ɵɵelementStart(0, "mat-error");
1479
+ i0.ɵɵtext(1);
1480
+ i0.ɵɵpipe(2, "translate");
1481
+ i0.ɵɵelementEnd();
1482
+ } if (rf & 2) {
1483
+ i0.ɵɵadvance();
1484
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "error.requiredField"));
1485
+ } }
1486
+ function TextInputDialogComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
1487
+ i0.ɵɵelementStart(0, "mat-error");
1488
+ i0.ɵɵtext(1);
1489
+ i0.ɵɵpipe(2, "translate");
1490
+ i0.ɵɵelementEnd();
1491
+ } if (rf & 2) {
1492
+ i0.ɵɵadvance();
1493
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "error.invalidName"));
1494
+ } }
1495
+ function TextInputDialogComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
1496
+ i0.ɵɵelementStart(0, "mat-error");
1497
+ i0.ɵɵtext(1);
1498
+ i0.ɵɵpipe(2, "translate");
1499
+ i0.ɵɵelementEnd();
1500
+ } if (rf & 2) {
1501
+ i0.ɵɵadvance();
1502
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "error.alreadyUsed"));
1503
+ } }
1504
+ class TextInputDialogComponent {
1505
+ constructor() {
1506
+ this.suffix = signal('', ...(ngDevMode ? [{ debugName: "suffix" }] : []));
1507
+ this.showSuffix = computed(() => !!this.suffix(), ...(ngDevMode ? [{ debugName: "showSuffix" }] : []));
1508
+ this.useTextArea = signal(false, ...(ngDevMode ? [{ debugName: "useTextArea" }] : []));
1509
+ this.dialogRef = inject(MatDialogRef);
1510
+ this.data = inject(MAT_DIALOG_DATA);
1511
+ const formBuilder = inject(UntypedFormBuilder);
1512
+ const data = this.data;
1513
+ this.suffix.set(data.suffix);
1514
+ this.titleLabel = data.titleLabel;
1515
+ this.validateButtonLabel = data.validateButtonLabel;
1516
+ this.cancelButtonLabel = data.cancelButtonLabel;
1517
+ this.inputLabel = data.inputLabel;
1518
+ this.useTextArea.set(data.useTextArea ?? false);
1519
+ this.form = formBuilder.group({
1520
+ input: [data.value, data.validators]
1521
+ });
1522
+ }
1523
+ cancelClick() {
1524
+ this.dialogRef.close({ result: ConfirmationResult.Cancel, value: null });
1525
+ }
1526
+ validateClick() {
1527
+ const trimmedValue = this.form.controls.input.value.trim();
1528
+ this.dialogRef.close({ result: ConfirmationResult.Yes, value: trimmedValue });
1529
+ }
1530
+ static { this.ɵfac = function TextInputDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TextInputDialogComponent)(); }; }
1531
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextInputDialogComponent, selectors: [["cauca-text-input-dialog"]], decls: 20, vars: 15, consts: [["mat-dialog-title", ""], [1, "h6"], ["id", "close-button", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", ""], [3, "formGroup"], ["cdkTextareaAutosize", "", "formControlName", "input", "matInput", ""], ["formControlName", "input", "matInput", ""], ["matTextSuffix", ""], ["align", "end"], ["id", "close-button", "color", "primary", 3, "buttonClick", "label"], ["color", "primary", 1, "yes-button", 3, "buttonClick", "isDisabled", "label"]], template: function TextInputDialogComponent_Template(rf, ctx) { if (rf & 1) {
1532
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
1533
+ i0.ɵɵtext(2);
1534
+ i0.ɵɵpipe(3, "translate");
1535
+ i0.ɵɵelementEnd();
1536
+ i0.ɵɵelementStart(4, "cauca-icon-button", 2);
1537
+ i0.ɵɵlistener("buttonClick", function TextInputDialogComponent_Template_cauca_icon_button_buttonClick_4_listener() { return ctx.cancelClick(); });
1538
+ i0.ɵɵelementEnd()();
1539
+ i0.ɵɵelementStart(5, "div", 3)(6, "form", 4)(7, "mat-form-field")(8, "mat-label");
1540
+ i0.ɵɵtext(9);
1541
+ i0.ɵɵpipe(10, "translate");
1542
+ i0.ɵɵelementEnd();
1543
+ i0.ɵɵconditionalCreate(11, TextInputDialogComponent_Conditional_11_Template, 1, 0, "textarea", 5)(12, TextInputDialogComponent_Conditional_12_Template, 1, 0, "input", 6);
1544
+ i0.ɵɵconditionalCreate(13, TextInputDialogComponent_Conditional_13_Template, 2, 1, "span", 7);
1545
+ i0.ɵɵconditionalCreate(14, TextInputDialogComponent_Conditional_14_Template, 3, 3, "mat-error");
1546
+ i0.ɵɵconditionalCreate(15, TextInputDialogComponent_Conditional_15_Template, 3, 3, "mat-error");
1547
+ i0.ɵɵconditionalCreate(16, TextInputDialogComponent_Conditional_16_Template, 3, 3, "mat-error");
1548
+ i0.ɵɵelementEnd()()();
1549
+ i0.ɵɵelementStart(17, "mat-dialog-actions", 8)(18, "cauca-stroked-button", 9);
1550
+ i0.ɵɵlistener("buttonClick", function TextInputDialogComponent_Template_cauca_stroked_button_buttonClick_18_listener() { return ctx.cancelClick(); });
1551
+ i0.ɵɵelementEnd();
1552
+ i0.ɵɵelementStart(19, "cauca-raised-button", 10);
1553
+ i0.ɵɵlistener("buttonClick", function TextInputDialogComponent_Template_cauca_raised_button_buttonClick_19_listener() { return ctx.validateClick(); });
1554
+ i0.ɵɵelementEnd()();
1555
+ } if (rf & 2) {
1556
+ i0.ɵɵadvance(2);
1557
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 11, ctx.titleLabel));
1558
+ i0.ɵɵadvance(4);
1559
+ i0.ɵɵproperty("formGroup", ctx.form);
1560
+ i0.ɵɵadvance(3);
1561
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 13, ctx.inputLabel));
1562
+ i0.ɵɵadvance(2);
1563
+ i0.ɵɵconditional(ctx.useTextArea() ? 11 : 12);
1564
+ i0.ɵɵadvance(2);
1565
+ i0.ɵɵconditional(ctx.showSuffix() ? 13 : -1);
1566
+ i0.ɵɵadvance();
1567
+ i0.ɵɵconditional(ctx.form.controls.input.hasError("required") ? 14 : -1);
1568
+ i0.ɵɵadvance();
1569
+ i0.ɵɵconditional(ctx.form.controls.input.hasError("invalidName") ? 15 : -1);
1570
+ i0.ɵɵadvance();
1571
+ i0.ɵɵconditional(ctx.form.controls.input.hasError("alreadyUsed") ? 16 : -1);
1572
+ i0.ɵɵadvance(2);
1573
+ i0.ɵɵproperty("label", ctx.cancelButtonLabel);
1574
+ i0.ɵɵadvance();
1575
+ i0.ɵɵproperty("isDisabled", !ctx.form.valid)("label", ctx.validateButtonLabel);
1576
+ } }, dependencies: [TranslateModule, RaisedButtonComponent, MatDialogModule, i1$5.MatDialogTitle, i1$5.MatDialogActions, i1$5.MatDialogContent, StrokedButtonComponent, MatFormFieldModule, i1$4.MatFormField, i1$4.MatLabel, i1$4.MatError, i1$4.MatSuffix, MatInputModule, i3$1.MatInput, i4.CdkTextareaAutosize, ReactiveFormsModule, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName, IconButtonComponent, i1.TranslatePipe], styles: ["[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center;padding:8px 24px 0}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end[_ngcontent-%COMP%], .mat-mdc-dialog-actions[align=end][_ngcontent-%COMP%]{column-gap:8px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{padding-top:8px!important}"], changeDetection: 0 }); }
1577
+ }
1578
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextInputDialogComponent, [{
1579
+ type: Component,
1580
+ args: [{ selector: 'cauca-text-input-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RaisedButtonComponent, MatDialogModule, StrokedButtonComponent, MatFormFieldModule, MatInputModule, ReactiveFormsModule, IconButtonComponent], template: "<div mat-dialog-title>\r\n <div class=\"h6\">{{ titleLabel | translate }}</div>\r\n <cauca-icon-button id=\"close-button\" icon=\"close\" (buttonClick)=\"cancelClick()\" />\r\n</div>\r\n<div mat-dialog-content>\r\n <form [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{ inputLabel | translate}}</mat-label>\r\n @if (useTextArea()) {\r\n <textarea cdkTextareaAutosize formControlName=\"input\" matInput></textarea>\r\n } @else {\r\n <input formControlName=\"input\" matInput />\r\n }\r\n @if (showSuffix()) { <span matTextSuffix>{{suffix()}}</span> }\r\n @if (form.controls.input.hasError('required')) {<mat-error>{{'error.requiredField' | translate}}</mat-error>}\r\n @if (form.controls.input.hasError('invalidName')) {<mat-error>{{'error.invalidName' | translate}}</mat-error>}\r\n @if (form.controls.input.hasError('alreadyUsed')) {<mat-error>{{'error.alreadyUsed' | translate}}</mat-error>}\r\n </mat-form-field>\r\n </form>\r\n</div>\r\n<mat-dialog-actions align=\"end\">\r\n <cauca-stroked-button id=\"close-button\" [label]=\"cancelButtonLabel\" (buttonClick)=\"cancelClick()\" color=\"primary\" />\r\n <cauca-raised-button class=\"yes-button\" [isDisabled]=\"!form.valid\" [label]=\"validateButtonLabel\" color=\"primary\" (buttonClick)=\"validateClick()\" />\r\n</mat-dialog-actions>", styles: [":host>div:first-child{display:flex;align-items:center;padding:8px 24px 0}:host>div:first-child div:first-child{flex:1}mat-form-field{width:100%}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{column-gap:8px}.mat-mdc-dialog-content{padding-top:8px!important}\n"] }]
1581
+ }], () => [], null); })();
1582
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TextInputDialogComponent, { className: "TextInputDialogComponent", filePath: "lib/components/dialogs/text-input-dialog/text-input-dialog.component.ts", lineNumber: 20 }); })();
1583
+
1584
+ const _c0$b = a0 => ({ itemName: a0 });
1585
+ const _c1$2 = a0 => ({ itemType: a0 });
1586
+ function DeleteDialogComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1587
+ i0.ɵɵelementStart(0, "div", 1);
1588
+ i0.ɵɵtext(1);
1589
+ i0.ɵɵpipe(2, "translate");
1590
+ i0.ɵɵelementEnd();
1591
+ } if (rf & 2) {
1592
+ const ctx_r0 = i0.ɵɵnextContext();
1593
+ i0.ɵɵadvance();
1594
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleFemale", i0.ɵɵpureFunction1(4, _c1$2, ctx_r0.itemType)));
1595
+ } }
1596
+ function DeleteDialogComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1597
+ i0.ɵɵelementStart(0, "div", 1);
1598
+ i0.ɵɵtext(1);
1599
+ i0.ɵɵpipe(2, "translate");
1600
+ i0.ɵɵelementEnd();
1601
+ } if (rf & 2) {
1602
+ const ctx_r0 = i0.ɵɵnextContext();
1603
+ i0.ɵɵadvance();
1604
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleMale", i0.ɵɵpureFunction1(4, _c1$2, ctx_r0.itemType)));
1605
+ } }
1606
+ class DeleteDialogComponent {
1607
+ constructor() {
1608
+ this.dialogRef = inject(MatDialogRef);
1609
+ const data = inject(MAT_DIALOG_DATA);
1610
+ const breakdownObserver = inject(BreakpointObserver);
1611
+ this.itemGenderIsFemale = data.female;
1612
+ this.itemName = data.name ? data.name : '';
1613
+ this.itemType = data.type ? data.type.toLowerCase() : '';
1614
+ this.dialogRef.addPanelClass("dialog-global-style");
1615
+ breakdownObserver.observe('(max-width: 500px)').pipe(takeUntilDestroyed()).subscribe(result => this.dialogRef.updateSize(result.matches ? '100vw' : 'auto'));
1616
+ }
1617
+ deleteClick() {
1618
+ this.dialogRef.close(true);
1619
+ }
1620
+ closeClick() {
1621
+ this.dialogRef.close(false);
1622
+ }
1623
+ static { this.ɵfac = function DeleteDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DeleteDialogComponent)(); }; }
1624
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DeleteDialogComponent, selectors: [["cauca-delete-dialog"]], decls: 11, vars: 7, consts: [["mat-dialog-title", ""], [1, "h6", "title"], ["id", "closeButton", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", ""], ["align", "end"], ["id", "cancelButton", "label", "cancel", "color", "primary", 3, "buttonClick"], ["id", "deleteButton", "label", "delete", "color", "warn", 3, "buttonClick"]], template: function DeleteDialogComponent_Template(rf, ctx) { if (rf & 1) {
1625
+ i0.ɵɵelementStart(0, "div", 0);
1626
+ i0.ɵɵconditionalCreate(1, DeleteDialogComponent_Conditional_1_Template, 3, 6, "div", 1)(2, DeleteDialogComponent_Conditional_2_Template, 3, 6, "div", 1);
1627
+ i0.ɵɵelementStart(3, "cauca-icon-button", 2);
1628
+ i0.ɵɵlistener("buttonClick", function DeleteDialogComponent_Template_cauca_icon_button_buttonClick_3_listener() { return ctx.closeClick(); });
1629
+ i0.ɵɵelementEnd()();
1630
+ i0.ɵɵelementStart(4, "div", 3)(5, "p");
1631
+ i0.ɵɵtext(6);
1632
+ i0.ɵɵpipe(7, "translate");
1633
+ i0.ɵɵelementEnd()();
1634
+ i0.ɵɵelementStart(8, "mat-dialog-actions", 4)(9, "cauca-stroked-button", 5);
1635
+ i0.ɵɵlistener("buttonClick", function DeleteDialogComponent_Template_cauca_stroked_button_buttonClick_9_listener() { return ctx.closeClick(); });
1636
+ i0.ɵɵelementEnd();
1637
+ i0.ɵɵelementStart(10, "cauca-raised-button", 6);
1638
+ i0.ɵɵlistener("buttonClick", function DeleteDialogComponent_Template_cauca_raised_button_buttonClick_10_listener() { return ctx.deleteClick(); });
1639
+ i0.ɵɵelementEnd()();
1640
+ } if (rf & 2) {
1641
+ i0.ɵɵadvance();
1642
+ i0.ɵɵconditional(ctx.itemGenderIsFemale ? 1 : 2);
1643
+ i0.ɵɵadvance(5);
1644
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, "deleteDialog.message", i0.ɵɵpureFunction1(5, _c0$b, ctx.itemName)));
1645
+ } }, dependencies: [MatDialogModule, i1$5.MatDialogTitle, i1$5.MatDialogActions, i1$5.MatDialogContent, TranslateModule, StrokedButtonComponent, IconButtonComponent, RaisedButtonComponent, i1.TranslatePipe], styles: ["@media(max-width:500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{column-gap:8px}"], changeDetection: 0 }); }
1646
+ }
1647
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteDialogComponent, [{
1648
+ type: Component,
1649
+ args: [{ selector: 'cauca-delete-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatDialogModule, TranslateModule, StrokedButtonComponent, IconButtonComponent, RaisedButtonComponent], template: "<div mat-dialog-title>\n @if (itemGenderIsFemale)\n {\n <div class=\"h6 title\">{{ ('deleteDialog.titleFemale' | translate:{itemType}) }}</div>\n } @else\n {\n <div class=\"h6 title\">{{ ('deleteDialog.titleMale' | translate:{itemType}) }}</div>\n }\n <cauca-icon-button id=\"closeButton\" (buttonClick)=\"closeClick()\" icon=\"close\" />\n</div>\n<div mat-dialog-content>\n <p>{{('deleteDialog.message' | translate:{itemName})}}</p>\n</div>\n<mat-dialog-actions align=\"end\">\n <cauca-stroked-button id=\"cancelButton\" label=\"cancel\" color=\"primary\" (buttonClick)=\"closeClick()\"/>\n <cauca-raised-button id=\"deleteButton\" label=\"delete\" color=\"warn\" (buttonClick)=\"deleteClick()\" />\n</mat-dialog-actions>", styles: ["@media(max-width:500px){::ng-deep .dialog-global-style{max-width:100vw!important}}::ng-deep .dialog-global-style{margin:auto!important}:host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}.mat-mdc-dialog-actions{column-gap:8px}\n"] }]
1650
+ }], () => [], null); })();
1651
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DeleteDialogComponent, { className: "DeleteDialogComponent", filePath: "lib/components/dialogs/delete-dialog/delete-dialog.component.ts", lineNumber: 19 }); })();
1652
+
1653
+ const _c0$a = a0 => ({ itemName: a0 });
1654
+ class ErrorDialogComponent {
1655
+ constructor() {
1656
+ this.dialogRef = inject(MatDialogRef);
1657
+ const data = inject(MAT_DIALOG_DATA);
1658
+ const breakdownObserver = inject(BreakpointObserver);
1659
+ this.itemName = data.name ? data.name : '';
1660
+ this.dialogRef.addPanelClass("dialog-global-style");
1661
+ breakdownObserver.observe('(max-width: 500px)').pipe(takeUntilDestroyed()).subscribe(result => this.dialogRef.updateSize(result.matches ? '100vw' : 'auto'));
1662
+ }
1663
+ closeClick() {
1664
+ this.dialogRef.close();
1665
+ }
1666
+ static { this.ɵfac = function ErrorDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ErrorDialogComponent)(); }; }
1667
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorDialogComponent, selectors: [["cauca-error-dialog"]], decls: 11, vars: 9, consts: [["mat-dialog-title", ""], [1, "h6"], ["id", "closeButton", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", ""], ["align", "end"], ["id", "okButton", "label", "ok", "color", "warn", 3, "buttonClick"]], template: function ErrorDialogComponent_Template(rf, ctx) { if (rf & 1) {
1668
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
1669
+ i0.ɵɵtext(2);
1670
+ i0.ɵɵpipe(3, "translate");
1671
+ i0.ɵɵelementEnd();
1672
+ i0.ɵɵelementStart(4, "cauca-icon-button", 2);
1673
+ i0.ɵɵlistener("buttonClick", function ErrorDialogComponent_Template_cauca_icon_button_buttonClick_4_listener() { return ctx.closeClick(); });
1674
+ i0.ɵɵelementEnd()();
1675
+ i0.ɵɵelementStart(5, "div", 3)(6, "p");
1676
+ i0.ɵɵtext(7);
1677
+ i0.ɵɵpipe(8, "translate");
1678
+ i0.ɵɵelementEnd()();
1679
+ i0.ɵɵelementStart(9, "mat-dialog-actions", 4)(10, "cauca-raised-button", 5);
1680
+ i0.ɵɵlistener("buttonClick", function ErrorDialogComponent_Template_cauca_raised_button_buttonClick_10_listener() { return ctx.closeClick(); });
1681
+ i0.ɵɵelementEnd()();
1682
+ } if (rf & 2) {
1683
+ i0.ɵɵadvance(2);
1684
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "errorDialog.titleError"));
1685
+ i0.ɵɵadvance(5);
1686
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 4, "errorDialog.messageError", i0.ɵɵpureFunction1(7, _c0$a, ctx.itemName)));
1687
+ } }, dependencies: [MatDialogModule, i1$5.MatDialogTitle, i1$5.MatDialogActions, i1$5.MatDialogContent, TranslateModule, RaisedButtonComponent, IconButtonComponent, i1.TranslatePipe], styles: ["@media(max-width:500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}"], changeDetection: 0 }); }
1688
+ }
1689
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorDialogComponent, [{
1690
+ type: Component,
1691
+ args: [{ selector: 'cauca-error-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatDialogModule, TranslateModule, RaisedButtonComponent, IconButtonComponent], template: "<div mat-dialog-title>\n <div class=\"h6\">{{('errorDialog.titleError' | translate)}}</div>\n <cauca-icon-button id=\"closeButton\" (buttonClick)=\"closeClick()\" icon=\"close\"/>\n</div>\n<div mat-dialog-content>\n <p>{{('errorDialog.messageError' | translate:{itemName})}}</p>\n</div>\n<mat-dialog-actions align=\"end\">\n <cauca-raised-button id=\"okButton\" label=\"ok\" color=\"warn\" (buttonClick)=\"closeClick()\"/>\n</mat-dialog-actions>", styles: ["@media(max-width:500px){::ng-deep .dialog-global-style{max-width:100vw!important}}::ng-deep .dialog-global-style{margin:auto!important}:host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}\n"] }]
1692
+ }], () => [], null); })();
1693
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ErrorDialogComponent, { className: "ErrorDialogComponent", filePath: "lib/components/dialogs/error-dialog/error-dialog.component.ts", lineNumber: 18 }); })();
1694
+
1695
+ class DialogService {
1696
+ constructor() {
1697
+ this.defaultConfirmationOptions = {
1698
+ noText: 'no',
1699
+ noColor: 'primary',
1700
+ noType: 'stroked',
1701
+ yesText: 'yes',
1702
+ yesType: 'raised',
1703
+ messageArgs: null,
1704
+ titleArgs: null,
1705
+ yesColor: 'primary'
1706
+ };
1707
+ this.translate = inject(TranslateService);
1708
+ this.dialog = inject(MatDialog);
1709
+ }
1710
+ async showDialog(title, message) {
1711
+ const dialogRef = this.dialog.open(AlertDialogComponent, {
1712
+ data: { title, message },
1713
+ autoFocus: false
1714
+ });
1715
+ return await firstValueFrom(dialogRef.afterClosed());
1716
+ }
1717
+ async showCustomDialog(component, args, options = { autoFocus: false }) {
1718
+ const config = { ...options, ...{ data: args } };
1719
+ return await firstValueFrom(this.dialog.open(component, config)
1720
+ .afterClosed());
1721
+ }
1722
+ async askForConfirmation(title, message, args = null, options = { autoFocus: false }) {
1723
+ args = { ...this.defaultConfirmationOptions, ...(args || {}) };
1724
+ const data = { options: args, title, message };
1725
+ const config = { ...options, ...{ data } };
1726
+ const dialogRef = this.dialog.open(ConfirmDialogComponent, config);
1727
+ return await firstValueFrom(dialogRef.afterClosed());
1728
+ }
1729
+ async askForDeleteConfirmation(name, type, translateType = false) {
1730
+ if (translateType) {
1731
+ type = this.translate.instant(type);
1732
+ }
1733
+ const dialogRef = this.dialog.open(DeleteDialogComponent, {
1734
+ data: { name, type },
1735
+ autoFocus: false
1736
+ });
1737
+ return await firstValueFrom(dialogRef.afterClosed());
1738
+ }
1739
+ async showDeletionError(name) {
1740
+ const dialogRef = this.dialog.open(ErrorDialogComponent, {
1741
+ data: { name },
1742
+ autoFocus: '#okButton'
1743
+ });
1744
+ return await firstValueFrom(dialogRef.afterClosed());
1745
+ }
1746
+ async input(inputOptions, optionsDialog = { autoFocus: false }, value = '', suffix = '') {
1747
+ const args = { ...inputOptions, value, suffix };
1748
+ const config = { ...optionsDialog, ...{ data: args } };
1749
+ return await firstValueFrom(this.dialog.open(TextInputDialogComponent, config)
1750
+ .afterClosed());
1751
+ }
1752
+ static { this.ɵfac = function DialogService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DialogService)(); }; }
1753
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DialogService, factory: DialogService.ɵfac, providedIn: 'root' }); }
1754
+ }
1755
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogService, [{
1756
+ type: Injectable,
1757
+ args: [{
1758
+ providedIn: 'root'
1759
+ }]
1760
+ }], null, null); })();
1761
+ var ConfirmationResult;
1762
+ (function (ConfirmationResult) {
1763
+ ConfirmationResult[ConfirmationResult["Cancel"] = 0] = "Cancel";
1764
+ ConfirmationResult[ConfirmationResult["Yes"] = 1] = "Yes";
1765
+ ConfirmationResult[ConfirmationResult["No"] = 2] = "No";
1766
+ })(ConfirmationResult || (ConfirmationResult = {}));
1767
+
1768
+ class BreadcrumbLocation {
1769
+ constructor() {
1770
+ this.translate = false;
1771
+ }
1772
+ }
1773
+
1774
+ class BreadcrumbService {
1775
+ constructor() {
1776
+ this.showBreadcrumb = computed(() => this.isShown(), ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
1777
+ this.location = signal([], ...(ngDevMode ? [{ debugName: "location" }] : []));
1778
+ this.breadcrumb = signal('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
1779
+ this.translateBreadcrumb = signal(false, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
1780
+ this.isShown = signal(false, ...(ngDevMode ? [{ debugName: "isShown" }] : []));
1781
+ }
1782
+ show(breadcrumb, location = [], translateBreadcrumb = true) {
1783
+ this.isShown.set(true);
1784
+ this.breadcrumb.set(breadcrumb);
1785
+ this.location.set(location);
1786
+ this.translateBreadcrumb.set(translateBreadcrumb);
1787
+ }
1788
+ hide() {
1789
+ this.isShown.set(false);
1790
+ }
1791
+ static { this.ɵfac = function BreadcrumbService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbService)(); }; }
1792
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BreadcrumbService, factory: BreadcrumbService.ɵfac }); }
1793
+ }
1794
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BreadcrumbService, [{
1795
+ type: Injectable
1796
+ }], null, null); })();
1797
+
1798
+ class LoadingStateService {
1799
+ constructor() {
1800
+ this.showLoadingIndicator = computed(() => this.isLoading(), ...(ngDevMode ? [{ debugName: "showLoadingIndicator" }] : []));
1801
+ this.showError = computed(() => this.hasError(), ...(ngDevMode ? [{ debugName: "showError" }] : []));
1802
+ this.isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
1803
+ this.hasError = signal(false, ...(ngDevMode ? [{ debugName: "hasError" }] : []));
1804
+ }
1805
+ showLoading() {
1806
+ this.isLoading.set(true);
1807
+ }
1808
+ hideLoading() {
1809
+ this.isLoading.set(false);
1810
+ }
1811
+ withLoadingIndicator(observable$) {
1812
+ return of(null).pipe(tap(() => this.startLoading()), mergeMap(() => observable$), catchError((error) => this.handleError(error)), finalize(() => this.hideLoading()));
1813
+ }
1814
+ setAsInError() {
1815
+ this.hasError.set(true);
1816
+ }
1817
+ startLoading() {
1818
+ this.hasError.set(false);
1819
+ this.showLoading();
1820
+ }
1821
+ handleError(error) {
1822
+ console.error('Could not load data.', error);
1823
+ this.hasError.set(true);
1824
+ return throwError(() => error);
1825
+ }
1826
+ static { this.ɵfac = function LoadingStateService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LoadingStateService)(); }; }
1827
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LoadingStateService, factory: LoadingStateService.ɵfac }); }
1828
+ }
1829
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingStateService, [{
1830
+ type: Injectable
1831
+ }], null, null); })();
1832
+
1833
+ const _c0$9 = ["*"];
1834
+ function SnackBarComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
1835
+ const _r1 = i0.ɵɵgetCurrentView();
1836
+ i0.ɵɵelementStart(0, "cauca-stroked-button", 7);
1837
+ i0.ɵɵlistener("click", function SnackBarComponent_Conditional_10_Template_cauca_stroked_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
1838
+ i0.ɵɵelementEnd();
1839
+ } if (rf & 2) {
1840
+ const ctx_r1 = i0.ɵɵnextContext();
1841
+ i0.ɵɵproperty("color", ctx_r1.buttonColor())("label", ctx_r1.buttonLabel())("isInProgress", ctx_r1.inProgress())("icon", ctx_r1.buttonIcon());
1842
+ } }
1843
+ function SnackBarComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
1844
+ const _r3 = i0.ɵɵgetCurrentView();
1845
+ i0.ɵɵelementStart(0, "cauca-icon-button", 8);
1846
+ i0.ɵɵlistener("click", function SnackBarComponent_Conditional_11_Template_cauca_icon_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeClick.emit()); });
1847
+ i0.ɵɵelementEnd();
1848
+ } }
1849
+ class SnackBarComponent {
1850
+ constructor() {
1851
+ this.icon = input('info_outlined', ...(ngDevMode ? [{ debugName: "icon" }] : []));
1852
+ this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
1853
+ this.showCloseButton = input(false, ...(ngDevMode ? [{ debugName: "showCloseButton" }] : []));
1854
+ this.type = input('info', ...(ngDevMode ? [{ debugName: "type" }] : []));
1855
+ this.variant = input('standard', ...(ngDevMode ? [{ debugName: "variant" }] : []));
1856
+ this.appearanceClasses = computed(() => [this.type(), this.variant()], ...(ngDevMode ? [{ debugName: "appearanceClasses" }] : []));
1857
+ this.buttonSpecificColor = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSpecificColor" }] : []));
1858
+ this.buttonIcon = input(undefined, ...(ngDevMode ? [{ debugName: "buttonIcon" }] : []));
1859
+ this.inProgress = input(false, ...(ngDevMode ? [{ debugName: "inProgress" }] : []));
1860
+ this.showButton = input(false, ...(ngDevMode ? [{ debugName: "showButton" }] : []));
1861
+ this.buttonLabel = input('', ...(ngDevMode ? [{ debugName: "buttonLabel" }] : []));
1862
+ this.buttonColor = computed(() => {
1863
+ if (this.buttonSpecificColor()) {
1864
+ return this.buttonSpecificColor();
1865
+ }
1866
+ else {
1867
+ return this.variant() === 'filled' ? 'white' : undefined;
1868
+ }
1869
+ }, ...(ngDevMode ? [{ debugName: "buttonColor" }] : []));
1870
+ this.closeClick = output();
1871
+ this.buttonClick = output();
1872
+ }
1873
+ static { this.ɵfac = function SnackBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SnackBarComponent)(); }; }
1874
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SnackBarComponent, selectors: [["cauca-snackbar"]], inputs: { icon: [1, "icon"], caption: [1, "caption"], showCloseButton: [1, "showCloseButton"], type: [1, "type"], variant: [1, "variant"], buttonSpecificColor: [1, "buttonSpecificColor"], buttonIcon: [1, "buttonIcon"], inProgress: [1, "inProgress"], showButton: [1, "showButton"], buttonLabel: [1, "buttonLabel"] }, outputs: { closeClick: "closeClick", buttonClick: "buttonClick" }, ngContentSelectors: _c0$9, decls: 12, vars: 8, consts: [[1, "container"], [1, "icon-container"], [1, "text-container"], [1, "title", "alert-title"], [1, "message", "body2"], ["onkeypress", "buttonClick.emit()", 3, "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()"], ["onkeypress", "buttonClick.emit()", 3, "click", "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()", 3, "click"]], template: function SnackBarComponent_Template(rf, ctx) { if (rf & 1) {
1875
+ i0.ɵɵprojectionDef();
1876
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "mat-icon");
1877
+ i0.ɵɵtext(3);
1878
+ i0.ɵɵelementEnd()();
1879
+ i0.ɵɵelementStart(4, "div", 2)(5, "div", 3);
1880
+ i0.ɵɵtext(6);
1881
+ i0.ɵɵpipe(7, "translate");
1882
+ i0.ɵɵelementEnd();
1883
+ i0.ɵɵelementStart(8, "div", 4);
1884
+ i0.ɵɵprojection(9);
1885
+ i0.ɵɵelementEnd()();
1886
+ i0.ɵɵconditionalCreate(10, SnackBarComponent_Conditional_10_Template, 1, 4, "cauca-stroked-button", 5);
1887
+ i0.ɵɵconditionalCreate(11, SnackBarComponent_Conditional_11_Template, 1, 0, "cauca-icon-button", 6);
1888
+ i0.ɵɵelementEnd();
1889
+ } if (rf & 2) {
1890
+ i0.ɵɵclassMap(ctx.appearanceClasses());
1891
+ i0.ɵɵadvance(3);
1892
+ i0.ɵɵtextInterpolate(ctx.icon());
1893
+ i0.ɵɵadvance(3);
1894
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, ctx.caption()));
1895
+ i0.ɵɵadvance(4);
1896
+ i0.ɵɵconditional(ctx.showButton() ? 10 : -1);
1897
+ i0.ɵɵadvance();
1898
+ i0.ɵɵconditional(ctx.showCloseButton() ? 11 : -1);
1899
+ } }, dependencies: [MatIcon, StrokedButtonComponent, IconButtonComponent, TranslateModule, i1.TranslatePipe], styles: [".info[_ngcontent-%COMP%]{--darkBackgroundColor: #0288D1;--lightBackgroundColor: #E5F6FD;--lightColor: white;--darkColor: #014361}.warning[_ngcontent-%COMP%]{--darkBackgroundColor: #ED6C02;--lightBackgroundColor: #FFF4E5;--lightColor: white;--darkColor: #663C00}.success[_ngcontent-%COMP%]{--darkBackgroundColor: #2E7D32;--lightBackgroundColor: #EDF7ED;--lightColor: white;--darkColor: #1E4620}.error[_ngcontent-%COMP%]{--darkBackgroundColor: #D32F2F;--lightBackgroundColor: #FDEDED;--lightColor: white;--darkColor: #5F2120}.filled[_ngcontent-%COMP%]{--textColor: var(--lightColor);--iconColor: var(--lightColor);background-color:var(--darkBackgroundColor)}.standard[_ngcontent-%COMP%], .outlined[_ngcontent-%COMP%]{--textColor: var(--darkColor);--iconColor: var(--darkBackgroundColor)}.container[_ngcontent-%COMP%]{display:flex;padding:6px 16px;align-items:flex-start;border-radius:4px}.text-container[_ngcontent-%COMP%]{display:flex;padding:8px 0;flex-direction:column;align-items:flex-start;gap:4px;flex:1 0 0}.icon-container[_ngcontent-%COMP%]{display:flex;padding:7px 12px 7px 0;align-items:flex-start}.icon-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--iconColor)}.message[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{color:var(--textColor)}.standard[_ngcontent-%COMP%]{background-color:var(--lightBackgroundColor)}.outlined[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--darkBackgroundColor)}.standard[_ngcontent-%COMP%] .outlined[_ngcontent-%COMP%]{color:var(--darkColor)}"], changeDetection: 0 }); }
1900
+ }
1901
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SnackBarComponent, [{
1902
+ type: Component,
1903
+ args: [{ selector: 'cauca-snackbar', imports: [MatIcon, StrokedButtonComponent, IconButtonComponent, TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container\" [class]=\"appearanceClasses()\">\r\n\r\n <div class=\"icon-container\">\r\n <mat-icon>{{icon()}}</mat-icon>\r\n </div>\r\n\r\n <div class=\"text-container\">\r\n <div class=\"title alert-title\">{{caption()|translate}}</div>\r\n <div class=\"message body2\"><ng-content></ng-content></div>\r\n </div>\r\n\r\n @if (showButton()) {<cauca-stroked-button [color]=\"buttonColor()\" [label]=\"buttonLabel()\" (click)=\"buttonClick.emit()\" onkeypress=\"buttonClick.emit()\" [isInProgress]=\"inProgress()\" [icon]=\"buttonIcon()\" />}\r\n\r\n @if (showCloseButton()) {<cauca-icon-button icon=\"close\" (click)=\"closeClick.emit()\" onkeypress=\"closeClick.emit()\" />}\r\n\r\n</div>", styles: [".info{--darkBackgroundColor: #0288D1;--lightBackgroundColor: #E5F6FD;--lightColor: white;--darkColor: #014361}.warning{--darkBackgroundColor: #ED6C02;--lightBackgroundColor: #FFF4E5;--lightColor: white;--darkColor: #663C00}.success{--darkBackgroundColor: #2E7D32;--lightBackgroundColor: #EDF7ED;--lightColor: white;--darkColor: #1E4620}.error{--darkBackgroundColor: #D32F2F;--lightBackgroundColor: #FDEDED;--lightColor: white;--darkColor: #5F2120}.filled{--textColor: var(--lightColor);--iconColor: var(--lightColor);background-color:var(--darkBackgroundColor)}.standard,.outlined{--textColor: var(--darkColor);--iconColor: var(--darkBackgroundColor)}.container{display:flex;padding:6px 16px;align-items:flex-start;border-radius:4px}.text-container{display:flex;padding:8px 0;flex-direction:column;align-items:flex-start;gap:4px;flex:1 0 0}.icon-container{display:flex;padding:7px 12px 7px 0;align-items:flex-start}.icon-container mat-icon{color:var(--iconColor)}.message,.title{color:var(--textColor)}.standard{background-color:var(--lightBackgroundColor)}.outlined{background-color:transparent;border:1px solid var(--darkBackgroundColor)}.standard .outlined{color:var(--darkColor)}\n"] }]
1904
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], buttonSpecificColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSpecificColor", required: false }] }], buttonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonIcon", required: false }] }], inProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "inProgress", required: false }] }], showButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButton", required: false }] }], buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], closeClick: [{ type: i0.Output, args: ["closeClick"] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }] }); })();
1905
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SnackBarComponent, { className: "SnackBarComponent", filePath: "lib/components/misc/snack-bar/snack-bar.component.ts", lineNumber: 14 }); })();
1906
+
1907
+ function LoadingErrorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1908
+ const _r1 = i0.ɵɵgetCurrentView();
1909
+ i0.ɵɵelementStart(0, "cauca-snackbar", 1);
1910
+ i0.ɵɵlistener("buttonClick", function LoadingErrorComponent_Conditional_0_Template_cauca_snackbar_buttonClick_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.retryRequest.emit()); });
1911
+ i0.ɵɵtext(1);
1912
+ i0.ɵɵpipe(2, "translate");
1913
+ i0.ɵɵelementEnd();
1914
+ } if (rf & 2) {
1915
+ i0.ɵɵproperty("showButton", true);
1916
+ i0.ɵɵadvance();
1917
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "generalError.loadingErrorAlertMessage"), " ");
1918
+ } }
1919
+ class LoadingErrorComponent {
1920
+ constructor() {
1921
+ this.retryRequest = output();
1922
+ this.loadingState = inject(LoadingStateService);
1923
+ this.showError = this.loadingState.showError;
1924
+ }
1925
+ static { this.ɵfac = function LoadingErrorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LoadingErrorComponent)(); }; }
1926
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingErrorComponent, selectors: [["cauca-loading-error"]], outputs: { retryRequest: "retryRequest" }, decls: 1, vars: 1, consts: [["caption", "generalError.loadingErrorAlertTitle", "type", "error", "variant", "standard", "buttonLabel", "generalError.retryButtonLabel", 3, "showButton"], ["caption", "generalError.loadingErrorAlertTitle", "type", "error", "variant", "standard", "buttonLabel", "generalError.retryButtonLabel", 3, "buttonClick", "showButton"]], template: function LoadingErrorComponent_Template(rf, ctx) { if (rf & 1) {
1927
+ i0.ɵɵconditionalCreate(0, LoadingErrorComponent_Conditional_0_Template, 3, 4, "cauca-snackbar", 0);
1928
+ } if (rf & 2) {
1929
+ i0.ɵɵconditional(ctx.showError() ? 0 : -1);
1930
+ } }, dependencies: [SnackBarComponent, TranslateModule, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
1931
+ }
1932
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingErrorComponent, [{
1933
+ type: Component,
1934
+ args: [{ selector: 'cauca-loading-error', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [SnackBarComponent, TranslateModule], template: "@if (showError()) {\r\n <cauca-snackbar\r\n caption=\"generalError.loadingErrorAlertTitle\"\r\n type=\"error\"\r\n variant=\"standard\"\r\n [showButton]=\"true\"\r\n buttonLabel=\"generalError.retryButtonLabel\"\r\n (buttonClick)=\"retryRequest.emit()\">\r\n {{'generalError.loadingErrorAlertMessage' | translate}}\r\n </cauca-snackbar>\r\n}" }]
1935
+ }], null, { retryRequest: [{ type: i0.Output, args: ["retryRequest"] }] }); })();
1936
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingErrorComponent, { className: "LoadingErrorComponent", filePath: "lib/components/misc/loading-error/loading-error.component.ts", lineNumber: 14 }); })();
1937
+
1938
+ function LoadingSpinnerIndicatorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1939
+ i0.ɵɵelement(0, "mat-progress-spinner", 0);
1940
+ } if (rf & 2) {
1941
+ const ctx_r0 = i0.ɵɵnextContext();
1942
+ i0.ɵɵproperty("diameter", ctx_r0.diameter());
1943
+ } }
1944
+ class LoadingSpinnerIndicatorComponent {
1945
+ constructor() {
1946
+ this.diameter = input(100, ...(ngDevMode ? [{ debugName: "diameter" }] : []));
1947
+ this.loadingState = inject(LoadingStateService);
1948
+ }
1949
+ static { this.ɵfac = function LoadingSpinnerIndicatorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LoadingSpinnerIndicatorComponent)(); }; }
1950
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingSpinnerIndicatorComponent, selectors: [["cauca-loading-spinner-indicator"]], inputs: { diameter: [1, "diameter"] }, decls: 1, vars: 1, consts: [["mode", "indeterminate", 3, "diameter"]], template: function LoadingSpinnerIndicatorComponent_Template(rf, ctx) { if (rf & 1) {
1951
+ i0.ɵɵconditionalCreate(0, LoadingSpinnerIndicatorComponent_Conditional_0_Template, 1, 1, "mat-progress-spinner", 0);
1952
+ } if (rf & 2) {
1953
+ i0.ɵɵconditional(ctx.loadingState.showLoadingIndicator() ? 0 : -1);
1954
+ } }, dependencies: [MatProgressSpinner], encapsulation: 2, changeDetection: 0 }); }
1955
+ }
1956
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingSpinnerIndicatorComponent, [{
1957
+ type: Component,
1958
+ args: [{ selector: 'cauca-loading-spinner-indicator', standalone: true, imports: [MatProgressSpinner], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (loadingState.showLoadingIndicator()) {\r\n <mat-progress-spinner mode=\"indeterminate\" [diameter]=\"diameter()\" />\r\n}\r\n" }]
1959
+ }], null, { diameter: [{ type: i0.Input, args: [{ isSignal: true, alias: "diameter", required: false }] }] }); })();
1960
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoadingSpinnerIndicatorComponent, { className: "LoadingSpinnerIndicatorComponent", filePath: "lib/components/misc/loading-spinner-indicator/loading-spinner-indicator.component.ts", lineNumber: 13 }); })();
1961
+
1962
+ class BadgeComponent {
1963
+ constructor() {
1964
+ this.icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : []));
1965
+ this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
1966
+ this.color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : []));
1967
+ }
1968
+ static { this.ɵfac = function BadgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BadgeComponent)(); }; }
1969
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BadgeComponent, selectors: [["cauca-badge"]], inputs: { icon: [1, "icon"], label: [1, "label"], color: [1, "color"] }, decls: 7, vars: 5, consts: [["highlighted", "", "disableRipple", "", 3, "color"], [1, "mat-chip-content"], [1, "chip-label"]], template: function BadgeComponent_Template(rf, ctx) { if (rf & 1) {
1970
+ i0.ɵɵelementStart(0, "mat-chip", 0)(1, "div", 1)(2, "mat-icon");
1971
+ i0.ɵɵtext(3);
1972
+ i0.ɵɵelementEnd();
1973
+ i0.ɵɵelementStart(4, "div", 2);
1974
+ i0.ɵɵtext(5);
1975
+ i0.ɵɵpipe(6, "translate");
1976
+ i0.ɵɵelementEnd()()();
1977
+ } if (rf & 2) {
1978
+ i0.ɵɵproperty("color", ctx.color());
1979
+ i0.ɵɵadvance(3);
1980
+ i0.ɵɵtextInterpolate(ctx.icon());
1981
+ i0.ɵɵadvance(2);
1982
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 3, ctx.label()));
1983
+ } }, dependencies: [TranslateModule, MatChipsModule, i1$7.MatChip, MatIcon, i1.TranslatePipe], styles: [".mat-chip-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon[_ngcontent-%COMP%]{color:inherit}"], changeDetection: 0 }); }
1984
+ }
1985
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BadgeComponent, [{
1986
+ type: Component,
1987
+ args: [{ selector: 'cauca-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatChipsModule, MatIcon], template: "<mat-chip highlighted disableRipple [color]=\"color()\">\n <div class=\"mat-chip-content\">\n <mat-icon>{{icon()}}</mat-icon>\n <div class=\"chip-label\">{{label() | translate}}</div>\n </div>\n</mat-chip>", styles: [".mat-chip-content{display:flex;justify-content:space-between;align-items:center;gap:8px}mat-icon{color:inherit}\n"] }]
1988
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] }); })();
1989
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BadgeComponent, { className: "BadgeComponent", filePath: "lib/components/presenters/badge/badge.component.ts", lineNumber: 14 }); })();
1990
+
1991
+ function IconComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1992
+ i0.ɵɵelementStart(0, "div", 0);
1993
+ i0.ɵɵelement(1, "fa-icon", 1);
1994
+ i0.ɵɵelementEnd();
1995
+ } if (rf & 2) {
1996
+ const ctx_r0 = i0.ɵɵnextContext();
1997
+ i0.ɵɵadvance();
1998
+ i0.ɵɵproperty("icon", ctx_r0.faIcon());
1999
+ } }
2000
+ function IconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2001
+ i0.ɵɵelementStart(0, "div", 0);
2002
+ i0.ɵɵelement(1, "img", 2);
2003
+ i0.ɵɵelementEnd();
2004
+ } if (rf & 2) {
2005
+ const ctx_r0 = i0.ɵɵnextContext();
2006
+ i0.ɵɵadvance();
2007
+ i0.ɵɵproperty("src", ctx_r0.image(), i0.ɵɵsanitizeUrl);
2008
+ } }
2009
+ class IconComponent {
2010
+ constructor() {
2011
+ this.icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : []));
2012
+ this.isFontAwesome = computed(() => {
2013
+ const value = this.icon();
2014
+ return value && value.indexOf(' ') > -1;
2015
+ }, ...(ngDevMode ? [{ debugName: "isFontAwesome" }] : []));
2016
+ this.faIcon = computed(() => {
2017
+ return this.isFontAwesome() ? this.icon().split(' ') : [];
2018
+ }, ...(ngDevMode ? [{ debugName: "faIcon" }] : []));
2019
+ this.image = computed(() => {
2020
+ return this.isFontAwesome() ? '' : this.icon();
2021
+ }, ...(ngDevMode ? [{ debugName: "image" }] : []));
2022
+ }
2023
+ static { this.ɵfac = function IconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || IconComponent)(); }; }
2024
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconComponent, selectors: [["cauca-icon"]], inputs: { icon: [1, "icon"] }, decls: 2, vars: 2, consts: [[1, "icon"], [3, "icon"], ["alt", "icon", 3, "src"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
2025
+ i0.ɵɵconditionalCreate(0, IconComponent_Conditional_0_Template, 2, 1, "div", 0);
2026
+ i0.ɵɵconditionalCreate(1, IconComponent_Conditional_1_Template, 2, 1, "div", 0);
2027
+ } if (rf & 2) {
2028
+ i0.ɵɵconditional(ctx.isFontAwesome() && ctx.faIcon().length > 0 ? 0 : -1);
2029
+ i0.ɵɵadvance();
2030
+ i0.ɵɵconditional(!ctx.isFontAwesome() && ctx.image() ? 1 : -1);
2031
+ } }, dependencies: [FontAwesomeModule, i1$8.FaIconComponent], styles: ["img[_ngcontent-%COMP%]{max-height:40px;height:40px}fa-icon[_ngcontent-%COMP%]{max-height:40px;height:40px}"], changeDetection: 0 }); }
2032
+ }
2033
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconComponent, [{
2034
+ type: Component,
2035
+ args: [{ selector: 'cauca-icon', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [FontAwesomeModule], template: `
2036
+ @if (isFontAwesome() && faIcon().length > 0) {
2037
+ <div class="icon">
2038
+ <fa-icon [icon]="faIcon()"></fa-icon>
2039
+ </div>
2040
+ }
2041
+ @if (!isFontAwesome() && image()) {
2042
+ <div class="icon">
2043
+ <img [src]="image()" alt="icon" />
2044
+ </div>
2045
+ }
2046
+ `, styles: ["img{max-height:40px;height:40px}fa-icon{max-height:40px;height:40px}\n"] }]
2047
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }] }); })();
2048
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconComponent, { className: "IconComponent", filePath: "lib/components/presenters/icon/icon.component.ts", lineNumber: 23 }); })();
2049
+
2050
+ function ListPaginatorComponent_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2051
+ i0.ɵɵelementStart(0, "div", 5);
2052
+ i0.ɵɵtext(1);
2053
+ i0.ɵɵelementEnd();
2054
+ } if (rf & 2) {
2055
+ const ctx_r0 = i0.ɵɵnextContext(2);
2056
+ i0.ɵɵadvance();
2057
+ i0.ɵɵtextInterpolate1("", ctx_r0.pageSplitter, " ");
2058
+ } }
2059
+ function ListPaginatorComponent_For_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2060
+ const _r2 = i0.ɵɵgetCurrentView();
2061
+ i0.ɵɵelementStart(0, "cauca-round-button", 7);
2062
+ i0.ɵɵlistener("buttonClick", function ListPaginatorComponent_For_4_Conditional_1_Template_cauca_round_button_buttonClick_0_listener() { i0.ɵɵrestoreView(_r2); const page_r3 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.changePage(page_r3)); });
2063
+ i0.ɵɵelementEnd();
2064
+ } if (rf & 2) {
2065
+ const page_r3 = i0.ɵɵnextContext().$implicit;
2066
+ const ctx_r0 = i0.ɵɵnextContext();
2067
+ i0.ɵɵclassProp("selected", page_r3 === ctx_r0.currentPage());
2068
+ i0.ɵɵproperty("translateLabel", false)("label", page_r3.toString());
2069
+ } }
2070
+ function ListPaginatorComponent_For_4_Template(rf, ctx) { if (rf & 1) {
2071
+ i0.ɵɵconditionalCreate(0, ListPaginatorComponent_For_4_Conditional_0_Template, 2, 1, "div", 5)(1, ListPaginatorComponent_For_4_Conditional_1_Template, 1, 4, "cauca-round-button", 6);
2072
+ } if (rf & 2) {
2073
+ const page_r3 = ctx.$implicit;
2074
+ const ctx_r0 = i0.ɵɵnextContext();
2075
+ i0.ɵɵconditional(page_r3 === ctx_r0.pageSplitterValue ? 0 : 1);
2076
+ } }
2077
+ class ListPaginatorComponent {
2078
+ constructor() {
2079
+ this.itemsCount = input(0, ...(ngDevMode ? [{ debugName: "itemsCount" }] : []));
2080
+ this.showTotalPage = input(9, ...(ngDevMode ? [{ debugName: "showTotalPage" }] : []));
2081
+ this.pageSize = input(50, ...(ngDevMode ? [{ debugName: "pageSize" }] : []));
2082
+ this.pageCount = computed(() => this.itemsCount() > 0 ? Math.ceil(this.itemsCount() / this.pageSize()) : 1, ...(ngDevMode ? [{ debugName: "pageCount" }] : []));
2083
+ this.pages = computed(() => [...Array(this.pageCount()).keys()], ...(ngDevMode ? [{ debugName: "pages" }] : []));
2084
+ this.currentPage = signal(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
2085
+ this.previousDisabled = computed(() => this.currentPage() === 1, ...(ngDevMode ? [{ debugName: "previousDisabled" }] : []));
2086
+ this.nextDisabled = computed(() => this.currentPage() === this.pageCount(), ...(ngDevMode ? [{ debugName: "nextDisabled" }] : []));
2087
+ this.pagesToShow = computed(() => {
2088
+ const pagesToShow = [];
2089
+ const rangeStart = Math.max(this.currentPage() - Math.floor(this.showTotalPage() / 2), 1);
2090
+ const rangeEnd = Math.min(rangeStart + this.showTotalPage() - 1, this.pageCount());
2091
+ for (let index = rangeStart; index <= rangeEnd; index++) {
2092
+ pagesToShow.push(index);
2093
+ }
2094
+ if (!pagesToShow.includes(1)) {
2095
+ pagesToShow.unshift(1, -1);
2096
+ }
2097
+ if (!pagesToShow.includes(this.pageCount())) {
2098
+ pagesToShow.push(-1, this.pageCount());
2099
+ }
2100
+ return pagesToShow;
2101
+ }, ...(ngDevMode ? [{ debugName: "pagesToShow" }] : []));
2102
+ this.pageChange = output();
2103
+ }
2104
+ get pageSplitter() {
2105
+ return '...';
2106
+ }
2107
+ get pageSplitterValue() {
2108
+ return -1;
2109
+ }
2110
+ changePage(page) {
2111
+ if (page != this.currentPage()) {
2112
+ this.currentPage.set(page);
2113
+ this.pageChange.emit(this.currentPage());
2114
+ }
2115
+ }
2116
+ moveToFirst() {
2117
+ this.currentPage.set(1);
2118
+ }
2119
+ tryMoveToFirst() {
2120
+ if (this.previousDisabled())
2121
+ return;
2122
+ this.changePage(1);
2123
+ }
2124
+ tryMoveToLast() {
2125
+ if (this.nextDisabled())
2126
+ return;
2127
+ this.changePage(this.pageCount());
2128
+ }
2129
+ tryMoveToPrevious() {
2130
+ if (this.previousDisabled())
2131
+ return;
2132
+ this.changePage(this.currentPage() - 1);
2133
+ }
2134
+ tryMoveToNext() {
2135
+ if (this.nextDisabled())
2136
+ return;
2137
+ this.changePage(this.currentPage() + 1);
2138
+ }
2139
+ static { this.ɵfac = function ListPaginatorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ListPaginatorComponent)(); }; }
2140
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ListPaginatorComponent, selectors: [["cauca-list-paginator"]], inputs: { itemsCount: [1, "itemsCount"], showTotalPage: [1, "showTotalPage"], pageSize: [1, "pageSize"] }, outputs: { pageChange: "pageChange" }, decls: 7, vars: 4, consts: [[1, "pages"], ["icon", "first_page", 1, "page", "first", 3, "buttonClick", "isDisabled"], ["icon", "chevron_left", 1, "page", "previous", 3, "buttonClick", "isDisabled"], ["icon", "chevron_right", 1, "page", "next", 3, "buttonClick", "isDisabled"], ["icon", "last_page", 1, "page", "last", 3, "buttonClick", "isDisabled"], [1, "page"], [1, "page", "specific", 3, "selected", "translateLabel", "label"], [1, "page", "specific", 3, "buttonClick", "translateLabel", "label"]], template: function ListPaginatorComponent_Template(rf, ctx) { if (rf & 1) {
2141
+ i0.ɵɵelementStart(0, "div", 0)(1, "cauca-icon-button", 1);
2142
+ i0.ɵɵlistener("buttonClick", function ListPaginatorComponent_Template_cauca_icon_button_buttonClick_1_listener() { return ctx.tryMoveToFirst(); });
2143
+ i0.ɵɵelementEnd();
2144
+ i0.ɵɵelementStart(2, "cauca-icon-button", 2);
2145
+ i0.ɵɵlistener("buttonClick", function ListPaginatorComponent_Template_cauca_icon_button_buttonClick_2_listener() { return ctx.tryMoveToPrevious(); });
2146
+ i0.ɵɵelementEnd();
2147
+ i0.ɵɵrepeaterCreate(3, ListPaginatorComponent_For_4_Template, 2, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
2148
+ i0.ɵɵelementStart(5, "cauca-icon-button", 3);
2149
+ i0.ɵɵlistener("buttonClick", function ListPaginatorComponent_Template_cauca_icon_button_buttonClick_5_listener() { return ctx.tryMoveToNext(); });
2150
+ i0.ɵɵelementEnd();
2151
+ i0.ɵɵelementStart(6, "cauca-icon-button", 4);
2152
+ i0.ɵɵlistener("buttonClick", function ListPaginatorComponent_Template_cauca_icon_button_buttonClick_6_listener() { return ctx.tryMoveToLast(); });
2153
+ i0.ɵɵelementEnd()();
2154
+ } if (rf & 2) {
2155
+ i0.ɵɵadvance();
2156
+ i0.ɵɵproperty("isDisabled", ctx.previousDisabled());
2157
+ i0.ɵɵadvance();
2158
+ i0.ɵɵproperty("isDisabled", ctx.previousDisabled());
2159
+ i0.ɵɵadvance();
2160
+ i0.ɵɵrepeater(ctx.pagesToShow());
2161
+ i0.ɵɵadvance(2);
2162
+ i0.ɵɵproperty("isDisabled", ctx.nextDisabled());
2163
+ i0.ɵɵadvance();
2164
+ i0.ɵɵproperty("isDisabled", ctx.nextDisabled());
2165
+ } }, dependencies: [IconButtonComponent, RoundButtonComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}.pages[_ngcontent-%COMP%]{display:flex;padding:0 6px;align-items:flex-start;gap:6px}.page[_ngcontent-%COMP%]{display:flex;width:40px;height:40px;justify-content:center;align-items:center;color:#121014;cursor:pointer}.page[_ngcontent-%COMP%]:hover:not(.disabled){background:#12101405;border-radius:100px}.page[_ngcontent-%COMP%]:active:not(.disabled){background:#1210140f}.selected[_ngcontent-%COMP%]{border-radius:100px;background:#12101414}.disabled[_ngcontent-%COMP%]{color:#12101448}.disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#12101448}.disabled[_ngcontent-%COMP%]{cursor:default}"], changeDetection: 0 }); }
2166
+ }
2167
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ListPaginatorComponent, [{
2168
+ type: Component,
2169
+ args: [{ selector: 'cauca-list-paginator', imports: [IconButtonComponent, RoundButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"pages\">\r\n <cauca-icon-button class=\"page first\" [isDisabled]=\"previousDisabled()\" (buttonClick)=\"tryMoveToFirst()\" icon=\"first_page\" />\r\n <cauca-icon-button class=\"page previous\" [isDisabled]=\"previousDisabled()\" (buttonClick)=\"tryMoveToPrevious()\" icon=\"chevron_left\" />\r\n\r\n @for(page of pagesToShow(); track page) {\r\n @if (page === pageSplitterValue) {\r\n <div class=\"page\">{{pageSplitter}}\r\n </div>\r\n } @else {\r\n <cauca-round-button class=\"page specific\" [class.selected]=\"page === currentPage()\" (buttonClick)=\"changePage(page)\" [translateLabel]=\"false\" [label]=\"page.toString()\" />\r\n }\r\n }\r\n\r\n <cauca-icon-button class=\"page next\" [isDisabled]=\"nextDisabled()\" (buttonClick)=\"tryMoveToNext()\" icon=\"chevron_right\" />\r\n <cauca-icon-button class=\"page last\" [isDisabled]=\"nextDisabled()\" (buttonClick)=\"tryMoveToLast()\" icon=\"last_page\" />\r\n</div>", styles: [":host{display:flex;flex-direction:column;align-items:center}.pages{display:flex;padding:0 6px;align-items:flex-start;gap:6px}.page{display:flex;width:40px;height:40px;justify-content:center;align-items:center;color:#121014;cursor:pointer}.page:hover:not(.disabled){background:#12101405;border-radius:100px}.page:active:not(.disabled){background:#1210140f}.selected{border-radius:100px;background:#12101414}.disabled{color:#12101448}.disabled mat-icon{color:#12101448}.disabled{cursor:default}\n"] }]
2170
+ }], null, { itemsCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsCount", required: false }] }], showTotalPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTotalPage", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }] }); })();
2171
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ListPaginatorComponent, { className: "ListPaginatorComponent", filePath: "lib/components/list-paginator/list-paginator.component.ts", lineNumber: 12 }); })();
2172
+
2173
+ function PasswordCriteriaComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2174
+ i0.ɵɵelementStart(0, "mat-icon", 0);
2175
+ i0.ɵɵtext(1, "check_circle");
2176
+ i0.ɵɵelementEnd();
2177
+ } if (rf & 2) {
2178
+ const ctx_r0 = i0.ɵɵnextContext();
2179
+ i0.ɵɵproperty("ngClass", ctx_r0.disabled() ? "disabled" : "");
2180
+ } }
2181
+ function PasswordCriteriaComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2182
+ i0.ɵɵelementStart(0, "mat-icon", 1);
2183
+ i0.ɵɵtext(1, "cancel");
2184
+ i0.ɵɵelementEnd();
2185
+ } if (rf & 2) {
2186
+ const ctx_r0 = i0.ɵɵnextContext();
2187
+ i0.ɵɵproperty("ngClass", ctx_r0.disabled() ? "disabled" : "");
2188
+ } }
2189
+ class PasswordCriteriaComponent {
2190
+ constructor() {
2191
+ this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
2192
+ this.condition = input(false, ...(ngDevMode ? [{ debugName: "condition" }] : []));
2193
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2194
+ }
2195
+ static { this.ɵfac = function PasswordCriteriaComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PasswordCriteriaComponent)(); }; }
2196
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordCriteriaComponent, selectors: [["cauca-password-criteria"]], inputs: { label: [1, "label"], condition: [1, "condition"], disabled: [1, "disabled"] }, decls: 4, vars: 3, consts: [[1, "green", 3, "ngClass"], [1, "red", 3, "ngClass"], ["translate", "", 1, "body2", 3, "ngClass"]], template: function PasswordCriteriaComponent_Template(rf, ctx) { if (rf & 1) {
2197
+ i0.ɵɵconditionalCreate(0, PasswordCriteriaComponent_Conditional_0_Template, 2, 1, "mat-icon", 0)(1, PasswordCriteriaComponent_Conditional_1_Template, 2, 1, "mat-icon", 1);
2198
+ i0.ɵɵelementStart(2, "label", 2);
2199
+ i0.ɵɵtext(3);
2200
+ i0.ɵɵelementEnd();
2201
+ } if (rf & 2) {
2202
+ i0.ɵɵconditional(ctx.condition() ? 0 : 1);
2203
+ i0.ɵɵadvance(2);
2204
+ i0.ɵɵproperty("ngClass", ctx.disabled() ? "disabled" : "");
2205
+ i0.ɵɵadvance();
2206
+ i0.ɵɵtextInterpolate(ctx.label());
2207
+ } }, dependencies: [MatIconModule, i1$2.MatIcon, TranslateModule, i1.TranslateDirective, NgClass], styles: ["[_nghost-%COMP%]{display:flex;align-items:center;gap:8px}mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.green[_ngcontent-%COMP%]{fill:#81c784;color:#81c784}.red[_ngcontent-%COMP%]{fill:#e57373;color:#e57373}label[_ngcontent-%COMP%]{color:#000}.disabled[_ngcontent-%COMP%]{opacity:.5}"], changeDetection: 0 }); }
2208
+ }
2209
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordCriteriaComponent, [{
2210
+ type: Component,
2211
+ args: [{ selector: 'cauca-password-criteria', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconModule, TranslateModule, NgClass], template: "@if (condition()) {\r\n<mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"green\">check_circle</mat-icon>\r\n}@else {\r\n<mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"red\">cancel</mat-icon>\r\n}\r\n<label [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"body2\" translate>{{label()}}</label>", styles: [":host{display:flex;align-items:center;gap:8px}mat-icon{flex-shrink:0}.green{fill:#81c784;color:#81c784}.red{fill:#e57373;color:#e57373}label{color:#000}.disabled{opacity:.5}\n"] }]
2212
+ }], null, { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], condition: [{ type: i0.Input, args: [{ isSignal: true, alias: "condition", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] }); })();
2213
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordCriteriaComponent, { className: "PasswordCriteriaComponent", filePath: "lib/components/inputs/password/password-criteria/password-criteria.component.ts", lineNumber: 14 }); })();
2214
+
2215
+ class PasswordCriteriaViewerComponent {
2216
+ constructor() {
2217
+ this.passwordValidation = input.required(...(ngDevMode ? [{ debugName: "passwordValidation" }] : []));
2218
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2219
+ }
2220
+ static { this.ɵfac = function PasswordCriteriaViewerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PasswordCriteriaViewerComponent)(); }; }
2221
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordCriteriaViewerComponent, selectors: [["cauca-password-criteria-viewer"]], inputs: { passwordValidation: [1, "passwordValidation"], disabled: [1, "disabled"] }, decls: 5, vars: 10, consts: [["label", "passwordEdition.minimumCharacters", 3, "disabled", "condition"], ["label", "passwordEdition.minimumOneNumeric", 3, "disabled", "condition"], ["label", "passwordEdition.minimumOneSpecialCharacter", 3, "disabled", "condition"], ["label", "passwordEdition.needLowerAndUppercase", 3, "disabled", "condition"], ["label", "passwordEdition.equalPasswords", 3, "disabled", "condition"]], template: function PasswordCriteriaViewerComponent_Template(rf, ctx) { if (rf & 1) {
2222
+ i0.ɵɵelement(0, "cauca-password-criteria", 0)(1, "cauca-password-criteria", 1)(2, "cauca-password-criteria", 2)(3, "cauca-password-criteria", 3)(4, "cauca-password-criteria", 4);
2223
+ } if (rf & 2) {
2224
+ i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasMinimumCharacters);
2225
+ i0.ɵɵadvance();
2226
+ i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasMinimumNumeric);
2227
+ i0.ɵɵadvance();
2228
+ i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasSpecialCharacter);
2229
+ i0.ɵɵadvance();
2230
+ i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasLowerAndUppercase);
2231
+ i0.ɵɵadvance();
2232
+ i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasIdenticalPassword);
2233
+ } }, dependencies: [PasswordCriteriaComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{flex-grow:1}"], changeDetection: 0 }); }
2234
+ }
2235
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordCriteriaViewerComponent, [{
2236
+ type: Component,
2237
+ args: [{ selector: 'cauca-password-criteria-viewer', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [PasswordCriteriaComponent], template: "<cauca-password-criteria [disabled]=\"disabled()\" label=\"passwordEdition.minimumCharacters\" [condition]=\"passwordValidation().hasMinimumCharacters\"/>\r\n<cauca-password-criteria [disabled]=\"disabled()\" label=\"passwordEdition.minimumOneNumeric\" [condition]=\"passwordValidation().hasMinimumNumeric\"/>\r\n<cauca-password-criteria [disabled]=\"disabled()\" label=\"passwordEdition.minimumOneSpecialCharacter\" [condition]=\"passwordValidation().hasSpecialCharacter\"/>\r\n<cauca-password-criteria [disabled]=\"disabled()\" label=\"passwordEdition.needLowerAndUppercase\" [condition]=\"passwordValidation().hasLowerAndUppercase\"/>\r\n<cauca-password-criteria [disabled]=\"disabled()\" label=\"passwordEdition.equalPasswords\" [condition]=\"passwordValidation().hasIdenticalPassword\"/>", styles: [":host{display:flex;flex-direction:column}:host>*{flex-grow:1}\n"] }]
2238
+ }], null, { passwordValidation: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordValidation", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] }); })();
2239
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordCriteriaViewerComponent, { className: "PasswordCriteriaViewerComponent", filePath: "lib/components/inputs/password/password-criteria-viewer/password-criteria-viewer.component.ts", lineNumber: 14 }); })();
2240
+
2241
+ function PasswordInputComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2242
+ i0.ɵɵelementStart(0, "mat-label");
2243
+ i0.ɵɵtext(1);
2244
+ i0.ɵɵpipe(2, "translate");
2245
+ i0.ɵɵelementEnd();
2246
+ } if (rf & 2) {
2247
+ const ctx_r0 = i0.ɵɵnextContext();
2248
+ i0.ɵɵadvance();
2249
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.label()));
2250
+ } }
2251
+ function PasswordInputComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2252
+ i0.ɵɵelementStart(0, "mat-label");
2253
+ i0.ɵɵtext(1);
2254
+ i0.ɵɵelementEnd();
2255
+ } if (rf & 2) {
2256
+ const ctx_r0 = i0.ɵɵnextContext();
2257
+ i0.ɵɵadvance();
2258
+ i0.ɵɵtextInterpolate(ctx_r0.label());
2259
+ } }
2260
+ class PasswordInputComponent {
2261
+ constructor() {
2262
+ this.autocomplete = input('password', ...(ngDevMode ? [{ debugName: "autocomplete" }] : []));
2263
+ this.translateLabel = input(true, ...(ngDevMode ? [{ debugName: "translateLabel" }] : []));
2264
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
2265
+ this.translatePlaceholder = input(true, ...(ngDevMode ? [{ debugName: "translatePlaceholder" }] : []));
2266
+ this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
2267
+ this.required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : []));
2268
+ this.enterKeyDown = output();
2269
+ this.passwordControl = new FormControl('');
2270
+ this.disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2271
+ this.showPassword = signal(false, ...(ngDevMode ? [{ debugName: "showPassword" }] : []));
2272
+ this.inputType = computed(() => this.showPassword() ? 'text' : 'password', ...(ngDevMode ? [{ debugName: "inputType" }] : []));
2273
+ this.onChange = (value) => value;
2274
+ this.onTouched = () => { };
2275
+ this.passwordControl.valueChanges.subscribe(value => {
2276
+ this.onChange(value);
2277
+ });
2278
+ }
2279
+ writeValue(value) {
2280
+ this.passwordControl.setValue(value);
2281
+ }
2282
+ registerOnChange(fn) {
2283
+ this.onChange = fn;
2284
+ }
2285
+ registerOnTouched(fn) {
2286
+ this.onTouched = fn;
2287
+ }
2288
+ setDisabledState(isDisabled) {
2289
+ this.disabled.set(isDisabled);
2290
+ if (isDisabled) {
2291
+ this.passwordControl.disable();
2292
+ }
2293
+ else {
2294
+ this.passwordControl.enable();
2295
+ }
2296
+ }
2297
+ static { this.ɵfac = function PasswordInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PasswordInputComponent)(); }; }
2298
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordInputComponent, selectors: [["cauca-password-input"]], inputs: { autocomplete: [1, "autocomplete"], translateLabel: [1, "translateLabel"], label: [1, "label"], translatePlaceholder: [1, "translatePlaceholder"], placeholder: [1, "placeholder"], required: [1, "required"] }, outputs: { enterKeyDown: "enterKeyDown" }, features: [i0.ɵɵProvidersFeature([
2299
+ {
2300
+ provide: NG_VALUE_ACCESSOR,
2301
+ multi: true,
2302
+ useExisting: forwardRef(() => PasswordInputComponent),
2303
+ },
2304
+ ])], decls: 8, vars: 10, consts: [["password", ""], ["subscriptSizing", "dynamic"], ["matInput", "", 1, "password", 3, "keydown.enter", "autocomplete", "type", "formControl", "required", "placeholder"], ["matSuffix", "", 2, "cursor", "pointer", 3, "click", "ngClass"]], template: function PasswordInputComponent_Template(rf, ctx) { if (rf & 1) {
2305
+ i0.ɵɵelementStart(0, "mat-form-field", 1);
2306
+ i0.ɵɵconditionalCreate(1, PasswordInputComponent_Conditional_1_Template, 3, 3, "mat-label")(2, PasswordInputComponent_Conditional_2_Template, 2, 1, "mat-label");
2307
+ i0.ɵɵelementStart(3, "input", 2, 0);
2308
+ i0.ɵɵpipe(5, "translate");
2309
+ i0.ɵɵlistener("keydown.enter", function PasswordInputComponent_Template_input_keydown_enter_3_listener() { return ctx.enterKeyDown.emit(); });
2310
+ i0.ɵɵelementEnd();
2311
+ i0.ɵɵelementStart(6, "mat-icon", 3);
2312
+ i0.ɵɵlistener("click", function PasswordInputComponent_Template_mat_icon_click_6_listener() { return ctx.showPassword.set(!ctx.showPassword()); });
2313
+ i0.ɵɵtext(7);
2314
+ i0.ɵɵelementEnd()();
2315
+ } if (rf & 2) {
2316
+ const password_r2 = i0.ɵɵreference(4);
2317
+ i0.ɵɵadvance();
2318
+ i0.ɵɵconditional(ctx.translateLabel() ? 1 : 2);
2319
+ i0.ɵɵadvance(2);
2320
+ i0.ɵɵproperty("autocomplete", ctx.autocomplete())("type", ctx.inputType())("formControl", ctx.passwordControl)("required", ctx.required())("placeholder", ctx.translatePlaceholder() ? i0.ɵɵpipeBind1(5, 8, ctx.placeholder()) : ctx.placeholder());
2321
+ i0.ɵɵadvance(3);
2322
+ i0.ɵɵproperty("ngClass", ctx.disabled() ? "disabled" : "");
2323
+ i0.ɵɵadvance();
2324
+ i0.ɵɵtextInterpolate1(" ", password_r2.type === "password" ? "visibility_off" : "visibility", " ");
2325
+ } }, dependencies: [TranslateModule, NgClass, MatFormFieldModule, i1$4.MatFormField, i1$4.MatLabel, i1$4.MatSuffix, MatIconModule, i1$2.MatIcon, MatInputModule, i3$1.MatInput, ReactiveFormsModule, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.RequiredValidator, i1$6.FormControlDirective, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.disabled[_ngcontent-%COMP%]{opacity:.5}"], changeDetection: 0 }); }
2326
+ }
2327
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordInputComponent, [{
2328
+ type: Component,
2329
+ args: [{ selector: 'cauca-password-input', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, NgClass, MatFormFieldModule, MatIconModule, MatInputModule, ReactiveFormsModule], providers: [
2330
+ {
2331
+ provide: NG_VALUE_ACCESSOR,
2332
+ multi: true,
2333
+ useExisting: forwardRef(() => PasswordInputComponent),
2334
+ },
2335
+ ], template: "<mat-form-field subscriptSizing=\"dynamic\">\r\n @if(translateLabel()) {<mat-label>{{label() | translate}}</mat-label>}\r\n @else {<mat-label>{{label()}}</mat-label>}\r\n <input (keydown.enter)=\"enterKeyDown.emit()\" [autocomplete]=\"autocomplete()\" #password class=\"password\"\r\n [type]=\"inputType()\" [formControl]=\"passwordControl\" matInput [required]=\"required()\"\r\n [placeholder]=\"translatePlaceholder() ? (placeholder() | translate) : placeholder()\" />\r\n <mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" style=\"cursor: pointer\" matSuffix\r\n (click)=\"showPassword.set(!showPassword())\">\r\n {{ password.type === \"password\" ? \"visibility_off\" : \"visibility\" }}\r\n </mat-icon>\r\n</mat-form-field>", styles: [":host{width:100%}mat-form-field{width:100%}.disabled{opacity:.5}\n"] }]
2336
+ }], () => [], { autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], translateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], translatePlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "translatePlaceholder", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], enterKeyDown: [{ type: i0.Output, args: ["enterKeyDown"] }] }); })();
2337
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordInputComponent, { className: "PasswordInputComponent", filePath: "lib/components/inputs/password/password-input/password-input.component.ts", lineNumber: 24 }); })();
2338
+
2339
+ class PasswordValidation {
2340
+ constructor(hasMinimumCharacters = false, hasMinimumNumeric = false, hasLowerAndUppercase = false, hasSpecialCharacter = false, hasIdenticalPassword = false) {
2341
+ this.hasMinimumCharacters = hasMinimumCharacters;
2342
+ this.hasMinimumNumeric = hasMinimumNumeric;
2343
+ this.hasLowerAndUppercase = hasLowerAndUppercase;
2344
+ this.hasSpecialCharacter = hasSpecialCharacter;
2345
+ this.hasIdenticalPassword = hasIdenticalPassword;
2346
+ }
2347
+ isValid() {
2348
+ return this.hasMinimumCharacters && this.hasMinimumNumeric && this.hasLowerAndUppercase && this.hasSpecialCharacter && this.hasIdenticalPassword;
2349
+ }
2350
+ }
2351
+
2352
+ class PasswordValidator {
2353
+ static { this.passwordMinLength = 13; }
2354
+ static validate(formGroup) {
2355
+ const password = formGroup.controls['password'].value;
2356
+ const confirmedPassword = formGroup.controls['confirmation'].value;
2357
+ return new PasswordValidation(password.length >= this.passwordMinLength, this.hasNumeric(password), this.hasLowerCaseAndUpperCase(password), this.hasSpecialCharacter(password), password && password === confirmedPassword);
2358
+ }
2359
+ static hasLowerCaseAndUpperCase(password) {
2360
+ return /^(?=.*[a-z])(?=.*[A-Z])/.test(password);
2361
+ }
2362
+ static hasNumeric(password) {
2363
+ return /(?=.*\d)/.test(password);
2364
+ }
2365
+ static hasSpecialCharacter(password) {
2366
+ return new RegExp(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/).test(password);
2367
+ }
2368
+ }
2369
+
2370
+ const _c0$8 = ["*"];
2371
+ function PasswordSelectionComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
2372
+ i0.ɵɵelement(0, "cauca-password-criteria-viewer", 5);
2373
+ } if (rf & 2) {
2374
+ const ctx_r0 = i0.ɵɵnextContext();
2375
+ i0.ɵɵproperty("disabled", ctx_r0.disabled())("passwordValidation", ctx_r0.passwordValidation);
2376
+ } }
2377
+ function PasswordSelectionComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
2378
+ i0.ɵɵelement(0, "span");
2379
+ } }
2380
+ class PasswordSelectionComponent {
2381
+ constructor() {
2382
+ this.passwordValidation = new PasswordValidation();
2383
+ this.disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
2384
+ this.direction = input('row', ...(ngDevMode ? [{ debugName: "direction" }] : []));
2385
+ this.formWidth = input('50%', ...(ngDevMode ? [{ debugName: "formWidth" }] : []));
2386
+ this.showCriteriaOnlyWhenPasswordHasValue = input(true, ...(ngDevMode ? [{ debugName: "showCriteriaOnlyWhenPasswordHasValue" }] : []));
2387
+ this.alwaysShowCriteria = input(true, ...(ngDevMode ? [{ debugName: "alwaysShowCriteria" }] : []));
2388
+ this.showCriteria = signal(true, ...(ngDevMode ? [{ debugName: "showCriteria" }] : []));
2389
+ this.passwordLabel = input('passwordEdition.password', ...(ngDevMode ? [{ debugName: "passwordLabel" }] : []));
2390
+ this.passwordConfirmationLabel = input('passwordEdition.passwordConfirmation', ...(ngDevMode ? [{ debugName: "passwordConfirmationLabel" }] : []));
2391
+ this.hasValueChange = output();
2392
+ this.lastPasswordValidationSent = false;
2393
+ this.onChange = (value) => value;
2394
+ this.onTouched = () => { };
2395
+ const formBuilder = inject(UntypedFormBuilder);
2396
+ this.form = formBuilder.group({
2397
+ password: ['', Validators.required],
2398
+ confirmation: ['', Validators.required]
2399
+ }, { validators: (formGroup) => {
2400
+ this.passwordValidation = PasswordValidator.validate(formGroup);
2401
+ if (!this.passwordValidation.isValid()) {
2402
+ return ({ validation: this.passwordValidation });
2403
+ }
2404
+ return null;
2405
+ } });
2406
+ this.form.valueChanges.pipe(takeUntilDestroyed())
2407
+ .subscribe(() => {
2408
+ if (!this.alwaysShowCriteria()) {
2409
+ if (this.showCriteriaOnlyWhenPasswordHasValue()) {
2410
+ this.showCriteria.set(this.form.controls.password.value?.length > 0 || this.form.controls.confirmation.value?.length > 0);
2411
+ }
2412
+ }
2413
+ this.hasValueChange.emit(this.form.controls.password.value?.length > 0);
2414
+ });
2415
+ this.form.valueChanges.pipe(takeUntilDestroyed(), filter(_ => this.form.valid != this.lastPasswordValidationSent)).subscribe(form => {
2416
+ this.lastPasswordValidationSent = this.form.valid;
2417
+ if (this.form.valid) {
2418
+ this.onChange(form.password);
2419
+ }
2420
+ else {
2421
+ this.onChange('');
2422
+ }
2423
+ });
2424
+ }
2425
+ writeValue(value) {
2426
+ this.form.get('password').setValue(value);
2427
+ this.form.get('confirmation').setValue(value);
2428
+ }
2429
+ registerOnChange(fn) {
2430
+ this.onChange = fn;
2431
+ }
2432
+ registerOnTouched(fn) {
2433
+ this.onTouched = fn;
2434
+ }
2435
+ setDisabledState(isDisabled) {
2436
+ this.disabled.set(isDisabled);
2437
+ if (isDisabled) {
2438
+ this.form.get('password').disable();
2439
+ this.form.get('confirmation').disable();
2440
+ }
2441
+ else {
2442
+ this.form.get('password').enable();
2443
+ this.form.get('confirmation').enable();
2444
+ }
2445
+ }
2446
+ static { this.ɵfac = function PasswordSelectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PasswordSelectionComponent)(); }; }
2447
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordSelectionComponent, selectors: [["cauca-password-selection"]], hostVars: 4, hostBindings: function PasswordSelectionComponent_HostBindings(rf, ctx) { if (rf & 2) {
2448
+ i0.ɵɵstyleProp("flex-direction", ctx.direction())("width", ctx.formWidth());
2449
+ } }, inputs: { direction: [1, "direction"], formWidth: [1, "formWidth"], showCriteriaOnlyWhenPasswordHasValue: [1, "showCriteriaOnlyWhenPasswordHasValue"], alwaysShowCriteria: [1, "alwaysShowCriteria"], passwordLabel: [1, "passwordLabel"], passwordConfirmationLabel: [1, "passwordConfirmationLabel"] }, outputs: { hasValueChange: "hasValueChange" }, features: [i0.ɵɵProvidersFeature([
2450
+ {
2451
+ provide: NG_VALUE_ACCESSOR,
2452
+ multi: true,
2453
+ useExisting: forwardRef(() => PasswordSelectionComponent),
2454
+ },
2455
+ ])], ngContentSelectors: _c0$8, decls: 8, vars: 12, consts: [[3, "formGroup"], [1, "passwords"], ["formControlName", "password", 3, "autocomplete", "label", "translateLabel", "required"], ["formControlName", "confirmation", 3, "autocomplete", "label", "translateLabel", "required"], [1, "errors"], [3, "disabled", "passwordValidation"]], template: function PasswordSelectionComponent_Template(rf, ctx) { if (rf & 1) {
2456
+ i0.ɵɵprojectionDef();
2457
+ i0.ɵɵelementStart(0, "form", 0)(1, "div", 1);
2458
+ i0.ɵɵelement(2, "cauca-password-input", 2)(3, "cauca-password-input", 3);
2459
+ i0.ɵɵelementEnd();
2460
+ i0.ɵɵelementStart(4, "div", 4);
2461
+ i0.ɵɵprojection(5);
2462
+ i0.ɵɵelementEnd()();
2463
+ i0.ɵɵconditionalCreate(6, PasswordSelectionComponent_Conditional_6_Template, 1, 2, "cauca-password-criteria-viewer", 5)(7, PasswordSelectionComponent_Conditional_7_Template, 1, 0, "span");
2464
+ } if (rf & 2) {
2465
+ i0.ɵɵclassProp("full-width-form", ctx.direction() === "column");
2466
+ i0.ɵɵproperty("formGroup", ctx.form);
2467
+ i0.ɵɵadvance(2);
2468
+ i0.ɵɵproperty("autocomplete", "new-password")("label", ctx.passwordLabel())("translateLabel", true)("required", true);
2469
+ i0.ɵɵadvance();
2470
+ i0.ɵɵproperty("autocomplete", "new-password")("label", ctx.passwordConfirmationLabel())("translateLabel", true)("required", true);
2471
+ i0.ɵɵadvance(3);
2472
+ i0.ɵɵconditional(ctx.showCriteria() ? 6 : 7);
2473
+ } }, dependencies: [PasswordInputComponent, FormsModule, i1$6.ɵNgNoValidate, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.RequiredValidator, ReactiveFormsModule, i1$6.FormGroupDirective, i1$6.FormControlName, TranslateModule, PasswordCriteriaViewerComponent], styles: ["[_nghost-%COMP%]{display:flex;gap:20px}form[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.full-width-form[_ngcontent-%COMP%]{width:100%}.passwords[_ngcontent-%COMP%]{gap:16px;display:flex;flex-direction:column}.criteria[_ngcontent-%COMP%]{flex-grow:1}.disabled[_ngcontent-%COMP%]{opacity:.5}.errors[_ngcontent-%COMP%]{padding:0 16px}"], changeDetection: 0 }); }
2474
+ }
2475
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordSelectionComponent, [{
2476
+ type: Component,
2477
+ args: [{ selector: 'cauca-password-selection', standalone: true, imports: [PasswordInputComponent, FormsModule, ReactiveFormsModule, TranslateModule, PasswordCriteriaViewerComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2478
+ {
2479
+ provide: NG_VALUE_ACCESSOR,
2480
+ multi: true,
2481
+ useExisting: forwardRef(() => PasswordSelectionComponent),
2482
+ },
2483
+ ], host: {
2484
+ '[style.flex-direction]': 'direction()',
2485
+ '[style.width]': 'formWidth()',
2486
+ }, template: "<form [formGroup]=\"form\" [class.full-width-form]=\"direction() === 'column'\">\r\n <div class=\"passwords\">\r\n <cauca-password-input [autocomplete]=\"'new-password'\" [label]=\"passwordLabel()\" [translateLabel]=\"true\" [required]=\"true\" formControlName=\"password\" />\r\n <cauca-password-input [autocomplete]=\"'new-password'\" [label]=\"passwordConfirmationLabel()\" [translateLabel]=\"true\" [required]=\"true\" formControlName=\"confirmation\" />\r\n </div>\r\n <div class=\"errors\">\r\n <ng-content></ng-content>\r\n </div>\r\n</form>\r\n\r\n@if (showCriteria()) {\r\n <cauca-password-criteria-viewer [disabled]=\"disabled()\" [passwordValidation]=\"passwordValidation\" />\r\n} @else {\r\n <span></span>\r\n}", styles: [":host{display:flex;gap:20px}form{width:50%;display:flex;flex-direction:column}.full-width-form{width:100%}.passwords{gap:16px;display:flex;flex-direction:column}.criteria{flex-grow:1}.disabled{opacity:.5}.errors{padding:0 16px}\n"] }]
2487
+ }], () => [], { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], formWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "formWidth", required: false }] }], showCriteriaOnlyWhenPasswordHasValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCriteriaOnlyWhenPasswordHasValue", required: false }] }], alwaysShowCriteria: [{ type: i0.Input, args: [{ isSignal: true, alias: "alwaysShowCriteria", required: false }] }], passwordLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordLabel", required: false }] }], passwordConfirmationLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "passwordConfirmationLabel", required: false }] }], hasValueChange: [{ type: i0.Output, args: ["hasValueChange"] }] }); })();
2488
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordSelectionComponent, { className: "PasswordSelectionComponent", filePath: "lib/components/inputs/password/password-selection/password-selection.component.ts", lineNumber: 31 }); })();
2489
+
2490
+ class DateRangePickerComponent {
2491
+ constructor() {
2492
+ this.range = model({ from: null, to: null }, ...(ngDevMode ? [{ debugName: "range" }] : []));
2493
+ this.form = new FormGroup({
2494
+ from: new FormControl(null),
2495
+ to: new FormControl(null)
2496
+ });
2497
+ this.form.valueChanges
2498
+ .pipe(takeUntilDestroyed())
2499
+ .subscribe(value => this.range.set({ from: value.from, to: value.to }));
2500
+ }
2501
+ ngOnInit() {
2502
+ this.form.patchValue(this.range());
2503
+ }
2504
+ clear() {
2505
+ this.form.patchValue({ from: null, to: null });
2506
+ }
2507
+ static { this.ɵfac = function DateRangePickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateRangePickerComponent)(); }; }
2508
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateRangePickerComponent, selectors: [["cauca-date-range-picker"]], inputs: { range: [1, "range"] }, outputs: { range: "rangeChange" }, features: [i0.ɵɵProvidersFeature([provideNativeDateAdapter()])], decls: 13, vars: 8, consts: [["campaignOnePicker", ""], ["subscriptSizing", "dynamic", 1, "full-width-field"], ["matPrefix", "", "onkeypress", "clear()", 3, "click"], ["matDatepickerToggleIcon", ""], [3, "formGroup", "rangePicker"], ["matStartDate", "", "formControlName", "from", 3, "readOnly"], ["matEndDate", "", "formControlName", "to", 3, "readOnly"], ["matIconSuffix", "", 3, "for"]], template: function DateRangePickerComponent_Template(rf, ctx) { if (rf & 1) {
2509
+ i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-datepicker-toggle", 2);
2510
+ i0.ɵɵlistener("click", function DateRangePickerComponent_Template_mat_datepicker_toggle_click_1_listener() { return ctx.clear(); });
2511
+ i0.ɵɵelementStart(2, "mat-icon", 3);
2512
+ i0.ɵɵtext(3, "clear");
2513
+ i0.ɵɵelementEnd()();
2514
+ i0.ɵɵelementStart(4, "mat-label");
2515
+ i0.ɵɵtext(5);
2516
+ i0.ɵɵpipe(6, "translate");
2517
+ i0.ɵɵelementEnd();
2518
+ i0.ɵɵelementStart(7, "mat-date-range-input", 4);
2519
+ i0.ɵɵelement(8, "input", 5)(9, "input", 6);
2520
+ i0.ɵɵelementEnd();
2521
+ i0.ɵɵelement(10, "mat-datepicker-toggle", 7)(11, "mat-date-range-picker", null, 0);
2522
+ i0.ɵɵelementEnd();
2523
+ } if (rf & 2) {
2524
+ const campaignOnePicker_r1 = i0.ɵɵreference(12);
2525
+ i0.ɵɵadvance(5);
2526
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, "dateRangeSelectorLabel"));
2527
+ i0.ɵɵadvance(2);
2528
+ i0.ɵɵproperty("formGroup", ctx.form)("rangePicker", campaignOnePicker_r1);
2529
+ i0.ɵɵadvance();
2530
+ i0.ɵɵproperty("readOnly", true);
2531
+ i0.ɵɵadvance();
2532
+ i0.ɵɵproperty("readOnly", true);
2533
+ i0.ɵɵadvance();
2534
+ i0.ɵɵproperty("for", campaignOnePicker_r1);
2535
+ } }, dependencies: [MatFormFieldModule, i1$4.MatFormField, i1$4.MatLabel, i1$4.MatPrefix, i1$4.MatSuffix, MatDatepickerModule, i2.MatDatepickerToggle, i2.MatDatepickerToggleIcon, i2.MatDateRangeInput, i2.MatStartDate, i2.MatEndDate, i2.MatDateRangePicker, ReactiveFormsModule, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName, MatIcon, TranslateModule, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
2536
+ }
2537
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateRangePickerComponent, [{
2538
+ type: Component,
2539
+ args: [{ selector: 'cauca-date-range-picker', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatFormFieldModule, MatDatepickerModule, ReactiveFormsModule, MatIcon, TranslateModule], providers: [provideNativeDateAdapter()], template: "<mat-form-field class=\"full-width-field\" subscriptSizing=\"dynamic\">\r\n <mat-datepicker-toggle matPrefix (click)=\"clear()\" onkeypress=\"clear()\">\r\n <mat-icon matDatepickerToggleIcon>clear</mat-icon>\r\n </mat-datepicker-toggle>\r\n <mat-label>{{'dateRangeSelectorLabel'|translate}}</mat-label>\r\n <mat-date-range-input [formGroup]=\"form\" [rangePicker]=\"campaignOnePicker\">\r\n <input matStartDate formControlName=\"from\" [readOnly]=\"true\">\r\n <input matEndDate formControlName=\"to\" [readOnly]=\"true\">\r\n </mat-date-range-input>\r\n <mat-datepicker-toggle matIconSuffix [for]=\"campaignOnePicker\">\r\n </mat-datepicker-toggle>\r\n <mat-date-range-picker #campaignOnePicker></mat-date-range-picker>\r\n </mat-form-field>" }]
2540
+ }], () => [], { range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }, { type: i0.Output, args: ["rangeChange"] }] }); })();
2541
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateRangePickerComponent, { className: "DateRangePickerComponent", filePath: "lib/components/inputs/date-range-picker/date-range-picker.component.ts", lineNumber: 19 }); })();
2542
+
2543
+ const _c0$7 = ["auto"];
2544
+ const _c1$1 = ["chipInput"];
2545
+ const _c2$1 = a0 => ({ data: a0 });
2546
+ function DropdownChipAutocompleteComponent_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2547
+ i0.ɵɵelementStart(0, "mat-icon", 13);
2548
+ i0.ɵɵtext(1, "cancel");
2549
+ i0.ɵɵelementEnd();
2550
+ } }
2551
+ function DropdownChipAutocompleteComponent_For_4_Template(rf, ctx) { if (rf & 1) {
2552
+ const _r2 = i0.ɵɵgetCurrentView();
2553
+ i0.ɵɵelementStart(0, "mat-chip", 12);
2554
+ i0.ɵɵlistener("removed", function DropdownChipAutocompleteComponent_For_4_Template_mat_chip_removed_0_listener() { const key_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.removeSelectedItem(key_r3)); });
2555
+ i0.ɵɵtext(1);
2556
+ i0.ɵɵconditionalCreate(2, DropdownChipAutocompleteComponent_For_4_Conditional_2_Template, 2, 0, "mat-icon", 13);
2557
+ i0.ɵɵelementEnd();
2558
+ } if (rf & 2) {
2559
+ const key_r3 = ctx.$implicit;
2560
+ const ctx_r3 = i0.ɵɵnextContext();
2561
+ i0.ɵɵproperty("disabled", ctx_r3.disabled);
2562
+ i0.ɵɵadvance();
2563
+ i0.ɵɵtextInterpolate1(" ", ctx_r3.getValueDisplay(key_r3), " ");
2564
+ i0.ɵɵadvance();
2565
+ i0.ɵɵconditional(ctx_r3.allowRemove() ? 2 : -1);
2566
+ } }
2567
+ function DropdownChipAutocompleteComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
2568
+ const _r5 = i0.ɵɵgetCurrentView();
2569
+ i0.ɵɵelementStart(0, "mat-icon", 14);
2570
+ i0.ɵɵlistener("click", function DropdownChipAutocompleteComponent_Conditional_8_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onClearAll()); });
2571
+ i0.ɵɵtext(1, "clear");
2572
+ i0.ɵɵelementEnd();
2573
+ } }
2574
+ function DropdownChipAutocompleteComponent_For_14_Conditional_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
2575
+ i0.ɵɵelementContainer(0);
2576
+ } }
2577
+ function DropdownChipAutocompleteComponent_For_14_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2578
+ i0.ɵɵtemplate(0, DropdownChipAutocompleteComponent_For_14_Conditional_1_ng_container_0_Template, 1, 0, "ng-container", 15);
2579
+ } if (rf & 2) {
2580
+ const item_r6 = i0.ɵɵnextContext().$implicit;
2581
+ const ctx_r3 = i0.ɵɵnextContext();
2582
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.optionTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2$1, item_r6));
2583
+ } }
2584
+ function DropdownChipAutocompleteComponent_For_14_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2585
+ i0.ɵɵtext(0);
2586
+ } if (rf & 2) {
2587
+ const item_r6 = i0.ɵɵnextContext().$implicit;
2588
+ const ctx_r3 = i0.ɵɵnextContext();
2589
+ i0.ɵɵtextInterpolate1(" ", item_r6[ctx_r3.displayValue()], " ");
2590
+ } }
2591
+ function DropdownChipAutocompleteComponent_For_14_Template(rf, ctx) { if (rf & 1) {
2592
+ i0.ɵɵelementStart(0, "mat-option", 11);
2593
+ i0.ɵɵconditionalCreate(1, DropdownChipAutocompleteComponent_For_14_Conditional_1_Template, 1, 4, "ng-container")(2, DropdownChipAutocompleteComponent_For_14_Conditional_2_Template, 1, 1);
2594
+ i0.ɵɵelementEnd();
2595
+ } if (rf & 2) {
2596
+ const item_r6 = ctx.$implicit;
2597
+ const ctx_r3 = i0.ɵɵnextContext();
2598
+ i0.ɵɵproperty("value", item_r6[ctx_r3.keyValue()]);
2599
+ i0.ɵɵadvance();
2600
+ i0.ɵɵconditional(ctx_r3.optionTemplate ? 1 : 2);
2601
+ } }
2602
+ class DropdownChipAutocompleteComponent {
2603
+ static { this.nextId = 0; }
2604
+ get searchValue() {
2605
+ return this._searchValue;
2606
+ }
2607
+ set searchValue(newValue) {
2608
+ if (this._searchValue !== newValue && (typeof newValue === 'string') || newValue === null) {
2609
+ this._searchValue = newValue;
2610
+ this.stateChanges.next();
2611
+ }
2612
+ }
2613
+ get shouldLabelFloat() {
2614
+ return this.focused || !this.empty || !!this._searchValue;
2615
+ }
2616
+ get value() {
2617
+ return this.selectedValues;
2618
+ }
2619
+ set value(values) {
2620
+ this.selectedValues = values;
2621
+ this.onChange(this.selectedValues);
2622
+ this.stateChanges.next();
2623
+ }
2624
+ get required() {
2625
+ return this._required;
2626
+ }
2627
+ set required(req) {
2628
+ this._required = coerceBooleanProperty(req);
2629
+ this.stateChanges.next();
2630
+ }
2631
+ get disabled() {
2632
+ return this._disabled;
2633
+ }
2634
+ set disabled(value) {
2635
+ this._disabled = coerceBooleanProperty(value);
2636
+ this.stateChanges.next();
2637
+ }
2638
+ get empty() {
2639
+ return !this.selectedValues?.length;
2640
+ }
2641
+ get placeholder() {
2642
+ return this._placeholder;
2643
+ }
2644
+ set placeholder(plh) {
2645
+ this._placeholder = plh;
2646
+ this.stateChanges.next();
2647
+ }
2648
+ constructor() {
2649
+ this.id = `cauca-dropdown-chip-autocomplete-${DropdownChipAutocompleteComponent.nextId++}`;
2650
+ this.clearAll = output();
2651
+ this.listAutoComplete = input([], ...(ngDevMode ? [{ debugName: "listAutoComplete" }] : []));
2652
+ this.keyValue = input('id', ...(ngDevMode ? [{ debugName: "keyValue" }] : []));
2653
+ this.displayValue = input('name', ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
2654
+ this.allowRemove = input(true, ...(ngDevMode ? [{ debugName: "allowRemove" }] : []));
2655
+ this.ariaDescribedBy = input(...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : []));
2656
+ this.canRemoveAll = input(true, ...(ngDevMode ? [{ debugName: "canRemoveAll" }] : []));
2657
+ this.hasOptionTemplate = input(false, ...(ngDevMode ? [{ debugName: "hasOptionTemplate" }] : []));
2658
+ this.stateChanges = new Subject();
2659
+ this.focused = false;
2660
+ this.touched = false;
2661
+ this.errorState = false;
2662
+ this.controlType = 'dropdown-chip-autocomplete';
2663
+ this.separatorKeysCodes = ',';
2664
+ this.ngControl = inject(NgControl, { optional: true, self: true });
2665
+ this._required = false;
2666
+ this._disabled = false;
2667
+ this._searchValue = null;
2668
+ this.selectedValues = [];
2669
+ this.parentForm = inject(NgForm, { optional: true });
2670
+ this.parentFormGroup = inject(FormGroupDirective, { optional: true });
2671
+ this.elementRef = inject(ElementRef);
2672
+ this.onChange = (_) => {
2673
+ // Do nothing for now
2674
+ };
2675
+ this.onTouched = () => {
2676
+ // Do nothing for now
2677
+ };
2678
+ this.elementRef.nativeElement.addEventListener('focusin', this.onFocusIn.bind(this));
2679
+ this.elementRef.nativeElement.addEventListener('focusout', this.onFocusOut.bind(this));
2680
+ if (this.ngControl != null) {
2681
+ this.ngControl.valueAccessor = this;
2682
+ }
2683
+ this.filteredListAutoComplete = this.stateChanges.pipe(startWith(null), map(() => this.filterSelectedItem()));
2684
+ }
2685
+ ngDoCheck() {
2686
+ if (this.ngControl) {
2687
+ this.updateErrorState();
2688
+ }
2689
+ }
2690
+ ngOnDestroy() {
2691
+ this.stateChanges.complete();
2692
+ }
2693
+ onFocusIn() {
2694
+ if (!this.focused) {
2695
+ this.focused = true;
2696
+ this.stateChanges.next();
2697
+ }
2698
+ }
2699
+ markAsClean() {
2700
+ this.touched = false;
2701
+ this.focused = false;
2702
+ this.stateChanges.next();
2703
+ }
2704
+ onFocusOut(event) {
2705
+ if (!this.elementRef.nativeElement.contains(event.relatedTarget)) {
2706
+ this.touched = true;
2707
+ this.focused = false;
2708
+ this.onTouched();
2709
+ this.stateChanges.next();
2710
+ }
2711
+ }
2712
+ setDisabledState(isDisabled) {
2713
+ this.disabled = isDisabled;
2714
+ }
2715
+ setDescribedByIds(ids) {
2716
+ const controlElement = this.elementRef.nativeElement.querySelector('.dropdown-chip-autocomplete-container');
2717
+ controlElement.setAttribute('aria-describedby', ids.join(' '));
2718
+ }
2719
+ onContainerClick(event) {
2720
+ if (event.target.tagName.toLowerCase() != 'input') {
2721
+ this.elementRef.nativeElement.querySelector('input').focus();
2722
+ }
2723
+ this.searchValue = null;
2724
+ }
2725
+ writeValue(value) {
2726
+ this.value = value;
2727
+ }
2728
+ registerOnChange(fn) {
2729
+ this.onChange = fn;
2730
+ }
2731
+ registerOnTouched(fn) {
2732
+ this.onTouched = fn;
2733
+ }
2734
+ selectItemOnAutocomplete(e) {
2735
+ this.value = [].concat(this.selectedValues, e.option.value);
2736
+ this.matChipInput.nativeElement.value = '';
2737
+ }
2738
+ removeSelectedItem(key) {
2739
+ const index = this.selectedValues.indexOf(key);
2740
+ if (index >= 0) {
2741
+ this.selectedValues.splice(index, 1);
2742
+ this.value = this.selectedValues;
2743
+ }
2744
+ }
2745
+ getValueDisplay(key) {
2746
+ const selectedItem = this.listAutoComplete().find((item) => `${item[this.keyValue()]}` === `${key}`);
2747
+ return selectedItem ? selectedItem[this.displayValue()] : '';
2748
+ }
2749
+ onClearAll() {
2750
+ this.matAutocompletePanel.closePanel();
2751
+ this.value = [];
2752
+ this.clearAll.emit();
2753
+ }
2754
+ updateErrorState() {
2755
+ const parent = this.parentFormGroup || this.parentForm;
2756
+ const oldState = this.errorState;
2757
+ const newState = (this.ngControl?.invalid) && (this.touched || parent.submitted);
2758
+ if (oldState !== newState) {
2759
+ this.errorState = newState;
2760
+ }
2761
+ }
2762
+ filterSelectedItem() {
2763
+ const searchValue = toLowerCaseAndWithoutDiacritics(this.searchValue);
2764
+ const filtered = this.listAutoComplete().filter((item) => !this.selectedValues.includes(item[this.keyValue()])
2765
+ && toLowerCaseAndWithoutDiacritics(item[this.displayValue()]).includes(searchValue));
2766
+ return filtered;
2767
+ }
2768
+ static { this.ɵfac = function DropdownChipAutocompleteComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DropdownChipAutocompleteComponent)(); }; }
2769
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DropdownChipAutocompleteComponent, selectors: [["cauca-dropdown-chip-autocomplete"]], contentQueries: function DropdownChipAutocompleteComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
2770
+ i0.ɵɵcontentQuery(dirIndex, TemplateRef, 5);
2771
+ } if (rf & 2) {
2772
+ let _t;
2773
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionTemplate = _t.first);
2774
+ } }, viewQuery: function DropdownChipAutocompleteComponent_Query(rf, ctx) { if (rf & 1) {
2775
+ i0.ɵɵviewQuery(_c0$7, 5)(_c1$1, 5)(MatAutocompleteTrigger, 5);
2776
+ } if (rf & 2) {
2777
+ let _t;
2778
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.matAutocomplete = _t.first);
2779
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.matChipInput = _t.first);
2780
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.matAutocompletePanel = _t.first);
2781
+ } }, hostVars: 3, hostBindings: function DropdownChipAutocompleteComponent_HostBindings(rf, ctx) { if (rf & 2) {
2782
+ i0.ɵɵdomProperty("id", ctx.id);
2783
+ i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
2784
+ } }, inputs: { listAutoComplete: [1, "listAutoComplete"], keyValue: [1, "keyValue"], displayValue: [1, "displayValue"], allowRemove: [1, "allowRemove"], ariaDescribedBy: [1, "ariaDescribedBy"], canRemoveAll: [1, "canRemoveAll"], hasOptionTemplate: [1, "hasOptionTemplate"], value: "value", required: "required", disabled: "disabled", placeholder: "placeholder" }, outputs: { clearAll: "clearAll" }, features: [i0.ɵɵProvidersFeature([{
2785
+ provide: MatFormFieldControl,
2786
+ useExisting: DropdownChipAutocompleteComponent,
2787
+ }])], decls: 16, vars: 10, consts: [["chipGrid", ""], ["chipInput", ""], ["auto", "matAutocomplete"], ["role", "group", 1, "dropdown-chip-autocomplete-container"], [3, "disabled"], ["highlighted", "", "color", "primary", 3, "disabled"], [1, "input-wrapper"], [3, "ngModelChange", "ngModel", "matAutocomplete", "matChipInputFor", "matChipInputSeparatorKeyCodes"], ["matPrefix", "", 1, "clearAll"], ["matSuffix", ""], ["panelWidth", "500px", 3, "optionSelected"], [1, "full-width-option", 3, "value"], ["highlighted", "", "color", "primary", 3, "removed", "disabled"], ["matChipRemove", ""], ["matPrefix", "", 1, "clearAll", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DropdownChipAutocompleteComponent_Template(rf, ctx) { if (rf & 1) {
2788
+ const _r1 = i0.ɵɵgetCurrentView();
2789
+ i0.ɵɵelementStart(0, "div", 3)(1, "mat-chip-grid", 4, 0);
2790
+ i0.ɵɵrepeaterCreate(3, DropdownChipAutocompleteComponent_For_4_Template, 3, 3, "mat-chip", 5, i0.ɵɵrepeaterTrackByIdentity);
2791
+ i0.ɵɵelementStart(5, "div", 6)(6, "input", 7, 1);
2792
+ i0.ɵɵtwoWayListener("ngModelChange", function DropdownChipAutocompleteComponent_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.searchValue, $event) || (ctx.searchValue = $event); return i0.ɵɵresetView($event); });
2793
+ i0.ɵɵelementEnd();
2794
+ i0.ɵɵconditionalCreate(8, DropdownChipAutocompleteComponent_Conditional_8_Template, 2, 0, "mat-icon", 8);
2795
+ i0.ɵɵelementStart(9, "mat-icon", 9);
2796
+ i0.ɵɵtext(10, "arrow_drop_down");
2797
+ i0.ɵɵelementEnd()()();
2798
+ i0.ɵɵelementStart(11, "mat-autocomplete", 10, 2);
2799
+ i0.ɵɵlistener("optionSelected", function DropdownChipAutocompleteComponent_Template_mat_autocomplete_optionSelected_11_listener($event) { return ctx.selectItemOnAutocomplete($event); });
2800
+ i0.ɵɵrepeaterCreate(13, DropdownChipAutocompleteComponent_For_14_Template, 3, 2, "mat-option", 11, i0.ɵɵrepeaterTrackByIdentity);
2801
+ i0.ɵɵpipe(15, "async");
2802
+ i0.ɵɵelementEnd()();
2803
+ } if (rf & 2) {
2804
+ const chipGrid_r7 = i0.ɵɵreference(2);
2805
+ const auto_r8 = i0.ɵɵreference(12);
2806
+ i0.ɵɵadvance();
2807
+ i0.ɵɵproperty("disabled", ctx.disabled);
2808
+ i0.ɵɵadvance(2);
2809
+ i0.ɵɵrepeater(ctx.value);
2810
+ i0.ɵɵadvance(3);
2811
+ i0.ɵɵtwoWayProperty("ngModel", ctx.searchValue);
2812
+ i0.ɵɵproperty("matAutocomplete", auto_r8)("matChipInputFor", chipGrid_r7)("matChipInputSeparatorKeyCodes", ctx.separatorKeysCodes);
2813
+ i0.ɵɵadvance(2);
2814
+ i0.ɵɵconditional(ctx.value.length > 0 && ctx.canRemoveAll() ? 8 : -1);
2815
+ i0.ɵɵadvance(3);
2816
+ i0.ɵɵclassProp("full-width-field", ctx.optionTemplate);
2817
+ i0.ɵɵadvance(2);
2818
+ i0.ɵɵrepeater(i0.ɵɵpipeBind1(15, 8, ctx.filteredListAutoComplete));
2819
+ } }, dependencies: [MatChipGrid,
2820
+ MatChip,
2821
+ MatChipRemove,
2822
+ FormsModule, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, MatAutocompleteModule, i2$1.MatAutocomplete, i2$1.MatOption, i2$1.MatAutocompleteTrigger, MatChipInput,
2823
+ MatIcon,
2824
+ CommonModule, i3.NgTemplateOutlet, i3.AsyncPipe], styles: ["span[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s}.floating[_nghost-%COMP%] span[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%]{cursor:pointer}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{align-self:center;color:var(--mat-select-enabled-arrow-color)}[_nghost-%COMP%] input.mat-mdc-chip-input[_ngcontent-%COMP%]{flex:1}.input-wrapper[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:row;gap:8px;align-items:center;flex-wrap:nowrap}.input-wrapper[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{flex:1;min-width:150px}.input-wrapper[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{flex-shrink:0}"], changeDetection: 0 }); }
2825
+ }
2826
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownChipAutocompleteComponent, [{
2827
+ type: Component,
2828
+ args: [{ selector: 'cauca-dropdown-chip-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
2829
+ provide: MatFormFieldControl,
2830
+ useExisting: DropdownChipAutocompleteComponent,
2831
+ }], imports: [
2832
+ MatChipGrid,
2833
+ MatChip,
2834
+ MatChipRemove,
2835
+ FormsModule,
2836
+ MatAutocompleteModule,
2837
+ MatChipInput,
2838
+ MatIcon,
2839
+ CommonModule
2840
+ ], host: {
2841
+ '[id]': 'id',
2842
+ '[class.floating]': 'shouldLabelFloat',
2843
+ }, template: "<div role=\"group\" class=\"dropdown-chip-autocomplete-container\">\n\n <mat-chip-grid #chipGrid [disabled]=\"disabled\">\n\n @for (key of value; track key) {\n <mat-chip highlighted [disabled]=\"disabled\" (removed)=\"removeSelectedItem(key)\" color=\"primary\">\n {{getValueDisplay(key)}}\n @if (allowRemove()) {\n <mat-icon matChipRemove>cancel</mat-icon>\n }\n </mat-chip>\n }\n\n <div class=\"input-wrapper\">\n <input\n #chipInput\n [(ngModel)]=\"searchValue\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipGrid\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\">\n @if (value.length > 0 && canRemoveAll()) {\n <mat-icon matPrefix class=\"clearAll\" (click)=\"onClearAll();\">clear</mat-icon>\n }\n <mat-icon matSuffix>arrow_drop_down</mat-icon>\n </div>\n </mat-chip-grid>\n\n <mat-autocomplete #auto=\"matAutocomplete\" panelWidth=\"500px\" [class.full-width-field]=\"optionTemplate\" (optionSelected)=\"selectItemOnAutocomplete($event)\">\n @for (item of filteredListAutoComplete | async; track item) {\n <mat-option [value]=\"item[keyValue()]\" class=\"full-width-option\">\n @if (optionTemplate) {\n <ng-container *ngTemplateOutlet=\"optionTemplate; context: {data: item}\" />\n } @else {\n {{item[displayValue()]}}\n }\n </mat-option>\n }\n </mat-autocomplete>\n</div>\n\n", styles: ["span{opacity:0;transition:opacity .2s}:host.floating span{opacity:1}:host{cursor:pointer}:host mat-icon{align-self:center;color:var(--mat-select-enabled-arrow-color)}:host input.mat-mdc-chip-input{flex:1}.input-wrapper{flex:1;display:flex;flex-direction:row;gap:8px;align-items:center;flex-wrap:nowrap}.input-wrapper>input{flex:1;min-width:150px}.input-wrapper>mat-icon{flex-shrink:0}\n"] }]
2844
+ }], () => [], { matAutocomplete: [{
2845
+ type: ViewChild,
2846
+ args: ['auto']
2847
+ }], matChipInput: [{
2848
+ type: ViewChild,
2849
+ args: ['chipInput']
2850
+ }], matAutocompletePanel: [{
2851
+ type: ViewChild,
2852
+ args: [MatAutocompleteTrigger]
2853
+ }], clearAll: [{ type: i0.Output, args: ["clearAll"] }], listAutoComplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "listAutoComplete", required: false }] }], keyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyValue", required: false }] }], displayValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayValue", required: false }] }], allowRemove: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowRemove", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], canRemoveAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "canRemoveAll", required: false }] }], hasOptionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasOptionTemplate", required: false }] }], optionTemplate: [{
2854
+ type: ContentChild,
2855
+ args: [TemplateRef]
2856
+ }], ngControl: [{
2857
+ type: Optional
2858
+ }, {
2859
+ type: Self
2860
+ }], parentForm: [{
2861
+ type: Optional
2862
+ }], parentFormGroup: [{
2863
+ type: Optional
2864
+ }], value: [{
2865
+ type: Input
2866
+ }], required: [{
2867
+ type: Input
2868
+ }], disabled: [{
2869
+ type: Input
2870
+ }], placeholder: [{
2871
+ type: Input
2872
+ }] }); })();
2873
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownChipAutocompleteComponent, { className: "DropdownChipAutocompleteComponent", filePath: "lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.ts", lineNumber: 51 }); })();
2874
+
2875
+ class ColorPickerComponent {
2876
+ static { this.nextId = 0; }
2877
+ get shouldLabelFloat() {
2878
+ return this.focused || !this.empty;
2879
+ }
2880
+ get empty() {
2881
+ return !this._value?.length;
2882
+ }
2883
+ get value() {
2884
+ return this._value;
2885
+ }
2886
+ set value(newValue) {
2887
+ this._value = newValue;
2888
+ this.onChange(this._value);
2889
+ this.stateChanges.next();
2890
+ }
2891
+ constructor() {
2892
+ this.stateChanges = new Subject();
2893
+ this.id = `example-tel-input-${ColorPickerComponent.nextId++}`;
2894
+ this.focused = false;
2895
+ this.touched = false;
2896
+ this.valueChanged = output();
2897
+ this.ngControl = inject(NgControl, { optional: true, self: true });
2898
+ this.elementRef = inject(ElementRef);
2899
+ this.onChange = (_) => {
2900
+ // Do nothing for now
2901
+ };
2902
+ this.onTouched = () => {
2903
+ // Do nothing for now
2904
+ };
2905
+ if (this.ngControl != null) {
2906
+ this.ngControl.valueAccessor = this;
2907
+ }
2908
+ this.elementRef.nativeElement.addEventListener('focusin', this.onFocusIn.bind(this));
2909
+ this.elementRef.nativeElement.addEventListener('focusout', this.onFocusOut.bind(this));
2910
+ }
2911
+ onFocusIn(_) {
2912
+ if (!this.focused) {
2913
+ this.focused = true;
2914
+ this.stateChanges.next();
2915
+ }
2916
+ }
2917
+ onFocusOut(event) {
2918
+ if (!this.elementRef.nativeElement.contains(event.relatedTarget)) {
2919
+ this.touched = true;
2920
+ this.focused = false;
2921
+ this.onTouched();
2922
+ this.stateChanges.next();
2923
+ }
2924
+ }
2925
+ ngOnDestroy() {
2926
+ this.stateChanges.complete();
2927
+ }
2928
+ setDescribedByIds(_) {
2929
+ // Do nothing for now
2930
+ }
2931
+ onContainerClick(_) {
2932
+ // Do nothing for now
2933
+ }
2934
+ writeValue(value) {
2935
+ this.value = value;
2936
+ }
2937
+ registerOnChange(fn) {
2938
+ this.onChange = fn;
2939
+ }
2940
+ registerOnTouched(fn) {
2941
+ this.onTouched = fn;
2942
+ }
2943
+ onChangeColor(color) {
2944
+ this.value = color;
2945
+ }
2946
+ static { this.ɵfac = function ColorPickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ColorPickerComponent)(); }; }
2947
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ColorPickerComponent, selectors: [["cauca-color-picker"]], hostVars: 3, hostBindings: function ColorPickerComponent_HostBindings(rf, ctx) { if (rf & 2) {
2948
+ i0.ɵɵdomProperty("id", ctx.id);
2949
+ i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
2950
+ } }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{
2951
+ provide: MatFormFieldControl,
2952
+ useExisting: ColorPickerComponent,
2953
+ }])], decls: 1, vars: 2, consts: [["matInput", "", "type", "text", "id", "color-id", 1, "form-control", 3, "colorPickerChange", "colorPicker", "value"]], template: function ColorPickerComponent_Template(rf, ctx) { if (rf & 1) {
2954
+ i0.ɵɵelementStart(0, "input", 0);
2955
+ i0.ɵɵtwoWayListener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
2956
+ i0.ɵɵlistener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { return ctx.onChangeColor($event); });
2957
+ i0.ɵɵelementEnd();
2958
+ } if (rf & 2) {
2959
+ i0.ɵɵtwoWayProperty("colorPicker", ctx.value);
2960
+ i0.ɵɵproperty("value", ctx.value);
2961
+ } }, dependencies: [MatInputModule, i3$1.MatInput, ColorPickerDirective], encapsulation: 2, changeDetection: 0 }); }
2962
+ }
2963
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ColorPickerComponent, [{
2964
+ type: Component,
2965
+ args: [{ selector: 'cauca-color-picker', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatInputModule, ColorPickerDirective], providers: [{
2966
+ provide: MatFormFieldControl,
2967
+ useExisting: ColorPickerComponent,
2968
+ }], host: {
2969
+ '[id]': 'id',
2970
+ '[class.floating]': 'shouldLabelFloat',
2971
+ }, template: "<input\r\n matInput\r\n [(colorPicker)]=\"value\"\r\n [value]=\"value\"\r\n (colorPickerChange)=\"onChangeColor($event)\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"color-id\"\r\n/>" }]
2972
+ }], () => [], { valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
2973
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ColorPickerComponent, { className: "ColorPickerComponent", filePath: "lib/components/inputs/color-picker/color-picker.component.ts", lineNumber: 23 }); })();
2974
+
2975
+ const _c0$6 = ["singleSelect"];
2976
+ const _c1 = ["*"];
2977
+ const _c2 = () => [];
2978
+ function SelectWithSearchComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
2979
+ i0.ɵɵelementStart(0, "mat-option");
2980
+ i0.ɵɵelement(1, "ngx-mat-select-search", 3);
2981
+ i0.ɵɵpipe(2, "translate");
2982
+ i0.ɵɵpipe(3, "translate");
2983
+ i0.ɵɵelementEnd();
2984
+ } if (rf & 2) {
2985
+ const ctx_r0 = i0.ɵɵnextContext();
2986
+ i0.ɵɵadvance();
2987
+ i0.ɵɵproperty("formControl", ctx_r0.optionFilterControl)("placeholderLabel", i0.ɵɵpipeBind1(2, 3, "search"))("noEntriesFoundLabel", i0.ɵɵpipeBind1(3, 5, "noResult"));
2988
+ } }
2989
+ function SelectWithSearchComponent_For_8_Template(rf, ctx) { if (rf & 1) {
2990
+ i0.ɵɵelementStart(0, "mat-option", 2);
2991
+ i0.ɵɵtext(1);
2992
+ i0.ɵɵelementEnd();
2993
+ } if (rf & 2) {
2994
+ const option_r2 = ctx.$implicit;
2995
+ i0.ɵɵproperty("value", option_r2.id);
2996
+ i0.ɵɵadvance();
2997
+ i0.ɵɵtextInterpolate1(" ", option_r2.name, " ");
2998
+ } }
2999
+ class SelectWithSearchComponent {
3000
+ constructor() {
3001
+ this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
3002
+ this.selectFirstOptionByDefault = input(false, ...(ngDevMode ? [{ debugName: "selectFirstOptionByDefault" }] : []));
3003
+ this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
3004
+ this.allowMultiSelection = input(false, ...(ngDevMode ? [{ debugName: "allowMultiSelection" }] : []));
3005
+ this.showClearOption = input(false, ...(ngDevMode ? [{ debugName: "showClearOption" }] : []));
3006
+ this.enableSearch = input(true, ...(ngDevMode ? [{ debugName: "enableSearch" }] : []));
3007
+ this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
3008
+ this.value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
3009
+ this.valueChanged = output();
3010
+ this.optionFilterControl = new FormControl('');
3011
+ this.hasOptions = computed(() => this.options().length >= 1, ...(ngDevMode ? [{ debugName: "hasOptions" }] : []));
3012
+ this.disableControl = computed(() => this.isDisabled() || !this.hasOptions(), ...(ngDevMode ? [{ debugName: "disableControl" }] : []));
3013
+ this.filteredOptions = resource({ ...(ngDevMode ? { debugName: "filteredOptions" } : {}), params: () => ({ filter: this.filterText(), options: this.options(), showClear: this.showClearOption() }),
3014
+ loader: ({ params }) => Promise.resolve(this.computeFilteredOptions(params)) });
3015
+ this.filterText = toSignal(this.optionFilterControl.valueChanges, { initialValue: '' });
3016
+ effect(() => {
3017
+ const opts = this.options();
3018
+ if (!opts)
3019
+ return;
3020
+ const currentValue = this.value();
3021
+ if (currentValue) {
3022
+ const found = opts.find((c) => c.id === currentValue);
3023
+ if (!found) {
3024
+ this.selectFirstOption(opts);
3025
+ }
3026
+ }
3027
+ else if (opts.length > 0 && this.selectFirstOptionByDefault()) {
3028
+ this.selectFirstOption(opts);
3029
+ }
3030
+ });
3031
+ }
3032
+ onSelectionChange(newValue) {
3033
+ this.value.set(newValue);
3034
+ this.valueChanged.emit(newValue);
3035
+ }
3036
+ selectFirstOption(opts) {
3037
+ const newValue = opts[0]?.id ?? null;
3038
+ this.value.set(newValue);
3039
+ this.valueChanged.emit(newValue);
3040
+ }
3041
+ computeFilteredOptions(params) {
3042
+ const { filter, options, showClear } = params;
3043
+ if (!options || !Array.isArray(options)) {
3044
+ return [];
3045
+ }
3046
+ let filtered;
3047
+ if (!filter) {
3048
+ filtered = options.slice();
3049
+ }
3050
+ else {
3051
+ const filterLower = toLowerCaseAndWithoutDiacritics(filter);
3052
+ filtered = options.filter(option => toLowerCaseAndWithoutDiacritics(option?.name ?? '').indexOf(filterLower) > -1);
3053
+ }
3054
+ if (showClear) {
3055
+ const clearOption = { id: null, name: '--' };
3056
+ filtered = [clearOption, ...filtered];
3057
+ }
3058
+ return filtered;
3059
+ }
3060
+ static { this.ɵfac = function SelectWithSearchComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectWithSearchComponent)(); }; }
3061
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectWithSearchComponent, selectors: [["cauca-select-with-search"]], viewQuery: function SelectWithSearchComponent_Query(rf, ctx) { if (rf & 1) {
3062
+ i0.ɵɵviewQuery(_c0$6, 7);
3063
+ } if (rf & 2) {
3064
+ let _t;
3065
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleSelect = _t.first);
3066
+ } }, inputs: { label: [1, "label"], selectFirstOptionByDefault: [1, "selectFirstOptionByDefault"], isDisabled: [1, "isDisabled"], allowMultiSelection: [1, "allowMultiSelection"], showClearOption: [1, "showClearOption"], enableSearch: [1, "enableSearch"], options: [1, "options"], value: [1, "value"] }, outputs: { value: "valueChange", valueChanged: "valueChanged" }, ngContentSelectors: _c1, decls: 9, vars: 10, consts: [["subscriptSizing", "dynamic", 1, "full-width-field", "header", "dense"], [3, "valueChange", "value", "disabled", "multiple"], [3, "value"], [3, "formControl", "placeholderLabel", "noEntriesFoundLabel"]], template: function SelectWithSearchComponent_Template(rf, ctx) { if (rf & 1) {
3067
+ i0.ɵɵprojectionDef();
3068
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
3069
+ i0.ɵɵprojection(1);
3070
+ i0.ɵɵelementStart(2, "mat-label");
3071
+ i0.ɵɵtext(3);
3072
+ i0.ɵɵpipe(4, "translate");
3073
+ i0.ɵɵelementEnd();
3074
+ i0.ɵɵelementStart(5, "mat-select", 1);
3075
+ i0.ɵɵlistener("valueChange", function SelectWithSearchComponent_Template_mat_select_valueChange_5_listener($event) { return ctx.onSelectionChange($event); });
3076
+ i0.ɵɵconditionalCreate(6, SelectWithSearchComponent_Conditional_6_Template, 4, 7, "mat-option");
3077
+ i0.ɵɵrepeaterCreate(7, SelectWithSearchComponent_For_8_Template, 2, 2, "mat-option", 2, i0.ɵɵrepeaterTrackByIdentity);
3078
+ i0.ɵɵelementEnd()();
3079
+ } if (rf & 2) {
3080
+ i0.ɵɵadvance(3);
3081
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx.label()));
3082
+ i0.ɵɵadvance(2);
3083
+ i0.ɵɵclassProp("readonly-field", ctx.disableControl());
3084
+ i0.ɵɵproperty("value", ctx.value())("disabled", ctx.disableControl())("multiple", ctx.allowMultiSelection());
3085
+ i0.ɵɵadvance();
3086
+ i0.ɵɵconditional(ctx.enableSearch() ? 6 : -1);
3087
+ i0.ɵɵadvance();
3088
+ i0.ɵɵrepeater(ctx.filteredOptions.value() || i0.ɵɵpureFunction0(9, _c2));
3089
+ } }, dependencies: [MatSelectModule, i1$4.MatFormField, i1$4.MatLabel, i2$2.MatSelect, i2$1.MatOption, TranslateModule, MatFormFieldModule, ReactiveFormsModule, i1$6.NgControlStatus, i1$6.FormControlDirective, FormsModule, NgxMatSelectSearchModule, i5.MatSelectSearchComponent, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
3090
+ }
3091
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectWithSearchComponent, [{
3092
+ type: Component,
3093
+ args: [{ selector: 'cauca-select-with-search', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatSelectModule, TranslateModule, MatFormFieldModule, ReactiveFormsModule, FormsModule, NgxMatSelectSearchModule], template: "<mat-form-field class=\"full-width-field header dense\" subscriptSizing=\"dynamic\">\n <ng-content></ng-content>\n <mat-label>{{ label() | translate }}</mat-label>\n <mat-select [value]=\"value()\" (valueChange)=\"onSelectionChange($event)\" [disabled]=\"disableControl()\" [class.readonly-field]=\"disableControl()\" [multiple]=\"allowMultiSelection()\" >\n @if (enableSearch()) {\n <mat-option>\n <ngx-mat-select-search [formControl]=\"optionFilterControl\" [placeholderLabel]=\"'search' | translate\"\n [noEntriesFoundLabel]=\"'noResult' | translate\">\n </ngx-mat-select-search>\n </mat-option>\n }\n @for (option of filteredOptions.value() || []; track option) {\n <mat-option [value]=\"option.id\">\n {{option.name}}\n </mat-option>\n }\n </mat-select>\n\n</mat-form-field>" }]
3094
+ }], () => [], { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], selectFirstOptionByDefault: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectFirstOptionByDefault", required: false }] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }], allowMultiSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowMultiSelection", required: false }] }], showClearOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClearOption", required: false }] }], enableSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableSearch", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], singleSelect: [{
3095
+ type: ViewChild,
3096
+ args: ['singleSelect', { static: true }]
3097
+ }] }); })();
3098
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectWithSearchComponent, { className: "SelectWithSearchComponent", filePath: "lib/components/inputs/select-with-search/select-with-search.component.ts", lineNumber: 23 }); })();
3099
+
3100
+ const _c0$5 = ["*"];
3101
+ class GroupContainerComponent {
3102
+ constructor() {
3103
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3104
+ }
3105
+ static { this.ɵfac = function GroupContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GroupContainerComponent)(); }; }
3106
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GroupContainerComponent, selectors: [["cauca-group-container"]], inputs: { caption: [1, "caption"] }, ngContentSelectors: _c0$5, decls: 6, vars: 3, consts: [[1, "group-container"], [1, "group-container-title", "subtitle1"], [1, "group-container-content"]], template: function GroupContainerComponent_Template(rf, ctx) { if (rf & 1) {
3107
+ i0.ɵɵprojectionDef();
3108
+ i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
3109
+ i0.ɵɵtext(2);
3110
+ i0.ɵɵpipe(3, "translate");
3111
+ i0.ɵɵdomElementEnd();
3112
+ i0.ɵɵdomElementStart(4, "div", 2);
3113
+ i0.ɵɵprojection(5);
3114
+ i0.ɵɵdomElementEnd()();
3115
+ } if (rf & 2) {
3116
+ i0.ɵɵadvance(2);
3117
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx.caption()));
3118
+ } }, dependencies: [TranslateModule, i1.TranslatePipe], styles: [".group-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;align-self:stretch}.group-container-title[_ngcontent-%COMP%]{display:flex;width:300px;max-width:300px;padding:16px 0;flex-direction:column;align-items:flex-start}.group-container-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:16px}"], changeDetection: 0 }); }
3119
+ }
3120
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupContainerComponent, [{
3121
+ type: Component,
3122
+ args: [{ selector: 'cauca-group-container', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule], template: "<div class=\"group-container\">\r\n <div class=\"group-container-title subtitle1\">{{caption()|translate}}</div>\r\n <div class=\"group-container-content\">\r\n <ng-content />\r\n </div>\r\n</div>\r\n", styles: [".group-container{display:flex;align-items:flex-start;align-self:stretch}.group-container-title{display:flex;width:300px;max-width:300px;padding:16px 0;flex-direction:column;align-items:flex-start}.group-container-content{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:16px}\n"] }]
3123
+ }], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }] }); })();
3124
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupContainerComponent, { className: "GroupContainerComponent", filePath: "lib/components/layout/group-container/group-container.component.ts", lineNumber: 12 }); })();
3125
+
3126
+ const _c0$4 = ["*"];
3127
+ function MainSectionComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3128
+ i0.ɵɵdomElementStart(0, "div", 1);
3129
+ i0.ɵɵtext(1);
3130
+ i0.ɵɵpipe(2, "translate");
3131
+ i0.ɵɵdomElementEnd();
3132
+ } if (rf & 2) {
3133
+ const ctx_r0 = i0.ɵɵnextContext();
3134
+ i0.ɵɵadvance();
3135
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.title()));
3136
+ } }
3137
+ class MainSectionComponent {
3138
+ constructor() {
3139
+ this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
3140
+ }
3141
+ static { this.ɵfac = function MainSectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MainSectionComponent)(); }; }
3142
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MainSectionComponent, selectors: [["cauca-main-section"]], inputs: { title: [1, "title"] }, ngContentSelectors: _c0$4, decls: 4, vars: 1, consts: [[1, "section"], [1, "section-description", "subtitle1"], [1, "section-fields"]], template: function MainSectionComponent_Template(rf, ctx) { if (rf & 1) {
3143
+ i0.ɵɵprojectionDef();
3144
+ i0.ɵɵdomElementStart(0, "div", 0);
3145
+ i0.ɵɵconditionalCreate(1, MainSectionComponent_Conditional_1_Template, 3, 3, "div", 1);
3146
+ i0.ɵɵdomElementStart(2, "div", 2);
3147
+ i0.ɵɵprojection(3);
3148
+ i0.ɵɵdomElementEnd()();
3149
+ } if (rf & 2) {
3150
+ i0.ɵɵadvance();
3151
+ i0.ɵɵconditional(ctx.title() ? 1 : -1);
3152
+ } }, dependencies: [TranslateModule, i1.TranslatePipe], styles: [".section[_ngcontent-%COMP%]{display:flex;padding:24px 16px;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 0 0;max-width:1200px}.section-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;padding-bottom:24px}.section-fields[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;align-self:stretch}.section-fields[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 0}"], changeDetection: 0 }); }
3153
+ }
3154
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainSectionComponent, [{
3155
+ type: Component,
3156
+ args: [{ selector: 'cauca-main-section', imports: [TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section\">\r\n @if (title()) {\r\n <div class=\"section-description subtitle1\">{{title()|translate}}</div>\r\n }\r\n <div class=\"section-fields\"><ng-content /></div>\r\n</div>", styles: [".section{display:flex;padding:24px 16px;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 0 0;max-width:1200px}.section-description{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;padding-bottom:24px}.section-fields{display:flex;align-items:flex-start;gap:8px;align-self:stretch}.section-fields>*{flex:1 0 0}\n"] }]
3157
+ }], null, { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }] }); })();
3158
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainSectionComponent, { className: "MainSectionComponent", filePath: "lib/components/layout/sections/main-section/main-section.component.ts", lineNumber: 11 }); })();
3159
+
3160
+ const _c0$3 = ["*"];
3161
+ class SectionColumnComponent {
3162
+ constructor() {
3163
+ this.showBigGap = input(false, ...(ngDevMode ? [{ debugName: "showBigGap" }] : []));
3164
+ }
3165
+ static { this.ɵfac = function SectionColumnComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SectionColumnComponent)(); }; }
3166
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SectionColumnComponent, selectors: [["cauca-section-column"]], inputs: { showBigGap: [1, "showBigGap"] }, ngContentSelectors: _c0$3, decls: 2, vars: 2, consts: [[1, "section-columns"]], template: function SectionColumnComponent_Template(rf, ctx) { if (rf & 1) {
3167
+ i0.ɵɵprojectionDef();
3168
+ i0.ɵɵdomElementStart(0, "div", 0);
3169
+ i0.ɵɵprojection(1);
3170
+ i0.ɵɵdomElementEnd();
3171
+ } if (rf & 2) {
3172
+ i0.ɵɵclassProp("big-gap", ctx.showBigGap());
3173
+ } }, styles: ["[_nghost-%COMP%]{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch}.section-columns[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0}.big-gap[_ngcontent-%COMP%]{gap:16px}"], changeDetection: 0 }); }
3174
+ }
3175
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SectionColumnComponent, [{
3176
+ type: Component,
3177
+ args: [{ selector: 'cauca-section-column', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section-columns\" [class.big-gap]=\"showBigGap()\">\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch}.section-columns{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0}.big-gap{gap:16px}\n"] }]
3178
+ }], null, { showBigGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBigGap", required: false }] }] }); })();
3179
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionColumnComponent, { className: "SectionColumnComponent", filePath: "lib/components/layout/sections/section-column/section-column.component.ts", lineNumber: 10 }); })();
3180
+
3181
+ function SectionFieldComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3182
+ i0.ɵɵtext(0);
3183
+ i0.ɵɵpipe(1, "translate");
3184
+ } if (rf & 2) {
3185
+ const ctx_r0 = i0.ɵɵnextContext();
3186
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, ctx_r0.label()), " ");
3187
+ } }
3188
+ function SectionFieldComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3189
+ i0.ɵɵtext(0);
3190
+ } if (rf & 2) {
3191
+ const ctx_r0 = i0.ɵɵnextContext();
3192
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.label(), " ");
3193
+ } }
3194
+ function SectionFieldComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3195
+ const _r2 = i0.ɵɵgetCurrentView();
3196
+ i0.ɵɵelementStart(0, "mat-icon", 4);
3197
+ i0.ɵɵlistener("click", function SectionFieldComponent_Conditional_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.linkClick.emit()); });
3198
+ i0.ɵɵtext(1, "link");
3199
+ i0.ɵɵelementEnd();
3200
+ } }
3201
+ function SectionFieldComponent_Conditional_7_For_1_Template(rf, ctx) { if (rf & 1) {
3202
+ i0.ɵɵelementStart(0, "span");
3203
+ i0.ɵɵtext(1);
3204
+ i0.ɵɵelementEnd();
3205
+ } if (rf & 2) {
3206
+ const item_r3 = ctx.$implicit;
3207
+ const ctx_r0 = i0.ɵɵnextContext(2);
3208
+ i0.ɵɵadvance();
3209
+ i0.ɵɵtextInterpolate(ctx_r0.fieldName() ? item_r3[ctx_r0.fieldName()] : item_r3);
3210
+ } }
3211
+ function SectionFieldComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
3212
+ i0.ɵɵrepeaterCreate(0, SectionFieldComponent_Conditional_7_For_1_Template, 2, 1, "span", null, i0.ɵɵrepeaterTrackByIdentity);
3213
+ } if (rf & 2) {
3214
+ const ctx_r0 = i0.ɵɵnextContext();
3215
+ i0.ɵɵrepeater(ctx_r0.values());
3216
+ } }
3217
+ function SectionFieldComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
3218
+ i0.ɵɵtext(0);
3219
+ } if (rf & 2) {
3220
+ const ctx_r0 = i0.ɵɵnextContext();
3221
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.value(), " ");
3222
+ } }
3223
+ class SectionFieldComponent {
3224
+ constructor() {
3225
+ this.autoTranslateLabel = input(true, ...(ngDevMode ? [{ debugName: "autoTranslateLabel" }] : []));
3226
+ this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
3227
+ this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
3228
+ this.values = input([], ...(ngDevMode ? [{ debugName: "values" }] : []));
3229
+ this.fieldName = input('', ...(ngDevMode ? [{ debugName: "fieldName" }] : []));
3230
+ this.useMultipleValues = computed(() => this.values()?.length > 0, ...(ngDevMode ? [{ debugName: "useMultipleValues" }] : []));
3231
+ this.showLink = input(false, ...(ngDevMode ? [{ debugName: "showLink" }] : []));
3232
+ this.linkClick = output();
3233
+ this.splitEqually = input(true, ...(ngDevMode ? [{ debugName: "splitEqually" }] : []));
3234
+ }
3235
+ static { this.ɵfac = function SectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SectionFieldComponent)(); }; }
3236
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SectionFieldComponent, selectors: [["cauca-section-field"]], inputs: { autoTranslateLabel: [1, "autoTranslateLabel"], label: [1, "label"], value: [1, "value"], values: [1, "values"], fieldName: [1, "fieldName"], showLink: [1, "showLink"], splitEqually: [1, "splitEqually"] }, outputs: { linkClick: "linkClick" }, decls: 9, vars: 9, consts: [[1, "section-fields-line"], [1, "option-label", "body1"], ["onkeypress", "linkClick.emit()", 1, "icon-link"], [1, "option-value", "body2"], ["onkeypress", "linkClick.emit()", 1, "icon-link", 3, "click"]], template: function SectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
3237
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
3238
+ i0.ɵɵconditionalCreate(2, SectionFieldComponent_Conditional_2_Template, 2, 3)(3, SectionFieldComponent_Conditional_3_Template, 1, 1);
3239
+ i0.ɵɵconditionalCreate(4, SectionFieldComponent_Conditional_4_Template, 2, 0, "mat-icon", 2);
3240
+ i0.ɵɵtext(5, ": ");
3241
+ i0.ɵɵelementEnd();
3242
+ i0.ɵɵelementStart(6, "div", 3);
3243
+ i0.ɵɵconditionalCreate(7, SectionFieldComponent_Conditional_7_Template, 2, 0)(8, SectionFieldComponent_Conditional_8_Template, 1, 1);
3244
+ i0.ɵɵelementEnd()();
3245
+ } if (rf & 2) {
3246
+ i0.ɵɵclassProp("multi-line", ctx.useMultipleValues());
3247
+ i0.ɵɵadvance();
3248
+ i0.ɵɵclassProp("link", ctx.showLink());
3249
+ i0.ɵɵadvance();
3250
+ i0.ɵɵconditional(ctx.autoTranslateLabel() ? 2 : 3);
3251
+ i0.ɵɵadvance(2);
3252
+ i0.ɵɵconditional(ctx.showLink() ? 4 : -1);
3253
+ i0.ɵɵadvance(2);
3254
+ i0.ɵɵclassProp("no-flex", !ctx.splitEqually());
3255
+ i0.ɵɵadvance();
3256
+ i0.ɵɵconditional(ctx.useMultipleValues() ? 7 : 8);
3257
+ } }, dependencies: [TranslateModule, MatIcon, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch;width:100%}.section-fields-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;align-self:stretch;white-space:nowrap}.section-fields-line[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 0}.option-value[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;white-space:wrap;word-break:break-all}.option-value.no-flex[_ngcontent-%COMP%]{flex:unset}.multi-line[_ngcontent-%COMP%]{align-items:flex-start}.icon-link[_ngcontent-%COMP%]{cursor:pointer}.link[_ngcontent-%COMP%]{display:flex}"], changeDetection: 0 }); }
3258
+ }
3259
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SectionFieldComponent, [{
3260
+ type: Component,
3261
+ args: [{ selector: 'cauca-section-field', imports: [TranslateModule, MatIcon], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section-fields-line\" [class.multi-line]=\"useMultipleValues()\">\r\n <div class=\"option-label body1\" [class.link]=\"showLink()\">\r\n @if(autoTranslateLabel()) {\r\n {{label()|translate}}\r\n } @else {\r\n {{label()}}\r\n }\r\n @if (showLink()) {\r\n <mat-icon class=\"icon-link\" (click)=\"linkClick.emit()\" onkeypress=\"linkClick.emit()\">link</mat-icon>\r\n }:\r\n </div>\r\n <div class=\"option-value body2\" [class.no-flex]=\"!splitEqually()\">\r\n @if (useMultipleValues()) {\r\n @for(item of values(); track item) {\r\n <span>{{fieldName() ? item[fieldName()] : item }}</span>\r\n }\r\n } @else {\r\n {{value()}}\r\n }\r\n </div>\r\n</div>", styles: [":host{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch;width:100%}.section-fields-line{display:flex;align-items:center;gap:8px;align-self:stretch;white-space:nowrap}.section-fields-line>*{flex:1 0 0}.option-value{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;white-space:wrap;word-break:break-all}.option-value.no-flex{flex:unset}.multi-line{align-items:flex-start}.icon-link{cursor:pointer}.link{display:flex}\n"] }]
3262
+ }], null, { autoTranslateLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoTranslateLabel", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }], fieldName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldName", required: false }] }], showLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLink", required: false }] }], linkClick: [{ type: i0.Output, args: ["linkClick"] }], splitEqually: [{ type: i0.Input, args: [{ isSignal: true, alias: "splitEqually", required: false }] }] }); })();
3263
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/components/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
3264
+
3265
+ function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3266
+ i0.ɵɵelementStart(0, "div", 4);
3267
+ i0.ɵɵtext(1);
3268
+ i0.ɵɵpipe(2, "translate");
3269
+ i0.ɵɵelementEnd();
3270
+ i0.ɵɵelementStart(3, "span");
3271
+ i0.ɵɵtext(4, "/");
3272
+ i0.ɵɵelementEnd();
3273
+ } if (rf & 2) {
3274
+ const ctx_r0 = i0.ɵɵnextContext(2);
3275
+ i0.ɵɵadvance();
3276
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
3277
+ } }
3278
+ function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3279
+ i0.ɵɵelementStart(0, "a", 5);
3280
+ i0.ɵɵtext(1);
3281
+ i0.ɵɵpipe(2, "translate");
3282
+ i0.ɵɵelementEnd();
3283
+ } if (rf & 2) {
3284
+ const location_r2 = i0.ɵɵnextContext().$implicit;
3285
+ i0.ɵɵproperty("href", location_r2.link, i0.ɵɵsanitizeUrl)("routerLink", location_r2.link);
3286
+ i0.ɵɵadvance();
3287
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
3288
+ } }
3289
+ function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3290
+ const _r3 = i0.ɵɵgetCurrentView();
3291
+ i0.ɵɵelementStart(0, "span", 7);
3292
+ i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
3293
+ i0.ɵɵtext(1);
3294
+ i0.ɵɵpipe(2, "translate");
3295
+ i0.ɵɵelementEnd();
3296
+ } if (rf & 2) {
3297
+ const location_r2 = i0.ɵɵnextContext().$implicit;
3298
+ i0.ɵɵadvance();
3299
+ i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
3300
+ } }
3301
+ function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3302
+ i0.ɵɵelementStart(0, "span", 4);
3303
+ i0.ɵɵtext(1);
3304
+ i0.ɵɵelementEnd();
3305
+ } if (rf & 2) {
3306
+ const location_r2 = i0.ɵɵnextContext().$implicit;
3307
+ i0.ɵɵadvance();
3308
+ i0.ɵɵtextInterpolate(location_r2.title);
3309
+ } }
3310
+ function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
3311
+ i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 3, 5, "a", 5)(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 3, "span", 6)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 2, 1, "span", 4);
3312
+ i0.ɵɵelementStart(3, "span");
3313
+ i0.ɵɵtext(4, "/");
3314
+ i0.ɵɵelementEnd();
3315
+ } if (rf & 2) {
3316
+ const location_r2 = ctx.$implicit;
3317
+ i0.ɵɵconditional(location_r2.link ? 0 : location_r2.action ? 1 : 2);
3318
+ } }
3319
+ function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3320
+ i0.ɵɵelementStart(0, "div", 2);
3321
+ i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 5, 3);
3322
+ i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 5, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
3323
+ i0.ɵɵelementStart(4, "span", 3);
3324
+ i0.ɵɵtext(5);
3325
+ i0.ɵɵpipe(6, "translate");
3326
+ i0.ɵɵelementEnd()();
3327
+ } if (rf & 2) {
3328
+ const ctx_r0 = i0.ɵɵnextContext();
3329
+ i0.ɵɵadvance();
3330
+ i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
3331
+ i0.ɵɵadvance();
3332
+ i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
3333
+ i0.ɵɵadvance(3);
3334
+ i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
3335
+ } }
3336
+ class PageTitleComponent {
3337
+ constructor() {
3338
+ this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
3339
+ this.showBreadcrumb = input(false, ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
3340
+ this.location = input([], ...(ngDevMode ? [{ debugName: "location" }] : []));
3341
+ this.breadcrumb = input('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
3342
+ this.baseCrumb = input('', ...(ngDevMode ? [{ debugName: "baseCrumb" }] : []));
3343
+ this.translateBreadcrumb = input(true, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
3344
+ this.displayBreadcrumb = computed(() => this.showBreadcrumb() || this.breadcrumbService?.showBreadcrumb(), ...(ngDevMode ? [{ debugName: "displayBreadcrumb" }] : []));
3345
+ this.breadcrumbLocation = computed(() => this.breadcrumbService?.location() || this.location() || [], ...(ngDevMode ? [{ debugName: "breadcrumbLocation" }] : []));
3346
+ this.currentBreadcrumb = computed(() => this.breadcrumbService?.breadcrumb() || this.breadcrumb() || '', ...(ngDevMode ? [{ debugName: "currentBreadcrumb" }] : []));
3347
+ this.mustTranslateBreadcrumb = computed(() => this.breadcrumbService?.translateBreadcrumb() || this.translateBreadcrumb(), ...(ngDevMode ? [{ debugName: "mustTranslateBreadcrumb" }] : []));
3348
+ this.breadcrumbService = inject(BreadcrumbService, { optional: true });
3349
+ }
3350
+ static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
3351
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "breadcrumb-current"], [1, "basecrumb"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
3352
+ i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
3353
+ i0.ɵɵtext(2);
3354
+ i0.ɵɵpipe(3, "translate");
3355
+ i0.ɵɵelementEnd();
3356
+ i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 7, 4, "div", 2);
3357
+ i0.ɵɵelementEnd();
3358
+ } if (rf & 2) {
3359
+ i0.ɵɵadvance(2);
3360
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.caption()));
3361
+ i0.ɵɵadvance(2);
3362
+ i0.ɵɵconditional(ctx.displayBreadcrumb() ? 4 : -1);
3363
+ } }, dependencies: [TranslateModule, RouterModule, i1$9.RouterLink, i1.TranslatePipe], styles: [".title-section[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}h4[_ngcontent-%COMP%]{padding:0}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:visited{color:inherit}.basecrumb[_ngcontent-%COMP%]{color:#12101499}.crumb-link[_ngcontent-%COMP%]{cursor:pointer}@media(max-width:500px){.title-section[_ngcontent-%COMP%]{padding:16px}}"], changeDetection: 0 }); }
3364
+ }
3365
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
3366
+ type: Component,
3367
+ args: [{ selector: 'cauca-page-title', changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\n\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\n\n @if (displayBreadcrumb()) {\n <div class=\"breadcrumb\">\n\n @if (baseCrumb()) {\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\n <span>/</span>\n }\n\n @for(location of breadcrumbLocation(); track location) {\n @if (location.link) {\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\n } @else if (location.action) {\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\n } @else {\n <span class=\"basecrumb\">{{location.title}}</span>\n }\n <span>/</span>\n }\n\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\n\n </div>\n }\n\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}a{text-decoration:none}a:visited{color:inherit}.basecrumb{color:#12101499}.crumb-link{cursor:pointer}@media(max-width:500px){.title-section{padding:16px}}\n"] }]
3368
+ }], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], showBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBreadcrumb", required: false }] }], location: [{ type: i0.Input, args: [{ isSignal: true, alias: "location", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], baseCrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseCrumb", required: false }] }], translateBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "translateBreadcrumb", required: false }] }] }); })();
3369
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 14 }); })();
3370
+
3371
+ const _c0$2 = ["*"];
3372
+ class ExpandablePanelComponent {
3373
+ constructor() {
3374
+ this.isCollapsed = model(false, ...(ngDevMode ? [{ debugName: "isCollapsed" }] : []));
3375
+ this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
3376
+ this.subCaption = input('', ...(ngDevMode ? [{ debugName: "subCaption" }] : []));
3377
+ }
3378
+ changeState() {
3379
+ this.isCollapsed.update(value => !value);
3380
+ }
3381
+ static { this.ɵfac = function ExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ExpandablePanelComponent)(); }; }
3382
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExpandablePanelComponent, selectors: [["cauca-expandable-panel"]], inputs: { isCollapsed: [1, "isCollapsed"], caption: [1, "caption"], subCaption: [1, "subCaption"] }, outputs: { isCollapsed: "isCollapsedChange" }, ngContentSelectors: _c0$2, decls: 12, vars: 6, consts: [[1, "expansion-button", 3, "click"], [1, "primary"], [1, "body2"], [1, "expansion-panel"], [1, "expansion-panel-content"]], template: function ExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
3383
+ i0.ɵɵprojectionDef();
3384
+ i0.ɵɵelementStart(0, "section")(1, "div", 0);
3385
+ i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
3386
+ i0.ɵɵelementStart(2, "mat-icon");
3387
+ i0.ɵɵtext(3, "expand_less");
3388
+ i0.ɵɵelementEnd();
3389
+ i0.ɵɵelementStart(4, "div")(5, "div", 1);
3390
+ i0.ɵɵtext(6);
3391
+ i0.ɵɵelementEnd();
3392
+ i0.ɵɵelementStart(7, "div", 2);
3393
+ i0.ɵɵtext(8);
3394
+ i0.ɵɵelementEnd()()();
3395
+ i0.ɵɵelementStart(9, "div", 3)(10, "div", 4);
3396
+ i0.ɵɵprojection(11);
3397
+ i0.ɵɵelementEnd()()();
3398
+ } if (rf & 2) {
3399
+ i0.ɵɵadvance(2);
3400
+ i0.ɵɵclassProp("collapsed", ctx.isCollapsed());
3401
+ i0.ɵɵadvance(4);
3402
+ i0.ɵɵtextInterpolate(ctx.caption());
3403
+ i0.ɵɵadvance(2);
3404
+ i0.ɵɵtextInterpolate(ctx.subCaption());
3405
+ i0.ɵɵadvance();
3406
+ i0.ɵɵclassProp("collapsed", ctx.isCollapsed());
3407
+ } }, dependencies: [MatIcon], styles: ["section[_ngcontent-%COMP%]{display:flex;padding:16px 0}.primary[_ngcontent-%COMP%]{font-weight:600}.body2[_ngcontent-%COMP%]{width:fit-content;white-space:nowrap}.expansion-button[_ngcontent-%COMP%]{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transition:transform .5s ease-in-out}.expansion-button[_ngcontent-%COMP%] mat-icon.collapsed[_ngcontent-%COMP%]{transform:rotate(180deg)}.expansion-panel[_ngcontent-%COMP%]{overflow:hidden;flex:1;display:grid;grid-template-rows:1fr;min-height:0;transition:grid-template-rows .5s ease-in,opacity .5s ease-in,visibility .5s ease-in}.expansion-panel.collapsed[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0;visibility:hidden}.expansion-panel-content[_ngcontent-%COMP%]{min-height:0}"], changeDetection: 0 }); }
3408
+ }
3409
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
3410
+ type: Component,
3411
+ args: [{ selector: 'cauca-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], template: "<section>\r\n <div class=\"expansion-button\" (click)=\"changeState()\">\r\n <mat-icon [class.collapsed]=\"isCollapsed()\">expand_less</mat-icon>\r\n <div>\r\n <div class=\"primary\">{{caption()}}</div>\r\n <div class=\"body2\">{{subCaption()}}</div>\r\n </div>\r\n </div>\r\n <div class=\"expansion-panel\" [class.collapsed]=\"isCollapsed()\">\r\n <div class=\"expansion-panel-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</section>", styles: ["section{display:flex;padding:16px 0}.primary{font-weight:600}.body2{width:fit-content;white-space:nowrap}.expansion-button{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-button mat-icon{transition:transform .5s ease-in-out}.expansion-button mat-icon.collapsed{transform:rotate(180deg)}.expansion-panel{overflow:hidden;flex:1;display:grid;grid-template-rows:1fr;min-height:0;transition:grid-template-rows .5s ease-in,opacity .5s ease-in,visibility .5s ease-in}.expansion-panel.collapsed{grid-template-rows:0fr;opacity:0;visibility:hidden}.expansion-panel-content{min-height:0}\n"] }]
3412
+ }], null, { isCollapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCollapsed", required: false }] }, { type: i0.Output, args: ["isCollapsedChange"] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], subCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "subCaption", required: false }] }] }); })();
3413
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib/components/layout/expandable-panel/expandable-panel.component.ts", lineNumber: 11 }); })();
3414
+
3415
+ class MenuExpandablePanelItemComponent {
3416
+ constructor() {
3417
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
3418
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3419
+ this.route = input(...(ngDevMode ? [undefined, { debugName: "route" }] : []));
3420
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3421
+ this.action = input(null, ...(ngDevMode ? [{ debugName: "action" }] : []));
3422
+ this.router = inject(Router);
3423
+ }
3424
+ openRoute() {
3425
+ if (this.action()) {
3426
+ this.action()();
3427
+ }
3428
+ else {
3429
+ this.router.navigate(this.route());
3430
+ }
3431
+ }
3432
+ static { this.ɵfac = function MenuExpandablePanelItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelItemComponent)(); }; }
3433
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelItemComponent, selectors: [["cauca-menu-expandable-panel-item"]], inputs: { icon: [1, "icon"], caption: [1, "caption"], route: [1, "route"], isSubItem: [1, "isSubItem"], action: [1, "action"] }, decls: 6, vars: 8, consts: [[3, "click"]], template: function MenuExpandablePanelItemComponent_Template(rf, ctx) { if (rf & 1) {
3434
+ i0.ɵɵelementStart(0, "section", 0);
3435
+ i0.ɵɵlistener("click", function MenuExpandablePanelItemComponent_Template_section_click_0_listener() { return ctx.openRoute(); });
3436
+ i0.ɵɵelementStart(1, "mat-icon");
3437
+ i0.ɵɵtext(2);
3438
+ i0.ɵɵelementEnd();
3439
+ i0.ɵɵelementStart(3, "div");
3440
+ i0.ɵɵtext(4);
3441
+ i0.ɵɵpipe(5, "translate");
3442
+ i0.ɵɵelementEnd()();
3443
+ } if (rf & 2) {
3444
+ i0.ɵɵclassProp("sub-item", ctx.isSubItem());
3445
+ i0.ɵɵadvance(2);
3446
+ i0.ɵɵtextInterpolate(ctx.icon());
3447
+ i0.ɵɵadvance();
3448
+ i0.ɵɵclassMap(ctx.isSubItem() ? "subtitle2" : "subtitle1");
3449
+ i0.ɵɵadvance();
3450
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, ctx.caption()));
3451
+ } }, dependencies: [MatIconModule, i1$2.MatIcon, TranslateModule, i1.TranslatePipe], styles: ["section[_ngcontent-%COMP%]{display:flex;gap:16px;padding:16px 24px}.sub-item[_ngcontent-%COMP%]{background-color:#f5f5f5;border-top:1px solid white}"], changeDetection: 0 }); }
3452
+ }
3453
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelItemComponent, [{
3454
+ type: Component,
3455
+ args: [{ selector: 'cauca-menu-expandable-panel-item', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconModule, TranslateModule], template: "<section (click)=\"openRoute()\" [class.sub-item]=\"isSubItem()\">\r\n <mat-icon>{{icon()}}</mat-icon>\r\n <div [class]=\"isSubItem() ? 'subtitle2' : 'subtitle1'\">{{caption() | translate}}</div>\r\n</section>", styles: ["section{display:flex;gap:16px;padding:16px 24px}.sub-item{background-color:#f5f5f5;border-top:1px solid white}\n"] }]
3456
+ }], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], isSubItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "isSubItem", required: false }] }], action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }] }); })();
3457
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelItemComponent, { className: "MenuExpandablePanelItemComponent", filePath: "lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.ts", lineNumber: 13 }); })();
3458
+
3459
+ const _forTrack0 = ($index, $item) => $item.title;
3460
+ function MenuExpandablePanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
3461
+ i0.ɵɵelementStart(0, "div", 2);
3462
+ i0.ɵɵtext(1);
3463
+ i0.ɵɵpipe(2, "translate");
3464
+ i0.ɵɵelementEnd();
3465
+ } if (rf & 2) {
3466
+ const ctx_r0 = i0.ɵɵnextContext();
3467
+ i0.ɵɵadvance();
3468
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.subCaption()));
3469
+ } }
3470
+ function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
3471
+ i0.ɵɵelementStart(0, "mat-icon");
3472
+ i0.ɵɵtext(1, "arrow_forward_ios");
3473
+ i0.ɵɵelementEnd();
3474
+ } if (rf & 2) {
3475
+ const ctx_r0 = i0.ɵɵnextContext();
3476
+ i0.ɵɵclassProp("opened", ctx_r0.opened());
3477
+ } }
3478
+ function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
3479
+ i0.ɵɵelement(0, "cauca-menu-expandable-panel-item", 4);
3480
+ } if (rf & 2) {
3481
+ const item_r2 = ctx.$implicit;
3482
+ i0.ɵɵproperty("icon", item_r2.icon)("caption", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
3483
+ } }
3484
+ function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
3485
+ i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "cauca-menu-expandable-panel-item", 4, _forTrack0);
3486
+ } if (rf & 2) {
3487
+ const ctx_r0 = i0.ɵɵnextContext();
3488
+ i0.ɵɵrepeater(ctx_r0.items());
3489
+ } }
3490
+ class MenuExpandablePanelComponent {
3491
+ constructor() {
3492
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3493
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3494
+ this.subCaption = input(...(ngDevMode ? [undefined, { debugName: "subCaption" }] : []));
3495
+ this.menuIcon = input(...(ngDevMode ? [undefined, { debugName: "menuIcon" }] : []));
3496
+ this.showExpansionIcon = input(true, ...(ngDevMode ? [{ debugName: "showExpansionIcon" }] : []));
3497
+ this.addTopBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addTopBorderRadius" }] : []));
3498
+ this.bottomBorder = input(false, ...(ngDevMode ? [{ debugName: "bottomBorder" }] : []));
3499
+ this.addBottomBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addBottomBorderRadius" }] : []));
3500
+ this.route = input([], ...(ngDevMode ? [{ debugName: "route" }] : []));
3501
+ this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : []));
3502
+ this.opened = signal(false, ...(ngDevMode ? [{ debugName: "opened" }] : []));
3503
+ this.router = inject(Router);
3504
+ }
3505
+ handleClick() {
3506
+ if (this.route().length > 0 && this.items().length === 0) {
3507
+ this.router.navigate(this.route());
3508
+ }
3509
+ else {
3510
+ this.opened.set(!this.opened());
3511
+ }
3512
+ }
3513
+ static { this.ɵfac = function MenuExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelComponent)(); }; }
3514
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["cauca-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
3515
+ i0.ɵɵstyleProp("border-top-left-radius", ctx.addTopBorderRadius() ? "12px" : "0px")("border-top-right-radius", ctx.addTopBorderRadius() ? "12px" : "0px")("border-bottom-left-radius", ctx.addBottomBorderRadius() ? "12px" : "0px")("border-bottom-right-radius", ctx.addBottomBorderRadius() ? "12px" : "0px");
3516
+ i0.ɵɵclassProp("bottom-border", ctx.bottomBorder());
3517
+ } }, inputs: { caption: [1, "caption"], isSubItem: [1, "isSubItem"], subCaption: [1, "subCaption"], menuIcon: [1, "menuIcon"], showExpansionIcon: [1, "showExpansionIcon"], addTopBorderRadius: [1, "addTopBorderRadius"], bottomBorder: [1, "bottomBorder"], addBottomBorderRadius: [1, "addBottomBorderRadius"], route: [1, "route"], items: [1, "items"] }, decls: 10, vars: 8, consts: [[3, "click", "ngClass"], [1, "subtitle1"], [1, "body2"], [3, "opened"], [3, "icon", "caption", "route", "isSubItem", "action"]], template: function MenuExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
3518
+ i0.ɵɵelementStart(0, "section", 0);
3519
+ i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
3520
+ i0.ɵɵelementStart(1, "mat-icon");
3521
+ i0.ɵɵtext(2);
3522
+ i0.ɵɵelementEnd();
3523
+ i0.ɵɵelementStart(3, "div")(4, "div", 1);
3524
+ i0.ɵɵtext(5);
3525
+ i0.ɵɵpipe(6, "translate");
3526
+ i0.ɵɵelementEnd();
3527
+ i0.ɵɵconditionalCreate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
3528
+ i0.ɵɵelementEnd();
3529
+ i0.ɵɵconditionalCreate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 2, "mat-icon", 3);
3530
+ i0.ɵɵelementEnd();
3531
+ i0.ɵɵconditionalCreate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
3532
+ } if (rf & 2) {
3533
+ i0.ɵɵproperty("ngClass", ctx.opened() ? "bottom-padding" : "");
3534
+ i0.ɵɵadvance(2);
3535
+ i0.ɵɵtextInterpolate(ctx.menuIcon());
3536
+ i0.ɵɵadvance(3);
3537
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, ctx.caption()));
3538
+ i0.ɵɵadvance(2);
3539
+ i0.ɵɵconditional(ctx.subCaption() ? 7 : -1);
3540
+ i0.ɵɵadvance();
3541
+ i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
3542
+ i0.ɵɵadvance();
3543
+ i0.ɵɵconditional(ctx.opened() ? 9 : -1);
3544
+ } }, dependencies: [MatIconModule, i1$2.MatIcon, MenuExpandablePanelItemComponent, NgClass, TranslatePipe], styles: ["[_nghost-%COMP%]{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center}section[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:last-child{transition:transform .2s ease-in-out}section[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:last-child.opened{transform:rotate(-90deg)}section.bottom-padding[_ngcontent-%COMP%]{padding-bottom:10px}div[_ngcontent-%COMP%]{flex:1}"], changeDetection: 0 }); }
3545
+ }
3546
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
3547
+ type: Component,
3548
+ args: [{ selector: 'cauca-menu-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconModule, TranslatePipe, MenuExpandablePanelItemComponent, NgClass], host: {
3549
+ '[style.border-top-left-radius]': 'addTopBorderRadius() ? "12px" : "0px"',
3550
+ '[style.border-top-right-radius]': 'addTopBorderRadius() ? "12px" : "0px"',
3551
+ '[style.border-bottom-left-radius]': 'addBottomBorderRadius() ? "12px" : "0px"',
3552
+ '[style.border-bottom-right-radius]': 'addBottomBorderRadius() ? "12px" : "0px"',
3553
+ '[class.bottom-border]': 'bottomBorder()',
3554
+ }, template: "<section [ngClass]=\"opened() ? 'bottom-padding' : ''\" (click)=\"handleClick()\">\r\n <mat-icon>{{menuIcon()}}</mat-icon>\r\n <div>\r\n <div class=\"subtitle1\">{{caption() | translate}}</div>\r\n @if(subCaption()) {<div class=\"body2\">{{subCaption() | translate}}</div>}\r\n </div>\r\n @if (showExpansionIcon()) {<mat-icon [class.opened]=\"opened()\">arrow_forward_ios</mat-icon>}\r\n</section>\r\n@if(opened()) {\r\n @for (item of items(); track item.title) {\r\n <cauca-menu-expandable-panel-item [icon]=\"item.icon\" [caption]=\"item.title\" [route]=\"item.route\" [isSubItem]=\"true\" [action]=\"item.action\" />\r\n }\r\n}", styles: [":host{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section{display:flex;gap:16px;align-items:center}section mat-icon:last-child{transition:transform .2s ease-in-out}section mat-icon:last-child.opened{transform:rotate(-90deg)}section.bottom-padding{padding-bottom:10px}div{flex:1}\n"] }]
3555
+ }], null, { caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], isSubItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "isSubItem", required: false }] }], subCaption: [{ type: i0.Input, args: [{ isSignal: true, alias: "subCaption", required: false }] }], menuIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuIcon", required: false }] }], showExpansionIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showExpansionIcon", required: false }] }], addTopBorderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "addTopBorderRadius", required: false }] }], bottomBorder: [{ type: i0.Input, args: [{ isSignal: true, alias: "bottomBorder", required: false }] }], addBottomBorderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "addBottomBorderRadius", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }] }); })();
3556
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts", lineNumber: 21 }); })();
3557
+
3558
+ function SavingConfirmedBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3559
+ const _r1 = i0.ɵɵgetCurrentView();
3560
+ i0.ɵɵelementStart(0, "cauca-snackbar", 1);
3561
+ i0.ɵɵlistener("closeClick", function SavingConfirmedBoxComponent_Conditional_0_Template_cauca_snackbar_closeClick_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.show.set(false)); });
3562
+ i0.ɵɵtext(1);
3563
+ i0.ɵɵpipe(2, "translate");
3564
+ i0.ɵɵelementEnd();
3565
+ } if (rf & 2) {
3566
+ i0.ɵɵproperty("showButton", false)("showCloseButton", true);
3567
+ i0.ɵɵadvance();
3568
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, "savingSuccessNotification.message"), " ");
3569
+ } }
3570
+ class SavingConfirmedBoxComponent {
3571
+ constructor() {
3572
+ this.show = model(false, ...(ngDevMode ? [{ debugName: "show" }] : []));
3573
+ }
3574
+ static { this.ɵfac = function SavingConfirmedBoxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SavingConfirmedBoxComponent)(); }; }
3575
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SavingConfirmedBoxComponent, selectors: [["cauca-saving-confirmed-box"]], inputs: { show: [1, "show"] }, outputs: { show: "showChange" }, decls: 1, vars: 1, consts: [["caption", "savingSuccessNotification.title", "type", "success", "variant", "standard", 3, "showButton", "showCloseButton"], ["caption", "savingSuccessNotification.title", "type", "success", "variant", "standard", 3, "closeClick", "showButton", "showCloseButton"]], template: function SavingConfirmedBoxComponent_Template(rf, ctx) { if (rf & 1) {
3576
+ i0.ɵɵconditionalCreate(0, SavingConfirmedBoxComponent_Conditional_0_Template, 3, 5, "cauca-snackbar", 0);
3577
+ } if (rf & 2) {
3578
+ i0.ɵɵconditional(ctx.show() ? 0 : -1);
3579
+ } }, dependencies: [SnackBarComponent, TranslateModule, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
3580
+ }
3581
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SavingConfirmedBoxComponent, [{
3582
+ type: Component,
3583
+ args: [{ selector: 'cauca-saving-confirmed-box', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [SnackBarComponent, TranslateModule], template: "@if (show()) {\r\n <cauca-snackbar\r\n caption=\"savingSuccessNotification.title\"\r\n type=\"success\"\r\n variant=\"standard\"\r\n [showButton]=\"false\"\r\n [showCloseButton]=\"true\"\r\n (closeClick)=\"show.set(false)\">\r\n {{'savingSuccessNotification.message' | translate}}\r\n </cauca-snackbar>\r\n}" }]
3584
+ }], null, { show: [{ type: i0.Input, args: [{ isSignal: true, alias: "show", required: false }] }, { type: i0.Output, args: ["showChange"] }] }); })();
3585
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SavingConfirmedBoxComponent, { className: "SavingConfirmedBoxComponent", filePath: "lib/components/notifications/saving-confirmed-box/saving-confirmed-box.component.ts", lineNumber: 13 }); })();
3586
+
3587
+ function SavingErrorBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3588
+ const _r1 = i0.ɵɵgetCurrentView();
3589
+ i0.ɵɵelementStart(0, "cauca-snackbar", 1);
3590
+ i0.ɵɵlistener("closeClick", function SavingErrorBoxComponent_Conditional_0_Template_cauca_snackbar_closeClick_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.show.set(false)); });
3591
+ i0.ɵɵtext(1);
3592
+ i0.ɵɵpipe(2, "translate");
3593
+ i0.ɵɵelementEnd();
3594
+ } if (rf & 2) {
3595
+ const ctx_r1 = i0.ɵɵnextContext();
3596
+ i0.ɵɵproperty("showButton", false)("showCloseButton", true);
3597
+ i0.ɵɵadvance();
3598
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, ctx_r1.error()), " ");
3599
+ } }
3600
+ class SavingErrorBoxComponent {
3601
+ constructor() {
3602
+ this.show = model(false, ...(ngDevMode ? [{ debugName: "show" }] : []));
3603
+ this.specificError = input(null, ...(ngDevMode ? [{ debugName: "specificError" }] : []));
3604
+ this.error = computed(() => this.specificError() ? this.specificError() : 'generalError.savingErrorAlertMessage', ...(ngDevMode ? [{ debugName: "error" }] : []));
3605
+ }
3606
+ static { this.ɵfac = function SavingErrorBoxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SavingErrorBoxComponent)(); }; }
3607
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SavingErrorBoxComponent, selectors: [["cauca-saving-error-box"]], inputs: { show: [1, "show"], specificError: [1, "specificError"] }, outputs: { show: "showChange" }, decls: 1, vars: 1, consts: [["caption", "generalError.savingErrorAlertTitle", "type", "error", "variant", "standard", 3, "showButton", "showCloseButton"], ["caption", "generalError.savingErrorAlertTitle", "type", "error", "variant", "standard", 3, "closeClick", "showButton", "showCloseButton"]], template: function SavingErrorBoxComponent_Template(rf, ctx) { if (rf & 1) {
3608
+ i0.ɵɵconditionalCreate(0, SavingErrorBoxComponent_Conditional_0_Template, 3, 5, "cauca-snackbar", 0);
3609
+ } if (rf & 2) {
3610
+ i0.ɵɵconditional(ctx.show() ? 0 : -1);
3611
+ } }, dependencies: [SnackBarComponent, TranslateModule, i1.TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
3612
+ }
3613
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SavingErrorBoxComponent, [{
3614
+ type: Component,
3615
+ args: [{ selector: 'cauca-saving-error-box', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [SnackBarComponent, TranslateModule], template: "@if (show()) {\r\n <cauca-snackbar\r\n caption=\"generalError.savingErrorAlertTitle\"\r\n type=\"error\"\r\n variant=\"standard\"\r\n [showButton]=\"false\"\r\n [showCloseButton]=\"true\"\r\n (closeClick)=\"show.set(false)\">\r\n {{error() | translate}}\r\n </cauca-snackbar>\r\n}" }]
3616
+ }], null, { show: [{ type: i0.Input, args: [{ isSignal: true, alias: "show", required: false }] }, { type: i0.Output, args: ["showChange"] }], specificError: [{ type: i0.Input, args: [{ isSignal: true, alias: "specificError", required: false }] }] }); })();
3617
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SavingErrorBoxComponent, { className: "SavingErrorBoxComponent", filePath: "lib/components/notifications/saving-error-box/saving-error-box.component.ts", lineNumber: 13 }); })();
3618
+
3619
+ class AutoTrimAndLowerDirective {
3620
+ constructor(el) {
3621
+ this.el = el;
3622
+ }
3623
+ onBlur(_) {
3624
+ this.trimText();
3625
+ }
3626
+ trimText() {
3627
+ this.el.nativeElement.value = this.el.nativeElement.value?.trim().toLowerCase();
3628
+ }
3629
+ static { this.ɵfac = function AutoTrimAndLowerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AutoTrimAndLowerDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
3630
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AutoTrimAndLowerDirective, selectors: [["", "appAutoTrimAndLower", ""]], hostBindings: function AutoTrimAndLowerDirective_HostBindings(rf, ctx) { if (rf & 1) {
3631
+ i0.ɵɵlistener("blur", function AutoTrimAndLowerDirective_blur_HostBindingHandler($event) { return ctx.onBlur($event); });
3632
+ } } }); }
3633
+ }
3634
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoTrimAndLowerDirective, [{
3635
+ type: Directive,
3636
+ args: [{
3637
+ selector: '[appAutoTrimAndLower]',
3638
+ standalone: true
3639
+ }]
3640
+ }], () => [{ type: i0.ElementRef }], { onBlur: [{
3641
+ type: HostListener,
3642
+ args: ['blur', ['$event']]
3643
+ }] }); })();
3644
+
3645
+ class HasErrorRootDirective {
3646
+ constructor() {
3647
+ this._formControl$ = new ReplaySubject(1);
3648
+ }
3649
+ set formControl(formControlDirective) {
3650
+ if (formControlDirective) {
3651
+ this._formControl$.next(formControlDirective.control);
3652
+ }
3653
+ }
3654
+ set formControlName(formControlName) {
3655
+ if (formControlName) {
3656
+ this._formControl$.next(formControlName.control);
3657
+ }
3658
+ }
3659
+ get formControl$() {
3660
+ return this._formControl$.asObservable();
3661
+ }
3662
+ static { this.ɵfac = function HasErrorRootDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HasErrorRootDirective)(); }; }
3663
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: HasErrorRootDirective, selectors: [["mat-form-field"]], contentQueries: function HasErrorRootDirective_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
3664
+ i0.ɵɵcontentQuery(dirIndex, FormControlDirective, 5)(dirIndex, FormControlName, 5);
3665
+ } if (rf & 2) {
3666
+ let _t;
3667
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formControl = _t.first);
3668
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formControlName = _t.first);
3669
+ } }, standalone: false }); }
3670
+ }
3671
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasErrorRootDirective, [{
3672
+ type: Directive,
3673
+ args: [{
3674
+ /* eslint-disable @angular-eslint/directive-selector */
3675
+ selector: 'mat-form-field',
3676
+ /* eslint-enable @angular-eslint/directive-selector */
3677
+ standalone: false,
3678
+ }]
3679
+ }], null, { formControl: [{
3680
+ type: ContentChild,
3681
+ args: [FormControlDirective]
3682
+ }], formControlName: [{
3683
+ type: ContentChild,
3684
+ args: [FormControlName]
3685
+ }] }); })();
3686
+
3687
+ class HasErrorDirective {
3688
+ set hasError(errorName) {
3689
+ this.errorName$.next(errorName);
3690
+ }
3691
+ constructor(hasErrorRoot, templateRef, vcr) {
3692
+ this.hasErrorRoot = hasErrorRoot;
3693
+ this.templateRef = templateRef;
3694
+ this.vcr = vcr;
3695
+ this.errorName$ = new ReplaySubject(1);
3696
+ this.ctrl$ = this.hasErrorRoot.formControl$;
3697
+ this.status$ = this.ctrl$.pipe(switchMap((ctrl) => (ctrl.statusChanges || EMPTY).pipe(startWith(null))));
3698
+ this.error$ = combineLatest([
3699
+ this.ctrl$,
3700
+ this.errorName$,
3701
+ this.status$,
3702
+ ]).pipe(map(([ctrl, errorName]) => ({
3703
+ hasError: ctrl.hasError(errorName),
3704
+ value: ctrl.getError(errorName),
3705
+ })), distinctUntilChanged((x, y) => x.hasError === y.hasError && x.value === y.value));
3706
+ }
3707
+ static ngTemplateContextGuard(_dir, ctx) {
3708
+ return true;
3709
+ }
3710
+ ngAfterContentInit() {
3711
+ setTimeout(() => {
3712
+ this.subscription = this.error$.subscribe((error) => {
3713
+ if (!error.hasError) {
3714
+ this.view?.destroy();
3715
+ this.view = undefined;
3716
+ return;
3717
+ }
3718
+ if (this.view) {
3719
+ this.view.context.$implicit = error.value;
3720
+ this.view.markForCheck();
3721
+ return;
3722
+ }
3723
+ this.view = this.vcr.createEmbeddedView(this.templateRef, {
3724
+ $implicit: error.value,
3725
+ });
3726
+ });
3727
+ }, 100);
3728
+ }
3729
+ ngOnDestroy() {
3730
+ this.subscription?.unsubscribe();
3731
+ }
3732
+ static { this.ɵfac = function HasErrorDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HasErrorDirective)(i0.ɵɵdirectiveInject(HasErrorRootDirective), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
3733
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: HasErrorDirective, selectors: [["", "hasError", ""]], inputs: { hasError: "hasError" }, standalone: false }); }
3734
+ }
3735
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasErrorDirective, [{
3736
+ type: Directive,
3737
+ args: [{
3738
+ selector: '[hasError]',
3739
+ standalone: false,
3740
+ }]
3741
+ }], () => [{ type: HasErrorRootDirective }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }], { hasError: [{
3742
+ type: Input
3743
+ }] }); })();
3744
+
3745
+ class FormErrorModule {
3746
+ static { this.ɵfac = function FormErrorModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FormErrorModule)(); }; }
3747
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FormErrorModule }); }
3748
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
3749
+ ReactiveFormsModule] }); }
3750
+ }
3751
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormErrorModule, [{
3752
+ type: NgModule,
3753
+ args: [{
3754
+ declarations: [
3755
+ HasErrorDirective,
3756
+ HasErrorRootDirective
3757
+ ],
3758
+ imports: [
3759
+ CommonModule,
3760
+ ReactiveFormsModule
3761
+ ],
3762
+ exports: [
3763
+ HasErrorDirective,
3764
+ HasErrorRootDirective
3765
+ ],
3766
+ }]
3767
+ }], null, null); })();
3768
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FormErrorModule, { declarations: [HasErrorDirective,
3769
+ HasErrorRootDirective], imports: [CommonModule,
3770
+ ReactiveFormsModule], exports: [HasErrorDirective,
3771
+ HasErrorRootDirective] }); })();
3772
+
3773
+ function provideCaucaMaterial() {
3774
+ return [
3775
+ provideNativeDateAdapter(),
3776
+ { provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } },
3777
+ ];
3778
+ }
3779
+
3780
+ function CaucaSimpleDialogComponent_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
3781
+ const _r1 = i0.ɵɵgetCurrentView();
3782
+ i0.ɵɵelementStart(0, "button", 5);
3783
+ i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_Conditional_4_For_2_Template_button_click_0_listener() { const ɵ$index_11_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onClick(ɵ$index_11_r2)); });
3784
+ i0.ɵɵtext(1);
3785
+ i0.ɵɵelementEnd();
3786
+ } if (rf & 2) {
3787
+ const label_r4 = ctx.$implicit;
3788
+ i0.ɵɵadvance();
3789
+ i0.ɵɵtextInterpolate(label_r4);
3790
+ } }
3791
+ function CaucaSimpleDialogComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3792
+ i0.ɵɵelementStart(0, "div", 3);
3793
+ i0.ɵɵrepeaterCreate(1, CaucaSimpleDialogComponent_Conditional_4_For_2_Template, 2, 1, "button", 4, i0.ɵɵrepeaterTrackByIdentity);
3794
+ i0.ɵɵelementEnd();
3795
+ } if (rf & 2) {
3796
+ const ctx_r2 = i0.ɵɵnextContext();
3797
+ i0.ɵɵadvance();
3798
+ i0.ɵɵrepeater(ctx_r2.data.buttons);
3799
+ } }
3800
+ class CaucaSimpleDialogComponent {
3801
+ constructor() {
3802
+ this.data = inject(MAT_DIALOG_DATA);
3803
+ this.dialogRef = inject(MatDialogRef);
3804
+ }
3805
+ onClick(buttonIndex) {
3806
+ this.dialogRef.close(buttonIndex);
3807
+ }
3808
+ static { this.ɵfac = function CaucaSimpleDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaSimpleDialogComponent)(); }; }
3809
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSimpleDialogComponent, selectors: [["cauca-simple-dialog"]], decls: 5, vars: 3, consts: [["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "innerHTML"], ["mat-dialog-actions", ""], ["mat-raised-button", ""], ["mat-raised-button", "", 3, "click"]], template: function CaucaSimpleDialogComponent_Template(rf, ctx) { if (rf & 1) {
3810
+ i0.ɵɵelementStart(0, "h1", 0);
3811
+ i0.ɵɵtext(1);
3812
+ i0.ɵɵelementEnd();
3813
+ i0.ɵɵelementStart(2, "div", 1);
3814
+ i0.ɵɵelement(3, "div", 2);
3815
+ i0.ɵɵelementEnd();
3816
+ i0.ɵɵconditionalCreate(4, CaucaSimpleDialogComponent_Conditional_4_Template, 3, 0, "div", 3);
3817
+ } if (rf & 2) {
3818
+ i0.ɵɵadvance();
3819
+ i0.ɵɵtextInterpolate(ctx.data.title);
3820
+ i0.ɵɵadvance(2);
3821
+ i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
3822
+ i0.ɵɵadvance();
3823
+ i0.ɵɵconditional(ctx.data.buttons ? 4 : -1);
3824
+ } }, dependencies: [MatDialogTitle, MatDialogContent, MatDialogActions, MatButtonModule, i1$1.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] }); }
3825
+ }
3826
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
3827
+ type: Component,
3828
+ args: [{ selector: 'cauca-simple-dialog', imports: [MatDialogTitle, MatDialogContent, MatDialogActions, MatButtonModule], template: "<h1 mat-dialog-title>{{data.title}}</h1>\n<div mat-dialog-content>\n <div [innerHTML]=\"data.message\"></div>\n</div>\n@if (data.buttons) {\n <div mat-dialog-actions>\n @for (label of data.buttons; track label; let i = $index) {\n <button mat-raised-button (click)=\"onClick(i)\">{{label}}</button>\n }\n </div>\n}", styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}\n"] }]
3829
+ }], null, null); })();
3830
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSimpleDialogComponent, { className: "CaucaSimpleDialogComponent", filePath: "lib/components/deprecated-components/cauca-simple-dialog/cauca-simple-dialog.component.ts", lineNumber: 13 }); })();
3831
+
3832
+ const _c0$1 = ["file"];
3833
+ function CaucaInputFileComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
3834
+ i0.ɵɵelementStart(0, "mat-icon");
3835
+ i0.ɵɵtext(1);
3836
+ i0.ɵɵelementEnd();
3837
+ } if (rf & 2) {
3838
+ const ctx_r0 = i0.ɵɵnextContext();
3839
+ i0.ɵɵadvance();
3840
+ i0.ɵɵtextInterpolate(ctx_r0.icon);
3841
+ } }
3842
+ function CaucaInputFileComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
3843
+ i0.ɵɵelementStart(0, "span");
3844
+ i0.ɵɵtext(1);
3845
+ i0.ɵɵelementEnd();
3846
+ } if (rf & 2) {
3847
+ const ctx_r0 = i0.ɵɵnextContext();
3848
+ i0.ɵɵadvance();
3849
+ i0.ɵɵtextInterpolate(ctx_r0.text);
3850
+ } }
3851
+ function CaucaInputFileComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3852
+ const _r2 = i0.ɵɵgetCurrentView();
3853
+ i0.ɵɵelementStart(0, "input", 4, 0);
3854
+ i0.ɵɵlistener("change", function CaucaInputFileComponent_Conditional_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onSelectFile($event)); });
3855
+ i0.ɵɵelementEnd();
3856
+ } if (rf & 2) {
3857
+ const ctx_r0 = i0.ɵɵnextContext();
3858
+ i0.ɵɵproperty("accept", ctx_r0.accept);
3859
+ } }
3860
+ function CaucaInputFileComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
3861
+ const _r3 = i0.ɵɵgetCurrentView();
3862
+ i0.ɵɵelementStart(0, "input", 5, 0);
3863
+ i0.ɵɵlistener("change", function CaucaInputFileComponent_Conditional_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onSelectFile($event)); });
3864
+ i0.ɵɵelementEnd();
3865
+ } if (rf & 2) {
3866
+ const ctx_r0 = i0.ɵɵnextContext();
3867
+ i0.ɵɵproperty("accept", ctx_r0.accept);
3868
+ } }
3869
+ class CaucaInputFileComponent {
3870
+ constructor() {
3871
+ this.readend = new EventEmitter();
3872
+ this.accept = '';
3873
+ this.multiple = false;
3874
+ this.icon = '';
3875
+ this.text = '';
3876
+ this.labels = {};
3877
+ this.translateService = inject(TranslateService$1);
3878
+ this.dialog = inject(MatDialog);
3879
+ }
3880
+ ngOnInit() {
3881
+ if (!this.icon && !this.text) {
3882
+ this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
3883
+ this.labels = labels;
3884
+ this.text = labels['material.select'];
3885
+ });
3886
+ }
3887
+ }
3888
+ onSelectFile(e) {
3889
+ for (let i = 0, j = e.target.files.length; i < j; i++) {
3890
+ const file = e.target.files[i];
3891
+ const reader = new FileReader();
3892
+ reader.onerror = ((error) => this.onError(error));
3893
+ reader.onload = ((event) => this.onReadEnd(file, event));
3894
+ reader.readAsDataURL(file);
3895
+ }
3896
+ if (e.target.files.length) {
3897
+ this.dialog.open(CaucaSimpleDialogComponent, {
3898
+ width: '250px',
3899
+ disableClose: true,
3900
+ data: {
3901
+ title: this.labels['material.dialogTitle'],
3902
+ message: this.labels['material.dialogMessage']
3903
+ }
3904
+ });
3905
+ }
3906
+ }
3907
+ openDialog(event) {
3908
+ if (this.file) {
3909
+ this.file.nativeElement.click();
3910
+ }
3911
+ event.stopPropagation();
3912
+ }
3913
+ onError(error) {
3914
+ throw error;
3915
+ }
3916
+ onReadEnd(file, e) {
3917
+ this.dialog.closeAll();
3918
+ this.readend.emit({
3919
+ name: file.name,
3920
+ size: file.size,
3921
+ type: file.type,
3922
+ lastModifiedDate: file.lastModifiedDate,
3923
+ content: e.target['result'],
3924
+ file,
3925
+ });
3926
+ }
3927
+ static { this.ɵfac = function CaucaInputFileComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaInputFileComponent)(); }; }
3928
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
3929
+ i0.ɵɵviewQuery(_c0$1, 5);
3930
+ } if (rf & 2) {
3931
+ let _t;
3932
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
3933
+ } }, inputs: { accept: "accept", multiple: "multiple", icon: "icon", text: "text" }, outputs: { readend: "readend" }, decls: 5, vars: 3, consts: [["file", ""], ["mat-raised-button", "", 3, "click"], ["type", "file", "multiple", "multiple", 3, "accept"], ["type", "file", 3, "accept"], ["type", "file", "multiple", "multiple", 3, "change", "accept"], ["type", "file", 3, "change", "accept"]], template: function CaucaInputFileComponent_Template(rf, ctx) { if (rf & 1) {
3934
+ i0.ɵɵelementStart(0, "button", 1);
3935
+ i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { return ctx.openDialog($event); });
3936
+ i0.ɵɵconditionalCreate(1, CaucaInputFileComponent_Conditional_1_Template, 2, 1, "mat-icon");
3937
+ i0.ɵɵconditionalCreate(2, CaucaInputFileComponent_Conditional_2_Template, 2, 1, "span");
3938
+ i0.ɵɵelementEnd();
3939
+ i0.ɵɵconditionalCreate(3, CaucaInputFileComponent_Conditional_3_Template, 2, 1, "input", 2)(4, CaucaInputFileComponent_Conditional_4_Template, 2, 1, "input", 3);
3940
+ } if (rf & 2) {
3941
+ i0.ɵɵadvance();
3942
+ i0.ɵɵconditional(ctx.icon ? 1 : -1);
3943
+ i0.ɵɵadvance();
3944
+ i0.ɵɵconditional(ctx.text ? 2 : -1);
3945
+ i0.ɵɵadvance();
3946
+ i0.ɵɵconditional(ctx.multiple ? 3 : 4);
3947
+ } }, dependencies: [MatButtonModule, i1$1.MatButton, MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
3948
+ }
3949
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
3950
+ type: Component,
3951
+ args: [{ selector: 'cauca-input-file', imports: [MatButtonModule, MatIcon], template: "<button mat-raised-button (click)=\"openDialog($event)\">\n @if (icon) {\n <mat-icon>{{icon}}</mat-icon>\n }\n @if (text) {\n <span>{{text}}</span>\n }\n</button>\n@if (multiple) {\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" multiple=\"multiple\" />\n} @else {\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" />\n}\n\n", styles: [":host input{display:none}\n"] }]
3952
+ }], null, { file: [{
3953
+ type: ViewChild,
3954
+ args: ['file', { static: false }]
3955
+ }], readend: [{
3956
+ type: Output
3957
+ }], accept: [{
3958
+ type: Input
3959
+ }], multiple: [{
3960
+ type: Input
3961
+ }], icon: [{
3962
+ type: Input
3963
+ }], text: [{
3964
+ type: Input
3965
+ }] }); })();
3966
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib/components/deprecated-components/cauca-input-file/cauca-input-file.component.ts", lineNumber: 14 }); })();
3967
+
3968
+ function CaucaInputMultipleLangueComponent_For_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
3969
+ i0.ɵɵelementStart(0, "mat-error");
3970
+ i0.ɵɵtext(1);
3971
+ i0.ɵɵpipe(2, "translate");
3972
+ i0.ɵɵelementEnd();
3973
+ } if (rf & 2) {
3974
+ const ɵ$index_3_r1 = i0.ɵɵnextContext().$index;
3975
+ const ctx_r1 = i0.ɵɵnextContext();
3976
+ i0.ɵɵadvance();
3977
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage(ɵ$index_3_r1)));
3978
+ } }
3979
+ function CaucaInputMultipleLangueComponent_For_2_Template(rf, ctx) { if (rf & 1) {
3980
+ i0.ɵɵelementStart(0, "mat-tab", 1)(1, "mat-form-field", 2);
3981
+ i0.ɵɵelement(2, "input", 3);
3982
+ i0.ɵɵconditionalCreate(3, CaucaInputMultipleLangueComponent_For_2_Conditional_3_Template, 3, 3, "mat-error");
3983
+ i0.ɵɵelementEnd()();
3984
+ } if (rf & 2) {
3985
+ const lang_r3 = ctx.$implicit;
3986
+ const ɵ$index_3_r1 = ctx.$index;
3987
+ const ctx_r1 = i0.ɵɵnextContext();
3988
+ i0.ɵɵproperty("label", lang_r3);
3989
+ i0.ɵɵadvance(2);
3990
+ i0.ɵɵproperty("placeholder", lang_r3)("formControl", ctx_r1.forms[ɵ$index_3_r1]);
3991
+ i0.ɵɵadvance();
3992
+ i0.ɵɵconditional(ctx_r1.forms[ɵ$index_3_r1].invalid ? 3 : -1);
3993
+ } }
3994
+ class CaucaInputMultipleLangueComponent {
3995
+ constructor() {
3996
+ this.value = [];
3997
+ this.forms = [];
3998
+ this.labels = [];
3999
+ this.selectedIndex = 0;
4000
+ this.translate = inject(TranslateService$1);
4001
+ const coreService = inject(CaucaCoreService);
4002
+ this.config = coreService.getConfig();
4003
+ }
4004
+ ngOnInit() {
4005
+ this.translate.get(this.config.languages).subscribe((labels) => {
4006
+ for (const i in labels) {
4007
+ if (labels[i]) {
4008
+ this.labels.push(labels[i]);
4009
+ }
4010
+ }
4011
+ this.initializeForms();
4012
+ });
4013
+ }
4014
+ onTagChanged(tabIndex) {
4015
+ console.log('cauca-material, onTabChanged', tabIndex);
4016
+ }
4017
+ getErrorMessage(index) {
4018
+ return this.forms[index].hasError('required') ? 'error.required' : '';
4019
+ }
4020
+ initializeForms() {
4021
+ this.labels.forEach((item, index) => {
4022
+ this.forms[index] = new UntypedFormControl('', [Validators.required]);
4023
+ this.forms[index].setValue(this.value[index] || '');
4024
+ });
4025
+ }
4026
+ static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaInputMultipleLangueComponent)(); }; }
4027
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, decls: 3, vars: 1, consts: [[3, "selectedIndexChange", "selectedIndex"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) { if (rf & 1) {
4028
+ i0.ɵɵelementStart(0, "mat-tab-group", 0);
4029
+ i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
4030
+ i0.ɵɵrepeaterCreate(1, CaucaInputMultipleLangueComponent_For_2_Template, 4, 4, "mat-tab", 1, i0.ɵɵrepeaterTrackByIdentity);
4031
+ i0.ɵɵelementEnd();
4032
+ } if (rf & 2) {
4033
+ i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
4034
+ i0.ɵɵadvance();
4035
+ i0.ɵɵrepeater(ctx.labels);
4036
+ } }, dependencies: [MatTabGroup, MatTab, MatInput, MatFormFieldModule, i1$4.MatFormField, i1$4.MatError, ReactiveFormsModule, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.RequiredValidator, i1$6.FormControlDirective, TranslateModule, i1.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
4037
+ }
4038
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
4039
+ type: Component,
4040
+ args: [{ selector: 'cauca-input-multiple-langue', imports: [MatTabGroup, MatTab, MatInput, MatFormFieldModule, ReactiveFormsModule, TranslateModule], template: "<mat-tab-group [selectedIndex]=\"selectedIndex\" (selectedIndexChange)=\"onTagChanged($event)\">\n @for (lang of labels; track lang; let i = $index) {\n <mat-tab [label]=\"lang\">\n <mat-form-field hideRequiredMarker=\"never\">\n <input matInput [placeholder]=\"lang\" [formControl]=\"forms[i]\" required=\"required\">\n @if (forms[i].invalid) {\n <mat-error>{{getErrorMessage(i) | translate}}</mat-error>\n }\n </mat-form-field>\n </mat-tab>\n }\n</mat-tab-group>", styles: [".mat-mdc-form-field{width:100%}\n"] }]
4041
+ }], () => [], { value: [{
4042
+ type: Input
4043
+ }] }); })();
4044
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib/components/deprecated-components/cauca-input-multiple-langue/cauca-input-multiple-langue.component.ts", lineNumber: 16 }); })();
4045
+
4046
+ const _c0 = ["container"];
4047
+ function CaucaSlideshowComponent_For_3_Template(rf, ctx) { if (rf & 1) {
4048
+ i0.ɵɵdomElementStart(0, "div");
4049
+ i0.ɵɵdomElement(1, "img", 3);
4050
+ i0.ɵɵdomElementEnd();
4051
+ } if (rf & 2) {
4052
+ const url_r1 = ctx.$implicit;
4053
+ const ɵ$index_3_r2 = ctx.$index;
4054
+ const ctx_r2 = i0.ɵɵnextContext();
4055
+ i0.ɵɵclassProp("active", ɵ$index_3_r2 === ctx_r2.selectedIndex)("entering", ctx_r2.states[ɵ$index_3_r2] === "in")("leaving", ctx_r2.states[ɵ$index_3_r2] === "out");
4056
+ i0.ɵɵadvance();
4057
+ i0.ɵɵdomProperty("src", url_r1, i0.ɵɵsanitizeUrl);
4058
+ } }
4059
+ class CaucaSlideshowComponent {
4060
+ constructor() {
4061
+ this.height = '150px';
4062
+ this.autoPlay = true;
4063
+ this.states = [];
4064
+ this.selectedIndex = 0;
4065
+ this.timer = null;
4066
+ this.items = [];
4067
+ }
4068
+ set images(list) {
4069
+ this.items = list;
4070
+ this.restart();
4071
+ }
4072
+ get images() {
4073
+ return this.items;
4074
+ }
4075
+ ngOnInit() {
4076
+ this.container.nativeElement.style.height = this.height;
4077
+ this.container.nativeElement.style.width = '100%';
4078
+ }
4079
+ getState(index) {
4080
+ if (this.states[index]) {
4081
+ return this.states[index];
4082
+ }
4083
+ return (this.selectedIndex === index ? 'in' : 'out');
4084
+ }
4085
+ restart() {
4086
+ if (this.timer) {
4087
+ window.clearInterval(this.timer);
4088
+ }
4089
+ if (this.images && this.images.length) {
4090
+ this.timer = window.setInterval(() => this.changed('next'), 5000);
4091
+ }
4092
+ }
4093
+ next() {
4094
+ if (this.selectedIndex < this.items.length - 1) {
4095
+ this.selectedIndex++;
4096
+ }
4097
+ else {
4098
+ this.selectedIndex = 0;
4099
+ }
4100
+ }
4101
+ changed(action) {
4102
+ this.states[this.selectedIndex] = 'out';
4103
+ this[action]();
4104
+ this.states[this.selectedIndex] = 'in';
4105
+ }
4106
+ static { this.ɵfac = function CaucaSlideshowComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaSlideshowComponent)(); }; }
4107
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
4108
+ i0.ɵɵviewQuery(_c0, 7);
4109
+ } if (rf & 2) {
4110
+ let _t;
4111
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
4112
+ } }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 4, vars: 0, consts: [["container", ""], [1, "slideshow"], [3, "active", "entering", "leaving"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) { if (rf & 1) {
4113
+ i0.ɵɵdomElementStart(0, "div", 1, 0);
4114
+ i0.ɵɵrepeaterCreate(2, CaucaSlideshowComponent_For_3_Template, 2, 7, "div", 2, i0.ɵɵrepeaterTrackByIdentity);
4115
+ i0.ɵɵdomElementEnd();
4116
+ } if (rf & 2) {
4117
+ i0.ɵɵadvance(2);
4118
+ i0.ɵɵrepeater(ctx.images);
4119
+ } }, styles: [".slideshow[_ngcontent-%COMP%]{margin:0 auto;position:relative;overflow:hidden}.slideshow[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;transition:transform .5s ease-in,opacity .5s ease-in;transform:translate(100%);opacity:0}.slideshow[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideshow[_ngcontent-%COMP%] > div.leaving[_ngcontent-%COMP%]{transform:translate(-100%);opacity:0}.slideshow[_ngcontent-%COMP%] > div.entering[_ngcontent-%COMP%]{transform:translate(0);opacity:1}img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;margin:0 auto;display:block}"] }); }
4120
+ }
4121
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
4122
+ type: Component,
4123
+ args: [{ selector: 'cauca-slideshow', imports: [], template: "<div #container class=\"slideshow\">\n @for (url of images; track url; let index = $index) {\n <div [class.active]=\"index === selectedIndex\" [class.entering]=\"states[index] === 'in'\" [class.leaving]=\"states[index] === 'out'\">\n <img [src]=\"url\" />\n </div>\n }\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute;transition:transform .5s ease-in,opacity .5s ease-in;transform:translate(100%);opacity:0}.slideshow>div.active{transform:translate(0);opacity:1}.slideshow>div.leaving{transform:translate(-100%);opacity:0}.slideshow>div.entering{transform:translate(0);opacity:1}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
4124
+ }], null, { container: [{
4125
+ type: ViewChild,
4126
+ args: ['container', { static: true }]
4127
+ }], height: [{
4128
+ type: Input
4129
+ }], autoPlay: [{
4130
+ type: Input
4131
+ }], images: [{
4132
+ type: Input
4133
+ }] }); })();
4134
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.ts", lineNumber: 10 }); })();
4135
+
4136
+ /*
4137
+ * Public API Surface of cauca-material
4138
+ */
4139
+
4140
+ /**
4141
+ * Generated bundle index. Do not edit.
4142
+ */
4143
+
4144
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, BreadcrumbService, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent, provideCaucaMaterial };
4145
+ //# sourceMappingURL=cauca-911-material.mjs.map