valtech-components 2.0.46 → 2.0.47

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 (331) hide show
  1. package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +31 -0
  2. package/esm2022/lib/components/atoms/avatar/types.mjs +2 -0
  3. package/esm2022/lib/components/atoms/box/box.component.mjs +47 -0
  4. package/esm2022/lib/components/atoms/box/types.mjs +2 -0
  5. package/esm2022/lib/components/atoms/button/button.component.mjs +69 -0
  6. package/esm2022/lib/components/atoms/button/factory.mjs +217 -0
  7. package/esm2022/lib/components/atoms/display/display.component.mjs +28 -0
  8. package/esm2022/lib/components/atoms/display/types.mjs +2 -0
  9. package/esm2022/lib/components/atoms/divider/divider.component.mjs +17 -0
  10. package/esm2022/lib/components/atoms/divider/types.mjs +2 -0
  11. package/esm2022/lib/components/atoms/href/href.component.mjs +51 -0
  12. package/esm2022/lib/components/atoms/href/types.mjs +2 -0
  13. package/esm2022/lib/components/atoms/icon/icon.component.mjs +19 -0
  14. package/esm2022/lib/components/atoms/icon/types.mjs +2 -0
  15. package/esm2022/lib/components/atoms/image/image.component.mjs +50 -0
  16. package/esm2022/lib/components/atoms/image/types.mjs +2 -0
  17. package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +36 -0
  18. package/esm2022/lib/components/atoms/progress-bar/types.mjs +2 -0
  19. package/esm2022/lib/components/atoms/text/text.component.mjs +24 -0
  20. package/esm2022/lib/components/atoms/text/types.mjs +2 -0
  21. package/esm2022/lib/components/atoms/title/title.component.mjs +31 -0
  22. package/esm2022/lib/components/atoms/title/types.mjs +2 -0
  23. package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +32 -0
  24. package/esm2022/lib/components/molecules/alert-box/types.mjs +2 -0
  25. package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +49 -0
  26. package/esm2022/lib/components/molecules/button-group/types.mjs +2 -0
  27. package/esm2022/lib/components/molecules/card/card.component.mjs +365 -0
  28. package/esm2022/lib/components/molecules/card/types.mjs +16 -0
  29. package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +15 -0
  30. package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +23 -0
  31. package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +32 -0
  32. package/esm2022/lib/components/molecules/content-loader/types.mjs +2 -0
  33. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +73 -0
  34. package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +19 -0
  35. package/esm2022/lib/components/molecules/expandable-text/expandable-text.component.mjs +58 -0
  36. package/esm2022/lib/components/molecules/expandable-text/types.mjs +2 -0
  37. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +69 -0
  38. package/esm2022/lib/components/molecules/hint/hint.component.mjs +52 -0
  39. package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +18 -0
  40. package/esm2022/lib/components/molecules/link/link.component.mjs +53 -0
  41. package/esm2022/lib/components/molecules/link/types.mjs +2 -0
  42. package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +37 -0
  43. package/esm2022/lib/components/molecules/links-cake/types.mjs +2 -0
  44. package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +33 -0
  45. package/esm2022/lib/components/molecules/notes-box/types.mjs +2 -0
  46. package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +18 -0
  47. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +44 -0
  48. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +45 -0
  49. package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +94 -0
  50. package/esm2022/lib/components/molecules/progress-status/types.mjs +2 -0
  51. package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +84 -0
  52. package/esm2022/lib/components/molecules/prompter/types.mjs +2 -0
  53. package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +33 -0
  54. package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +61 -0
  55. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +18 -0
  56. package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +77 -0
  57. package/esm2022/lib/components/molecules/title-block/types.mjs +2 -0
  58. package/esm2022/lib/components/organisms/banner/banner.component.mjs +75 -0
  59. package/esm2022/lib/components/organisms/banner/types.mjs +2 -0
  60. package/esm2022/lib/components/organisms/footer/footer.component.mjs +50 -0
  61. package/esm2022/lib/components/organisms/footer/types.mjs +2 -0
  62. package/esm2022/lib/components/organisms/form/factory.mjs +8 -0
  63. package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +76 -0
  64. package/esm2022/lib/components/organisms/form/form.component.mjs +230 -0
  65. package/esm2022/lib/components/organisms/header/header.component.mjs +32 -0
  66. package/esm2022/lib/components/organisms/header/types.mjs +2 -0
  67. package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +362 -0
  68. package/esm2022/lib/components/organisms/item-list/types.mjs +2 -0
  69. package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +44 -0
  70. package/esm2022/lib/components/organisms/no-content/types.mjs +2 -0
  71. package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +171 -0
  72. package/esm2022/lib/components/organisms/toolbar/types.mjs +2 -0
  73. package/esm2022/lib/components/organisms/wizard/types.mjs +7 -0
  74. package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +107 -0
  75. package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +103 -0
  76. package/esm2022/lib/components/templates/layout/layout.component.mjs +19 -0
  77. package/esm2022/lib/components/templates/simple/simple.component.mjs +102 -0
  78. package/esm2022/lib/components/templates/simple/types.mjs +2 -0
  79. package/esm2022/lib/components/types.mjs +36 -0
  80. package/esm2022/lib/services/download.service.mjs +63 -0
  81. package/esm2022/lib/services/icons.service.mjs +30 -0
  82. package/esm2022/lib/services/in-app-browser.service.mjs +24 -0
  83. package/esm2022/lib/services/lang-provider/components/lang-settings.mjs +13 -0
  84. package/esm2022/lib/services/lang-provider/components/theme-settings.mjs +15 -0
  85. package/esm2022/lib/services/lang-provider/content.mjs +8 -0
  86. package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +39 -0
  87. package/esm2022/lib/services/lang-provider/types.mjs +14 -0
  88. package/esm2022/lib/services/local-storage.service.mjs +16 -0
  89. package/esm2022/lib/services/navigation.service.mjs +39 -0
  90. package/esm2022/lib/services/theme.service.mjs +97 -0
  91. package/esm2022/lib/services/types.mjs +3 -0
  92. package/esm2022/lib/shared/constants/storage.mjs +3 -0
  93. package/esm2022/lib/shared/utils/dom.mjs +17 -0
  94. package/esm2022/lib/shared/utils/styles.mjs +25 -0
  95. package/esm2022/public-api.mjs +95 -0
  96. package/esm2022/valtech-components.mjs +5 -0
  97. package/fesm2022/valtech-components.mjs +3556 -0
  98. package/fesm2022/valtech-components.mjs.map +1 -0
  99. package/index.d.ts +5 -0
  100. package/lib/components/atoms/avatar/avatar.component.d.ts +12 -0
  101. package/lib/components/atoms/avatar/types.d.ts +6 -0
  102. package/lib/components/atoms/box/box.component.d.ts +12 -0
  103. package/lib/components/atoms/box/types.d.ts +7 -0
  104. package/lib/components/atoms/button/button.component.d.ts +20 -0
  105. package/lib/components/atoms/button/factory.d.ts +71 -0
  106. package/lib/components/atoms/display/display.component.d.ts +10 -0
  107. package/lib/components/atoms/display/types.d.ts +6 -0
  108. package/lib/components/atoms/divider/divider.component.d.ts +10 -0
  109. package/lib/components/atoms/divider/types.d.ts +5 -0
  110. package/lib/components/atoms/href/href.component.d.ts +15 -0
  111. package/lib/components/atoms/href/types.d.ts +9 -0
  112. package/lib/components/atoms/icon/icon.component.d.ts +11 -0
  113. package/lib/components/atoms/icon/types.d.ts +6 -0
  114. package/lib/components/atoms/image/image.component.d.ts +12 -0
  115. package/lib/components/atoms/image/types.d.ts +11 -0
  116. package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +10 -0
  117. package/lib/components/atoms/progress-bar/types.d.ts +9 -0
  118. package/lib/components/atoms/text/text.component.d.ts +10 -0
  119. package/lib/components/atoms/text/types.d.ts +7 -0
  120. package/lib/components/atoms/title/title.component.d.ts +10 -0
  121. package/lib/components/atoms/title/types.d.ts +7 -0
  122. package/lib/components/molecules/alert-box/alert-box.component.d.ts +10 -0
  123. package/{src/lib/components/molecules/alert-box/types.ts → lib/components/molecules/alert-box/types.d.ts} +3 -4
  124. package/lib/components/molecules/button-group/button-group.component.d.ts +13 -0
  125. package/lib/components/molecules/button-group/types.d.ts +6 -0
  126. package/lib/components/molecules/card/card.component.d.ts +16 -0
  127. package/lib/components/molecules/card/types.d.ts +32 -0
  128. package/lib/components/molecules/check-input/check-input.component.d.ts +8 -0
  129. package/lib/components/molecules/comment-input/comment-input.component.d.ts +10 -0
  130. package/lib/components/molecules/content-loader/content-loader.component.d.ts +10 -0
  131. package/lib/components/molecules/content-loader/types.d.ts +7 -0
  132. package/lib/components/molecules/date-input/date-input.component.d.ts +10 -0
  133. package/lib/components/molecules/email-input/email-input.component.d.ts +10 -0
  134. package/lib/components/molecules/expandable-text/expandable-text.component.d.ts +13 -0
  135. package/lib/components/molecules/expandable-text/types.d.ts +6 -0
  136. package/lib/components/molecules/file-input/file-input.component.d.ts +15 -0
  137. package/lib/components/molecules/hint/hint.component.d.ts +11 -0
  138. package/lib/components/molecules/hour-input/hour-input.component.d.ts +10 -0
  139. package/lib/components/molecules/link/link.component.d.ts +14 -0
  140. package/lib/components/molecules/link/types.d.ts +9 -0
  141. package/lib/components/molecules/links-cake/links-cake.component.d.ts +10 -0
  142. package/{src/lib/components/molecules/links-cake/types.ts → lib/components/molecules/links-cake/types.d.ts} +3 -4
  143. package/lib/components/molecules/notes-box/notes-box.component.d.ts +10 -0
  144. package/lib/components/molecules/notes-box/types.d.ts +8 -0
  145. package/lib/components/molecules/number-input/number-input.component.d.ts +10 -0
  146. package/lib/components/molecules/password-input/password-input.component.d.ts +11 -0
  147. package/lib/components/molecules/pin-input/pin-input.component.d.ts +15 -0
  148. package/lib/components/molecules/progress-status/progress-status.component.d.ts +14 -0
  149. package/lib/components/molecules/progress-status/types.d.ts +10 -0
  150. package/lib/components/molecules/prompter/prompter.component.d.ts +12 -0
  151. package/{src/lib/components/molecules/prompter/types.ts → lib/components/molecules/prompter/types.d.ts} +6 -7
  152. package/lib/components/molecules/radio-input/radio-input.component.d.ts +10 -0
  153. package/lib/components/molecules/searchbar/searchbar.component.d.ts +14 -0
  154. package/lib/components/molecules/text-input/text-input.component.d.ts +10 -0
  155. package/lib/components/molecules/title-block/title-block.component.d.ts +10 -0
  156. package/lib/components/molecules/title-block/types.d.ts +12 -0
  157. package/lib/components/organisms/banner/banner.component.d.ts +14 -0
  158. package/lib/components/organisms/banner/types.d.ts +12 -0
  159. package/lib/components/organisms/footer/footer.component.d.ts +12 -0
  160. package/{src/lib/components/organisms/footer/types.ts → lib/components/organisms/footer/types.d.ts} +3 -4
  161. package/lib/components/organisms/form/factory.d.ts +5 -0
  162. package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +15 -0
  163. package/lib/components/organisms/form/form.component.d.ts +23 -0
  164. package/lib/components/organisms/header/header.component.d.ts +12 -0
  165. package/{src/lib/components/organisms/header/types.ts → lib/components/organisms/header/types.d.ts} +3 -4
  166. package/lib/components/organisms/item-list/item-list.component.d.ts +23 -0
  167. package/lib/components/organisms/item-list/types.d.ts +38 -0
  168. package/lib/components/organisms/no-content/no-content.component.d.ts +12 -0
  169. package/{src/lib/components/organisms/no-content/types.ts → lib/components/organisms/no-content/types.d.ts} +3 -4
  170. package/lib/components/organisms/toolbar/toolbar.component.d.ts +21 -0
  171. package/lib/components/organisms/toolbar/types.d.ts +11 -0
  172. package/lib/components/organisms/wizard/types.d.ts +20 -0
  173. package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +21 -0
  174. package/lib/components/organisms/wizard/wizard.component.d.ts +22 -0
  175. package/lib/components/templates/layout/layout.component.d.ts +5 -0
  176. package/lib/components/templates/simple/simple.component.d.ts +10 -0
  177. package/{src/lib/components/templates/simple/types.ts → lib/components/templates/simple/types.d.ts} +5 -6
  178. package/lib/components/types.d.ts +113 -0
  179. package/lib/services/download.service.d.ts +8 -0
  180. package/lib/services/icons.service.d.ts +6 -0
  181. package/lib/services/in-app-browser.service.d.ts +9 -0
  182. package/lib/services/lang-provider/components/lang-settings.d.ts +3 -0
  183. package/lib/services/lang-provider/components/theme-settings.d.ts +3 -0
  184. package/lib/services/lang-provider/content.d.ts +6 -0
  185. package/lib/services/lang-provider/lang-provider.service.d.ts +17 -0
  186. package/lib/services/lang-provider/types.d.ts +15 -0
  187. package/lib/services/local-storage.service.d.ts +6 -0
  188. package/lib/services/navigation.service.d.ts +15 -0
  189. package/lib/services/theme.service.d.ts +27 -0
  190. package/{src/lib/services/types.ts → lib/services/types.d.ts} +2 -4
  191. package/lib/shared/constants/storage.d.ts +2 -0
  192. package/lib/shared/utils/dom.d.ts +3 -0
  193. package/lib/shared/utils/styles.d.ts +1 -0
  194. package/package.json +13 -15
  195. package/{src/public-api.ts → public-api.d.ts} +0 -13
  196. package/ng-package.json +0 -10
  197. package/release.sh +0 -76
  198. package/src/lib/components/atoms/avatar/avatar.component.scss +0 -20
  199. package/src/lib/components/atoms/avatar/avatar.component.ts +0 -29
  200. package/src/lib/components/atoms/avatar/types.ts +0 -6
  201. package/src/lib/components/atoms/box/box.component.scss +0 -57
  202. package/src/lib/components/atoms/box/box.component.ts +0 -38
  203. package/src/lib/components/atoms/box/types.ts +0 -8
  204. package/src/lib/components/atoms/button/button.component.scss +0 -5
  205. package/src/lib/components/atoms/button/button.component.ts +0 -53
  206. package/src/lib/components/atoms/button/factory.ts +0 -444
  207. package/src/lib/components/atoms/display/display.component.scss +0 -17
  208. package/src/lib/components/atoms/display/display.component.ts +0 -25
  209. package/src/lib/components/atoms/display/types.ts +0 -7
  210. package/src/lib/components/atoms/divider/divider.component.scss +0 -62
  211. package/src/lib/components/atoms/divider/divider.component.ts +0 -18
  212. package/src/lib/components/atoms/divider/types.ts +0 -5
  213. package/src/lib/components/atoms/href/href.component.scss +0 -25
  214. package/src/lib/components/atoms/href/href.component.ts +0 -43
  215. package/src/lib/components/atoms/href/types.ts +0 -10
  216. package/src/lib/components/atoms/icon/icon.component.scss +0 -33
  217. package/src/lib/components/atoms/icon/icon.component.ts +0 -21
  218. package/src/lib/components/atoms/icon/types.ts +0 -7
  219. package/src/lib/components/atoms/image/image.component.scss +0 -70
  220. package/src/lib/components/atoms/image/image.component.ts +0 -40
  221. package/src/lib/components/atoms/image/types.ts +0 -11
  222. package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +0 -22
  223. package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +0 -29
  224. package/src/lib/components/atoms/progress-bar/types.ts +0 -10
  225. package/src/lib/components/atoms/text/text.component.scss +0 -33
  226. package/src/lib/components/atoms/text/text.component.ts +0 -23
  227. package/src/lib/components/atoms/text/types.ts +0 -8
  228. package/src/lib/components/atoms/title/title.component.scss +0 -17
  229. package/src/lib/components/atoms/title/title.component.ts +0 -27
  230. package/src/lib/components/atoms/title/types.ts +0 -8
  231. package/src/lib/components/molecules/alert-box/alert-box.component.scss +0 -10
  232. package/src/lib/components/molecules/alert-box/alert-box.component.ts +0 -28
  233. package/src/lib/components/molecules/button-group/button-group.component.scss +0 -31
  234. package/src/lib/components/molecules/button-group/button-group.component.ts +0 -44
  235. package/src/lib/components/molecules/button-group/types.ts +0 -7
  236. package/src/lib/components/molecules/card/card.component.scss +0 -46
  237. package/src/lib/components/molecules/card/card.component.ts +0 -218
  238. package/src/lib/components/molecules/card/types.ts +0 -36
  239. package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
  240. package/src/lib/components/molecules/check-input/check-input.component.ts +0 -16
  241. package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
  242. package/src/lib/components/molecules/comment-input/comment-input.component.ts +0 -22
  243. package/src/lib/components/molecules/content-loader/content-loader.component.scss +0 -42
  244. package/src/lib/components/molecules/content-loader/content-loader.component.ts +0 -27
  245. package/src/lib/components/molecules/content-loader/types.ts +0 -8
  246. package/src/lib/components/molecules/date-input/date-input.component.scss +0 -11
  247. package/src/lib/components/molecules/date-input/date-input.component.ts +0 -47
  248. package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
  249. package/src/lib/components/molecules/email-input/email-input.component.ts +0 -20
  250. package/src/lib/components/molecules/expandable-text/expandable-text.component.ts +0 -89
  251. package/src/lib/components/molecules/expandable-text/types.ts +0 -6
  252. package/src/lib/components/molecules/file-input/file-input.component.scss +0 -11
  253. package/src/lib/components/molecules/file-input/file-input.component.ts +0 -56
  254. package/src/lib/components/molecules/hint/hint.component.scss +0 -5
  255. package/src/lib/components/molecules/hint/hint.component.ts +0 -42
  256. package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
  257. package/src/lib/components/molecules/hour-input/hour-input.component.ts +0 -19
  258. package/src/lib/components/molecules/link/link.component.scss +0 -5
  259. package/src/lib/components/molecules/link/link.component.ts +0 -52
  260. package/src/lib/components/molecules/link/types.ts +0 -10
  261. package/src/lib/components/molecules/links-cake/links-cake.component.scss +0 -9
  262. package/src/lib/components/molecules/links-cake/links-cake.component.ts +0 -30
  263. package/src/lib/components/molecules/notes-box/notes-box.component.scss +0 -5
  264. package/src/lib/components/molecules/notes-box/notes-box.component.ts +0 -28
  265. package/src/lib/components/molecules/notes-box/types.ts +0 -9
  266. package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
  267. package/src/lib/components/molecules/number-input/number-input.component.ts +0 -19
  268. package/src/lib/components/molecules/password-input/password-input.component.scss +0 -7
  269. package/src/lib/components/molecules/password-input/password-input.component.ts +0 -33
  270. package/src/lib/components/molecules/pin-input/pin-input.component.scss +0 -13
  271. package/src/lib/components/molecules/pin-input/pin-input.component.ts +0 -42
  272. package/src/lib/components/molecules/progress-status/progress-status.component.scss +0 -41
  273. package/src/lib/components/molecules/progress-status/progress-status.component.ts +0 -70
  274. package/src/lib/components/molecules/progress-status/types.ts +0 -11
  275. package/src/lib/components/molecules/prompter/prompter.component.scss +0 -34
  276. package/src/lib/components/molecules/prompter/prompter.component.ts +0 -58
  277. package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
  278. package/src/lib/components/molecules/radio-input/radio-input.component.ts +0 -27
  279. package/src/lib/components/molecules/searchbar/searchbar.component.scss +0 -9
  280. package/src/lib/components/molecules/searchbar/searchbar.component.ts +0 -47
  281. package/src/lib/components/molecules/text-input/text-input.component.scss +0 -1
  282. package/src/lib/components/molecules/text-input/text-input.component.ts +0 -19
  283. package/src/lib/components/molecules/title-block/title-block.component.scss +0 -36
  284. package/src/lib/components/molecules/title-block/title-block.component.ts +0 -50
  285. package/src/lib/components/molecules/title-block/types.ts +0 -14
  286. package/src/lib/components/organisms/banner/banner.component.scss +0 -45
  287. package/src/lib/components/organisms/banner/banner.component.ts +0 -57
  288. package/src/lib/components/organisms/banner/types.ts +0 -13
  289. package/src/lib/components/organisms/footer/footer.component.scss +0 -3
  290. package/src/lib/components/organisms/footer/footer.component.ts +0 -40
  291. package/src/lib/components/organisms/form/factory.ts +0 -11
  292. package/src/lib/components/organisms/form/form-footer/form-footer.component.scss +0 -0
  293. package/src/lib/components/organisms/form/form-footer/form-footer.component.ts +0 -63
  294. package/src/lib/components/organisms/form/form.component.scss +0 -16
  295. package/src/lib/components/organisms/form/form.component.ts +0 -183
  296. package/src/lib/components/organisms/header/header.component.scss +0 -0
  297. package/src/lib/components/organisms/header/header.component.ts +0 -31
  298. package/src/lib/components/organisms/item-list/item-list.component.scss +0 -41
  299. package/src/lib/components/organisms/item-list/item-list.component.ts +0 -223
  300. package/src/lib/components/organisms/item-list/types.ts +0 -42
  301. package/src/lib/components/organisms/no-content/no-content.component.scss +0 -11
  302. package/src/lib/components/organisms/no-content/no-content.component.ts +0 -37
  303. package/src/lib/components/organisms/toolbar/toolbar.component.scss +0 -13
  304. package/src/lib/components/organisms/toolbar/toolbar.component.ts +0 -123
  305. package/src/lib/components/organisms/toolbar/types.ts +0 -12
  306. package/src/lib/components/organisms/wizard/types.ts +0 -24
  307. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.scss +0 -0
  308. package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.ts +0 -90
  309. package/src/lib/components/organisms/wizard/wizard.component.scss +0 -15
  310. package/src/lib/components/organisms/wizard/wizard.component.ts +0 -99
  311. package/src/lib/components/templates/layout/layout.component.scss +0 -22
  312. package/src/lib/components/templates/layout/layout.component.ts +0 -14
  313. package/src/lib/components/templates/simple/simple.component.ts +0 -75
  314. package/src/lib/components/types.ts +0 -122
  315. package/src/lib/services/download.service.ts +0 -58
  316. package/src/lib/services/icons.service.ts +0 -36
  317. package/src/lib/services/in-app-browser.service.ts +0 -19
  318. package/src/lib/services/lang-provider/components/lang-settings.ts +0 -14
  319. package/src/lib/services/lang-provider/components/theme-settings.ts +0 -16
  320. package/src/lib/services/lang-provider/content.ts +0 -14
  321. package/src/lib/services/lang-provider/lang-provider.service.ts +0 -38
  322. package/src/lib/services/lang-provider/types.ts +0 -25
  323. package/src/lib/services/local-storage.service.ts +0 -18
  324. package/src/lib/services/navigation.service.ts +0 -39
  325. package/src/lib/services/theme.service.ts +0 -102
  326. package/src/lib/shared/constants/storage.ts +0 -2
  327. package/src/lib/shared/utils/dom.ts +0 -19
  328. package/src/lib/shared/utils/styles.ts +0 -27
  329. package/tsconfig.lib.json +0 -14
  330. package/tsconfig.lib.prod.json +0 -10
  331. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,3556 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, Injectable, ViewChild, inject, InjectionToken, Inject } from '@angular/core';
