@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,20 @@
1
+ import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { OwlDateTimeComponent } from './date-time-picker.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class OwlDateTimeTriggerDirective<T> implements OnChanges, AfterContentInit, OnDestroy {
5
+ protected changeDetector: ChangeDetectorRef;
6
+ dtPicker: OwlDateTimeComponent<T>;
7
+ get owlDTTriggerDisabledClass(): boolean;
8
+ handleClickOnHost($event: Event): void;
9
+ private _disabled;
10
+ get disabled(): boolean;
11
+ set disabled(value: boolean);
12
+ private stateChanges;
13
+ constructor(changeDetector: ChangeDetectorRef);
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngAfterContentInit(): void;
16
+ ngOnDestroy(): void;
17
+ private watchStateChanges;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeTriggerDirective<any>, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeTriggerDirective<any>, "[ofeOwlDateTimeTrigger]", never, { "dtPicker": "ofeOwlDateTimeTrigger"; "disabled": "disabled"; }, {}, never>;
20
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * date-time-picker.animations
3
+ */
4
+ import { AnimationTriggerMetadata } from '@angular/animations';
5
+ export declare const owlDateTimePickerAnimations: {
6
+ readonly transformPicker: AnimationTriggerMetadata;
7
+ readonly fadeInPicker: AnimationTriggerMetadata;
8
+ };
@@ -0,0 +1,156 @@
1
+ import { ChangeDetectorRef, EventEmitter, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
2
+ import { BlockScrollStrategy, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
3
+ import { OwlDateTimeInputDirective } from './date-time-picker-input.directive';
4
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
5
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
6
+ import { OwlDateTime, PickerMode, PickerType, SelectMode } from './date-time.class';
7
+ import { OwlDialogService } from '../dialog/dialog.service';
8
+ import * as i0 from "@angular/core";
9
+ /** Injection token that determines the scroll handling while the dtPicker is open. */
10
+ export declare const OWL_DTPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
11
+ /** @docs-private */
12
+ export declare function OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => BlockScrollStrategy;
13
+ /** @docs-private */
14
+ export declare const OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER: {
15
+ provide: InjectionToken<() => ScrollStrategy>;
16
+ deps: (typeof Overlay)[];
17
+ useFactory: typeof OWL_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY;
18
+ };
19
+ export declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnDestroy {
20
+ private overlay;
21
+ private viewContainerRef;
22
+ private dialogService;
23
+ private ngZone;
24
+ protected changeDetector: ChangeDetectorRef;
25
+ protected dateTimeAdapter: DateTimeAdapter<T>;
26
+ protected dateTimeFormats: OwlDateTimeFormats;
27
+ private document;
28
+ /** Custom class for the picker backdrop. */
29
+ backdropClass: string | string[];
30
+ /** Custom class for the picker overlay pane. */
31
+ panelClass: string | string[];
32
+ /** The date to open the calendar to initially. */
33
+ private _startAt;
34
+ get startAt(): T | null;
35
+ set startAt(date: T | null);
36
+ /**
37
+ * Set the type of the dateTime picker
38
+ * 'both' -- show both calendar and timer
39
+ * 'calendar' -- show only calendar
40
+ * 'timer' -- show only timer
41
+ */
42
+ private _pickerType;
43
+ get pickerType(): PickerType;
44
+ set pickerType(val: PickerType);
45
+ /**
46
+ * Whether the picker open as a dialog
47
+ */
48
+ _pickerMode: PickerMode;
49
+ get pickerMode(): PickerMode;
50
+ set pickerMode(mode: PickerMode);
51
+ /** Whether the date time picker should be disabled. */
52
+ private _disabled;
53
+ get disabled(): boolean;
54
+ set disabled(value: boolean);
55
+ /** Whether the calendar is open. */
56
+ private _opened;
57
+ get opened(): boolean;
58
+ set opened(val: boolean);
59
+ /**
60
+ * The scroll strategy when the picker is open
61
+ * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
62
+ * */
63
+ scrollStrategy: ScrollStrategy;
64
+ /**
65
+ * Callback when the picker is closed
66
+ * */
67
+ afterPickerClosed: EventEmitter<any>;
68
+ /**
69
+ * Callback when the picker is open
70
+ * */
71
+ afterPickerOpen: EventEmitter<any>;
72
+ /**
73
+ * Emits selected year in multi-year view
74
+ * This doesn't imply a change on the selected date.
75
+ * */
76
+ yearSelected: EventEmitter<T>;
77
+ /**
78
+ * Emits selected month in year view
79
+ * This doesn't imply a change on the selected date.
80
+ * */
81
+ monthSelected: EventEmitter<T>;
82
+ /**
83
+ * Emit when the selected value has been confirmed
84
+ * */
85
+ confirmSelectedChange: EventEmitter<T | T[]>;
86
+ /**
87
+ * Emits when the date time picker is disabled.
88
+ * */
89
+ disabledChange: EventEmitter<boolean>;
90
+ private pickerContainerPortal;
91
+ private pickerContainer;
92
+ private popupRef;
93
+ private dialogRef;
94
+ private dtInputSub;
95
+ private hidePickerStreamSub;
96
+ private confirmSelectedStreamSub;
97
+ private pickerOpenedStreamSub;
98
+ /** The element that was focused before the date time picker was opened. */
99
+ private focusedElementBeforeOpen;
100
+ private _dtInput;
101
+ get dtInput(): OwlDateTimeInputDirective<T>;
102
+ private _selected;
103
+ get selected(): T | null;
104
+ set selected(value: T | null);
105
+ private _selecteds;
106
+ get selecteds(): T[];
107
+ set selecteds(values: T[]);
108
+ /** The minimum selectable date. */
109
+ get minDateTime(): T | null;
110
+ /** The maximum selectable date. */
111
+ get maxDateTime(): T | null;
112
+ get dateTimeFilter(): (date: T | null) => boolean;
113
+ get selectMode(): SelectMode;
114
+ get isInSingleMode(): boolean;
115
+ get isInRangeMode(): boolean;
116
+ private defaultScrollStrategy;
117
+ constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: OwlDialogService, ngZone: NgZone, changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, defaultScrollStrategy: any, dateTimeFormats: OwlDateTimeFormats, document: any);
118
+ ngOnDestroy(): void;
119
+ registerInput(input: OwlDateTimeInputDirective<T>): void;
120
+ open(): void;
121
+ /**
122
+ * Selects the given date
123
+ */
124
+ select(date: T[] | T): void;
125
+ /**
126
+ * Emits the selected year in multi-year view
127
+ * */
128
+ selectYear(normalizedYear: T): void;
129
+ /**
130
+ * Emits selected month in year view
131
+ * */
132
+ selectMonth(normalizedMonth: T): void;
133
+ /**
134
+ * Hide the picker
135
+ */
136
+ close(): void;
137
+ /**
138
+ * Confirm the selected value
139
+ */
140
+ confirmSelect(event?: any): void;
141
+ /**
142
+ * Open the picker as a dialog
143
+ */
144
+ private openAsDialog;
145
+ /**
146
+ * Open the picker as popup
147
+ */
148
+ private openAsPopup;
149
+ private createPopup;
150
+ /**
151
+ * Create the popup PositionStrategy.
152
+ * */
153
+ private createPopupPositionStrategy;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeComponent<any>, [null, null, null, null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeComponent<any>, "ofe-owl-date-time", ["owlDateTime"], { "backdropClass": "backdropClass"; "panelClass": "panelClass"; "startAt": "startAt"; "pickerType": "pickerType"; "pickerMode": "pickerMode"; "disabled": "disabled"; "opened": "opened"; "scrollStrategy": "scrollStrategy"; }, { "afterPickerClosed": "afterPickerClosed"; "afterPickerOpen": "afterPickerOpen"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never>;
156
+ }
@@ -0,0 +1,89 @@
1
+ /**
2
+ * date-time.class
3
+ */
4
+ import { EventEmitter } from '@angular/core';
5
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
6
+ import { OwlDateTimeFormats } from './adapter/date-time-format.class';
7
+ import * as i0 from "@angular/core";
8
+ export declare type PickerType = 'both' | 'calendar' | 'timer';
9
+ export declare type PickerMode = 'popup' | 'dialog' | 'inline';
10
+ export declare type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
11
+ export declare abstract class OwlDateTime<T> {
12
+ protected dateTimeAdapter: DateTimeAdapter<T>;
13
+ protected dateTimeFormats: OwlDateTimeFormats;
14
+ get showSecondsTimer(): boolean;
15
+ set showSecondsTimer(val: boolean);
16
+ get hour12Timer(): boolean;
17
+ set hour12Timer(val: boolean);
18
+ get stepHour(): number;
19
+ set stepHour(val: number);
20
+ get stepMinute(): number;
21
+ set stepMinute(val: number);
22
+ get stepSecond(): number;
23
+ set stepSecond(val: number);
24
+ get firstDayOfWeek(): number;
25
+ set firstDayOfWeek(value: number);
26
+ get hideOtherMonths(): boolean;
27
+ set hideOtherMonths(val: boolean);
28
+ get id(): string;
29
+ abstract get selected(): T | null;
30
+ abstract get selecteds(): T[] | null;
31
+ abstract get dateTimeFilter(): (date: T | null) => boolean;
32
+ abstract get maxDateTime(): T | null;
33
+ abstract get minDateTime(): T | null;
34
+ abstract get selectMode(): SelectMode;
35
+ abstract get startAt(): T | null;
36
+ abstract get opened(): boolean;
37
+ abstract get pickerMode(): PickerMode;
38
+ abstract get pickerType(): PickerType;
39
+ abstract get isInSingleMode(): boolean;
40
+ abstract get isInRangeMode(): boolean;
41
+ get formatString(): string;
42
+ get disabled(): boolean;
43
+ constructor(dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
44
+ /**
45
+ * Whether to show the second's timer
46
+ */
47
+ private _showSecondsTimer;
48
+ /**
49
+ * Whether the timer is in hour12 format
50
+ */
51
+ private _hour12Timer;
52
+ /**
53
+ * The view that the calendar should start in.
54
+ */
55
+ startView: 'month' | 'year' | 'multi-years';
56
+ /**
57
+ * Hours to change per step
58
+ */
59
+ private _stepHour;
60
+ /**
61
+ * Minutes to change per step
62
+ */
63
+ private _stepMinute;
64
+ /**
65
+ * Seconds to change per step
66
+ */
67
+ private _stepSecond;
68
+ /**
69
+ * Set the first day of week
70
+ */
71
+ private _firstDayOfWeek;
72
+ /**
73
+ * Whether to hide dates in other months at the start or end of the current month.
74
+ */
75
+ private _hideOtherMonths;
76
+ private _id;
77
+ abstract yearSelected: EventEmitter<T>;
78
+ abstract monthSelected: EventEmitter<T>;
79
+ abstract select(date: T | T[]): void;
80
+ abstract selectYear(normalizedYear: T): void;
81
+ abstract selectMonth(normalizedMonth: T): void;
82
+ /**
83
+ * Date Time Checker to check if the give dateTime is selectable
84
+ */
85
+ dateTimeChecker: (dateTime: T) => boolean;
86
+ protected getValidDate(obj: any): T | null;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTime<any>, [{ optional: true; }, { optional: true; }]>;
88
+ static ɵprov: i0.ɵɵInjectableDeclaration<OwlDateTime<any>>;
89
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./date-time-picker-trigger.directive";
3
+ import * as i2 from "./date-time-picker-input.directive";
4
+ import * as i3 from "./date-time-picker.component";
5
+ import * as i4 from "./date-time-picker-container.component";
6
+ import * as i5 from "./calendar-multi-year-view.component";
7
+ import * as i6 from "./calendar-year-view.component";
8
+ import * as i7 from "./calendar-month-view.component";
9
+ import * as i8 from "./timer.component";
10
+ import * as i9 from "./timer-box.component";
11
+ import * as i10 from "./calendar.component";
12
+ import * as i11 from "./calendar-body.component";
13
+ import * as i12 from "./numberedFixLen.pipe";
14
+ import * as i13 from "./date-time-inline.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "@angular/cdk/overlay";
17
+ import * as i16 from "../dialog/dialog.module";
18
+ import * as i17 from "@angular/cdk/a11y";
19
+ export declare class OwlDateTimeModule {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeModule, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDateTimeModule, [typeof i1.OwlDateTimeTriggerDirective, typeof i2.OwlDateTimeInputDirective, typeof i3.OwlDateTimeComponent, typeof i4.OwlDateTimeContainerComponent, typeof i5.OwlMultiYearViewComponent, typeof i6.OwlYearViewComponent, typeof i7.OwlMonthViewComponent, typeof i8.OwlTimerComponent, typeof i9.OwlTimerBoxComponent, typeof i10.OwlCalendarComponent, typeof i11.OwlCalendarBodyComponent, typeof i12.NumberFixedLenPipe, typeof i13.OwlDateTimeInlineComponent], [typeof i14.CommonModule, typeof i15.OverlayModule, typeof i16.OwlDialogModule, typeof i17.A11yModule], [typeof i10.OwlCalendarComponent, typeof i8.OwlTimerComponent, typeof i1.OwlDateTimeTriggerDirective, typeof i2.OwlDateTimeInputDirective, typeof i3.OwlDateTimeComponent, typeof i13.OwlDateTimeInlineComponent, typeof i5.OwlMultiYearViewComponent, typeof i6.OwlYearViewComponent, typeof i7.OwlMonthViewComponent]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<OwlDateTimeModule>;
23
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * numberFixedLen.pipe
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NumberFixedLenPipe implements PipeTransform {
7
+ transform(num: number, len: number): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen">;
10
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
4
+ get owlDTTimerBoxClass(): boolean;
5
+ showDivider: boolean;
6
+ upBtnAriaLabel: string;
7
+ upBtnDisabled: boolean;
8
+ downBtnAriaLabel: string;
9
+ downBtnDisabled: boolean;
10
+ /**
11
+ * Value would be displayed in the box
12
+ * If it is null, the box would display [value]
13
+ * */
14
+ boxValue: number;
15
+ value: number;
16
+ min: number;
17
+ max: number;
18
+ step: number;
19
+ inputLabel: string;
20
+ valueChange: EventEmitter<number>;
21
+ inputChange: EventEmitter<number>;
22
+ private inputStream;
23
+ private inputStreamSub;
24
+ get displayValue(): number;
25
+ constructor();
26
+ ngOnInit(): void;
27
+ ngOnDestroy(): void;
28
+ upBtnClicked(): void;
29
+ downBtnClicked(): void;
30
+ handleInputChange(val: string): void;
31
+ private updateValue;
32
+ private updateValueViaInput;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerBoxComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerBoxComponent, "ofe-owl-date-time-timer-box", ["owlDateTimeTimerBox"], { "showDivider": "showDivider"; "upBtnAriaLabel": "upBtnAriaLabel"; "upBtnDisabled": "upBtnDisabled"; "downBtnAriaLabel": "downBtnAriaLabel"; "downBtnDisabled": "downBtnDisabled"; "boxValue": "boxValue"; "value": "value"; "min": "min"; "max": "max"; "step": "step"; "inputLabel": "inputLabel"; }, { "valueChange": "valueChange"; "inputChange": "inputChange"; }, never, never>;
35
+ }
@@ -0,0 +1,128 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
+ import { OwlDateTimeIntl } from './date-time-picker-intl.service';
3
+ import { DateTimeAdapter } from './adapter/date-time-adapter.class';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OwlTimerComponent<T> {
6
+ private ngZone;
7
+ private elmRef;
8
+ private pickerIntl;
9
+ private cdRef;
10
+ private dateTimeAdapter;
11
+ get owlDTTimeTabIndex(): number;
12
+ get owlDTTimerClass(): boolean;
13
+ /** The current picker moment */
14
+ private _pickerMoment;
15
+ get pickerMoment(): T;
16
+ set pickerMoment(value: T);
17
+ /** The minimum selectable date time. */
18
+ private _minDateTime;
19
+ get minDateTime(): T | null;
20
+ set minDateTime(value: T | null);
21
+ /** The maximum selectable date time. */
22
+ private _maxDateTime;
23
+ get maxDateTime(): T | null;
24
+ set maxDateTime(value: T | null);
25
+ private isPM;
26
+ /**
27
+ * Whether to show the second's timer
28
+ */
29
+ showSecondsTimer: boolean;
30
+ /**
31
+ * Whether the timer is in hour12 format
32
+ */
33
+ hour12Timer: boolean;
34
+ /**
35
+ * Hours to change per step
36
+ */
37
+ stepHour: number;
38
+ /**
39
+ * Minutes to change per step
40
+ */
41
+ stepMinute: number;
42
+ /**
43
+ * Seconds to change per step
44
+ */
45
+ stepSecond: number;
46
+ get hourValue(): number;
47
+ /**
48
+ * The value would be displayed in hourBox.
49
+ * We need this because the value displayed in hourBox it not
50
+ * the same as the hourValue when the timer is in hour12Timer mode.
51
+ * */
52
+ get hourBoxValue(): number;
53
+ get minuteValue(): number;
54
+ get secondValue(): number;
55
+ get upHourButtonLabel(): string;
56
+ get downHourButtonLabel(): string;
57
+ get upMinuteButtonLabel(): string;
58
+ get downMinuteButtonLabel(): string;
59
+ get upSecondButtonLabel(): string;
60
+ get downSecondButtonLabel(): string;
61
+ get hour12ButtonLabel(): string;
62
+ selectedChange: EventEmitter<T>;
63
+ constructor(ngZone: NgZone, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
64
+ /**
65
+ * Focus to the host element
66
+ * */
67
+ focus(): void;
68
+ /**
69
+ * Set the hour value via typing into timer box input
70
+ * We need this to handle the hour value when the timer is in hour12 mode
71
+ * */
72
+ setHourValueViaInput(hours: number): void;
73
+ setHourValue(hours: number): void;
74
+ setMinuteValue(minutes: number): void;
75
+ setSecondValue(seconds: number): void;
76
+ setMeridiem(event: any): void;
77
+ /**
78
+ * Check if the up hour button is enabled
79
+ */
80
+ upHourEnabled(): boolean;
81
+ /**
82
+ * Check if the down hour button is enabled
83
+ */
84
+ downHourEnabled(): boolean;
85
+ /**
86
+ * Check if the up minute button is enabled
87
+ */
88
+ upMinuteEnabled(): boolean;
89
+ /**
90
+ * Check if the down minute button is enabled
91
+ */
92
+ downMinuteEnabled(): boolean;
93
+ /**
94
+ * Check if the up second button is enabled
95
+ */
96
+ upSecondEnabled(): boolean;
97
+ /**
98
+ * Check if the down second button is enabled
99
+ */
100
+ downSecondEnabled(): boolean;
101
+ /**
102
+ * PickerMoment's hour value +/- certain amount and compare it to the give date
103
+ * 1 is after the comparedDate
104
+ * -1 is before the comparedDate
105
+ * 0 is equal the comparedDate
106
+ * */
107
+ private compareHours;
108
+ /**
109
+ * PickerMoment's minute value +/- certain amount and compare it to the give date
110
+ * 1 is after the comparedDate
111
+ * -1 is before the comparedDate
112
+ * 0 is equal the comparedDate
113
+ * */
114
+ private compareMinutes;
115
+ /**
116
+ * PickerMoment's second value +/- certain amount and compare it to the give date
117
+ * 1 is after the comparedDate
118
+ * -1 is before the comparedDate
119
+ * 0 is equal the comparedDate
120
+ * */
121
+ private compareSeconds;
122
+ /**
123
+ * Get a valid date object
124
+ */
125
+ private getValidDate;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerComponent<any>, [null, null, null, null, { optional: true; }]>;
127
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerComponent<any>, "ofe-owl-date-time-timer", ["owlDateTimeTimer"], { "pickerMoment": "pickerMoment"; "minDateTime": "minDateTime"; "maxDateTime": "maxDateTime"; "showSecondsTimer": "showSecondsTimer"; "hour12Timer": "hour12Timer"; "stepHour": "stepHour"; "stepMinute": "stepMinute"; "stepSecond": "stepSecond"; }, { "selectedChange": "selectedChange"; }, never, never>;
128
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * dialog-config.class
3
+ */
4
+ import { ViewContainerRef } from '@angular/core';
5
+ import { ScrollStrategy } from '@angular/cdk/overlay';
6
+ /** Possible overrides for a dialog's position. */
7
+ export interface DialogPosition {
8
+ /** Override for the dialog's top position. */
9
+ top?: string;
10
+ /** Override for the dialog's bottom position. */
11
+ bottom?: string;
12
+ /** Override for the dialog's left position. */
13
+ left?: string;
14
+ /** Override for the dialog's right position. */
15
+ right?: string;
16
+ }
17
+ export declare class OwlDialogConfig {
18
+ /**
19
+ * ID of the element that describes the dialog.
20
+ */
21
+ ariaDescribedBy?: string | null;
22
+ /**
23
+ * Whether to focus the dialog when the dialog is opened
24
+ */
25
+ autoFocus?: boolean;
26
+ /** Whether the dialog has a backdrop. */
27
+ hasBackdrop?: boolean;
28
+ /**
29
+ * Custom style for the backdrop
30
+ * */
31
+ backdropStyle?: any;
32
+ /** Data being injected into the child component. */
33
+ data?: any;
34
+ /** Whether the user can use escape or clicking outside to close a modal. */
35
+ disableClose?: boolean;
36
+ /**
37
+ * ID for the modal. If omitted, a unique one will be generated.
38
+ */
39
+ id?: string;
40
+ /**
41
+ * The ARIA role of the dialog element.
42
+ */
43
+ role?: 'dialog' | 'alertdialog';
44
+ /**
45
+ * Custom class for the pane
46
+ * */
47
+ paneClass?: string | string[];
48
+ /**
49
+ * Mouse Event
50
+ * */
51
+ event?: MouseEvent;
52
+ /**
53
+ * Custom class for the backdrop
54
+ * */
55
+ backdropClass?: string | string[];
56
+ /**
57
+ * Whether the dialog should close when the user goes backwards/forwards in history.
58
+ * */
59
+ closeOnNavigation: boolean;
60
+ /** Width of the dialog. */
61
+ width: string;
62
+ /** Height of the dialog. */
63
+ height: string;
64
+ /**
65
+ * The min-width of the overlay panel.
66
+ * If a number is provided, pixel units are assumed.
67
+ * */
68
+ minWidth?: number | string;
69
+ /**
70
+ * The min-height of the overlay panel.
71
+ * If a number is provided, pixel units are assumed.
72
+ * */
73
+ minHeight?: number | string;
74
+ /**
75
+ * The max-width of the overlay panel.
76
+ * If a number is provided, pixel units are assumed.
77
+ * */
78
+ maxWidth?: number | string;
79
+ /**
80
+ * The max-height of the overlay panel.
81
+ * If a number is provided, pixel units are assumed.
82
+ * */
83
+ maxHeight?: number | string;
84
+ /** Position overrides. */
85
+ position?: DialogPosition;
86
+ /**
87
+ * The scroll strategy when the dialog is open
88
+ * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
89
+ * */
90
+ scrollStrategy?: ScrollStrategy;
91
+ viewContainerRef?: ViewContainerRef;
92
+ constructor();
93
+ }
@@ -0,0 +1,58 @@
1
+ import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter } from '@angular/core';
2
+ import { AnimationEvent } from '@angular/animations';
3
+ import { FocusTrapFactory } from '@angular/cdk/a11y';
4
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
5
+ import { OwlDialogConfig } from './dialog-config.class';
6
+ import * as i0 from "@angular/core";
7
+ export declare class OwlDialogContainerComponent extends BasePortalOutlet {
8
+ private changeDetector;
9
+ private elementRef;
10
+ private focusTrapFactory;
11
+ private document;
12
+ get owlDialogContainerTabIndex(): number;
13
+ get owlDialogContainerClass(): boolean;
14
+ get owlDialogContainerId(): string;
15
+ get owlDialogContainerRole(): "dialog" | "alertdialog";
16
+ get owlDialogContainerAriaLabelledby(): string;
17
+ get owlDialogContainerAriaDescribedby(): string;
18
+ get owlDialogContainerAnimation(): {
19
+ value: "enter" | "exit" | "void";
20
+ params: any;
21
+ };
22
+ onAnimationStart(event: AnimationEvent): void;
23
+ onAnimationDone(event: AnimationEvent): void;
24
+ portalOutlet: CdkPortalOutlet;
25
+ /** The class that traps and manages focus within the dialog. */
26
+ private focusTrap;
27
+ /** ID of the element that should be considered as the dialog's label. */
28
+ ariaLabelledBy: string | null;
29
+ /** Emits when an animation state changes. */
30
+ animationStateChanged: EventEmitter<AnimationEvent>;
31
+ isAnimating: boolean;
32
+ private _config;
33
+ get config(): OwlDialogConfig;
34
+ private state;
35
+ private params;
36
+ private elementFocusedBeforeDialogWasOpened;
37
+ constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: any);
38
+ /**
39
+ * Attach a ComponentPortal as content to this dialog container.
40
+ */
41
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
42
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
43
+ setConfig(config: OwlDialogConfig): void;
44
+ startExitAnimation(): void;
45
+ /**
46
+ * Calculate origin used in the `zoomFadeInFrom()`
47
+ * for animation purpose
48
+ */
49
+ private calculateZoomOrigin;
50
+ /**
51
+ * Save the focused element before dialog was open
52
+ */
53
+ private savePreviouslyFocusedElement;
54
+ private trapFocus;
55
+ private restoreFocus;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogContainerComponent, [null, null, null, { optional: true; }]>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<OwlDialogContainerComponent, "ofe-owl-dialog-container", never, {}, {}, never, never>;
58
+ }
@@ -0,0 +1,49 @@
1
+ import { Location } from '@angular/common';
2
+ import { OverlayRef } from '@angular/cdk/overlay';
3
+ import { OwlDialogContainerComponent } from './dialog-container.component';
4
+ import { DialogPosition } from './dialog-config.class';
5
+ import { Observable } from 'rxjs';
6
+ export declare class OwlDialogRef<T> {
7
+ private overlayRef;
8
+ private container;
9
+ readonly id: string;
10
+ private result;
11
+ private _beforeClose$;
12
+ private _afterOpen$;
13
+ private _afterClosed$;
14
+ /** Subscription to changes in the user's location. */
15
+ private locationChanged;
16
+ /**
17
+ * The instance of component opened into modal
18
+ * */
19
+ componentInstance: T;
20
+ /** Whether the user is allowed to close the dialog. */
21
+ disableClose: boolean;
22
+ constructor(overlayRef: OverlayRef, container: OwlDialogContainerComponent, id: string, location?: Location);
23
+ close(dialogResult?: any): void;
24
+ /**
25
+ * Gets an observable that emits when the overlay's backdrop has been clicked.
26
+ */
27
+ backdropClick(): Observable<any>;
28
+ /**
29
+ * Gets an observable that emits when keydown events are targeted on the overlay.
30
+ */
31
+ keydownEvents(): Observable<KeyboardEvent>;
32
+ /**
33
+ * Updates the dialog's position.
34
+ * @param position New dialog position.
35
+ */
36
+ updatePosition(position?: DialogPosition): this;
37
+ /**
38
+ * Updates the dialog's width and height.
39
+ * @param width New width of the dialog.
40
+ * @param height New height of the dialog.
41
+ */
42
+ updateSize(width?: string, height?: string): this;
43
+ isAnimating(): boolean;
44
+ afterOpen(): Observable<any>;
45
+ beforeClose(): Observable<any>;
46
+ afterClosed(): Observable<any>;
47
+ /** Fetches the position strategy object from the overlay ref. */
48
+ private getPositionStrategy;
49
+ }