@openmrs/ngx-formentry 3.2.1-pre.244 → 3.2.1-pre.268
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.
- package/.editorconfig +13 -0
- package/.eslintrc.json +45 -0
- package/.prettierignore +40 -0
- package/.prettierrc +6 -0
- package/.turbo/turbo-build:lib.log +25 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/.yarn/versions/ac1219f3.yml +0 -0
- package/README.md +429 -0
- package/angular.json +164 -0
- package/{components → dist/ngx-formentry/components}/custom-component-wrapper/custom-component-wrapper..module.d.ts +2 -1
- package/{components → dist/ngx-formentry/components}/custom-control-wrapper/custom-control-wrapper..module.d.ts +2 -1
- package/{components → dist/ngx-formentry/components}/date-time-picker/date-time-picker.module.d.ts +2 -1
- package/{components → dist/ngx-formentry/components}/ngx-datetime-picker/ngx-datetime-picker.module.d.ts +2 -1
- package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.d.ts +7 -4
- package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time.module.d.ts +2 -1
- package/{components → dist/ngx-formentry/components}/ngx-remote-select/ngx-remote-select.module.d.ts +2 -1
- package/{esm2015/components/afe-ng-select.component.js → dist/ngx-formentry/esm2020/components/afe-ng-select.component.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/appointments-overview/appointments-overview.component.mjs +116 -0
- package/{esm2015/components/check-box/checkbox.component.js → dist/ngx-formentry/esm2020/components/check-box/checkbox.component.mjs} +6 -10
- package/{esm2015/components/check-box/checkbox.module.js → dist/ngx-formentry/esm2020/components/check-box/checkbox.module.mjs} +5 -5
- package/dist/ngx-formentry/esm2020/components/custom-component-wrapper/custom-component-wrapper..module.mjs +22 -0
- package/dist/ngx-formentry/esm2020/components/custom-component-wrapper/custom-component-wrapper.component.mjs +21 -0
- package/dist/ngx-formentry/esm2020/components/custom-control-wrapper/custom-control-wrapper..module.mjs +23 -0
- package/{esm2015/components/custom-control-wrapper/custom-control-wrapper.component.js → dist/ngx-formentry/esm2020/components/custom-control-wrapper/custom-control-wrapper.component.mjs} +10 -15
- package/dist/ngx-formentry/esm2020/components/date-time-picker/date-picker/date-picker.component.mjs +188 -0
- package/dist/ngx-formentry/esm2020/components/date-time-picker/date-time-picker.component.mjs +115 -0
- package/dist/ngx-formentry/esm2020/components/date-time-picker/date-time-picker.module.mjs +48 -0
- package/dist/ngx-formentry/esm2020/components/date-time-picker/picker-modal/modal.component.mjs +25 -0
- package/{esm2015/components/date-time-picker/pipes/moment.pipe.js → dist/ngx-formentry/esm2020/components/date-time-picker/pipes/moment.pipe.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/date-time-picker/time-picker/time-picker.component.mjs +121 -0
- package/{esm2015/components/file-upload/file-upload.component.js → dist/ngx-formentry/esm2020/components/file-upload/file-upload.component.mjs} +8 -13
- package/{esm2015/components/file-upload/file-upload.module.js → dist/ngx-formentry/esm2020/components/file-upload/file-upload.module.mjs} +5 -5
- package/dist/ngx-formentry/esm2020/components/file-upload/secure.pipe.mjs +101 -0
- package/{esm2015/components/input/input.directive.js → dist/ngx-formentry/esm2020/components/input/input.directive.mjs} +4 -4
- package/{esm2015/components/input/input.module.js → dist/ngx-formentry/esm2020/components/input/input.module.mjs} +5 -5
- package/{esm2015/components/input/label.component.js → dist/ngx-formentry/esm2020/components/input/label.component.mjs} +4 -4
- package/{esm2015/components/input/text-area.directive.js → dist/ngx-formentry/esm2020/components/input/text-area.directive.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/ngx-datetime-picker/ngx-datetime-picker.component.mjs +76 -0
- package/dist/ngx-formentry/esm2020/components/ngx-datetime-picker/ngx-datetime-picker.module.mjs +42 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.mjs} +5 -5
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.mjs} +9 -9
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/calendar-body.component.mjs +142 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.mjs} +5 -11
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.mjs +373 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.mjs} +5 -11
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/calendar.component.mjs +342 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.mjs} +5 -11
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.mjs +392 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.mjs +65 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.mjs} +4 -4
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.mjs} +5 -11
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time.class.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time.module.mjs +99 -0
- package/{esm2015/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/timer-box.component.mjs +90 -0
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/timer.component.mjs +292 -0
- package/{esm2015/components/ngx-pick-datetime/lib/dialog/dialog-container.component.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/dialog/dialog-container.component.mjs} +6 -10
- package/dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/dialog/dialog.module.mjs +26 -0
- package/{esm2015/components/ngx-pick-datetime/lib/dialog/dialog.service.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/dialog/dialog.service.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/ngx-remote-select/ngx-remote-select.component.mjs +132 -0
- package/dist/ngx-formentry/esm2020/components/ngx-remote-select/ngx-remote-select.module.mjs +22 -0
- package/dist/ngx-formentry/esm2020/components/ngx-tabset/components/ngx-tab-set.component.mjs +72 -0
- package/dist/ngx-formentry/esm2020/components/ngx-tabset/components/tab.component.mjs +33 -0
- package/{esm2015/components/ngx-tabset/directives/hover-class.directive.js → dist/ngx-formentry/esm2020/components/ngx-tabset/directives/hover-class.directive.mjs} +4 -4
- package/{esm2015/components/ngx-tabset/modules/ngx-tabset.module.js → dist/ngx-formentry/esm2020/components/ngx-tabset/modules/ngx-tabset.module.mjs} +5 -5
- package/dist/ngx-formentry/esm2020/components/number-input/number-input.component.mjs +248 -0
- package/{esm2015/components/number-input/number-input.module.js → dist/ngx-formentry/esm2020/components/number-input/number-input.module.mjs} +5 -5
- package/{esm2015/components/number-input/number.directive.js → dist/ngx-formentry/esm2020/components/number-input/number.directive.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/radio-button/radio.component.mjs +96 -0
- package/{esm2015/components/radio-button/radio.module.js → dist/ngx-formentry/esm2020/components/radio-button/radio.module.mjs} +5 -5
- package/{esm2015/components/select/optgroup.directive.js → dist/ngx-formentry/esm2020/components/select/optgroup.directive.mjs} +4 -4
- package/{esm2015/components/select/option.directive.js → dist/ngx-formentry/esm2020/components/select/option.directive.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/components/select/select.component.mjs +182 -0
- package/{esm2015/components/select/select.module.js → dist/ngx-formentry/esm2020/components/select/select.module.mjs} +5 -5
- package/{esm2015/form-entry/data-sources/data-sources.js → dist/ngx-formentry/esm2020/form-entry/data-sources/data-sources.mjs} +4 -4
- package/{esm2015/form-entry/directives/collapse.directive.js → dist/ngx-formentry/esm2020/form-entry/directives/collapse.directive.mjs} +5 -5
- package/{esm2015/form-entry/directives/historical-value.directive.js → dist/ngx-formentry/esm2020/form-entry/directives/historical-value.directive.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/form-entry/error-renderer/error-renderer.component.mjs +53 -0
- package/{esm2015/form-entry/expression-runner/expression-runner.js → dist/ngx-formentry/esm2020/form-entry/expression-runner/expression-runner.mjs} +6 -6
- package/{esm2015/form-entry/form-entry.module.js → dist/ngx-formentry/esm2020/form-entry/form-entry.module.mjs} +5 -5
- package/{esm2015/form-entry/form-factory/control-relations.factory.js → dist/ngx-formentry/esm2020/form-entry/form-factory/control-relations.factory.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/form-entry/form-factory/form-control.service.mjs +118 -0
- package/dist/ngx-formentry/esm2020/form-entry/form-factory/form-node.mjs +99 -0
- package/dist/ngx-formentry/esm2020/form-entry/form-factory/form.factory.mjs +144 -0
- package/{esm2015/form-entry/form-factory/hiders-disablers.factory.js → dist/ngx-formentry/esm2020/form-entry/form-factory/hiders-disablers.factory.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/form-entry/form-factory/question.factory.mjs +1000 -0
- package/{esm2015/form-entry/form-factory/show-messages.factory.js → dist/ngx-formentry/esm2020/form-entry/form-factory/show-messages.factory.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/form-entry/form-factory/validation.factory.mjs +169 -0
- package/dist/ngx-formentry/esm2020/form-entry/form-renderer/form-renderer.component.mjs +264 -0
- package/{esm2015/form-entry/helpers/historical-expression-helper-service.js → dist/ngx-formentry/esm2020/form-entry/helpers/historical-expression-helper-service.mjs} +4 -4
- package/{esm2015/form-entry/helpers/historical-field-helper-service.js → dist/ngx-formentry/esm2020/form-entry/helpers/historical-field-helper-service.mjs} +4 -4
- package/{esm2015/form-entry/helpers/js-expression-helper.js → dist/ngx-formentry/esm2020/form-entry/helpers/js-expression-helper.mjs} +7 -11
- package/dist/ngx-formentry/esm2020/form-entry/pipes/time-ago.pipe.mjs +110 -0
- package/{esm2015/form-entry/services/debug-mode.service.js → dist/ngx-formentry/esm2020/form-entry/services/debug-mode.service.mjs} +4 -4
- package/{esm2015/form-entry/services/form-errors.service.js → dist/ngx-formentry/esm2020/form-entry/services/form-errors.service.mjs} +4 -4
- package/{esm2015/form-entry/services/form-schema-compiler.service.js → dist/ngx-formentry/esm2020/form-entry/services/form-schema-compiler.service.mjs} +4 -4
- package/{esm2015/form-entry/services/historical-encounter-data.service.js → dist/ngx-formentry/esm2020/form-entry/services/historical-encounter-data.service.mjs} +4 -4
- package/dist/ngx-formentry/esm2020/form-entry/value-adapters/diagnosis.adapter.mjs +144 -0
- package/dist/ngx-formentry/esm2020/form-entry/value-adapters/encounter.adapter.mjs +186 -0
- package/dist/ngx-formentry/esm2020/form-entry/value-adapters/obs-adapter-helper.mjs +533 -0
- package/{esm2015/form-entry/value-adapters/obs.adapter.js → dist/ngx-formentry/esm2020/form-entry/value-adapters/obs.adapter.mjs} +4 -4
- package/{esm2015/form-entry/value-adapters/order.adapter.js → dist/ngx-formentry/esm2020/form-entry/value-adapters/order.adapter.mjs} +4 -4
- package/{esm2015/form-entry/value-adapters/patient-identifier.adapter.js → dist/ngx-formentry/esm2020/form-entry/value-adapters/patient-identifier.adapter.mjs} +4 -4
- package/{esm2015/form-entry/value-adapters/person-attribute.adapter.js → dist/ngx-formentry/esm2020/form-entry/value-adapters/person-attribute.adapter.mjs} +4 -4
- package/{esm2015/shared.module.js → dist/ngx-formentry/esm2020/shared.module.mjs} +5 -5
- package/dist/ngx-formentry/fesm2015/openmrs-ngx-formentry.mjs +14714 -0
- package/dist/ngx-formentry/fesm2015/openmrs-ngx-formentry.mjs.map +1 -0
- package/{fesm2015/openmrs-ngx-formentry.js → dist/ngx-formentry/fesm2020/openmrs-ngx-formentry.mjs} +459 -589
- package/dist/ngx-formentry/fesm2020/openmrs-ngx-formentry.mjs.map +1 -0
- package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/form-node.d.ts +3 -1
- package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/form.factory.d.ts +3 -1
- package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/validation.factory.d.ts +3 -1
- package/{form-entry → dist/ngx-formentry/form-entry}/pipes/time-ago.pipe.d.ts +4 -2
- package/dist/ngx-formentry/package.json +48 -0
- package/package.json +92 -26
- package/proxy.conf.json +6 -0
- package/scripts/build.sh +2 -0
- package/tsconfig.json +29 -0
- package/turbo.json +18 -0
- package/bundles/openmrs-ngx-formentry.umd.js +0 -16613
- package/bundles/openmrs-ngx-formentry.umd.js.map +0 -1
- package/esm2015/components/appointments-overview/appointments-overview.component.js +0 -121
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper..module.js +0 -21
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper.component.js +0 -23
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper..module.js +0 -22
- package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +0 -192
- package/esm2015/components/date-time-picker/date-time-picker.component.js +0 -119
- package/esm2015/components/date-time-picker/date-time-picker.module.js +0 -47
- package/esm2015/components/date-time-picker/picker-modal/modal.component.js +0 -31
- package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +0 -125
- package/esm2015/components/file-upload/secure.pipe.js +0 -101
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +0 -80
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +0 -38
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-body.component.js +0 -149
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +0 -378
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +0 -348
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +0 -399
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.js +0 -62
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.module.js +0 -83
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +0 -96
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +0 -298
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.module.js +0 -27
- package/esm2015/components/ngx-remote-select/ngx-remote-select.component.js +0 -135
- package/esm2015/components/ngx-remote-select/ngx-remote-select.module.js +0 -21
- package/esm2015/components/ngx-tabset/components/ngx-tab-set.component.js +0 -76
- package/esm2015/components/ngx-tabset/components/tab.component.js +0 -37
- package/esm2015/components/number-input/number-input.component.js +0 -252
- package/esm2015/components/radio-button/radio.component.js +0 -102
- package/esm2015/components/select/select.component.js +0 -187
- package/esm2015/form-entry/error-renderer/error-renderer.component.js +0 -56
- package/esm2015/form-entry/form-factory/form-control.service.js +0 -119
- package/esm2015/form-entry/form-factory/form-node.js +0 -96
- package/esm2015/form-entry/form-factory/form.factory.js +0 -141
- package/esm2015/form-entry/form-factory/question.factory.js +0 -1001
- package/esm2015/form-entry/form-factory/validation.factory.js +0 -154
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +0 -270
- package/esm2015/form-entry/pipes/time-ago.pipe.js +0 -107
- package/esm2015/form-entry/utils/messages.js +0 -12
- package/esm2015/form-entry/value-adapters/diagnosis.adapter.js +0 -140
- package/esm2015/form-entry/value-adapters/encounter.adapter.js +0 -187
- package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +0 -536
- package/fesm2015/openmrs-ngx-formentry.js.map +0 -1
- package/form-entry/utils/messages.d.ts +0 -11
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/afe-control-type.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/afe-form-array.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/afe-form-control.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/afe-form-group.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/control-extensions.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/index.d.ts +0 -0
- /package/{abstract-controls-extension → dist/ngx-formentry/abstract-controls-extension}/value-change.listener.d.ts +0 -0
- /package/{change-tracking → dist/ngx-formentry/change-tracking}/control-relation.d.ts +0 -0
- /package/{change-tracking → dist/ngx-formentry/change-tracking}/control-relations.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/afe-ng-select.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/appointments-overview/appointments-overview.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/check-box/checkbox.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/check-box/checkbox.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/custom-component-wrapper/custom-component-wrapper.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/custom-control-wrapper/custom-control-wrapper.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/date-picker/date-picker.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/date-time-picker.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/index.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/picker-modal/modal.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/pipes/moment.pipe.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/date-time-picker/time-picker/time-picker.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/file-upload/file-upload.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/file-upload/file-upload.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/file-upload/secure.pipe.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/input/input.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/input/input.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/input/label.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/input/text-area.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/calendar-month-view.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/calendar-year-view.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/calendar.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker.animations.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time-picker.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/date-time.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/timer-box.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/date-time/timer.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/dialog/dialog-config.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/dialog/dialog-container.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/dialog/dialog-ref.class.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/dialog/dialog.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/dialog/dialog.service.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/utils/index.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-pick-datetime/lib/utils/object.utils.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-remote-select/ngx-remote-select.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-tabset/components/ngx-tab-set.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-tabset/components/tab.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-tabset/directives/hover-class.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/ngx-tabset/modules/ngx-tabset.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/number-input/number-input.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/number-input/number-input.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/number-input/number.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/radio-button/radio.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/radio-button/radio.module.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/select/optgroup.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/select/option.directive.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/select/select.component.d.ts +0 -0
- /package/{components → dist/ngx-formentry/components}/select/select.module.d.ts +0 -0
- /package/{esm2015/abstract-controls-extension/afe-control-type.js → dist/ngx-formentry/esm2020/abstract-controls-extension/afe-control-type.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/afe-form-array.js → dist/ngx-formentry/esm2020/abstract-controls-extension/afe-form-array.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/afe-form-control.js → dist/ngx-formentry/esm2020/abstract-controls-extension/afe-form-control.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/afe-form-group.js → dist/ngx-formentry/esm2020/abstract-controls-extension/afe-form-group.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/control-extensions.js → dist/ngx-formentry/esm2020/abstract-controls-extension/control-extensions.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/index.js → dist/ngx-formentry/esm2020/abstract-controls-extension/index.mjs} +0 -0
- /package/{esm2015/abstract-controls-extension/value-change.listener.js → dist/ngx-formentry/esm2020/abstract-controls-extension/value-change.listener.mjs} +0 -0
- /package/{esm2015/change-tracking/control-relation.js → dist/ngx-formentry/esm2020/change-tracking/control-relation.mjs} +0 -0
- /package/{esm2015/change-tracking/control-relations.js → dist/ngx-formentry/esm2020/change-tracking/control-relations.mjs} +0 -0
- /package/{esm2015/components/date-time-picker/index.js → dist/ngx-formentry/esm2020/components/date-time-picker/index.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/dialog/dialog-config.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/dialog/dialog-config.class.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/utils/index.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/utils/index.mjs} +0 -0
- /package/{esm2015/components/ngx-pick-datetime/lib/utils/object.utils.js → dist/ngx-formentry/esm2020/components/ngx-pick-datetime/lib/utils/object.utils.mjs} +0 -0
- /package/{esm2015/form-entry/control-alerts/alert-helpers.js → dist/ngx-formentry/esm2020/form-entry/control-alerts/alert-helpers.mjs} +0 -0
- /package/{esm2015/form-entry/control-alerts/can-generate-alert.js → dist/ngx-formentry/esm2020/form-entry/control-alerts/can-generate-alert.mjs} +0 -0
- /package/{esm2015/form-entry/control-calculators/can-calculate.js → dist/ngx-formentry/esm2020/form-entry/control-calculators/can-calculate.mjs} +0 -0
- /package/{esm2015/form-entry/control-hiders-disablers/can-disable.js → dist/ngx-formentry/esm2020/form-entry/control-hiders-disablers/can-disable.mjs} +0 -0
- /package/{esm2015/form-entry/control-hiders-disablers/can-hide.js → dist/ngx-formentry/esm2020/form-entry/control-hiders-disablers/can-hide.mjs} +0 -0
- /package/{esm2015/form-entry/control-hiders-disablers/disabler-helper.js → dist/ngx-formentry/esm2020/form-entry/control-hiders-disablers/disabler-helper.mjs} +0 -0
- /package/{esm2015/form-entry/control-hiders-disablers/hider-helpers.js → dist/ngx-formentry/esm2020/form-entry/control-hiders-disablers/hider-helpers.mjs} +0 -0
- /package/{esm2015/form-entry/data-sources/dummy-data-source.js → dist/ngx-formentry/esm2020/form-entry/data-sources/dummy-data-source.mjs} +0 -0
- /package/{esm2015/form-entry/directives/collapse-animations.js → dist/ngx-formentry/esm2020/form-entry/directives/collapse-animations.mjs} +0 -0
- /package/{esm2015/form-entry/form-factory/form.js → dist/ngx-formentry/esm2020/form-entry/form-factory/form.mjs} +0 -0
- /package/{esm2015/form-entry/form-factory/index.js → dist/ngx-formentry/esm2020/form-entry/form-factory/index.mjs} +0 -0
- /package/{esm2015/form-entry/helpers/risk-dataset-table.js → dist/ngx-formentry/esm2020/form-entry/helpers/risk-dataset-table.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/checkbox.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/checkbox.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/conditional-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/conditional-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/custom-control-question.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/custom-control-question.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/date-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/date-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/date-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/date-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/diagnosis-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/diagnosis-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/file-upload-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/file-upload-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/group-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/group-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/base-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/base-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/checkbox-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/checkbox-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/data-source.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/data-source.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/date-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/date-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/diagnosis-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/diagnosis-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/file-upload-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/file-upload-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/group-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/group-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/multi-select-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/multi-select-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/nested-questions.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/nested-questions.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/radio-button-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/radio-button-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/repeating-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/repeating-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/select-option.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/select-option.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/select-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/select-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/test-order-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/test-order-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/text-area-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/text-area-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/text-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/text-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/interfaces/ui-select-question-options.js → dist/ngx-formentry/esm2020/form-entry/question-models/interfaces/ui-select-question-options.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/js-expression-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/js-expression-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/max-length-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/max-length-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/max-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/max-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/min-length-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/min-length-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/min-validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/min-validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/models.js → dist/ngx-formentry/esm2020/form-entry/question-models/models.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/multi-select-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/multi-select-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/pair.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/pair.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/question-base.js → dist/ngx-formentry/esm2020/form-entry/question-models/question-base.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/radio-button.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/radio-button.model.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/rendering-type.js → dist/ngx-formentry/esm2020/form-entry/question-models/rendering-type.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/repeating-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/repeating-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/select-option.js → dist/ngx-formentry/esm2020/form-entry/question-models/select-option.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/select-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/select-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/test-order-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/test-order-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/text-area-input-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/text-area-input-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/text-input-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/text-input-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/ui-select-question.js → dist/ngx-formentry/esm2020/form-entry/question-models/ui-select-question.mjs} +0 -0
- /package/{esm2015/form-entry/question-models/validation.model.js → dist/ngx-formentry/esm2020/form-entry/question-models/validation.model.mjs} +0 -0
- /package/{esm2015/form-entry/validators/conditional-answered.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/conditional-answered.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/conditional-required.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/conditional-required.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/date.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/date.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/future-date-restriction.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/future-date-restriction.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/js-expression.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/js-expression.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/max-date.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/max-date.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/max-length.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/max-length.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/max.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/max.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/min-date.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/min-date.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/min-length.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/min-length.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/min.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/min.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/required.validator.js → dist/ngx-formentry/esm2020/form-entry/validators/required.validator.mjs} +0 -0
- /package/{esm2015/form-entry/validators/validations.js → dist/ngx-formentry/esm2020/form-entry/validators/validations.mjs} +0 -0
- /package/{esm2015/form-entry/value-adapters/value.adapter.js → dist/ngx-formentry/esm2020/form-entry/value-adapters/value.adapter.mjs} +0 -0
- /package/{esm2015/lib/index.js → dist/ngx-formentry/esm2020/lib/index.mjs} +0 -0
- /package/{esm2015/openmrs-ngx-formentry.js → dist/ngx-formentry/esm2020/openmrs-ngx-formentry.mjs} +0 -0
- /package/{esm2015/public_api.js → dist/ngx-formentry/esm2020/public_api.mjs} +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-alerts/alert-helpers.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-alerts/can-generate-alert.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-calculators/can-calculate.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-hiders-disablers/can-disable.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-hiders-disablers/can-hide.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-hiders-disablers/disabler-helper.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/control-hiders-disablers/hider-helpers.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/data-sources/data-sources.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/data-sources/dummy-data-source.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/directives/collapse-animations.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/directives/collapse.directive.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/directives/historical-value.directive.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/error-renderer/error-renderer.component.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/expression-runner/expression-runner.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-entry.module.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/control-relations.factory.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/form-control.service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/form.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/hiders-disablers.factory.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/index.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/question.factory.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-factory/show-messages.factory.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/form-renderer/form-renderer.component.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/helpers/historical-expression-helper-service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/helpers/historical-field-helper-service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/helpers/js-expression-helper.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/helpers/risk-dataset-table.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/checkbox.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/conditional-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/custom-control-question.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/date-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/date-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/diagnosis-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/file-upload-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/group-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/base-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/checkbox-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/data-source.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/date-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/diagnosis-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/file-upload-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/group-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/multi-select-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/nested-questions.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/radio-button-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/repeating-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/select-option.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/select-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/test-order-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/text-area-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/text-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/interfaces/ui-select-question-options.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/js-expression-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/max-length-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/max-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/min-length-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/min-validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/models.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/multi-select-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/pair.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/question-base.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/radio-button.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/rendering-type.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/repeating-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/select-option.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/select-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/test-order-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/text-area-input-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/text-input-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/ui-select-question.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/question-models/validation.model.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/services/debug-mode.service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/services/form-errors.service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/services/form-schema-compiler.service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/services/historical-encounter-data.service.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/conditional-answered.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/conditional-required.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/date.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/future-date-restriction.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/js-expression.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/max-date.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/max-length.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/max.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/min-date.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/min-length.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/min.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/required.validator.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/validators/validations.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/diagnosis.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/encounter.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/obs-adapter-helper.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/obs.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/order.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/patient-identifier.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/person-attribute.adapter.d.ts +0 -0
- /package/{form-entry → dist/ngx-formentry/form-entry}/value-adapters/value.adapter.d.ts +0 -0
- /package/{lib → dist/ngx-formentry/lib}/index.d.ts +0 -0
- /package/{openmrs-ngx-formentry.d.ts → dist/ngx-formentry/openmrs-ngx-formentry.d.ts} +0 -0
- /package/{public_api.d.ts → dist/ngx-formentry/public_api.d.ts} +0 -0
- /package/{shared.module.d.ts → dist/ngx-formentry/shared.module.d.ts} +0 -0
- /package/{styles → dist/ngx-formentry/styles}/ngx-formentry.css +0 -0
- /package/{styles → dist/ngx-formentry/styles}/picker.min.css +0 -0
|
File without changes
|
package/README.md
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
# AMPATH POC Formentry
|
|
2
|
+
|
|
3
|
+
Ampath forms is a forms engine that is inspired and built to work with OpenMRS and its encounter/obs model. That being said it tries not to assume that it will be used with an OpenMRS context and does not take responsibility for fetching any dynamic data from OpenMRS that responsibility should be handled by the consuming application by providing data sources to the engine
|
|
4
|
+
|
|
5
|
+
The form engine is built on top Angular forms and provides extensions to support our specific data collection requirements. A good place to start for you to understand Ampath forms is the Angular tutorial on [building dynamic forms](https://angular.io/guide/dynamic-form) (We highly recommend that you work through the tutorial)
|
|
6
|
+
|
|
7
|
+
## Main Concepts
|
|
8
|
+
|
|
9
|
+
### Question Model
|
|
10
|
+
|
|
11
|
+
The question model is lifted from the Angular tutorial and adapted to support our form schema.
|
|
12
|
+
|
|
13
|
+
### Datasources
|
|
14
|
+
|
|
15
|
+
The concept of datasources is an attempt at eliminating need for the library to know about the OpenMRS backend for cases where you need to ;
|
|
16
|
+
|
|
17
|
+
- Resolve uuid to labels by hitting an OpenMRS endpoint (Mostly used for values which provide concept uuids and allows us fetch the label from a remote endpoint)
|
|
18
|
+
- Fetch options for a select drop down by searching via rest (Used for concepts and drugs)
|
|
19
|
+
- Upload documents and relate them to an encounter(Basically allows us to upload images and then set the url as an obs value which may not be ideal)
|
|
20
|
+
|
|
21
|
+
The engine does not care about where the data sources get their data, only that they return observables which the engine can subscribe to for the data it needs. Which means you can provide dummy observables to the engine and it will happily consume them (That is how the example consumer app in the repository works without having an OpenMRS backend)
|
|
22
|
+
|
|
23
|
+
### Expression runner
|
|
24
|
+
|
|
25
|
+
The expression run is basically that it takes in an expression , runs it and returns true or false. It is used for hiding/showing , disabling/enabling controls and in running complex validation logic.
|
|
26
|
+
|
|
27
|
+
### Control Relations
|
|
28
|
+
|
|
29
|
+
This is an important component that allows validation and skip logic. It is done after the question model has been transformed into an angular form schema and basically just goes through each control and identifies which fields cares about subscribes to their changes.
|
|
30
|
+
|
|
31
|
+
### Validation and Skip logic
|
|
32
|
+
|
|
33
|
+
We use Javascript expressions through the expression runner to achieve complex cross field validations and skip logic.
|
|
34
|
+
|
|
35
|
+
### Calculations
|
|
36
|
+
|
|
37
|
+
The engine contains a suite of helpers to allow fields to calculate their values based on the values of other field this is also dependant on the expression runner.
|
|
38
|
+
|
|
39
|
+
### Control Interfaces
|
|
40
|
+
|
|
41
|
+
CanHide - This is used in a control to provide an implementation for hiding a control
|
|
42
|
+
|
|
43
|
+
CanDisable - This is used in a control to provide an implementation for disabling a control
|
|
44
|
+
|
|
45
|
+
CanGenerateAlert - This is used in a control to provide an implementation for generating FYI alerts that won’t prevent you from saving the form
|
|
46
|
+
|
|
47
|
+
CanCalculate - This is used in a control to provide an implementation for calculating the value of the field base on other values in the form
|
|
48
|
+
|
|
49
|
+
### Custom Controls
|
|
50
|
+
|
|
51
|
+
Angular provides various controls for handling forms FormControl - for simple fields , FormGroup - grouped fields and FormArray for repeating fields. Afe\* controls are custom implementations of these fields to add some custom behaviour necessary for the form engine.
|
|
52
|
+
|
|
53
|
+
AfeFormControl
|
|
54
|
+
|
|
55
|
+
AfeFormGroup
|
|
56
|
+
|
|
57
|
+
AfeFormArray
|
|
58
|
+
|
|
59
|
+
### Custom Components
|
|
60
|
+
|
|
61
|
+
The form engine supports using custom widgets and controls. The widgets and controls are standards web components customized to work with the engine by implimeneting a set a of inputs.
|
|
62
|
+
|
|
63
|
+
The custom widgets take recieve this inputs
|
|
64
|
+
|
|
65
|
+
- `config` which provides the the widgets configs
|
|
66
|
+
- `dark` which will be used to toggle the them to match the engine when this is true the widget should have a background color of `#f4f4f4` and `#ffffff` otherwise
|
|
67
|
+
|
|
68
|
+
Custom Controls will receive
|
|
69
|
+
|
|
70
|
+
- `question` - Json of the question as defined in the schema
|
|
71
|
+
- `value` - current value of the control
|
|
72
|
+
- `disabled` - disabled state of the control
|
|
73
|
+
- `config` - the config of the control
|
|
74
|
+
|
|
75
|
+
When developing the engine expects custom components to be served at localhost:8000 see example components at https://github.com/enyachoke/afe-ref-custom-components. Otherwise project will complain about the proxy
|
|
76
|
+
|
|
77
|
+
`[HPM] Error occurred while trying to proxy request /lib/web-components.bundled.js?module from localhost:4200 to http://localhost:8000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)`
|
|
78
|
+
|
|
79
|
+
Which is should be fine if your are not working on custom components (Make sure to not include them in the schema)
|
|
80
|
+
|
|
81
|
+
### Developing
|
|
82
|
+
|
|
83
|
+
`$ git clone https://github.com/AMPATH/ngx-openmrs-formentry`
|
|
84
|
+
|
|
85
|
+
`$ cd ngx-openmrs-formentry`
|
|
86
|
+
|
|
87
|
+
`$ yarn`
|
|
88
|
+
|
|
89
|
+
`$ yarn start`
|
|
90
|
+
|
|
91
|
+
### Build the library by running:
|
|
92
|
+
|
|
93
|
+
`$ yarn run build:lib`
|
|
94
|
+
|
|
95
|
+
### Linking ngx-formentry with form-entry-app in patient chart
|
|
96
|
+
|
|
97
|
+
While you have your patient chart and ngx-formentry repo open locally,
|
|
98
|
+
Build the ngx-formentry project by
|
|
99
|
+
running `$yarn run build:lib`
|
|
100
|
+
|
|
101
|
+
Then cd into the `dist/ngx-formentry` directory created from the previous step.
|
|
102
|
+
Run `$ pwd | pbcopy` to copy that path.
|
|
103
|
+
|
|
104
|
+
On the patient chart repo cd into `esm-form-entry-app`
|
|
105
|
+
|
|
106
|
+
While there, run `yarn link` + the path you copied earlier e.g `/Users/hadijahkyampeire/Desktop/openmrs-ngx-formentry/dist/ngx-formentry`.
|
|
107
|
+
|
|
108
|
+
The above command should install the local copy of the form entry library into the `esm-form-entry-app` package. You can check that this worked by opening the `package.json` manifest file entry for `@openmrs/ngx-formentry`.
|
|
109
|
+
|
|
110
|
+
When you start the form entry app, it should now be using the local copy of `openmrs-ngx-formentry`
|
|
111
|
+
|
|
112
|
+
The key thing to note is that an override for the form entry import map URL is already set up on the dev server.
|
|
113
|
+
|
|
114
|
+
Launch the patient chart and then you will be able to test your local changes.
|
|
115
|
+
|
|
116
|
+
Refer to this doc for detailed information [Ampath Forms docs](https://ampath-forms.vercel.app/docs/developer-guide/run-form-engine-in-openmrs3)
|
|
117
|
+
|
|
118
|
+
### Usage
|
|
119
|
+
|
|
120
|
+
`app.component.ts`
|
|
121
|
+
|
|
122
|
+
```Javascript
|
|
123
|
+
import { Component, OnInit } from '@angular/core';
|
|
124
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
125
|
+
import { FormGroup } from '@angular/forms';
|
|
126
|
+
|
|
127
|
+
import { Subscriber } from 'rxjs';
|
|
128
|
+
import { Observable, Subject, of } from 'rxjs';
|
|
129
|
+
|
|
130
|
+
import {
|
|
131
|
+
QuestionFactory,
|
|
132
|
+
Form,
|
|
133
|
+
FormFactory,
|
|
134
|
+
ObsValueAdapter,
|
|
135
|
+
OrderValueAdapter,
|
|
136
|
+
EncounterAdapter,
|
|
137
|
+
DataSources,
|
|
138
|
+
FormErrorsService,
|
|
139
|
+
EncounterPdfViewerService
|
|
140
|
+
} from '../../dist/ngx-formentry';
|
|
141
|
+
import { MockObs } from './mock/mock-obs';
|
|
142
|
+
|
|
143
|
+
const adultForm = require('./adult-1.4.json');
|
|
144
|
+
const adultFormObs = require('./mock/obs.json');
|
|
145
|
+
const formOrdersPayload = require('./mock/orders.json');
|
|
146
|
+
@Component({
|
|
147
|
+
selector: 'app-root',
|
|
148
|
+
templateUrl: './app.component.html',
|
|
149
|
+
styleUrls: ['./app.component.css']
|
|
150
|
+
})
|
|
151
|
+
export class AppComponent implements OnInit {
|
|
152
|
+
data: any;
|
|
153
|
+
schema: any;
|
|
154
|
+
sections: {} = {};
|
|
155
|
+
formGroup: FormGroup;
|
|
156
|
+
activeTab = 0;
|
|
157
|
+
form: Form;
|
|
158
|
+
stack = [];
|
|
159
|
+
encounterObject = adultFormObs;
|
|
160
|
+
showingEncounterViewer = false;
|
|
161
|
+
public header = 'UMD Demo';
|
|
162
|
+
|
|
163
|
+
constructor(
|
|
164
|
+
private questionFactory: QuestionFactory,
|
|
165
|
+
private formFactory: FormFactory,
|
|
166
|
+
private obsValueAdapater: ObsValueAdapter,
|
|
167
|
+
private orderAdaptor: OrderValueAdapter,
|
|
168
|
+
private encAdapter: EncounterAdapter,
|
|
169
|
+
private dataSources: DataSources,
|
|
170
|
+
private encounterPdfViewerService: EncounterPdfViewerService,
|
|
171
|
+
private formErrorsService: FormErrorsService,
|
|
172
|
+
private http: HttpClient
|
|
173
|
+
) {
|
|
174
|
+
this.schema = adultForm;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
ngOnInit() {
|
|
178
|
+
this.dataSources.registerDataSource('drug', {
|
|
179
|
+
searchOptions: this.sampleSearch,
|
|
180
|
+
resolveSelectedValue: this.sampleResolve
|
|
181
|
+
});
|
|
182
|
+
this.dataSources.registerDataSource('personAttribute', {
|
|
183
|
+
searchOptions: this.sampleSearch,
|
|
184
|
+
resolveSelectedValue: this.sampleResolve
|
|
185
|
+
});
|
|
186
|
+
this.dataSources.registerDataSource('problem', {
|
|
187
|
+
searchOptions: this.sampleSearch,
|
|
188
|
+
resolveSelectedValue: this.sampleResolve
|
|
189
|
+
});
|
|
190
|
+
this.dataSources.registerDataSource('location', {
|
|
191
|
+
searchOptions: this.sampleSearch,
|
|
192
|
+
resolveSelectedValue: this.sampleResolve
|
|
193
|
+
});
|
|
194
|
+
this.dataSources.registerDataSource('provider', {
|
|
195
|
+
searchOptions: this.sampleSearch,
|
|
196
|
+
resolveSelectedValue: this.sampleResolve
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
const ds = {
|
|
200
|
+
dataSourceOptions: { concept: undefined },
|
|
201
|
+
searchOptions: (text?: string) => {
|
|
202
|
+
if (ds.dataSourceOptions && ds.dataSourceOptions.concept) {
|
|
203
|
+
const items: Array<any> = [
|
|
204
|
+
{ id: 1, text: 'Stage 1 Symptom' },
|
|
205
|
+
{ id: 2, text: 'Stage 2 Symptom' }
|
|
206
|
+
];
|
|
207
|
+
return Observable.create((observer: Subject<any>) => {
|
|
208
|
+
setTimeout(() => {
|
|
209
|
+
observer.next(items);
|
|
210
|
+
}, 1000);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
resolveSelectedValue: (key: string) => {
|
|
216
|
+
if (ds.dataSourceOptions && ds.dataSourceOptions.concept) {
|
|
217
|
+
const item = { id: 1, text: 'Stage 1 Symptom' };
|
|
218
|
+
return Observable.create((observer: Subject<any>) => {
|
|
219
|
+
setTimeout(() => {
|
|
220
|
+
observer.next(item);
|
|
221
|
+
}, 1000);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
this.dataSources.registerDataSource('conceptAnswers', ds);
|
|
228
|
+
|
|
229
|
+
const obs = new MockObs();
|
|
230
|
+
this.dataSources.registerDataSource('rawPrevEnc', obs.getObs());
|
|
231
|
+
|
|
232
|
+
this.dataSources.registerDataSource('patient', { sex: 'M' }, true);
|
|
233
|
+
|
|
234
|
+
this.dataSources.registerDataSource('patientInfo', {
|
|
235
|
+
name: 'Test Patient',
|
|
236
|
+
age: '37',
|
|
237
|
+
birthdate: '7/7/1982',
|
|
238
|
+
mui: '447062073-5',
|
|
239
|
+
nid: '1234567'
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
this.dataSources.registerDataSource('file', {
|
|
243
|
+
fileUpload: (data) => {
|
|
244
|
+
return of({ image: 'https://unsplash.it/1040/720' });
|
|
245
|
+
},
|
|
246
|
+
fetchFile: (url) => {
|
|
247
|
+
return new Observable((observer: Subscriber<any>) => {
|
|
248
|
+
let objectUrl: string = null;
|
|
249
|
+
const headers = new HttpHeaders({
|
|
250
|
+
Accept: 'image/png,image/jpeg,image/gif,application/pdf'
|
|
251
|
+
});
|
|
252
|
+
this.http
|
|
253
|
+
.get('https://unsplash.it/1040/720', {
|
|
254
|
+
headers,
|
|
255
|
+
responseType: 'json'
|
|
256
|
+
})
|
|
257
|
+
.subscribe((res: any) => {
|
|
258
|
+
const blob = new Blob(res.body);
|
|
259
|
+
objectUrl = URL.createObjectURL(blob);
|
|
260
|
+
observer.next(objectUrl);
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
return () => {
|
|
264
|
+
if (objectUrl) {
|
|
265
|
+
URL.revokeObjectURL(objectUrl);
|
|
266
|
+
objectUrl = null;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
// Create form
|
|
274
|
+
this.createForm();
|
|
275
|
+
|
|
276
|
+
// Set encounter, obs, orders
|
|
277
|
+
adultFormObs.orders = formOrdersPayload.orders;
|
|
278
|
+
this.encAdapter.populateForm(this.form, adultFormObs);
|
|
279
|
+
|
|
280
|
+
this.setUpCascadeSelectForWHOStaging();
|
|
281
|
+
|
|
282
|
+
// Alternative is to set individually for obs and orders as show below
|
|
283
|
+
// // Set obs
|
|
284
|
+
// this.obsValueAdapater.populateForm(this.form, adultFormObs.obs);
|
|
285
|
+
|
|
286
|
+
// // Set orders
|
|
287
|
+
// this.orderAdaptor.populateForm(this.form, formOrdersPayload);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
public setUpCascadeSelectForWHOStaging() {
|
|
291
|
+
const subject = new Subject();
|
|
292
|
+
const source = this.dataSources.dataSources['conceptAnswers'];
|
|
293
|
+
source.dataFromSourceChanged = subject.asObservable();
|
|
294
|
+
|
|
295
|
+
const whoStageQuestion = this.form.searchNodeByQuestionId(
|
|
296
|
+
'adultWHOStage'
|
|
297
|
+
)[0];
|
|
298
|
+
if (whoStageQuestion) {
|
|
299
|
+
whoStageQuestion.control.valueChanges.subscribe((val) => {
|
|
300
|
+
if (source.dataFromSourceChanged) {
|
|
301
|
+
if (val === 'a89b2606-1350-11df-a1f1-0026b9348838') {
|
|
302
|
+
subject.next([
|
|
303
|
+
{ value: 3, label: 'Stage 3 Symptom' },
|
|
304
|
+
{ value: 4, label: 'Stage 4 Symptom' }
|
|
305
|
+
]);
|
|
306
|
+
} else {
|
|
307
|
+
subject.next([
|
|
308
|
+
{ value: 5, label: 'Stage 5 Symptom' },
|
|
309
|
+
{ value: 6, label: 'Stage 6 Symptom' }
|
|
310
|
+
]);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
public getSectionData(sectionId) {
|
|
318
|
+
let data = {};
|
|
319
|
+
data = this.sections[sectionId];
|
|
320
|
+
return data;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
public clickTab(tabNumber) {
|
|
324
|
+
this.activeTab = tabNumber;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
public createForm() {
|
|
328
|
+
this.form = this.formFactory.createForm(
|
|
329
|
+
this.schema,
|
|
330
|
+
this.dataSources.dataSources
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
public sampleResolve(): Observable<any> {
|
|
335
|
+
const item = { value: '1', label: 'Art3mis' };
|
|
336
|
+
return Observable.create((observer: Subject<any>) => {
|
|
337
|
+
setTimeout(() => {
|
|
338
|
+
observer.next(item);
|
|
339
|
+
}, 1000);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
public sampleSearch(): Observable<any> {
|
|
344
|
+
const items: Array<any> = [
|
|
345
|
+
{ value: '0', label: 'Aech' },
|
|
346
|
+
{ value: '5b6e58ea-1359-11df-a1f1-0026b9348838', label: 'Art3mis' },
|
|
347
|
+
{ value: '2', label: 'Daito' },
|
|
348
|
+
{ value: '3', label: 'Parzival' },
|
|
349
|
+
{ value: '4', label: 'Shoto' }
|
|
350
|
+
];
|
|
351
|
+
|
|
352
|
+
return Observable.create((observer: Subject<any>) => {
|
|
353
|
+
setTimeout(() => {
|
|
354
|
+
observer.next(items);
|
|
355
|
+
}, 1000);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
public onSubmit($event) {
|
|
360
|
+
$event.preventDefault();
|
|
361
|
+
|
|
362
|
+
// Set valueProcessingInfo
|
|
363
|
+
this.form.valueProcessingInfo = {
|
|
364
|
+
patientUuid: 'patientUuid',
|
|
365
|
+
visitUuid: 'visitUuid',
|
|
366
|
+
encounterTypeUuid: 'encounterTypeUuid',
|
|
367
|
+
formUuid: 'formUuid',
|
|
368
|
+
encounterUuid: 'encounterUuid',
|
|
369
|
+
providerUuid: 'providerUuid',
|
|
370
|
+
utcOffset: '+0300'
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
if (this.form.valid) {
|
|
374
|
+
this.form.showErrors = false;
|
|
375
|
+
const payload = this.encAdapter.generateFormPayload(this.form);
|
|
376
|
+
|
|
377
|
+
// Alternative is to populate for each as shown below
|
|
378
|
+
// // generate obs payload
|
|
379
|
+
// let payload = this.obsValueAdapater.generateFormPayload(this.form);
|
|
380
|
+
|
|
381
|
+
// // generate orders payload
|
|
382
|
+
// let ordersPayload = this.orderAdaptor.generateFormPayload(this.form);
|
|
383
|
+
} else {
|
|
384
|
+
this.form.showErrors = true;
|
|
385
|
+
this.form.markInvalidControls(this.form.rootNode);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
`app.component.html`
|
|
393
|
+
|
|
394
|
+
```html
|
|
395
|
+
<div *ngIf="form && form.rootNode">
|
|
396
|
+
<form [formGroup]="form.rootNode.control">
|
|
397
|
+
<ofe-form-renderer
|
|
398
|
+
(onAction)="actionClicked($event)"
|
|
399
|
+
[node]="form.rootNode"
|
|
400
|
+
></ofe-form-renderer>
|
|
401
|
+
</form>
|
|
402
|
+
</div>
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
See `src/app/adult-1.4.json` for and `src/app/mock/obs.json` for sample encounter payload
|
|
406
|
+
|
|
407
|
+
### To publish:
|
|
408
|
+
|
|
409
|
+
Update the version in both of the `package.json` files
|
|
410
|
+
|
|
411
|
+
`$ git add -f dist`
|
|
412
|
+
|
|
413
|
+
`$ git commit -m 'Bump <Version>'`
|
|
414
|
+
|
|
415
|
+
`$ git tag <Version>`
|
|
416
|
+
|
|
417
|
+
Reset branch so you don't commit the dist to the src repository
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
$ git reset HEAD~1 --hard
|
|
422
|
+
|
|
423
|
+
$ git checkout <version tag>
|
|
424
|
+
|
|
425
|
+
$ npm login
|
|
426
|
+
|
|
427
|
+
$ npm publish
|
|
428
|
+
|
|
429
|
+
```
|
package/angular.json
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"cli": {
|
|
4
|
+
"analytics": false,
|
|
5
|
+
"defaultCollection": "@angular-eslint/schematics",
|
|
6
|
+
"packageManager": "yarn"
|
|
7
|
+
},
|
|
8
|
+
"version": 1,
|
|
9
|
+
"newProjectRoot": "projects",
|
|
10
|
+
"projects": {
|
|
11
|
+
"ngx-openmrs-formentry": {
|
|
12
|
+
"root": "",
|
|
13
|
+
"sourceRoot": "src",
|
|
14
|
+
"projectType": "application",
|
|
15
|
+
"prefix": "app",
|
|
16
|
+
"schematics": {},
|
|
17
|
+
"architect": {
|
|
18
|
+
"build": {
|
|
19
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
20
|
+
"options": {
|
|
21
|
+
"allowedCommonJsDependencies": ["core-js", "raf"],
|
|
22
|
+
"outputPath": "dist/ngx-openmrs-formentry",
|
|
23
|
+
"index": "src/index.html",
|
|
24
|
+
"main": "src/main.ts",
|
|
25
|
+
"polyfills": "src/polyfills.ts",
|
|
26
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
27
|
+
"assets": ["src/favicon.ico", "src/assets"],
|
|
28
|
+
"styles": [
|
|
29
|
+
"src/styles.scss",
|
|
30
|
+
"projects/ngx-formentry/styles/ngx-formentry.css"
|
|
31
|
+
],
|
|
32
|
+
"stylePreprocessorOptions": {
|
|
33
|
+
"includePaths": ["projects/ngx-formentry/styles", "dist"]
|
|
34
|
+
},
|
|
35
|
+
"scripts": [],
|
|
36
|
+
"vendorChunk": true,
|
|
37
|
+
"extractLicenses": false,
|
|
38
|
+
"buildOptimizer": false,
|
|
39
|
+
"sourceMap": true,
|
|
40
|
+
"optimization": false,
|
|
41
|
+
"namedChunks": true
|
|
42
|
+
},
|
|
43
|
+
"configurations": {
|
|
44
|
+
"production": {
|
|
45
|
+
"budgets": [
|
|
46
|
+
{
|
|
47
|
+
"type": "anyComponentStyle",
|
|
48
|
+
"maximumWarning": "6kb"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"fileReplacements": [
|
|
52
|
+
{
|
|
53
|
+
"replace": "src/environments/environment.ts",
|
|
54
|
+
"with": "src/environments/environment.prod.ts"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"optimization": true,
|
|
58
|
+
"outputHashing": "all",
|
|
59
|
+
"sourceMap": false,
|
|
60
|
+
"namedChunks": false,
|
|
61
|
+
"extractLicenses": true,
|
|
62
|
+
"vendorChunk": false,
|
|
63
|
+
"buildOptimizer": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"defaultConfiguration": ""
|
|
67
|
+
},
|
|
68
|
+
"serve": {
|
|
69
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
70
|
+
"options": {
|
|
71
|
+
"browserTarget": "ngx-openmrs-formentry:build"
|
|
72
|
+
},
|
|
73
|
+
"configurations": {
|
|
74
|
+
"production": {
|
|
75
|
+
"browserTarget": "ngx-openmrs-formentry:build:production"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"extract-i18n": {
|
|
80
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
81
|
+
"options": {
|
|
82
|
+
"browserTarget": "ngx-openmrs-formentry:build"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"test": {
|
|
86
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
87
|
+
"options": {
|
|
88
|
+
"main": "src/test.ts",
|
|
89
|
+
"polyfills": "src/polyfills.ts",
|
|
90
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
91
|
+
"karmaConfig": "src/karma.conf.js",
|
|
92
|
+
"styles": ["src/styles.scss"],
|
|
93
|
+
"scripts": ["node_modules/systemjs/dist/system.min.js"],
|
|
94
|
+
"assets": ["src/favicon.ico", "src/assets"]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"lint": {
|
|
98
|
+
"builder": "@angular-eslint/builder:lint",
|
|
99
|
+
"options": {
|
|
100
|
+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"ngx-openmrs-formentry-e2e": {
|
|
106
|
+
"root": "e2e/",
|
|
107
|
+
"projectType": "application",
|
|
108
|
+
"architect": {
|
|
109
|
+
"e2e": {
|
|
110
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
111
|
+
"options": {
|
|
112
|
+
"protractorConfig": "e2e/protractor.conf.js",
|
|
113
|
+
"devServerTarget": "ngx-openmrs-formentry:serve"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"lint": {
|
|
117
|
+
"builder": "@angular-eslint/builder:lint",
|
|
118
|
+
"options": {
|
|
119
|
+
"lintFilePatterns": ["e2e//**/*.ts", "e2e//**/*.html"]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"ngx-formentry": {
|
|
125
|
+
"root": "projects/ngx-formentry",
|
|
126
|
+
"sourceRoot": "projects/ngx-formentry/src",
|
|
127
|
+
"projectType": "library",
|
|
128
|
+
"prefix": "lib",
|
|
129
|
+
"architect": {
|
|
130
|
+
"build": {
|
|
131
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
132
|
+
"options": {
|
|
133
|
+
"tsConfig": "projects/ngx-formentry/tsconfig.lib.json",
|
|
134
|
+
"project": "projects/ngx-formentry/ng-package.json"
|
|
135
|
+
},
|
|
136
|
+
"configurations": {
|
|
137
|
+
"production": {
|
|
138
|
+
"project": "projects/ngx-formentry/ng-package.prod.json",
|
|
139
|
+
"tsConfig": "projects/ngx-formentry/tsconfig.lib.prod.json"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"test": {
|
|
144
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
145
|
+
"options": {
|
|
146
|
+
"main": "projects/ngx-formentry/src/test.ts",
|
|
147
|
+
"tsConfig": "projects/ngx-formentry/tsconfig.spec.json",
|
|
148
|
+
"karmaConfig": "projects/ngx-formentry/karma.conf.js"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"lint": {
|
|
152
|
+
"builder": "@angular-eslint/builder:lint",
|
|
153
|
+
"options": {
|
|
154
|
+
"lintFilePatterns": [
|
|
155
|
+
"projects/ngx-formentry/**/*.ts",
|
|
156
|
+
"projects/ngx-formentry/**/*.html"
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"defaultProject": "ngx-formentry"
|
|
164
|
+
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./custom-component-wrapper.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular-extensions/elements";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
5
6
|
export declare class CustomComponentWrapperModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomComponentWrapperModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomComponentWrapperModule, [typeof i1.CustomComponentWrapperComponent], [typeof i2.CommonModule, typeof i3.LazyElementsModule], [typeof i1.CustomComponentWrapperComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomComponentWrapperModule, [typeof i1.CustomComponentWrapperComponent], [typeof i2.CommonModule, typeof i3.LazyElementsModule, typeof i4.TranslateModule], [typeof i1.CustomComponentWrapperComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<CustomComponentWrapperModule>;
|
|
9
10
|
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./custom-control-wrapper.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "@angular-extensions/elements";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
6
7
|
export declare class CustomControlWrapperModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomControlWrapperModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomControlWrapperModule, [typeof i1.CustomControlWrapperComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.LazyElementsModule], [typeof i1.CustomControlWrapperComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomControlWrapperModule, [typeof i1.CustomControlWrapperComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.LazyElementsModule, typeof i5.TranslateModule], [typeof i1.CustomControlWrapperComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<CustomControlWrapperModule>;
|
|
10
11
|
}
|
package/{components → dist/ngx-formentry/components}/date-time-picker/date-time-picker.module.d.ts
RENAMED
|
@@ -6,8 +6,9 @@ import * as i4 from "./pipes/moment.pipe";
|
|
|
6
6
|
import * as i5 from "./date-time-picker.component";
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
8
8
|
import * as i7 from "@angular/forms";
|
|
9
|
+
import * as i8 from "@ngx-translate/core";
|
|
9
10
|
export declare class DateTimePickerModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimePickerModule, [typeof i1.DatePickerComponent, typeof i2.TimePickerComponent, typeof i3.ModalComponent, typeof i4.MomentPipe, typeof i5.DateTimePickerComponent], [typeof i6.CommonModule, typeof i7.FormsModule], [typeof i1.DatePickerComponent, typeof i2.TimePickerComponent, typeof i3.ModalComponent, typeof i4.MomentPipe, typeof i5.DateTimePickerComponent]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimePickerModule, [typeof i1.DatePickerComponent, typeof i2.TimePickerComponent, typeof i3.ModalComponent, typeof i4.MomentPipe, typeof i5.DateTimePickerComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.TranslateModule], [typeof i1.DatePickerComponent, typeof i2.TimePickerComponent, typeof i3.ModalComponent, typeof i4.MomentPipe, typeof i5.DateTimePickerComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateTimePickerModule>;
|
|
13
14
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "../ngx-pick-datetime/lib/date-time/date-time.module";
|
|
6
6
|
import * as i5 from "../ngx-pick-datetime/lib/date-time/adapter/native-date-time.module";
|
|
7
|
+
import * as i6 from "@ngx-translate/core";
|
|
7
8
|
export declare class NgxDateTimePickerModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDateTimePickerModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDateTimePickerModule, [typeof i1.NgxDatetimeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OwlDateTimeModule, typeof i5.OwlNativeDateTimeModule], [typeof i1.NgxDatetimeComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDateTimePickerModule, [typeof i1.NgxDatetimeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OwlDateTimeModule, typeof i5.OwlNativeDateTimeModule, typeof i6.TranslateModule], [typeof i1.NgxDatetimeComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxDateTimePickerModule>;
|
|
11
12
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
1
2
|
import { Subject } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class OwlDateTimeIntl {
|
|
5
|
+
translate: TranslateService;
|
|
6
|
+
constructor(translate: TranslateService);
|
|
4
7
|
/**
|
|
5
8
|
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
6
9
|
* components if the labels have changed after initialization.
|
|
@@ -35,13 +38,13 @@ export declare class OwlDateTimeIntl {
|
|
|
35
38
|
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
36
39
|
switchToMultiYearViewLabel: string;
|
|
37
40
|
/** A label for the cancel button */
|
|
38
|
-
cancelBtnLabel:
|
|
41
|
+
cancelBtnLabel: any;
|
|
39
42
|
/** A label for the set button */
|
|
40
|
-
setBtnLabel:
|
|
43
|
+
setBtnLabel: any;
|
|
41
44
|
/** A label for the range 'from' in picker info */
|
|
42
|
-
rangeFromLabel:
|
|
45
|
+
rangeFromLabel: any;
|
|
43
46
|
/** A label for the range 'to' in picker info */
|
|
44
|
-
rangeToLabel:
|
|
47
|
+
rangeToLabel: any;
|
|
45
48
|
/** A label for the hour12 button (AM) */
|
|
46
49
|
hour12AMLabel: string;
|
|
47
50
|
/** A label for the hour12 button (PM) */
|