@openmrs/ngx-formentry 3.0.0

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 (351) hide show
  1. package/abstract-controls-extension/afe-control-type.d.ts +6 -0
  2. package/abstract-controls-extension/afe-form-array.d.ts +43 -0
  3. package/abstract-controls-extension/afe-form-control.d.ts +46 -0
  4. package/abstract-controls-extension/afe-form-group.d.ts +38 -0
  5. package/abstract-controls-extension/control-extensions.d.ts +4 -0
  6. package/abstract-controls-extension/index.d.ts +4 -0
  7. package/abstract-controls-extension/value-change.listener.d.ts +4 -0
  8. package/bundles/openmrs-ngx-formentry.umd.js +16104 -0
  9. package/bundles/openmrs-ngx-formentry.umd.js.map +1 -0
  10. package/change-tracking/control-relation.d.ts +12 -0
  11. package/change-tracking/control-relations.d.ts +12 -0
  12. package/components/afe-ng-select.component.d.ts +28 -0
  13. package/components/appointments-overview/appointments-overview.component.d.ts +17 -0
  14. package/components/check-box/checkbox.component.d.ts +19 -0
  15. package/components/check-box/checkbox.module.d.ts +9 -0
  16. package/components/custom-component-wrapper/custom-component-wrapper..module.d.ts +9 -0
  17. package/components/custom-component-wrapper/custom-component-wrapper.component.d.ts +12 -0
  18. package/components/custom-control-wrapper/custom-control-wrapper..module.d.ts +10 -0
  19. package/components/custom-control-wrapper/custom-control-wrapper.component.d.ts +28 -0
  20. package/components/date-time-picker/date-picker/date-picker.component.d.ts +45 -0
  21. package/components/date-time-picker/date-time-picker.component.d.ts +28 -0
  22. package/components/date-time-picker/date-time-picker.module.d.ts +13 -0
  23. package/components/date-time-picker/index.d.ts +8 -0
  24. package/components/date-time-picker/picker-modal/modal.component.d.ts +12 -0
  25. package/components/date-time-picker/pipes/moment.pipe.d.ts +11 -0
  26. package/components/date-time-picker/time-picker/time-picker.component.d.ts +32 -0
  27. package/components/file-upload/file-upload.component.d.ts +29 -0
  28. package/components/file-upload/file-upload.module.d.ts +12 -0
  29. package/components/file-upload/secure.pipe.d.ts +26 -0
  30. package/components/input/input.directive.d.ts +31 -0
  31. package/components/input/input.module.d.ts +11 -0
  32. package/components/input/label.component.d.ts +90 -0
  33. package/components/input/text-area.directive.d.ts +24 -0
  34. package/components/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +21 -0
  35. package/components/ngx-datetime-picker/ngx-datetime-picker.module.d.ts +11 -0
  36. package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.d.ts +189 -0
  37. package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.d.ts +15 -0
  38. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.d.ts +73 -0
  39. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.d.ts +5 -0
  40. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.d.ts +12 -0
  41. package/components/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +76 -0
  42. package/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.d.ts +139 -0
  43. package/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.d.ts +108 -0
  44. package/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.d.ts +120 -0
  45. package/components/ngx-pick-datetime/lib/date-time/calendar.component.d.ts +137 -0
  46. package/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +92 -0
  47. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +121 -0
  48. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +149 -0
  49. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.d.ts +51 -0
  50. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.d.ts +20 -0
  51. package/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.d.ts +8 -0
  52. package/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.d.ts +156 -0
  53. package/components/ngx-pick-datetime/lib/date-time/date-time.class.d.ts +89 -0
  54. package/components/ngx-pick-datetime/lib/date-time/date-time.module.d.ts +23 -0
  55. package/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.d.ts +10 -0
  56. package/components/ngx-pick-datetime/lib/date-time/timer-box.component.d.ts +35 -0
  57. package/components/ngx-pick-datetime/lib/date-time/timer.component.d.ts +128 -0
  58. package/components/ngx-pick-datetime/lib/dialog/dialog-config.class.d.ts +93 -0
  59. package/components/ngx-pick-datetime/lib/dialog/dialog-container.component.d.ts +58 -0
  60. package/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.d.ts +49 -0
  61. package/components/ngx-pick-datetime/lib/dialog/dialog.module.d.ts +11 -0
  62. package/components/ngx-pick-datetime/lib/dialog/dialog.service.d.ts +73 -0
  63. package/components/ngx-pick-datetime/lib/utils/index.d.ts +4 -0
  64. package/components/ngx-pick-datetime/lib/utils/object.utils.d.ts +11 -0
  65. package/components/ngx-remote-select/ngx-remote-select.component.d.ts +40 -0
  66. package/components/ngx-remote-select/ngx-remote-select.module.d.ts +10 -0
  67. package/components/ngx-tabset/components/ngx-tab-set.component.d.ts +19 -0
  68. package/components/ngx-tabset/components/tab.component.d.ts +13 -0
  69. package/components/ngx-tabset/directives/hover-class.directive.d.ts +11 -0
  70. package/components/ngx-tabset/modules/ngx-tabset.module.d.ts +19 -0
  71. package/components/number-input/number-input.component.d.ts +151 -0
  72. package/components/number-input/number-input.module.d.ts +9 -0
  73. package/components/radio-button/radio.component.d.ts +22 -0
  74. package/components/radio-button/radio.module.d.ts +9 -0
  75. package/components/select/optgroup.directive.d.ts +6 -0
  76. package/components/select/option.directive.d.ts +6 -0
  77. package/components/select/select.component.d.ts +115 -0
  78. package/components/select/select.module.d.ts +11 -0
  79. package/esm2015/abstract-controls-extension/afe-control-type.js +8 -0
  80. package/esm2015/abstract-controls-extension/afe-form-array.js +85 -0
  81. package/esm2015/abstract-controls-extension/afe-form-control.js +88 -0
  82. package/esm2015/abstract-controls-extension/afe-form-group.js +61 -0
  83. package/esm2015/abstract-controls-extension/control-extensions.js +5 -0
  84. package/esm2015/abstract-controls-extension/index.js +5 -0
  85. package/esm2015/abstract-controls-extension/value-change.listener.js +2 -0
  86. package/esm2015/change-tracking/control-relation.js +44 -0
  87. package/esm2015/change-tracking/control-relations.js +32 -0
  88. package/esm2015/components/afe-ng-select.component.js +101 -0
  89. package/esm2015/components/appointments-overview/appointments-overview.component.js +121 -0
  90. package/esm2015/components/check-box/checkbox.component.js +90 -0
  91. package/esm2015/components/check-box/checkbox.module.js +19 -0
  92. package/esm2015/components/custom-component-wrapper/custom-component-wrapper..module.js +21 -0
  93. package/esm2015/components/custom-component-wrapper/custom-component-wrapper.component.js +23 -0
  94. package/esm2015/components/custom-control-wrapper/custom-control-wrapper..module.js +22 -0
  95. package/esm2015/components/custom-control-wrapper/custom-control-wrapper.component.js +73 -0
  96. package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +192 -0
  97. package/esm2015/components/date-time-picker/date-time-picker.component.js +119 -0
  98. package/esm2015/components/date-time-picker/date-time-picker.module.js +47 -0
  99. package/esm2015/components/date-time-picker/index.js +9 -0
  100. package/esm2015/components/date-time-picker/picker-modal/modal.component.js +31 -0
  101. package/esm2015/components/date-time-picker/pipes/moment.pipe.js +17 -0
  102. package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +125 -0
  103. package/esm2015/components/file-upload/file-upload.component.js +122 -0
  104. package/esm2015/components/file-upload/file-upload.module.js +39 -0
  105. package/esm2015/components/file-upload/secure.pipe.js +101 -0
  106. package/esm2015/components/input/input.directive.js +78 -0
  107. package/esm2015/components/input/input.module.js +23 -0
  108. package/esm2015/components/input/label.component.js +263 -0
  109. package/esm2015/components/input/text-area.directive.js +54 -0
  110. package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +80 -0
  111. package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +38 -0
  112. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.js +114 -0
  113. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.js +7 -0
  114. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.js +347 -0
  115. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.js +16 -0
  116. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.js +39 -0
  117. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-body.component.js +149 -0
  118. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.js +445 -0
  119. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +378 -0
  120. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js +373 -0
  121. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +348 -0
  122. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js +265 -0
  123. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +399 -0
  124. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js +614 -0
  125. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.js +62 -0
  126. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js +70 -0
  127. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.js +21 -0
  128. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.js +528 -0
  129. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.class.js +166 -0
  130. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.module.js +83 -0
  131. package/esm2015/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.js +28 -0
  132. package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +96 -0
  133. package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +298 -0
  134. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-config.class.js +56 -0
  135. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-container.component.js +247 -0
  136. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.js +119 -0
  137. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.module.js +27 -0
  138. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.service.js +233 -0
  139. package/esm2015/components/ngx-pick-datetime/lib/utils/index.js +5 -0
  140. package/esm2015/components/ngx-pick-datetime/lib/utils/object.utils.js +26 -0
  141. package/esm2015/components/ngx-remote-select/ngx-remote-select.component.js +135 -0
  142. package/esm2015/components/ngx-remote-select/ngx-remote-select.module.js +21 -0
  143. package/esm2015/components/ngx-tabset/components/ngx-tab-set.component.js +76 -0
  144. package/esm2015/components/ngx-tabset/components/tab.component.js +37 -0
  145. package/esm2015/components/ngx-tabset/directives/hover-class.directive.js +30 -0
  146. package/esm2015/components/ngx-tabset/modules/ngx-tabset.module.js +38 -0
  147. package/esm2015/components/number-input/number-input.component.js +233 -0
  148. package/esm2015/components/number-input/number-input.module.js +20 -0
  149. package/esm2015/components/radio-button/radio.component.js +87 -0
  150. package/esm2015/components/radio-button/radio.module.js +19 -0
  151. package/esm2015/components/select/optgroup.directive.js +19 -0
  152. package/esm2015/components/select/option.directive.js +19 -0
  153. package/esm2015/components/select/select.component.js +187 -0
  154. package/esm2015/components/select/select.module.js +23 -0
  155. package/esm2015/form-entry/control-alerts/alert-helpers.js +40 -0
  156. package/esm2015/form-entry/control-alerts/can-generate-alert.js +2 -0
  157. package/esm2015/form-entry/control-calculators/can-calculate.js +2 -0
  158. package/esm2015/form-entry/control-hiders-disablers/can-disable.js +2 -0
  159. package/esm2015/form-entry/control-hiders-disablers/can-hide.js +2 -0
  160. package/esm2015/form-entry/control-hiders-disablers/disabler-helper.js +32 -0
  161. package/esm2015/form-entry/control-hiders-disablers/hider-helpers.js +40 -0
  162. package/esm2015/form-entry/data-sources/data-sources.js +30 -0
  163. package/esm2015/form-entry/data-sources/dummy-data-source.js +104 -0
  164. package/esm2015/form-entry/directives/collapse-animations.js +11 -0
  165. package/esm2015/form-entry/directives/collapse.directive.js +172 -0
  166. package/esm2015/form-entry/directives/historical-value.directive.js +67 -0
  167. package/esm2015/form-entry/error-renderer/error-renderer.component.js +56 -0
  168. package/esm2015/form-entry/expression-runner/expression-runner.js +170 -0
  169. package/esm2015/form-entry/form-entry.module.js +187 -0
  170. package/esm2015/form-entry/form-factory/control-relations.factory.js +238 -0
  171. package/esm2015/form-entry/form-factory/form-control.service.js +119 -0
  172. package/esm2015/form-entry/form-factory/form-node.js +96 -0
  173. package/esm2015/form-entry/form-factory/form.factory.js +141 -0
  174. package/esm2015/form-entry/form-factory/form.js +189 -0
  175. package/esm2015/form-entry/form-factory/hiders-disablers.factory.js +67 -0
  176. package/esm2015/form-entry/form-factory/question.factory.js +942 -0
  177. package/esm2015/form-entry/form-factory/show-messages.factory.js +31 -0
  178. package/esm2015/form-entry/form-factory/validation.factory.js +147 -0
  179. package/esm2015/form-entry/form-renderer/form-renderer.component.js +268 -0
  180. package/esm2015/form-entry/helpers/historical-expression-helper-service.js +42 -0
  181. package/esm2015/form-entry/helpers/historical-field-helper-service.js +39 -0
  182. package/esm2015/form-entry/helpers/js-expression-helper.js +275 -0
  183. package/esm2015/form-entry/helpers/risk-dataset-table.js +247 -0
  184. package/esm2015/form-entry/pipes/time-ago.pipe.js +107 -0
  185. package/esm2015/form-entry/question-models/checkbox.model.js +11 -0
  186. package/esm2015/form-entry/question-models/conditional-validation.model.js +9 -0
  187. package/esm2015/form-entry/question-models/custom-control-question.model.js +10 -0
  188. package/esm2015/form-entry/question-models/date-question.js +12 -0
  189. package/esm2015/form-entry/question-models/date-validation.model.js +10 -0
  190. package/esm2015/form-entry/question-models/file-upload-question.js +13 -0
  191. package/esm2015/form-entry/question-models/group-question.js +12 -0
  192. package/esm2015/form-entry/question-models/interfaces/base-options.js +2 -0
  193. package/esm2015/form-entry/question-models/interfaces/checkbox-options.js +2 -0
  194. package/esm2015/form-entry/question-models/interfaces/data-source.js +2 -0
  195. package/esm2015/form-entry/question-models/interfaces/date-question-options.js +2 -0
  196. package/esm2015/form-entry/question-models/interfaces/file-upload-question-options.js +2 -0
  197. package/esm2015/form-entry/question-models/interfaces/group-question-options.js +2 -0
  198. package/esm2015/form-entry/question-models/interfaces/multi-select-options.js +2 -0
  199. package/esm2015/form-entry/question-models/interfaces/nested-questions.js +7 -0
  200. package/esm2015/form-entry/question-models/interfaces/radio-button-options.js +2 -0
  201. package/esm2015/form-entry/question-models/interfaces/repeating-question-options.js +2 -0
  202. package/esm2015/form-entry/question-models/interfaces/select-option.js +2 -0
  203. package/esm2015/form-entry/question-models/interfaces/select-question-options.js +2 -0
  204. package/esm2015/form-entry/question-models/interfaces/test-order-question-options.js +2 -0
  205. package/esm2015/form-entry/question-models/interfaces/text-area-question-options.js +2 -0
  206. package/esm2015/form-entry/question-models/interfaces/text-question-options.js +2 -0
  207. package/esm2015/form-entry/question-models/interfaces/ui-select-question-options.js +2 -0
  208. package/esm2015/form-entry/question-models/js-expression-validation.model.js +8 -0
  209. package/esm2015/form-entry/question-models/max-validation.model.js +9 -0
  210. package/esm2015/form-entry/question-models/min-validation.model.js +9 -0
  211. package/esm2015/form-entry/question-models/models.js +13 -0
  212. package/esm2015/form-entry/question-models/multi-select-question.js +11 -0
  213. package/esm2015/form-entry/question-models/pair.model.js +7 -0
  214. package/esm2015/form-entry/question-models/question-base.js +26 -0
  215. package/esm2015/form-entry/question-models/radio-button.model.js +12 -0
  216. package/esm2015/form-entry/question-models/rendering-type.js +9 -0
  217. package/esm2015/form-entry/question-models/repeating-question.js +11 -0
  218. package/esm2015/form-entry/question-models/select-option.js +7 -0
  219. package/esm2015/form-entry/question-models/select-question.js +12 -0
  220. package/esm2015/form-entry/question-models/test-order-question.js +15 -0
  221. package/esm2015/form-entry/question-models/text-area-input-question.js +13 -0
  222. package/esm2015/form-entry/question-models/text-input-question.js +10 -0
  223. package/esm2015/form-entry/question-models/ui-select-question.js +11 -0
  224. package/esm2015/form-entry/question-models/validation.model.js +7 -0
  225. package/esm2015/form-entry/services/debug-mode.service.js +24 -0
  226. package/esm2015/form-entry/services/form-errors.service.js +21 -0
  227. package/esm2015/form-entry/services/form-schema-compiler.service.js +248 -0
  228. package/esm2015/form-entry/services/historical-encounter-data.service.js +172 -0
  229. package/esm2015/form-entry/utils/messages.js +12 -0
  230. package/esm2015/form-entry/validators/conditional-answered.validator.js +46 -0
  231. package/esm2015/form-entry/validators/conditional-required.validator.js +40 -0
  232. package/esm2015/form-entry/validators/date.validator.js +18 -0
  233. package/esm2015/form-entry/validators/future-date-restriction.validator.js +21 -0
  234. package/esm2015/form-entry/validators/js-expression.validator.js +26 -0
  235. package/esm2015/form-entry/validators/max-date.validator.js +23 -0
  236. package/esm2015/form-entry/validators/max.validator.js +17 -0
  237. package/esm2015/form-entry/validators/min-date.validator.js +23 -0
  238. package/esm2015/form-entry/validators/min.validator.js +17 -0
  239. package/esm2015/form-entry/validators/required.validator.js +11 -0
  240. package/esm2015/form-entry/validators/validations.js +5 -0
  241. package/esm2015/form-entry/value-adapters/encounter.adapter.js +171 -0
  242. package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +512 -0
  243. package/esm2015/form-entry/value-adapters/obs.adapter.js +542 -0
  244. package/esm2015/form-entry/value-adapters/order.adapter.js +186 -0
  245. package/esm2015/form-entry/value-adapters/person-attribute.adapter.js +88 -0
  246. package/esm2015/form-entry/value-adapters/value.adapter.js +2 -0
  247. package/esm2015/lib/index.js +58 -0
  248. package/esm2015/openmrs-ngx-formentry.js +5 -0
  249. package/esm2015/public_api.js +2 -0
  250. package/esm2015/shared.module.js +21 -0
  251. package/fesm2015/openmrs-ngx-formentry.js +14323 -0
  252. package/fesm2015/openmrs-ngx-formentry.js.map +1 -0
  253. package/form-entry/control-alerts/alert-helpers.d.ts +9 -0
  254. package/form-entry/control-alerts/can-generate-alert.d.ts +18 -0
  255. package/form-entry/control-calculators/can-calculate.d.ts +5 -0
  256. package/form-entry/control-hiders-disablers/can-disable.d.ts +19 -0
  257. package/form-entry/control-hiders-disablers/can-hide.d.ts +20 -0
  258. package/form-entry/control-hiders-disablers/disabler-helper.d.ts +7 -0
  259. package/form-entry/control-hiders-disablers/hider-helpers.d.ts +9 -0
  260. package/form-entry/data-sources/data-sources.d.ts +10 -0
  261. package/form-entry/data-sources/dummy-data-source.d.ts +18 -0
  262. package/form-entry/directives/collapse-animations.d.ts +4 -0
  263. package/form-entry/directives/collapse.directive.d.ts +45 -0
  264. package/form-entry/directives/historical-value.directive.d.ts +16 -0
  265. package/form-entry/error-renderer/error-renderer.component.d.ts +18 -0
  266. package/form-entry/expression-runner/expression-runner.d.ts +18 -0
  267. package/form-entry/form-entry.module.d.ts +30 -0
  268. package/form-entry/form-factory/control-relations.factory.d.ts +18 -0
  269. package/form-entry/form-factory/form-control.service.d.ts +25 -0
  270. package/form-entry/form-factory/form-node.d.ts +52 -0
  271. package/form-entry/form-factory/form.d.ts +28 -0
  272. package/form-entry/form-factory/form.factory.d.ts +27 -0
  273. package/form-entry/form-factory/hiders-disablers.factory.d.ts +20 -0
  274. package/form-entry/form-factory/question.factory.d.ts +62 -0
  275. package/form-entry/form-factory/show-messages.factory.d.ts +15 -0
  276. package/form-entry/form-factory/validation.factory.d.ts +25 -0
  277. package/form-entry/form-renderer/form-renderer.component.d.ts +63 -0
  278. package/form-entry/helpers/historical-expression-helper-service.d.ts +8 -0
  279. package/form-entry/helpers/historical-field-helper-service.d.ts +7 -0
  280. package/form-entry/helpers/js-expression-helper.d.ts +37 -0
  281. package/form-entry/helpers/risk-dataset-table.d.ts +1 -0
  282. package/form-entry/pipes/time-ago.pipe.d.ts +14 -0
  283. package/form-entry/question-models/checkbox.model.d.ts +9 -0
  284. package/form-entry/question-models/conditional-validation.model.d.ts +6 -0
  285. package/form-entry/question-models/custom-control-question.model.d.ts +6 -0
  286. package/form-entry/question-models/date-question.d.ts +7 -0
  287. package/form-entry/question-models/date-validation.model.d.ts +5 -0
  288. package/form-entry/question-models/file-upload-question.d.ts +8 -0
  289. package/form-entry/question-models/group-question.d.ts +8 -0
  290. package/form-entry/question-models/interfaces/base-options.d.ts +30 -0
  291. package/form-entry/question-models/interfaces/checkbox-options.d.ts +7 -0
  292. package/form-entry/question-models/interfaces/data-source.d.ts +10 -0
  293. package/form-entry/question-models/interfaces/date-question-options.d.ts +3 -0
  294. package/form-entry/question-models/interfaces/file-upload-question-options.d.ts +5 -0
  295. package/form-entry/question-models/interfaces/group-question-options.d.ts +5 -0
  296. package/form-entry/question-models/interfaces/multi-select-options.d.ts +4 -0
  297. package/form-entry/question-models/interfaces/nested-questions.d.ts +6 -0
  298. package/form-entry/question-models/interfaces/radio-button-options.d.ts +8 -0
  299. package/form-entry/question-models/interfaces/repeating-question-options.d.ts +7 -0
  300. package/form-entry/question-models/interfaces/select-option.d.ts +4 -0
  301. package/form-entry/question-models/interfaces/select-question-options.d.ts +9 -0
  302. package/form-entry/question-models/interfaces/test-order-question-options.d.ts +14 -0
  303. package/form-entry/question-models/interfaces/text-area-question-options.d.ts +5 -0
  304. package/form-entry/question-models/interfaces/text-question-options.d.ts +4 -0
  305. package/form-entry/question-models/interfaces/ui-select-question-options.d.ts +9 -0
  306. package/form-entry/question-models/js-expression-validation.model.d.ts +5 -0
  307. package/form-entry/question-models/max-validation.model.d.ts +5 -0
  308. package/form-entry/question-models/min-validation.model.d.ts +5 -0
  309. package/form-entry/question-models/models.d.ts +16 -0
  310. package/form-entry/question-models/multi-select-question.d.ts +9 -0
  311. package/form-entry/question-models/pair.model.d.ts +5 -0
  312. package/form-entry/question-models/question-base.d.ts +45 -0
  313. package/form-entry/question-models/radio-button.model.d.ts +7 -0
  314. package/form-entry/question-models/rendering-type.d.ts +7 -0
  315. package/form-entry/question-models/repeating-question.d.ts +7 -0
  316. package/form-entry/question-models/select-option.d.ts +6 -0
  317. package/form-entry/question-models/select-question.d.ts +10 -0
  318. package/form-entry/question-models/test-order-question.d.ts +13 -0
  319. package/form-entry/question-models/text-area-input-question.d.ts +7 -0
  320. package/form-entry/question-models/text-input-question.d.ts +6 -0
  321. package/form-entry/question-models/ui-select-question.d.ts +11 -0
  322. package/form-entry/question-models/validation.model.d.ts +5 -0
  323. package/form-entry/services/debug-mode.service.d.ts +8 -0
  324. package/form-entry/services/form-errors.service.d.ts +13 -0
  325. package/form-entry/services/form-schema-compiler.service.d.ts +23 -0
  326. package/form-entry/services/historical-encounter-data.service.d.ts +15 -0
  327. package/form-entry/utils/messages.d.ts +11 -0
  328. package/form-entry/validators/conditional-answered.validator.d.ts +8 -0
  329. package/form-entry/validators/conditional-required.validator.d.ts +8 -0
  330. package/form-entry/validators/date.validator.d.ts +7 -0
  331. package/form-entry/validators/future-date-restriction.validator.d.ts +7 -0
  332. package/form-entry/validators/js-expression.validator.d.ts +8 -0
  333. package/form-entry/validators/max-date.validator.d.ts +6 -0
  334. package/form-entry/validators/max.validator.d.ts +6 -0
  335. package/form-entry/validators/min-date.validator.d.ts +6 -0
  336. package/form-entry/validators/min.validator.d.ts +6 -0
  337. package/form-entry/validators/required.validator.d.ts +6 -0
  338. package/form-entry/validators/validations.d.ts +4 -0
  339. package/form-entry/value-adapters/encounter.adapter.d.ts +26 -0
  340. package/form-entry/value-adapters/obs-adapter-helper.d.ts +34 -0
  341. package/form-entry/value-adapters/obs.adapter.d.ts +38 -0
  342. package/form-entry/value-adapters/order.adapter.d.ts +20 -0
  343. package/form-entry/value-adapters/person-attribute.adapter.d.ts +15 -0
  344. package/form-entry/value-adapters/value.adapter.d.ts +5 -0
  345. package/lib/index.d.ts +58 -0
  346. package/openmrs-ngx-formentry.d.ts +5 -0
  347. package/package.json +34 -0
  348. package/public_api.d.ts +1 -0
  349. package/shared.module.d.ts +9 -0
  350. package/styles/ngx-formentry.css +374 -0
  351. package/styles/picker.min.css +770 -0
