@openmrs/ngx-formentry 17.0.1-pre.462 → 17.0.1-pre.480
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/components/ngx-remote-select/ngx-remote-select.component.d.ts +3 -2
- package/esm2022/components/afe-ng-select.component.mjs +4 -4
- package/esm2022/components/appointments-overview/appointments-overview.component.mjs +3 -3
- package/esm2022/components/check-box/checkbox.component.mjs +3 -3
- package/esm2022/components/check-box/checkbox.module.mjs +4 -4
- package/esm2022/components/custom-component-wrapper/custom-component-wrapper..module.mjs +4 -4
- package/esm2022/components/custom-component-wrapper/custom-component-wrapper.component.mjs +3 -3
- package/esm2022/components/custom-control-wrapper/custom-control-wrapper..module.mjs +4 -4
- package/esm2022/components/custom-control-wrapper/custom-control-wrapper.component.mjs +4 -4
- package/esm2022/components/date-time-picker/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/components/date-time-picker/date-time-picker.component.mjs +3 -3
- package/esm2022/components/date-time-picker/date-time-picker.module.mjs +4 -4
- package/esm2022/components/date-time-picker/picker-modal/modal.component.mjs +3 -3
- package/esm2022/components/date-time-picker/pipes/moment.pipe.mjs +3 -3
- package/esm2022/components/date-time-picker/time-picker/time-picker.component.mjs +3 -3
- package/esm2022/components/file-upload/file-upload.component.mjs +6 -6
- package/esm2022/components/file-upload/file-upload.module.mjs +4 -4
- package/esm2022/components/file-upload/secure.pipe.mjs +3 -3
- package/esm2022/components/input/input.directive.mjs +3 -3
- package/esm2022/components/input/input.module.mjs +4 -4
- package/esm2022/components/input/label.component.mjs +3 -3
- package/esm2022/components/input/text-area.directive.mjs +3 -3
- package/esm2022/components/ngx-datetime-picker/ngx-datetime-picker.component.mjs +3 -3
- package/esm2022/components/ngx-datetime-picker/ngx-datetime-picker.module.mjs +4 -4
- package/esm2022/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time-adapter.class.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/adapter/native-date-time.module.mjs +8 -8
- package/esm2022/components/ngx-pick-datetime/lib/date-time/calendar-body.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/calendar.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-picker-intl.service.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time.class.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/date-time.module.mjs +4 -4
- package/esm2022/components/ngx-pick-datetime/lib/date-time/numberedFixLen.pipe.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/timer-box.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/date-time/timer.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/dialog/dialog-container.component.mjs +3 -3
- package/esm2022/components/ngx-pick-datetime/lib/dialog/dialog.module.mjs +4 -4
- package/esm2022/components/ngx-pick-datetime/lib/dialog/dialog.service.mjs +3 -3
- package/esm2022/components/ngx-remote-select/ngx-remote-select.component.mjs +24 -10
- package/esm2022/components/ngx-remote-select/ngx-remote-select.module.mjs +4 -4
- package/esm2022/components/ngx-tabset/components/ngx-tab-set.component.mjs +3 -3
- package/esm2022/components/ngx-tabset/components/tab.component.mjs +3 -3
- package/esm2022/components/ngx-tabset/directives/hover-class.directive.mjs +3 -3
- package/esm2022/components/ngx-tabset/modules/ngx-tabset.module.mjs +4 -4
- package/esm2022/components/number-input/number-input.component.mjs +3 -3
- package/esm2022/components/number-input/number-input.module.mjs +4 -4
- package/esm2022/components/number-input/number.directive.mjs +3 -3
- package/esm2022/components/radio-button/radio.component.mjs +3 -3
- package/esm2022/components/radio-button/radio.module.mjs +4 -4
- package/esm2022/components/select/optgroup.directive.mjs +3 -3
- package/esm2022/components/select/option.directive.mjs +3 -3
- package/esm2022/components/select/select.component.mjs +3 -3
- package/esm2022/components/select/select.module.mjs +4 -4
- package/esm2022/components/workspace-launcher/workspace-launcher.component.mjs +3 -3
- package/esm2022/components/workspace-launcher/workspace-launcher.module.mjs +4 -4
- package/esm2022/form-entry/data-sources/data-sources.mjs +3 -3
- package/esm2022/form-entry/directives/collapse.directive.mjs +3 -3
- package/esm2022/form-entry/directives/historical-value.directive.mjs +3 -3
- package/esm2022/form-entry/error-renderer/error-renderer.component.mjs +3 -3
- package/esm2022/form-entry/expression-runner/expression-runner.mjs +3 -3
- package/esm2022/form-entry/form-entry.module.mjs +4 -4
- package/esm2022/form-entry/form-factory/control-relations.factory.mjs +3 -3
- package/esm2022/form-entry/form-factory/form-control.service.mjs +3 -3
- package/esm2022/form-entry/form-factory/form.factory.mjs +3 -3
- package/esm2022/form-entry/form-factory/hiders-disablers.factory.mjs +3 -3
- package/esm2022/form-entry/form-factory/question.factory.mjs +45 -4
- package/esm2022/form-entry/form-factory/show-messages.factory.mjs +3 -3
- package/esm2022/form-entry/form-factory/validation.factory.mjs +3 -3
- package/esm2022/form-entry/form-renderer/form-renderer.component.mjs +4 -4
- package/esm2022/form-entry/helpers/historical-expression-helper-service.mjs +3 -3
- package/esm2022/form-entry/helpers/historical-field-helper-service.mjs +3 -3
- package/esm2022/form-entry/helpers/js-expression-helper.mjs +3 -3
- package/esm2022/form-entry/pipes/time-ago.pipe.mjs +3 -3
- package/esm2022/form-entry/question-models/interfaces/data-source.mjs +1 -1
- package/esm2022/form-entry/question-models/interfaces/remote-select-question-options.mjs +2 -0
- package/esm2022/form-entry/question-models/question-base.mjs +1 -1
- package/esm2022/form-entry/question-models/remote-select-question.mjs +12 -0
- package/esm2022/form-entry/services/debug-mode.service.mjs +3 -3
- package/esm2022/form-entry/services/form-errors.service.mjs +3 -3
- package/esm2022/form-entry/services/form-schema-compiler.service.mjs +3 -3
- package/esm2022/form-entry/services/historical-encounter-data.service.mjs +3 -3
- package/esm2022/form-entry/value-adapters/diagnosis.adapter.mjs +3 -3
- package/esm2022/form-entry/value-adapters/encounter.adapter.mjs +3 -3
- package/esm2022/form-entry/value-adapters/obs-adapter-helper.mjs +3 -3
- package/esm2022/form-entry/value-adapters/obs.adapter.mjs +3 -3
- package/esm2022/form-entry/value-adapters/order.adapter.mjs +3 -3
- package/esm2022/form-entry/value-adapters/patient-identifier.adapter.mjs +3 -3
- package/esm2022/form-entry/value-adapters/person-attribute.adapter.mjs +3 -3
- package/esm2022/shared.module.mjs +4 -4
- package/fesm2022/openmrs-ngx-formentry.mjs +369 -305
- package/fesm2022/openmrs-ngx-formentry.mjs.map +1 -1
- package/form-entry/form-factory/question.factory.d.ts +3 -0
- package/form-entry/question-models/interfaces/data-source.d.ts +2 -2
- package/form-entry/question-models/interfaces/remote-select-question-options.d.ts +5 -0
- package/form-entry/question-models/question-base.d.ts +1 -1
- package/form-entry/question-models/remote-select-question.d.ts +7 -0
- package/package.json +10 -10
|
@@ -16,6 +16,7 @@ import { CheckBoxQuestion } from '../question-models/models';
|
|
|
16
16
|
import { RadioButtonQuestion } from '../question-models/models';
|
|
17
17
|
import { DiagnosisQuestion } from '../question-models/diagnosis-question';
|
|
18
18
|
import { WorkspaceLauncherQuestion } from '../question-models';
|
|
19
|
+
import { RemoteSelectQuestion } from '../question-models/remote-select-question';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export declare class QuestionFactory {
|
|
21
22
|
dataSources: any;
|
|
@@ -49,6 +50,8 @@ export declare class QuestionFactory {
|
|
|
49
50
|
toEncounterLocationQuestion(schemaQuestion: any): UiSelectQuestion;
|
|
50
51
|
toTestOrderQuestion(schemaQuestion: any): TestOrderQuestion;
|
|
51
52
|
toDiagnosisQuestion(schemaQuestion: any): DiagnosisQuestion;
|
|
53
|
+
toRemoteSelectQuestion(schemaQuestion: any): RemoteSelectQuestion;
|
|
54
|
+
private getDataSourceConfig;
|
|
52
55
|
toDecimalQuestion(schemaQuestion: any): TextInputQuestion;
|
|
53
56
|
toWorkspaceLauncher(schemaQuestion: any): WorkspaceLauncherQuestion;
|
|
54
57
|
getSchemaQuestions(schema: any): any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SelectOption } from './select-option';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export interface DataSource {
|
|
4
|
-
dataSourceOptions?:
|
|
4
|
+
dataSourceOptions?: Record<string, unknown>;
|
|
5
5
|
dataFromSourceChanged?: Observable<SelectOption[]>;
|
|
6
6
|
resolveSelectedValue(value: any): Observable<SelectOption>;
|
|
7
|
-
searchOptions(searchText: any): Observable<SelectOption[]>;
|
|
7
|
+
searchOptions(searchText: any, dataSourceOptions?: Record<string, unknown>): Observable<SelectOption[]>;
|
|
8
8
|
fileUpload(data: any): Observable<any>;
|
|
9
9
|
fetchFile(url: string, fileType?: string): Observable<any>;
|
|
10
10
|
}
|
|
@@ -27,7 +27,7 @@ export declare class QuestionBase implements BaseOptions {
|
|
|
27
27
|
historicalDataValue?: any;
|
|
28
28
|
extras?: any;
|
|
29
29
|
dataSource?: string;
|
|
30
|
-
dataSourceOptions?:
|
|
30
|
+
dataSourceOptions?: Record<string, unknown>;
|
|
31
31
|
controlType?: AfeControlType;
|
|
32
32
|
validators?: Array<ValidationModel>;
|
|
33
33
|
required?: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuestionBase } from './question-base';
|
|
2
|
+
import { RemoteSelectQuestionOptions } from './interfaces/remote-select-question-options';
|
|
3
|
+
export declare class RemoteSelectQuestion extends QuestionBase {
|
|
4
|
+
rendering: string;
|
|
5
|
+
options: any[];
|
|
6
|
+
constructor(options: RemoteSelectQuestionOptions);
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/ngx-formentry",
|
|
3
|
-
"version": "17.0.1-pre.
|
|
3
|
+
"version": "17.0.1-pre.480",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/animations": "^
|
|
9
|
-
"@angular/cdk": "^
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/compiler": "^
|
|
12
|
-
"@angular/compiler-cli": "^
|
|
13
|
-
"@angular/core": "^
|
|
14
|
-
"@angular/forms": "^
|
|
8
|
+
"@angular/animations": "^18.2.13",
|
|
9
|
+
"@angular/cdk": "^18.2.13",
|
|
10
|
+
"@angular/common": "^18.2.13",
|
|
11
|
+
"@angular/compiler": "^18.2.13",
|
|
12
|
+
"@angular/compiler-cli": "^18.2.13",
|
|
13
|
+
"@angular/core": "^18.2.13",
|
|
14
|
+
"@angular/forms": "^18.2.13",
|
|
15
15
|
"@carbon/styles": "1.x",
|
|
16
|
-
"@ng-select/ng-select": "^
|
|
17
|
-
"@ngx-translate/core": "^
|
|
16
|
+
"@ng-select/ng-select": "^13.9.1",
|
|
17
|
+
"@ngx-translate/core": "^16.0.4",
|
|
18
18
|
"@openmrs/ngx-file-uploader": "next",
|
|
19
19
|
"lodash": "^4.17.21",
|
|
20
20
|
"moment": "^2.29.4",
|