@openmrs/ngx-formentry 3.0.1-pre.100
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 +16098 -0
- package/bundles/openmrs-ngx-formentry.umd.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 +28 -0
- package/components/appointments-overview/appointments-overview.component.d.ts +17 -0
- package/components/check-box/checkbox.component.d.ts +19 -0
- package/components/check-box/checkbox.module.d.ts +9 -0
- package/components/custom-component-wrapper/custom-component-wrapper..module.d.ts +9 -0
- package/components/custom-component-wrapper/custom-component-wrapper.component.d.ts +12 -0
- package/components/custom-control-wrapper/custom-control-wrapper..module.d.ts +10 -0
- package/components/custom-control-wrapper/custom-control-wrapper.component.d.ts +28 -0
- package/components/date-time-picker/date-picker/date-picker.component.d.ts +45 -0
- package/components/date-time-picker/date-time-picker.component.d.ts +28 -0
- package/components/date-time-picker/date-time-picker.module.d.ts +13 -0
- package/components/date-time-picker/index.d.ts +8 -0
- package/components/date-time-picker/picker-modal/modal.component.d.ts +12 -0
- package/components/date-time-picker/pipes/moment.pipe.d.ts +11 -0
- package/components/date-time-picker/time-picker/time-picker.component.d.ts +32 -0
- package/components/file-upload/file-upload.component.d.ts +29 -0
- package/components/file-upload/file-upload.module.d.ts +12 -0
- package/components/file-upload/secure.pipe.d.ts +26 -0
- package/components/input/input.directive.d.ts +31 -0
- package/components/input/input.module.d.ts +11 -0
- package/components/input/label.component.d.ts +90 -0
- package/components/input/text-area.directive.d.ts +24 -0
- package/components/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +21 -0
- package/components/ngx-datetime-picker/ngx-datetime-picker.module.d.ts +11 -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 +12 -0
- package/components/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +76 -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 +108 -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 +137 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +92 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +121 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +149 -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 +20 -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 +156 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time.class.d.ts +89 -0
- package/components/ngx-pick-datetime/lib/date-time/date-time.module.d.ts +23 -0
- package/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.d.ts +10 -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 +128 -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 +58 -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 +11 -0
- package/components/ngx-pick-datetime/lib/dialog/dialog.service.d.ts +73 -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 +40 -0
- package/components/ngx-remote-select/ngx-remote-select.module.d.ts +10 -0
- package/components/ngx-tabset/components/ngx-tab-set.component.d.ts +19 -0
- package/components/ngx-tabset/components/tab.component.d.ts +13 -0
- package/components/ngx-tabset/directives/hover-class.directive.d.ts +11 -0
- package/components/ngx-tabset/modules/ngx-tabset.module.d.ts +19 -0
- package/components/number-input/number-input.component.d.ts +151 -0
- package/components/number-input/number-input.module.d.ts +9 -0
- package/components/radio-button/radio.component.d.ts +22 -0
- package/components/radio-button/radio.module.d.ts +9 -0
- package/components/select/optgroup.directive.d.ts +6 -0
- package/components/select/option.directive.d.ts +6 -0
- package/components/select/select.component.d.ts +115 -0
- package/components/select/select.module.d.ts +11 -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 +101 -0
- package/esm2015/components/appointments-overview/appointments-overview.component.js +121 -0
- package/esm2015/components/check-box/checkbox.component.js +90 -0
- package/esm2015/components/check-box/checkbox.module.js +19 -0
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper..module.js +21 -0
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper.component.js +23 -0
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper..module.js +22 -0
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper.component.js +73 -0
- package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +192 -0
- package/esm2015/components/date-time-picker/date-time-picker.component.js +119 -0
- package/esm2015/components/date-time-picker/date-time-picker.module.js +47 -0
- package/esm2015/components/date-time-picker/index.js +9 -0
- package/esm2015/components/date-time-picker/picker-modal/modal.component.js +31 -0
- package/esm2015/components/date-time-picker/pipes/moment.pipe.js +17 -0
- package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +125 -0
- package/esm2015/components/file-upload/file-upload.component.js +122 -0
- package/esm2015/components/file-upload/file-upload.module.js +39 -0
- package/esm2015/components/file-upload/secure.pipe.js +101 -0
- package/esm2015/components/input/input.directive.js +78 -0
- package/esm2015/components/input/input.module.js +23 -0
- package/esm2015/components/input/label.component.js +263 -0
- package/esm2015/components/input/text-area.directive.js +54 -0
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +80 -0
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +38 -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 +347 -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 +39 -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 +445 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +378 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js +373 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +348 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js +265 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +399 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js +614 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.js +62 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js +70 -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 +528 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.class.js +166 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time.module.js +83 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.js +28 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +96 -0
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +298 -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 +247 -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 +27 -0
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog.service.js +233 -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 +135 -0
- package/esm2015/components/ngx-remote-select/ngx-remote-select.module.js +21 -0
- package/esm2015/components/ngx-tabset/components/ngx-tab-set.component.js +76 -0
- package/esm2015/components/ngx-tabset/components/tab.component.js +37 -0
- package/esm2015/components/ngx-tabset/directives/hover-class.directive.js +30 -0
- package/esm2015/components/ngx-tabset/modules/ngx-tabset.module.js +38 -0
- package/esm2015/components/number-input/number-input.component.js +233 -0
- package/esm2015/components/number-input/number-input.module.js +20 -0
- package/esm2015/components/radio-button/radio.component.js +87 -0
- package/esm2015/components/radio-button/radio.module.js +19 -0
- package/esm2015/components/select/optgroup.directive.js +19 -0
- package/esm2015/components/select/option.directive.js +19 -0
- package/esm2015/components/select/select.component.js +187 -0
- package/esm2015/components/select/select.module.js +23 -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 +32 -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 +172 -0
- package/esm2015/form-entry/directives/historical-value.directive.js +67 -0
- package/esm2015/form-entry/error-renderer/error-renderer.component.js +56 -0
- package/esm2015/form-entry/expression-runner/expression-runner.js +170 -0
- package/esm2015/form-entry/form-entry.module.js +187 -0
- package/esm2015/form-entry/form-factory/control-relations.factory.js +238 -0
- package/esm2015/form-entry/form-factory/form-control.service.js +119 -0
- package/esm2015/form-entry/form-factory/form-node.js +96 -0
- package/esm2015/form-entry/form-factory/form.factory.js +141 -0
- package/esm2015/form-entry/form-factory/form.js +189 -0
- package/esm2015/form-entry/form-factory/hiders-disablers.factory.js +67 -0
- package/esm2015/form-entry/form-factory/question.factory.js +942 -0
- package/esm2015/form-entry/form-factory/show-messages.factory.js +31 -0
- package/esm2015/form-entry/form-factory/validation.factory.js +147 -0
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +268 -0
- package/esm2015/form-entry/helpers/historical-expression-helper-service.js +42 -0
- package/esm2015/form-entry/helpers/historical-field-helper-service.js +39 -0
- package/esm2015/form-entry/helpers/js-expression-helper.js +269 -0
- package/esm2015/form-entry/helpers/risk-dataset-table.js +247 -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/radio-button-options.js +2 -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 +13 -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 +26 -0
- package/esm2015/form-entry/question-models/radio-button.model.js +12 -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 +24 -0
- package/esm2015/form-entry/services/form-errors.service.js +21 -0
- package/esm2015/form-entry/services/form-schema-compiler.service.js +248 -0
- package/esm2015/form-entry/services/historical-encounter-data.service.js +172 -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 +171 -0
- package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +512 -0
- package/esm2015/form-entry/value-adapters/obs.adapter.js +542 -0
- package/esm2015/form-entry/value-adapters/order.adapter.js +186 -0
- package/esm2015/form-entry/value-adapters/person-attribute.adapter.js +88 -0
- package/esm2015/form-entry/value-adapters/value.adapter.js +2 -0
- package/esm2015/lib/index.js +58 -0
- package/esm2015/openmrs-ngx-formentry.js +5 -0
- package/esm2015/public_api.js +2 -0
- package/esm2015/shared.module.js +21 -0
- package/fesm2015/openmrs-ngx-formentry.js +14317 -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 +10 -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 +45 -0
- package/form-entry/directives/historical-value.directive.d.ts +16 -0
- package/form-entry/error-renderer/error-renderer.component.d.ts +18 -0
- package/form-entry/expression-runner/expression-runner.d.ts +18 -0
- package/form-entry/form-entry.module.d.ts +30 -0
- package/form-entry/form-factory/control-relations.factory.d.ts +18 -0
- package/form-entry/form-factory/form-control.service.d.ts +25 -0
- package/form-entry/form-factory/form-node.d.ts +52 -0
- package/form-entry/form-factory/form.d.ts +28 -0
- package/form-entry/form-factory/form.factory.d.ts +27 -0
- package/form-entry/form-factory/hiders-disablers.factory.d.ts +20 -0
- package/form-entry/form-factory/question.factory.d.ts +62 -0
- package/form-entry/form-factory/show-messages.factory.d.ts +15 -0
- package/form-entry/form-factory/validation.factory.d.ts +25 -0
- package/form-entry/form-renderer/form-renderer.component.d.ts +63 -0
- package/form-entry/helpers/historical-expression-helper-service.d.ts +8 -0
- package/form-entry/helpers/historical-field-helper-service.d.ts +7 -0
- package/form-entry/helpers/js-expression-helper.d.ts +29 -0
- package/form-entry/helpers/risk-dataset-table.d.ts +1 -0
- package/form-entry/pipes/time-ago.pipe.d.ts +14 -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 +30 -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/radio-button-options.d.ts +8 -0
- package/form-entry/question-models/interfaces/repeating-question-options.d.ts +7 -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 +16 -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 +45 -0
- package/form-entry/question-models/radio-button.model.d.ts +7 -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 +8 -0
- package/form-entry/services/form-errors.service.d.ts +13 -0
- package/form-entry/services/form-schema-compiler.service.d.ts +23 -0
- package/form-entry/services/historical-encounter-data.service.d.ts +15 -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 +26 -0
- package/form-entry/value-adapters/obs-adapter-helper.d.ts +34 -0
- package/form-entry/value-adapters/obs.adapter.d.ts +38 -0
- package/form-entry/value-adapters/order.adapter.d.ts +20 -0
- package/form-entry/value-adapters/person-attribute.adapter.d.ts +15 -0
- package/form-entry/value-adapters/value.adapter.d.ts +5 -0
- package/lib/index.d.ts +58 -0
- package/openmrs-ngx-formentry.d.ts +5 -0
- package/package.json +34 -0
- package/public_api.d.ts +1 -0
- package/shared.module.d.ts +9 -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,28 @@
|
|
|
1
|
+
import { OnInit } 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
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AfeNgSelectComponent implements ControlValueAccessor, OnInit {
|
|
8
|
+
subject: BehaviorSubject<Option[]>;
|
|
9
|
+
subjectOption: BehaviorSubject<Option>;
|
|
10
|
+
dataSource: DataSource;
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
extras: any;
|
|
13
|
+
question_options: any;
|
|
14
|
+
selected_question_option: any;
|
|
15
|
+
errors: any;
|
|
16
|
+
propagateChange: (_: any) => void;
|
|
17
|
+
getChangingText(event: any): void;
|
|
18
|
+
writeValue(obj: any): void;
|
|
19
|
+
registerOnChange(fn: any): void;
|
|
20
|
+
registerOnTouched(fn: 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
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AfeNgSelectComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AfeNgSelectComponent, "ofe-ng-select", never, { "dataSource": "dataSource"; "multiple": "multiple"; "extras": "extras"; }, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { LeafNode } from '../../form-entry/form-factory/form-node';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AppointmentsOverviewComponent implements OnChanges {
|
|
5
|
+
node: LeafNode;
|
|
6
|
+
showAppointments: boolean;
|
|
7
|
+
loadingAppointments: boolean;
|
|
8
|
+
errorLoadingAppointments: boolean;
|
|
9
|
+
appointmentsLoaded: boolean;
|
|
10
|
+
appointments: Array<any>;
|
|
11
|
+
today: string;
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
resetProperties(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentsOverviewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentsOverviewComponent, "ofe-appointments-overview", never, { "node": "node"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CheckboxControlComponent implements OnInit {
|
|
4
|
+
id: String;
|
|
5
|
+
options: Array<any>;
|
|
6
|
+
selected: Array<any>;
|
|
7
|
+
_value: Array<any>;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
writeValue(value: any): void;
|
|
10
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
11
|
+
registerOnTouched(fn: () => void): void;
|
|
12
|
+
get value(): any;
|
|
13
|
+
set value(v: any);
|
|
14
|
+
selectOpt(option: any, event: any): void;
|
|
15
|
+
private onChange;
|
|
16
|
+
private onTouched;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxControlComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxControlComponent, "ofe-checkbox", never, { "id": "id"; "options": "options"; "selected": "selected"; }, {}, never, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./checkbox.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class CheckboxModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxControlComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CheckboxControlComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-component-wrapper.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular-extensions/elements";
|
|
5
|
+
export declare class CustomComponentWrapperModule {
|
|
6
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<CustomComponentWrapperModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CustomComponentWrapperComponent {
|
|
3
|
+
componentConfigs: Array<{
|
|
4
|
+
tag: '';
|
|
5
|
+
url?: '';
|
|
6
|
+
module?: '';
|
|
7
|
+
detail?: any;
|
|
8
|
+
}>;
|
|
9
|
+
dark: boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomComponentWrapperComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomComponentWrapperComponent, "ofe-custom-component-wrapper", never, { "componentConfigs": "componentConfigs"; "dark": "dark"; }, {}, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-control-wrapper.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular-extensions/elements";
|
|
6
|
+
export declare class CustomControlWrapperModule {
|
|
7
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<CustomControlWrapperModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomControlWrapperComponent implements ControlValueAccessor, OnInit {
|
|
6
|
+
customControlConfig: {
|
|
7
|
+
tag: string;
|
|
8
|
+
url: string;
|
|
9
|
+
module: string;
|
|
10
|
+
};
|
|
11
|
+
question: CustomControlQuestion;
|
|
12
|
+
value: any;
|
|
13
|
+
config: {};
|
|
14
|
+
touched: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
registerOnValidatorChange?(fn: () => void): void;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
onChange: (value: any) => void;
|
|
19
|
+
onTouched: () => void;
|
|
20
|
+
onValueChange(event: any): void;
|
|
21
|
+
writeValue(value: any): void;
|
|
22
|
+
registerOnChange(onChange: any): void;
|
|
23
|
+
registerOnTouched(onTouched: any): void;
|
|
24
|
+
markAsTouched(): void;
|
|
25
|
+
setDisabledState(disabled: boolean): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomControlWrapperComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomControlWrapperComponent, "ofe-custom-control-wrapper", never, { "question": "question"; }, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* date-picker.component
|
|
3
|
+
*/
|
|
4
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Moment } from 'moment';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DatePickerComponent implements OnInit {
|
|
8
|
+
dayNames: Array<string>;
|
|
9
|
+
initDate: any;
|
|
10
|
+
locale: string;
|
|
11
|
+
viewFormat: string;
|
|
12
|
+
returnObject: string;
|
|
13
|
+
datePickerCancel: EventEmitter<boolean>;
|
|
14
|
+
dateSelect: EventEmitter<any>;
|
|
15
|
+
calendarDate: Moment;
|
|
16
|
+
selectedDate: Moment;
|
|
17
|
+
currentMonth: any;
|
|
18
|
+
today: Moment;
|
|
19
|
+
currentYear: number;
|
|
20
|
+
onDisplayMonths: boolean;
|
|
21
|
+
onDisplayYears: boolean;
|
|
22
|
+
displayYearsIndex: number;
|
|
23
|
+
displayYearRange: Array<number>;
|
|
24
|
+
fullYearRange: Array<any>;
|
|
25
|
+
monthsShort: Array<string>;
|
|
26
|
+
calendarDays: Array<Moment>;
|
|
27
|
+
constructor();
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
prev(): void;
|
|
30
|
+
showMonthSelection(): void;
|
|
31
|
+
showYearSelection(): void;
|
|
32
|
+
next(): void;
|
|
33
|
+
selectDay(day: Moment): void;
|
|
34
|
+
selectMonth(month: string): void;
|
|
35
|
+
selectYear(year: number): void;
|
|
36
|
+
selectToday(): void;
|
|
37
|
+
clearPickDate(): void;
|
|
38
|
+
cancelDatePicker(): void;
|
|
39
|
+
protected generateYears(): void;
|
|
40
|
+
protected initValue(): void;
|
|
41
|
+
protected generateCalendar(): void;
|
|
42
|
+
protected parseToReturnObjectType(day: Moment): any;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ofe-date-picker", never, { "initDate": "initDate"; "locale": "locale"; "viewFormat": "viewFormat"; "returnObject": "returnObject"; }, { "datePickerCancel": "datePickerCancel"; "dateSelect": "dateSelect"; }, never, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateTimePickerComponent implements ControlValueAccessor {
|
|
5
|
+
modelValue: any;
|
|
6
|
+
showDate: boolean;
|
|
7
|
+
showTime: boolean;
|
|
8
|
+
showWeeks: boolean;
|
|
9
|
+
weeks: number[];
|
|
10
|
+
dateChange: EventEmitter<any>;
|
|
11
|
+
showDatePicker: boolean;
|
|
12
|
+
showTimePicker: boolean;
|
|
13
|
+
onChange: any;
|
|
14
|
+
onTouched: any;
|
|
15
|
+
constructor();
|
|
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
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "ofe-date-time-picker", never, { "modelValue": "modelValue"; "showDate": "showDate"; "showTime": "showTime"; "showWeeks": "showWeeks"; "weeks": "weeks"; }, { "dateChange": "dateChange"; }, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-picker/date-picker.component";
|
|
3
|
+
import * as i2 from "./time-picker/time-picker.component";
|
|
4
|
+
import * as i3 from "./picker-modal/modal.component";
|
|
5
|
+
import * as i4 from "./pipes/moment.pipe";
|
|
6
|
+
import * as i5 from "./date-time-picker.component";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@angular/forms";
|
|
9
|
+
export declare class DateTimePickerModule {
|
|
10
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<DateTimePickerModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* modal.component
|
|
3
|
+
*/
|
|
4
|
+
import { EventEmitter } from '@angular/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ModalComponent {
|
|
7
|
+
overlayClick: EventEmitter<boolean>;
|
|
8
|
+
constructor();
|
|
9
|
+
closeModal(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "ofe-picker-modal", never, {}, { "overlayClick": "overlayClick"; }, never, ["*"]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* moment.pipe
|
|
3
|
+
*/
|
|
4
|
+
import { PipeTransform } from '@angular/core';
|
|
5
|
+
import { Moment } from 'moment/moment';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MomentPipe implements PipeTransform {
|
|
8
|
+
transform(moment: Moment, format?: string): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MomentPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MomentPipe, "moment">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* time-picker.component
|
|
3
|
+
*/
|
|
4
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Moment } from 'moment';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TimePickerComponent implements OnInit {
|
|
8
|
+
initTime: any;
|
|
9
|
+
showSecond: boolean;
|
|
10
|
+
viewFormat: string;
|
|
11
|
+
use12Hour: boolean;
|
|
12
|
+
returnObject: string;
|
|
13
|
+
timeSelect: EventEmitter<any>;
|
|
14
|
+
timePickerCancel: EventEmitter<boolean>;
|
|
15
|
+
hourFormat: string;
|
|
16
|
+
time: Moment;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
increaseHour(): void;
|
|
20
|
+
decreaseHour(): void;
|
|
21
|
+
increaseMinute(): void;
|
|
22
|
+
decreaseMinute(): void;
|
|
23
|
+
increaseSecond(): void;
|
|
24
|
+
decreaseSecond(): void;
|
|
25
|
+
selectTime(): void;
|
|
26
|
+
selectNow(): void;
|
|
27
|
+
clearTime(): void;
|
|
28
|
+
cancelTimePicker(): void;
|
|
29
|
+
protected parseToReturnObjectType(time: Moment): any;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "ofe-time-picker", never, { "initTime": "initTime"; "showSecond": "showSecond"; "viewFormat": "viewFormat"; "use12Hour": "use12Hour"; "returnObject": "returnObject"; }, { "timeSelect": "timeSelect"; "timePickerCancel": "timePickerCancel"; }, never, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileUploadComponent implements OnInit, ControlValueAccessor {
|
|
6
|
+
private renderer;
|
|
7
|
+
uploading: boolean;
|
|
8
|
+
fileUuid: any;
|
|
9
|
+
pdfUploaded: boolean;
|
|
10
|
+
formEntryMode: boolean;
|
|
11
|
+
pdfUrl: string;
|
|
12
|
+
get dataSource(): DataSource;
|
|
13
|
+
set dataSource(v: DataSource);
|
|
14
|
+
private _dataSource;
|
|
15
|
+
constructor(renderer: Renderer2);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onFileChange(fileList: any): void;
|
|
18
|
+
upload(data: any): void;
|
|
19
|
+
writeValue(value: any): void;
|
|
20
|
+
registerOnChange(fn: any): void;
|
|
21
|
+
registerOnTouched(): void;
|
|
22
|
+
onChange(event: any): void;
|
|
23
|
+
private propagateChange;
|
|
24
|
+
clearValue(): void;
|
|
25
|
+
getPdfUrl(fileUuid: string): void;
|
|
26
|
+
checkFileType(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ofe-file-upload", never, { "dataSource": "dataSource"; }, {}, never, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./file-upload.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../shared.module";
|
|
6
|
+
import * as i5 from "ngx-webcam";
|
|
7
|
+
import * as i6 from "ngx-file-uploader-openmrs";
|
|
8
|
+
export declare class RemoteFileUploadModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteFileUploadModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RemoteFileUploadModule, [typeof i1.FileUploadComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.SharedModule, typeof i5.WebcamModule, typeof i6.NgxFileUploaderModule], [typeof i1.FileUploadComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RemoteFileUploadModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PipeTransform, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SecurePipe implements PipeTransform, OnDestroy {
|
|
5
|
+
private _ref;
|
|
6
|
+
private sanitizer;
|
|
7
|
+
private _latestValue;
|
|
8
|
+
private _latestReturnedValue;
|
|
9
|
+
private _subscription;
|
|
10
|
+
private _obj;
|
|
11
|
+
private getfile;
|
|
12
|
+
private previousUrl;
|
|
13
|
+
private _result;
|
|
14
|
+
private result;
|
|
15
|
+
private _internalSubscription;
|
|
16
|
+
constructor(_ref: ChangeDetectorRef, sanitizer: DomSanitizer);
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
transform(url: string, getfile: any): any;
|
|
19
|
+
private internalTransform;
|
|
20
|
+
private asyncTrasnform;
|
|
21
|
+
private _subscribe;
|
|
22
|
+
private _dispose;
|
|
23
|
+
private _updateLatestValue;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecurePipe, never>;
|
|
25
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SecurePipe, "secure">;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A directive for applying styling to an input element.
|
|
4
|
+
*
|
|
5
|
+
* Example:
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* <input ofeTextInput/>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TextInputDirective {
|
|
14
|
+
/**
|
|
15
|
+
* `light` or `dark` input theme
|
|
16
|
+
*/
|
|
17
|
+
theme: 'light' | 'dark';
|
|
18
|
+
/**
|
|
19
|
+
* Input field render size
|
|
20
|
+
*/
|
|
21
|
+
size: 'sm' | 'md' | 'xl';
|
|
22
|
+
inputClass: boolean;
|
|
23
|
+
get isSizeXl(): boolean;
|
|
24
|
+
get isSizeSm(): boolean;
|
|
25
|
+
invalid: boolean;
|
|
26
|
+
warn: boolean;
|
|
27
|
+
skeleton: boolean;
|
|
28
|
+
get isLightTheme(): boolean;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputDirective, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextInputDirective, "[ofeTextInput]", never, { "theme": "theme"; "size": "size"; "invalid": "invalid"; "warn": "warn"; "skeleton": "skeleton"; }, {}, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./label.component";
|
|
3
|
+
import * as i2 from "./input.directive";
|
|
4
|
+
import * as i3 from "./text-area.directive";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class InputModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputModule, [typeof i1.LabelComponent, typeof i2.TextInputDirective, typeof i3.TextAreaDirective], [typeof i4.CommonModule, typeof i5.FormsModule], [typeof i1.LabelComponent, typeof i2.TextInputDirective, typeof i3.TextAreaDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<InputModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, TemplateRef, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TextAreaDirective } from './text-area.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* [See demo](../../?path=/story/input--label)
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* <ofe-label labelState="success">
|
|
9
|
+
* <label label>Field with success</label>
|
|
10
|
+
* <input type="text" class="input-field">
|
|
11
|
+
* </ofe-label>
|
|
12
|
+
*
|
|
13
|
+
* <ofe-label labelState="warning">
|
|
14
|
+
* <label label>Field with warning</label>
|
|
15
|
+
* <input type="text" class="input-field">
|
|
16
|
+
* </ofe-label>
|
|
17
|
+
*
|
|
18
|
+
* <ofe-label labelState="error">
|
|
19
|
+
* <label label>Field with error</label>
|
|
20
|
+
* <input type="text" class="input-field">
|
|
21
|
+
* </ofe-label>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* <example-url>../../iframe.html?id=input--label</example-url>
|
|
25
|
+
*/
|
|
26
|
+
export declare class LabelComponent implements AfterContentInit, AfterViewInit {
|
|
27
|
+
/**
|
|
28
|
+
* Used to build the id of the input item associated with the `Label`.
|
|
29
|
+
*/
|
|
30
|
+
static labelCounter: number;
|
|
31
|
+
/**
|
|
32
|
+
* The class of the wrapper
|
|
33
|
+
*/
|
|
34
|
+
wrapperClass: string;
|
|
35
|
+
/**
|
|
36
|
+
* The id of the input item associated with the `Label`. This value is also used to associate the `Label` with
|
|
37
|
+
* its input counterpart through the 'for' attribute.
|
|
38
|
+
*/
|
|
39
|
+
labelInputID: string;
|
|
40
|
+
/**
|
|
41
|
+
* State of the `Label` will determine the styles applied.
|
|
42
|
+
*/
|
|
43
|
+
labelState: 'success' | 'warning' | 'error' | '';
|
|
44
|
+
/**
|
|
45
|
+
* Set to `true` for a loading label.
|
|
46
|
+
*/
|
|
47
|
+
skeleton: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Optional helper text that appears under the label.
|
|
50
|
+
*/
|
|
51
|
+
helperText: string | TemplateRef<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the invalid text.
|
|
54
|
+
*/
|
|
55
|
+
invalidText: string | TemplateRef<any>;
|
|
56
|
+
/**
|
|
57
|
+
* Set to `true` for an invalid label component.
|
|
58
|
+
*/
|
|
59
|
+
invalid: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Set to `true` to show a warning (contents set by warningText)
|
|
62
|
+
*/
|
|
63
|
+
warn: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the warning text
|
|
66
|
+
*/
|
|
67
|
+
warnText: string | TemplateRef<any>;
|
|
68
|
+
/**
|
|
69
|
+
* Set the arialabel for label
|
|
70
|
+
*/
|
|
71
|
+
ariaLabel: string;
|
|
72
|
+
wrapper: ElementRef<HTMLDivElement>;
|
|
73
|
+
textArea: TextAreaDirective;
|
|
74
|
+
labelClass: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Creates an instance of LabelComponent.
|
|
77
|
+
*/
|
|
78
|
+
constructor();
|
|
79
|
+
/**
|
|
80
|
+
* Update wrapper class if a textarea is hosted.
|
|
81
|
+
*/
|
|
82
|
+
ngAfterContentInit(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the id on the input item associated with the `Label`.
|
|
85
|
+
*/
|
|
86
|
+
ngAfterViewInit(): void;
|
|
87
|
+
isTemplate(value: any): boolean;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "ofe-label", never, { "labelInputID": "labelInputID"; "labelState": "labelState"; "skeleton": "skeleton"; "helperText": "helperText"; "invalidText": "invalidText"; "invalid": "invalid"; "warn": "warn"; "warnText": "warnText"; "ariaLabel": "ariaLabel"; }, {}, ["textArea"], ["*", "input,textarea,div"]>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A directive for applying styling to a textarea element.
|
|
4
|
+
*
|
|
5
|
+
* Example:
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* <textarea ofeTextAreaInput></textarea>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TextAreaDirective {
|
|
14
|
+
/**
|
|
15
|
+
* `light` or `dark` input theme
|
|
16
|
+
*/
|
|
17
|
+
theme: 'light' | 'dark';
|
|
18
|
+
baseClass: boolean;
|
|
19
|
+
invalid: boolean;
|
|
20
|
+
skeleton: boolean;
|
|
21
|
+
get isLightTheme(): boolean;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextAreaDirective, "[ofeTextAreaInput]", never, { "theme": "theme"; "invalid": "invalid"; "skeleton": "skeleton"; }, {}, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NgxDatetimeComponent implements ControlValueAccessor {
|
|
4
|
+
value: string;
|
|
5
|
+
isDisabled: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
theme: string;
|
|
8
|
+
datePickerFormat: string;
|
|
9
|
+
showWeeks: boolean;
|
|
10
|
+
weeks: number[];
|
|
11
|
+
onChange: (_: any) => void;
|
|
12
|
+
onTouch: () => void;
|
|
13
|
+
onInput($event: any): void;
|
|
14
|
+
writeValue(value: any): void;
|
|
15
|
+
registerOnChange(fn: any): void;
|
|
16
|
+
registerOnTouched(fn: any): void;
|
|
17
|
+
setDisabledState(isDisabled: boolean): void;
|
|
18
|
+
onWeeksSelected(numberOfWeeks: number): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDatetimeComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDatetimeComponent, "ofe-ngx-date-time-picker", never, { "id": "id"; "theme": "theme"; "datePickerFormat": "datePickerFormat"; "showWeeks": "showWeeks"; "weeks": "weeks"; }, {}, never, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ngx-datetime-picker.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../ngx-pick-datetime/lib/date-time/date-time.module";
|
|
6
|
+
import * as i5 from "../ngx-pick-datetime/lib/date-time/adapter/native-date-time.module";
|
|
7
|
+
export declare class NgxDateTimePickerModule {
|
|
8
|
+
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 ɵinj: i0.ɵɵInjectorDeclaration<NgxDateTimePickerModule>;
|
|
11
|
+
}
|