@openmrs/ngx-formentry 3.0.1-pre.100

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 +16098 -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 +269 -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 +14317 -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 +29 -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,120 @@
1
+ import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component';
3
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
4
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
5
+ import { SelectMode } from './date-time.class';
6
+ import * as i0 from "@angular/core";
7
+ export declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDestroy {
8
+ private cdRef;
9
+ private dateTimeAdapter;
10
+ private dateTimeFormats;
11
+ get owlDTCalendarView(): boolean;
12
+ /**
13
+ * The select mode of the picker;
14
+ * */
15
+ private _selectMode;
16
+ get selectMode(): SelectMode;
17
+ set selectMode(val: SelectMode);
18
+ /** The currently selected date. */
19
+ private _selected;
20
+ get selected(): T | null;
21
+ set selected(value: T | null);
22
+ private _selecteds;
23
+ get selecteds(): T[];
24
+ set selecteds(values: T[]);
25
+ private _pickerMoment;
26
+ get pickerMoment(): T;
27
+ set pickerMoment(value: T);
28
+ /**
29
+ * A function used to filter which dates are selectable
30
+ * */
31
+ private _dateFilter;
32
+ get dateFilter(): (date: T) => boolean;
33
+ set dateFilter(filter: (date: T) => boolean);
34
+ /** The minimum selectable date. */
35
+ private _minDate;
36
+ get minDate(): T | null;
37
+ set minDate(value: T | null);
38
+ /** The maximum selectable date. */
39
+ private _maxDate;
40
+ get maxDate(): T | null;
41
+ set maxDate(value: T | null);
42
+ private readonly monthNames;
43
+ private _months;
44
+ get months(): CalendarCell[][];
45
+ get activeCell(): number;
46
+ get isInSingleMode(): boolean;
47
+ get isInRangeMode(): boolean;
48
+ private localeSub;
49
+ private initiated;
50
+ todayMonth: number | null;
51
+ /**
52
+ * An array to hold all selectedDates' month value
53
+ * the value is the month number in current year
54
+ * */
55
+ selectedMonths: number[];
56
+ /**
57
+ * Callback to invoke when a new month is selected
58
+ * */
59
+ readonly monthChange: EventEmitter<T>;
60
+ /**
61
+ * Emits the selected year. This doesn't imply a change on the selected date
62
+ * */
63
+ readonly monthSelected: EventEmitter<T>;
64
+ /** Emits when any date is activated. */
65
+ readonly pickerMomentChange: EventEmitter<T>;
66
+ /** Emits when use keyboard enter to select a calendar cell */
67
+ readonly keyboardEnter: EventEmitter<any>;
68
+ /** The body of calendar table */
69
+ calendarBodyElm: OwlCalendarBodyComponent;
70
+ constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
71
+ ngOnInit(): void;
72
+ ngAfterContentInit(): void;
73
+ ngOnDestroy(): void;
74
+ /**
75
+ * Handle a calendarCell selected
76
+ */
77
+ selectCalendarCell(cell: CalendarCell): void;
78
+ /**
79
+ * Handle a new month selected
80
+ */
81
+ private selectMonth;
82
+ /**
83
+ * Handle keydown event on calendar body
84
+ */
85
+ handleCalendarKeydown(event: KeyboardEvent): void;
86
+ /**
87
+ * Generate the calendar month list
88
+ * */
89
+ private generateMonthList;
90
+ /**
91
+ * Creates an CalendarCell for the given month.
92
+ */
93
+ private createMonthCell;
94
+ /**
95
+ * Check if the given month is enable
96
+ */
97
+ private isMonthEnabled;
98
+ /**
99
+ * Gets the month in this year that the given Date falls on.
100
+ * Returns null if the given Date is in another year.
101
+ */
102
+ private getMonthInCurrentYear;
103
+ /**
104
+ * Set the selectedMonths value
105
+ * In single mode, it has only one value which represent the month the selected date in
106
+ * In range mode, it would has two values, one for the month the fromValue in and the other for the month the toValue in
107
+ * */
108
+ private setSelectedMonths;
109
+ /**
110
+ * Check the given dates are in the same year
111
+ */
112
+ private hasSameYear;
113
+ /**
114
+ * Get a valid date object
115
+ */
116
+ private getValidDate;
117
+ private focusActiveCell;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlYearViewComponent<any>, [null, { optional: true; }, { optional: true; }]>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlYearViewComponent<any>, "ofe-owl-date-time-year-view", ["owlMonthView"], { "selectMode": "selectMode"; "selected": "selected"; "selecteds": "selecteds"; "pickerMoment": "pickerMoment"; "dateFilter": "dateFilter"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "monthChange": "monthChange"; "monthSelected": "monthSelected"; "pickerMomentChange": "pickerMomentChange"; "keyboardEnter": "keyboardEnter"; }, never, never>;
120
+ }
@@ -0,0 +1,137 @@
1
+ import { AfterContentInit, AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
2
+ import { OwlDateTimeIntl } from './date-time-picker-intl.service';
3
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
4
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
5
+ import { SelectMode } from './date-time.class';
6
+ import * as i0 from "@angular/core";
7
+ export declare class OwlCalendarComponent<T> implements AfterContentInit, AfterViewChecked, OnDestroy {
8
+ private elmRef;
9
+ private pickerIntl;
10
+ private ngZone;
11
+ private cdRef;
12
+ private dateTimeAdapter;
13
+ private dateTimeFormats;
14
+ get owlDTCalendarClass(): boolean;
15
+ get minDate(): T | null;
16
+ set minDate(value: T | null);
17
+ get maxDate(): T | null;
18
+ set maxDate(value: T | null);
19
+ get pickerMoment(): T;
20
+ set pickerMoment(value: T);
21
+ get selected(): T | null;
22
+ set selected(value: T | null);
23
+ get selecteds(): T[];
24
+ set selecteds(values: T[]);
25
+ get periodButtonText(): string;
26
+ get periodButtonLabel(): string;
27
+ get prevButtonLabel(): string;
28
+ get nextButtonLabel(): string;
29
+ get currentView(): 'month' | 'year' | 'multi-years';
30
+ set currentView(view: 'month' | 'year' | 'multi-years');
31
+ get isInSingleMode(): boolean;
32
+ get isInRangeMode(): boolean;
33
+ get showControlArrows(): boolean;
34
+ get isMonthView(): boolean;
35
+ constructor(elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, ngZone: NgZone, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
36
+ /**
37
+ * Date filter for the month and year view
38
+ * */
39
+ dateFilter: Function;
40
+ /**
41
+ * Set the first day of week
42
+ */
43
+ firstDayOfWeek: number;
44
+ /** The minimum selectable date. */
45
+ private _minDate;
46
+ /** The maximum selectable date. */
47
+ private _maxDate;
48
+ /** The current picker moment */
49
+ private _pickerMoment;
50
+ selectMode: SelectMode;
51
+ /** The currently selected moment. */
52
+ private _selected;
53
+ private _selecteds;
54
+ /**
55
+ * The view that the calendar should start in.
56
+ */
57
+ startView: 'month' | 'year' | 'multi-years';
58
+ /**
59
+ * Whether to hide dates in other months at the start or end of the current month.
60
+ * */
61
+ hideOtherMonths: boolean;
62
+ /** Emits when the currently picker moment changes. */
63
+ pickerMomentChange: EventEmitter<T>;
64
+ /** Emits when the currently selected date changes. */
65
+ selectedChange: EventEmitter<T>;
66
+ /** Emits when any date is selected. */
67
+ userSelection: EventEmitter<void>;
68
+ /**
69
+ * Emits the selected year. This doesn't imply a change on the selected date
70
+ * */
71
+ readonly yearSelected: EventEmitter<T>;
72
+ /**
73
+ * Emits the selected month. This doesn't imply a change on the selected date
74
+ * */
75
+ readonly monthSelected: EventEmitter<T>;
76
+ private _currentView;
77
+ private intlChangesSub;
78
+ /**
79
+ * Used for scheduling that focus should be moved to the active cell on the next tick.
80
+ * We need to schedule it, rather than do it immediately, because we have to wait
81
+ * for Angular to re-evaluate the view children.
82
+ */
83
+ private moveFocusOnNextTick;
84
+ /**
85
+ * Date filter for the month and year view
86
+ */
87
+ dateFilterForViews: (date: T) => boolean;
88
+ ngAfterContentInit(): void;
89
+ ngAfterViewChecked(): void;
90
+ ngOnDestroy(): void;
91
+ /**
92
+ * Toggle between month view and year view
93
+ */
94
+ toggleViews(): void;
95
+ /**
96
+ * Handles user clicks on the previous button.
97
+ * */
98
+ previousClicked(): void;
99
+ /**
100
+ * Handles user clicks on the next button.
101
+ * */
102
+ nextClicked(): void;
103
+ dateSelected(date: T): void;
104
+ /**
105
+ * Change the pickerMoment value and switch to a specific view
106
+ */
107
+ goToDateInView(date: T, view: 'month' | 'year' | 'multi-years'): void;
108
+ /**
109
+ * Change the pickerMoment value
110
+ */
111
+ handlePickerMomentChange(date: T): void;
112
+ userSelected(): void;
113
+ /**
114
+ * Whether the previous period button is enabled.
115
+ */
116
+ prevButtonEnabled(): boolean;
117
+ /**
118
+ * Whether the next period button is enabled.
119
+ */
120
+ nextButtonEnabled(): boolean;
121
+ /**
122
+ * Focus to the host element
123
+ * */
124
+ focusActiveCell(): void;
125
+ selectYearInMultiYearView(normalizedYear: T): void;
126
+ selectMonthInYearView(normalizedMonth: T): void;
127
+ /**
128
+ * Whether the two dates represent the same view in the current view mode (month or year).
129
+ */
130
+ private isSameView;
131
+ /**
132
+ * Get a valid date object
133
+ */
134
+ private getValidDate;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }]>;
136
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlCalendarComponent<any>, "ofe-owl-date-time-calendar", ["owlDateTimeCalendar"], { "minDate": "minDate"; "maxDate": "maxDate"; "pickerMoment": "pickerMoment"; "selected": "selected"; "selecteds": "selecteds"; "dateFilter": "dateFilter"; "firstDayOfWeek": "firstDayOfWeek"; "selectMode": "selectMode"; "startView": "startView"; "hideOtherMonths": "hideOtherMonths"; }, { "pickerMomentChange": "pickerMomentChange"; "selectedChange": "selectedChange"; "userSelection": "userSelection"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never>;
137
+ }
@@ -0,0 +1,92 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { OwlDateTime, PickerMode, PickerType, SelectMode } from './date-time.class';
4
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
5
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
6
+ import { OwlDateTimeContainerComponent } from './date-time-picker-container.component';
7
+ import * as i0 from "@angular/core";
8
+ export declare const OWL_DATETIME_VALUE_ACCESSOR: any;
9
+ export declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements OnInit, ControlValueAccessor {
10
+ protected changeDetector: ChangeDetectorRef;
11
+ protected dateTimeAdapter: DateTimeAdapter<T>;
12
+ protected dateTimeFormats: OwlDateTimeFormats;
13
+ get owlDTInlineClass(): boolean;
14
+ container: OwlDateTimeContainerComponent<T>;
15
+ /**
16
+ * Set the type of the dateTime picker
17
+ * 'both' -- show both calendar and timer
18
+ * 'calendar' -- show only calendar
19
+ * 'timer' -- show only timer
20
+ */
21
+ private _pickerType;
22
+ get pickerType(): PickerType;
23
+ set pickerType(val: PickerType);
24
+ private _disabled;
25
+ get disabled(): boolean;
26
+ set disabled(value: boolean);
27
+ private _selectMode;
28
+ get selectMode(): SelectMode;
29
+ set selectMode(mode: SelectMode);
30
+ /** The date to open the calendar to initially. */
31
+ private _startAt;
32
+ get startAt(): T | null;
33
+ set startAt(date: T | null);
34
+ private _dateTimeFilter;
35
+ get owlDateTimeFilter(): (date: T) => boolean;
36
+ set dateTimeFilter(filter: (date: T | null) => boolean);
37
+ /** The minimum valid date. */
38
+ private _min;
39
+ get minDateTime(): T | null;
40
+ min: Date;
41
+ set minDateTime(value: T | null);
42
+ /** The maximum valid date. */
43
+ private _max;
44
+ get maxDateTime(): T | null;
45
+ max: Date;
46
+ set maxDateTime(value: T | null);
47
+ private _value;
48
+ get value(): T | null;
49
+ set value(value: T | null);
50
+ private _values;
51
+ get values(): T[];
52
+ set values(values: T[]);
53
+ /**
54
+ * Emits selected year in multi-year view
55
+ * This doesn't imply a change on the selected date.
56
+ * */
57
+ yearSelected: EventEmitter<T>;
58
+ /**
59
+ * Emits selected month in year view
60
+ * This doesn't imply a change on the selected date.
61
+ * */
62
+ monthSelected: EventEmitter<T>;
63
+ private _selected;
64
+ get selected(): T | null;
65
+ set selected(value: T | null);
66
+ private _selecteds;
67
+ get selecteds(): T[];
68
+ set selecteds(values: T[]);
69
+ get opened(): boolean;
70
+ get pickerMode(): PickerMode;
71
+ get isInSingleMode(): boolean;
72
+ get isInRangeMode(): boolean;
73
+ private onModelChange;
74
+ private onModelTouched;
75
+ constructor(changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
76
+ ngOnInit(): void;
77
+ writeValue(value: any): void;
78
+ registerOnChange(fn: any): void;
79
+ registerOnTouched(fn: any): void;
80
+ setDisabledState(isDisabled: boolean): void;
81
+ select(date: T[] | T): void;
82
+ /**
83
+ * Emits the selected year in multi-year view
84
+ * */
85
+ selectYear(normalizedYear: T): void;
86
+ /**
87
+ * Emits selected month in year view
88
+ * */
89
+ selectMonth(normalizedMonth: T): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInlineComponent<any>, [null, { optional: true; }, { optional: true; }]>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeInlineComponent<any>, "ofe-owl-date-time-inline", never, { "pickerType": "pickerType"; "disabled": "disabled"; "selectMode": "selectMode"; "startAt": "startAt"; "owlDateTimeFilter": "owlDateTimeFilter"; "min": "min"; "max": "max"; "value": "value"; "values": "values"; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never>;
92
+ }
@@ -0,0 +1,121 @@
1
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { AnimationEvent } from '@angular/animations';
3
+ import { Observable } from 'rxjs';
4
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
5
+ import { OwlCalendarComponent } from './calendar.component';
6
+ import { OwlDateTime, PickerType } from './date-time.class';
7
+ import { OwlDateTimeIntl } from './date-time-picker-intl.service';
8
+ import { OwlTimerComponent } from './timer.component';
9
+ import * as i0 from "@angular/core";
10
+ export declare class OwlDateTimeContainerComponent<T> implements AfterContentInit, AfterViewInit {
11
+ private cdRef;
12
+ private elmRef;
13
+ private pickerIntl;
14
+ private dateTimeAdapter;
15
+ calendar: OwlCalendarComponent<T>;
16
+ timer: OwlTimerComponent<T>;
17
+ get owlDTContainerClass(): boolean;
18
+ get owlDTPopupContainerClass(): boolean;
19
+ get owlDTDialogContainerClass(): boolean;
20
+ get owlDTInlineContainerClass(): boolean;
21
+ get owlDTContainerDisabledClass(): boolean;
22
+ get owlDTContainerId(): string;
23
+ get owlDTContainerAnimation(): "" | "enter";
24
+ handleContainerAnimationDone(event: AnimationEvent): void;
25
+ picker: OwlDateTime<T>;
26
+ activeSelectedIndex: number;
27
+ /**
28
+ * Stream emits when try to hide picker
29
+ * */
30
+ private hidePicker$;
31
+ get hidePickerStream(): Observable<any>;
32
+ /**
33
+ * Stream emits when try to confirm the selected value
34
+ * */
35
+ private confirmSelected$;
36
+ get confirmSelectedStream(): Observable<any>;
37
+ private pickerOpened$;
38
+ get pickerOpenedStream(): Observable<any>;
39
+ /**
40
+ * The current picker moment. This determines which time period is shown and which date is
41
+ * highlighted when using keyboard navigation.
42
+ */
43
+ private _clamPickerMoment;
44
+ get pickerMoment(): T;
45
+ set pickerMoment(value: T);
46
+ get pickerType(): PickerType;
47
+ get cancelLabel(): string;
48
+ get setLabel(): string;
49
+ /**
50
+ * The range 'from' label
51
+ * */
52
+ get fromLabel(): string;
53
+ /**
54
+ * The range 'to' label
55
+ * */
56
+ get toLabel(): string;
57
+ /**
58
+ * The range 'from' formatted value
59
+ * */
60
+ get fromFormattedValue(): string;
61
+ /**
62
+ * The range 'to' formatted value
63
+ * */
64
+ get toFormattedValue(): string;
65
+ /**
66
+ * Cases in which the control buttons show in the picker
67
+ * 1) picker mode is 'dialog'
68
+ * 2) picker type is NOT 'calendar' and the picker mode is NOT 'inline'
69
+ * */
70
+ get showControlButtons(): boolean;
71
+ get containerElm(): HTMLElement;
72
+ constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>);
73
+ ngAfterContentInit(): void;
74
+ ngAfterViewInit(): void;
75
+ dateSelected(date: T): void;
76
+ timeSelected(time: T): void;
77
+ /**
78
+ * Handle click on cancel button
79
+ */
80
+ onCancelClicked(event: any): void;
81
+ /**
82
+ * Handle click on set button
83
+ */
84
+ onSetClicked(event: any): void;
85
+ /**
86
+ * Handle click on inform radio group
87
+ */
88
+ handleClickOnInfoGroup(event: any, index: number): void;
89
+ /**
90
+ * Handle click on inform radio group
91
+ */
92
+ handleKeydownOnInfoGroup(event: any, next: any, index: number): void;
93
+ /**
94
+ * Set the value of activeSelectedIndex
95
+ */
96
+ private setActiveSelectedIndex;
97
+ private initPicker;
98
+ /**
99
+ * Select calendar date in single mode,
100
+ * it returns null when date is not selected.
101
+ */
102
+ private dateSelectedInSingleMode;
103
+ /**
104
+ * Select dates in range Mode
105
+ */
106
+ private dateSelectedInRangeMode;
107
+ /**
108
+ * Update the given calendar date's time and check if it is valid
109
+ * Because the calendar date has 00:00:00 as default time, if the picker type is 'both',
110
+ * we need to update the given calendar date's time before selecting it.
111
+ * if it is valid, return the updated dateTime
112
+ * if it is not valid, return null
113
+ */
114
+ private updateAndCheckCalendarDate;
115
+ /**
116
+ * Focus to the picker
117
+ * */
118
+ private focusPicker;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeContainerComponent<any>, [null, null, null, { optional: true; }]>;
120
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeContainerComponent<any>, "ofe-owl-date-time-container", ["owlDateTimeContainer"], {}, {}, never, never>;
121
+ }
@@ -0,0 +1,149 @@
1
+ import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
+ import { OwlDateTimeComponent } from './date-time-picker.component';
4
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
5
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
6
+ import { SelectMode } from './date-time.class';
7
+ import * as i0 from "@angular/core";
8
+ export declare const OWL_DATETIME_VALUE_ACCESSOR: any;
9
+ export declare const OWL_DATETIME_VALIDATORS: any;
10
+ export declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
11
+ private elmRef;
12
+ private renderer;
13
+ private dateTimeAdapter;
14
+ private dateTimeFormats;
15
+ get owlDateTimeInputAriaHaspopup(): boolean;
16
+ get maxIso8601(): string;
17
+ get minIso8601(): string;
18
+ get owlDateTimeInputAriaOwns(): string;
19
+ get owlDateTimeInputDisabled(): boolean;
20
+ handleBlurOnHost($event: Event): void;
21
+ handleChangeOnHost($event: Event): void;
22
+ handleInputOnHost($event: any): void;
23
+ handleKeydownOnHost($event: KeyboardEvent): void;
24
+ /**
25
+ * The date time picker that this input is associated with.
26
+ * */
27
+ set owlDateTime(value: OwlDateTimeComponent<T>);
28
+ /**
29
+ * A function to filter date time
30
+ */
31
+ set owlDateTimeFilter(filter: (date: T | null) => boolean);
32
+ get dateTimeFilter(): (date: T) => boolean;
33
+ get disabled(): boolean;
34
+ set disabled(value: boolean);
35
+ get min(): T | null;
36
+ set min(value: T | null);
37
+ get max(): T | null;
38
+ set max(value: T | null);
39
+ get selectMode(): SelectMode;
40
+ set selectMode(mode: SelectMode);
41
+ get value(): T | null;
42
+ set value(value: T | null);
43
+ get values(): T[];
44
+ set values(values: T[]);
45
+ get elementRef(): ElementRef;
46
+ get isInSingleMode(): boolean;
47
+ get isInRangeMode(): boolean;
48
+ private _dateTimeFilter;
49
+ /** Whether the date time picker's input is disabled. */
50
+ private _disabled;
51
+ /** The minimum valid date. */
52
+ private _min;
53
+ /** The maximum valid date. */
54
+ private _max;
55
+ /**
56
+ * The picker's select mode
57
+ */
58
+ private _selectMode;
59
+ /**
60
+ * The character to separate the 'from' and 'to' in input value
61
+ */
62
+ rangeSeparator: string;
63
+ private _value;
64
+ private _values;
65
+ /**
66
+ * Callback to invoke when `change` event is fired on this `<input>`
67
+ * */
68
+ dateTimeChange: EventEmitter<any>;
69
+ /**
70
+ * Callback to invoke when an `input` event is fired on this `<input>`.
71
+ * */
72
+ dateTimeInput: EventEmitter<any>;
73
+ /** The date-time-picker that this input is associated with. */
74
+ dtPicker: OwlDateTimeComponent<T>;
75
+ private dtPickerSub;
76
+ private localeSub;
77
+ private lastValueValid;
78
+ /** The form control validator for whether the input parses. */
79
+ private parseValidator;
80
+ /** The form control validator for the min date. */
81
+ private minValidator;
82
+ /** The form control validator for the max date. */
83
+ private maxValidator;
84
+ /** The form control validator for the date filter. */
85
+ private filterValidator;
86
+ /**
87
+ * The form control validator for the range.
88
+ * Check whether the 'before' value is before the 'to' value
89
+ * */
90
+ private rangeValidator;
91
+ /** The combined form control validator for this input. */
92
+ private validator;
93
+ /** Emits when the value changes (either due to user input or programmatic change). */
94
+ valueChange: EventEmitter<T | T[]>;
95
+ /** Emits when the disabled state has changed */
96
+ disabledChange: EventEmitter<boolean>;
97
+ private onModelChange;
98
+ private onModelTouched;
99
+ private validatorOnChange;
100
+ constructor(elmRef: ElementRef, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
101
+ ngOnInit(): void;
102
+ ngAfterContentInit(): void;
103
+ ngOnDestroy(): void;
104
+ writeValue(value: any): void;
105
+ registerOnChange(fn: any): void;
106
+ registerOnTouched(fn: any): void;
107
+ setDisabledState(isDisabled: boolean): void;
108
+ validate(c: AbstractControl): {
109
+ [key: string]: any;
110
+ };
111
+ registerOnValidatorChange(fn: () => void): void;
112
+ /**
113
+ * Set the native input property 'value'
114
+ */
115
+ formatNativeInputValue(): void;
116
+ /**
117
+ * Register the relationship between this input and its picker component
118
+ */
119
+ private registerDateTimePicker;
120
+ /**
121
+ * Convert a given obj to a valid date object
122
+ */
123
+ private getValidDate;
124
+ /**
125
+ * Convert a time string to a date-time string
126
+ * When pickerType is 'timer', the value in the picker's input is a time string.
127
+ * The dateTimeAdapter parse fn could not parse a time string to a Date Object.
128
+ * Therefore we need this fn to convert a time string to a date-time string.
129
+ */
130
+ private convertTimeStringToDateTimeString;
131
+ /**
132
+ * Handle input change in single mode
133
+ */
134
+ private changeInputInSingleMode;
135
+ /**
136
+ * Handle input change in rangeFrom or rangeTo mode
137
+ */
138
+ private changeInputInRangeFromToMode;
139
+ /**
140
+ * Handle input change in range mode
141
+ */
142
+ private changeInputInRangeMode;
143
+ /**
144
+ * Check if the two value is the same
145
+ */
146
+ private isSameValue;
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInputDirective<any>, [null, null, { optional: true; }, { optional: true; }]>;
148
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeInputDirective<any>, "input[owlDateTime]", ["owlDateTimeInput"], { "owlDateTime": "owlDateTime"; "owlDateTimeFilter": "owlDateTimeFilter"; "min": "min"; "max": "max"; "selectMode": "selectMode"; "value": "value"; "values": "values"; "_disabled": "_disabled"; "rangeSeparator": "rangeSeparator"; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; }, never>;
149
+ }
@@ -0,0 +1,51 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OwlDateTimeIntl {
4
+ /**
5
+ * Stream that emits whenever the labels here are changed. Use this to notify
6
+ * components if the labels have changed after initialization.
7
+ */
8
+ readonly changes: Subject<void>;
9
+ /** A label for the up second button (used by screen readers). */
10
+ upSecondLabel: string;
11
+ /** A label for the down second button (used by screen readers). */
12
+ downSecondLabel: string;
13
+ /** A label for the up minute button (used by screen readers). */
14
+ upMinuteLabel: string;
15
+ /** A label for the down minute button (used by screen readers). */
16
+ downMinuteLabel: string;
17
+ /** A label for the up hour button (used by screen readers). */
18
+ upHourLabel: string;
19
+ /** A label for the down hour button (used by screen readers). */
20
+ downHourLabel: string;
21
+ /** A label for the previous month button (used by screen readers). */
22
+ prevMonthLabel: string;
23
+ /** A label for the next month button (used by screen readers). */
24
+ nextMonthLabel: string;
25
+ /** A label for the previous year button (used by screen readers). */
26
+ prevYearLabel: string;
27
+ /** A label for the next year button (used by screen readers). */
28
+ nextYearLabel: string;
29
+ /** A label for the previous multi-year button (used by screen readers). */
30
+ prevMultiYearLabel: string;
31
+ /** A label for the next multi-year button (used by screen readers). */
32
+ nextMultiYearLabel: string;
33
+ /** A label for the 'switch to month view' button (used by screen readers). */
34
+ switchToMonthViewLabel: string;
35
+ /** A label for the 'switch to year view' button (used by screen readers). */
36
+ switchToMultiYearViewLabel: string;
37
+ /** A label for the cancel button */
38
+ cancelBtnLabel: string;
39
+ /** A label for the set button */
40
+ setBtnLabel: string;
41
+ /** A label for the range 'from' in picker info */
42
+ rangeFromLabel: string;
43
+ /** A label for the range 'to' in picker info */
44
+ rangeToLabel: string;
45
+ /** A label for the hour12 button (AM) */
46
+ hour12AMLabel: string;
47
+ /** A label for the hour12 button (PM) */
48
+ hour12PMLabel: string;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeIntl, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<OwlDateTimeIntl>;
51
+ }