@@ -0,0 +1,37 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class JsExpressionHelper {
3
+ calcBMI(height: any, weight: any): number;
4
+ calcBSA(height: number, weight: number): number;
5
+ calcBMIForAgeZscore(bmiForAgeRef: any, height: any, weight: any): any;
6
+ calcWeightForHeightZscore(weightForHeightRef: any, height: any, weight: any): any;
7
+ calcHeightForAgeZscore(heightForAgeRef: any, height: any, weight: any): any;
8
+ calcSouthEastAsiaNonLabCVDRisk(sex: 'M' | 'F', smoker: boolean, age: number, sbp: number, bmi: number): number;
9
+ isEmpty(val: any): boolean;
10
+ arrayContains(array: any, members: any): boolean;
11
+ extractRepeatingGroupValues(key: any, array: any): any;
12
+ formatDate(value: any, format: any, offset: any): any;
13
+ arrayContainsAny(array: any, members: any): boolean;
14
+ /**
15
+ * Takes a target control, an encounter and concept uuid. If the target control has a value it returns it
16
+ * otherwise it tries to find it in the encounter. Finally it returns null of it can't find either of them.
17
+ * @param targetControl
18
+ * @param rawEncounter
19
+ * @param uuid
20
+ * @returns
21
+ */
22
+ getObsFromControlOrEncounter(targetControl: any, rawEncounter: any, uuid: any): any;
23
+ get helperFunctions(): {
24
+ arrayContainsAny: (array: any, members: any) => boolean;
25
+ calcBMI: (height: any, weight: any) => number;
26
+ calcBMIForAgeZscore: (bmiForAgeRef: any, height: any, weight: any) => any;
27
+ calcWeightForHeightZscore: (weightForHeightRef: any, height: any, weight: any) => any;
28
+ calcHeightForAgeZscore: (heightForAgeRef: any, height: any, weight: any) => any;
29
+ calcSouthEastAsiaNonLabCVDRisk: (sex: "M" | "F", smoker: boolean, age: number, sbp: number, bmi: number) => number;
30
+ isEmpty: (val: any) => boolean;
31
+ arrayContains: (array: any, members: any) => boolean;
32
+ extractRepeatingGroupValues: (key: any, array: any) => any;
33
+ getObsFromControlOrEncounter: (targetControl: any, rawEncounter: any, uuid: any) => any;
34
+ };
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<JsExpressionHelper, never>;
36
+ static ɵprov: i0.ɵɵInjectableDeclaration<JsExpressionHelper>;
37
+ }
@@ -0,0 +1 @@
1
+ export declare const southEastAsiaCvdRiskTables: number[][][][][];
@@ -0,0 +1,14 @@
1
+ import { PipeTransform, NgZone, ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TimeAgoPipe implements PipeTransform, OnDestroy {
4
+ private changeDetectorRef;
5
+ private ngZone;
6
+ private timer;
7
+ constructor(changeDetectorRef: ChangeDetectorRef, ngZone: NgZone);
8
+ transform(value: string): string;
9
+ ngOnDestroy(): void;
10
+ private removeTimer;
11
+ private getSecondsUntilUpdate;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeAgoPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeAgoPipe, "timeAgo">;
14
+ }
@@ -0,0 +1,9 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { CheckboxOptions } from './interfaces/checkbox-options';
3
+ export declare class CheckBoxQuestion extends QuestionBase {
4
+ options: {
5
+ key: string;
6
+ value: string;
7
+ }[];
8
+ constructor(options: CheckboxOptions);
9
+ }
@@ -0,0 +1,6 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class ConditionalValidationModel extends ValidationModel {
3
+ referenceQuestionId: string;
4
+ referenceQuestionAnswers: any;
5
+ constructor(validations: any);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { BaseOptions } from './interfaces/base-options';
3
+ export declare class CustomControlQuestion extends QuestionBase {
4
+ placeholder: string;
5
+ constructor(options: BaseOptions);
6
+ }
@@ -0,0 +1,7 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { DateQuestionOptions } from './interfaces/date-question-options';
3
+ export declare class DateQuestion extends QuestionBase {
4
+ showTime: boolean;
5
+ showWeeksAdder: boolean;
6
+ constructor(options: DateQuestionOptions);
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class DateValidationModel extends ValidationModel {
3
+ allowFutureDates: boolean;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,8 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { FileUploadQuestionOptions } from './interfaces/file-upload-question-options';
3
+ export declare class FileUploadQuestion extends QuestionBase {
4
+ showTime: boolean;
5
+ showWeeksAdder: boolean;
6
+ dataSource?: any;
7
+ constructor(options: FileUploadQuestionOptions);
8
+ }
@@ -0,0 +1,8 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { GroupQuestionOptions } from './interfaces/group-question-options';
3
+ import { NestedQuestion } from './interfaces/nested-questions';
4
+ export declare class QuestionGroup extends NestedQuestion {
5
+ questions: QuestionBase[];
6
+ isExpanded: boolean;
7
+ constructor(options: GroupQuestionOptions);
8
+ }
@@ -0,0 +1,30 @@
1
+ import { ValidationModel } from '../validation.model';
2
+ export interface BaseOptions {
3
+ defaultValue?: any;
4
+ originalValue?: any;
5
+ type: string;
6
+ key: string;
7
+ label?: string;
8
+ order?: number;
9
+ extras?: any;
10
+ validators?: Array<ValidationModel>;
11
+ required?: boolean;
12
+ questionOptions?: any;
13
+ hide?: string | boolean;
14
+ alert?: any;
15
+ disable?: string | boolean;
16
+ readOnly?: string | boolean;
17
+ enableHistoricalValue?: boolean;
18
+ historicalDataValue?: any;
19
+ calculateExpression?: string;
20
+ questions?: any;
21
+ placeholder?: any;
22
+ hidden?: any;
23
+ showTime?: any;
24
+ showWeek?: any;
25
+ historicalDisplay?: any;
26
+ rows?: any;
27
+ showWeeksAdder?: any;
28
+ datePickerFormat?: any;
29
+ allowUnselect?: boolean;
30
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface CheckboxOptions extends BaseOptions {
3
+ options: {
4
+ key: string;
5
+ value: string;
6
+ }[];
7
+ }
@@ -0,0 +1,10 @@
1
+ import { SelectOption } from './select-option';
2
+ import { Observable } from 'rxjs';
3
+ export interface DataSource {
4
+ dataSourceOptions?: any;
5
+ dataFromSourceChanged?: Observable<SelectOption[]>;
6
+ resolveSelectedValue(value: any): Observable<SelectOption>;
7
+ searchOptions(searchText: any): Observable<SelectOption[]>;
8
+ fileUpload(data: any): Observable<any>;
9
+ fetchFile(url: string, fileType?: string): Observable<any>;
10
+ }
@@ -0,0 +1,3 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface DateQuestionOptions extends BaseOptions {
3
+ }
@@ -0,0 +1,5 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ import { DataSource } from '../interfaces/data-source';
3
+ export interface FileUploadQuestionOptions extends BaseOptions {
4
+ dataSource?: DataSource;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ import { QuestionBase } from '../question-base';
3
+ export interface GroupQuestionOptions extends BaseOptions {
4
+ questions: QuestionBase[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import { SelectQuestionOptions } from '../interfaces/select-question-options';
2
+ export interface MultiSelectQuestionOptions extends SelectQuestionOptions {
3
+ renderType: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { QuestionBase } from '../question-base';
2
+ import { BaseOptions } from './base-options';
3
+ export declare abstract class NestedQuestion extends QuestionBase {
4
+ abstract questions: QuestionBase[];
5
+ constructor(options: BaseOptions);
6
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface RadioButtonOptions extends BaseOptions {
3
+ allowUnselect?: boolean;
4
+ options: {
5
+ key: string;
6
+ value: string;
7
+ }[];
8
+ }
@@ -0,0 +1,7 @@
1
+ import { QuestionBase } from '../question-base';
2
+ import { BaseOptions } from '../interfaces/base-options';
3
+ export interface RepeatingQuestionOptions extends BaseOptions {
4
+ questions: QuestionBase[];
5
+ min?: number;
6
+ max?: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface SelectOption {
2
+ value: any;
3
+ label: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ import { DataSource } from '../interfaces/data-source';
3
+ export interface SelectQuestionOptions extends BaseOptions {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ dataSource?: DataSource;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface TestOrderQuestionOptions extends BaseOptions {
3
+ orderType: string;
4
+ selectableOrders: {
5
+ concept: string;
6
+ label: string;
7
+ }[];
8
+ orderSettingUuid: string;
9
+ rendering: string;
10
+ options?: {
11
+ key: string;
12
+ value: string;
13
+ }[];
14
+ }
@@ -0,0 +1,5 @@
1
+ import { TextQuestionOptions } from '../interfaces/text-question-options';
2
+ export interface TextAreaQuestionOptions extends TextQuestionOptions {
3
+ isExpanded: boolean;
4
+ rows: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface TextQuestionOptions extends BaseOptions {
3
+ placeholder: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface UiSelectQuestionOptions extends BaseOptions {
3
+ options: {
4
+ key: string;
5
+ value: string;
6
+ }[];
7
+ searchFunction: Function;
8
+ resolveFunction: Function;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class JsExpressionValidationModel extends ValidationModel {
3
+ failsWhenExpression: string;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class MaxValidationModel extends ValidationModel {
3
+ max: number;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ValidationModel } from './validation.model';
2
+ export declare class MinValidationModel extends ValidationModel {
3
+ min: number;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,16 @@
1
+ export { QuestionBase } from '../question-models/question-base';
2
+ export { TextInputQuestion } from '../question-models/text-input-question';
3
+ export { TextAreaInputQuestion } from '../question-models/text-area-input-question';
4
+ export { SelectQuestion } from '../question-models/select-question';
5
+ export { UiSelectQuestion } from '../question-models/ui-select-question';
6
+ export { DateQuestion } from '../question-models/date-question';
7
+ export { MultiSelectQuestion } from '../question-models/multi-select-question';
8
+ export { BaseOptions } from './interfaces/base-options';
9
+ export { RepeatingQuestionOptions } from './interfaces/repeating-question-options';
10
+ export { GroupQuestionOptions } from './interfaces/group-question-options';
11
+ export { NestedQuestion } from './interfaces/nested-questions';
12
+ export { QuestionGroup } from '../question-models/group-question';
13
+ export { RepeatingQuestion } from '../question-models/repeating-question';
14
+ export { TextQuestionOptions } from './interfaces/text-question-options';
15
+ export { CheckBoxQuestion } from './checkbox.model';
16
+ export { RadioButtonQuestion } from './radio-button.model';
@@ -0,0 +1,9 @@
1
+ import { SelectQuestion } from './select-question';
2
+ import { MultiSelectQuestionOptions } from './interfaces/multi-select-options';
3
+ export declare class MultiSelectQuestion extends SelectQuestion {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ constructor(options: MultiSelectQuestionOptions);
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class Pair {
2
+ key: string;
3
+ value: any;
4
+ constructor(key: string, value: any);
5
+ }
@@ -0,0 +1,45 @@
1
+ import { BaseOptions } from './interfaces/base-options';
2
+ import { AfeControlType } from '../../abstract-controls-extension/afe-control-type';
3
+ import { ValidationModel } from './validation.model';
4
+ export declare class QuestionBase implements BaseOptions {
5
+ type: string;
6
+ order?: number;
7
+ questionOptions?: any;
8
+ questions?: any;
9
+ placeholder?: any;
10
+ hidden?: any;
11
+ showTime?: any;
12
+ showWeek?: any;
13
+ historicalDisplay?: any;
14
+ rows?: any;
15
+ showWeeksAdder?: any;
16
+ datePickerFormat: string;
17
+ key: string;
18
+ alert?: any;
19
+ label?: string;
20
+ prefix?: string;
21
+ renderingType: string;
22
+ orientation?: string;
23
+ defaultValue?: any;
24
+ originalValue?: any;
25
+ enableHistoricalValue?: boolean;
26
+ showHistoricalValueDate?: boolean;
27
+ historicalDataValue?: any;
28
+ extras?: any;
29
+ dataSource?: string;
30
+ dataSourceOptions?: any;
31
+ controlType?: AfeControlType;
32
+ validators?: Array<ValidationModel>;
33
+ required?: boolean;
34
+ hide?: string | boolean;
35
+ disable?: string | boolean;
36
+ readOnly?: string | boolean;
37
+ calculateExpression?: string;
38
+ componentConfigs: Array<any>;
39
+ options?: any;
40
+ questionIndex?: Number;
41
+ allowUnselect?: boolean;
42
+ constructor(options: BaseOptions);
43
+ setHistoricalValue(v: boolean): void;
44
+ showHistoricalEncounterDate(v?: boolean): void;
45
+ }
@@ -0,0 +1,7 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { RadioButtonOptions } from './interfaces/radio-button-options';
3
+ export declare class RadioButtonQuestion extends QuestionBase {
4
+ options: RadioButtonOptions['options'];
5
+ allowUnselect: boolean;
6
+ constructor(options: RadioButtonOptions);
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum RenderingType {
2
+ Form = 0,
3
+ Page = 1,
4
+ Section = 2,
5
+ Select = 3,
6
+ DropDown = 4
7
+ }
@@ -0,0 +1,7 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { RepeatingQuestionOptions } from './interfaces/repeating-question-options';
3
+ import { NestedQuestion } from './interfaces/nested-questions';
4
+ export declare class RepeatingQuestion extends NestedQuestion {
5
+ questions: QuestionBase[];
6
+ constructor(options: RepeatingQuestionOptions);
7
+ }
@@ -0,0 +1,6 @@
1
+ import { SelectOption } from './interfaces/select-option';
2
+ export declare class Option {
3
+ label: string;
4
+ value: any;
5
+ constructor(options: SelectOption);
6
+ }
@@ -0,0 +1,10 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { SelectQuestionOptions } from './interfaces/select-question-options';
3
+ export declare class SelectQuestion extends QuestionBase {
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ dataSource?: any;
9
+ constructor(options: SelectQuestionOptions);
10
+ }
@@ -0,0 +1,13 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { TestOrderQuestionOptions } from './interfaces/test-order-question-options';
3
+ export declare class TestOrderQuestion extends QuestionBase {
4
+ orderType: string;
5
+ selectableOrders: {
6
+ concept: string;
7
+ label: string;
8
+ }[];
9
+ orderSettingUuid: string;
10
+ rendering: string;
11
+ options: any[];
12
+ constructor(options: TestOrderQuestionOptions);
13
+ }
@@ -0,0 +1,7 @@
1
+ import { TextInputQuestion } from './text-input-question';
2
+ import { TextAreaQuestionOptions } from './interfaces/text-area-question-options';
3
+ export declare class TextAreaInputQuestion extends TextInputQuestion {
4
+ isExpanded: boolean;
5
+ rows: number;
6
+ constructor(options: TextAreaQuestionOptions);
7
+ }
@@ -0,0 +1,6 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { TextQuestionOptions } from './interfaces/text-question-options';
3
+ export declare class TextInputQuestion extends QuestionBase {
4
+ placeholder: string;
5
+ constructor(options: TextQuestionOptions);
6
+ }
@@ -0,0 +1,11 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { UiSelectQuestionOptions } from './interfaces/ui-select-question-options';
3
+ export declare class UiSelectQuestion extends QuestionBase {
4
+ options: {
5
+ key: string;
6
+ value: string;
7
+ }[];
8
+ searchFunction: Function;
9
+ resolveFunction: Function;
10
+ constructor(options: UiSelectQuestionOptions);
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ValidationModel {
2
+ type: string;
3
+ message: string;
4
+ constructor(validations: any);
5
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DebugModeService {
3
+ cookieKey: string;
4
+ constructor();
5
+ debugEnabled(): boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DebugModeService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<DebugModeService>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { Subject, Observable } from 'rxjs';
2
+ import { AfeFormControl } from '../../public_api';
3
+ import { AfeFormArray, AfeFormGroup } from '../../abstract-controls-extension';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormErrorsService {
6
+ static control: AfeFormControl | AfeFormArray | AfeFormGroup;
7
+ static tab: number;
8
+ announceErrorFieldSource: Subject<string>;
9
+ announceErrorField$: Observable<any>;
10
+ announceErrorField(error: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorsService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormErrorsService>;
13
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormSchemaCompiler {
3
+ constructor();
4
+ compileFormSchema(formSchema: Object, referencedComponents: Array<any>): Object;
5
+ private findSchemaByName;
6
+ private getPageInSchemaByLabel;
7
+ private getSectionInSchemaByPageLabelBySectionLabel;
8
+ private getQuestionByIdInSchema;
9
+ private getQuestionsArrayByQuestionIdInSchema;
10
+ private getQuestionsArrayByQuestionId;
11
+ private isSchemaSubObjectExpandable;
12
+ private isQuestionObjectWithId;
13
+ private getAllPlaceholderObjects;
14
+ private extractPlaceholderObjects;
15
+ private fillPlaceholderObject;
16
+ private replaceAllPlaceholdersWithActualObjects;
17
+ private removeObjectFromArray;
18
+ private removeExcludedQuestionsFromPlaceholder;
19
+ private getReferencedObject;
20
+ private getReferencedForms;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSchemaCompiler, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormSchemaCompiler>;
23
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HistoricalEncounterDataService {
3
+ dataSources: any;
4
+ constructor();
5
+ registerEncounters(name: string, encounters: any): void;
6
+ putObject(name: any, object: any): void;
7
+ getObject(name: string): any;
8
+ getFirstValue(path: Array<string>, object: any): any;
9
+ getAllValues(path: any, object: any, answers: any): void;
10
+ private _transformEncounter;
11
+ private _transformObs;
12
+ private _augumentObs;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HistoricalEncounterDataService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<HistoricalEncounterDataService>;
15
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Messages {
2
+ static readonly REQUIRED_FIELD_MSG = "This field is required!";
3
+ static readonly INVALID_DATE_MSG = "Provided date is invalid!";
4
+ static readonly FUTURE_DATE_RESTRICTION_MSG = "Future date is not allowed!";
5
+ static readonly MIN_LENGTH_MSG = "Min Length should be {minLength}";
6
+ static readonly MAX_LENGTH_MSG = "Max Length should be {maxLength}";
7
+ static readonly MAX_DATE_MSG = "Max Date should be {maxDate}";
8
+ static readonly MIN_DATE_MSG = "Min Date should be {minDate}";
9
+ static readonly MAX_MSG = "Max value should be {max}";
10
+ static readonly MIN_MSG = "Min value should be {min}";
11
+ }
@@ -0,0 +1,8 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ import { ConditionalValidationModel } from '../question-models/conditional-validation.model';
3
+ export declare class ConditionalAnsweredValidator {
4
+ constructor();
5
+ validate(model: ConditionalValidationModel): (control: AfeFormControl) => {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,8 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ import { ConditionalValidationModel } from '../question-models/conditional-validation.model';
3
+ export declare class ConditionalRequiredValidator {
4
+ constructor();
5
+ validate(model: ConditionalValidationModel): (control: AfeFormControl) => {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,7 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class DateValidator {
3
+ constructor();
4
+ validate(control: AfeFormControl): {
5
+ date: boolean;
6
+ };
7
+ }
@@ -0,0 +1,7 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class FutureDateRestrictionValidator {
3
+ constructor();
4
+ validate(control: AfeFormControl): {
5
+ futureDateRestriction: boolean;
6
+ };
7
+ }
@@ -0,0 +1,8 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ import { JsExpressionValidationModel } from '../question-models/js-expression-validation.model';
3
+ export declare class JsExpressionValidator {
4
+ constructor();
5
+ validate(model: JsExpressionValidationModel, form?: any): (control: AfeFormControl) => {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class MaxDateValidator {
3
+ validate(max: Date): (control: AfeFormControl) => {
4
+ [key: string]: any;
5
+ };
6
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class MaxValidator {
3
+ validate(max: number): (control: AfeFormControl) => {
4
+ [key: string]: any;
5
+ };
6
+ }
@@ -0,0 +1,6 @@
1
+ import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
2
+ export declare class MinDateValidator {
3
+ validate(min: Date): (control: AfeFormControl) => {
4
+ [key: string]: any;
5
+ };
6
+ }