@ampath-kenya/ngx-openmrs-formentry 3.0.0-alpha9 → 3.0.0-ampath.1-beta.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 (441) hide show
  1. package/abstract-controls-extension/afe-control-type.d.ts +1 -1
  2. package/abstract-controls-extension/afe-form-array.d.ts +2 -3
  3. package/abstract-controls-extension/afe-form-control.d.ts +1 -1
  4. package/abstract-controls-extension/afe-form-group.d.ts +1 -1
  5. package/ampath-kenya-ngx-openmrs-formentry.d.ts +48 -74
  6. package/ampath-kenya-ngx-openmrs-formentry.metadata.json +1 -1
  7. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.js +5729 -9376
  8. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.js.map +1 -1
  9. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.min.js +1 -16
  10. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.min.js.map +1 -1
  11. package/change-tracking/control-relation.d.ts +4 -4
  12. package/change-tracking/control-relations.d.ts +3 -3
  13. package/components/check-box/checkbox.component.d.ts +1 -2
  14. package/components/date-time-picker/date-time-picker.component.d.ts +1 -2
  15. package/components/date-time-picker/date-time-picker.module.d.ts +0 -3
  16. package/components/file-upload/file-upload.component.d.ts +25 -0
  17. package/components/file-upload/file-upload.module.d.ts +2 -0
  18. package/components/file-upload/secure.pipe.d.ts +5 -5
  19. package/components/ngx-date-time-picker/ngx-date-time-picker.component.d.ts +52 -0
  20. package/components/{ngx-datetime-picker/ngx-datetime-picker.module.d.ts → ngx-date-time-picker/ngx-date-time-picker.module.d.ts} +0 -3
  21. package/components/ngx-time-picker/ngx-time-picker.component.d.ts +13 -0
  22. package/components/ngx-time-picker/ngx-time-picker.module.d.ts +2 -0
  23. package/components/{ngx-remote-select/ngx-remote-select.component.d.ts → remote-select/remote-select.component.d.ts} +8 -12
  24. package/components/remote-select/remote-select.module.d.ts +2 -0
  25. package/components/select/diacritics.d.ts +844 -0
  26. package/components/select/option-list.d.ts +36 -0
  27. package/components/select/option.d.ts +17 -0
  28. package/components/select/select-dropdown.component.d.ts +40 -0
  29. package/components/select/select-dropdown.component.style.d.ts +1 -0
  30. package/components/select/select.component.d.ts +96 -108
  31. package/components/select/select.component.style.d.ts +1 -0
  32. package/encounter-viewer/display-controls/file-preview.component.d.ts +25 -0
  33. package/encounter-viewer/display-controls/question-control.component.d.ts +15 -0
  34. package/encounter-viewer/display-controls/remote-answer.component.d.ts +17 -0
  35. package/encounter-viewer/encounter-container/encounter-container.component.d.ts +15 -0
  36. package/encounter-viewer/encounter-pdf-viewer.service.d.ts +27 -0
  37. package/encounter-viewer/encounter-view/encounter-viewer.component.d.ts +30 -0
  38. package/encounter-viewer/encounter-viewer.module.d.ts +2 -0
  39. package/encounter-viewer/encounter-viewer.service.d.ts +16 -0
  40. package/esm2015/abstract-controls-extension/afe-control-type.js +2 -1
  41. package/esm2015/abstract-controls-extension/afe-form-array.js +2 -1
  42. package/esm2015/abstract-controls-extension/afe-form-control.js +2 -1
  43. package/esm2015/abstract-controls-extension/afe-form-group.js +2 -1
  44. package/esm2015/abstract-controls-extension/control-extensions.js +2 -1
  45. package/esm2015/abstract-controls-extension/index.js +2 -1
  46. package/esm2015/abstract-controls-extension/value-change.listener.js +2 -2
  47. package/esm2015/ampath-kenya-ngx-openmrs-formentry.js +40 -65
  48. package/esm2015/change-tracking/control-relation.js +2 -1
  49. package/esm2015/change-tracking/control-relations.js +2 -1
  50. package/esm2015/components/afe-ng-select.component.js +3 -2
  51. package/esm2015/components/appointments-overview/appointments-overview.component.js +78 -33
  52. package/esm2015/components/check-box/checkbox.component.js +24 -3
  53. package/esm2015/components/check-box/checkbox.module.js +3 -2
  54. package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +93 -4
  55. package/esm2015/components/date-time-picker/date-time-picker.component.js +109 -5
  56. package/esm2015/components/date-time-picker/date-time-picker.module.js +3 -2
  57. package/esm2015/components/date-time-picker/picker-modal/modal.component.js +13 -5
  58. package/esm2015/components/date-time-picker/pipes/moment.pipe.js +3 -2
  59. package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +51 -4
  60. package/esm2015/components/file-upload/file-upload.component.js +130 -0
  61. package/esm2015/components/file-upload/file-upload.module.js +28 -0
  62. package/esm2015/components/file-upload/secure.pipe.js +5 -3
  63. package/esm2015/components/ngx-date-time-picker/ngx-date-time-picker.component.js +259 -0
  64. package/esm2015/components/ngx-date-time-picker/ngx-date-time-picker.module.js +43 -0
  65. package/esm2015/components/ngx-time-picker/ngx-time-picker.component.js +78 -0
  66. package/esm2015/components/ngx-time-picker/ngx-time-picker.module.js +16 -0
  67. package/esm2015/components/remote-select/remote-select.component.js +171 -0
  68. package/esm2015/components/remote-select/remote-select.module.js +18 -0
  69. package/esm2015/components/select/diacritics.js +856 -0
  70. package/esm2015/components/select/option-list.js +180 -0
  71. package/esm2015/components/select/option.js +30 -0
  72. package/esm2015/components/select/select-dropdown.component.js +162 -0
  73. package/esm2015/components/select/select-dropdown.component.style.js +59 -0
  74. package/esm2015/components/select/select.component.js +493 -216
  75. package/esm2015/components/select/select.component.style.js +102 -0
  76. package/esm2015/components/select/select.module.js +11 -24
  77. package/esm2015/encounter-viewer/display-controls/file-preview.component.js +111 -0
  78. package/esm2015/encounter-viewer/display-controls/question-control.component.js +94 -0
  79. package/esm2015/encounter-viewer/display-controls/remote-answer.component.js +81 -0
  80. package/esm2015/encounter-viewer/encounter-container/encounter-container.component.js +50 -0
  81. package/esm2015/encounter-viewer/encounter-pdf-viewer.service.js +437 -0
  82. package/esm2015/encounter-viewer/encounter-view/encounter-viewer.component.js +301 -0
  83. package/esm2015/encounter-viewer/encounter-viewer.module.js +36 -0
  84. package/esm2015/encounter-viewer/encounter-viewer.service.js +162 -0
  85. package/esm2015/form-entry/control-alerts/alert-helpers.js +2 -1
  86. package/esm2015/form-entry/control-alerts/can-generate-alert.js +2 -2
  87. package/esm2015/form-entry/control-calculators/can-calculate.js +2 -2
  88. package/esm2015/form-entry/control-hiders-disablers/can-disable.js +2 -2
  89. package/esm2015/form-entry/control-hiders-disablers/can-hide.js +2 -2
  90. package/esm2015/form-entry/control-hiders-disablers/disabler-helper.js +2 -1
  91. package/esm2015/form-entry/control-hiders-disablers/hider-helpers.js +2 -1
  92. package/esm2015/form-entry/data-sources/data-sources.js +5 -3
  93. package/esm2015/form-entry/data-sources/dummy-data-source.js +2 -1
  94. package/esm2015/form-entry/directives/historical-value-directive.js +4 -2
  95. package/esm2015/form-entry/error-renderer/error-renderer.component.js +20 -4
  96. package/esm2015/form-entry/expression-runner/expression-runner.js +13 -16
  97. package/esm2015/form-entry/form-entry.module.js +29 -25
  98. package/esm2015/form-entry/form-factory/control-relations.factory.js +4 -2
  99. package/esm2015/form-entry/form-factory/form-control.service.js +4 -2
  100. package/esm2015/form-entry/form-factory/form-node.js +2 -4
  101. package/esm2015/form-entry/form-factory/form.factory.js +4 -2
  102. package/esm2015/form-entry/form-factory/form.js +2 -1
  103. package/esm2015/form-entry/form-factory/hiders-disablers.factory.js +4 -2
  104. package/esm2015/form-entry/form-factory/question.factory.js +158 -23
  105. package/esm2015/form-entry/form-factory/show-messages.factory.js +4 -2
  106. package/esm2015/form-entry/form-factory/validation.factory.js +4 -2
  107. package/esm2015/form-entry/form-renderer/form-renderer.component.css.js +8 -12
  108. package/esm2015/form-entry/form-renderer/form-renderer.component.js +458 -9
  109. package/esm2015/form-entry/helpers/historical-expression-helper-service.js +4 -2
  110. package/esm2015/form-entry/helpers/historical-field-helper-service.js +2 -5
  111. package/esm2015/form-entry/helpers/js-expression-helper.js +2 -5
  112. package/esm2015/form-entry/question-models/checkbox.model.js +2 -1
  113. package/esm2015/form-entry/question-models/conditional-validation.model.js +2 -1
  114. package/esm2015/form-entry/question-models/date-question.js +3 -1
  115. package/esm2015/form-entry/question-models/date-validation.model.js +2 -1
  116. package/esm2015/form-entry/question-models/decimal-point-validation.model.js +20 -0
  117. package/esm2015/form-entry/question-models/file-upload-question.js +2 -1
  118. package/esm2015/form-entry/question-models/group-question.js +2 -1
  119. package/esm2015/form-entry/question-models/interfaces/base-options.js +2 -2
  120. package/esm2015/form-entry/question-models/interfaces/checkbox-options.js +2 -2
  121. package/esm2015/form-entry/question-models/interfaces/data-source.js +2 -2
  122. package/esm2015/form-entry/question-models/interfaces/date-question-options.js +2 -2
  123. package/esm2015/form-entry/question-models/interfaces/file-upload-question-options.js +2 -2
  124. package/esm2015/form-entry/question-models/interfaces/group-question-options.js +2 -2
  125. package/esm2015/form-entry/question-models/interfaces/multi-select-options.js +2 -2
  126. package/esm2015/form-entry/question-models/interfaces/nested-questions.js +2 -1
  127. package/esm2015/form-entry/question-models/interfaces/repeating-question-options.js +2 -2
  128. package/esm2015/form-entry/question-models/interfaces/select-option.js +2 -2
  129. package/esm2015/form-entry/question-models/interfaces/select-question-options.js +2 -2
  130. package/esm2015/form-entry/question-models/interfaces/test-order-question-options.js +2 -2
  131. package/esm2015/form-entry/question-models/interfaces/text-area-question-options.js +2 -2
  132. package/esm2015/form-entry/question-models/interfaces/text-question-options.js +2 -2
  133. package/esm2015/form-entry/question-models/interfaces/time-question-options.js +2 -0
  134. package/esm2015/form-entry/question-models/interfaces/ui-select-question-options.js +2 -2
  135. package/esm2015/form-entry/question-models/js-expression-validation.model.js +2 -1
  136. package/esm2015/form-entry/question-models/max-validation.model.js +2 -1
  137. package/esm2015/form-entry/question-models/min-validation.model.js +2 -1
  138. package/esm2015/form-entry/question-models/models.js +2 -1
  139. package/esm2015/form-entry/question-models/multi-select-question.js +2 -1
  140. package/esm2015/form-entry/question-models/pair.model.js +2 -1
  141. package/esm2015/form-entry/question-models/question-base.js +2 -1
  142. package/esm2015/form-entry/question-models/rendering-type.js +2 -1
  143. package/esm2015/form-entry/question-models/repeating-question.js +2 -1
  144. package/esm2015/form-entry/question-models/select-option.js +2 -1
  145. package/esm2015/form-entry/question-models/select-question.js +2 -1
  146. package/esm2015/form-entry/question-models/test-order-question.js +2 -1
  147. package/esm2015/form-entry/question-models/text-area-input-question.js +2 -1
  148. package/esm2015/form-entry/question-models/text-input-question.js +2 -1
  149. package/esm2015/form-entry/question-models/time-question.js +11 -0
  150. package/esm2015/form-entry/question-models/ui-select-question.js +2 -1
  151. package/esm2015/form-entry/question-models/validation.model.js +2 -1
  152. package/esm2015/form-entry/services/debug-mode.service.js +4 -2
  153. package/esm2015/form-entry/services/form-errors.service.js +3 -2
  154. package/esm2015/form-entry/services/form-schema-compiler.service.js +4 -2
  155. package/esm2015/form-entry/services/historical-encounter-data.service.js +4 -2
  156. package/esm2015/form-entry/utils/messages.js +2 -1
  157. package/esm2015/form-entry/validators/conditional-answered.validator.js +2 -1
  158. package/esm2015/form-entry/validators/conditional-required.validator.js +2 -1
  159. package/esm2015/form-entry/validators/date.validator.js +2 -1
  160. package/esm2015/form-entry/validators/future-date-restriction.validator.js +2 -1
  161. package/esm2015/form-entry/validators/js-expression.validator.js +2 -1
  162. package/esm2015/form-entry/validators/max-date.validator.js +2 -1
  163. package/esm2015/form-entry/validators/max.validator.js +2 -1
  164. package/esm2015/form-entry/validators/min-date.validator.js +2 -1
  165. package/esm2015/form-entry/validators/min.validator.js +2 -1
  166. package/esm2015/form-entry/validators/required.validator.js +2 -1
  167. package/esm2015/form-entry/validators/validations.js +2 -1
  168. package/esm2015/form-entry/value-adapters/encounter.adapter.js +5 -3
  169. package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +5 -11
  170. package/esm2015/form-entry/value-adapters/obs.adapter.js +5 -6
  171. package/esm2015/form-entry/value-adapters/order.adapter.js +3 -2
  172. package/esm2015/form-entry/value-adapters/person-attribute.adapter.js +8 -3
  173. package/esm2015/form-entry/value-adapters/value.adapter.js +2 -2
  174. package/esm2015/public_api.js +52 -2
  175. package/esm2015/shared.module.js +3 -2
  176. package/esm5/abstract-controls-extension/afe-control-type.js +9 -0
  177. package/esm5/abstract-controls-extension/afe-form-array.js +99 -0
  178. package/esm5/abstract-controls-extension/afe-form-control.js +97 -0
  179. package/esm5/abstract-controls-extension/afe-form-group.js +71 -0
  180. package/esm5/abstract-controls-extension/control-extensions.js +6 -0
  181. package/esm5/abstract-controls-extension/index.js +6 -0
  182. package/esm5/abstract-controls-extension/value-change.listener.js +2 -0
  183. package/esm5/ampath-kenya-ngx-openmrs-formentry.js +45 -0
  184. package/esm5/change-tracking/control-relation.js +60 -0
  185. package/esm5/change-tracking/control-relations.js +47 -0
  186. package/esm5/components/afe-ng-select.component.js +88 -0
  187. package/esm5/components/appointments-overview/appointments-overview.component.js +127 -0
  188. package/esm5/components/check-box/checkbox.component.js +89 -0
  189. package/esm5/components/check-box/checkbox.module.js +19 -0
  190. package/esm5/components/date-time-picker/date-picker/date-picker.component.js +188 -0
  191. package/esm5/components/date-time-picker/date-time-picker.component.js +113 -0
  192. package/esm5/components/date-time-picker/date-time-picker.module.js +39 -0
  193. package/esm5/components/date-time-picker/picker-modal/modal.component.js +34 -0
  194. package/esm5/components/date-time-picker/pipes/moment.pipe.js +18 -0
  195. package/esm5/components/date-time-picker/time-picker/time-picker.component.js +119 -0
  196. package/esm5/components/file-upload/file-upload.component.js +128 -0
  197. package/esm5/components/file-upload/file-upload.module.js +32 -0
  198. package/esm5/components/file-upload/secure.pipe.js +107 -0
  199. package/esm5/components/ngx-date-time-picker/ngx-date-time-picker.component.js +221 -0
  200. package/esm5/components/ngx-date-time-picker/ngx-date-time-picker.module.js +47 -0
  201. package/esm5/components/ngx-time-picker/ngx-time-picker.component.js +74 -0
  202. package/esm5/components/ngx-time-picker/ngx-time-picker.module.js +20 -0
  203. package/esm5/components/remote-select/remote-select.component.js +165 -0
  204. package/esm5/components/remote-select/remote-select.module.js +22 -0
  205. package/esm5/components/select/diacritics.js +861 -0
  206. package/esm5/components/select/option-list.js +225 -0
  207. package/esm5/components/select/option.js +32 -0
  208. package/esm5/components/select/select-dropdown.component.js +132 -0
  209. package/esm5/components/select/select-dropdown.component.style.js +3 -0
  210. package/esm5/components/select/select.component.js +457 -0
  211. package/esm5/components/select/select.component.style.js +3 -0
  212. package/esm5/components/select/select.module.js +20 -0
  213. package/esm5/encounter-viewer/display-controls/file-preview.component.js +111 -0
  214. package/esm5/encounter-viewer/display-controls/question-control.component.js +106 -0
  215. package/esm5/encounter-viewer/display-controls/remote-answer.component.js +88 -0
  216. package/esm5/encounter-viewer/encounter-container/encounter-container.component.js +47 -0
  217. package/esm5/encounter-viewer/encounter-pdf-viewer.service.js +523 -0
  218. package/esm5/encounter-viewer/encounter-view/encounter-viewer.component.js +187 -0
  219. package/esm5/encounter-viewer/encounter-viewer.module.js +40 -0
  220. package/esm5/encounter-viewer/encounter-viewer.service.js +167 -0
  221. package/esm5/form-entry/control-alerts/alert-helpers.js +45 -0
  222. package/esm5/form-entry/control-alerts/can-generate-alert.js +2 -0
  223. package/esm5/form-entry/control-calculators/can-calculate.js +2 -0
  224. package/esm5/form-entry/control-hiders-disablers/can-disable.js +2 -0
  225. package/esm5/form-entry/control-hiders-disablers/can-hide.js +2 -0
  226. package/esm5/form-entry/control-hiders-disablers/disabler-helper.js +38 -0
  227. package/esm5/form-entry/control-hiders-disablers/hider-helpers.js +45 -0
  228. package/esm5/form-entry/data-sources/data-sources.js +39 -0
  229. package/esm5/form-entry/data-sources/dummy-data-source.js +107 -0
  230. package/esm5/form-entry/directives/historical-value-directive.js +74 -0
  231. package/esm5/form-entry/error-renderer/error-renderer.component.js +64 -0
  232. package/esm5/form-entry/expression-runner/expression-runner.js +159 -0
  233. package/esm5/form-entry/form-entry.module.js +111 -0
  234. package/esm5/form-entry/form-factory/control-relations.factory.js +245 -0
  235. package/esm5/form-entry/form-factory/form-control.service.js +122 -0
  236. package/esm5/form-entry/form-factory/form-node.js +117 -0
  237. package/esm5/form-entry/form-factory/form.factory.js +138 -0
  238. package/esm5/form-entry/form-factory/form.js +214 -0
  239. package/esm5/form-entry/form-factory/hiders-disablers.factory.js +70 -0
  240. package/esm5/form-entry/form-factory/question.factory.js +980 -0
  241. package/esm5/form-entry/form-factory/show-messages.factory.js +34 -0
  242. package/esm5/form-entry/form-factory/validation.factory.js +191 -0
  243. package/esm5/form-entry/form-renderer/form-renderer.component.css.js +3 -0
  244. package/esm5/form-entry/form-renderer/form-renderer.component.js +219 -0
  245. package/esm5/form-entry/helpers/historical-expression-helper-service.js +43 -0
  246. package/esm5/form-entry/helpers/historical-field-helper-service.js +37 -0
  247. package/esm5/form-entry/helpers/js-expression-helper.js +243 -0
  248. package/esm5/form-entry/question-models/checkbox.model.js +17 -0
  249. package/esm5/form-entry/question-models/conditional-validation.model.js +15 -0
  250. package/esm5/form-entry/question-models/date-question.js +19 -0
  251. package/esm5/form-entry/question-models/date-validation.model.js +16 -0
  252. package/esm5/form-entry/question-models/decimal-point-validation.model.js +22 -0
  253. package/esm5/form-entry/question-models/file-upload-question.js +19 -0
  254. package/esm5/form-entry/question-models/group-question.js +18 -0
  255. package/esm5/form-entry/question-models/interfaces/base-options.js +2 -0
  256. package/esm5/form-entry/question-models/interfaces/checkbox-options.js +2 -0
  257. package/esm5/form-entry/question-models/interfaces/data-source.js +2 -0
  258. package/esm5/form-entry/question-models/interfaces/date-question-options.js +2 -0
  259. package/esm5/form-entry/question-models/interfaces/file-upload-question-options.js +2 -0
  260. package/esm5/form-entry/question-models/interfaces/group-question-options.js +2 -0
  261. package/esm5/form-entry/question-models/interfaces/multi-select-options.js +2 -0
  262. package/esm5/form-entry/question-models/interfaces/nested-questions.js +12 -0
  263. package/esm5/form-entry/question-models/interfaces/repeating-question-options.js +2 -0
  264. package/esm5/form-entry/question-models/interfaces/select-option.js +2 -0
  265. package/esm5/form-entry/question-models/interfaces/select-question-options.js +2 -0
  266. package/esm5/form-entry/question-models/interfaces/test-order-question-options.js +2 -0
  267. package/esm5/form-entry/question-models/interfaces/text-area-question-options.js +2 -0
  268. package/esm5/form-entry/question-models/interfaces/text-question-options.js +2 -0
  269. package/esm5/form-entry/question-models/interfaces/time-question-options.js +2 -0
  270. package/esm5/form-entry/question-models/interfaces/ui-select-question-options.js +2 -0
  271. package/esm5/form-entry/question-models/js-expression-validation.model.js +14 -0
  272. package/esm5/form-entry/question-models/max-validation.model.js +15 -0
  273. package/esm5/form-entry/question-models/min-validation.model.js +15 -0
  274. package/esm5/form-entry/question-models/models.js +13 -0
  275. package/esm5/form-entry/question-models/multi-select-question.js +17 -0
  276. package/esm5/form-entry/question-models/pair.model.js +10 -0
  277. package/esm5/form-entry/question-models/question-base.js +27 -0
  278. package/esm5/form-entry/question-models/rendering-type.js +10 -0
  279. package/esm5/form-entry/question-models/repeating-question.js +17 -0
  280. package/esm5/form-entry/question-models/select-option.js +10 -0
  281. package/esm5/form-entry/question-models/select-question.js +18 -0
  282. package/esm5/form-entry/question-models/test-order-question.js +21 -0
  283. package/esm5/form-entry/question-models/text-area-input-question.js +19 -0
  284. package/esm5/form-entry/question-models/text-input-question.js +16 -0
  285. package/esm5/form-entry/question-models/time-question.js +16 -0
  286. package/esm5/form-entry/question-models/ui-select-question.js +17 -0
  287. package/esm5/form-entry/question-models/validation.model.js +10 -0
  288. package/esm5/form-entry/services/debug-mode.service.js +26 -0
  289. package/esm5/form-entry/services/form-errors.service.js +21 -0
  290. package/esm5/form-entry/services/form-schema-compiler.service.js +254 -0
  291. package/esm5/form-entry/services/historical-encounter-data.service.js +180 -0
  292. package/esm5/form-entry/utils/messages.js +17 -0
  293. package/esm5/form-entry/validators/conditional-answered.validator.js +50 -0
  294. package/esm5/form-entry/validators/conditional-required.validator.js +44 -0
  295. package/esm5/form-entry/validators/date.validator.js +22 -0
  296. package/esm5/form-entry/validators/future-date-restriction.validator.js +25 -0
  297. package/esm5/form-entry/validators/js-expression.validator.js +30 -0
  298. package/esm5/form-entry/validators/max-date.validator.js +28 -0
  299. package/esm5/form-entry/validators/max.validator.js +22 -0
  300. package/esm5/form-entry/validators/min-date.validator.js +28 -0
  301. package/esm5/form-entry/validators/min.validator.js +22 -0
  302. package/esm5/form-entry/validators/required.validator.js +16 -0
  303. package/esm5/form-entry/validators/validations.js +9 -0
  304. package/esm5/form-entry/value-adapters/encounter.adapter.js +178 -0
  305. package/esm5/form-entry/value-adapters/obs-adapter-helper.js +509 -0
  306. package/esm5/form-entry/value-adapters/obs.adapter.js +737 -0
  307. package/esm5/form-entry/value-adapters/order.adapter.js +227 -0
  308. package/esm5/form-entry/value-adapters/person-attribute.adapter.js +96 -0
  309. package/esm5/form-entry/value-adapters/value.adapter.js +2 -0
  310. package/esm5/public_api.js +52 -0
  311. package/esm5/shared.module.js +20 -0
  312. package/fesm2015/ampath-kenya-ngx-openmrs-formentry.js +5093 -6889
  313. package/fesm2015/ampath-kenya-ngx-openmrs-formentry.js.map +1 -1
  314. package/fesm5/ampath-kenya-ngx-openmrs-formentry.js +10737 -0
  315. package/fesm5/ampath-kenya-ngx-openmrs-formentry.js.map +1 -0
  316. package/form-entry/data-sources/data-sources.d.ts +1 -1
  317. package/form-entry/directives/historical-value-directive.d.ts +2 -2
  318. package/form-entry/error-renderer/error-renderer.component.d.ts +1 -1
  319. package/form-entry/expression-runner/expression-runner.d.ts +6 -6
  320. package/form-entry/form-factory/form-control.service.d.ts +3 -3
  321. package/form-entry/form-factory/form-node.d.ts +9 -10
  322. package/form-entry/form-factory/form.d.ts +6 -7
  323. package/form-entry/form-factory/question.factory.d.ts +7 -1
  324. package/form-entry/form-factory/validation.factory.d.ts +10 -10
  325. package/form-entry/form-renderer/form-renderer.component.css.d.ts +1 -1
  326. package/form-entry/form-renderer/form-renderer.component.d.ts +4 -6
  327. package/form-entry/helpers/js-expression-helper.d.ts +1 -1
  328. package/form-entry/question-models/date-question.d.ts +2 -0
  329. package/form-entry/question-models/decimal-point-validation.model.d.ts +10 -0
  330. package/form-entry/question-models/interfaces/base-options.d.ts +1 -0
  331. package/form-entry/question-models/interfaces/time-question-options.d.ts +3 -0
  332. package/form-entry/question-models/question-base.d.ts +4 -0
  333. package/form-entry/question-models/rendering-type.d.ts +1 -1
  334. package/form-entry/question-models/time-question.d.ts +5 -0
  335. package/form-entry/services/form-errors.service.d.ts +2 -1
  336. package/form-entry/services/form-schema-compiler.service.d.ts +16 -16
  337. package/form-entry/services/historical-encounter-data.service.d.ts +3 -3
  338. package/form-entry/utils/messages.d.ts +9 -9
  339. package/form-entry/value-adapters/encounter.adapter.d.ts +2 -2
  340. package/form-entry/value-adapters/order.adapter.d.ts +9 -9
  341. package/form-entry/value-adapters/person-attribute.adapter.d.ts +1 -1
  342. package/package.json +18 -16
  343. package/public_api.d.ts +50 -1
  344. package/components/input/input.directive.d.ts +0 -28
  345. package/components/input/input.module.d.ts +0 -2
  346. package/components/input/label.component.d.ts +0 -87
  347. package/components/input/text-area.directive.d.ts +0 -21
  348. package/components/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +0 -13
  349. package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.d.ts +0 -189
  350. package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.d.ts +0 -15
  351. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.d.ts +0 -73
  352. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.d.ts +0 -5
  353. package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.d.ts +0 -7
  354. package/components/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +0 -77
  355. package/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.d.ts +0 -139
  356. package/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.d.ts +0 -109
  357. package/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.d.ts +0 -120
  358. package/components/ngx-pick-datetime/lib/date-time/calendar.component.d.ts +0 -141
  359. package/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +0 -90
  360. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +0 -122
  361. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +0 -152
  362. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.d.ts +0 -51
  363. package/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -21
  364. package/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.d.ts +0 -8
  365. package/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.d.ts +0 -157
  366. package/components/ngx-pick-datetime/lib/date-time/date-time.class.d.ts +0 -86
  367. package/components/ngx-pick-datetime/lib/date-time/date-time.module.d.ts +0 -5
  368. package/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.d.ts +0 -7
  369. package/components/ngx-pick-datetime/lib/date-time/timer-box.component.d.ts +0 -35
  370. package/components/ngx-pick-datetime/lib/date-time/timer.component.d.ts +0 -129
  371. package/components/ngx-pick-datetime/lib/dialog/dialog-config.class.d.ts +0 -93
  372. package/components/ngx-pick-datetime/lib/dialog/dialog-container.component.d.ts +0 -56
  373. package/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.d.ts +0 -49
  374. package/components/ngx-pick-datetime/lib/dialog/dialog.module.d.ts +0 -5
  375. package/components/ngx-pick-datetime/lib/dialog/dialog.service.d.ts +0 -70
  376. package/components/ngx-pick-datetime/lib/utils/index.d.ts +0 -4
  377. package/components/ngx-pick-datetime/lib/utils/object.utils.d.ts +0 -11
  378. package/components/ngx-remote-select/ngx-remote-select.module.d.ts +0 -2
  379. package/components/ngx-tabset/components/tab-set.d.ts +0 -15
  380. package/components/ngx-tabset/components/tab.d.ts +0 -10
  381. package/components/ngx-tabset/directives/hover-class.directive.d.ts +0 -8
  382. package/components/ngx-tabset/modules/ngx-tabset.module.d.ts +0 -11
  383. package/components/number-input/number-input.component.d.ts +0 -148
  384. package/components/number-input/number-input.module.d.ts +0 -2
  385. package/components/select/optgroup.directive.d.ts +0 -3
  386. package/components/select/option.directive.d.ts +0 -3
  387. package/esm2015/components/input/input.directive.js +0 -55
  388. package/esm2015/components/input/input.module.js +0 -29
  389. package/esm2015/components/input/label.component.js +0 -139
  390. package/esm2015/components/input/text-area.directive.js +0 -40
  391. package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +0 -52
  392. package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +0 -28
  393. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.js +0 -115
  394. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.js +0 -7
  395. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.js +0 -346
  396. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.js +0 -10
  397. package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.js +0 -30
  398. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-body.component.js +0 -149
  399. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.js +0 -432
  400. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +0 -353
  401. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js +0 -362
  402. package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +0 -337
  403. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js +0 -252
  404. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +0 -379
  405. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js +0 -601
  406. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.js +0 -60
  407. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js +0 -69
  408. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.js +0 -21
  409. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.js +0 -515
  410. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.class.js +0 -154
  411. package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.module.js +0 -63
  412. package/esm2015/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.js +0 -24
  413. package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +0 -83
  414. package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +0 -293
  415. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-config.class.js +0 -56
  416. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-container.component.js +0 -208
  417. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.js +0 -113
  418. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.module.js +0 -29
  419. package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.service.js +0 -228
  420. package/esm2015/components/ngx-pick-datetime/lib/utils/index.js +0 -5
  421. package/esm2015/components/ngx-pick-datetime/lib/utils/object.utils.js +0 -26
  422. package/esm2015/components/ngx-remote-select/ngx-remote-select.component.js +0 -119
  423. package/esm2015/components/ngx-remote-select/ngx-remote-select.module.js +0 -18
  424. package/esm2015/components/ngx-tabset/components/tab-set.js +0 -67
  425. package/esm2015/components/ngx-tabset/components/tab.js +0 -38
  426. package/esm2015/components/ngx-tabset/directives/hover-class.directive.js +0 -26
  427. package/esm2015/components/ngx-tabset/modules/ngx-tabset.module.js +0 -40
  428. package/esm2015/components/number-input/number-input.component.js +0 -203
  429. package/esm2015/components/number-input/number-input.module.js +0 -15
  430. package/esm2015/components/select/optgroup.directive.js +0 -17
  431. package/esm2015/components/select/option.directive.js +0 -17
  432. package/esm2015/form-entry/directives/collapse-animations.js +0 -11
  433. package/esm2015/form-entry/directives/collapse.directive.js +0 -157
  434. package/esm2015/form-entry/pipes/time-ago.pipe.js +0 -107
  435. package/esm2015/lib/index.js +0 -49
  436. package/form-entry/directives/collapse-animations.d.ts +0 -4
  437. package/form-entry/directives/collapse.directive.d.ts +0 -42
  438. package/form-entry/pipes/time-ago.pipe.d.ts +0 -11
  439. package/lib/index.d.ts +0 -49
  440. package/styles/ngx-formentry.css +0 -317
  441. package/styles/picker.min.css +0 -1
