@openmrs/ngx-formentry 3.0.1-pre.8
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/abstract-controls-extension/afe-control-type.d.ts +6 -0
- package/abstract-controls-extension/afe-form-array.d.ts +43 -0
- package/abstract-controls-extension/afe-form-control.d.ts +46 -0
- package/abstract-controls-extension/afe-form-group.d.ts +38 -0
- package/abstract-controls-extension/control-extensions.d.ts +4 -0
- package/abstract-controls-extension/index.d.ts +4 -0
- package/abstract-controls-extension/value-change.listener.d.ts +4 -0
- package/bundles/openmrs-ngx-formentry.umd.js +15020 -0
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -0
- package/bundles/openmrs-ngx-formentry.umd.min.js +2 -0
- package/bundles/openmrs-ngx-formentry.umd.min.js.map +1 -0
- package/change-tracking/control-relation.d.ts +12 -0
- package/change-tracking/control-relations.d.ts +12 -0
- package/components/afe-ng-select.component.d.ts +26 -0
- package/components/appointments-overview/appointments-overview.component.d.ts +15 -0
- package/components/check-box/checkbox.component.d.ts +16 -0
- package/components/check-box/checkbox.module.d.ts +2 -0
- package/components/custom-component-wrapper/custom-component-wrapper..module.d.ts +2 -0
- package/components/custom-component-wrapper/custom-component-wrapper.component.d.ts +11 -0
- package/components/custom-control-wrapper/custom-control-wrapper..module.d.ts +2 -0
- package/components/custom-control-wrapper/custom-control-wrapper.component.d.ts +25 -0
- package/components/date-time-picker/date-picker/date-picker.component.d.ts +42 -0
- package/components/date-time-picker/date-time-picker.component.d.ts +26 -0
- package/components/date-time-picker/date-time-picker.module.d.ts +5 -0
- package/components/date-time-picker/picker-modal/modal.component.d.ts +10 -0
- package/components/date-time-picker/pipes/moment.pipe.d.ts +8 -0
- package/components/date-time-picker/time-picker/time-picker.component.d.ts +29 -0
- package/components/file-upload/file-upload.component.d.ts +26 -0
- package/components/file-upload/file-upload.module.d.ts +2 -0
- package/components/file-upload/secure.pipe.d.ts +23 -0
- package/components/input/input.directive.d.ts +28 -0
- package/components/input/input.module.d.ts +2 -0
- package/components/input/label.component.d.ts +87 -0
- package/components/input/text-area.directive.d.ts +21 -0
- package/components/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +17 -0
- package/components/ngx-datetime-picker/ngx-datetime-picker.module.d.ts +5 -0
- package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.d.ts +189 -0
- package/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.d.ts +15 -0
- package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.d.ts +73 -0
- package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.d.ts +5 -0
- package/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.d.ts +7 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +77 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.d.ts +139 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.d.ts +109 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.d.ts +120 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar.component.d.ts +141 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +90 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +122 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +152 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.d.ts +51 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.d.ts +21 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.d.ts +8 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.d.ts +157 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time.class.d.ts +86 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time.module.d.ts +5 -0
- package/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.d.ts +7 -0
- package/components/ngx-pick-datetime/lib/date-time/timer-box.component.d.ts +35 -0
- package/components/ngx-pick-datetime/lib/date-time/timer.component.d.ts +129 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog-config.class.d.ts +93 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog-container.component.d.ts +56 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.d.ts +49 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog.module.d.ts +5 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog.service.d.ts +70 -0
- package/components/ngx-pick-datetime/lib/utils/index.d.ts +4 -0
- package/components/ngx-pick-datetime/lib/utils/object.utils.d.ts +11 -0
- package/components/ngx-remote-select/ngx-remote-select.component.d.ts +37 -0
- package/components/ngx-remote-select/ngx-remote-select.module.d.ts +2 -0
- package/components/ngx-tabset/components/tab-set.d.ts +16 -0
- package/components/ngx-tabset/components/tab.d.ts +10 -0
- package/components/ngx-tabset/directives/hover-class.directive.d.ts +8 -0
- package/components/ngx-tabset/modules/ngx-tabset.module.d.ts +11 -0
- package/components/number-input/number-input.component.d.ts +148 -0
- package/components/number-input/number-input.module.d.ts +2 -0
- package/components/select/optgroup.directive.d.ts +3 -0
- package/components/select/option.directive.d.ts +3 -0
- package/components/select/select.component.d.ts +112 -0
- package/components/select/select.module.d.ts +2 -0
- package/esm2015/abstract-controls-extension/afe-control-type.js +8 -0
- package/esm2015/abstract-controls-extension/afe-form-array.js +85 -0
- package/esm2015/abstract-controls-extension/afe-form-control.js +88 -0
- package/esm2015/abstract-controls-extension/afe-form-group.js +61 -0
- package/esm2015/abstract-controls-extension/control-extensions.js +5 -0
- package/esm2015/abstract-controls-extension/index.js +5 -0
- package/esm2015/abstract-controls-extension/value-change.listener.js +2 -0
- package/esm2015/change-tracking/control-relation.js +44 -0
- package/esm2015/change-tracking/control-relations.js +32 -0
- package/esm2015/components/afe-ng-select.component.js +87 -0
- package/esm2015/components/appointments-overview/appointments-overview.component.js +119 -0
- package/esm2015/components/check-box/checkbox.component.js +77 -0
- package/esm2015/components/check-box/checkbox.module.js +14 -0
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper..module.js +16 -0
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper.component.js +18 -0
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper..module.js +17 -0
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper.component.js +63 -0
- package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +182 -0
- package/esm2015/components/date-time-picker/date-time-picker.component.js +104 -0
- package/esm2015/components/date-time-picker/date-time-picker.module.js +34 -0
- package/esm2015/components/date-time-picker/picker-modal/modal.component.js +30 -0
- package/esm2015/components/date-time-picker/pipes/moment.pipe.js +13 -0
- package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +114 -0
- package/esm2015/components/file-upload/file-upload.component.js +110 -0
- package/esm2015/components/file-upload/file-upload.module.js +24 -0
- package/esm2015/components/file-upload/secure.pipe.js +102 -0
- package/esm2015/components/input/input.directive.js +55 -0
- package/esm2015/components/input/input.module.js +18 -0
- package/esm2015/components/input/label.component.js +177 -0
- package/esm2015/components/input/text-area.directive.js +40 -0
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +60 -0
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +26 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-adapter.class.js +114 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/date-time-format.class.js +7 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.js +344 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-format.class.js +16 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.js +30 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-body.component.js +149 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.js +429 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +367 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js +359 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +334 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js +251 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +380 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js +590 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.js +60 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js +71 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.animations.js +21 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.js +512 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.class.js +153 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.module.js +58 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.js +24 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +85 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +292 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-config.class.js +56 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-container.component.js +208 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-ref.class.js +119 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.module.js +22 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.service.js +222 -0
- package/esm2015/components/ngx-pick-datetime/lib/utils/index.js +5 -0
- package/esm2015/components/ngx-pick-datetime/lib/utils/object.utils.js +26 -0
- package/esm2015/components/ngx-remote-select/ngx-remote-select.component.js +121 -0
- package/esm2015/components/ngx-remote-select/ngx-remote-select.module.js +16 -0
- package/esm2015/components/ngx-tabset/components/tab-set.js +67 -0
- package/esm2015/components/ngx-tabset/components/tab.js +35 -0
- package/esm2015/components/ngx-tabset/directives/hover-class.directive.js +26 -0
- package/esm2015/components/ngx-tabset/modules/ngx-tabset.module.js +33 -0
- package/esm2015/components/number-input/number-input.component.js +203 -0
- package/esm2015/components/number-input/number-input.module.js +15 -0
- package/esm2015/components/select/optgroup.directive.js +17 -0
- package/esm2015/components/select/option.directive.js +17 -0
- package/esm2015/components/select/select.component.js +293 -0
- package/esm2015/components/select/select.module.js +18 -0
- package/esm2015/form-entry/control-alerts/alert-helpers.js +40 -0
- package/esm2015/form-entry/control-alerts/can-generate-alert.js +2 -0
- package/esm2015/form-entry/control-calculators/can-calculate.js +2 -0
- package/esm2015/form-entry/control-hiders-disablers/can-disable.js +2 -0
- package/esm2015/form-entry/control-hiders-disablers/can-hide.js +2 -0
- package/esm2015/form-entry/control-hiders-disablers/disabler-helper.js +33 -0
- package/esm2015/form-entry/control-hiders-disablers/hider-helpers.js +40 -0
- package/esm2015/form-entry/data-sources/data-sources.js +30 -0
- package/esm2015/form-entry/data-sources/dummy-data-source.js +104 -0
- package/esm2015/form-entry/directives/collapse-animations.js +11 -0
- package/esm2015/form-entry/directives/collapse.directive.js +157 -0
- package/esm2015/form-entry/directives/historical-value-directive.js +66 -0
- package/esm2015/form-entry/error-renderer/error-renderer.component.js +55 -0
- package/esm2015/form-entry/expression-runner/expression-runner.js +168 -0
- package/esm2015/form-entry/form-entry.module.js +107 -0
- package/esm2015/form-entry/form-factory/control-relations.factory.js +236 -0
- package/esm2015/form-entry/form-factory/form-control.service.js +118 -0
- package/esm2015/form-entry/form-factory/form-node.js +81 -0
- package/esm2015/form-entry/form-factory/form.factory.js +132 -0
- package/esm2015/form-entry/form-factory/form.js +193 -0
- package/esm2015/form-entry/form-factory/hiders-disablers.factory.js +66 -0
- package/esm2015/form-entry/form-factory/question.factory.js +864 -0
- package/esm2015/form-entry/form-factory/show-messages.factory.js +30 -0
- package/esm2015/form-entry/form-factory/validation.factory.js +145 -0
- package/esm2015/form-entry/form-renderer/form-renderer.component.css.js +179 -0
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +231 -0
- package/esm2015/form-entry/helpers/historical-expression-helper-service.js +38 -0
- package/esm2015/form-entry/helpers/historical-field-helper-service.js +36 -0
- package/esm2015/form-entry/helpers/js-expression-helper.js +238 -0
- package/esm2015/form-entry/pipes/time-ago.pipe.js +107 -0
- package/esm2015/form-entry/question-models/checkbox.model.js +11 -0
- package/esm2015/form-entry/question-models/conditional-validation.model.js +9 -0
- package/esm2015/form-entry/question-models/custom-control-question.model.js +10 -0
- package/esm2015/form-entry/question-models/date-question.js +12 -0
- package/esm2015/form-entry/question-models/date-validation.model.js +10 -0
- package/esm2015/form-entry/question-models/file-upload-question.js +13 -0
- package/esm2015/form-entry/question-models/group-question.js +12 -0
- package/esm2015/form-entry/question-models/interfaces/base-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/checkbox-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/data-source.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/date-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/file-upload-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/group-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/multi-select-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/nested-questions.js +7 -0
- package/esm2015/form-entry/question-models/interfaces/repeating-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/select-option.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/select-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/test-order-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/text-area-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/text-question-options.js +2 -0
- package/esm2015/form-entry/question-models/interfaces/ui-select-question-options.js +2 -0
- package/esm2015/form-entry/question-models/js-expression-validation.model.js +8 -0
- package/esm2015/form-entry/question-models/max-validation.model.js +9 -0
- package/esm2015/form-entry/question-models/min-validation.model.js +9 -0
- package/esm2015/form-entry/question-models/models.js +12 -0
- package/esm2015/form-entry/question-models/multi-select-question.js +11 -0
- package/esm2015/form-entry/question-models/pair.model.js +7 -0
- package/esm2015/form-entry/question-models/question-base.js +25 -0
- package/esm2015/form-entry/question-models/rendering-type.js +9 -0
- package/esm2015/form-entry/question-models/repeating-question.js +11 -0
- package/esm2015/form-entry/question-models/select-option.js +7 -0
- package/esm2015/form-entry/question-models/select-question.js +12 -0
- package/esm2015/form-entry/question-models/test-order-question.js +15 -0
- package/esm2015/form-entry/question-models/text-area-input-question.js +13 -0
- package/esm2015/form-entry/question-models/text-input-question.js +10 -0
- package/esm2015/form-entry/question-models/ui-select-question.js +11 -0
- package/esm2015/form-entry/question-models/validation.model.js +7 -0
- package/esm2015/form-entry/services/debug-mode.service.js +22 -0
- package/esm2015/form-entry/services/form-errors.service.js +18 -0
- package/esm2015/form-entry/services/form-schema-compiler.service.js +246 -0
- package/esm2015/form-entry/services/historical-encounter-data.service.js +170 -0
- package/esm2015/form-entry/utils/messages.js +12 -0
- package/esm2015/form-entry/validators/conditional-answered.validator.js +46 -0
- package/esm2015/form-entry/validators/conditional-required.validator.js +40 -0
- package/esm2015/form-entry/validators/date.validator.js +18 -0
- package/esm2015/form-entry/validators/future-date-restriction.validator.js +21 -0
- package/esm2015/form-entry/validators/js-expression.validator.js +26 -0
- package/esm2015/form-entry/validators/max-date.validator.js +23 -0
- package/esm2015/form-entry/validators/max.validator.js +17 -0
- package/esm2015/form-entry/validators/min-date.validator.js +23 -0
- package/esm2015/form-entry/validators/min.validator.js +17 -0
- package/esm2015/form-entry/validators/required.validator.js +11 -0
- package/esm2015/form-entry/validators/validations.js +5 -0
- package/esm2015/form-entry/value-adapters/encounter.adapter.js +172 -0
- package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +496 -0
- package/esm2015/form-entry/value-adapters/obs.adapter.js +545 -0
- package/esm2015/form-entry/value-adapters/order.adapter.js +186 -0
- package/esm2015/form-entry/value-adapters/person-attribute.adapter.js +87 -0
- package/esm2015/form-entry/value-adapters/value.adapter.js +2 -0
- package/esm2015/lib/index.js +49 -0
- package/esm2015/openmrs-ngx-formentry.js +76 -0
- package/esm2015/public_api.js +2 -0
- package/esm2015/shared.module.js +15 -0
- package/fesm2015/openmrs-ngx-formentry.js +13458 -0
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -0
- package/form-entry/control-alerts/alert-helpers.d.ts +9 -0
- package/form-entry/control-alerts/can-generate-alert.d.ts +18 -0
- package/form-entry/control-calculators/can-calculate.d.ts +5 -0
- package/form-entry/control-hiders-disablers/can-disable.d.ts +19 -0
- package/form-entry/control-hiders-disablers/can-hide.d.ts +20 -0
- package/form-entry/control-hiders-disablers/disabler-helper.d.ts +7 -0
- package/form-entry/control-hiders-disablers/hider-helpers.d.ts +9 -0
- package/form-entry/data-sources/data-sources.d.ts +7 -0
- package/form-entry/data-sources/dummy-data-source.d.ts +18 -0
- package/form-entry/directives/collapse-animations.d.ts +4 -0
- package/form-entry/directives/collapse.directive.d.ts +42 -0
- package/form-entry/directives/historical-value-directive.d.ts +13 -0
- package/form-entry/error-renderer/error-renderer.component.d.ts +17 -0
- package/form-entry/expression-runner/expression-runner.d.ts +15 -0
- package/form-entry/form-entry.module.d.ts +2 -0
- package/form-entry/form-factory/control-relations.factory.d.ts +15 -0
- package/form-entry/form-factory/form-control.service.d.ts +22 -0
- package/form-entry/form-factory/form-node.d.ts +51 -0
- package/form-entry/form-factory/form.d.ts +28 -0
- package/form-entry/form-factory/form.factory.d.ts +23 -0
- package/form-entry/form-factory/hiders-disablers.factory.d.ts +17 -0
- package/form-entry/form-factory/question.factory.d.ts +56 -0
- package/form-entry/form-factory/show-messages.factory.d.ts +12 -0
- package/form-entry/form-factory/validation.factory.d.ts +22 -0
- package/form-entry/form-renderer/form-renderer.component.css.d.ts +1 -0
- package/form-entry/form-renderer/form-renderer.component.d.ts +52 -0
- package/form-entry/helpers/historical-expression-helper-service.d.ts +5 -0
- package/form-entry/helpers/historical-field-helper-service.d.ts +4 -0
- package/form-entry/helpers/js-expression-helper.d.ts +22 -0
- package/form-entry/pipes/time-ago.pipe.d.ts +11 -0
- package/form-entry/question-models/checkbox.model.d.ts +9 -0
- package/form-entry/question-models/conditional-validation.model.d.ts +6 -0
- package/form-entry/question-models/custom-control-question.model.d.ts +6 -0
- package/form-entry/question-models/date-question.d.ts +7 -0
- package/form-entry/question-models/date-validation.model.d.ts +5 -0
- package/form-entry/question-models/file-upload-question.d.ts +8 -0
- package/form-entry/question-models/group-question.d.ts +8 -0
- package/form-entry/question-models/interfaces/base-options.d.ts +28 -0
- package/form-entry/question-models/interfaces/checkbox-options.d.ts +7 -0
- package/form-entry/question-models/interfaces/data-source.d.ts +10 -0
- package/form-entry/question-models/interfaces/date-question-options.d.ts +3 -0
- package/form-entry/question-models/interfaces/file-upload-question-options.d.ts +5 -0
- package/form-entry/question-models/interfaces/group-question-options.d.ts +5 -0
- package/form-entry/question-models/interfaces/multi-select-options.d.ts +4 -0
- package/form-entry/question-models/interfaces/nested-questions.d.ts +6 -0
- package/form-entry/question-models/interfaces/repeating-question-options.d.ts +5 -0
- package/form-entry/question-models/interfaces/select-option.d.ts +4 -0
- package/form-entry/question-models/interfaces/select-question-options.d.ts +9 -0
- package/form-entry/question-models/interfaces/test-order-question-options.d.ts +14 -0
- package/form-entry/question-models/interfaces/text-area-question-options.d.ts +5 -0
- package/form-entry/question-models/interfaces/text-question-options.d.ts +4 -0
- package/form-entry/question-models/interfaces/ui-select-question-options.d.ts +9 -0
- package/form-entry/question-models/js-expression-validation.model.d.ts +5 -0
- package/form-entry/question-models/max-validation.model.d.ts +5 -0
- package/form-entry/question-models/min-validation.model.d.ts +5 -0
- package/form-entry/question-models/models.d.ts +15 -0
- package/form-entry/question-models/multi-select-question.d.ts +9 -0
- package/form-entry/question-models/pair.model.d.ts +5 -0
- package/form-entry/question-models/question-base.d.ts +40 -0
- package/form-entry/question-models/rendering-type.d.ts +7 -0
- package/form-entry/question-models/repeating-question.d.ts +7 -0
- package/form-entry/question-models/select-option.d.ts +6 -0
- package/form-entry/question-models/select-question.d.ts +10 -0
- package/form-entry/question-models/test-order-question.d.ts +13 -0
- package/form-entry/question-models/text-area-input-question.d.ts +7 -0
- package/form-entry/question-models/text-input-question.d.ts +6 -0
- package/form-entry/question-models/ui-select-question.d.ts +11 -0
- package/form-entry/question-models/validation.model.d.ts +5 -0
- package/form-entry/services/debug-mode.service.d.ts +5 -0
- package/form-entry/services/form-errors.service.d.ts +10 -0
- package/form-entry/services/form-schema-compiler.service.d.ts +20 -0
- package/form-entry/services/historical-encounter-data.service.d.ts +12 -0
- package/form-entry/utils/messages.d.ts +11 -0
- package/form-entry/validators/conditional-answered.validator.d.ts +8 -0
- package/form-entry/validators/conditional-required.validator.d.ts +8 -0
- package/form-entry/validators/date.validator.d.ts +7 -0
- package/form-entry/validators/future-date-restriction.validator.d.ts +7 -0
- package/form-entry/validators/js-expression.validator.d.ts +8 -0
- package/form-entry/validators/max-date.validator.d.ts +6 -0
- package/form-entry/validators/max.validator.d.ts +6 -0
- package/form-entry/validators/min-date.validator.d.ts +6 -0
- package/form-entry/validators/min.validator.d.ts +6 -0
- package/form-entry/validators/required.validator.d.ts +6 -0
- package/form-entry/validators/validations.d.ts +4 -0
- package/form-entry/value-adapters/encounter.adapter.d.ts +23 -0
- package/form-entry/value-adapters/obs-adapter-helper.d.ts +27 -0
- package/form-entry/value-adapters/obs.adapter.d.ts +35 -0
- package/form-entry/value-adapters/order.adapter.d.ts +17 -0
- package/form-entry/value-adapters/person-attribute.adapter.d.ts +12 -0
- package/form-entry/value-adapters/value.adapter.d.ts +5 -0
- package/lib/index.d.ts +49 -0
- package/openmrs-ngx-formentry.d.ts +85 -0
- package/openmrs-ngx-formentry.metadata.json +1 -0
- package/package.json +35 -0
- package/public_api.d.ts +1 -0
- package/shared.module.d.ts +2 -0
- package/styles/ngx-formentry.css +374 -0
- package/styles/picker.min.css +770 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { FileUploadQuestionOptions } from './interfaces/file-upload-question-options';
|
|
3
|
+
export declare class FileUploadQuestion extends QuestionBase {
|
|
4
|
+
showTime: boolean;
|
|
5
|
+
showWeeksAdder: boolean;
|
|
6
|
+
dataSource?: any;
|
|
7
|
+
constructor(options: FileUploadQuestionOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { GroupQuestionOptions } from './interfaces/group-question-options';
|
|
3
|
+
import { NestedQuestion } from './interfaces/nested-questions';
|
|
4
|
+
export declare class QuestionGroup extends NestedQuestion {
|
|
5
|
+
questions: QuestionBase[];
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
constructor(options: GroupQuestionOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ValidationModel } from '../validation.model';
|
|
2
|
+
export interface BaseOptions {
|
|
3
|
+
defaultValue?: any;
|
|
4
|
+
originalValue?: any;
|
|
5
|
+
type: string;
|
|
6
|
+
key: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
order?: number;
|
|
9
|
+
extras?: any;
|
|
10
|
+
validators?: Array<ValidationModel>;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
questionOptions?: any;
|
|
13
|
+
hide?: string | boolean;
|
|
14
|
+
alert?: any;
|
|
15
|
+
disable?: string | boolean;
|
|
16
|
+
readOnly?: string | boolean;
|
|
17
|
+
enableHistoricalValue?: boolean;
|
|
18
|
+
historicalDataValue?: any;
|
|
19
|
+
calculateExpression?: string;
|
|
20
|
+
questions?: any;
|
|
21
|
+
placeholder?: any;
|
|
22
|
+
hidden?: any;
|
|
23
|
+
showTime?: any;
|
|
24
|
+
showWeek?: any;
|
|
25
|
+
historicalDisplay?: any;
|
|
26
|
+
rows?: any;
|
|
27
|
+
showWeeksAdder?: any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectOption } from './select-option';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface DataSource {
|
|
4
|
+
dataSourceOptions?: any;
|
|
5
|
+
dataFromSourceChanged?: Observable<SelectOption[]>;
|
|
6
|
+
resolveSelectedValue(value: any): Observable<SelectOption>;
|
|
7
|
+
searchOptions(searchText: any): Observable<SelectOption[]>;
|
|
8
|
+
fileUpload(data: any): Observable<any>;
|
|
9
|
+
fetchFile(url: string, fileType?: string): Observable<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseOptions } from '../interfaces/base-options';
|
|
2
|
+
export interface TestOrderQuestionOptions extends BaseOptions {
|
|
3
|
+
orderType: string;
|
|
4
|
+
selectableOrders: {
|
|
5
|
+
concept: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
orderSettingUuid: string;
|
|
9
|
+
rendering: string;
|
|
10
|
+
options?: {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { QuestionBase } from '../question-models/question-base';
|
|
2
|
+
export { TextInputQuestion } from '../question-models/text-input-question';
|
|
3
|
+
export { TextAreaInputQuestion } from '../question-models/text-area-input-question';
|
|
4
|
+
export { SelectQuestion } from '../question-models/select-question';
|
|
5
|
+
export { UiSelectQuestion } from '../question-models/ui-select-question';
|
|
6
|
+
export { DateQuestion } from '../question-models/date-question';
|
|
7
|
+
export { MultiSelectQuestion } from '../question-models/multi-select-question';
|
|
8
|
+
export { BaseOptions } from './interfaces/base-options';
|
|
9
|
+
export { RepeatingQuestionOptions } from './interfaces/repeating-question-options';
|
|
10
|
+
export { GroupQuestionOptions } from './interfaces/group-question-options';
|
|
11
|
+
export { NestedQuestion } from './interfaces/nested-questions';
|
|
12
|
+
export { QuestionGroup } from '../question-models/group-question';
|
|
13
|
+
export { RepeatingQuestion } from '../question-models/repeating-question';
|
|
14
|
+
export { TextQuestionOptions } from './interfaces/text-question-options';
|
|
15
|
+
export { CheckBoxQuestion } from './checkbox.model';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectQuestion } from './select-question';
|
|
2
|
+
import { MultiSelectQuestionOptions } from './interfaces/multi-select-options';
|
|
3
|
+
export declare class MultiSelectQuestion extends SelectQuestion {
|
|
4
|
+
options: {
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
constructor(options: MultiSelectQuestionOptions);
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseOptions } from './interfaces/base-options';
|
|
2
|
+
import { AfeControlType } from '../../abstract-controls-extension/afe-control-type';
|
|
3
|
+
import { ValidationModel } from './validation.model';
|
|
4
|
+
export declare class QuestionBase implements BaseOptions {
|
|
5
|
+
type: string;
|
|
6
|
+
order?: number;
|
|
7
|
+
questionOptions?: any;
|
|
8
|
+
questions?: any;
|
|
9
|
+
placeholder?: any;
|
|
10
|
+
hidden?: any;
|
|
11
|
+
showTime?: any;
|
|
12
|
+
showWeek?: any;
|
|
13
|
+
historicalDisplay?: any;
|
|
14
|
+
rows?: any;
|
|
15
|
+
showWeeksAdder?: any;
|
|
16
|
+
key: string;
|
|
17
|
+
alert?: any;
|
|
18
|
+
label?: string;
|
|
19
|
+
renderingType: string;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
originalValue?: any;
|
|
22
|
+
enableHistoricalValue?: boolean;
|
|
23
|
+
showHistoricalValueDate?: boolean;
|
|
24
|
+
historicalDataValue?: any;
|
|
25
|
+
extras?: any;
|
|
26
|
+
dataSource?: string;
|
|
27
|
+
dataSourceOptions?: any;
|
|
28
|
+
controlType?: AfeControlType;
|
|
29
|
+
validators?: Array<ValidationModel>;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
hide?: string | boolean;
|
|
32
|
+
disable?: string | boolean;
|
|
33
|
+
readOnly?: string | boolean;
|
|
34
|
+
calculateExpression?: string;
|
|
35
|
+
componentConfigs: Array<any>;
|
|
36
|
+
options?: any;
|
|
37
|
+
constructor(options: BaseOptions);
|
|
38
|
+
setHistoricalValue(v: boolean): void;
|
|
39
|
+
showHistoricalEncounterDate(v?: boolean): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { RepeatingQuestionOptions } from './interfaces/repeating-question-options';
|
|
3
|
+
import { NestedQuestion } from './interfaces/nested-questions';
|
|
4
|
+
export declare class RepeatingQuestion extends NestedQuestion {
|
|
5
|
+
questions: QuestionBase[];
|
|
6
|
+
constructor(options: RepeatingQuestionOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { SelectQuestionOptions } from './interfaces/select-question-options';
|
|
3
|
+
export declare class SelectQuestion extends QuestionBase {
|
|
4
|
+
options: {
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
dataSource?: any;
|
|
9
|
+
constructor(options: SelectQuestionOptions);
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { TestOrderQuestionOptions } from './interfaces/test-order-question-options';
|
|
3
|
+
export declare class TestOrderQuestion extends QuestionBase {
|
|
4
|
+
orderType: string;
|
|
5
|
+
selectableOrders: {
|
|
6
|
+
concept: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
orderSettingUuid: string;
|
|
10
|
+
rendering: string;
|
|
11
|
+
options: any[];
|
|
12
|
+
constructor(options: TestOrderQuestionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextInputQuestion } from './text-input-question';
|
|
2
|
+
import { TextAreaQuestionOptions } from './interfaces/text-area-question-options';
|
|
3
|
+
export declare class TextAreaInputQuestion extends TextInputQuestion {
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
rows: number;
|
|
6
|
+
constructor(options: TextAreaQuestionOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { UiSelectQuestionOptions } from './interfaces/ui-select-question-options';
|
|
3
|
+
export declare class UiSelectQuestion extends QuestionBase {
|
|
4
|
+
options: {
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
searchFunction: Function;
|
|
9
|
+
resolveFunction: Function;
|
|
10
|
+
constructor(options: UiSelectQuestionOptions);
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Subject, Observable } from 'rxjs';
|
|
2
|
+
import { AfeFormControl } from '../../public_api';
|
|
3
|
+
import { AfeFormArray, AfeFormGroup } from '../../abstract-controls-extension';
|
|
4
|
+
export declare class FormErrorsService {
|
|
5
|
+
static control: AfeFormControl | AfeFormArray | AfeFormGroup;
|
|
6
|
+
static tab: number;
|
|
7
|
+
announceErrorFieldSource: Subject<string>;
|
|
8
|
+
announceErrorField$: Observable<any>;
|
|
9
|
+
announceErrorField(error: string): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class FormSchemaCompiler {
|
|
2
|
+
constructor();
|
|
3
|
+
compileFormSchema(formSchema: Object, referencedComponents: Array<any>): Object;
|
|
4
|
+
private findSchemaByName;
|
|
5
|
+
private getPageInSchemaByLabel;
|
|
6
|
+
private getSectionInSchemaByPageLabelBySectionLabel;
|
|
7
|
+
private getQuestionByIdInSchema;
|
|
8
|
+
private getQuestionsArrayByQuestionIdInSchema;
|
|
9
|
+
private getQuestionsArrayByQuestionId;
|
|
10
|
+
private isSchemaSubObjectExpandable;
|
|
11
|
+
private isQuestionObjectWithId;
|
|
12
|
+
private getAllPlaceholderObjects;
|
|
13
|
+
private extractPlaceholderObjects;
|
|
14
|
+
private fillPlaceholderObject;
|
|
15
|
+
private replaceAllPlaceholdersWithActualObjects;
|
|
16
|
+
private removeObjectFromArray;
|
|
17
|
+
private removeExcludedQuestionsFromPlaceholder;
|
|
18
|
+
private getReferencedObject;
|
|
19
|
+
private getReferencedForms;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class HistoricalEncounterDataService {
|
|
2
|
+
dataSources: any;
|
|
3
|
+
constructor();
|
|
4
|
+
registerEncounters(name: string, encounters: any): void;
|
|
5
|
+
putObject(name: any, object: any): void;
|
|
6
|
+
getObject(name: string): any;
|
|
7
|
+
getFirstValue(path: Array<string>, object: any): any;
|
|
8
|
+
getAllValues(path: any, object: any, answers: any): void;
|
|
9
|
+
private _transformEncounter;
|
|
10
|
+
private _transformObs;
|
|
11
|
+
private _augumentObs;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Messages {
|
|
2
|
+
static readonly REQUIRED_FIELD_MSG = "This field is required!";
|
|
3
|
+
static readonly INVALID_DATE_MSG = "Provided date is invalid!";
|
|
4
|
+
static readonly FUTURE_DATE_RESTRICTION_MSG = "Future date is not allowed!";
|
|
5
|
+
static readonly MIN_LENGTH_MSG = "Min Length should be {minLength}";
|
|
6
|
+
static readonly MAX_LENGTH_MSG = "Max Length should be {maxLength}";
|
|
7
|
+
static readonly MAX_DATE_MSG = "Max Date should be {maxDate}";
|
|
8
|
+
static readonly MIN_DATE_MSG = "Min Date should be {minDate}";
|
|
9
|
+
static readonly MAX_MSG = "Max value should be {max}";
|
|
10
|
+
static readonly MIN_MSG = "Min value should be {min}";
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
|
|
2
|
+
import { ConditionalValidationModel } from '../question-models/conditional-validation.model';
|
|
3
|
+
export declare class ConditionalAnsweredValidator {
|
|
4
|
+
constructor();
|
|
5
|
+
validate(model: ConditionalValidationModel): (control: AfeFormControl) => {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
|
|
2
|
+
import { ConditionalValidationModel } from '../question-models/conditional-validation.model';
|
|
3
|
+
export declare class ConditionalRequiredValidator {
|
|
4
|
+
constructor();
|
|
5
|
+
validate(model: ConditionalValidationModel): (control: AfeFormControl) => {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AfeFormControl } from '../../abstract-controls-extension/afe-form-control';
|
|
2
|
+
import { JsExpressionValidationModel } from '../question-models/js-expression-validation.model';
|
|
3
|
+
export declare class JsExpressionValidator {
|
|
4
|
+
constructor();
|
|
5
|
+
validate(model: JsExpressionValidationModel, form?: any): (control: AfeFormControl) => {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NodeBase } from '../form-factory/form-node';
|
|
2
|
+
import { Form } from '../form-factory/form';
|
|
3
|
+
import { ValueAdapter } from './value.adapter';
|
|
4
|
+
import { ObsValueAdapter } from './obs.adapter';
|
|
5
|
+
import { OrderValueAdapter } from './order.adapter';
|
|
6
|
+
export declare class EncounterAdapter implements ValueAdapter {
|
|
7
|
+
ordersAdapter: OrderValueAdapter;
|
|
8
|
+
obsAdapter: ObsValueAdapter;
|
|
9
|
+
constructor(ordersAdapter: OrderValueAdapter, obsAdapter: ObsValueAdapter);
|
|
10
|
+
populateForm(form: Form, payload: any): void;
|
|
11
|
+
populateNode(rootNode: NodeBase, payload: any): void;
|
|
12
|
+
generateFormPayload(form: Form): {};
|
|
13
|
+
generateNodePayload(rootNode: NodeBase): {};
|
|
14
|
+
getEncounterNodes(rootNode: NodeBase): Array<NodeBase>;
|
|
15
|
+
setNonFilledPayloadMembers(form: Form, payload: any): void;
|
|
16
|
+
setPayloadPatientUuid(payload: any, patientUuid: string): void;
|
|
17
|
+
setPayloadVisitUuid(payload: any, visitUuid: string): void;
|
|
18
|
+
setPayloadEncounterTypeUuid(payload: any, encounterTypeUuid: string): void;
|
|
19
|
+
setPayloadFormUuid(payload: any, formUuid: string): void;
|
|
20
|
+
setPayloadEncounterUuid(payload: any, encounterUuid: string): void;
|
|
21
|
+
private _getEncounterNodes;
|
|
22
|
+
private _isEncounterNode;
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NodeBase } from '../form-factory/form-node';
|
|
2
|
+
export declare class ObsAdapterHelper {
|
|
3
|
+
constructor();
|
|
4
|
+
findObsAnswerToQuestion(node: NodeBase, obsArray: Array<any>): Array<any>;
|
|
5
|
+
getChildQuestionsConceptUuids(node: NodeBase): Array<string>;
|
|
6
|
+
getGroupMembersConceptUuids(obsWithGroupMembers: any): Array<string>;
|
|
7
|
+
isObsNode(node: NodeBase): boolean;
|
|
8
|
+
isSubsetOf(supersetArray: Array<any>, subsetArray: Array<any>): boolean;
|
|
9
|
+
setSimpleObsNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
10
|
+
setMultiselectObsNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
11
|
+
setComplexObsNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
12
|
+
setGroupObsNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
13
|
+
setRepeatingGroupObsNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
14
|
+
setNodeValue(node: NodeBase, obs: Array<any>): void;
|
|
15
|
+
setNodeFormControlValue(node: NodeBase, value: any): void;
|
|
16
|
+
getObsNodeType(node: NodeBase): string;
|
|
17
|
+
getSimpleObsPayload(node: NodeBase): any;
|
|
18
|
+
getComplexObsPayload(node: NodeBase): any;
|
|
19
|
+
getMultiselectObsPayload(node: NodeBase): Array<any>;
|
|
20
|
+
getGroupPayload(node: NodeBase): any;
|
|
21
|
+
getRepeatingGroupPayload(node: NodeBase): any[];
|
|
22
|
+
getObsNodePayload(node: NodeBase): Array<any>;
|
|
23
|
+
simpleNodeValueChanged(node: NodeBase): boolean;
|
|
24
|
+
areDatesEqual(date1: any, date2: any): boolean;
|
|
25
|
+
isEmpty(value: any): boolean;
|
|
26
|
+
toOpenMrsDateTimeString(datetime: string): string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import 'rxjs';
|
|
2
|
+
import { Form } from '../form-factory/form';
|
|
3
|
+
import { ValueAdapter } from './value.adapter';
|
|
4
|
+
import { ObsAdapterHelper } from './obs-adapter-helper';
|
|
5
|
+
export declare class ObsValueAdapter implements ValueAdapter {
|
|
6
|
+
private helper;
|
|
7
|
+
constructor(helper: ObsAdapterHelper);
|
|
8
|
+
generateFormPayload(form: Form): any[];
|
|
9
|
+
populateForm(form: Form, payload: any): void;
|
|
10
|
+
setValues(nodes: any, payload?: any, forcegroup?: any): void;
|
|
11
|
+
setObsValue(node: any, payload: any): void;
|
|
12
|
+
setComplexObsValue(node: any, payload: any): void;
|
|
13
|
+
getMultiselectValues(multiObs: any): any[];
|
|
14
|
+
setRepeatingGroupValues(node: any, payload: any): void;
|
|
15
|
+
getQuestionNodes(pages: any): any;
|
|
16
|
+
repeatingGroup(nodes: any): any[];
|
|
17
|
+
processGroup(obs: any, obsPayload: any): void;
|
|
18
|
+
mapInitialGroup(group: any): {};
|
|
19
|
+
mapModelGroup(node: any, value: any): {};
|
|
20
|
+
processRepeatingGroups(node: any, obsPayload: any): void;
|
|
21
|
+
leftOuterJoinArrays(first: any, second: any): any;
|
|
22
|
+
createGroupNewObs(payload: any, groupConcept: any): any[];
|
|
23
|
+
createGroupDeletedObs(payload: any): any[];
|
|
24
|
+
getExactTime(datetime: string): string;
|
|
25
|
+
processObs(obs: any, obsPayload: any): void;
|
|
26
|
+
processComplexObs(node: any, obsPayload: any): void;
|
|
27
|
+
processDeletedMultiSelectObs(values: any, obsPayload: any): void;
|
|
28
|
+
processNewMultiSelectObs(values: any, obsPayload: any): void;
|
|
29
|
+
updateOrVoidObs(obsValue: any, initialValue: any, obsPayload: any): void;
|
|
30
|
+
isEmpty(value: any): boolean;
|
|
31
|
+
traverse(o: any, type?: any): any[];
|
|
32
|
+
processMultiSelect(concept: any, values: any): any[];
|
|
33
|
+
isObs(node: any): boolean;
|
|
34
|
+
getObsPayload(nodes: any): any[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Form } from '../form-factory/form';
|
|
2
|
+
import { ValueAdapter } from './value.adapter';
|
|
3
|
+
export declare class OrderValueAdapter implements ValueAdapter {
|
|
4
|
+
formOrderNodes: any[];
|
|
5
|
+
private provider;
|
|
6
|
+
generateFormPayload(form: Form): any;
|
|
7
|
+
populateForm(form: Form, payload: any): void;
|
|
8
|
+
private _setOrderProvider;
|
|
9
|
+
private _createOrdersPayload;
|
|
10
|
+
private _getExistingOrders;
|
|
11
|
+
private _setOrderValues;
|
|
12
|
+
private _addDeletedOrdersToPayload;
|
|
13
|
+
private _createPayloadOrder;
|
|
14
|
+
private _getDeletedOrders;
|
|
15
|
+
private _setOrderNodeValues;
|
|
16
|
+
private _findTestOrderQuestionNodes;
|
|
17
|
+
}
|