@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,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dialog-container.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/cdk/a11y";
5
+ import * as i4 from "@angular/cdk/overlay";
6
+ import * as i5 from "@angular/cdk/portal";
7
+ export declare class OwlDialogModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDialogModule, [typeof i1.OwlDialogContainerComponent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.PortalModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<OwlDialogModule>;
11
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * dialog.service
3
+ */
4
+ import { InjectionToken, Injector, TemplateRef } from '@angular/core';
5
+ import { Location } from '@angular/common';
6
+ import { OwlDialogConfig } from './dialog-config.class';
7
+ import { OwlDialogRef } from './dialog-ref.class';
8
+ import { Observable, Subject } from 'rxjs';
9
+ import { Overlay, OverlayContainer, ScrollStrategy } from '@angular/cdk/overlay';
10
+ import { ComponentType } from '@angular/cdk/portal';
11
+ import * as i0 from "@angular/core";
12
+ export declare const OWL_DIALOG_DATA: InjectionToken<any>;
13
+ /**
14
+ * Injection token that determines the scroll handling while the dialog is open.
15
+ * */
16
+ export declare const OWL_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
17
+ export declare function OWL_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
18
+ /** @docs-private */
19
+ export declare const OWL_DIALOG_SCROLL_STRATEGY_PROVIDER: {
20
+ provide: InjectionToken<() => ScrollStrategy>;
21
+ deps: (typeof Overlay)[];
22
+ useFactory: typeof OWL_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
23
+ };
24
+ /** I
25
+ * njection token that can be used to specify default dialog options.
26
+ * */
27
+ export declare const OWL_DIALOG_DEFAULT_OPTIONS: InjectionToken<OwlDialogConfig>;
28
+ export declare class OwlDialogService {
29
+ private overlay;
30
+ private injector;
31
+ private location;
32
+ private defaultOptions;
33
+ private parentDialog;
34
+ private overlayContainer;
35
+ private ariaHiddenElements;
36
+ private _openDialogsAtThisLevel;
37
+ private _afterOpenAtThisLevel;
38
+ private _afterAllClosedAtThisLevel;
39
+ /** Keeps track of the currently-open dialogs. */
40
+ get openDialogs(): OwlDialogRef<any>[];
41
+ /** Stream that emits when a dialog has been opened. */
42
+ get afterOpen(): Subject<OwlDialogRef<any>>;
43
+ get _afterAllClosed(): any;
44
+ /**
45
+ * Stream that emits when all open dialog have finished closing.
46
+ * Will emit on subscribe if there are no open dialogs to begin with.
47
+ */
48
+ afterAllClosed: Observable<{}>;
49
+ private scrollStrategy;
50
+ constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy: any, defaultOptions: OwlDialogConfig, parentDialog: OwlDialogService, overlayContainer: OverlayContainer);
51
+ open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: OwlDialogConfig): OwlDialogRef<any>;
52
+ /**
53
+ * Closes all of the currently-open dialogs.
54
+ */
55
+ closeAll(): void;
56
+ /**
57
+ * Finds an open dialog by its id.
58
+ * @param id ID to use when looking up the dialog.
59
+ */
60
+ getDialogById(id: string): OwlDialogRef<any> | undefined;
61
+ private attachDialogContent;
62
+ private createInjector;
63
+ private createOverlay;
64
+ private attachDialogContainer;
65
+ private getOverlayConfig;
66
+ private removeOpenDialog;
67
+ /**
68
+ * Hides all of the content that isn't an overlay from assistive technology.
69
+ */
70
+ private hideNonDialogContentFromAssistiveTechnology;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
72
+ static ɵprov: i0.ɵɵInjectableDeclaration<OwlDialogService>;
73
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * index
3
+ */
4
+ export * from './object.utils';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * object.utils
3
+ */
4
+ /**
5
+ * Extends an object with the *enumerable* and *own* properties of one or more source objects,
6
+ * similar to Object.assign.
7
+ *
8
+ * @param dest The object which will have properties copied to it.
9
+ * @param sources The source objects from which properties will be copied.
10
+ */
11
+ export declare function extendObject(dest: any, ...sources: any[]): any;
@@ -0,0 +1,40 @@
1
+ import { OnInit, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { SelectOption } from '../../form-entry/question-models/interfaces/select-option';
5
+ import { DataSource } from '../../form-entry/question-models/interfaces/data-source';
6
+ import * as i0 from "@angular/core";
7
+ export declare class RemoteSelectComponent implements OnInit, ControlValueAccessor {
8
+ private renderer;
9
+ remoteOptions$: Observable<SelectOption[]>;
10
+ remoteOptionsLoading: boolean;
11
+ remoteOptionInput$: Subject<string>;
12
+ selectedRemoteOptions: SelectOption;
13
+ items: any[];
14
+ value: any[];
15
+ loading: boolean;
16
+ searchText: string;
17
+ notFoundMsg: string;
18
+ placeholder: string;
19
+ componentID: string;
20
+ disabled: boolean;
21
+ theme: string;
22
+ done: EventEmitter<any>;
23
+ private _dataSource;
24
+ get dataSource(): DataSource;
25
+ set dataSource(v: DataSource);
26
+ constructor(renderer: Renderer2);
27
+ ngOnInit(): void;
28
+ subscribeToDataSourceDataChanges(): void;
29
+ writeValue(value: any): void;
30
+ registerOnChange(fn: any): void;
31
+ registerOnTouched(): void;
32
+ onChange(event: any): void;
33
+ selected(event: any): void;
34
+ compareItems: (item: any, selected: any) => boolean;
35
+ private propagateChange;
36
+ trackByFn(item: SelectOption): any;
37
+ private loadOptions;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoteSelectComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<RemoteSelectComponent, "ofe-remote-select", never, { "placeholder": "placeholder"; "componentID": "componentID"; "disabled": "disabled"; "theme": "theme"; "dataSource": "dataSource"; }, { "done": "done"; }, never, never>;
40
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ngx-remote-select.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ng-select/ng-select";
5
+ import * as i4 from "@angular/forms";
6
+ export declare class NgxRemoteSelectModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxRemoteSelectModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxRemoteSelectModule, [typeof i1.RemoteSelectComponent], [typeof i2.CommonModule, typeof i3.NgSelectModule, typeof i4.FormsModule], [typeof i1.RemoteSelectComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxRemoteSelectModule>;
10
+ }
@@ -0,0 +1,19 @@
1
+ import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import type { QueryList } from '@angular/core';
3
+ import { TabComponent } from './tab.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TabSetComponent implements AfterContentInit, OnChanges {
6
+ tabs: QueryList<TabComponent>;
7
+ disableStyle: boolean;
8
+ customNavClass: String;
9
+ customTabsClass: String;
10
+ selectedIndex: Number;
11
+ tabSelect: EventEmitter<any>;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ ngAfterContentInit(): void;
14
+ onHover($event: any): void;
15
+ selectTab(tabToSelect: TabComponent): void;
16
+ getStatusClasses(active: any, disabled: any): "active" | "disabled" | "enabled";
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabSetComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabSetComponent, "ofe-tab-set", never, { "disableStyle": "disableStyle"; "customNavClass": "customNavClass"; "customTabsClass": "customTabsClass"; "selectedIndex": "selectedIndex"; }, { "tabSelect": "tabSelect"; }, ["tabs"], ["*"]>;
19
+ }
@@ -0,0 +1,13 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TabComponent {
4
+ tabTitle: string;
5
+ tabSubTitle: string;
6
+ active: boolean;
7
+ disabled: boolean;
8
+ bypassDOM: boolean;
9
+ customPaneClass: string;
10
+ template: TemplateRef<any>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ofe-tab", never, { "tabTitle": "tabTitle"; "tabSubTitle": "tabSubTitle"; "active": "active"; "disabled": "disabled"; "bypassDOM": "bypassDOM"; "customPaneClass": "customPaneClass"; }, {}, ["template"], ["*"]>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HoverClassDirective {
4
+ elementRef: ElementRef;
5
+ constructor(elementRef: ElementRef);
6
+ hoverClass: string;
7
+ onMouseEnter(): void;
8
+ onMouseLeave(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoverClassDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HoverClassDirective, "[ofeHoverClass]", never, { "hoverClass": "hoverClass"; }, {}, never>;
11
+ }
@@ -0,0 +1,19 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../components/tab.component";
4
+ import * as i2 from "../components/ngx-tab-set.component";
5
+ import * as i3 from "../directives/hover-class.directive";
6
+ import * as i4 from "@angular/common";
7
+ export declare class NgxTabSetModule {
8
+ /**
9
+ * Use in AppModule: new instance of NgxTabset.
10
+ */
11
+ static forRoot(): ModuleWithProviders<NgxTabSetModule>;
12
+ /**
13
+ * Use in features modules with lazy loading: new instance of NgxTabset.
14
+ */
15
+ static forChild(): ModuleWithProviders<NgxTabSetModule>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxTabSetModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxTabSetModule, [typeof i1.TabComponent, typeof i2.TabSetComponent, typeof i3.HoverClassDirective], [typeof i4.CommonModule], [typeof i1.TabComponent, typeof i2.TabSetComponent]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxTabSetModule>;
19
+ }
@@ -0,0 +1,151 @@
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Used to emit changes performed on number input components.
6
+ */
7
+ export declare class NumberChangeEvent {
8
+ /**
9
+ * Contains the `NumberInputComponent` that has been changed.
10
+ */
11
+ source: NumberInputComponent;
12
+ /**
13
+ * The value of the `NumberInputComponent` field encompassed in the `NumberChange` class.
14
+ */
15
+ value: number;
16
+ }
17
+ export declare class NumberInputComponent implements ControlValueAccessor {
18
+ /**
19
+ * Variable used for creating unique ids for number input components.
20
+ */
21
+ static numberCount: number;
22
+ /**
23
+ * `light` or `dark` number input theme.
24
+ */
25
+ theme: 'light' | 'dark';
26
+ /**
27
+ * Set to `true` for a disabled number input.
28
+ */
29
+ disabled: boolean;
30
+ /**
31
+ * Set to `true` for a loading number component.
32
+ */
33
+ skeleton: boolean;
34
+ /**
35
+ * Set to `true` for an invalid number component.
36
+ */
37
+ invalid: boolean;
38
+ /**
39
+ * The unique id for the number component.
40
+ */
41
+ id: string;
42
+ /**
43
+ * Number input field render size
44
+ */
45
+ size: 'sm' | 'md' | 'xl';
46
+ /**
47
+ * Reflects the required attribute of the `input` element.
48
+ */
49
+ required: boolean;
50
+ /**
51
+ * Sets the value attribute on the `input` element.
52
+ */
53
+ set value(v: any);
54
+ get value(): any;
55
+ /**
56
+ * Sets the min attribute on the `input` element.
57
+ */
58
+ min: any;
59
+ /**
60
+ * Sets the max attribute on the `input` element.
61
+ */
62
+ max: any;
63
+ /**
64
+ * Sets the text inside the `label` tag.
65
+ */
66
+ label: string | TemplateRef<any>;
67
+ /**
68
+ * Sets the optional helper text.
69
+ */
70
+ helperText: string | TemplateRef<any>;
71
+ /**
72
+ * Sets the invalid text.
73
+ */
74
+ invalidText: string | TemplateRef<any>;
75
+ /**
76
+ * Sets the amount the number controls increment and decrement by.
77
+ */
78
+ step: number;
79
+ /**
80
+ * If `step` is a decimal, we may want precision to be set to go around floating point precision.
81
+ */
82
+ precision: number;
83
+ /**
84
+ * Set to `true` to show a warning (contents set by warningText)
85
+ */
86
+ warn: boolean;
87
+ /**
88
+ * Sets the warning text
89
+ */
90
+ warnText: string | TemplateRef<any>;
91
+ /**
92
+ * Emits event notifying other classes when a change in state occurs in the input.
93
+ */
94
+ numberChange: EventEmitter<NumberChangeEvent>;
95
+ /**
96
+ * Sets the decrement label text
97
+ */
98
+ decrementLabel: string;
99
+ /**
100
+ * Sets the increment label text
101
+ */
102
+ incrementLabel: string;
103
+ protected _value: number;
104
+ /**
105
+ * Creates an instance of `Number`.
106
+ */
107
+ constructor();
108
+ /**
109
+ * This is the initial value set to the component
110
+ * @param value The input value.
111
+ */
112
+ writeValue(value: any): void;
113
+ /**
114
+ * Sets a method in order to propagate changes back to the form.
115
+ */
116
+ registerOnChange(fn: any): void;
117
+ /**
118
+ * Registers a callback to be triggered when the control has been touched.
119
+ * @param fn Callback to be triggered when the number input is touched.
120
+ */
121
+ registerOnTouched(fn: any): void;
122
+ focusOut(): void;
123
+ /**
124
+ * Sets the disabled state through the model
125
+ */
126
+ setDisabledState(isDisabled: boolean): void;
127
+ /**
128
+ * Called when number input is blurred. Needed to properly implement `ControlValueAccessor`.
129
+ */
130
+ onTouched: () => any;
131
+ /**
132
+ * Method set in `registerOnChange` to propagate changes back to the form.
133
+ */
134
+ propagateChange: (_: any) => void;
135
+ /**
136
+ * Adds `step` to the current `value`.
137
+ */
138
+ onIncrement(): void;
139
+ /**
140
+ * Subtracts `step` to the current `value`.
141
+ */
142
+ onDecrement(): void;
143
+ /**
144
+ * Creates a class of `NumberChange` to emit the change in the `Number`.
145
+ */
146
+ emitChangeEvent(): void;
147
+ onNumberInputChange(event: any): void;
148
+ isTemplate(value: any): boolean;
149
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
150
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "ofe-number-input", never, { "theme": "theme"; "disabled": "disabled"; "skeleton": "skeleton"; "invalid": "invalid"; "id": "id"; "size": "size"; "required": "required"; "value": "value"; "min": "min"; "max": "max"; "label": "label"; "helperText": "helperText"; "invalidText": "invalidText"; "step": "step"; "precision": "precision"; "warn": "warn"; "warnText": "warnText"; "decrementLabel": "decrementLabel"; "incrementLabel": "incrementLabel"; }, { "numberChange": "numberChange"; }, never, never>;
151
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./number-input.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ export declare class NumberInputModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInputModule, [typeof i1.NumberInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.NumberInputComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<NumberInputModule>;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RadioButtonControlComponent implements ControlValueAccessor, OnInit {
5
+ id: String;
6
+ options: Array<any>;
7
+ selected: any;
8
+ allowUnselect: boolean;
9
+ private _value;
10
+ ngOnInit(): void;
11
+ writeValue(value: any): void;
12
+ registerOnChange(fn: (newValue?: any, emitModelEvent?: boolean) => void): void;
13
+ registerOnTouched(fn: () => void): void;
14
+ get value(): any;
15
+ set value(value: any);
16
+ handleClick(option: any): void;
17
+ handleChange(option: any): void;
18
+ onChange: (args: any) => void;
19
+ onTouched: () => void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonControlComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonControlComponent, "ofe-radio-button", never, { "id": "id"; "options": "options"; "selected": "selected"; "allowUnselect": "allowUnselect"; }, {}, never, never>;
22
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./radio.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ export declare class RadioModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, [typeof i1.RadioButtonControlComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.RadioButtonControlComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<RadioModule>;
9
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class OptGroupDirective {
3
+ inputClass: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptGroupDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OptGroupDirective, "[ofeOptgroup]", never, {}, {}, never>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class OptionDirective {
3
+ inputClass: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OptionDirective, "[ofeOption]", never, {}, {}, never>;
6
+ }
@@ -0,0 +1,115 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * `ofe-select` provides a styled `select` component.
6
+ *
7
+ * [See demo](../../?path=/story/select--basic)
8
+ *
9
+ * Example:
10
+ *
11
+ * ```
12
+ * <ofe-select [(ngModel)]="model">
13
+ * <option value="default" disabled selected hidden>Choose an option</option>
14
+ * <option value="option1">Option 1</option>
15
+ * <option value="option2">Option 2</option>
16
+ * <option value="option3">Option 3</option>
17
+ * </ofe-select>
18
+ * ```
19
+ *
20
+ * <example-url>../../iframe.html?id=select--basic</example-url>
21
+ */
22
+ export declare class SelectComponent implements ControlValueAccessor, AfterViewInit {
23
+ /**
24
+ * Tracks the total number of selects instantiated. Used to generate unique IDs
25
+ */
26
+ static selectCount: number;
27
+ /**
28
+ * `inline` or `default` select displays
29
+ */
30
+ display: 'inline' | 'default';
31
+ /**
32
+ * Label for the select. Appears above the input.
33
+ */
34
+ label: string | TemplateRef<any>;
35
+ /**
36
+ * Optional helper text that appears under the label.
37
+ */
38
+ helperText: string | TemplateRef<any>;
39
+ /**
40
+ * Sets the invalid text.
41
+ */
42
+ invalidText: string | TemplateRef<any>;
43
+ /**
44
+ * Set to `true` to show a warning (contents set by warningText)
45
+ */
46
+ warn: boolean;
47
+ /**
48
+ * Sets the warning text
49
+ */
50
+ warnText: string | TemplateRef<any>;
51
+ /**
52
+ * Sets the unique ID. Defaults to `select-${total count of selects instantiated}`
53
+ */
54
+ id: string;
55
+ /**
56
+ * Number input field render size
57
+ */
58
+ size: 'sm' | 'md' | 'xl';
59
+ /**
60
+ * Set to true to disable component.
61
+ */
62
+ disabled: boolean;
63
+ /**
64
+ * Set to true for a loading select.
65
+ */
66
+ skeleton: boolean;
67
+ /**
68
+ * Set to `true` for an invalid select component.
69
+ */
70
+ invalid: boolean;
71
+ /**
72
+ * `light` or `dark` select theme
73
+ */
74
+ theme: 'light' | 'dark';
75
+ ariaLabel: string;
76
+ valueChange: EventEmitter<any>;
77
+ select: ElementRef;
78
+ set value(v: any);
79
+ get value(): any;
80
+ protected _value: any;
81
+ ngAfterViewInit(): void;
82
+ /**
83
+ * Receives a value from the model.
84
+ */
85
+ writeValue(obj: any): void;
86
+ /**
87
+ * Registers a listener that notifies the model when the control updates
88
+ */
89
+ registerOnChange(fn: any): void;
90
+ /**
91
+ * Registers a listener that notifies the model when the control is blurred
92
+ */
93
+ registerOnTouched(fn: any): void;
94
+ /**
95
+ * Sets the disabled state through the model
96
+ */
97
+ setDisabledState(isDisabled: boolean): void;
98
+ /**
99
+ * Handles the change event from the `select`.
100
+ * Sends events to the change handler and emits a `selected` event.
101
+ */
102
+ onChange(event: any): void;
103
+ /**
104
+ * Listens for the host blurring, and notifies the model
105
+ */
106
+ focusOut(): void;
107
+ isTemplate(value: any): boolean;
108
+ /**
109
+ * placeholder declarations. Replaced by the functions provided to `registerOnChange` and `registerOnTouched`
110
+ */
111
+ protected onChangeHandler: (_: any) => void;
112
+ protected onTouchedHandler: () => void;
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ofe-select", never, { "display": "display"; "label": "label"; "helperText": "helperText"; "invalidText": "invalidText"; "warn": "warn"; "warnText": "warnText"; "id": "id"; "size": "size"; "disabled": "disabled"; "skeleton": "skeleton"; "invalid": "invalid"; "theme": "theme"; "ariaLabel": "ariaLabel"; "value": "value"; }, { "valueChange": "valueChange"; }, never, ["*"]>;
115
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./select.component";
3
+ import * as i2 from "./option.directive";
4
+ import * as i3 from "./optgroup.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ export declare class SelectModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof i1.SelectComponent, typeof i2.OptionDirective, typeof i3.OptGroupDirective], [typeof i4.CommonModule, typeof i5.FormsModule], [typeof i1.SelectComponent, typeof i2.OptionDirective, typeof i3.OptGroupDirective]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
11
+ }
@@ -0,0 +1,8 @@
1
+ export var AfeControlType;
2
+ (function (AfeControlType) {
3
+ AfeControlType[AfeControlType["AfeFormControl"] = 0] = "AfeFormControl";
4
+ AfeControlType[AfeControlType["AfeFormArray"] = 1] = "AfeFormArray";
5
+ AfeControlType[AfeControlType["AfeFormGroup"] = 2] = "AfeFormGroup";
6
+ AfeControlType[AfeControlType["None"] = 3] = "None";
7
+ })(AfeControlType || (AfeControlType = {}));
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWZlLWNvbnRyb2wtdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1mb3JtZW50cnkvc3JjL2Fic3RyYWN0LWNvbnRyb2xzLWV4dGVuc2lvbi9hZmUtY29udHJvbC10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGNBS1g7QUFMRCxXQUFZLGNBQWM7SUFDeEIsdUVBQWMsQ0FBQTtJQUNkLG1FQUFZLENBQUE7SUFDWixtRUFBWSxDQUFBO0lBQ1osbURBQUksQ0FBQTtBQUNOLENBQUMsRUFMVyxjQUFjLEtBQWQsY0FBYyxRQUt6QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEFmZUNvbnRyb2xUeXBlIHtcbiAgQWZlRm9ybUNvbnRyb2wsXG4gIEFmZUZvcm1BcnJheSxcbiAgQWZlRm9ybUdyb3VwLFxuICBOb25lXG59XG4iXX0=