@@ -1,87 +0,0 @@
1
- import { AfterViewInit, ElementRef, TemplateRef, AfterContentInit } from "@angular/core";
2
- import { TextArea } from "./text-area.directive";
3
- /**
4
- * [See demo](../../?path=/story/input--label)
5
- *
6
- * ```html
7
- * <ibm-label labelState="success">
8
- * <label label>Field with success</label>
9
- * <input type="text" class="input-field">
10
- * </ibm-label>
11
- *
12
- * <ibm-label labelState="warning">
13
- * <label label>Field with warning</label>
14
- * <input type="text" class="input-field">
15
- * </ibm-label>
16
- *
17
- * <ibm-label labelState="error">
18
- * <label label>Field with error</label>
19
- * <input type="text" class="input-field">
20
- * </ibm-label>
21
- * ```
22
- *
23
- * <example-url>../../iframe.html?id=input--label</example-url>
24
- */
25
- export declare class Label implements AfterContentInit, AfterViewInit {
26
- /**
27
- * Used to build the id of the input item associated with the `Label`.
28
- */
29
- static labelCounter: number;
30
- /**
31
- * The class of the wrapper
32
- */
33
- wrapperClass: string;
34
- /**
35
- * The id of the input item associated with the `Label`. This value is also used to associate the `Label` with
36
- * its input counterpart through the 'for' attribute.
37
- */
38
- labelInputID: string;
39
- /**
40
- * State of the `Label` will determine the styles applied.
41
- */
42
- labelState: "success" | "warning" | "error" | "";
43
- /**
44
- * Set to `true` for a loading label.
45
- */
46
- skeleton: boolean;
47
- /**
48
- * Optional helper text that appears under the label.
49
- */
50
- helperText: string | TemplateRef<any>;
51
- /**
52
- * Sets the invalid text.
53
- */
54
- invalidText: string | TemplateRef<any>;
55
- /**
56
- * Set to `true` for an invalid label component.
57
- */
58
- invalid: boolean;
59
- /**
60
- * Set to `true` to show a warning (contents set by warningText)
61
- */
62
- warn: boolean;
63
- /**
64
- * Sets the warning text
65
- */
66
- warnText: string | TemplateRef<any>;
67
- /**
68
- * Set the arialabel for label
69
- */
70
- ariaLabel: string;
71
- wrapper: ElementRef<HTMLDivElement>;
72
- textArea: TextArea;
73
- labelClass: boolean;
74
- /**
75
- * Creates an instance of Label.
76
- */
77
- constructor();
78
- /**
79
- * Update wrapper class if a textarea is hosted.
80
- */
81
- ngAfterContentInit(): void;
82
- /**
83
- * Sets the id on the input item associated with the `Label`.
84
- */
85
- ngAfterViewInit(): void;
86
- isTemplate(value: any): boolean;
87
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * A directive for applying styling to a textarea element.
3
- *
4
- * Example:
5
- *
6
- * ```html
7
- * <textarea ibmTextArea></textarea>
8
- * ```
9
- *
10
- * See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
11
- */
12
- export declare class TextArea {
13
- /**
14
- * `light` or `dark` input theme
15
- */
16
- theme: "light" | "dark";
17
- baseClass: boolean;
18
- invalid: boolean;
19
- skeleton: boolean;
20
- get isLightTheme(): boolean;
21
- }
@@ -1,13 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- export declare class NgxDatetimeComponent implements ControlValueAccessor {
3
- value: String | Date;
4
- isDisabled: boolean;
5
- id: string;
6
- onChange: (_: any) => void;
7
- onTouch: () => void;
8
- onInput($event: any): void;
9
- writeValue(value: any): void;
10
- registerOnChange(fn: any): void;
11
- registerOnTouched(fn: any): void;
12
- setDisabledState(isDisabled: boolean): void;
13
- }
@@ -1,189 +0,0 @@
1
- /**
2
- * date-time-adapter.class
3
- */
4
- import { Observable, Subject } from 'rxjs';
5
- import { InjectionToken } from '@angular/core';
6
- /** InjectionToken for date time picker that can be used to override default locale code. */
7
- export declare const OWL_DATE_TIME_LOCALE: InjectionToken<string>;
8
- /** @docs-private */
9
- export declare function OWL_DATE_TIME_LOCALE_FACTORY(): string;
10
- /** Provider for OWL_DATE_TIME_LOCALE injection token. */
11
- export declare const OWL_DATE_TIME_LOCALE_PROVIDER: {
12
- provide: InjectionToken<string>;
13
- useExisting: InjectionToken<string>;
14
- };
15
- export declare abstract class DateTimeAdapter<T> {
16
- /** The locale to use for all dates. */
17
- protected locale: any;
18
- /** A stream that emits when the locale changes. */
19
- protected _localeChanges: Subject<void>;
20
- get localeChanges(): Observable<void>;
21
- /** total milliseconds in a day. */
22
- protected readonly millisecondsInDay = 86400000;
23
- /** total milliseconds in a minute. */
24
- protected readonly milliseondsInMinute = 60000;
25
- /**
26
- * Get the year of the given date
27
- */
28
- abstract getYear(date: T): number;
29
- /**
30
- * Get the month of the given date
31
- * 0 -- January
32
- * 11 -- December
33
- * */
34
- abstract getMonth(date: T): number;
35
- /**
36
- * Get the day of the week of the given date
37
- * 0 -- Sunday
38
- * 6 -- Saturday
39
- * */
40
- abstract getDay(date: T): number;
41
- /**
42
- * Get the day num of the given date
43
- */
44
- abstract getDate(date: T): number;
45
- /**
46
- * Get the hours of the given date
47
- */
48
- abstract getHours(date: T): number;
49
- /**
50
- * Get the minutes of the given date
51
- */
52
- abstract getMinutes(date: T): number;
53
- /**
54
- * Get the seconds of the given date
55
- */
56
- abstract getSeconds(date: T): number;
57
- /**
58
- * Get the milliseconds timestamp of the given date
59
- */
60
- abstract getTime(date: T): number;
61
- /**
62
- * Gets the number of days in the month of the given date.
63
- */
64
- abstract getNumDaysInMonth(date: T): number;
65
- /**
66
- * Get the number of calendar days between the given dates.
67
- * If dateLeft is before dateRight, it would return positive value
68
- * If dateLeft is after dateRight, it would return negative value
69
- */
70
- abstract differenceInCalendarDays(dateLeft: T, dateRight: T): number;
71
- /**
72
- * Gets the name for the year of the given date.
73
- */
74
- abstract getYearName(date: T): string;
75
- /**
76
- * Get a list of month names
77
- */
78
- abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
79
- /**
80
- * Get a list of week names
81
- */
82
- abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
83
- /**
84
- * Gets a list of names for the dates of the month.
85
- */
86
- abstract getDateNames(): string[];
87
- /**
88
- * Return a Date object as a string, using the ISO standard
89
- */
90
- abstract toIso8601(date: T): string;
91
- /**
92
- * Check if the give dates are equal
93
- */
94
- abstract isEqual(dateLeft: T, dateRight: T): boolean;
95
- /**
96
- * Check if the give dates are the same day
97
- */
98
- abstract isSameDay(dateLeft: T, dateRight: T): boolean;
99
- /**
100
- * Checks whether the given date is valid.
101
- */
102
- abstract isValid(date: T): boolean;
103
- /**
104
- * Gets date instance that is not valid.
105
- */
106
- abstract invalid(): T;
107
- /**
108
- * Checks whether the given object is considered a date instance by this DateTimeAdapter.
109
- */
110
- abstract isDateInstance(obj: any): boolean;
111
- /**
112
- * Add the specified number of years to the given date
113
- */
114
- abstract addCalendarYears(date: T, amount: number): T;
115
- /**
116
- * Add the specified number of months to the given date
117
- */
118
- abstract addCalendarMonths(date: T, amount: number): T;
119
- /**
120
- * Add the specified number of days to the given date
121
- */
122
- abstract addCalendarDays(date: T, amount: number): T;
123
- /**
124
- * Set the hours to the given date.
125
- */
126
- abstract setHours(date: T, amount: number): T;
127
- /**
128
- * Set the minutes to the given date.
129
- */
130
- abstract setMinutes(date: T, amount: number): T;
131
- /**
132
- * Set the seconds to the given date.
133
- */
134
- abstract setSeconds(date: T, amount: number): T;
135
- /**
136
- * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
137
- * month and date.
138
- */
139
- abstract createDate(year: number, month: number, date: number): T;
140
- abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
141
- /**
142
- * Clone the given date
143
- */
144
- abstract clone(date: T): T;
145
- /**
146
- * Get a new moment
147
- * */
148
- abstract now(): T;
149
- /**
150
- * Formats a date as a string according to the given format.
151
- */
152
- abstract format(date: T, displayFormat: any): string;
153
- /**
154
- * Parse a user-provided value to a Date Object
155
- */
156
- abstract parse(value: any, parseFormat: any): T | null;
157
- /**
158
- * Compare two given dates
159
- * 1 if the first date is after the second,
160
- * -1 if the first date is before the second
161
- * 0 if dates are equal.
162
- * */
163
- compare(first: T, second: T): number;
164
- /**
165
- * Check if two given dates are in the same year
166
- * 1 if the first date's year is after the second,
167
- * -1 if the first date's year is before the second
168
- * 0 if two given dates are in the same year
169
- * */
170
- compareYear(first: T, second: T): number;
171
- /**
172
- * Attempts to deserialize a value to a valid date object. This is different from parsing in that
173
- * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
174
- * string). The default implementation does not allow any deserialization, it simply checks that
175
- * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
176
- * method on all of it's `@Input()` properties that accept dates. It is therefore possible to
177
- * support passing values from your backend directly to these properties by overriding this method
178
- * to also deserialize the format used by your backend.
179
- */
180
- deserialize(value: any): T | null;
181
- /**
182
- * Sets the locale used for all dates.
183
- */
184
- setLocale(locale: any): void;
185
- /**
186
- * Clamp the given date between min and max dates.
187
- */
188
- clampDate(date: T, min?: T | null, max?: T | null): T;
189
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * date-time-format.class
3
- */
4
- import { InjectionToken } from '@angular/core';
5
- export interface OwlDateTimeFormats {
6
- parseInput: any;
7
- fullPickerInput: any;
8
- datePickerInput: any;
9
- timePickerInput: any;
10
- monthYearLabel: any;
11
- dateA11yLabel: any;
12
- monthYearA11yLabel: any;
13
- }
14
- /** InjectionToken for date time picker that can be used to override default format. */
15
- export declare const OWL_DATE_TIME_FORMATS: InjectionToken<OwlDateTimeFormats>;
@@ -1,73 +0,0 @@
1
- /**
2
- * native-date-time-adapter.class
3
- */
4
- import { Platform } from '@angular/cdk/platform';
5
- import { DateTimeAdapter } from './date-time-adapter.class';
6
- export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
7
- private owlDateTimeLocale;
8
- /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors. */
9
- private readonly _clampDate;
10
- /**
11
- * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
12
- * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
13
- * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
14
- * will produce `'8/13/1800'`.
15
- */
16
- useUtcForDisplay: boolean;
17
- constructor(owlDateTimeLocale: string, platform: Platform);
18
- getYear(date: Date): number;
19
- getMonth(date: Date): number;
20
- getDay(date: Date): number;
21
- getDate(date: Date): number;
22
- getHours(date: Date): number;
23
- getMinutes(date: Date): number;
24
- getSeconds(date: Date): number;
25
- getTime(date: Date): number;
26
- getNumDaysInMonth(date: Date): number;
27
- differenceInCalendarDays(dateLeft: Date, dateRight: Date): number;
28
- getYearName(date: Date): string;
29
- getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
30
- getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
31
- getDateNames(): string[];
32
- toIso8601(date: Date): string;
33
- isEqual(dateLeft: Date, dateRight: Date): boolean;
34
- isSameDay(dateLeft: Date, dateRight: Date): boolean;
35
- isValid(date: Date): boolean;
36
- invalid(): Date;
37
- isDateInstance(obj: any): boolean;
38
- addCalendarYears(date: Date, amount: number): Date;
39
- addCalendarMonths(date: Date, amount: number): Date;
40
- addCalendarDays(date: Date, amount: number): Date;
41
- setHours(date: Date, amount: number): Date;
42
- setMinutes(date: Date, amount: number): Date;
43
- setSeconds(date: Date, amount: number): Date;
44
- createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): Date;
45
- clone(date: Date): Date;
46
- now(): Date;
47
- format(date: Date, displayFormat: any): string;
48
- parse(value: any, parseFormat: any): Date | null;
49
- /**
50
- * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
51
- * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
52
- * invalid date for all other values.
53
- */
54
- deserialize(value: any): Date | null;
55
- /**
56
- * Creates a date but allows the month and date to overflow.
57
- */
58
- private createDateWithOverflow;
59
- /**
60
- * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
61
- * other browsers do not. We remove them to make output consistent and because they interfere with
62
- * date parsing.
63
- */
64
- private stripDirectionalityCharacters;
65
- /**
66
- * When converting Date object to string, javascript built-in functions may return wrong
67
- * results because it applies its internal DST rules. The DST rules around the world change
68
- * very frequently, and the current valid rule is not always valid in previous years though.
69
- * We work around this problem building a new Date object which has its internal UTC
70
- * representation with the local date and time.
71
- */
72
- private _format;
73
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * native-date-time-format.class
3
- */
4
- import { OwlDateTimeFormats } from './date-time-format.class';
5
- export declare const OWL_NATIVE_DATE_TIME_FORMATS: OwlDateTimeFormats;
@@ -1,7 +0,0 @@
1
- /**
2
- * native-date-time.module
3
- */
4
- export declare class NativeDateTimeModule {
5
- }
6
- export declare class OwlNativeDateTimeModule {
7
- }
@@ -1,77 +0,0 @@
1
- /**
2
- * calendar-body.component
3
- */
4
- import { ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
5
- import { SelectMode } from './date-time.class';
6
- export declare class CalendarCell {
7
- value: number;
8
- displayValue: string;
9
- ariaLabel: string;
10
- enabled: boolean;
11
- out: boolean;
12
- cellClass: string;
13
- constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, out?: boolean, cellClass?: string);
14
- }
15
- export declare class OwlCalendarBodyComponent implements OnInit {
16
- private elmRef;
17
- private ngZone;
18
- /**
19
- * The cell number of the active cell in the table.
20
- */
21
- activeCell: number;
22
- /**
23
- * The cells to display in the table.
24
- * */
25
- rows: CalendarCell[][];
26
- /**
27
- * The number of columns in the table.
28
- * */
29
- numCols: number;
30
- /**
31
- * The ratio (width / height) to use for the cells in the table.
32
- */
33
- cellRatio: number;
34
- /**
35
- * The value in the table that corresponds to today.
36
- * */
37
- todayValue: number;
38
- /**
39
- * The value in the table that is currently selected.
40
- * */
41
- selectedValues: number[];
42
- /**
43
- * Current picker select mode
44
- */
45
- selectMode: SelectMode;
46
- /**
47
- * Emit when a calendar cell is selected
48
- * */
49
- readonly select: EventEmitter<CalendarCell>;
50
- get owlDTCalendarBodyClass(): boolean;
51
- get isInSingleMode(): boolean;
52
- get isInRangeMode(): boolean;
53
- constructor(elmRef: ElementRef, ngZone: NgZone);
54
- ngOnInit(): void;
55
- selectCell(cell: CalendarCell): void;
56
- isActiveCell(rowIndex: number, colIndex: number): boolean;
57
- /**
58
- * Check if the cell is selected
59
- */
60
- isSelected(value: number): boolean;
61
- /**
62
- * Check if the cell in the range
63
- * */
64
- isInRange(value: number): boolean;
65
- /**
66
- * Check if the cell is the range from
67
- * */
68
- isRangeFrom(value: number): boolean;
69
- /**
70
- * Check if the cell is the range to
71
- * */
72
- isRangeTo(value: number): boolean;
73
- /**
74
- * Focus to a active cell
75
- * */
76
- focusActiveCell(): void;
77
- }
@@ -1,139 +0,0 @@
1
- /**
2
- * calendar-month-view.component
3
- */
4
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
5
- import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component';
6
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
7
- import { OwlDateTimeFormats } from './adapter/date-time-format.class';
8
- import { SelectMode } from './date-time.class';
9
- export declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDestroy {
10
- private cdRef;
11
- private dateTimeAdapter;
12
- private dateTimeFormats;
13
- /**
14
- * Whether to hide dates in other months at the start or end of the current month.
15
- * */
16
- hideOtherMonths: boolean;
17
- /**
18
- * Define the first day of a week
19
- * Sunday: 0 ~ Saturday: 6
20
- * */
21
- private _firstDayOfWeek;
22
- get firstDayOfWeek(): number;
23
- set firstDayOfWeek(val: number);
24
- /**
25
- * The select mode of the picker;
26
- * */
27
- private _selectMode;
28
- get selectMode(): SelectMode;
29
- set selectMode(val: SelectMode);
30
- /** The currently selected date. */
31
- private _selected;
32
- get selected(): T | null;
33
- set selected(value: T | null);
34
- private _selecteds;
35
- get selecteds(): T[];
36
- set selecteds(values: T[]);
37
- private _pickerMoment;
38
- get pickerMoment(): T;
39
- set pickerMoment(value: T);
40
- /**
41
- * A function used to filter which dates are selectable
42
- * */
43
- private _dateFilter;
44
- get dateFilter(): (date: T) => boolean;
45
- set dateFilter(filter: (date: T) => boolean);
46
- /** The minimum selectable date. */
47
- private _minDate;
48
- get minDate(): T | null;
49
- set minDate(value: T | null);
50
- /** The maximum selectable date. */
51
- private _maxDate;
52
- get maxDate(): T | null;
53
- set maxDate(value: T | null);
54
- private _weekdays;
55
- get weekdays(): {
56
- long: string;
57
- short: string;
58
- narrow: string;
59
- }[];
60
- private _days;
61
- get days(): CalendarCell[][];
62
- get activeCell(): number;
63
- get isInSingleMode(): boolean;
64
- get isInRangeMode(): boolean;
65
- private firstDateOfMonth;
66
- private localeSub;
67
- private initiated;
68
- private dateNames;
69
- /**
70
- * The date of the month that today falls on.
71
- * */
72
- todayDate: number | null;
73
- /**
74
- * An array to hold all selectedDates' value
75
- * the value is the day number in current month
76
- * */
77
- selectedDates: number[];
78
- firstRowOffset: number;
79
- /**
80
- * Callback to invoke when a new date is selected
81
- * */
82
- readonly selectedChange: EventEmitter<T>;
83
- /**
84
- * Callback to invoke when any date is selected.
85
- * */
86
- readonly userSelection: EventEmitter<void>;
87
- /** Emits when any date is activated. */
88
- readonly pickerMomentChange: EventEmitter<T>;
89
- /** The body of calendar table */
90
- calendarBodyElm: OwlCalendarBodyComponent;
91
- get owlDTCalendarView(): boolean;
92
- constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
93
- ngOnInit(): void;
94
- ngAfterContentInit(): void;
95
- ngOnDestroy(): void;
96
- /**
97
- * Handle a calendarCell selected
98
- */
99
- selectCalendarCell(cell: CalendarCell): void;
100
- /**
101
- * Handle a new date selected
102
- */
103
- private selectDate;
104
- /**
105
- * Handle keydown event on calendar body
106
- */
107
- handleCalendarKeydown(event: KeyboardEvent): void;
108
- /**
109
- * Generate the calendar weekdays array
110
- * */
111
- private generateWeekDays;
112
- /**
113
- * Generate the calendar days array
114
- * */
115
- private generateCalendar;
116
- /**
117
- * Creates CalendarCell for days.
118
- */
119
- private createDateCell;
120
- /**
121
- * Check if the date is valid
122
- */
123
- private isDateEnabled;
124
- /**
125
- * Get a valid date object
126
- */
127
- private getValidDate;
128
- /**
129
- * Check if the give dates are none-null and in the same month
130
- */
131
- isSameMonth(dateLeft: T, dateRight: T): boolean;
132
- /**
133
- * Set the selectedDates value.
134
- * In single mode, it has only one value which represent the selected date
135
- * In range mode, it would has two values, one for the fromValue and the other for the toValue
136
- * */
137
- private setSelectedDates;
138
- private focusActiveCell;
139
- }