3
+ import { IonAvatar, IonCard, IonIcon, IonButton, IonSpinner, IonText, IonProgressBar, IonCardContent, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCheckbox, IonButtons, IonTextarea, IonDatetime, IonDatetimeButton, IonModal, IonInput, IonRadioGroup, IonRadio, IonSearchbar, IonToolbar, IonTitle, IonFooter, IonHeader, IonList, IonListHeader, IonLabel, IonNote, IonItem, IonContent } from '@ionic/angular/standalone';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule, NgIf, NgFor, NgStyle, NgClass } from '@angular/common';
6
+ import { addIcons } from 'ionicons';
7
+ import { addOutline, addCircleOutline, alertOutline, alertCircleOutline, arrowBackOutline, arrowForwardOutline, arrowDownOutline, checkmarkCircleOutline, ellipsisHorizontalOutline, notificationsOutline, chevronForwardOutline, chevronBackOutline } from 'ionicons/icons';
8
+ import * as i1$1 from '@angular/forms';
9
+ import { ReactiveFormsModule, Validators } from '@angular/forms';
10
+ import { Router, RouterLink } from '@angular/router';
11
+ import { Browser } from '@capacitor/browser';
12
+ import * as i1$2 from 'ng-otp-input';
13
+ import { NgOtpInputComponent, NgOtpInputModule } from 'ng-otp-input';
14
+ import * as i1$3 from '@ionic/angular';
15
+ import { BehaviorSubject } from 'rxjs';
16
+
17
+ class AvatarComponent {
18
+ constructor() {
19
+ this.onClick = new EventEmitter();
20
+ }
21
+ ngOnInit() { }
22
+ onClickHandler() {
23
+ this.onClick.emit();
24
+ }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AvatarComponent, isStandalone: true, selector: "val-avatar", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
27
+ <ion-avatar aria-hidden="true" [class]="props.size" [class.box]="props.box" (click)="onClickHandler()">
28
+ <img alt="profile image" [src]="props.image || props.default" />
29
+ </ion-avatar>
30
+ `, isInline: true, styles: [".box{--border-radius: pxToRem(4)}.small{width:1.75rem;height:1.75rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}\n"], dependencies: [{ kind: "component", type: IonAvatar, selector: "ion-avatar" }] }); }
31
+ }
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AvatarComponent, decorators: [{
33
+ type: Component,
34
+ args: [{ selector: 'val-avatar', standalone: true, imports: [IonAvatar], template: `
35
+ <ion-avatar aria-hidden="true" [class]="props.size" [class.box]="props.box" (click)="onClickHandler()">
36
+ <img alt="profile image" [src]="props.image || props.default" />
37
+ </ion-avatar>
38
+ `, styles: [".box{--border-radius: pxToRem(4)}.small{width:1.75rem;height:1.75rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}\n"] }]
39
+ }], ctorParameters: () => [], propDecorators: { props: [{
40
+ type: Input
41
+ }], onClick: [{
42
+ type: Output
43
+ }] } });
44
+
45
+ class BoxComponent {
46
+ constructor() {
47
+ this.onClick = new EventEmitter();
48
+ }
49
+ ngOnInit() { }
50
+ clickHandler() {
51
+ this.onClick.emit();
52
+ }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
54
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: BoxComponent, isStandalone: true, selector: "val-box", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
55
+ <ion-card
56
+ class="box"
57
+ [color]="props.color"
58
+ [class.bordered]="props.bordered"
59
+ [class.transparent]="!props.color"
60
+ [class.left-border]="props.leftBorder"
61
+ >
62
+ <ion-icon *ngIf="!!props.icon" class="icon" [name]="props.icon" (click)="clickHandler()"></ion-icon>
63
+ <ng-content select="[body]"></ng-content>
64
+ </ion-card>
65
+ `, isInline: true, styles: [".bordered{border:.0625rem solid var(--ion-color-medium)}.box{width:100%;margin:0rem;border-radius:0rem;box-shadow:none;padding:.25rem}@media (min-width: 768px){.box{padding:.5rem}}.icon{cursor:pointer;margin:0rem;padding:0rem;position:absolute;right:.25rem;top:.25rem;font-size:1rem}@media (min-width: 768px){.icon{right:.5rem;top:.5rem;font-size:1.5rem}}.left-border{border-left:.1875rem solid #dde3ed}.left-border.small{border-width:.1875rem}.left-border.medium{border-width:.375rem}.left-border.large{border-width:.4375rem}.left-border.xlarge{border-width:.5rem}.transparent{--background: transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BoxComponent, decorators: [{
68
+ type: Component,
69
+ args: [{ selector: 'val-box', standalone: true, imports: [CommonModule, IonCard, IonIcon], template: `
70
+ <ion-card
71
+ class="box"
72
+ [color]="props.color"
73
+ [class.bordered]="props.bordered"
74
+ [class.transparent]="!props.color"
75
+ [class.left-border]="props.leftBorder"
76
+ >
77
+ <ion-icon *ngIf="!!props.icon" class="icon" [name]="props.icon" (click)="clickHandler()"></ion-icon>
78
+ <ng-content select="[body]"></ng-content>
79
+ </ion-card>
80
+ `, styles: [".bordered{border:.0625rem solid var(--ion-color-medium)}.box{width:100%;margin:0rem;border-radius:0rem;box-shadow:none;padding:.25rem}@media (min-width: 768px){.box{padding:.5rem}}.icon{cursor:pointer;margin:0rem;padding:0rem;position:absolute;right:.25rem;top:.25rem;font-size:1rem}@media (min-width: 768px){.icon{right:.5rem;top:.5rem;font-size:1.5rem}}.left-border{border-left:.1875rem solid #dde3ed}.left-border.small{border-width:.1875rem}.left-border.medium{border-width:.375rem}.left-border.large{border-width:.4375rem}.left-border.xlarge{border-width:.5rem}.transparent{--background: transparent}\n"] }]
81
+ }], ctorParameters: () => [], propDecorators: { props: [{
82
+ type: Input
83
+ }], onClick: [{
84
+ type: Output
85
+ }] } });
86
+
87
+ const ENABLED = 'ENABLED';
88
+ const DISABLED = 'DISABLED';
89
+ const WORKING = 'WORKING';
90
+ const ERROR = 'ERROR';
91
+ const ComponentStates = { ENABLED, DISABLED, WORKING, ERROR };
92
+ var ActionType;
93
+ (function (ActionType) {
94
+ ActionType[ActionType["BROWSER_NEW_TAB"] = 0] = "BROWSER_NEW_TAB";
95
+ ActionType[ActionType["BROWSER_DOWNLOAD"] = 1] = "BROWSER_DOWNLOAD";
96
+ ActionType[ActionType["NATIVE_DOWNLOAD"] = 2] = "NATIVE_DOWNLOAD";
97
+ ActionType[ActionType["APP_NAVIGATION"] = 3] = "APP_NAVIGATION";
98
+ ActionType[ActionType["BROWSER_NAVIGATION"] = 4] = "BROWSER_NAVIGATION";
99
+ })(ActionType || (ActionType = {}));
100
+ var InputType;
101
+ (function (InputType) {
102
+ InputType[InputType["TEXT"] = 0] = "TEXT";
103
+ InputType[InputType["EMAIL"] = 1] = "EMAIL";
104
+ InputType[InputType["PASSWORD"] = 2] = "PASSWORD";
105
+ InputType[InputType["COMMENT"] = 3] = "COMMENT";
106
+ InputType[InputType["NUMBER"] = 4] = "NUMBER";
107
+ InputType[InputType["PIN_CODE"] = 5] = "PIN_CODE";
108
+ InputType[InputType["DATE"] = 6] = "DATE";
109
+ InputType[InputType["HOUR"] = 7] = "HOUR";
110
+ InputType[InputType["CHECK"] = 8] = "CHECK";
111
+ InputType[InputType["RADIO"] = 9] = "RADIO";
112
+ InputType[InputType["SELECT"] = 10] = "SELECT";
113
+ InputType[InputType["FILE"] = 11] = "FILE";
114
+ })(InputType || (InputType = {}));
115
+ var ToolbarActionType;
116
+ (function (ToolbarActionType) {
117
+ ToolbarActionType["AVATAR"] = "AVATAR";
118
+ ToolbarActionType["ICON"] = "ICON";
119
+ ToolbarActionType["IMAGE"] = "IMAGE";
120
+ ToolbarActionType["BUTTON"] = "BUTTON";
121
+ })(ToolbarActionType || (ToolbarActionType = {}));
122
+
123
+ class DownloadService {
124
+ getFileNameFromUrl(url) {
125
+ try {
126
+ const pathSegments = url.split('/');
127
+ const lastSegment = pathSegments[pathSegments.length - 1];
128
+ const fileName = decodeURIComponent(lastSegment);
129
+ return fileName;
130
+ }
131
+ catch (error) {
132
+ console.error('Error al obtener nombre de archivo: ', JSON.stringify(error));
133
+ return 'filename';
134
+ }
135
+ }
136
+ openNewTab(url) {
137
+ if (url) {
138
+ const fileName = this.getFileNameFromUrl(url);
139
+ const link = document.createElement('a');
140
+ link.href = url;
141
+ link.download = fileName;
142
+ link.target = '_blank';
143
+ document.body.appendChild(link);
144
+ link.click();
145
+ document.body.removeChild(link);
146
+ }
147
+ else {
148
+ console.error('La URL no está definida');
149
+ }
150
+ }
151
+ downloadLinkFromBrowser(url) {
152
+ console.log('trying to download file from url');
153
+ if (url) {
154
+ fetch(url)
155
+ .then(response => response.blob())
156
+ .then(blob => {
157
+ const url = window.URL.createObjectURL(blob);
158
+ const link = document.createElement('a');
159
+ link.href = url;
160
+ const fileName = this.getFileNameFromUrl(url);
161
+ link.download = `${+new Date()}-${fileName}`;
162
+ link.target = '_self';
163
+ link.click();
164
+ window.URL.revokeObjectURL(url);
165
+ })
166
+ .catch(error => {
167
+ console.error('Error al descargar el archivo:', JSON.stringify(error));
168
+ });
169
+ }
170
+ else {
171
+ console.error('La URL no está definida');
172
+ }
173
+ }
174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
175
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DownloadService, providedIn: 'root' }); }
176
+ }
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DownloadService, decorators: [{
178
+ type: Injectable,
179
+ args: [{
180
+ providedIn: 'root',
181
+ }]
182
+ }] });
183
+
184
+ class ButtonComponent {
185
+ constructor(download) {
186
+ this.download = download;
187
+ this.states = ComponentStates;
188
+ this.onClick = new EventEmitter();
189
+ }
190
+ ngOnInit() { }
191
+ clickHandler() {
192
+ if (this.props.download) {
193
+ this.download.downloadLinkFromBrowser(this.props.download);
194
+ }
195
+ if (this.props.state === this.states.DISABLED) {
196
+ return;
197
+ }
198
+ this.onClick.emit(this.props.token);
199
+ }
200
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonComponent, deps: [{ token: DownloadService }], target: i0.ɵɵFactoryTarget.Component }); }
201
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ButtonComponent, isStandalone: true, selector: "val-button", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
202
+ <ion-button
203
+ [type]="props.type"
204
+ [color]="props.color"
205
+ [expand]="props.expand"
206
+ [fill]="props.fill"
207
+ [size]="props.size"
208
+ [href]="props.href"
209
+ [target]="props.target"
210
+ [shape]="props.shape"
211
+ (click)="clickHandler()"
212
+ [disabled]="props.state === states.DISABLED"
213
+ >
214
+ <ion-icon *ngIf="props.icon" [slot]="props.icon.slot" [name]="props.icon.name"></ion-icon>
215
+ <ion-spinner *ngIf="props.state === states.WORKING" name="circular"></ion-spinner>
216
+ <ion-text *ngIf="props.state !== states.WORKING">{{ props.text }}</ion-text>
217
+ </ion-button>
218
+ `, isInline: true, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
219
+ }
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonComponent, decorators: [{
221
+ type: Component,
222
+ args: [{ selector: 'val-button', standalone: true, imports: [CommonModule, IonButton, IonIcon, IonSpinner, IonText], template: `
223
+ <ion-button
224
+ [type]="props.type"
225
+ [color]="props.color"
226
+ [expand]="props.expand"
227
+ [fill]="props.fill"
228
+ [size]="props.size"
229
+ [href]="props.href"
230
+ [target]="props.target"
231
+ [shape]="props.shape"
232
+ (click)="clickHandler()"
233
+ [disabled]="props.state === states.DISABLED"
234
+ >
235
+ <ion-icon *ngIf="props.icon" [slot]="props.icon.slot" [name]="props.icon.name"></ion-icon>
236
+ <ion-spinner *ngIf="props.state === states.WORKING" name="circular"></ion-spinner>
237
+ <ion-text *ngIf="props.state !== states.WORKING">{{ props.text }}</ion-text>
238
+ </ion-button>
239
+ `, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"] }]
240
+ }], ctorParameters: () => [{ type: DownloadService }], propDecorators: { props: [{
241
+ type: Input
242
+ }], onClick: [{
243
+ type: Output
244
+ }] } });
245
+
246
+ const Icon = (name, slot) => {
247
+ return {
248
+ name,
249
+ slot,
250
+ };
251
+ };
252
+ /* name convention: COLOR FILL SIZE [optionals: SHAPE EXPAND ICON HREF/DOWNLOAD] TYPE */
253
+ const BaseDefault = (text, type) => {
254
+ return {
255
+ color: 'primary',
256
+ state: 'ENABLED',
257
+ text,
258
+ size: 'default',
259
+ type,
260
+ };
261
+ };
262
+ const ClearDefault = (text, type) => {
263
+ return { ...BaseDefault(text, type), fill: 'clear' };
264
+ };
265
+ const ClearDefaultRound = (text, type) => {
266
+ return { ...ClearDefault(text, type), shape: 'round' };
267
+ };
268
+ const SolidDefault = (text, type) => {
269
+ return { ...BaseDefault(text, type), fill: 'solid' };
270
+ };
271
+ const SolidDefaultRound = (text, type) => {
272
+ return { ...SolidDefault(text, type), shape: 'round' };
273
+ };
274
+ const OutlineDefault = (text, type) => {
275
+ return { ...BaseDefault(text, type), fill: 'outline' };
276
+ };
277
+ const OutlineDefaultRound = (text, type) => {
278
+ return { ...OutlineDefault(text, type), shape: 'round' };
279
+ };
280
+ const ClearDefaultFull = (text, type) => {
281
+ return { ...ClearDefault(text, type), expand: 'full' };
282
+ };
283
+ const ClearDefaultRoundFull = (text, type) => {
284
+ return { ...ClearDefaultRound(text, type), expand: 'full' };
285
+ };
286
+ const ClearDefaultBlock = (text, type) => {
287
+ return { ...ClearDefault(text, type), expand: 'block' };
288
+ };
289
+ const ClearDefaultRoundBlock = (text, type) => {
290
+ return { ...ClearDefaultRound(text, type), expand: 'block' };
291
+ };
292
+ const SolidDefaultFull = (text, type) => {
293
+ return { ...SolidDefault(text, type), expand: 'full' };
294
+ };
295
+ const SolidDefaultRoundFull = (text, type) => {
296
+ return { ...SolidDefaultRound(text, type), expand: 'full' };
297
+ };
298
+ const SolidDefaultBlock = (text, type) => {
299
+ return { ...SolidDefault(text, type), expand: 'block' };
300
+ };
301
+ const SolidDefaultRoundBlock = (text, type) => {
302
+ return { ...SolidDefaultRound(text, type), expand: 'block' };
303
+ };
304
+ const OutlineDefaultFull = (text, type) => {
305
+ return { ...OutlineDefault(text, type), expand: 'full' };
306
+ };
307
+ const OutlineDefaultRoundFull = (text, type) => {
308
+ return { ...OutlineDefaultRound(text, type), expand: 'full' };
309
+ };
310
+ const OutlineDefaultBlock = (text, type) => {
311
+ return { ...OutlineDefault(text, type), expand: 'block' };
312
+ };
313
+ const OutlineDefaultRoundBlock = (text, type) => {
314
+ return { ...OutlineDefaultRound(text, type), expand: 'block' };
315
+ };
316
+ const SolidDefaultButton = (text) => {
317
+ return SolidDefault(text, 'button');
318
+ };
319
+ const SolidSmallButton = (text) => {
320
+ return { ...SolidDefault(text, 'button'), size: 'small' };
321
+ };
322
+ const SolidLargeButton = (text) => {
323
+ return { ...SolidDefault(text, 'button'), size: 'large' };
324
+ };
325
+ const SolidDefaultRoundButton = (text) => {
326
+ return SolidDefaultRound(text, 'button');
327
+ };
328
+ const SolidSmallRoundButton = (text) => {
329
+ return { ...SolidDefaultRound(text, 'button'), size: 'small' };
330
+ };
331
+ const SolidLargeRoundButton = (text) => {
332
+ return { ...SolidDefaultRound(text, 'button'), size: 'large' };
333
+ };
334
+ const SolidFullButton = (text) => {
335
+ return SolidDefaultFull(text, 'button');
336
+ };
337
+ const SolidBlockButton = (text) => {
338
+ return SolidDefaultBlock(text, 'button');
339
+ };
340
+ /** PRIMARY */
341
+ const PrimarySolidDefaultRoundButton = (text) => {
342
+ return { ...SolidDefaultRoundButton(text), color: 'primary' };
343
+ };
344
+ const PrimarySolidDefaultRoundIconButton = (text, icon) => {
345
+ return { ...PrimarySolidDefaultRoundButton(text), icon };
346
+ };
347
+ const PrimarySolidDefaultRoundHrefButton = (text, href, target) => {
348
+ return { ...PrimarySolidDefaultRoundButton(text), href, target };
349
+ };
350
+ const PrimarySolidDefaultRoundIconHrefButton = (text, icon, href, target) => {
351
+ return { ...PrimarySolidDefaultRoundIconButton(text, icon), href, target };
352
+ };
353
+ const PrimarySolidSmallRoundButton = (text) => {
354
+ return { ...SolidSmallRoundButton(text), color: 'primary' };
355
+ };
356
+ const PrimarySolidSmallRoundIconButton = (text, icon) => {
357
+ return { ...PrimarySolidSmallRoundButton(text), icon };
358
+ };
359
+ const PrimarySolidSmallRoundHrefButton = (text, href, target) => {
360
+ return { ...PrimarySolidSmallRoundButton(text), href, target };
361
+ };
362
+ const PrimarySolidSmallRoundIconHrefButton = (text, icon, href, target) => {
363
+ return { ...PrimarySolidSmallRoundIconButton(text, icon), href, target };
364
+ };
365
+ const PrimarySolidLargeRoundButton = (text) => {
366
+ return { ...SolidLargeRoundButton(text), color: 'primary' };
367
+ };
368
+ const PrimarySolidLargeRoundIconButton = (text, icon) => {
369
+ return { ...PrimarySolidLargeRoundButton(text), icon };
370
+ };
371
+ const PrimarySolidLargeRoundHrefButton = (text, href, target) => {
372
+ return { ...PrimarySolidLargeRoundButton(text), href, target };
373
+ };
374
+ const PrimarySolidLargeRoundIconHrefButton = (text, icon, href, target) => {
375
+ return { ...PrimarySolidLargeRoundIconButton(text, icon), href, target };
376
+ };
377
+ const PrimarySolidBlockButton = (text) => {
378
+ return { ...SolidBlockButton(text), color: 'primary' };
379
+ };
380
+ const PrimarySolidBlockIconButton = (text, icon) => {
381
+ return { ...PrimarySolidBlockButton(text), icon };
382
+ };
383
+ const PrimarySolidBlockHrefButton = (text, href, target) => {
384
+ return { ...PrimarySolidBlockButton(text), href, target };
385
+ };
386
+ const PrimarySolidBlockIconHrefButton = (text, icon, href, target) => {
387
+ return { ...PrimarySolidBlockIconButton(text, icon), href, target };
388
+ };
389
+ const PrimarySolidFullButton = (text) => {
390
+ return { ...SolidFullButton(text), color: 'primary' };
391
+ };
392
+ const PrimarySolidFullIconButton = (text, icon) => {
393
+ return { ...PrimarySolidFullButton(text), icon };
394
+ };
395
+ const PrimarySolidFullHrefButton = (text, href, target) => {
396
+ return { ...PrimarySolidFullButton(text), href, target };
397
+ };
398
+ const PrimarySolidFullIconHrefButton = (text, icon, href, target) => {
399
+ return { ...PrimarySolidFullIconButton(text, icon), href, target };
400
+ };
401
+ /** SECONDARY */
402
+ const SecondarySolidDefaultRoundButton = (text) => {
403
+ return { ...SolidDefaultRoundButton(text), color: 'secondary' };
404
+ };
405
+ const SecondarySolidDefaultRoundIconButton = (text, icon) => {
406
+ return { ...SecondarySolidDefaultRoundButton(text), icon };
407
+ };
408
+ const SecondarySolidDefaultRoundHrefButton = (text, href, target) => {
409
+ return { ...SecondarySolidDefaultRoundButton(text), href, target };
410
+ };
411
+ const SecondarySolidDefaultRoundIconHrefButton = (text, icon, href, target) => {
412
+ return { ...SecondarySolidDefaultRoundIconButton(text, icon), href, target };
413
+ };
414
+ const SecondarySolidSmallRoundButton = (text) => {
415
+ return { ...SolidSmallRoundButton(text), color: 'secondary' };
416
+ };
417
+ const SecondarySolidSmallRoundIconButton = (text, icon) => {
418
+ return { ...SecondarySolidSmallRoundButton(text), icon };
419
+ };
420
+ const SecondarySolidSmallRoundHrefButton = (text, href, target) => {
421
+ return { ...SecondarySolidSmallRoundButton(text), href, target };
422
+ };
423
+ const SecondarySolidSmallRoundIconHrefButton = (text, icon, href, target) => {
424
+ return { ...SecondarySolidSmallRoundIconButton(text, icon), href, target };
425
+ };
426
+ const SecondarySolidLargeRoundButton = (text) => {
427
+ return { ...SolidLargeRoundButton(text), color: 'secondary' };
428
+ };
429
+ const SecondarySolidLargeRoundIconButton = (text, icon) => {
430
+ return { ...SecondarySolidLargeRoundButton(text), icon };
431
+ };
432
+ const SecondarySolidLargeRoundHrefButton = (text, href, target) => {
433
+ return { ...SecondarySolidLargeRoundButton(text), href, target };
434
+ };
435
+ const SecondarySolidLargeRoundIconHrefButton = (text, icon, href, target) => {
436
+ return { ...SecondarySolidLargeRoundIconButton(text, icon), href, target };
437
+ };
438
+ const SecondarySolidFullButton = (text) => {
439
+ return { ...SolidFullButton(text), color: 'secondary' };
440
+ };
441
+ const SecondarySolidFullIconButton = (text, icon) => {
442
+ return { ...SecondarySolidFullButton(text), icon };
443
+ };
444
+ const SecondarySolidFullHrefButton = (text, href, target) => {
445
+ return { ...SecondarySolidFullButton(text), href, target };
446
+ };
447
+ const SecondarySolidFullIconHrefButton = (text, icon, href, target) => {
448
+ return { ...SecondarySolidFullIconButton(text, icon), href, target };
449
+ };
450
+ const SecondarySolidBlockButton = (text) => {
451
+ return { ...SolidBlockButton(text), color: 'secondary' };
452
+ };
453
+ const SecondarySolidBlockIconButton = (text, icon) => {
454
+ return { ...SecondarySolidBlockButton(text), icon };
455
+ };
456
+ const SecondarySolidBlockHrefButton = (text, href, target) => {
457
+ return { ...SecondarySolidBlockButton(text), href, target };
458
+ };
459
+ const SecondarySolidBlockIconHrefButton = (text, icon, href, target) => {
460
+ return { ...SecondarySolidBlockIconButton(text, icon), href, target };
461
+ };
462
+
463
+ class DisplayComponent {
464
+ constructor() { }
465
+ ngOnInit() { }
466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DisplayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
467
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: DisplayComponent, isStandalone: true, selector: "val-display", inputs: { props: "props" }, ngImport: i0, template: `
468
+ <ion-text [color]="props.color">
469
+ <p [class]="props.size">
470
+ {{ props.content }}
471
+ </p>
472
+ </ion-text>
473
+ `, isInline: true, styles: [".small{font-size:1.5rem;line-height:2rem;font-weight:800}@media (min-width: 768px){.small{font-size:2rem;line-height:2.5rem}}.medium{font-size:2rem;line-height:2.5rem;font-weight:800}@media (min-width: 768px){.medium{font-size:2.5rem;line-height:3rem}}.large{font-size:2.5rem;line-height:3rem;font-weight:800}@media (min-width: 768px){.large{font-size:3rem;line-height:3.5rem}}.xlarge{font-size:3rem;line-height:3.5rem;font-weight:800}@media (min-width: 768px){.xlarge{font-size:3.5rem;line-height:4rem}}\n"], dependencies: [{ kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
474
+ }
475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DisplayComponent, decorators: [{
476
+ type: Component,
477
+ args: [{ selector: 'val-display', standalone: true, imports: [IonText], template: `
478
+ <ion-text [color]="props.color">
479
+ <p [class]="props.size">
480
+ {{ props.content }}
481
+ </p>
482
+ </ion-text>
483
+ `, styles: [".small{font-size:1.5rem;line-height:2rem;font-weight:800}@media (min-width: 768px){.small{font-size:2rem;line-height:2.5rem}}.medium{font-size:2rem;line-height:2.5rem;font-weight:800}@media (min-width: 768px){.medium{font-size:2.5rem;line-height:3rem}}.large{font-size:2.5rem;line-height:3rem;font-weight:800}@media (min-width: 768px){.large{font-size:3rem;line-height:3.5rem}}.xlarge{font-size:3rem;line-height:3.5rem;font-weight:800}@media (min-width: 768px){.xlarge{font-size:3.5rem;line-height:4rem}}\n"] }]
484
+ }], ctorParameters: () => [], propDecorators: { props: [{
485
+ type: Input
486
+ }] } });
487
+
488
+ class DividerComponent {
489
+ constructor() { }
490
+ ngOnInit() { }
491
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
492
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: DividerComponent, isStandalone: true, selector: "val-divider", inputs: { props: "props" }, ngImport: i0, template: ` <div [ngClass]="['divider', props.size, props.color, props.fill]"></div> `, isInline: true, styles: [".solid{border-top:.0625rem solid #878ca0}.gradient{height:.125rem}.gradient.primary{background:linear-gradient(to right,var(--ion-color-primary),var(--ion-color-light))}.gradient.secondary{background:linear-gradient(to right,var(--ion-color-secondary),var(--ion-color-light))}.gradient.dark{background:linear-gradient(to right,var(--ion-color-dark),var(--ion-color-light))}.gradient.light{background:linear-gradient(to right,var(--ion-color-light),#ffffff)}.gradient.medium{background:linear-gradient(to right,var(--ion-color-medium),#ffffff)}.small{margin:1rem}.medium{margin:1.5rem 1rem}.large{margin:2.25rem 1rem}.primary{border-color:var(--ion-color-primary)}.secondary{border-color:var(--ion-color-secondary)}.dark{border-color:var(--ion-color-dark)}.light{border-color:var(--ion-color-light)}.medium{border-color:var(--ion-color-medium)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
493
+ }
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DividerComponent, decorators: [{
495
+ type: Component,
496
+ args: [{ selector: 'val-divider', standalone: true, imports: [CommonModule], template: ` <div [ngClass]="['divider', props.size, props.color, props.fill]"></div> `, styles: [".solid{border-top:.0625rem solid #878ca0}.gradient{height:.125rem}.gradient.primary{background:linear-gradient(to right,var(--ion-color-primary),var(--ion-color-light))}.gradient.secondary{background:linear-gradient(to right,var(--ion-color-secondary),var(--ion-color-light))}.gradient.dark{background:linear-gradient(to right,var(--ion-color-dark),var(--ion-color-light))}.gradient.light{background:linear-gradient(to right,var(--ion-color-light),#ffffff)}.gradient.medium{background:linear-gradient(to right,var(--ion-color-medium),#ffffff)}.small{margin:1rem}.medium{margin:1.5rem 1rem}.large{margin:2.25rem 1rem}.primary{border-color:var(--ion-color-primary)}.secondary{border-color:var(--ion-color-secondary)}.dark{border-color:var(--ion-color-dark)}.light{border-color:var(--ion-color-light)}.medium{border-color:var(--ion-color-medium)}\n"] }]
497
+ }], ctorParameters: () => [], propDecorators: { props: [{
498
+ type: Input
499
+ }] } });
500
+
501
+ class HrefComponent {
502
+ constructor(downloadService) {
503
+ this.downloadService = downloadService;
504
+ this.onClick = new EventEmitter();
505
+ }
506
+ ngOnInit() { }
507
+ getFileName() {
508
+ return this.downloadService.getFileNameFromUrl(this.props.url);
509
+ }
510
+ onClickHandler(event) {
511
+ if (this.props.download && this.props.url) {
512
+ event.preventDefault();
513
+ this.downloadService.downloadLinkFromBrowser(this.props.url);
514
+ }
515
+ this.onClick.emit(this.props.token);
516
+ }
517
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HrefComponent, deps: [{ token: DownloadService }], target: i0.ɵɵFactoryTarget.Component }); }
518
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HrefComponent, isStandalone: true, selector: "val-href", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
519
+ <a
520
+ [ngClass]="[props.color]"
521
+ [class.hoverable]="props.hoverable"
522
+ [href]="props.url"
523
+ target="_blank"
524
+ (click)="onClickHandler($event)"
525
+ >{{ props.text }}</a
526
+ >
527
+ `, isInline: true, styles: [".primary{color:var(--ion-color-primary)}.secondary{color:var(--ion-color-secondary)}.dark{color:var(--ion-color-dark)}.medium{color:var(--ion-color-medium)}.hoverable{text-decoration:none}.hoverable:hover{text-decoration:underline}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
528
+ }
529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HrefComponent, decorators: [{
530
+ type: Component,
531
+ args: [{ selector: 'val-href', standalone: true, imports: [CommonModule], template: `
532
+ <a
533
+ [ngClass]="[props.color]"
534
+ [class.hoverable]="props.hoverable"
535
+ [href]="props.url"
536
+ target="_blank"
537
+ (click)="onClickHandler($event)"
538
+ >{{ props.text }}</a
539
+ >
540
+ `, styles: [".primary{color:var(--ion-color-primary)}.secondary{color:var(--ion-color-secondary)}.dark{color:var(--ion-color-dark)}.medium{color:var(--ion-color-medium)}.hoverable{text-decoration:none}.hoverable:hover{text-decoration:underline}\n"] }]
541
+ }], ctorParameters: () => [{ type: DownloadService }], propDecorators: { props: [{
542
+ type: Input
543
+ }], onClick: [{
544
+ type: Output
545
+ }] } });
546
+
547
+ /* eslint-disable no-underscore-dangle */
548
+ class IconService {
549
+ constructor() {
550
+ addIcons({
551
+ addOutline,
552
+ addCircleOutline,
553
+ alertOutline,
554
+ alertCircleOutline,
555
+ arrowBackOutline,
556
+ arrowForwardOutline,
557
+ arrowDownOutline,
558
+ checkmarkCircleOutline,
559
+ ellipsisHorizontalOutline,
560
+ notificationsOutline,
561
+ });
562
+ }
563
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
564
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService, providedIn: 'root' }); }
565
+ }
566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconService, decorators: [{
567
+ type: Injectable,
568
+ args: [{
569
+ providedIn: 'root',
570
+ }]
571
+ }], ctorParameters: () => [] });
572
+
573
+ class IconComponent {
574
+ constructor(service) { }
575
+ ngOnInit() { }
576
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconComponent, deps: [{ token: IconService }], target: i0.ɵɵFactoryTarget.Component }); }
577
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: IconComponent, isStandalone: true, selector: "val-icon", inputs: { props: "props" }, ngImport: i0, template: ` <ion-icon aria-hidden="true" [ngClass]="[props.size]" [name]="props.name" [color]="props.color" /> `, isInline: true, styles: [".small{font-size:.75rem;line-height:1.25rem;font-weight:400}.small.bold{font-size:.75rem;line-height:1.25rem;font-weight:700}.medium{font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.medium{font-size:1rem;line-height:1.5rem}}.medium.bold{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium.bold{font-size:1rem;line-height:1.5rem}}.large{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.large{font-size:1.125rem;line-height:1.5rem}}.large.bold{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large.bold{font-size:1.125rem;line-height:1.5rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}.xlarge.bold{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge.bold{font-size:1.5rem;line-height:2rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
578
+ }
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IconComponent, decorators: [{
580
+ type: Component,
581
+ args: [{ selector: 'val-icon', standalone: true, imports: [CommonModule, IonIcon], template: ` <ion-icon aria-hidden="true" [ngClass]="[props.size]" [name]="props.name" [color]="props.color" /> `, styles: [".small{font-size:.75rem;line-height:1.25rem;font-weight:400}.small.bold{font-size:.75rem;line-height:1.25rem;font-weight:700}.medium{font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.medium{font-size:1rem;line-height:1.5rem}}.medium.bold{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium.bold{font-size:1rem;line-height:1.5rem}}.large{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.large{font-size:1.125rem;line-height:1.5rem}}.large.bold{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large.bold{font-size:1.125rem;line-height:1.5rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}.xlarge.bold{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge.bold{font-size:1.5rem;line-height:2rem}}\n"] }]
582
+ }], ctorParameters: () => [{ type: IconService }], propDecorators: { props: [{
583
+ type: Input
584
+ }] } });
585
+
586
+ class ImageComponent {
587
+ constructor() {
588
+ this.available = true;
589
+ }
590
+ ngOnInit() { }
591
+ changeToVisible() {
592
+ setInterval(() => {
593
+ this.available = true;
594
+ }, 100);
595
+ }
596
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
597
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ImageComponent, isStandalone: true, selector: "val-image", inputs: { props: "props" }, ngImport: i0, template: `
598
+ <img
599
+ [ngClass]="['image', props.mode, props.size]"
600
+ [class.bordered]="props.bordered"
601
+ [class.shaded]="props.shaded"
602
+ [class.limited]="props.limited"
603
+ [class.visible]="available"
604
+ [src]="props.src"
605
+ [alt]="props.alt"
606
+ [style.width.px]="props.width"
607
+ [style.max-width.px]="props.width"
608
+ [style.height.px]="props.height"
609
+ />
610
+ `, isInline: true, styles: [".small{width:30%}.small.limited{max-width:6.25rem}.medium{width:50%}.medium.limited{max-width:15rem}.large{width:70%}.large.limited{max-width:28.125rem}.xlarge{width:100%}.xlarge.limited{max-width:43.75rem}.image{opacity:0;height:0;display:block}.visible{animation:appereance ease-in 1s forwards}@keyframes appereance{0%{opacity:0;height:0}to{opacity:1;height:auto}}.rounded{border-radius:.5rem}.circular{border-radius:50%}.bordered{border:.0625rem solid var(--ion-color-medium)}.shaded{box-shadow:.1875rem .625rem .5rem #1219541a}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
611
+ }
612
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ImageComponent, decorators: [{
613
+ type: Component,
614
+ args: [{ selector: 'val-image', standalone: true, imports: [CommonModule], template: `
615
+ <img
616
+ [ngClass]="['image', props.mode, props.size]"
617
+ [class.bordered]="props.bordered"
618
+ [class.shaded]="props.shaded"
619
+ [class.limited]="props.limited"
620
+ [class.visible]="available"
621
+ [src]="props.src"
622
+ [alt]="props.alt"
623
+ [style.width.px]="props.width"
624
+ [style.max-width.px]="props.width"
625
+ [style.height.px]="props.height"
626
+ />
627
+ `, styles: [".small{width:30%}.small.limited{max-width:6.25rem}.medium{width:50%}.medium.limited{max-width:15rem}.large{width:70%}.large.limited{max-width:28.125rem}.xlarge{width:100%}.xlarge.limited{max-width:43.75rem}.image{opacity:0;height:0;display:block}.visible{animation:appereance ease-in 1s forwards}@keyframes appereance{0%{opacity:0;height:0}to{opacity:1;height:auto}}.rounded{border-radius:.5rem}.circular{border-radius:50%}.bordered{border:.0625rem solid var(--ion-color-medium)}.shaded{box-shadow:.1875rem .625rem .5rem #1219541a}\n"] }]
628
+ }], ctorParameters: () => [], propDecorators: { props: [{
629
+ type: Input
630
+ }] } });
631
+
632
+ class ProgressBarComponent {
633
+ constructor() { }
634
+ ngOnInit() { }
635
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
636
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ProgressBarComponent, isStandalone: true, selector: "val-progress-bar", inputs: { props: "props" }, ngImport: i0, template: `
637
+ <ion-progress-bar
638
+ [ngClass]="[props.size]"
639
+ [class.rounded]="props.rounded"
640
+ [value]="props.progress"
641
+ [color]="props.color"
642
+ [buffer]="props.buffer"
643
+ [type]="props.type"
644
+ ></ion-progress-bar>
645
+ `, isInline: true, styles: ["ion-progress-bar.rounded{border-radius:.5rem}.medium{height:.25rem}.large{height:.375rem}.xlarge{height:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }] }); }
646
+ }
647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressBarComponent, decorators: [{
648
+ type: Component,
649
+ args: [{ selector: 'val-progress-bar', standalone: true, imports: [CommonModule, IonProgressBar], template: `
650
+ <ion-progress-bar
651
+ [ngClass]="[props.size]"
652
+ [class.rounded]="props.rounded"
653
+ [value]="props.progress"
654
+ [color]="props.color"
655
+ [buffer]="props.buffer"
656
+ [type]="props.type"
657
+ ></ion-progress-bar>
658
+ `, styles: ["ion-progress-bar.rounded{border-radius:.5rem}.medium{height:.25rem}.large{height:.375rem}.xlarge{height:.5rem}\n"] }]
659
+ }], ctorParameters: () => [], propDecorators: { props: [{
660
+ type: Input
661
+ }] } });
662
+
663
+ class TextComponent {
664
+ constructor() { }
665
+ ngOnInit() { }
666
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
667
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TextComponent, isStandalone: true, selector: "val-text", inputs: { props: "props" }, ngImport: i0, template: `
668
+ <ion-text [color]="props.color">
669
+ <p [class]="props.size" [class.bold]="props.bold">{{ props.content }}</p>
670
+ </ion-text>
671
+ `, isInline: true, styles: [".small{font-size:.75rem;line-height:1.25rem;font-weight:400}.small.bold{font-size:.75rem;line-height:1.25rem;font-weight:700}.medium{font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.medium{font-size:1rem;line-height:1.5rem}}.medium.bold{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium.bold{font-size:1rem;line-height:1.5rem}}.large{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.large{font-size:1.125rem;line-height:1.5rem}}.large.bold{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large.bold{font-size:1.125rem;line-height:1.5rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}.xlarge.bold{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge.bold{font-size:1.5rem;line-height:2rem}}\n"], dependencies: [{ kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
672
+ }
673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextComponent, decorators: [{
674
+ type: Component,
675
+ args: [{ selector: 'val-text', standalone: true, imports: [IonText], template: `
676
+ <ion-text [color]="props.color">
677
+ <p [class]="props.size" [class.bold]="props.bold">{{ props.content }}</p>
678
+ </ion-text>
679
+ `, styles: [".small{font-size:.75rem;line-height:1.25rem;font-weight:400}.small.bold{font-size:.75rem;line-height:1.25rem;font-weight:700}.medium{font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.medium{font-size:1rem;line-height:1.5rem}}.medium.bold{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium.bold{font-size:1rem;line-height:1.5rem}}.large{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.large{font-size:1.125rem;line-height:1.5rem}}.large.bold{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large.bold{font-size:1.125rem;line-height:1.5rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}.xlarge.bold{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge.bold{font-size:1.5rem;line-height:2rem}}\n"] }]
680
+ }], ctorParameters: () => [], propDecorators: { props: [{
681
+ type: Input
682
+ }] } });
683
+
684
+ class TitleComponent {
685
+ constructor() { }
686
+ ngOnInit() { }
687
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
688
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TitleComponent, isStandalone: true, selector: "val-title", inputs: { props: "props" }, ngImport: i0, template: `
689
+ <ion-text [color]="props.color">
690
+ <p *ngIf="!props.bold" [class]="props.size">{{ props.content }}</p>
691
+ <b *ngIf="props.bold">
692
+ <p [class]="props.size">{{ props.content }}</p>
693
+ </b>
694
+ </ion-text>
695
+ `, isInline: true, styles: [".small{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.small{font-size:1rem;line-height:1.5rem}}.medium{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium{font-size:1.125rem;line-height:1.5rem}}.large{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large{font-size:1.5rem;line-height:2rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
696
+ }
697
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleComponent, decorators: [{
698
+ type: Component,
699
+ args: [{ selector: 'val-title', standalone: true, imports: [NgIf, IonText], template: `
700
+ <ion-text [color]="props.color">
701
+ <p *ngIf="!props.bold" [class]="props.size">{{ props.content }}</p>
702
+ <b *ngIf="props.bold">
703
+ <p [class]="props.size">{{ props.content }}</p>
704
+ </b>
705
+ </ion-text>
706
+ `, styles: [".small{font-size:.875rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.small{font-size:1rem;line-height:1.5rem}}.medium{font-size:1rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.medium{font-size:1.125rem;line-height:1.5rem}}.large{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.large{font-size:1.5rem;line-height:2rem}}.xlarge{font-size:1.125rem;line-height:1.5rem;font-weight:700}@media (min-width: 768px){.xlarge{font-size:1.5rem;line-height:2rem}}\n"] }]
707
+ }], ctorParameters: () => [], propDecorators: { props: [{
708
+ type: Input
709
+ }] } });
710
+
711
+ class AlertBoxComponent {
712
+ constructor() { }
713
+ ngOnInit() { }
714
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
715
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AlertBoxComponent, isStandalone: true, selector: "val-alert-box", inputs: { props: "props" }, ngImport: i0, template: `
716
+ <val-box [props]="props.box">
717
+ <div class="content-container" body>
718
+ <val-icon [props]="props.icon"></val-icon>
719
+ <val-text class="text" [props]="props.text"></val-text>
720
+ </div>
721
+ </val-box>
722
+ `, isInline: true, styles: [".text{margin-left:.25rem}.content-container{display:flex;align-items:flex-start}\n"], dependencies: [{ kind: "component", type: BoxComponent, selector: "val-box", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: IconComponent, selector: "val-icon", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }] }); }
723
+ }
724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertBoxComponent, decorators: [{
725
+ type: Component,
726
+ args: [{ selector: 'val-alert-box', standalone: true, imports: [BoxComponent, IconComponent, TextComponent], template: `
727
+ <val-box [props]="props.box">
728
+ <div class="content-container" body>
729
+ <val-icon [props]="props.icon"></val-icon>
730
+ <val-text class="text" [props]="props.text"></val-text>
731
+ </div>
732
+ </val-box>
733
+ `, styles: [".text{margin-left:.25rem}.content-container{display:flex;align-items:flex-start}\n"] }]
734
+ }], ctorParameters: () => [], propDecorators: { props: [{
735
+ type: Input
736
+ }] } });
737
+
738
+ class ButtonGroupComponent {
739
+ constructor() {
740
+ this.onClick = new EventEmitter();
741
+ }
742
+ ngOnInit() { }
743
+ clickHandler(token) {
744
+ this.onClick.emit(token);
745
+ }
746
+ get Position() {
747
+ if (this.props.buttons.length === 1 && this.props.position === 'spaced') {
748
+ return 'right';
749
+ }
750
+ return this.props.position;
751
+ }
752
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
753
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ButtonGroupComponent, isStandalone: true, selector: "val-button-group", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
754
+ <div [ngClass]="['group-container', Position]" [class.column]="props.columned" style="width: 100%;">
755
+ <val-button
756
+ *ngFor="let b of props.buttons"
757
+ [props]="b"
758
+ (onClick)="clickHandler(b?.token)"
759
+ [ngStyle]="{ width: props.buttons.length === 1 ? '100%' : 'auto' }"
760
+ ></val-button>
761
+ </div>
762
+ `, isInline: true, styles: ["val-button{display:inline-block}.group-container{width:100%}.group-container.left{text-align:left}.group-container.center{text-align:center}.group-container.right{text-align:right}.group-container.column{display:flex;flex-direction:column-reverse}.group-container.spaced{display:flex;justify-content:space-between}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["props"], outputs: ["onClick"] }] }); }
763
+ }
764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonGroupComponent, decorators: [{
765
+ type: Component,
766
+ args: [{ selector: 'val-button-group', standalone: true, imports: [CommonModule, ButtonComponent], template: `
767
+ <div [ngClass]="['group-container', Position]" [class.column]="props.columned" style="width: 100%;">
768
+ <val-button
769
+ *ngFor="let b of props.buttons"
770
+ [props]="b"
771
+ (onClick)="clickHandler(b?.token)"
772
+ [ngStyle]="{ width: props.buttons.length === 1 ? '100%' : 'auto' }"
773
+ ></val-button>
774
+ </div>
775
+ `, styles: ["val-button{display:inline-block}.group-container{width:100%}.group-container.left{text-align:left}.group-container.center{text-align:center}.group-container.right{text-align:right}.group-container.column{display:flex;flex-direction:column-reverse}.group-container.spaced{display:flex;justify-content:space-between}\n"] }]
776
+ }], ctorParameters: () => [], propDecorators: { props: [{
777
+ type: Input
778
+ }], onClick: [{
779
+ type: Output
780
+ }] } });
781
+
782
+ var CardType;
783
+ (function (CardType) {
784
+ CardType["native"] = "native";
785
+ CardType["checker"] = "checker";
786
+ CardType["tappable"] = "tappable";
787
+ CardType["complex"] = "complex";
788
+ })(CardType || (CardType = {}));
789
+ var CardSection;
790
+ (function (CardSection) {
791
+ CardSection[CardSection["headerLeft"] = 0] = "headerLeft";
792
+ CardSection[CardSection["headerRight"] = 1] = "headerRight";
793
+ CardSection[CardSection["content"] = 2] = "content";
794
+ CardSection[CardSection["footer"] = 3] = "footer";
795
+ CardSection[CardSection["footerExtra"] = 4] = "footerExtra";
796
+ })(CardSection || (CardSection = {}));
797
+
798
+ class CardComponent {
799
+ constructor() {
800
+ this.onClick = new EventEmitter();
801
+ this.types = CardType;
802
+ this.actionTypes = ToolbarActionType;
803
+ this.sections = CardSection;
804
+ }
805
+ ngOnInit() { }
806
+ clickHandler(section, token) {
807
+ this.onClick.emit({ section, token });
808
+ }
809
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
810
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CardComponent, isStandalone: true, selector: "val-card", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
811
+ <ion-card *ngIf="props.type === types.native">
812
+ <img alt="image" [src]="props.image" />
813
+ <ion-card-header *ngIf="props.title || props.overtitle">
814
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
815
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
816
+ </ion-card-header>
817
+
818
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
819
+
820
+ <val-button
821
+ *ngFor="let b of props.footerActions"
822
+ [props]="b"
823
+ (onClick)="clickHandler(sections.footer, b.token)"
824
+ ></val-button>
825
+ </ion-card>
826
+
827
+ <ion-card
828
+ *ngIf="props.type === types.tappable"
829
+ (click)="clickHandler(sections.content, props.token)"
830
+ class="tapable"
831
+ >
832
+ <img alt="image" [src]="props.image" />
833
+ <ion-card-header *ngIf="props.title || props.overtitle">
834
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
835
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
836
+ </ion-card-header>
837
+
838
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
839
+ </ion-card>
840
+
841
+ <ion-card
842
+ *ngIf="props.type === types.checker"
843
+ (click)="clickHandler(sections.content, props.token)"
844
+ class="tapable"
845
+ >
846
+ <ion-card-header *ngIf="props.title || props.overtitle" class="checker">
847
+ <div>
848
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
849
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
850
+ </div>
851
+ <div>
852
+ <ion-checkbox [checked]="props.selected"></ion-checkbox>
853
+ </div>
854
+ </ion-card-header>
855
+
856
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
857
+ </ion-card>
858
+
859
+ <ion-card *ngIf="props.type === types.complex" class="complex">
860
+ <ion-card-header class="complex-header">
861
+ <ion-buttons style="display: flex; align-items: center" *ngIf="props.leftActions.length > 0">
862
+ <ng-container *ngFor="let action of props.leftActions">
863
+ <ion-button
864
+ *ngIf="action.type === actionTypes.ICON"
865
+ (click)="clickHandler(sections.headerLeft, action.token)"
866
+ >
867
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
868
+ </ion-button>
869
+ <val-avatar
870
+ style="margin-right: 4px; cursor: pointer"
871
+ *ngIf="action.type === actionTypes.AVATAR"
872
+ [props]="{ size: 'small', image: action.description, default: '' }"
873
+ (onClick)="clickHandler(sections.headerLeft, action.token)"
874
+ ></val-avatar>
875
+ <val-image
876
+ *ngIf="action.type === actionTypes.IMAGE"
877
+ [props]="action.image"
878
+ (click)="clickHandler(sections.headerLeft, action.token)"
879
+ ></val-image>
880
+ <ion-button
881
+ *ngIf="action.type === actionTypes.BUTTON"
882
+ (click)="clickHandler(sections.headerLeft, action.token)"
883
+ >
884
+ {{ action.description }}
885
+ </ion-button>
886
+ <div *ngIf="props.headerText">
887
+ <val-text [props]="{ content: props.headerText, color: 'dark', bold: true, size: 'medium' }" />
888
+ </div>
889
+ </ng-container>
890
+ </ion-buttons>
891
+ <ion-buttons style="display: flex; align-items: center" *ngIf="props.rightActions.length > 0">
892
+ <ng-container *ngFor="let action of props.rightActions">
893
+ <ion-button
894
+ *ngIf="action.type === actionTypes.ICON"
895
+ (click)="clickHandler(sections.headerRight, action.token)"
896
+ >
897
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
898
+ </ion-button>
899
+ <val-avatar
900
+ style="margin-right: 4px; cursor: pointer"
901
+ *ngIf="action.type === actionTypes.AVATAR"
902
+ [props]="{ size: 'small', image: action.description, default: '' }"
903
+ (onClick)="clickHandler(sections.headerRight, action.token)"
904
+ ></val-avatar>
905
+ <val-image
906
+ *ngIf="action.type === actionTypes.IMAGE"
907
+ [props]="action.image"
908
+ (click)="clickHandler(sections.headerRight, action.token)"
909
+ ></val-image>
910
+ <ion-button
911
+ *ngIf="action.type === actionTypes.BUTTON"
912
+ (click)="clickHandler(sections.headerRight, action.token)"
913
+ >
914
+ {{ action.description }}
915
+ </ion-button>
916
+ </ng-container>
917
+ </ion-buttons>
918
+ </ion-card-header>
919
+
920
+ <div class="tapable" (click)="clickHandler(sections.content, props.token)">
921
+ <ion-card-header *ngIf="props.title || props.overtitle" class="complex-header">
922
+ <div>
923
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
924
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
925
+ </div>
926
+ </ion-card-header>
927
+
928
+ <img alt="image" [src]="props.image" />
929
+ <ion-card-content *ngIf="props.content" class="complex-content">{{ props.content }}</ion-card-content>
930
+ </div>
931
+ <val-button
932
+ *ngFor="let b of props.footerActions"
933
+ [props]="b"
934
+ (onClick)="clickHandler(sections.footer, b.token)"
935
+ ></val-button>
936
+ <ion-buttons
937
+ style="display: flex; align-items: center; justify-content: flex-end; margin: 8px"
938
+ *ngIf="props.footerComplexActions.length > 0"
939
+ >
940
+ <ng-container *ngFor="let action of props.footerComplexActions">
941
+ <ion-button
942
+ *ngIf="action.type === actionTypes.ICON"
943
+ (click)="clickHandler(sections.footerExtra, action.token)"
944
+ >
945
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
946
+ </ion-button>
947
+ <val-avatar
948
+ style="margin-right: 4px; cursor: pointer"
949
+ *ngIf="action.type === actionTypes.AVATAR"
950
+ [props]="{ size: 'small', image: action.description, default: '' }"
951
+ (onClick)="clickHandler(sections.footerExtra, action.token)"
952
+ ></val-avatar>
953
+ <val-image
954
+ *ngIf="action.type === actionTypes.IMAGE"
955
+ [props]="action.image"
956
+ (click)="clickHandler(sections.footerExtra, action.token)"
957
+ ></val-image>
958
+ <ion-button
959
+ *ngIf="action.type === actionTypes.BUTTON"
960
+ (click)="clickHandler(sections.footerExtra, action.token)"
961
+ color="dark"
962
+ >
963
+ {{ action.description }}
964
+ </ion-button>
965
+ </ng-container>
966
+ </ion-buttons>
967
+ </ion-card>
968
+ `, isInline: true, styles: ["ion-card.tapable{transition:transform .3s ease,box-shadow .3s ease}ion-card.tapable:hover{transform:scale(1.01);box-shadow:.1875rem .625rem .5rem #1219541a}.tapable{cursor:pointer}.checker{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.complex-header{padding:10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.complex-content{padding-left:10px;padding-top:4px;padding-bottom:10px}.complex{border-radius:16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: AvatarComponent, selector: "val-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonCardContent, selector: "ion-card-content", inputs: ["mode"] }, { kind: "component", type: IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { kind: "component", type: IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }, { kind: "component", type: IonCardSubtitle, selector: "ion-card-subtitle", inputs: ["color", "mode"] }, { kind: "component", type: IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "justify", "labelPlacement", "mode", "name", "value"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
969
+ }
970
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CardComponent, decorators: [{
971
+ type: Component,
972
+ args: [{ selector: 'val-card', standalone: true, imports: [
973
+ CommonModule,
974
+ ButtonComponent,
975
+ AvatarComponent,
976
+ ImageComponent,
977
+ TextComponent,
978
+ IonCard,
979
+ IonCardContent,
980
+ IonCardHeader,
981
+ IonCardTitle,
982
+ IonCardSubtitle,
983
+ IonCheckbox,
984
+ IonButtons,
985
+ IonButton,
986
+ IonIcon,
987
+ ], template: `
988
+ <ion-card *ngIf="props.type === types.native">
989
+ <img alt="image" [src]="props.image" />
990
+ <ion-card-header *ngIf="props.title || props.overtitle">
991
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
992
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
993
+ </ion-card-header>
994
+
995
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
996
+
997
+ <val-button
998
+ *ngFor="let b of props.footerActions"
999
+ [props]="b"
1000
+ (onClick)="clickHandler(sections.footer, b.token)"
1001
+ ></val-button>
1002
+ </ion-card>
1003
+
1004
+ <ion-card
1005
+ *ngIf="props.type === types.tappable"
1006
+ (click)="clickHandler(sections.content, props.token)"
1007
+ class="tapable"
1008
+ >
1009
+ <img alt="image" [src]="props.image" />
1010
+ <ion-card-header *ngIf="props.title || props.overtitle">
1011
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
1012
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
1013
+ </ion-card-header>
1014
+
1015
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
1016
+ </ion-card>
1017
+
1018
+ <ion-card
1019
+ *ngIf="props.type === types.checker"
1020
+ (click)="clickHandler(sections.content, props.token)"
1021
+ class="tapable"
1022
+ >
1023
+ <ion-card-header *ngIf="props.title || props.overtitle" class="checker">
1024
+ <div>
1025
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
1026
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
1027
+ </div>
1028
+ <div>
1029
+ <ion-checkbox [checked]="props.selected"></ion-checkbox>
1030
+ </div>
1031
+ </ion-card-header>
1032
+
1033
+ <ion-card-content *ngIf="props.content">{{ props.content }}</ion-card-content>
1034
+ </ion-card>
1035
+
1036
+ <ion-card *ngIf="props.type === types.complex" class="complex">
1037
+ <ion-card-header class="complex-header">
1038
+ <ion-buttons style="display: flex; align-items: center" *ngIf="props.leftActions.length > 0">
1039
+ <ng-container *ngFor="let action of props.leftActions">
1040
+ <ion-button
1041
+ *ngIf="action.type === actionTypes.ICON"
1042
+ (click)="clickHandler(sections.headerLeft, action.token)"
1043
+ >
1044
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
1045
+ </ion-button>
1046
+ <val-avatar
1047
+ style="margin-right: 4px; cursor: pointer"
1048
+ *ngIf="action.type === actionTypes.AVATAR"
1049
+ [props]="{ size: 'small', image: action.description, default: '' }"
1050
+ (onClick)="clickHandler(sections.headerLeft, action.token)"
1051
+ ></val-avatar>
1052
+ <val-image
1053
+ *ngIf="action.type === actionTypes.IMAGE"
1054
+ [props]="action.image"
1055
+ (click)="clickHandler(sections.headerLeft, action.token)"
1056
+ ></val-image>
1057
+ <ion-button
1058
+ *ngIf="action.type === actionTypes.BUTTON"
1059
+ (click)="clickHandler(sections.headerLeft, action.token)"
1060
+ >
1061
+ {{ action.description }}
1062
+ </ion-button>
1063
+ <div *ngIf="props.headerText">
1064
+ <val-text [props]="{ content: props.headerText, color: 'dark', bold: true, size: 'medium' }" />
1065
+ </div>
1066
+ </ng-container>
1067
+ </ion-buttons>
1068
+ <ion-buttons style="display: flex; align-items: center" *ngIf="props.rightActions.length > 0">
1069
+ <ng-container *ngFor="let action of props.rightActions">
1070
+ <ion-button
1071
+ *ngIf="action.type === actionTypes.ICON"
1072
+ (click)="clickHandler(sections.headerRight, action.token)"
1073
+ >
1074
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
1075
+ </ion-button>
1076
+ <val-avatar
1077
+ style="margin-right: 4px; cursor: pointer"
1078
+ *ngIf="action.type === actionTypes.AVATAR"
1079
+ [props]="{ size: 'small', image: action.description, default: '' }"
1080
+ (onClick)="clickHandler(sections.headerRight, action.token)"
1081
+ ></val-avatar>
1082
+ <val-image
1083
+ *ngIf="action.type === actionTypes.IMAGE"
1084
+ [props]="action.image"
1085
+ (click)="clickHandler(sections.headerRight, action.token)"
1086
+ ></val-image>
1087
+ <ion-button
1088
+ *ngIf="action.type === actionTypes.BUTTON"
1089
+ (click)="clickHandler(sections.headerRight, action.token)"
1090
+ >
1091
+ {{ action.description }}
1092
+ </ion-button>
1093
+ </ng-container>
1094
+ </ion-buttons>
1095
+ </ion-card-header>
1096
+
1097
+ <div class="tapable" (click)="clickHandler(sections.content, props.token)">
1098
+ <ion-card-header *ngIf="props.title || props.overtitle" class="complex-header">
1099
+ <div>
1100
+ <ion-card-subtitle *ngIf="props.overtitle">{{ props.overtitle }}</ion-card-subtitle>
1101
+ <ion-card-title *ngIf="props.title">{{ props.title }}</ion-card-title>
1102
+ </div>
1103
+ </ion-card-header>
1104
+
1105
+ <img alt="image" [src]="props.image" />
1106
+ <ion-card-content *ngIf="props.content" class="complex-content">{{ props.content }}</ion-card-content>
1107
+ </div>
1108
+ <val-button
1109
+ *ngFor="let b of props.footerActions"
1110
+ [props]="b"
1111
+ (onClick)="clickHandler(sections.footer, b.token)"
1112
+ ></val-button>
1113
+ <ion-buttons
1114
+ style="display: flex; align-items: center; justify-content: flex-end; margin: 8px"
1115
+ *ngIf="props.footerComplexActions.length > 0"
1116
+ >
1117
+ <ng-container *ngFor="let action of props.footerComplexActions">
1118
+ <ion-button
1119
+ *ngIf="action.type === actionTypes.ICON"
1120
+ (click)="clickHandler(sections.footerExtra, action.token)"
1121
+ >
1122
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
1123
+ </ion-button>
1124
+ <val-avatar
1125
+ style="margin-right: 4px; cursor: pointer"
1126
+ *ngIf="action.type === actionTypes.AVATAR"
1127
+ [props]="{ size: 'small', image: action.description, default: '' }"
1128
+ (onClick)="clickHandler(sections.footerExtra, action.token)"
1129
+ ></val-avatar>
1130
+ <val-image
1131
+ *ngIf="action.type === actionTypes.IMAGE"
1132
+ [props]="action.image"
1133
+ (click)="clickHandler(sections.footerExtra, action.token)"
1134
+ ></val-image>
1135
+ <ion-button
1136
+ *ngIf="action.type === actionTypes.BUTTON"
1137
+ (click)="clickHandler(sections.footerExtra, action.token)"
1138
+ color="dark"
1139
+ >
1140
+ {{ action.description }}
1141
+ </ion-button>
1142
+ </ng-container>
1143
+ </ion-buttons>
1144
+ </ion-card>
1145
+ `, styles: ["ion-card.tapable{transition:transform .3s ease,box-shadow .3s ease}ion-card.tapable:hover{transform:scale(1.01);box-shadow:.1875rem .625rem .5rem #1219541a}.tapable{cursor:pointer}.checker{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.complex-header{padding:10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.complex-content{padding-left:10px;padding-top:4px;padding-bottom:10px}.complex{border-radius:16px}\n"] }]
1146
+ }], ctorParameters: () => [], propDecorators: { props: [{
1147
+ type: Input
1148
+ }], onClick: [{
1149
+ type: Output
1150
+ }] } });
1151
+
1152
+ class CheckInputComponent {
1153
+ constructor() { }
1154
+ ngOnInit() { }
1155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1156
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CheckInputComponent, isStandalone: true, selector: "val-check-input", ngImport: i0, template: ` <ion-checkbox>I agree to the terms and conditions</ion-checkbox> `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "justify", "labelPlacement", "mode", "name", "value"] }] }); }
1157
+ }
1158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckInputComponent, decorators: [{
1159
+ type: Component,
1160
+ args: [{ selector: 'val-check-input', standalone: true, imports: [CommonModule, IonCheckbox], template: ` <ion-checkbox>I agree to the terms and conditions</ion-checkbox> ` }]
1161
+ }], ctorParameters: () => [] });
1162
+
1163
+ class CommentInputComponent {
1164
+ constructor() { }
1165
+ ngOnInit() { }
1166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CommentInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1167
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CommentInputComponent, isStandalone: true, selector: "val-comment-input", inputs: { props: "props" }, ngImport: i0, template: `
1168
+ <ion-textarea [formControl]="props.control" [counter]="true" [maxlength]="props.range.max"></ion-textarea>
1169
+ `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonTextarea, selector: "ion-textarea", inputs: ["autoGrow", "autocapitalize", "autofocus", "clearOnEdit", "color", "cols", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "maxlength", "minlength", "mode", "name", "placeholder", "readonly", "required", "rows", "shape", "spellcheck", "value", "wrap"] }] }); }
1170
+ }
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CommentInputComponent, decorators: [{
1172
+ type: Component,
1173
+ args: [{ selector: 'val-comment-input', standalone: true, imports: [CommonModule, ReactiveFormsModule, IonCheckbox, IonTextarea], template: `
1174
+ <ion-textarea [formControl]="props.control" [counter]="true" [maxlength]="props.range.max"></ion-textarea>
1175
+ ` }]
1176
+ }], ctorParameters: () => [], propDecorators: { props: [{
1177
+ type: Input
1178
+ }] } });
1179
+
1180
+ class ContentLoaderComponent {
1181
+ constructor() { }
1182
+ ngOnInit() { }
1183
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ContentLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1184
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ContentLoaderComponent, isStandalone: true, selector: "val-content-loader", inputs: { props: "props" }, ngImport: i0, template: `
1185
+ <div [ngClass]="['spinner-wrapper', props.size]">
1186
+ <ion-spinner [ngClass]="[props.size]" [name]="props.name" [color]="props.color"></ion-spinner>
1187
+ <ion-text [color]="props.color">
1188
+ <p>{{ props.text }}</p>
1189
+ </ion-text>
1190
+ </div>
1191
+ `, isInline: true, styles: [".small{width:1.5rem;height:1.5rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}.spinner-wrapper{width:100%;text-align:center}.spinner-wrapper.small{height:4.5rem;padding-top:1.5rem;font-size:.75rem;line-height:1.25rem;font-weight:400}.spinner-wrapper.medium{height:6.125rem;padding-top:2rem;font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.spinner-wrapper.medium{font-size:1rem;line-height:1.5rem}}.spinner-wrapper.large{height:6.75rem;padding-top:2.625rem;font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.spinner-wrapper.large{font-size:1.125rem;line-height:1.5rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
1192
+ }
1193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ContentLoaderComponent, decorators: [{
1194
+ type: Component,
1195
+ args: [{ selector: 'val-content-loader', standalone: true, imports: [CommonModule, IonSpinner, IonText], template: `
1196
+ <div [ngClass]="['spinner-wrapper', props.size]">
1197
+ <ion-spinner [ngClass]="[props.size]" [name]="props.name" [color]="props.color"></ion-spinner>
1198
+ <ion-text [color]="props.color">
1199
+ <p>{{ props.text }}</p>
1200
+ </ion-text>
1201
+ </div>
1202
+ `, styles: [".small{width:1.5rem;height:1.5rem}.medium{width:2.375rem;height:2.375rem}.large{width:3rem;height:3rem}.spinner-wrapper{width:100%;text-align:center}.spinner-wrapper.small{height:4.5rem;padding-top:1.5rem;font-size:.75rem;line-height:1.25rem;font-weight:400}.spinner-wrapper.medium{height:6.125rem;padding-top:2rem;font-size:.875rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.spinner-wrapper.medium{font-size:1rem;line-height:1.5rem}}.spinner-wrapper.large{height:6.75rem;padding-top:2.625rem;font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 768px){.spinner-wrapper.large{font-size:1.125rem;line-height:1.5rem}}\n"] }]
1203
+ }], ctorParameters: () => [], propDecorators: { props: [{
1204
+ type: Input
1205
+ }] } });
1206
+
1207
+ class DateInputComponent {
1208
+ constructor() { }
1209
+ ngOnInit() { }
1210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1211
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: DateInputComponent, isStandalone: true, selector: "val-date-input", inputs: { props: "props" }, ngImport: i0, template: `
1212
+ <div class="button-container">
1213
+ <ion-datetime-button class="action" datetime="datetime"></ion-datetime-button>
1214
+ </div>
1215
+ <ion-modal [keepContentsMounted]="true">
1216
+ <ng-template>
1217
+ <ion-datetime
1218
+ [formControl]="props.control"
1219
+ id="datetime"
1220
+ presentation="date"
1221
+ locale="es-ES"
1222
+ [firstDayOfWeek]="1"
1223
+ [showDefaultButtons]="true"
1224
+ doneText="Aceptar"
1225
+ cancelText="Cancelar"
1226
+ formatOptions="{
1227
+ date: { weekday: 'short', month: 'long', day: '2-digit' },
1228
+ time: {
1229
+ hour: '2-digit',
1230
+ minute: '2-digit',
1231
+ },
1232
+ }"
1233
+ >
1234
+ <span slot="title">{{ props.hint }}</span>
1235
+ </ion-datetime>
1236
+ </ng-template>
1237
+ </ion-modal>
1238
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.button-container{display:flex;flex-direction:column;align-items:flex-start}.action{margin-top:.25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonDatetime, selector: "ion-datetime", inputs: ["cancelText", "clearText", "color", "dayValues", "disabled", "doneText", "firstDayOfWeek", "highlightedDates", "hourCycle", "hourValues", "isDateEnabled", "locale", "max", "min", "minuteValues", "mode", "monthValues", "multiple", "name", "preferWheel", "presentation", "readonly", "showClearButton", "showDefaultButtons", "showDefaultTimeLabel", "showDefaultTitle", "size", "titleSelectedDatesFormatter", "value", "yearValues"] }, { kind: "component", type: IonDatetimeButton, selector: "ion-datetime-button", inputs: ["color", "datetime", "disabled", "mode"] }, { kind: "component", type: IonModal, selector: "ion-modal" }] }); }
1239
+ }
1240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DateInputComponent, decorators: [{
1241
+ type: Component,
1242
+ args: [{ selector: 'val-date-input', standalone: true, imports: [CommonModule, ReactiveFormsModule, IonDatetime, IonDatetimeButton, IonModal], template: `
1243
+ <div class="button-container">
1244
+ <ion-datetime-button class="action" datetime="datetime"></ion-datetime-button>
1245
+ </div>
1246
+ <ion-modal [keepContentsMounted]="true">
1247
+ <ng-template>
1248
+ <ion-datetime
1249
+ [formControl]="props.control"
1250
+ id="datetime"
1251
+ presentation="date"
1252
+ locale="es-ES"
1253
+ [firstDayOfWeek]="1"
1254
+ [showDefaultButtons]="true"
1255
+ doneText="Aceptar"
1256
+ cancelText="Cancelar"
1257
+ formatOptions="{
1258
+ date: { weekday: 'short', month: 'long', day: '2-digit' },
1259
+ time: {
1260
+ hour: '2-digit',
1261
+ minute: '2-digit',
1262
+ },
1263
+ }"
1264
+ >
1265
+ <span slot="title">{{ props.hint }}</span>
1266
+ </ion-datetime>
1267
+ </ng-template>
1268
+ </ion-modal>
1269
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.button-container{display:flex;flex-direction:column;align-items:flex-start}.action{margin-top:.25rem}\n"] }]
1270
+ }], ctorParameters: () => [], propDecorators: { props: [{
1271
+ type: Input
1272
+ }] } });
1273
+
1274
+ class EmailInputComponent {
1275
+ constructor() { }
1276
+ ngOnInit() { }
1277
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1278
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: EmailInputComponent, isStandalone: true, selector: "val-email-input", inputs: { props: "props" }, ngImport: i0, template: ` <ion-input [formControl]="props.control" type="email" [placeholder]="props.placeholder"></ion-input> `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "shape", "size", "spellcheck", "step", "type", "value"] }] }); }
1279
+ }
1280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailInputComponent, decorators: [{
1281
+ type: Component,
1282
+ args: [{ selector: 'val-email-input', standalone: true, imports: [CommonModule, ReactiveFormsModule, IonInput], template: ` <ion-input [formControl]="props.control" type="email" [placeholder]="props.placeholder"></ion-input> ` }]
1283
+ }], ctorParameters: () => [], propDecorators: { props: [{
1284
+ type: Input
1285
+ }] } });
1286
+
1287
+ class FileInputComponent {
1288
+ constructor() {
1289
+ this.contrastButton = {
1290
+ ...PrimarySolidDefaultRoundButton('Subir archivo'),
1291
+ color: 'light',
1292
+ };
1293
+ }
1294
+ ngOnInit() { }
1295
+ onFileSelected(event) {
1296
+ this.selectedFile = event.target.files[0];
1297
+ this.props.control.setValue(this.selectedFile);
1298
+ }
1299
+ reset() {
1300
+ this.selectedFile = null;
1301
+ this.fileInput.nativeElement.value = '';
1302
+ }
1303
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1304
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FileInputComponent, isStandalone: true, selector: "val-file-input", inputs: { props: "props" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: `
1305
+ <div class="file-container">
1306
+ <input style="display: none" type="file" (change)="onFileSelected($event)" #fileInput />
1307
+ <div class="name-container">
1308
+ <ion-icon [name]="selectedFile ? 'checkmark-circle-outline' : 'alert-circle-outline'"></ion-icon>
1309
+ <val-text
1310
+ style="margin-left: 4px;"
1311
+ [props]="{
1312
+ content: selectedFile ? selectedFile.name : 'No has seleccionado archivo',
1313
+ color: 'dark',
1314
+ bold: false,
1315
+ size: 'medium',
1316
+ }"
1317
+ ></val-text>
1318
+ </div>
1319
+ <val-button [props]="contrastButton" (onClick)="fileInput.click()"></val-button>
1320
+ </div>
1321
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.file-container{margin-top:.25rem}.name-container{display:flex;flex-direction:row;align-items:flex-start}\n"], dependencies: [{ kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["props"], outputs: ["onClick"] }] }); }
1322
+ }
1323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileInputComponent, decorators: [{
1324
+ type: Component,
1325
+ args: [{ selector: 'val-file-input', standalone: true, imports: [IonIcon, TextComponent, ButtonComponent], template: `
1326
+ <div class="file-container">
1327
+ <input style="display: none" type="file" (change)="onFileSelected($event)" #fileInput />
1328
+ <div class="name-container">
1329
+ <ion-icon [name]="selectedFile ? 'checkmark-circle-outline' : 'alert-circle-outline'"></ion-icon>
1330
+ <val-text
1331
+ style="margin-left: 4px;"
1332
+ [props]="{
1333
+ content: selectedFile ? selectedFile.name : 'No has seleccionado archivo',
1334
+ color: 'dark',
1335
+ bold: false,
1336
+ size: 'medium',
1337
+ }"
1338
+ ></val-text>
1339
+ </div>
1340
+ <val-button [props]="contrastButton" (onClick)="fileInput.click()"></val-button>
1341
+ </div>
1342
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.file-container{margin-top:.25rem}.name-container{display:flex;flex-direction:row;align-items:flex-start}\n"] }]
1343
+ }], ctorParameters: () => [], propDecorators: { fileInput: [{
1344
+ type: ViewChild,
1345
+ args: ['fileInput']
1346
+ }], props: [{
1347
+ type: Input
1348
+ }] } });
1349
+
1350
+ class HintComponent {
1351
+ constructor() { }
1352
+ ngOnInit() { }
1353
+ get Errors() {
1354
+ const keys = Object.keys(this.props.errors);
1355
+ const errors = [];
1356
+ keys.map((e) => {
1357
+ if (this.props.control.hasError(e)) {
1358
+ errors.push(this.props.errors[e]);
1359
+ }
1360
+ });
1361
+ return errors;
1362
+ }
1363
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1364
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HintComponent, isStandalone: true, selector: "val-hint", inputs: { props: "props" }, ngImport: i0, template: `
1365
+ <div class="hint-container" *ngIf="props.control.invalid && (props.control.touched || props.control.dirty)">
1366
+ <val-text
1367
+ *ngFor="let e of Errors"
1368
+ [props]="{
1369
+ content: e,
1370
+ color: 'danger',
1371
+ bold: false,
1372
+ size: 'small',
1373
+ }"
1374
+ ></val-text>
1375
+ </div>
1376
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.hint-container{margin-top:.25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }] }); }
1377
+ }
1378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HintComponent, decorators: [{
1379
+ type: Component,
1380
+ args: [{ selector: 'val-hint', standalone: true, imports: [CommonModule, TextComponent], template: `
1381
+ <div class="hint-container" *ngIf="props.control.invalid && (props.control.touched || props.control.dirty)">
1382
+ <val-text
1383
+ *ngFor="let e of Errors"
1384
+ [props]="{
1385
+ content: e,
1386
+ color: 'danger',
1387
+ bold: false,
1388
+ size: 'small',
1389
+ }"
1390
+ ></val-text>
1391
+ </div>
1392
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.hint-container{margin-top:.25rem}\n"] }]
1393
+ }], ctorParameters: () => [], propDecorators: { props: [{
1394
+ type: Input
1395
+ }] } });
1396
+
1397
+ class HourInputComponent {
1398
+ constructor() { }
1399
+ ngOnInit() { }
1400
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HourInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1401
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HourInputComponent, isStandalone: true, selector: "val-hour-input", inputs: { props: "props" }, ngImport: i0, template: ` <ion-datetime [formControl]="props.control" presentation="time"></ion-datetime>`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonDatetime, selector: "ion-datetime", inputs: ["cancelText", "clearText", "color", "dayValues", "disabled", "doneText", "firstDayOfWeek", "highlightedDates", "hourCycle", "hourValues", "isDateEnabled", "locale", "max", "min", "minuteValues", "mode", "monthValues", "multiple", "name", "preferWheel", "presentation", "readonly", "showClearButton", "showDefaultButtons", "showDefaultTimeLabel", "showDefaultTitle", "size", "titleSelectedDatesFormatter", "value", "yearValues"] }] }); }
1402
+ }
1403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HourInputComponent, decorators: [{
1404
+ type: Component,
1405
+ args: [{ selector: 'val-hour-input', standalone: true, imports: [ReactiveFormsModule, IonDatetime], template: ` <ion-datetime [formControl]="props.control" presentation="time"></ion-datetime>` }]
1406
+ }], ctorParameters: () => [], propDecorators: { props: [{
1407
+ type: Input
1408
+ }] } });
1409
+
1410
+ /* eslint-disable no-underscore-dangle */
1411
+ class InAppBrowserService {
1412
+ constructor() {
1413
+ this.options = {
1414
+ presentationStyle: 'popover',
1415
+ url: '',
1416
+ };
1417
+ }
1418
+ async openWithInAppBrowser(url) {
1419
+ await Browser.open({ ...this.options, url });
1420
+ }
1421
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InAppBrowserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1422
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InAppBrowserService, providedIn: 'root' }); }
1423
+ }
1424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InAppBrowserService, decorators: [{
1425
+ type: Injectable,
1426
+ args: [{
1427
+ providedIn: 'root',
1428
+ }]
1429
+ }], ctorParameters: () => [] });
1430
+
1431
+ class NavigationService {
1432
+ constructor() {
1433
+ this.router = inject(Router);
1434
+ this.inAppBrowser = inject(InAppBrowserService);
1435
+ }
1436
+ navigateInApp(url) {
1437
+ this.inAppBrowser.openWithInAppBrowser(url);
1438
+ }
1439
+ navigateWithData(route, dataTransfer) {
1440
+ const navigationExtras = {
1441
+ state: {
1442
+ data: dataTransfer,
1443
+ },
1444
+ };
1445
+ this.router.navigate([route], navigationExtras);
1446
+ }
1447
+ navigateByUrl(url) {
1448
+ this.router
1449
+ .navigateByUrl(url)
1450
+ .then(response => { })
1451
+ .catch(error => { });
1452
+ }
1453
+ openInNewTab(url) {
1454
+ window.open(url, '_blank', 'noopener,noreferrer');
1455
+ }
1456
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1457
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationService, providedIn: 'root' }); }
1458
+ }
1459
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationService, decorators: [{
1460
+ type: Injectable,
1461
+ args: [{
1462
+ providedIn: 'root',
1463
+ }]
1464
+ }], ctorParameters: () => [] });
1465
+
1466
+ class LinkComponent {
1467
+ constructor() {
1468
+ this.onClick = new EventEmitter();
1469
+ this.service = inject(NavigationService);
1470
+ addIcons({ chevronForwardOutline });
1471
+ }
1472
+ ngOnInit() { }
1473
+ onClickHandler() {
1474
+ this.onClick.emit(this.props.token);
1475
+ switch (this.props.type) {
1476
+ case 'internal':
1477
+ this.service.navigateByUrl(this.props.link);
1478
+ break;
1479
+ case 'browse':
1480
+ this.service.navigateInApp(this.props.link);
1481
+ break;
1482
+ case 'tab':
1483
+ this.service.openInNewTab(this.props.link);
1484
+ break;
1485
+ }
1486
+ }
1487
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1488
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LinkComponent, isStandalone: true, selector: "val-link", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
1489
+ <div>
1490
+ <ion-button type="button" [color]="props.color" fill="clear" [size]="props.size" (click)="onClickHandler()">
1491
+ <ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
1492
+ <ion-text>{{ props.text }}</ion-text>
1493
+ </ion-button>
1494
+ </div>
1495
+ `, isInline: true, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"], dependencies: [{ kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
1496
+ }
1497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinkComponent, decorators: [{
1498
+ type: Component,
1499
+ args: [{ selector: 'val-link', standalone: true, imports: [IonButton, IonIcon, IonText], template: `
1500
+ <div>
1501
+ <ion-button type="button" [color]="props.color" fill="clear" [size]="props.size" (click)="onClickHandler()">
1502
+ <ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
1503
+ <ion-text>{{ props.text }}</ion-text>
1504
+ </ion-button>
1505
+ </div>
1506
+ `, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}\n"] }]
1507
+ }], ctorParameters: () => [], propDecorators: { props: [{
1508
+ type: Input
1509
+ }], onClick: [{
1510
+ type: Output
1511
+ }] } });
1512
+
1513
+ class LinksCakeComponent {
1514
+ constructor() { }
1515
+ ngOnInit() { }
1516
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinksCakeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1517
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LinksCakeComponent, isStandalone: true, selector: "val-links-cake", inputs: { props: "props" }, ngImport: i0, template: `
1518
+ <div>
1519
+ <div class="title">
1520
+ <val-title [props]="{ content: props.title, color: 'dark', bold: false, size: props.size }"></val-title>
1521
+ </div>
1522
+ <div class="link" *ngFor="let l of props.links">
1523
+ <val-href [props]="l"></val-href>
1524
+ </div>
1525
+ </div>
1526
+ `, isInline: true, styles: [".title{margin:1rem 0}.link{margin-bottom:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: HrefComponent, selector: "val-href", inputs: ["props"], outputs: ["onClick"] }] }); }
1527
+ }
1528
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LinksCakeComponent, decorators: [{
1529
+ type: Component,
1530
+ args: [{ selector: 'val-links-cake', standalone: true, imports: [CommonModule, TitleComponent, HrefComponent], template: `
1531
+ <div>
1532
+ <div class="title">
1533
+ <val-title [props]="{ content: props.title, color: 'dark', bold: false, size: props.size }"></val-title>
1534
+ </div>
1535
+ <div class="link" *ngFor="let l of props.links">
1536
+ <val-href [props]="l"></val-href>
1537
+ </div>
1538
+ </div>
1539
+ `, styles: [".title{margin:1rem 0}.link{margin-bottom:.5rem}\n"] }]
1540
+ }], ctorParameters: () => [], propDecorators: { props: [{
1541
+ type: Input
1542
+ }] } });
1543
+
1544
+ class NotesBoxComponent {
1545
+ constructor() { }
1546
+ ngOnInit() { }
1547
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotesBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1548
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NotesBoxComponent, isStandalone: true, selector: "val-notes-box", inputs: { props: "props" }, ngImport: i0, template: `
1549
+ <val-box [props]="{ icon: '', bordered: false, color: props.color, leftBorder: true }">
1550
+ <div [ngClass]="['content-container', props.size]" body>
1551
+ <val-text [props]="{ content: props.prefix, color: props.textColor, bold: true, size: props.size }"></val-text>
1552
+ <val-text [props]="{ content: props.text, color: props.textColor, bold: false, size: props.size }"></val-text>
1553
+ </div>
1554
+ </val-box>
1555
+ `, isInline: true, styles: [".content-container{display:inline-grid}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BoxComponent, selector: "val-box", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }] }); }
1556
+ }
1557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotesBoxComponent, decorators: [{
1558
+ type: Component,
1559
+ args: [{ selector: 'val-notes-box', standalone: true, imports: [CommonModule, BoxComponent, TextComponent], template: `
1560
+ <val-box [props]="{ icon: '', bordered: false, color: props.color, leftBorder: true }">
1561
+ <div [ngClass]="['content-container', props.size]" body>
1562
+ <val-text [props]="{ content: props.prefix, color: props.textColor, bold: true, size: props.size }"></val-text>
1563
+ <val-text [props]="{ content: props.text, color: props.textColor, bold: false, size: props.size }"></val-text>
1564
+ </div>
1565
+ </val-box>
1566
+ `, styles: [".content-container{display:inline-grid}\n"] }]
1567
+ }], ctorParameters: () => [], propDecorators: { props: [{
1568
+ type: Input
1569
+ }] } });
1570
+
1571
+ class NumberInputComponent {
1572
+ constructor() { }
1573
+ ngOnInit() { }
1574
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1575
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NumberInputComponent, isStandalone: true, selector: "val-number-input", inputs: { props: "props" }, ngImport: i0, template: ` <ion-input [formControl]="props.control" type="number" [placeholder]="props.placeholder"></ion-input> `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "shape", "size", "spellcheck", "step", "type", "value"] }] }); }
1576
+ }
1577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NumberInputComponent, decorators: [{
1578
+ type: Component,
1579
+ args: [{ selector: 'val-number-input', standalone: true, imports: [ReactiveFormsModule, IonInput], template: ` <ion-input [formControl]="props.control" type="number" [placeholder]="props.placeholder"></ion-input> ` }]
1580
+ }], ctorParameters: () => [], propDecorators: { props: [{
1581
+ type: Input
1582
+ }] } });
1583
+
1584
+ class PasswordInputComponent {
1585
+ constructor() {
1586
+ this.hidePassword = true;
1587
+ }
1588
+ ngOnInit() { }
1589
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PasswordInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1590
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PasswordInputComponent, isStandalone: true, selector: "val-password-input", inputs: { props: "props" }, ngImport: i0, template: `
1591
+ <div class="input-container">
1592
+ <ion-input
1593
+ class="sign-in__input-password"
1594
+ [formControl]="props.control"
1595
+ [type]="hidePassword ? 'password' : 'text'"
1596
+ [placeholder]="props.placeholder"
1597
+ ></ion-input>
1598
+ <ion-button color="dark" fill="clear" (click)="hidePassword = !hidePassword" size="small">
1599
+ <ion-icon slot="icon-only" [name]="hidePassword ? 'eye-off-outline' : 'eye-outline'"></ion-icon>
1600
+ </ion-button>
1601
+ </div>
1602
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.input-container{display:flex;align-items:center;flex-direction:row}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "shape", "size", "spellcheck", "step", "type", "value"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] }); }
1603
+ }
1604
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PasswordInputComponent, decorators: [{
1605
+ type: Component,
1606
+ args: [{ selector: 'val-password-input', standalone: true, imports: [ReactiveFormsModule, IonInput, IonButton, IonIcon], template: `
1607
+ <div class="input-container">
1608
+ <ion-input
1609
+ class="sign-in__input-password"
1610
+ [formControl]="props.control"
1611
+ [type]="hidePassword ? 'password' : 'text'"
1612
+ [placeholder]="props.placeholder"
1613
+ ></ion-input>
1614
+ <ion-button color="dark" fill="clear" (click)="hidePassword = !hidePassword" size="small">
1615
+ <ion-icon slot="icon-only" [name]="hidePassword ? 'eye-off-outline' : 'eye-outline'"></ion-icon>
1616
+ </ion-button>
1617
+ </div>
1618
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.input-container{display:flex;align-items:center;flex-direction:row}\n"] }]
1619
+ }], ctorParameters: () => [], propDecorators: { props: [{
1620
+ type: Input
1621
+ }] } });
1622
+
1623
+ class PinInputComponent {
1624
+ constructor() {
1625
+ this.codeLength = 5;
1626
+ this.otpInputConfig = {
1627
+ inputStyles: {
1628
+ 'font-size': '36px',
1629
+ width: '55px',
1630
+ height: '55px',
1631
+ },
1632
+ inputClass: 'otp-input-box',
1633
+ length: this.codeLength,
1634
+ allowNumbersOnly: true,
1635
+ };
1636
+ }
1637
+ ngOnInit() { }
1638
+ reset() {
1639
+ if (this.pinCode) {
1640
+ this.pinCode.setValue('');
1641
+ }
1642
+ }
1643
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PinInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1644
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PinInputComponent, isStandalone: true, selector: "val-pin-input", inputs: { props: "props" }, viewQueries: [{ propertyName: "pinCode", first: true, predicate: NgOtpInputComponent, descendants: true }], ngImport: i0, template: `
1645
+ <div class="otp">
1646
+ <ng-otp-input [formCtrl]="props.control" [config]="otpInputConfig"></ng-otp-input>
1647
+ </div>
1648
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.otp{text-align:center;margin-top:.25rem;font-family:var(--ion-default-font),Arial,sans-serif}.otp-input-box:focus{border-color:#0ff}\n"], dependencies: [{ kind: "ngmodule", type: NgOtpInputModule }, { kind: "component", type: i1$2.NgOtpInputComponent, selector: "ng-otp-input", inputs: ["config", "formCtrl"], outputs: ["onInputChange"] }] }); }
1649
+ }
1650
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PinInputComponent, decorators: [{
1651
+ type: Component,
1652
+ args: [{ selector: 'val-pin-input', standalone: true, imports: [NgOtpInputModule], template: `
1653
+ <div class="otp">
1654
+ <ng-otp-input [formCtrl]="props.control" [config]="otpInputConfig"></ng-otp-input>
1655
+ </div>
1656
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}.otp{text-align:center;margin-top:.25rem;font-family:var(--ion-default-font),Arial,sans-serif}.otp-input-box:focus{border-color:#0ff}\n"] }]
1657
+ }], ctorParameters: () => [], propDecorators: { pinCode: [{
1658
+ type: ViewChild,
1659
+ args: [NgOtpInputComponent, { static: false }]
1660
+ }], props: [{
1661
+ type: Input
1662
+ }] } });
1663
+
1664
+ class TitleBlockComponent {
1665
+ constructor() { }
1666
+ ngOnInit() { }
1667
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1668
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TitleBlockComponent, isStandalone: true, selector: "val-title-block", inputs: { props: "props" }, ngImport: i0, template: `
1669
+ <div [ngClass]="['titles-container', props.position]">
1670
+ <val-title
1671
+ *ngIf="props.aboveTitle"
1672
+ [props]="{
1673
+ content: props.aboveTitle.text | uppercase,
1674
+ color: props.aboveTitle.color,
1675
+ bold: false,
1676
+ size: props.aboveTitle.size,
1677
+ }"
1678
+ ></val-title>
1679
+ <val-display
1680
+ *ngIf="props.title"
1681
+ [props]="{
1682
+ content: props.title.text,
1683
+ color: props.title.color,
1684
+ size: props.title.size,
1685
+ }"
1686
+ ></val-display>
1687
+ <val-title
1688
+ *ngIf="props.bellowTitle"
1689
+ [props]="{
1690
+ content: props.bellowTitle.text,
1691
+ color: props.bellowTitle.color,
1692
+ bold: false,
1693
+ size: props.bellowTitle.size,
1694
+ }"
1695
+ ></val-title>
1696
+ </div>
1697
+ `, isInline: true, styles: ["val-button,val-title,val-display{display:inline-block}.titles-container{width:100%;padding:.25rem;display:flex;flex-direction:column;flex-wrap:wrap}.titles-container.left{align-content:flex-start;align-items:start}.titles-container.center{align-content:center;align-items:center;text-align:center}.titles-container.right{align-content:flex-end;align-items:end;text-align:end}@media (min-width: 768px){.titles-container{padding:.5rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.UpperCasePipe, name: "uppercase" }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }] }); }
1698
+ }
1699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TitleBlockComponent, decorators: [{
1700
+ type: Component,
1701
+ args: [{ selector: 'val-title-block', standalone: true, imports: [CommonModule, TitleComponent, DisplayComponent], template: `
1702
+ <div [ngClass]="['titles-container', props.position]">
1703
+ <val-title
1704
+ *ngIf="props.aboveTitle"
1705
+ [props]="{
1706
+ content: props.aboveTitle.text | uppercase,
1707
+ color: props.aboveTitle.color,
1708
+ bold: false,
1709
+ size: props.aboveTitle.size,
1710
+ }"
1711
+ ></val-title>
1712
+ <val-display
1713
+ *ngIf="props.title"
1714
+ [props]="{
1715
+ content: props.title.text,
1716
+ color: props.title.color,
1717
+ size: props.title.size,
1718
+ }"
1719
+ ></val-display>
1720
+ <val-title
1721
+ *ngIf="props.bellowTitle"
1722
+ [props]="{
1723
+ content: props.bellowTitle.text,
1724
+ color: props.bellowTitle.color,
1725
+ bold: false,
1726
+ size: props.bellowTitle.size,
1727
+ }"
1728
+ ></val-title>
1729
+ </div>
1730
+ `, styles: ["val-button,val-title,val-display{display:inline-block}.titles-container{width:100%;padding:.25rem;display:flex;flex-direction:column;flex-wrap:wrap}.titles-container.left{align-content:flex-start;align-items:start}.titles-container.center{align-content:center;align-items:center;text-align:center}.titles-container.right{align-content:flex-end;align-items:end;text-align:end}@media (min-width: 768px){.titles-container{padding:.5rem}}\n"] }]
1731
+ }], ctorParameters: () => [], propDecorators: { props: [{
1732
+ type: Input
1733
+ }] } });
1734
+
1735
+ class ProgressStatusComponent {
1736
+ constructor() {
1737
+ this.currentIndex = 0;
1738
+ this.blinking = false;
1739
+ }
1740
+ ngOnInit() {
1741
+ setInterval(() => {
1742
+ this.blinking = !this.blinking;
1743
+ }, 1000);
1744
+ setInterval(() => {
1745
+ this.getNextMessage();
1746
+ }, 9000);
1747
+ }
1748
+ get Content() {
1749
+ return this.props.messages[this.currentIndex];
1750
+ }
1751
+ getNextMessage() {
1752
+ this.currentIndex = (this.currentIndex + 1) % this.props.messages.length;
1753
+ }
1754
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1755
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ProgressStatusComponent, isStandalone: true, selector: "val-progress-status", inputs: { props: "props" }, ngImport: i0, template: `
1756
+ <div class="status-container">
1757
+ <div class="title-container">
1758
+ <val-title-block
1759
+ [props]="{
1760
+ position: 'center',
1761
+ aboveTitle: props.titles.aboveTitle,
1762
+ title: props.titles.title,
1763
+ bellowTitle: props.titles.bellowTitle,
1764
+ }"
1765
+ ></val-title-block>
1766
+ </div>
1767
+ <div class="progress-bar-container">
1768
+ <val-progress-bar
1769
+ [props]="{
1770
+ progress: props.progress,
1771
+ size: 'xlarge',
1772
+ color: props.color,
1773
+ rounded: true,
1774
+ type: 'determinate',
1775
+ buffer: 1,
1776
+ }"
1777
+ ></val-progress-bar>
1778
+ </div>
1779
+ <div class="subtitle-container">
1780
+ <div class="subtitle" [class.blink]="blinking">
1781
+ <val-text [props]="{ content: Content, color: 'medium', bold: false, size: props.size }"></val-text>
1782
+ </div>
1783
+ </div>
1784
+ </div>
1785
+ `, isInline: true, styles: [".status-container{min-height:6.25rem;margin:1rem .5rem}.progress-bar-container{max-width:60%;margin:0 auto}.title-container{margin-bottom:.5rem}.subtitle-container{width:100%;display:flex}.subtitle{padding:1rem;margin:0 auto;height:1rem}.blink{animation:blink 1s infinite alternate ease-in}@keyframes blink{0%{opacity:0;margin-top:6px}to{opacity:1;margin-top:0}}\n"], dependencies: [{ kind: "component", type: TitleBlockComponent, selector: "val-title-block", inputs: ["props"] }, { kind: "component", type: ProgressBarComponent, selector: "val-progress-bar", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }] }); }
1786
+ }
1787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProgressStatusComponent, decorators: [{
1788
+ type: Component,
1789
+ args: [{ selector: 'val-progress-status', standalone: true, imports: [TitleBlockComponent, ProgressBarComponent, TextComponent], template: `
1790
+ <div class="status-container">
1791
+ <div class="title-container">
1792
+ <val-title-block
1793
+ [props]="{
1794
+ position: 'center',
1795
+ aboveTitle: props.titles.aboveTitle,
1796
+ title: props.titles.title,
1797
+ bellowTitle: props.titles.bellowTitle,
1798
+ }"
1799
+ ></val-title-block>
1800
+ </div>
1801
+ <div class="progress-bar-container">
1802
+ <val-progress-bar
1803
+ [props]="{
1804
+ progress: props.progress,
1805
+ size: 'xlarge',
1806
+ color: props.color,
1807
+ rounded: true,
1808
+ type: 'determinate',
1809
+ buffer: 1,
1810
+ }"
1811
+ ></val-progress-bar>
1812
+ </div>
1813
+ <div class="subtitle-container">
1814
+ <div class="subtitle" [class.blink]="blinking">
1815
+ <val-text [props]="{ content: Content, color: 'medium', bold: false, size: props.size }"></val-text>
1816
+ </div>
1817
+ </div>
1818
+ </div>
1819
+ `, styles: [".status-container{min-height:6.25rem;margin:1rem .5rem}.progress-bar-container{max-width:60%;margin:0 auto}.title-container{margin-bottom:.5rem}.subtitle-container{width:100%;display:flex}.subtitle{padding:1rem;margin:0 auto;height:1rem}.blink{animation:blink 1s infinite alternate ease-in}@keyframes blink{0%{opacity:0;margin-top:6px}to{opacity:1;margin-top:0}}\n"] }]
1820
+ }], ctorParameters: () => [], propDecorators: { props: [{
1821
+ type: Input
1822
+ }] } });
1823
+
1824
+ class PrompterComponent {
1825
+ constructor() {
1826
+ this.onClick = new EventEmitter();
1827
+ }
1828
+ ngOnInit() { }
1829
+ clickHandler(token) {
1830
+ this.onClick.emit(token);
1831
+ }
1832
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PrompterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1833
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PrompterComponent, isStandalone: true, selector: "val-prompter", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
1834
+ <val-box
1835
+ class="teleprompter-container"
1836
+ [props]="{ icon: '', bordered: props.bordered, color: props.color, leftBorder: false }"
1837
+ >
1838
+ <div class="container" [class.teleprompter-content]="props.teleprompter" body>
1839
+ <div>
1840
+ <val-text
1841
+ [props]="{
1842
+ content: props.content,
1843
+ color: '',
1844
+ bold: true,
1845
+ size: 'large',
1846
+ }"
1847
+ ></val-text>
1848
+ </div>
1849
+ <div *ngIf="props.buttons">
1850
+ <val-button-group
1851
+ class="buttons-container"
1852
+ [props]="{ buttons: props.buttons, position: 'left', columned: false }"
1853
+ (onClick)="clickHandler($event)"
1854
+ ></val-button-group>
1855
+ </div>
1856
+ <div *ngIf="props.hrefs">
1857
+ <val-href class="link" *ngFor="let l of props.hrefs" [props]="l" (onClick)="clickHandler($event)"></val-href>
1858
+ </div>
1859
+ </div>
1860
+ </val-box>
1861
+ `, isInline: true, styles: ["@charset \"UTF-8\";.container{display:flex;align-items:center;justify-content:center}.teleprompter-container{overflow:hidden;width:100%}.teleprompter-content{white-space:nowrap;animation:scroll-left 15s linear infinite}@keyframes scroll-left{0%{transform:translate(100%)}to{transform:translate(-100%)}}.link{margin:0 .25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BoxComponent, selector: "val-box", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: HrefComponent, selector: "val-href", inputs: ["props"], outputs: ["onClick"] }] }); }
1862
+ }
1863
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PrompterComponent, decorators: [{
1864
+ type: Component,
1865
+ args: [{ selector: 'val-prompter', standalone: true, imports: [CommonModule, BoxComponent, ButtonGroupComponent, TextComponent, HrefComponent], template: `
1866
+ <val-box
1867
+ class="teleprompter-container"
1868
+ [props]="{ icon: '', bordered: props.bordered, color: props.color, leftBorder: false }"
1869
+ >
1870
+ <div class="container" [class.teleprompter-content]="props.teleprompter" body>
1871
+ <div>
1872
+ <val-text
1873
+ [props]="{
1874
+ content: props.content,
1875
+ color: '',
1876
+ bold: true,
1877
+ size: 'large',
1878
+ }"
1879
+ ></val-text>
1880
+ </div>
1881
+ <div *ngIf="props.buttons">
1882
+ <val-button-group
1883
+ class="buttons-container"
1884
+ [props]="{ buttons: props.buttons, position: 'left', columned: false }"
1885
+ (onClick)="clickHandler($event)"
1886
+ ></val-button-group>
1887
+ </div>
1888
+ <div *ngIf="props.hrefs">
1889
+ <val-href class="link" *ngFor="let l of props.hrefs" [props]="l" (onClick)="clickHandler($event)"></val-href>
1890
+ </div>
1891
+ </div>
1892
+ </val-box>
1893
+ `, styles: ["@charset \"UTF-8\";.container{display:flex;align-items:center;justify-content:center}.teleprompter-container{overflow:hidden;width:100%}.teleprompter-content{white-space:nowrap;animation:scroll-left 15s linear infinite}@keyframes scroll-left{0%{transform:translate(100%)}to{transform:translate(-100%)}}.link{margin:0 .25rem}\n"] }]
1894
+ }], ctorParameters: () => [], propDecorators: { props: [{
1895
+ type: Input
1896
+ }], onClick: [{
1897
+ type: Output
1898
+ }] } });
1899
+
1900
+ class RadioInputComponent {
1901
+ constructor() { }
1902
+ ngOnInit() { }
1903
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1904
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: RadioInputComponent, isStandalone: true, selector: "val-radio-input", inputs: { props: "props" }, ngImport: i0, template: `
1905
+ <ion-radio-group [allowEmptySelection]="true" [formControl]="props.control">
1906
+ <ng-container *ngFor="let o of props.options">
1907
+ <ion-radio [value]="o.id">{{ o.name }}</ion-radio>
1908
+ <br />
1909
+ </ng-container>
1910
+ </ion-radio-group>
1911
+ `, isInline: true, styles: [""], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonRadioGroup, selector: "ion-radio-group", inputs: ["allowEmptySelection", "name", "value"] }, { kind: "component", type: IonRadio, selector: "ion-radio", inputs: ["alignment", "color", "disabled", "justify", "labelPlacement", "mode", "name", "value"] }] }); }
1912
+ }
1913
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioInputComponent, decorators: [{
1914
+ type: Component,
1915
+ args: [{ selector: 'val-radio-input', standalone: true, imports: [NgFor, ReactiveFormsModule, IonRadioGroup, IonRadio], template: `
1916
+ <ion-radio-group [allowEmptySelection]="true" [formControl]="props.control">
1917
+ <ng-container *ngFor="let o of props.options">
1918
+ <ion-radio [value]="o.id">{{ o.name }}</ion-radio>
1919
+ <br />
1920
+ </ng-container>
1921
+ </ion-radio-group>
1922
+ ` }]
1923
+ }], ctorParameters: () => [], propDecorators: { props: [{
1924
+ type: Input
1925
+ }] } });
1926
+
1927
+ class SearchbarComponent {
1928
+ constructor() {
1929
+ this.focusEvent = new EventEmitter();
1930
+ this.blurEvent = new EventEmitter();
1931
+ this.filterEvent = new EventEmitter();
1932
+ }
1933
+ onSearch($event) {
1934
+ const searchTerm = $event.detail.value;
1935
+ this.filterEvent.emit(searchTerm);
1936
+ }
1937
+ onFocus() {
1938
+ this.focusEvent.emit();
1939
+ }
1940
+ onBlur() {
1941
+ this.blurEvent.emit();
1942
+ }
1943
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1944
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SearchbarComponent, isStandalone: true, selector: "app-searchbar", inputs: { disabled: "disabled" }, outputs: { focusEvent: "focusEvent", blurEvent: "blurEvent", filterEvent: "filterEvent" }, ngImport: i0, template: `
1945
+ <ion-searchbar
1946
+ mode="ios"
1947
+ debounce="500"
1948
+ placeholder="Búsqueda"
1949
+ [disabled]="disabled"
1950
+ showCancelButton="focus"
1951
+ cancelButtonText="Cancelar"
1952
+ (ionInput)="onSearch($event)"
1953
+ (ionBlur)="onBlur()"
1954
+ (ionFocus)="onFocus()"
1955
+ >
1956
+ </ion-searchbar>
1957
+ `, isInline: true, styles: ["ion-searchbar{--cancel-button-color: var(--ion-color-dark);--background: var(--ion-color-light);font-family:var(--ion-default-font),Arial,sans-serif}\n"], dependencies: [{ kind: "component", type: IonSearchbar, selector: "ion-searchbar", inputs: ["animated", "autocomplete", "autocorrect", "cancelButtonIcon", "cancelButtonText", "clearIcon", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "mode", "name", "placeholder", "searchIcon", "showCancelButton", "showClearButton", "spellcheck", "type", "value"] }] }); }
1958
+ }
1959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchbarComponent, decorators: [{
1960
+ type: Component,
1961
+ args: [{ selector: 'app-searchbar', standalone: true, imports: [IonSearchbar], template: `
1962
+ <ion-searchbar
1963
+ mode="ios"
1964
+ debounce="500"
1965
+ placeholder="Búsqueda"
1966
+ [disabled]="disabled"
1967
+ showCancelButton="focus"
1968
+ cancelButtonText="Cancelar"
1969
+ (ionInput)="onSearch($event)"
1970
+ (ionBlur)="onBlur()"
1971
+ (ionFocus)="onFocus()"
1972
+ >
1973
+ </ion-searchbar>
1974
+ `, styles: ["ion-searchbar{--cancel-button-color: var(--ion-color-dark);--background: var(--ion-color-light);font-family:var(--ion-default-font),Arial,sans-serif}\n"] }]
1975
+ }], ctorParameters: () => [], propDecorators: { disabled: [{
1976
+ type: Input
1977
+ }], focusEvent: [{
1978
+ type: Output
1979
+ }], blurEvent: [{
1980
+ type: Output
1981
+ }], filterEvent: [{
1982
+ type: Output
1983
+ }] } });
1984
+
1985
+ class TextInputComponent {
1986
+ constructor() { }
1987
+ ngOnInit() { }
1988
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1989
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TextInputComponent, isStandalone: true, selector: "val-text-input", inputs: { props: "props" }, ngImport: i0, template: ` <ion-input [formControl]="props.control" type="text" [placeholder]="props.placeholder"></ion-input> `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "shape", "size", "spellcheck", "step", "type", "value"] }] }); }
1990
+ }
1991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TextInputComponent, decorators: [{
1992
+ type: Component,
1993
+ args: [{ selector: 'val-text-input', standalone: true, imports: [ReactiveFormsModule, IonInput], template: ` <ion-input [formControl]="props.control" type="text" [placeholder]="props.placeholder"></ion-input> `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"] }]
1994
+ }], ctorParameters: () => [], propDecorators: { props: [{
1995
+ type: Input
1996
+ }] } });
1997
+
1998
+ function resolveColor(color) {
1999
+ // Si el color empieza con "--", se asume que es una variable CSS válida
2000
+ if (color.startsWith('--')) {
2001
+ return `var(${color})`;
2002
+ }
2003
+ // Lista de colores predefinidos de Ionic
2004
+ const ionicColors = [
2005
+ 'primary',
2006
+ 'secondary',
2007
+ 'tertiary',
2008
+ 'success',
2009
+ 'warning',
2010
+ 'danger',
2011
+ 'light',
2012
+ 'medium',
2013
+ 'dark',
2014
+ ];
2015
+ // Verificar si el color es un color de Ionic
2016
+ if (ionicColors.includes(color)) {
2017
+ return `var(--ion-color-${color})`;
2018
+ }
2019
+ // Si no es una variable CSS ni un color de Ionic, devolver el color tal cual
2020
+ return color;
2021
+ }
2022
+
2023
+ class ExpandableTextComponent {
2024
+ constructor() {
2025
+ this.expanded = false;
2026
+ this.defaultColor = 'primary';
2027
+ }
2028
+ get truncatedText() {
2029
+ const maxLength = this.props.limit || 100; // Longitud por defecto
2030
+ return this.props.content?.length > maxLength ? this.props.content.slice(0, maxLength) + '...' : this.props.content;
2031
+ }
2032
+ get isTruncated() {
2033
+ return this.props.content?.length > (this.props.limit || 100);
2034
+ }
2035
+ toggleExpand() {
2036
+ this.expanded = !this.expanded;
2037
+ }
2038
+ color() {
2039
+ return resolveColor(this.props.color || this.defaultColor);
2040
+ }
2041
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExpandableTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2042
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ExpandableTextComponent, isStandalone: true, selector: "val-expandable-text", inputs: { props: "props" }, ngImport: i0, template: `
2043
+ <div class="description-container" [class.expanded]="expanded" [class.has-gradient]="!expanded && isTruncated">
2044
+ <ion-text>
2045
+ <p class="description">
2046
+ <span class="content">{{ expanded ? props.content : truncatedText }}</span>
2047
+ @if (!expanded && isTruncated) {
2048
+ <span class="see-more" [style.color]="this.color()" (click)="toggleExpand()">
2049
+ {{ props.expandText || 'ver más' }}
2050
+ </span>
2051
+ }
2052
+ </p>
2053
+ </ion-text>
2054
+ </div>
2055
+ `, isInline: true, styles: [".description-container{position:relative;overflow:hidden;max-height:10rem;transition:max-height .3s ease-in-out}.description-container.expanded{max-height:none}.description{position:relative;overflow:hidden;text-overflow:ellipsis}.description-container:not(.expanded) .description:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:3.5rem;background:linear-gradient(to top,var(--ion-background-color),rgba(255,255,255,0));pointer-events:none}.description-container:not(.has-gradient) .description:after{background:transparent}.see-more{position:relative;font-weight:700;cursor:pointer;z-index:1;margin-left:.3rem}\n"], dependencies: [{ kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }] }); }
2056
+ }
2057
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExpandableTextComponent, decorators: [{
2058
+ type: Component,
2059
+ args: [{ selector: 'val-expandable-text', standalone: true, imports: [IonText], template: `
2060
+ <div class="description-container" [class.expanded]="expanded" [class.has-gradient]="!expanded && isTruncated">
2061
+ <ion-text>
2062
+ <p class="description">
2063
+ <span class="content">{{ expanded ? props.content : truncatedText }}</span>
2064
+ @if (!expanded && isTruncated) {
2065
+ <span class="see-more" [style.color]="this.color()" (click)="toggleExpand()">
2066
+ {{ props.expandText || 'ver más' }}
2067
+ </span>
2068
+ }
2069
+ </p>
2070
+ </ion-text>
2071
+ </div>
2072
+ `, styles: [".description-container{position:relative;overflow:hidden;max-height:10rem;transition:max-height .3s ease-in-out}.description-container.expanded{max-height:none}.description{position:relative;overflow:hidden;text-overflow:ellipsis}.description-container:not(.expanded) .description:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:3.5rem;background:linear-gradient(to top,var(--ion-background-color),rgba(255,255,255,0));pointer-events:none}.description-container:not(.has-gradient) .description:after{background:transparent}.see-more{position:relative;font-weight:700;cursor:pointer;z-index:1;margin-left:.3rem}\n"] }]
2073
+ }], propDecorators: { props: [{
2074
+ type: Input
2075
+ }] } });
2076
+
2077
+ class BannerComponent {
2078
+ constructor() {
2079
+ this.onClick = new EventEmitter();
2080
+ this.onClose = new EventEmitter();
2081
+ }
2082
+ ngOnInit() { }
2083
+ clickHandler(token) {
2084
+ this.onClick.emit(token);
2085
+ }
2086
+ closeHandler() {
2087
+ this.onClose.emit();
2088
+ }
2089
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2090
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: BannerComponent, isStandalone: true, selector: "val-banner", inputs: { props: "props" }, outputs: { onClick: "onClick", onClose: "onClose" }, ngImport: i0, template: `
2091
+ <val-box
2092
+ [props]="{ icon: props.closable ? 'close-outline' : '', bordered: props.bordered, color: '' }"
2093
+ (onClick)="closeHandler()"
2094
+ >
2095
+ <div [ngClass]="['content-container', props.mode, props.alignment]" body>
2096
+ <val-title-block
2097
+ [props]="{
2098
+ position: props.mode === 'center' ? 'center' : 'left',
2099
+ aboveTitle: props.content.aboveTitle,
2100
+ title: props.content.title,
2101
+ bellowTitle: props.content.bellowTitle,
2102
+ }"
2103
+ ></val-title-block>
2104
+ <val-button-group
2105
+ class="buttons-container"
2106
+ [props]="{ position: props.mode === 'center' ? 'center' : 'left', buttons: props.actions, columned: false }"
2107
+ (onClick)="clickHandler($event)"
2108
+ ></val-button-group>
2109
+ </div>
2110
+ </val-box>
2111
+ `, isInline: true, styles: [".content-container{display:flex;justify-content:space-between}.content-container.center{flex-direction:column}.content-container.column{flex-direction:row}.content-container.row{flex-direction:column}.content-container.middle{align-items:center}.content-container.top{align-items:flex-start}.content-container.bottom{align-items:flex-end}.content-container.hybrid{flex-direction:column;align-items:flex-start}@media (min-width: 768px){.content-container.hybrid{flex-direction:row;align-items:center}}.buttons-container{align-items:center;display:flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BoxComponent, selector: "val-box", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: TitleBlockComponent, selector: "val-title-block", inputs: ["props"] }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }] }); }
2112
+ }
2113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BannerComponent, decorators: [{
2114
+ type: Component,
2115
+ args: [{ selector: 'val-banner', standalone: true, imports: [CommonModule, BoxComponent, TitleBlockComponent, ButtonGroupComponent], template: `
2116
+ <val-box
2117
+ [props]="{ icon: props.closable ? 'close-outline' : '', bordered: props.bordered, color: '' }"
2118
+ (onClick)="closeHandler()"
2119
+ >
2120
+ <div [ngClass]="['content-container', props.mode, props.alignment]" body>
2121
+ <val-title-block
2122
+ [props]="{
2123
+ position: props.mode === 'center' ? 'center' : 'left',
2124
+ aboveTitle: props.content.aboveTitle,
2125
+ title: props.content.title,
2126
+ bellowTitle: props.content.bellowTitle,
2127
+ }"
2128
+ ></val-title-block>
2129
+ <val-button-group
2130
+ class="buttons-container"
2131
+ [props]="{ position: props.mode === 'center' ? 'center' : 'left', buttons: props.actions, columned: false }"
2132
+ (onClick)="clickHandler($event)"
2133
+ ></val-button-group>
2134
+ </div>
2135
+ </val-box>
2136
+ `, styles: [".content-container{display:flex;justify-content:space-between}.content-container.center{flex-direction:column}.content-container.column{flex-direction:row}.content-container.row{flex-direction:column}.content-container.middle{align-items:center}.content-container.top{align-items:flex-start}.content-container.bottom{align-items:flex-end}.content-container.hybrid{flex-direction:column;align-items:flex-start}@media (min-width: 768px){.content-container.hybrid{flex-direction:row;align-items:center}}.buttons-container{align-items:center;display:flex}\n"] }]
2137
+ }], ctorParameters: () => [], propDecorators: { props: [{
2138
+ type: Input
2139
+ }], onClick: [{
2140
+ type: Output
2141
+ }], onClose: [{
2142
+ type: Output
2143
+ }] } });
2144
+
2145
+ class ToolbarComponent {
2146
+ constructor(navCtrl) {
2147
+ this.navCtrl = navCtrl;
2148
+ this.onClick = new EventEmitter();
2149
+ this.actionTypes = ToolbarActionType;
2150
+ addIcons({ chevronBackOutline });
2151
+ }
2152
+ ngOnInit() { }
2153
+ goBack() {
2154
+ this.navCtrl.back();
2155
+ }
2156
+ rightActions() {
2157
+ return this.props.actions.filter(x => x.position === 'right');
2158
+ }
2159
+ leftActions() {
2160
+ return this.props.actions.filter(x => x.position === 'left');
2161
+ }
2162
+ someInRight() {
2163
+ return !!this.props.actions.find(x => x.position === 'right');
2164
+ }
2165
+ someInLeft() {
2166
+ return !!this.props.actions.find(x => x.position === 'left');
2167
+ }
2168
+ clickHandler(token) {
2169
+ this.onClick.emit(token);
2170
+ }
2171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1$3.NavController }], target: i0.ɵɵFactoryTarget.Component }); }
2172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ToolbarComponent, isStandalone: true, selector: "val-toolbar", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2173
+ <ion-toolbar [color]="props.color" [class.background]="props.color === 'background'">
2174
+ <ng-container *ngIf="props.withBack">
2175
+ <ion-buttons class="left-buttons" slot="start" *ngIf="props.withBack">
2176
+ <ion-button fill="clear" (click)="goBack()" [color]="props.textColor">
2177
+ <ion-icon name="chevron-back-outline" [slot]="props.backText ? 'start' : 'icon-only'"></ion-icon>
2178
+ <ion-text *ngIf="props.backText">{{ props.backText }}</ion-text>
2179
+ </ion-button>
2180
+ </ion-buttons>
2181
+ </ng-container>
2182
+ <ng-container *ngIf="props.withActions">
2183
+ <ion-buttons slot="end" *ngIf="someInRight()">
2184
+ <ng-container *ngFor="let action of rightActions()">
2185
+ <ion-button *ngIf="action.type === actionTypes.ICON" (click)="clickHandler(action.token)">
2186
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
2187
+ </ion-button>
2188
+ <val-avatar
2189
+ *ngIf="action.type === actionTypes.AVATAR"
2190
+ [props]="{ size: 'small', image: action.description, default: '' }"
2191
+ (onClick)="clickHandler(action.token)"
2192
+ ></val-avatar>
2193
+ <val-image
2194
+ *ngIf="action.type === actionTypes.IMAGE"
2195
+ [props]="action.image"
2196
+ (click)="clickHandler(action.token)"
2197
+ ></val-image>
2198
+ <ion-button *ngIf="action.type === actionTypes.BUTTON" (click)="clickHandler(action.token)">{{
2199
+ action.description
2200
+ }}</ion-button>
2201
+ </ng-container>
2202
+ </ion-buttons>
2203
+ <ion-buttons slot="start" *ngIf="someInLeft()">
2204
+ <ng-container *ngFor="let action of leftActions()">
2205
+ <ion-button *ngIf="action.type === actionTypes.ICON" (click)="clickHandler(action.token)">
2206
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
2207
+ </ion-button>
2208
+ <val-avatar
2209
+ *ngIf="action.type === actionTypes.AVATAR"
2210
+ [props]="{ size: 'small', image: action.description, default: '' }"
2211
+ (onClick)="clickHandler(action.token)"
2212
+ ></val-avatar>
2213
+ <val-image
2214
+ *ngIf="action.type === actionTypes.IMAGE"
2215
+ [props]="action.image"
2216
+ (click)="clickHandler(action.token)"
2217
+ ></val-image>
2218
+ <ion-button *ngIf="action.type === actionTypes.BUTTON" (click)="clickHandler(action.token)">{{
2219
+ action.description
2220
+ }}</ion-button>
2221
+ </ng-container>
2222
+ </ion-buttons>
2223
+ </ng-container>
2224
+ <ion-title *ngIf="props.title" [color]="props.textColor">{{ props.title }}</ion-title>
2225
+ <!-- experimental -->
2226
+ <ng-content select="[toolbar-bottom]"></ng-content>
2227
+ </ion-toolbar>
2228
+ `, isInline: true, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: AvatarComponent, selector: "val-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }] }); }
2229
+ }
2230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ToolbarComponent, decorators: [{
2231
+ type: Component,
2232
+ args: [{ selector: 'val-toolbar', standalone: true, imports: [
2233
+ CommonModule,
2234
+ IonToolbar,
2235
+ IonButtons,
2236
+ IonButton,
2237
+ IonIcon,
2238
+ IonText,
2239
+ IonTitle,
2240
+ AvatarComponent,
2241
+ ImageComponent,
2242
+ ], template: `
2243
+ <ion-toolbar [color]="props.color" [class.background]="props.color === 'background'">
2244
+ <ng-container *ngIf="props.withBack">
2245
+ <ion-buttons class="left-buttons" slot="start" *ngIf="props.withBack">
2246
+ <ion-button fill="clear" (click)="goBack()" [color]="props.textColor">
2247
+ <ion-icon name="chevron-back-outline" [slot]="props.backText ? 'start' : 'icon-only'"></ion-icon>
2248
+ <ion-text *ngIf="props.backText">{{ props.backText }}</ion-text>
2249
+ </ion-button>
2250
+ </ion-buttons>
2251
+ </ng-container>
2252
+ <ng-container *ngIf="props.withActions">
2253
+ <ion-buttons slot="end" *ngIf="someInRight()">
2254
+ <ng-container *ngFor="let action of rightActions()">
2255
+ <ion-button *ngIf="action.type === actionTypes.ICON" (click)="clickHandler(action.token)">
2256
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
2257
+ </ion-button>
2258
+ <val-avatar
2259
+ *ngIf="action.type === actionTypes.AVATAR"
2260
+ [props]="{ size: 'small', image: action.description, default: '' }"
2261
+ (onClick)="clickHandler(action.token)"
2262
+ ></val-avatar>
2263
+ <val-image
2264
+ *ngIf="action.type === actionTypes.IMAGE"
2265
+ [props]="action.image"
2266
+ (click)="clickHandler(action.token)"
2267
+ ></val-image>
2268
+ <ion-button *ngIf="action.type === actionTypes.BUTTON" (click)="clickHandler(action.token)">{{
2269
+ action.description
2270
+ }}</ion-button>
2271
+ </ng-container>
2272
+ </ion-buttons>
2273
+ <ion-buttons slot="start" *ngIf="someInLeft()">
2274
+ <ng-container *ngFor="let action of leftActions()">
2275
+ <ion-button *ngIf="action.type === actionTypes.ICON" (click)="clickHandler(action.token)">
2276
+ <ion-icon slot="icon-only" [name]="action.description" color="dark"></ion-icon>
2277
+ </ion-button>
2278
+ <val-avatar
2279
+ *ngIf="action.type === actionTypes.AVATAR"
2280
+ [props]="{ size: 'small', image: action.description, default: '' }"
2281
+ (onClick)="clickHandler(action.token)"
2282
+ ></val-avatar>
2283
+ <val-image
2284
+ *ngIf="action.type === actionTypes.IMAGE"
2285
+ [props]="action.image"
2286
+ (click)="clickHandler(action.token)"
2287
+ ></val-image>
2288
+ <ion-button *ngIf="action.type === actionTypes.BUTTON" (click)="clickHandler(action.token)">{{
2289
+ action.description
2290
+ }}</ion-button>
2291
+ </ng-container>
2292
+ </ion-buttons>
2293
+ </ng-container>
2294
+ <ion-title *ngIf="props.title" [color]="props.textColor">{{ props.title }}</ion-title>
2295
+ <!-- experimental -->
2296
+ <ng-content select="[toolbar-bottom]"></ng-content>
2297
+ </ion-toolbar>
2298
+ `, styles: ["ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}\n"] }]
2299
+ }], ctorParameters: () => [{ type: i1$3.NavController }], propDecorators: { props: [{
2300
+ type: Input
2301
+ }], onClick: [{
2302
+ type: Output
2303
+ }] } });
2304
+
2305
+ class FooterComponent {
2306
+ constructor() {
2307
+ this.onClick = new EventEmitter();
2308
+ }
2309
+ ngOnInit() { }
2310
+ clickHandler(token) {
2311
+ this.onClick.emit(token);
2312
+ }
2313
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2314
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FooterComponent, isStandalone: true, selector: "val-footer", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2315
+ <ion-footer
2316
+ [class.ion-no-border]="!props.bordered"
2317
+ [translucent]="props.translucent"
2318
+ [class.background]="props.toolbar.color === 'background'"
2319
+ >
2320
+ <val-toolbar
2321
+ *ngIf="props.toolbar.title || props.toolbar.withActions || props.toolbar.withBack"
2322
+ [props]="props.toolbar"
2323
+ (onClick)="clickHandler($event)"
2324
+ ></val-toolbar>
2325
+ <ng-content select="[extra]"></ng-content>
2326
+ </ion-footer>
2327
+ `, isInline: true, styles: [".background{background:var(--ion-background-color)}\n"], dependencies: [{ kind: "component", type: IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: ToolbarComponent, selector: "val-toolbar", inputs: ["props"], outputs: ["onClick"] }] }); }
2328
+ }
2329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FooterComponent, decorators: [{
2330
+ type: Component,
2331
+ args: [{ selector: 'val-footer', standalone: true, imports: [IonFooter, ToolbarComponent], template: `
2332
+ <ion-footer
2333
+ [class.ion-no-border]="!props.bordered"
2334
+ [translucent]="props.translucent"
2335
+ [class.background]="props.toolbar.color === 'background'"
2336
+ >
2337
+ <val-toolbar
2338
+ *ngIf="props.toolbar.title || props.toolbar.withActions || props.toolbar.withBack"
2339
+ [props]="props.toolbar"
2340
+ (onClick)="clickHandler($event)"
2341
+ ></val-toolbar>
2342
+ <ng-content select="[extra]"></ng-content>
2343
+ </ion-footer>
2344
+ `, styles: [".background{background:var(--ion-background-color)}\n"] }]
2345
+ }], ctorParameters: () => [], propDecorators: { props: [{
2346
+ type: Input
2347
+ }], onClick: [{
2348
+ type: Output
2349
+ }] } });
2350
+
2351
+ const maxLength = (field, max) => {
2352
+ return {
2353
+ validator: Validators.maxLength(max),
2354
+ error: `El campo ${field} no debe superar los ${max} caracteres.`,
2355
+ };
2356
+ };
2357
+
2358
+ class FormFooterComponent {
2359
+ constructor() {
2360
+ this.onSubmit = new EventEmitter();
2361
+ }
2362
+ ngOnInit() { }
2363
+ async submitHandler(token) {
2364
+ this.onSubmit.emit({ fields: this.form.value, token });
2365
+ }
2366
+ get actions() {
2367
+ if (!this.form) {
2368
+ return [];
2369
+ }
2370
+ if (this.form.valid) {
2371
+ this.action.state = ComponentStates.ENABLED;
2372
+ }
2373
+ return [this.action];
2374
+ }
2375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2376
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFooterComponent, isStandalone: true, selector: "val-form-footer", inputs: { form: "form", action: "action" }, outputs: { onSubmit: "onSubmit" }, ngImport: i0, template: `
2377
+ <val-footer
2378
+ [props]="{
2379
+ bordered: false,
2380
+ translucent: false,
2381
+ toolbar: {
2382
+ title: '',
2383
+ actions: [],
2384
+ color: 'background',
2385
+ withBack: false,
2386
+ withActions: false,
2387
+ },
2388
+ }"
2389
+ >
2390
+ <val-button-group
2391
+ extra
2392
+ [props]="{ buttons: actions, position: 'center', columned: false }"
2393
+ (onClick)="submitHandler($event)"
2394
+ ></val-button-group>
2395
+ </val-footer>
2396
+ `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: FooterComponent, selector: "val-footer", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }] }); }
2397
+ }
2398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFooterComponent, decorators: [{
2399
+ type: Component,
2400
+ args: [{ selector: 'val-form-footer', standalone: true, imports: [FooterComponent, ButtonGroupComponent], template: `
2401
+ <val-footer
2402
+ [props]="{
2403
+ bordered: false,
2404
+ translucent: false,
2405
+ toolbar: {
2406
+ title: '',
2407
+ actions: [],
2408
+ color: 'background',
2409
+ withBack: false,
2410
+ withActions: false,
2411
+ },
2412
+ }"
2413
+ >
2414
+ <val-button-group
2415
+ extra
2416
+ [props]="{ buttons: actions, position: 'center', columned: false }"
2417
+ (onClick)="submitHandler($event)"
2418
+ ></val-button-group>
2419
+ </val-footer>
2420
+ ` }]
2421
+ }], ctorParameters: () => [], propDecorators: { form: [{
2422
+ type: Input
2423
+ }], action: [{
2424
+ type: Input
2425
+ }], onSubmit: [{
2426
+ type: Output
2427
+ }] } });
2428
+
2429
+ const goToTop = (id) => {
2430
+ const element = document.getElementById(id);
2431
+ if (element) {
2432
+ element.scrollIntoView({
2433
+ block: 'start',
2434
+ inline: 'nearest',
2435
+ behavior: 'smooth',
2436
+ });
2437
+ }
2438
+ };
2439
+ const isAtEnd = (elementRef) => {
2440
+ const formElement = elementRef.nativeElement;
2441
+ const rect = formElement.getBoundingClientRect();
2442
+ const windowHeight = window.innerHeight;
2443
+ return rect.bottom <= windowHeight;
2444
+ };
2445
+
2446
+ class FormComponent {
2447
+ constructor(fb, elementRef) {
2448
+ this.fb = fb;
2449
+ this.elementRef = elementRef;
2450
+ this.onSubmit = new EventEmitter();
2451
+ this.onInvalid = new EventEmitter();
2452
+ this.types = InputType;
2453
+ }
2454
+ ngOnInit() {
2455
+ const formControls = {};
2456
+ this.props.sections.forEach(section => {
2457
+ section.fields.forEach(field => {
2458
+ formControls[field.name] = [undefined, field.validators || []];
2459
+ });
2460
+ });
2461
+ this.form = this.fb.group(formControls);
2462
+ }
2463
+ async submitHandler(token) {
2464
+ this.onSubmit.emit({ fields: this.form.value, token });
2465
+ }
2466
+ getControl(field) {
2467
+ return this.Form.get(field);
2468
+ }
2469
+ getFieldProp(field) {
2470
+ return {
2471
+ ...field,
2472
+ control: this.getControl(field.name),
2473
+ };
2474
+ }
2475
+ get isAtEndOfForm() {
2476
+ return isAtEnd(this.elementRef);
2477
+ }
2478
+ get Form() {
2479
+ return this.form;
2480
+ }
2481
+ get actions() {
2482
+ if (!this.form) {
2483
+ return [];
2484
+ }
2485
+ if (this.form.valid) {
2486
+ this.props.actions.state = ComponentStates.ENABLED;
2487
+ }
2488
+ if (this.props.state === ComponentStates.WORKING) {
2489
+ this.props.actions.state = ComponentStates.WORKING;
2490
+ }
2491
+ if (this.props.state === ComponentStates.ENABLED) {
2492
+ this.props.actions.state = ComponentStates.ENABLED;
2493
+ }
2494
+ if (this.props.state === ComponentStates.DISABLED) {
2495
+ this.props.actions.state = ComponentStates.DISABLED;
2496
+ }
2497
+ return [this.props.actions];
2498
+ }
2499
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
2500
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormComponent, isStandalone: true, selector: "val-form", inputs: { props: "props" }, outputs: { onSubmit: "onSubmit", onInvalid: "onInvalid" }, ngImport: i0, template: `
2501
+ <div class="container">
2502
+ <form [formGroup]="form">
2503
+ <val-display
2504
+ [props]="{
2505
+ content: props.name,
2506
+ color: 'dark',
2507
+ size: 'large',
2508
+ }"
2509
+ ></val-display>
2510
+ <div class="section" *ngFor="let s of props.sections">
2511
+ <val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
2512
+ <div class="input" *ngFor="let f of s.fields">
2513
+ <val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
2514
+ <ng-container *ngIf="f.type === types.TEXT">
2515
+ <val-text-input [props]="getFieldProp(f)"></val-text-input>
2516
+ </ng-container>
2517
+ <ng-container *ngIf="f.type === types.CHECK">
2518
+ <val-check-input></val-check-input>
2519
+ </ng-container>
2520
+ <ng-container *ngIf="f.type === types.COMMENT">
2521
+ <val-comment-input [props]="getFieldProp(f)"></val-comment-input>
2522
+ </ng-container>
2523
+ <ng-container *ngIf="f.type === types.DATE">
2524
+ <val-date-input [props]="getFieldProp(f)"></val-date-input>
2525
+ </ng-container>
2526
+ <ng-container *ngIf="f.type === types.EMAIL">
2527
+ <val-email-input [props]="getFieldProp(f)"></val-email-input>
2528
+ </ng-container>
2529
+ <ng-container *ngIf="f.type === types.FILE">
2530
+ <val-file-input [props]="getFieldProp(f)"></val-file-input>
2531
+ </ng-container>
2532
+ <ng-container *ngIf="f.type === types.HOUR">
2533
+ <val-hour-input [props]="getFieldProp(f)"></val-hour-input>
2534
+ </ng-container>
2535
+ <ng-container *ngIf="f.type === types.NUMBER">
2536
+ <val-number-input [props]="getFieldProp(f)"></val-number-input>
2537
+ </ng-container>
2538
+ <ng-container *ngIf="f.type === types.PASSWORD">
2539
+ <val-password-input [props]="getFieldProp(f)"></val-password-input>
2540
+ </ng-container>
2541
+ <ng-container *ngIf="f.type === types.PIN_CODE">
2542
+ <val-pin-input [props]="getFieldProp(f)"></val-pin-input>
2543
+ </ng-container>
2544
+ <ng-container *ngIf="f.type === types.RADIO">
2545
+ <val-radio-input [props]="getFieldProp(f)"></val-radio-input>
2546
+ </ng-container>
2547
+ <ng-container *ngIf="f.type === types.SELECT">
2548
+ <!-- <val-select-input></val-select-input> -->
2549
+ </ng-container>
2550
+ <val-hint [props]="getFieldProp(f)"></val-hint>
2551
+ </div>
2552
+ <val-divider [props]="{ fill: 'solid', size: 'medium', color: 'medium' }"></val-divider>
2553
+ </div>
2554
+ <val-button-group
2555
+ [props]="{ buttons: actions, position: 'center', columned: false }"
2556
+ (onClick)="submitHandler($event)"
2557
+ ></val-button-group>
2558
+ </form>
2559
+ </div>
2560
+ `, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextInputComponent, selector: "val-text-input", inputs: ["props"] }, { kind: "component", type: CheckInputComponent, selector: "val-check-input" }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: DividerComponent, selector: "val-divider", inputs: ["props"] }, { kind: "component", type: HintComponent, selector: "val-hint", inputs: ["props"] }, { kind: "component", type: CommentInputComponent, selector: "val-comment-input", inputs: ["props"] }, { kind: "component", type: DateInputComponent, selector: "val-date-input", inputs: ["props"] }, { kind: "component", type: FileInputComponent, selector: "val-file-input", inputs: ["props"] }, { kind: "component", type: HourInputComponent, selector: "val-hour-input", inputs: ["props"] }, { kind: "component", type: EmailInputComponent, selector: "val-email-input", inputs: ["props"] }, { kind: "component", type: NumberInputComponent, selector: "val-number-input", inputs: ["props"] }, { kind: "component", type: RadioInputComponent, selector: "val-radio-input", inputs: ["props"] }, { kind: "component", type: PasswordInputComponent, selector: "val-password-input", inputs: ["props"] }, { kind: "component", type: PinInputComponent, selector: "val-pin-input", inputs: ["props"] }] }); }
2561
+ }
2562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormComponent, decorators: [{
2563
+ type: Component,
2564
+ args: [{ selector: 'val-form', standalone: true, imports: [
2565
+ CommonModule,
2566
+ ReactiveFormsModule,
2567
+ DisplayComponent,
2568
+ TitleComponent,
2569
+ TextInputComponent,
2570
+ CheckInputComponent,
2571
+ ButtonGroupComponent,
2572
+ DividerComponent,
2573
+ HintComponent,
2574
+ CommentInputComponent,
2575
+ DateInputComponent,
2576
+ FileInputComponent,
2577
+ HourInputComponent,
2578
+ EmailInputComponent,
2579
+ NumberInputComponent,
2580
+ RadioInputComponent,
2581
+ PasswordInputComponent,
2582
+ PinInputComponent,
2583
+ ], template: `
2584
+ <div class="container">
2585
+ <form [formGroup]="form">
2586
+ <val-display
2587
+ [props]="{
2588
+ content: props.name,
2589
+ color: 'dark',
2590
+ size: 'large',
2591
+ }"
2592
+ ></val-display>
2593
+ <div class="section" *ngFor="let s of props.sections">
2594
+ <val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
2595
+ <div class="input" *ngFor="let f of s.fields">
2596
+ <val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
2597
+ <ng-container *ngIf="f.type === types.TEXT">
2598
+ <val-text-input [props]="getFieldProp(f)"></val-text-input>
2599
+ </ng-container>
2600
+ <ng-container *ngIf="f.type === types.CHECK">
2601
+ <val-check-input></val-check-input>
2602
+ </ng-container>
2603
+ <ng-container *ngIf="f.type === types.COMMENT">
2604
+ <val-comment-input [props]="getFieldProp(f)"></val-comment-input>
2605
+ </ng-container>
2606
+ <ng-container *ngIf="f.type === types.DATE">
2607
+ <val-date-input [props]="getFieldProp(f)"></val-date-input>
2608
+ </ng-container>
2609
+ <ng-container *ngIf="f.type === types.EMAIL">
2610
+ <val-email-input [props]="getFieldProp(f)"></val-email-input>
2611
+ </ng-container>
2612
+ <ng-container *ngIf="f.type === types.FILE">
2613
+ <val-file-input [props]="getFieldProp(f)"></val-file-input>
2614
+ </ng-container>
2615
+ <ng-container *ngIf="f.type === types.HOUR">
2616
+ <val-hour-input [props]="getFieldProp(f)"></val-hour-input>
2617
+ </ng-container>
2618
+ <ng-container *ngIf="f.type === types.NUMBER">
2619
+ <val-number-input [props]="getFieldProp(f)"></val-number-input>
2620
+ </ng-container>
2621
+ <ng-container *ngIf="f.type === types.PASSWORD">
2622
+ <val-password-input [props]="getFieldProp(f)"></val-password-input>
2623
+ </ng-container>
2624
+ <ng-container *ngIf="f.type === types.PIN_CODE">
2625
+ <val-pin-input [props]="getFieldProp(f)"></val-pin-input>
2626
+ </ng-container>
2627
+ <ng-container *ngIf="f.type === types.RADIO">
2628
+ <val-radio-input [props]="getFieldProp(f)"></val-radio-input>
2629
+ </ng-container>
2630
+ <ng-container *ngIf="f.type === types.SELECT">
2631
+ <!-- <val-select-input></val-select-input> -->
2632
+ </ng-container>
2633
+ <val-hint [props]="getFieldProp(f)"></val-hint>
2634
+ </div>
2635
+ <val-divider [props]="{ fill: 'solid', size: 'medium', color: 'medium' }"></val-divider>
2636
+ </div>
2637
+ <val-button-group
2638
+ [props]="{ buttons: actions, position: 'center', columned: false }"
2639
+ (onClick)="submitHandler($event)"
2640
+ ></val-button-group>
2641
+ </form>
2642
+ </div>
2643
+ `, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"] }]
2644
+ }], ctorParameters: () => [{ type: i1$1.FormBuilder }, { type: i0.ElementRef }], propDecorators: { props: [{
2645
+ type: Input
2646
+ }], onSubmit: [{
2647
+ type: Output
2648
+ }], onInvalid: [{
2649
+ type: Output
2650
+ }] } });
2651
+
2652
+ class HeaderComponent {
2653
+ constructor() {
2654
+ this.onClick = new EventEmitter();
2655
+ }
2656
+ ngOnInit() { }
2657
+ clickHandler(token) {
2658
+ this.onClick.emit(token);
2659
+ }
2660
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2661
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HeaderComponent, isStandalone: true, selector: "val-header", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2662
+ <ion-header [class.ion-no-border]="!props.bordered" [translucent]="props.translucent">
2663
+ <val-toolbar [props]="props.toolbar" (onClick)="clickHandler($event)"></val-toolbar>
2664
+ </ion-header>
2665
+ `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: ToolbarComponent, selector: "val-toolbar", inputs: ["props"], outputs: ["onClick"] }] }); }
2666
+ }
2667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeaderComponent, decorators: [{
2668
+ type: Component,
2669
+ args: [{ selector: 'val-header', standalone: true, imports: [IonHeader, ToolbarComponent], template: `
2670
+ <ion-header [class.ion-no-border]="!props.bordered" [translucent]="props.translucent">
2671
+ <val-toolbar [props]="props.toolbar" (onClick)="clickHandler($event)"></val-toolbar>
2672
+ </ion-header>
2673
+ ` }]
2674
+ }], ctorParameters: () => [], propDecorators: { props: [{
2675
+ type: Input
2676
+ }], onClick: [{
2677
+ type: Output
2678
+ }] } });
2679
+
2680
+ class NoContentComponent {
2681
+ constructor() {
2682
+ this.onClick = new EventEmitter();
2683
+ }
2684
+ ngOnInit() { }
2685
+ onClickHandler(token) {
2686
+ this.onClick.emit(token);
2687
+ }
2688
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NoContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2689
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: NoContentComponent, isStandalone: true, selector: "val-no-content", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2690
+ @if (props.topContent) {
2691
+ <div>
2692
+ <val-banner [props]="props.topContent" (onClick)="onClickHandler($event)"></val-banner>
2693
+ </div>
2694
+ }
2695
+ <val-image class="image-container" [props]="props.image"></val-image>
2696
+ <div>
2697
+ <val-banner [props]="props.bottomContent" (onClick)="onClickHandler($event)"></val-banner>
2698
+ </div>
2699
+ `, isInline: true, styles: [".image-container{display:flex;justify-content:center;margin-bottom:1rem}val-image .image{margin:0 auto}\n"], dependencies: [{ kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: BannerComponent, selector: "val-banner", inputs: ["props"], outputs: ["onClick", "onClose"] }] }); }
2700
+ }
2701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NoContentComponent, decorators: [{
2702
+ type: Component,
2703
+ args: [{ selector: 'val-no-content', standalone: true, imports: [ImageComponent, BannerComponent], template: `
2704
+ @if (props.topContent) {
2705
+ <div>
2706
+ <val-banner [props]="props.topContent" (onClick)="onClickHandler($event)"></val-banner>
2707
+ </div>
2708
+ }
2709
+ <val-image class="image-container" [props]="props.image"></val-image>
2710
+ <div>
2711
+ <val-banner [props]="props.bottomContent" (onClick)="onClickHandler($event)"></val-banner>
2712
+ </div>
2713
+ `, styles: [".image-container{display:flex;justify-content:center;margin-bottom:1rem}val-image .image{margin:0 auto}\n"] }]
2714
+ }], ctorParameters: () => [], propDecorators: { props: [{
2715
+ type: Input
2716
+ }], onClick: [{
2717
+ type: Output
2718
+ }] } });
2719
+
2720
+ var MOTION;
2721
+ (function (MOTION) {
2722
+ MOTION[MOTION["BACKWARD"] = 0] = "BACKWARD";
2723
+ MOTION[MOTION["FORWARD"] = 1] = "FORWARD";
2724
+ MOTION[MOTION["RETRY"] = 2] = "RETRY";
2725
+ })(MOTION || (MOTION = {}));
2726
+
2727
+ class WizardFooterComponent {
2728
+ constructor() {
2729
+ this.onClick = new EventEmitter();
2730
+ this.wrapperId = 'wizard-wrapper';
2731
+ }
2732
+ ngOnInit() { }
2733
+ clickHandler(token) {
2734
+ if (!token) {
2735
+ return;
2736
+ }
2737
+ if (token.includes('right')) {
2738
+ this.tryToStep(MOTION.FORWARD);
2739
+ }
2740
+ if (token.includes('left')) {
2741
+ this.tryToStep(MOTION.BACKWARD);
2742
+ }
2743
+ }
2744
+ get Current() {
2745
+ return this.props.steps[this.props.current];
2746
+ }
2747
+ get Progress() {
2748
+ if (this.props.steps && this.props.current) {
2749
+ return this.props.current / Object.keys(this.props.steps).length;
2750
+ }
2751
+ return 0;
2752
+ }
2753
+ get actions() {
2754
+ if (this.props.state === ComponentStates.ERROR && this.Current.buttons.length > 1) {
2755
+ this.Current.buttons[1].state = ComponentStates.DISABLED;
2756
+ }
2757
+ if (this.props.current === 1 && this.Current.buttons.length > 1) {
2758
+ return [this.Current.buttons[1]];
2759
+ }
2760
+ return this.Current.buttons;
2761
+ }
2762
+ tryToStep(motion) {
2763
+ this.onClick.emit({ current: this.props.current, motion });
2764
+ }
2765
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WizardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2766
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: WizardFooterComponent, isStandalone: true, selector: "val-wizard-footer", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2767
+ <val-footer
2768
+ [props]="{
2769
+ bordered: false,
2770
+ translucent: false,
2771
+ toolbar: {
2772
+ title: '',
2773
+ actions: [],
2774
+ color: 'background',
2775
+ withBack: false,
2776
+ withActions: false,
2777
+ },
2778
+ }"
2779
+ >
2780
+ <val-progress-bar
2781
+ extra
2782
+ [props]="{ progress: Progress, color: '', type: 'determinate', buffer: 1, size: 'small', rounded: false }"
2783
+ ></val-progress-bar>
2784
+ <val-button-group
2785
+ extra
2786
+ [props]="{ buttons: actions, position: 'left', columned: false }"
2787
+ position="spaced"
2788
+ (onClick)="clickHandler($event)"
2789
+ ></val-button-group>
2790
+ </val-footer>
2791
+ `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: FooterComponent, selector: "val-footer", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ProgressBarComponent, selector: "val-progress-bar", inputs: ["props"] }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }] }); }
2792
+ }
2793
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WizardFooterComponent, decorators: [{
2794
+ type: Component,
2795
+ args: [{ selector: 'val-wizard-footer', standalone: true, imports: [FooterComponent, ProgressBarComponent, ButtonGroupComponent], template: `
2796
+ <val-footer
2797
+ [props]="{
2798
+ bordered: false,
2799
+ translucent: false,
2800
+ toolbar: {
2801
+ title: '',
2802
+ actions: [],
2803
+ color: 'background',
2804
+ withBack: false,
2805
+ withActions: false,
2806
+ },
2807
+ }"
2808
+ >
2809
+ <val-progress-bar
2810
+ extra
2811
+ [props]="{ progress: Progress, color: '', type: 'determinate', buffer: 1, size: 'small', rounded: false }"
2812
+ ></val-progress-bar>
2813
+ <val-button-group
2814
+ extra
2815
+ [props]="{ buttons: actions, position: 'left', columned: false }"
2816
+ position="spaced"
2817
+ (onClick)="clickHandler($event)"
2818
+ ></val-button-group>
2819
+ </val-footer>
2820
+ ` }]
2821
+ }], ctorParameters: () => [], propDecorators: { props: [{
2822
+ type: Input
2823
+ }], onClick: [{
2824
+ type: Output
2825
+ }] } });
2826
+
2827
+ class WizardComponent {
2828
+ constructor() {
2829
+ this.onClick = new EventEmitter();
2830
+ this.wrapperId = 'wizard-wrapper';
2831
+ }
2832
+ ngOnInit() { }
2833
+ working() {
2834
+ this.props.state = ComponentStates.WORKING;
2835
+ this.Current.buttons.map(x => {
2836
+ x.state = ComponentStates.DISABLED;
2837
+ });
2838
+ }
2839
+ done() {
2840
+ if (this.props.state === ComponentStates.ENABLED) {
2841
+ return;
2842
+ }
2843
+ this.props.state = ComponentStates.ENABLED;
2844
+ this.Current.buttons.map(x => {
2845
+ x.state = ComponentStates.ENABLED;
2846
+ });
2847
+ }
2848
+ get Current() {
2849
+ return this.props.steps[this.props.current];
2850
+ }
2851
+ setCurrent(newStep) {
2852
+ if (newStep === this.props.current) {
2853
+ return;
2854
+ }
2855
+ this.props.current = newStep;
2856
+ goToTop(this.wrapperId);
2857
+ }
2858
+ setError(error) {
2859
+ if (this.props.state === ComponentStates.ERROR) {
2860
+ return;
2861
+ }
2862
+ this.props.error.titles.bottomContent.content.bellowTitle.text = error;
2863
+ this.props.state = ComponentStates.ERROR;
2864
+ goToTop(this.wrapperId);
2865
+ }
2866
+ reset() {
2867
+ this.props.error.titles.bottomContent.content.bellowTitle.text = '';
2868
+ this.done();
2869
+ }
2870
+ clickHandler(token) {
2871
+ if (!token) {
2872
+ return;
2873
+ }
2874
+ if (token.includes('retry')) {
2875
+ this.reset();
2876
+ }
2877
+ this.onClick.emit({ current: this.props.current, motion: MOTION.RETRY });
2878
+ }
2879
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2880
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: WizardComponent, isStandalone: true, selector: "val-wizard", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
2881
+ <div [id]="wrapperId" class="wrapper">
2882
+ <ng-container *ngIf="props.state !== 'ERROR'">
2883
+ <val-no-content [props]="Current.titles"></val-no-content>
2884
+ <div class="step">
2885
+ <div *ngIf="props.state === 'WORKING'">
2886
+ <val-content-loader color="dark" size="large" text="Por favor espere..."></val-content-loader>
2887
+ </div>
2888
+ <ng-content select="[step]"></ng-content>
2889
+ </div>
2890
+ </ng-container>
2891
+ <ng-container *ngIf="props.state === 'ERROR'">
2892
+ <val-no-content [props]="props.error.titles" (onClick)="clickHandler($event)"></val-no-content>
2893
+ </ng-container>
2894
+ </div>
2895
+ `, isInline: true, styles: [".wrapper{height:auto;display:flex;flex-direction:column;justify-content:space-between;position:relative}.step{min-height:9.375rem;margin:16px 0;text-align:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NoContentComponent, selector: "val-no-content", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ContentLoaderComponent, selector: "val-content-loader", inputs: ["props"] }] }); }
2896
+ }
2897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WizardComponent, decorators: [{
2898
+ type: Component,
2899
+ args: [{ selector: 'val-wizard', standalone: true, imports: [CommonModule, NoContentComponent, ContentLoaderComponent], template: `
2900
+ <div [id]="wrapperId" class="wrapper">
2901
+ <ng-container *ngIf="props.state !== 'ERROR'">
2902
+ <val-no-content [props]="Current.titles"></val-no-content>
2903
+ <div class="step">
2904
+ <div *ngIf="props.state === 'WORKING'">
2905
+ <val-content-loader color="dark" size="large" text="Por favor espere..."></val-content-loader>
2906
+ </div>
2907
+ <ng-content select="[step]"></ng-content>
2908
+ </div>
2909
+ </ng-container>
2910
+ <ng-container *ngIf="props.state === 'ERROR'">
2911
+ <val-no-content [props]="props.error.titles" (onClick)="clickHandler($event)"></val-no-content>
2912
+ </ng-container>
2913
+ </div>
2914
+ `, styles: [".wrapper{height:auto;display:flex;flex-direction:column;justify-content:space-between;position:relative}.step{min-height:9.375rem;margin:16px 0;text-align:center}\n"] }]
2915
+ }], ctorParameters: () => [], propDecorators: { props: [{
2916
+ type: Input
2917
+ }], onClick: [{
2918
+ type: Output
2919
+ }] } });
2920
+
2921
+ class ItemListComponent {
2922
+ constructor(icon) {
2923
+ this.states = ComponentStates;
2924
+ this.defaultColor = 'primary';
2925
+ this.onClick = new EventEmitter();
2926
+ this.onActionClick = new EventEmitter();
2927
+ }
2928
+ ngOnInit() { }
2929
+ clickHandler(token) {
2930
+ this.onClick.emit(token);
2931
+ }
2932
+ onActionClickHandler(token) {
2933
+ this.onActionClick.emit(token);
2934
+ }
2935
+ color() {
2936
+ return resolveColor(this.props.color || this.defaultColor);
2937
+ }
2938
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ItemListComponent, deps: [{ token: IconService }], target: i0.ɵɵFactoryTarget.Component }); }
2939
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ItemListComponent, isStandalone: true, selector: "val-item-list", inputs: { props: "props" }, outputs: { onClick: "onClick", onActionClick: "onActionClick" }, ngImport: i0, template: `
2940
+ <div>
2941
+ <ion-list
2942
+ [inset]="props.rounded"
2943
+ [class.shadowed]="props.shadowed"
2944
+ [class.bordered]="props.bordered"
2945
+ [ngStyle]="{
2946
+ 'border-color': props.bordered ? this.color : '',
2947
+ }"
2948
+ >
2949
+ <ion-list-header>
2950
+ <ion-label>{{ props.title }}</ion-label>
2951
+ </ion-list-header>
2952
+ @for (item of props.items; track item.text) {
2953
+ @if (item.mode == 'justext') {
2954
+ <ion-item
2955
+ [lines]="item.lines"
2956
+ [button]="item.clickable"
2957
+ [disabled]="item.disabled"
2958
+ (click)="clickHandler(item.token)"
2959
+ >
2960
+ @if (item.unreadIndicator) {
2961
+ <div class="unread-indicator-wrapper" slot="start">
2962
+ <div class="unread-indicator"></div>
2963
+ </div>
2964
+ }
2965
+
2966
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
2967
+ <h2>{{ item.text }}</h2>
2968
+
2969
+ @if (item.comments) {
2970
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
2971
+ }
2972
+ </ion-label>
2973
+
2974
+ @if (item.endNote) {
2975
+ <ion-note slot="end">{{ item.endNote }}</ion-note>
2976
+ }
2977
+ </ion-item>
2978
+ }
2979
+
2980
+ @if (item.mode == 'actionable') {
2981
+ <ion-item [lines]="item.lines" [button]="item.clickable" [disabled]="item.disabled">
2982
+ @if (item.unreadIndicator) {
2983
+ <div class="unread-indicator-wrapper" slot="start">
2984
+ <div class="unread-indicator"></div>
2985
+ </div>
2986
+ }
2987
+
2988
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
2989
+ <h2>{{ item.text }}</h2>
2990
+
2991
+ @if (item.comments) {
2992
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
2993
+ }
2994
+ </ion-label>
2995
+
2996
+ @if (item.actions) {
2997
+ @for (action of item.actions; track action.token) {
2998
+ <ion-button
2999
+ fill="outline"
3000
+ color="dark"
3001
+ slot="end"
3002
+ [disabled]="action.state === states.WORKING"
3003
+ (click)="onActionClickHandler(action.token)"
3004
+ >
3005
+ @if (action.state !== states.WORKING) {
3006
+ @if (action.icon) {
3007
+ <ion-icon aria-hidden="true" [name]="action.icon" size="medium" slot="start"></ion-icon>
3008
+ }
3009
+
3010
+ {{ action.description }}
3011
+ }
3012
+
3013
+ @if (action.state === states.WORKING) {
3014
+ <ion-spinner class="action-spinner" name="circular"></ion-spinner>
3015
+ }
3016
+ </ion-button>
3017
+ }
3018
+ }
3019
+ </ion-item>
3020
+ }
3021
+
3022
+ @if (item.mode == 'route') {
3023
+ <ion-item
3024
+ [lines]="item.lines"
3025
+ [button]="item.clickable"
3026
+ [disabled]="item.disabled"
3027
+ (click)="clickHandler(item.token)"
3028
+ [routerLink]="item.routerLink"
3029
+ >
3030
+ @if (item.unreadIndicator) {
3031
+ <div class="unread-indicator-wrapper" slot="start">
3032
+ <div class="unread-indicator"></div>
3033
+ </div>
3034
+ }
3035
+
3036
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3037
+ <h2>{{ item.text }}</h2>
3038
+
3039
+ @if (item.comments) {
3040
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
3041
+ }
3042
+ </ion-label>
3043
+ </ion-item>
3044
+ }
3045
+
3046
+ @if (item.mode == 'subtitule') {
3047
+ <ion-item
3048
+ [lines]="item.lines"
3049
+ [button]="item.clickable"
3050
+ [disabled]="item.disabled"
3051
+ (click)="clickHandler(item.token)"
3052
+ >
3053
+ @if (item.unreadIndicator) {
3054
+ <div class="unread-indicator-wrapper" slot="start">
3055
+ <div class="unread-indicator"></div>
3056
+ </div>
3057
+ }
3058
+
3059
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3060
+ <h1>{{ item.text }}</h1>
3061
+ <p>{{ item.subtitle }}</p>
3062
+ </ion-label>
3063
+ </ion-item>
3064
+ }
3065
+
3066
+ @if (item.mode == 'avatar') {
3067
+ <ion-item
3068
+ [lines]="item.lines"
3069
+ [button]="item.clickable"
3070
+ [disabled]="item.disabled"
3071
+ (click)="clickHandler(item.token)"
3072
+ >
3073
+ <ion-avatar aria-hidden="true" slot="start">
3074
+ <img alt="" [src]="item.image" />
3075
+ </ion-avatar>
3076
+ <ion-label>{{ item.text }}</ion-label>
3077
+ </ion-item>
3078
+ }
3079
+
3080
+ @if (item.mode == 'icon') {
3081
+ <ion-item
3082
+ [lines]="item.lines"
3083
+ [button]="item.clickable"
3084
+ [disabled]="item.disabled"
3085
+ (click)="clickHandler(item.token)"
3086
+ >
3087
+ <ion-icon aria-hidden="true" [name]="item.icon" size="medium" slot="start"></ion-icon>
3088
+ <ion-label>{{ item.text }}</ion-label>
3089
+ </ion-item>
3090
+ }
3091
+ }
3092
+ </ion-list>
3093
+ </div>
3094
+ `, isInline: true, styles: ["ion-label{font-family:var(--ion-default-font),Arial,sans-serif}ion-note{font-family:var(--ion-default-font),Arial,sans-serif;font-weight:400}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.shadowed{box-shadow:.1875rem .625rem .5rem #1219541a}.bordered{border:1px solid}.unread-indicator{background:var(--ion-color-primary);width:.625rem;height:.625rem;border-radius:100%;position:absolute;inset-inline-start:.75rem;top:.75rem}.action-spinner{width:3.125rem;height:1rem}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonListHeader, selector: "ion-list-header", inputs: ["color", "lines", "mode"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonNote, selector: "ion-note", inputs: ["color", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonAvatar, selector: "ion-avatar" }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }] }); }
3095
+ }
3096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ItemListComponent, decorators: [{
3097
+ type: Component,
3098
+ args: [{ selector: 'val-item-list', standalone: true, imports: [
3099
+ RouterLink,
3100
+ NgStyle,
3101
+ NgClass,
3102
+ IonList,
3103
+ IonListHeader,
3104
+ IonLabel,
3105
+ IonNote,
3106
+ IonItem,
3107
+ IonAvatar,
3108
+ IonIcon,
3109
+ IonButton,
3110
+ IonSpinner,
3111
+ ], template: `
3112
+ <div>
3113
+ <ion-list
3114
+ [inset]="props.rounded"
3115
+ [class.shadowed]="props.shadowed"
3116
+ [class.bordered]="props.bordered"
3117
+ [ngStyle]="{
3118
+ 'border-color': props.bordered ? this.color : '',
3119
+ }"
3120
+ >
3121
+ <ion-list-header>
3122
+ <ion-label>{{ props.title }}</ion-label>
3123
+ </ion-list-header>
3124
+ @for (item of props.items; track item.text) {
3125
+ @if (item.mode == 'justext') {
3126
+ <ion-item
3127
+ [lines]="item.lines"
3128
+ [button]="item.clickable"
3129
+ [disabled]="item.disabled"
3130
+ (click)="clickHandler(item.token)"
3131
+ >
3132
+ @if (item.unreadIndicator) {
3133
+ <div class="unread-indicator-wrapper" slot="start">
3134
+ <div class="unread-indicator"></div>
3135
+ </div>
3136
+ }
3137
+
3138
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3139
+ <h2>{{ item.text }}</h2>
3140
+
3141
+ @if (item.comments) {
3142
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
3143
+ }
3144
+ </ion-label>
3145
+
3146
+ @if (item.endNote) {
3147
+ <ion-note slot="end">{{ item.endNote }}</ion-note>
3148
+ }
3149
+ </ion-item>
3150
+ }
3151
+
3152
+ @if (item.mode == 'actionable') {
3153
+ <ion-item [lines]="item.lines" [button]="item.clickable" [disabled]="item.disabled">
3154
+ @if (item.unreadIndicator) {
3155
+ <div class="unread-indicator-wrapper" slot="start">
3156
+ <div class="unread-indicator"></div>
3157
+ </div>
3158
+ }
3159
+
3160
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3161
+ <h2>{{ item.text }}</h2>
3162
+
3163
+ @if (item.comments) {
3164
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
3165
+ }
3166
+ </ion-label>
3167
+
3168
+ @if (item.actions) {
3169
+ @for (action of item.actions; track action.token) {
3170
+ <ion-button
3171
+ fill="outline"
3172
+ color="dark"
3173
+ slot="end"
3174
+ [disabled]="action.state === states.WORKING"
3175
+ (click)="onActionClickHandler(action.token)"
3176
+ >
3177
+ @if (action.state !== states.WORKING) {
3178
+ @if (action.icon) {
3179
+ <ion-icon aria-hidden="true" [name]="action.icon" size="medium" slot="start"></ion-icon>
3180
+ }
3181
+
3182
+ {{ action.description }}
3183
+ }
3184
+
3185
+ @if (action.state === states.WORKING) {
3186
+ <ion-spinner class="action-spinner" name="circular"></ion-spinner>
3187
+ }
3188
+ </ion-button>
3189
+ }
3190
+ }
3191
+ </ion-item>
3192
+ }
3193
+
3194
+ @if (item.mode == 'route') {
3195
+ <ion-item
3196
+ [lines]="item.lines"
3197
+ [button]="item.clickable"
3198
+ [disabled]="item.disabled"
3199
+ (click)="clickHandler(item.token)"
3200
+ [routerLink]="item.routerLink"
3201
+ >
3202
+ @if (item.unreadIndicator) {
3203
+ <div class="unread-indicator-wrapper" slot="start">
3204
+ <div class="unread-indicator"></div>
3205
+ </div>
3206
+ }
3207
+
3208
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3209
+ <h2>{{ item.text }}</h2>
3210
+
3211
+ @if (item.comments) {
3212
+ <ion-note color="medium"> {{ item.comments }} </ion-note>
3213
+ }
3214
+ </ion-label>
3215
+ </ion-item>
3216
+ }
3217
+
3218
+ @if (item.mode == 'subtitule') {
3219
+ <ion-item
3220
+ [lines]="item.lines"
3221
+ [button]="item.clickable"
3222
+ [disabled]="item.disabled"
3223
+ (click)="clickHandler(item.token)"
3224
+ >
3225
+ @if (item.unreadIndicator) {
3226
+ <div class="unread-indicator-wrapper" slot="start">
3227
+ <div class="unread-indicator"></div>
3228
+ </div>
3229
+ }
3230
+
3231
+ <ion-label [ngClass]="{ 'ion-text-nowrap': item.ellipsis }">
3232
+ <h1>{{ item.text }}</h1>
3233
+ <p>{{ item.subtitle }}</p>
3234
+ </ion-label>
3235
+ </ion-item>
3236
+ }
3237
+
3238
+ @if (item.mode == 'avatar') {
3239
+ <ion-item
3240
+ [lines]="item.lines"
3241
+ [button]="item.clickable"
3242
+ [disabled]="item.disabled"
3243
+ (click)="clickHandler(item.token)"
3244
+ >
3245
+ <ion-avatar aria-hidden="true" slot="start">
3246
+ <img alt="" [src]="item.image" />
3247
+ </ion-avatar>
3248
+ <ion-label>{{ item.text }}</ion-label>
3249
+ </ion-item>
3250
+ }
3251
+
3252
+ @if (item.mode == 'icon') {
3253
+ <ion-item
3254
+ [lines]="item.lines"
3255
+ [button]="item.clickable"
3256
+ [disabled]="item.disabled"
3257
+ (click)="clickHandler(item.token)"
3258
+ >
3259
+ <ion-icon aria-hidden="true" [name]="item.icon" size="medium" slot="start"></ion-icon>
3260
+ <ion-label>{{ item.text }}</ion-label>
3261
+ </ion-item>
3262
+ }
3263
+ }
3264
+ </ion-list>
3265
+ </div>
3266
+ `, styles: ["ion-label{font-family:var(--ion-default-font),Arial,sans-serif}ion-note{font-family:var(--ion-default-font),Arial,sans-serif;font-weight:400}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.shadowed{box-shadow:.1875rem .625rem .5rem #1219541a}.bordered{border:1px solid}.unread-indicator{background:var(--ion-color-primary);width:.625rem;height:.625rem;border-radius:100%;position:absolute;inset-inline-start:.75rem;top:.75rem}.action-spinner{width:3.125rem;height:1rem}\n"] }]
3267
+ }], ctorParameters: () => [{ type: IconService }], propDecorators: { props: [{
3268
+ type: Input
3269
+ }], onClick: [{
3270
+ type: Output
3271
+ }], onActionClick: [{
3272
+ type: Output
3273
+ }] } });
3274
+
3275
+ class LayoutComponent {
3276
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3277
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LayoutComponent, isStandalone: true, selector: "val-layout", ngImport: i0, template: `
3278
+ <div class="layout-container">
3279
+ <ng-content></ng-content>
3280
+ </div>
3281
+ `, isInline: true, styles: [".layout-container{margin:0 auto;padding:0;width:100%;box-sizing:border-box;margin-bottom:1rem}@media (max-width: 768px){.layout-container{max-width:100%}}@media (min-width: 768px){.layout-container{max-width:60rem;margin-bottom:1.5rem}}@media (min-width: 1200px){.layout-container{max-width:68.75rem}}\n"] }); }
3282
+ }
3283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LayoutComponent, decorators: [{
3284
+ type: Component,
3285
+ args: [{ selector: 'val-layout', standalone: true, imports: [], template: `
3286
+ <div class="layout-container">
3287
+ <ng-content></ng-content>
3288
+ </div>
3289
+ `, styles: [".layout-container{margin:0 auto;padding:0;width:100%;box-sizing:border-box;margin-bottom:1rem}@media (max-width: 768px){.layout-container{max-width:100%}}@media (min-width: 768px){.layout-container{max-width:60rem;margin-bottom:1.5rem}}@media (min-width: 1200px){.layout-container{max-width:68.75rem}}\n"] }]
3290
+ }] });
3291
+
3292
+ class SimpleComponent {
3293
+ constructor() {
3294
+ this.onClick = new EventEmitter();
3295
+ }
3296
+ onClickHandler(token) {
3297
+ this.onClick.emit(token);
3298
+ }
3299
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3300
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SimpleComponent, isStandalone: true, selector: "val-simple", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
3301
+ <val-header [props]="props.header" />
3302
+
3303
+ <ion-content [fullscreen]="true">
3304
+ <ion-header collapse="condense">
3305
+ <ion-toolbar>
3306
+ <ion-title style="padding: 0;" size="large">{{ props.pageTitle }}</ion-title>
3307
+ </ion-toolbar>
3308
+ </ion-header>
3309
+ @if (props.pageDescription) {
3310
+ <div class="description-container">
3311
+ <val-expandable-text
3312
+ [props]="{
3313
+ limit: 180,
3314
+ content: props.pageDescription,
3315
+ color: 'primary',
3316
+ expandText: 'Ver más',
3317
+ }"
3318
+ />
3319
+ </div>
3320
+ }
3321
+ @if (props.link) {
3322
+ <val-link [props]="props.link" (onClick)="onClickHandler($event)"></val-link>
3323
+ }
3324
+ @if (props.withDivider) {
3325
+ <val-divider [props]="{ fill: 'solid', size: 'medium', color: 'dark' }" />
3326
+ }
3327
+ <val-layout>
3328
+ <ng-content></ng-content>
3329
+ </val-layout>
3330
+ </ion-content>
3331
+ `, isInline: true, styles: [".description-container{padding:0 16px}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: HeaderComponent, selector: "val-header", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: LayoutComponent, selector: "val-layout" }, { kind: "component", type: DividerComponent, selector: "val-divider", inputs: ["props"] }, { kind: "component", type: LinkComponent, selector: "val-link", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ExpandableTextComponent, selector: "val-expandable-text", inputs: ["props"] }] }); }
3332
+ }
3333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleComponent, decorators: [{
3334
+ type: Component,
3335
+ args: [{ selector: 'val-simple', standalone: true, imports: [
3336
+ NgIf,
3337
+ IonHeader,
3338
+ IonToolbar,
3339
+ IonTitle,
3340
+ IonText,
3341
+ IonContent,
3342
+ HeaderComponent,
3343
+ LayoutComponent,
3344
+ DividerComponent,
3345
+ LinkComponent,
3346
+ ExpandableTextComponent,
3347
+ ], template: `
3348
+ <val-header [props]="props.header" />
3349
+
3350
+ <ion-content [fullscreen]="true">
3351
+ <ion-header collapse="condense">
3352
+ <ion-toolbar>
3353
+ <ion-title style="padding: 0;" size="large">{{ props.pageTitle }}</ion-title>
3354
+ </ion-toolbar>
3355
+ </ion-header>
3356
+ @if (props.pageDescription) {
3357
+ <div class="description-container">
3358
+ <val-expandable-text
3359
+ [props]="{
3360
+ limit: 180,
3361
+ content: props.pageDescription,
3362
+ color: 'primary',
3363
+ expandText: 'Ver más',
3364
+ }"
3365
+ />
3366
+ </div>
3367
+ }
3368
+ @if (props.link) {
3369
+ <val-link [props]="props.link" (onClick)="onClickHandler($event)"></val-link>
3370
+ }
3371
+ @if (props.withDivider) {
3372
+ <val-divider [props]="{ fill: 'solid', size: 'medium', color: 'dark' }" />
3373
+ }
3374
+ <val-layout>
3375
+ <ng-content></ng-content>
3376
+ </val-layout>
3377
+ </ion-content>
3378
+ `, styles: [".description-container{padding:0 16px}\n"] }]
3379
+ }], propDecorators: { props: [{
3380
+ type: Input
3381
+ }], onClick: [{
3382
+ type: Output
3383
+ }] } });
3384
+
3385
+ class TextContent {
3386
+ constructor(text) {
3387
+ this.text = text;
3388
+ }
3389
+ get Content() {
3390
+ return this.text;
3391
+ }
3392
+ }
3393
+ var LangOption;
3394
+ (function (LangOption) {
3395
+ LangOption["ES"] = "es";
3396
+ LangOption["EN"] = "en";
3397
+ })(LangOption || (LangOption = {}));
3398
+
3399
+ class LocalStorageService {
3400
+ static set(reference, value) {
3401
+ localStorage.setItem(reference, JSON.stringify(value));
3402
+ }
3403
+ static get(reference) {
3404
+ const value = localStorage.getItem(reference);
3405
+ return JSON.parse(value);
3406
+ }
3407
+ static remove(reference) {
3408
+ localStorage.removeItem(reference);
3409
+ }
3410
+ static clear() {
3411
+ localStorage.clear();
3412
+ }
3413
+ }
3414
+
3415
+ const LANG = 'LANG';
3416
+ const THEME = 'THEME';
3417
+
3418
+ const ValtechConfigService = new InjectionToken('ValtechConfig');
3419
+
3420
+ class LangService {
3421
+ constructor(config) {
3422
+ this.default = LangOption.ES;
3423
+ console.log('injected config: ', config);
3424
+ this.content = config.content;
3425
+ this.config = config;
3426
+ const current = LocalStorageService.get(LANG);
3427
+ this.selectedLang = new BehaviorSubject(current || this.default);
3428
+ }
3429
+ Text(className) {
3430
+ return this.content[className].Content[this.selectedLang.value];
3431
+ }
3432
+ get Lang() {
3433
+ return this.selectedLang.value;
3434
+ }
3435
+ set Lang(lang) {
3436
+ this.selectedLang.next(lang);
3437
+ LocalStorageService.set(LANG, lang);
3438
+ }
3439
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LangService, deps: [{ token: ValtechConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3440
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LangService, providedIn: 'root' }); }
3441
+ }
3442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LangService, decorators: [{
3443
+ type: Injectable,
3444
+ args: [{
3445
+ providedIn: 'root',
3446
+ }]
3447
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
3448
+ type: Inject,
3449
+ args: [ValtechConfigService]
3450
+ }] }] });
3451
+
3452
+ var ThemeOption;
3453
+ (function (ThemeOption) {
3454
+ ThemeOption["LIGHT"] = "light";
3455
+ ThemeOption["DARK"] = "dark";
3456
+ ThemeOption["AUTO"] = "auto";
3457
+ })(ThemeOption || (ThemeOption = {}));
3458
+ class ThemeService {
3459
+ constructor() {
3460
+ this.lightToggle = false;
3461
+ this.darkToggle = false;
3462
+ this.autoToggle = false;
3463
+ this.currentOption = ThemeOption.AUTO;
3464
+ this.themeOptions = ThemeOption;
3465
+ this.prefersDark = false;
3466
+ this.default = ThemeOption.AUTO;
3467
+ const current = LocalStorageService.get(THEME);
3468
+ console.log('💡 ThemeConfig current::: ', current);
3469
+ this.theme = new BehaviorSubject(current || this.default);
3470
+ this.currentOption = this.Theme;
3471
+ console.log('💡 ThemeConfig this.currentOption::: ', this.currentOption);
3472
+ this.toggleUserPreference(this.currentOption);
3473
+ const prefersDarkQuery = window.matchMedia('(prefers-color-scheme: dark)');
3474
+ this.prefersDark = prefersDarkQuery.matches;
3475
+ this.handleAutoConfiguration();
3476
+ prefersDarkQuery.addEventListener('change', mediaQuery => {
3477
+ console.log('💡 ThemeConfig addEventListener change::: ', mediaQuery);
3478
+ this.prefersDark = mediaQuery.matches;
3479
+ this.handleAutoConfiguration();
3480
+ });
3481
+ }
3482
+ handleAutoConfiguration() {
3483
+ if (this.prefersDark && this.currentOption === ThemeOption.AUTO) {
3484
+ console.log('💡 ThemeConfig prefersDark::: ', this.prefersDark);
3485
+ this.toggleUserPreference(ThemeOption.AUTO);
3486
+ }
3487
+ if (!this.prefersDark && this.currentOption === ThemeOption.AUTO) {
3488
+ console.log('💡 ThemeConfig prefersDark::: ', this.prefersDark);
3489
+ this.toggleUserPreference(ThemeOption.AUTO);
3490
+ }
3491
+ }
3492
+ handleDarkPreference() {
3493
+ this.toggleTheme(ThemeOption.DARK, true);
3494
+ this.toggleTheme(ThemeOption.LIGHT, false);
3495
+ }
3496
+ handleLightPreference() {
3497
+ this.toggleTheme(ThemeOption.LIGHT, true);
3498
+ this.toggleTheme(ThemeOption.DARK, false);
3499
+ }
3500
+ get Theme() {
3501
+ return this.theme.value;
3502
+ }
3503
+ set Theme(theme) {
3504
+ this.theme.next(theme);
3505
+ LocalStorageService.set(THEME, theme);
3506
+ }
3507
+ toggleTheme(name, shouldAdd) {
3508
+ console.log('toggleTheme::: ', name, shouldAdd);
3509
+ document.body.classList.toggle(name, shouldAdd);
3510
+ }
3511
+ toggleUserPreference(option) {
3512
+ this.currentOption = option;
3513
+ this.Theme = option;
3514
+ this.lightToggle = option === ThemeOption.LIGHT;
3515
+ this.darkToggle = option === ThemeOption.DARK;
3516
+ this.autoToggle = option === ThemeOption.AUTO;
3517
+ switch (option) {
3518
+ case ThemeOption.LIGHT:
3519
+ this.handleLightPreference();
3520
+ break;
3521
+ case ThemeOption.DARK:
3522
+ this.handleDarkPreference();
3523
+ break;
3524
+ case ThemeOption.AUTO:
3525
+ if (this.prefersDark) {
3526
+ this.handleDarkPreference();
3527
+ }
3528
+ else {
3529
+ this.handleLightPreference();
3530
+ }
3531
+ break;
3532
+ }
3533
+ }
3534
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3535
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
3536
+ }
3537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ThemeService, decorators: [{
3538
+ type: Injectable,
3539
+ args: [{
3540
+ providedIn: 'root',
3541
+ }]
3542
+ }], ctorParameters: () => [] });
3543
+
3544
+ /*
3545
+ * Public API Surface of valtech-components
3546
+ */
3547
+ /*
3548
+ * Public API Surface of valtech-components
3549
+ */
3550
+
3551
+ /**
3552
+ * Generated bundle index. Do not edit.
3553
+ */
3554
+
3555
+ export { ActionType, AlertBoxComponent, AvatarComponent, BannerComponent, BaseDefault, BoxComponent, ButtonComponent, ButtonGroupComponent, CardComponent, CardSection, CardType, CheckInputComponent, ClearDefault, ClearDefaultBlock, ClearDefaultFull, ClearDefaultRound, ClearDefaultRoundBlock, ClearDefaultRoundFull, CommentInputComponent, ComponentStates, ContentLoaderComponent, DateInputComponent, DisplayComponent, DividerComponent, DownloadService, EmailInputComponent, ExpandableTextComponent, FileInputComponent, FooterComponent, FormComponent, FormFooterComponent, HeaderComponent, HintComponent, HourInputComponent, HrefComponent, Icon, IconComponent, IconService, ImageComponent, InAppBrowserService, InputType, ItemListComponent, LangOption, LangService, LayoutComponent, LinkComponent, LinksCakeComponent, LocalStorageService, MOTION, NavigationService, NoContentComponent, NotesBoxComponent, NumberInputComponent, OutlineDefault, OutlineDefaultBlock, OutlineDefaultFull, OutlineDefaultRound, OutlineDefaultRoundBlock, OutlineDefaultRoundFull, PasswordInputComponent, PinInputComponent, PrimarySolidBlockButton, PrimarySolidBlockHrefButton, PrimarySolidBlockIconButton, PrimarySolidBlockIconHrefButton, PrimarySolidDefaultRoundButton, PrimarySolidDefaultRoundHrefButton, PrimarySolidDefaultRoundIconButton, PrimarySolidDefaultRoundIconHrefButton, PrimarySolidFullButton, PrimarySolidFullHrefButton, PrimarySolidFullIconButton, PrimarySolidFullIconHrefButton, PrimarySolidLargeRoundButton, PrimarySolidLargeRoundHrefButton, PrimarySolidLargeRoundIconButton, PrimarySolidLargeRoundIconHrefButton, PrimarySolidSmallRoundButton, PrimarySolidSmallRoundHrefButton, PrimarySolidSmallRoundIconButton, PrimarySolidSmallRoundIconHrefButton, ProgressBarComponent, ProgressStatusComponent, PrompterComponent, RadioInputComponent, SearchbarComponent, SecondarySolidBlockButton, SecondarySolidBlockHrefButton, SecondarySolidBlockIconButton, SecondarySolidBlockIconHrefButton, SecondarySolidDefaultRoundButton, SecondarySolidDefaultRoundHrefButton, SecondarySolidDefaultRoundIconButton, SecondarySolidDefaultRoundIconHrefButton, SecondarySolidFullButton, SecondarySolidFullHrefButton, SecondarySolidFullIconButton, SecondarySolidFullIconHrefButton, SecondarySolidLargeRoundButton, SecondarySolidLargeRoundHrefButton, SecondarySolidLargeRoundIconButton, SecondarySolidLargeRoundIconHrefButton, SecondarySolidSmallRoundButton, SecondarySolidSmallRoundHrefButton, SecondarySolidSmallRoundIconButton, SecondarySolidSmallRoundIconHrefButton, SimpleComponent, SolidBlockButton, SolidDefault, SolidDefaultBlock, SolidDefaultButton, SolidDefaultFull, SolidDefaultRound, SolidDefaultRoundBlock, SolidDefaultRoundButton, SolidDefaultRoundFull, SolidFullButton, SolidLargeButton, SolidLargeRoundButton, SolidSmallButton, SolidSmallRoundButton, TextComponent, TextContent, TextInputComponent, ThemeOption, ThemeService, TitleBlockComponent, TitleComponent, ToolbarActionType, ToolbarComponent, ValtechConfigService, WizardComponent, WizardFooterComponent, goToTop, isAtEnd, maxLength };
3556
+ //# sourceMappingURL=valtech-components.mjs.map