@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,12 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
export declare class ControlRelation {
|
|
3
|
+
private _control;
|
|
4
|
+
private _relatedTo;
|
|
5
|
+
private _lastUpdateValue;
|
|
6
|
+
constructor(control: AbstractControl, relatedTo: AbstractControl);
|
|
7
|
+
get control(): AbstractControl;
|
|
8
|
+
get relatedTo(): AbstractControl;
|
|
9
|
+
get lastUpdateValue(): any;
|
|
10
|
+
updateControlBasedOnRelation(newValue: any): boolean;
|
|
11
|
+
private _registerForChangesFromRelatedControl;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { ControlRelation } from './control-relation';
|
|
3
|
+
export declare class ControlRelations {
|
|
4
|
+
private _relationFor;
|
|
5
|
+
private _relations;
|
|
6
|
+
private _otherRelations;
|
|
7
|
+
constructor(relationFor: AbstractControl, relatedTo?: AbstractControl | AbstractControl[]);
|
|
8
|
+
get relationsFor(): AbstractControl;
|
|
9
|
+
get relations(): ControlRelation[];
|
|
10
|
+
get otherRelations(): any;
|
|
11
|
+
addRelatedControls(relatedTo: AbstractControl | AbstractControl[]): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { Option } from '../form-entry/question-models/select-option';
|
|
5
|
+
import { DataSource } from '../form-entry/question-models/interfaces/data-source';
|
|
6
|
+
export declare class AfeNgSelectComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
subject: BehaviorSubject<Option[]>;
|
|
8
|
+
subjectOption: BehaviorSubject<Option>;
|
|
9
|
+
dataSource: DataSource;
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
extras: any;
|
|
12
|
+
question_options: any;
|
|
13
|
+
selected_question_option: any;
|
|
14
|
+
errors: any;
|
|
15
|
+
propagateChange: (_: any) => void;
|
|
16
|
+
getChangingText(event: any): void;
|
|
17
|
+
writeValue(obj: any): void;
|
|
18
|
+
registerOnChange(fn: any): void;
|
|
19
|
+
registerOnTouched(fn: any): void;
|
|
20
|
+
ngOnChanges(changes: any): void;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
getData(searchText: string): Observable<Option[]>;
|
|
23
|
+
onValueChange(event: any): void;
|
|
24
|
+
resolveSelectedOption(value: any): Observable<Option>;
|
|
25
|
+
resetOptions(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { LeafNode } from '../../form-entry/form-factory/form-node';
|
|
3
|
+
export declare class AppointmentsOverviewComponent implements OnInit, OnChanges {
|
|
4
|
+
node: LeafNode;
|
|
5
|
+
showAppointments: boolean;
|
|
6
|
+
loadingAppointments: boolean;
|
|
7
|
+
errorLoadingAppointments: boolean;
|
|
8
|
+
appointmentsLoaded: boolean;
|
|
9
|
+
appointments: Array<any>;
|
|
10
|
+
today: string;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
resetProperties(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
+
export declare class CheckboxControlComponent implements OnInit, AfterViewInit {
|
|
3
|
+
options: Array<any>;
|
|
4
|
+
selected: Array<any>;
|
|
5
|
+
_value: Array<any>;
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
writeValue(value: any): void;
|
|
9
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
10
|
+
registerOnTouched(fn: () => void): void;
|
|
11
|
+
get value(): any;
|
|
12
|
+
set value(v: any);
|
|
13
|
+
selectOpt(option: any, event: any): void;
|
|
14
|
+
private onChange;
|
|
15
|
+
private onTouched;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { CustomControlQuestion } from '../../form-entry/question-models/custom-control-question.model';
|
|
4
|
+
export declare class CustomControlWrapperComponent implements ControlValueAccessor, OnInit {
|
|
5
|
+
customControlConfig: {
|
|
6
|
+
tag: string;
|
|
7
|
+
url: string;
|
|
8
|
+
module: string;
|
|
9
|
+
};
|
|
10
|
+
question: CustomControlQuestion;
|
|
11
|
+
value: any;
|
|
12
|
+
config: {};
|
|
13
|
+
touched: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
registerOnValidatorChange?(fn: () => void): void;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onChange: (value: any) => void;
|
|
18
|
+
onTouched: () => void;
|
|
19
|
+
onValueChange(event: any): void;
|
|
20
|
+
writeValue(value: any): void;
|
|
21
|
+
registerOnChange(onChange: any): void;
|
|
22
|
+
registerOnTouched(onTouched: any): void;
|
|
23
|
+
markAsTouched(): void;
|
|
24
|
+
setDisabledState(disabled: boolean): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* date-picker.component
|
|
3
|
+
*/
|
|
4
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Moment } from 'moment';
|
|
6
|
+
export declare class DatePickerComponent implements OnInit {
|
|
7
|
+
dayNames: Array<string>;
|
|
8
|
+
initDate: any;
|
|
9
|
+
locale: string;
|
|
10
|
+
viewFormat: string;
|
|
11
|
+
returnObject: string;
|
|
12
|
+
onDatePickerCancel: EventEmitter<boolean>;
|
|
13
|
+
onSelectDate: EventEmitter<any>;
|
|
14
|
+
calendarDate: Moment;
|
|
15
|
+
selectedDate: Moment;
|
|
16
|
+
currentMonth: any;
|
|
17
|
+
today: Moment;
|
|
18
|
+
currentYear: number;
|
|
19
|
+
onDisplayMonths: boolean;
|
|
20
|
+
onDisplayYears: boolean;
|
|
21
|
+
displayYearsIndex: number;
|
|
22
|
+
displayYearRange: Array<number>;
|
|
23
|
+
fullYearRange: Array<any>;
|
|
24
|
+
monthsShort: Array<string>;
|
|
25
|
+
calendarDays: Array<Moment>;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
prev(): void;
|
|
29
|
+
showMonthSelection(): void;
|
|
30
|
+
showYearSelection(): void;
|
|
31
|
+
next(): void;
|
|
32
|
+
selectDay(day: Moment): void;
|
|
33
|
+
selectMonth(month: string): void;
|
|
34
|
+
selectYear(year: number): void;
|
|
35
|
+
selectToday(): void;
|
|
36
|
+
clearPickDate(): void;
|
|
37
|
+
cancelDatePicker(): void;
|
|
38
|
+
protected generateYears(): void;
|
|
39
|
+
protected initValue(): void;
|
|
40
|
+
protected generateCalendar(): void;
|
|
41
|
+
protected parseToReturnObjectType(day: Moment): any;
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
export declare class DateTimePickerComponent implements OnInit, ControlValueAccessor {
|
|
4
|
+
modelValue: any;
|
|
5
|
+
showDate: boolean;
|
|
6
|
+
showTime: boolean;
|
|
7
|
+
showWeeks: boolean;
|
|
8
|
+
weeks: number[];
|
|
9
|
+
onDateChange: EventEmitter<any>;
|
|
10
|
+
showDatePicker: boolean;
|
|
11
|
+
showTimePicker: boolean;
|
|
12
|
+
onChange: any;
|
|
13
|
+
onTouched: any;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
weeksSelected(count: any): void;
|
|
17
|
+
setDate(date: any): void;
|
|
18
|
+
setTime(time: any): void;
|
|
19
|
+
toggleDatePicker(status: boolean): void;
|
|
20
|
+
toggleTimePicker(status: boolean): void;
|
|
21
|
+
get value(): any;
|
|
22
|
+
set value(val: any);
|
|
23
|
+
registerOnChange(fn: any): void;
|
|
24
|
+
registerOnTouched(fn: any): void;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* time-picker.component
|
|
3
|
+
*/
|
|
4
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Moment } from 'moment';
|
|
6
|
+
export declare class TimePickerComponent implements OnInit {
|
|
7
|
+
initTime: any;
|
|
8
|
+
showSecond: boolean;
|
|
9
|
+
viewFormat: string;
|
|
10
|
+
use12Hour: boolean;
|
|
11
|
+
returnObject: string;
|
|
12
|
+
onSelectTime: EventEmitter<any>;
|
|
13
|
+
onTimePickerCancel: EventEmitter<boolean>;
|
|
14
|
+
hourFormat: string;
|
|
15
|
+
time: Moment;
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
increaseHour(): void;
|
|
19
|
+
decreaseHour(): void;
|
|
20
|
+
increaseMinute(): void;
|
|
21
|
+
decreaseMinute(): void;
|
|
22
|
+
increaseSecond(): void;
|
|
23
|
+
decreaseSecond(): void;
|
|
24
|
+
selectTime(): void;
|
|
25
|
+
selectNow(): void;
|
|
26
|
+
clearTime(): void;
|
|
27
|
+
cancelTimePicker(): void;
|
|
28
|
+
protected parseToReturnObjectType(time: Moment): any;
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { DataSource } from '../../form-entry/question-models/interfaces/data-source';
|
|
4
|
+
export declare class FileUploadComponent implements OnInit, ControlValueAccessor {
|
|
5
|
+
private renderer;
|
|
6
|
+
uploading: boolean;
|
|
7
|
+
fileUuid: any;
|
|
8
|
+
pdfUploaded: boolean;
|
|
9
|
+
formEntryMode: boolean;
|
|
10
|
+
pdfUrl: string;
|
|
11
|
+
private _dataSource;
|
|
12
|
+
get dataSource(): DataSource;
|
|
13
|
+
set dataSource(v: DataSource);
|
|
14
|
+
constructor(renderer: Renderer2);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onFileChange(fileList: any): void;
|
|
17
|
+
upload(data: any): void;
|
|
18
|
+
writeValue(value: any): void;
|
|
19
|
+
registerOnChange(fn: any): void;
|
|
20
|
+
registerOnTouched(): void;
|
|
21
|
+
onChange(event: any): void;
|
|
22
|
+
private propagateChange;
|
|
23
|
+
clearValue(): void;
|
|
24
|
+
getPdfUrl(fileUuid: string): void;
|
|
25
|
+
checkFileType(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PipeTransform, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
export declare class SecurePipe implements PipeTransform, OnDestroy {
|
|
4
|
+
private _ref;
|
|
5
|
+
private sanitizer;
|
|
6
|
+
private _latestValue;
|
|
7
|
+
private _latestReturnedValue;
|
|
8
|
+
private _subscription;
|
|
9
|
+
private _obj;
|
|
10
|
+
private getfile;
|
|
11
|
+
private previousUrl;
|
|
12
|
+
private _result;
|
|
13
|
+
private result;
|
|
14
|
+
private _internalSubscription;
|
|
15
|
+
constructor(_ref: ChangeDetectorRef, sanitizer: DomSanitizer);
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
transform(url: string, getfile: any): any;
|
|
18
|
+
private internalTransform;
|
|
19
|
+
private asyncTrasnform;
|
|
20
|
+
private _subscribe;
|
|
21
|
+
private _dispose;
|
|
22
|
+
private _updateLatestValue;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A directive for applying styling to an input element.
|
|
3
|
+
*
|
|
4
|
+
* Example:
|
|
5
|
+
*
|
|
6
|
+
* ```html
|
|
7
|
+
* <input ibmText/>
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
11
|
+
*/
|
|
12
|
+
export declare class TextInput {
|
|
13
|
+
/**
|
|
14
|
+
* `light` or `dark` input theme
|
|
15
|
+
*/
|
|
16
|
+
theme: 'light' | 'dark';
|
|
17
|
+
/**
|
|
18
|
+
* Input field render size
|
|
19
|
+
*/
|
|
20
|
+
size: 'sm' | 'md' | 'xl';
|
|
21
|
+
inputClass: boolean;
|
|
22
|
+
get isSizeXl(): boolean;
|
|
23
|
+
get isSizeSm(): boolean;
|
|
24
|
+
invalid: boolean;
|
|
25
|
+
warn: boolean;
|
|
26
|
+
skeleton: boolean;
|
|
27
|
+
get isLightTheme(): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, TemplateRef, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TextArea } from './text-area.directive';
|
|
3
|
+
/**
|
|
4
|
+
* [See demo](../../?path=/story/input--label)
|
|
5
|
+
*
|
|
6
|
+
* ```html
|
|
7
|
+
* <ibm-label labelState="success">
|
|
8
|
+
* <label label>Field with success</label>
|
|
9
|
+
* <input type="text" class="input-field">
|
|
10
|
+
* </ibm-label>
|
|
11
|
+
*
|
|
12
|
+
* <ibm-label labelState="warning">
|
|
13
|
+
* <label label>Field with warning</label>
|
|
14
|
+
* <input type="text" class="input-field">
|
|
15
|
+
* </ibm-label>
|
|
16
|
+
*
|
|
17
|
+
* <ibm-label labelState="error">
|
|
18
|
+
* <label label>Field with error</label>
|
|
19
|
+
* <input type="text" class="input-field">
|
|
20
|
+
* </ibm-label>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* <example-url>../../iframe.html?id=input--label</example-url>
|
|
24
|
+
*/
|
|
25
|
+
export declare class Label implements AfterContentInit, AfterViewInit {
|
|
26
|
+
/**
|
|
27
|
+
* Used to build the id of the input item associated with the `Label`.
|
|
28
|
+
*/
|
|
29
|
+
static labelCounter: number;
|
|
30
|
+
/**
|
|
31
|
+
* The class of the wrapper
|
|
32
|
+
*/
|
|
33
|
+
wrapperClass: string;
|
|
34
|
+
/**
|
|
35
|
+
* The id of the input item associated with the `Label`. This value is also used to associate the `Label` with
|
|
36
|
+
* its input counterpart through the 'for' attribute.
|
|
37
|
+
*/
|
|
38
|
+
labelInputID: string;
|
|
39
|
+
/**
|
|
40
|
+
* State of the `Label` will determine the styles applied.
|
|
41
|
+
*/
|
|
42
|
+
labelState: 'success' | 'warning' | 'error' | '';
|
|
43
|
+
/**
|
|
44
|
+
* Set to `true` for a loading label.
|
|
45
|
+
*/
|
|
46
|
+
skeleton: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional helper text that appears under the label.
|
|
49
|
+
*/
|
|
50
|
+
helperText: string | TemplateRef<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the invalid text.
|
|
53
|
+
*/
|
|
54
|
+
invalidText: string | TemplateRef<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Set to `true` for an invalid label component.
|
|
57
|
+
*/
|
|
58
|
+
invalid: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Set to `true` to show a warning (contents set by warningText)
|
|
61
|
+
*/
|
|
62
|
+
warn: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the warning text
|
|
65
|
+
*/
|
|
66
|
+
warnText: string | TemplateRef<any>;
|
|
67
|
+
/**
|
|
68
|
+
* Set the arialabel for label
|
|
69
|
+
*/
|
|
70
|
+
ariaLabel: string;
|
|
71
|
+
wrapper: ElementRef<HTMLDivElement>;
|
|
72
|
+
textArea: TextArea;
|
|
73
|
+
labelClass: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Creates an instance of Label.
|
|
76
|
+
*/
|
|
77
|
+
constructor();
|
|
78
|
+
/**
|
|
79
|
+
* Update wrapper class if a textarea is hosted.
|
|
80
|
+
*/
|
|
81
|
+
ngAfterContentInit(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the id on the input item associated with the `Label`.
|
|
84
|
+
*/
|
|
85
|
+
ngAfterViewInit(): void;
|
|
86
|
+
isTemplate(value: any): boolean;
|
|
87
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A directive for applying styling to a textarea element.
|
|
3
|
+
*
|
|
4
|
+
* Example:
|
|
5
|
+
*
|
|
6
|
+
* ```html
|
|
7
|
+
* <textarea ibmTextArea></textarea>
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
11
|
+
*/
|
|
12
|
+
export declare class TextArea {
|
|
13
|
+
/**
|
|
14
|
+
* `light` or `dark` input theme
|
|
15
|
+
*/
|
|
16
|
+
theme: 'light' | 'dark';
|
|
17
|
+
baseClass: boolean;
|
|
18
|
+
invalid: boolean;
|
|
19
|
+
skeleton: boolean;
|
|
20
|
+
get isLightTheme(): boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
export declare class NgxDatetimeComponent implements ControlValueAccessor {
|
|
3
|
+
value: string;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
theme: string;
|
|
7
|
+
showWeeks: boolean;
|
|
8
|
+
weeks: number[];
|
|
9
|
+
onChange: (_: any) => void;
|
|
10
|
+
onTouch: () => void;
|
|
11
|
+
onInput($event: any): void;
|
|
12
|
+
writeValue(value: any): void;
|
|
13
|
+
registerOnChange(fn: any): void;
|
|
14
|
+
registerOnTouched(fn: any): void;
|
|
15
|
+
setDisabledState(isDisabled: boolean): void;
|
|
16
|
+
onWeeksSelected(numberOfWeeks: number): void;
|
|
17
|
+
}
|