@ampath-kenya/ngx-openmrs-formentry 2.12.14 → 2.12.15
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/bundles/ngx-openmrs-formentry.umd.js +140 -15
- package/bundles/ngx-openmrs-formentry.umd.js.map +1 -1
- package/bundles/ngx-openmrs-formentry.umd.min.js +1 -1
- package/bundles/ngx-openmrs-formentry.umd.min.js.map +1 -1
- package/components/ngx-time-picker/ngx-time-picker.component.d.ts +13 -0
- package/components/ngx-time-picker/ngx-time-picker.module.d.ts +2 -0
- package/esm2015/components/ngx-time-picker/ngx-time-picker.component.js +79 -0
- package/esm2015/components/ngx-time-picker/ngx-time-picker.module.js +23 -0
- package/esm2015/form-entry/form-entry.module.js +5 -2
- package/esm2015/form-entry/form-factory/question.factory.js +21 -1
- package/esm2015/form-entry/form-renderer/form-renderer.component.css.js +7 -1
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +6 -1
- package/esm2015/form-entry/question-models/interfaces/time-question-options.js +1 -0
- package/esm2015/form-entry/question-models/question-base.js +1 -1
- package/esm2015/form-entry/question-models/time-question.js +10 -0
- package/esm2015/ngx-openmrs-formentry.js +14 -12
- package/esm5/components/ngx-time-picker/ngx-time-picker.component.js +75 -0
- package/esm5/components/ngx-time-picker/ngx-time-picker.module.js +27 -0
- package/esm5/form-entry/form-entry.module.js +5 -2
- package/esm5/form-entry/form-factory/question.factory.js +21 -1
- package/esm5/form-entry/form-renderer/form-renderer.component.css.js +2 -2
- package/esm5/form-entry/form-renderer/form-renderer.component.js +2 -2
- package/esm5/form-entry/question-models/interfaces/time-question-options.js +1 -0
- package/esm5/form-entry/question-models/question-base.js +1 -1
- package/esm5/form-entry/question-models/time-question.js +15 -0
- package/esm5/ngx-openmrs-formentry.js +14 -12
- package/fesm2015/ngx-openmrs-formentry.js +137 -4
- package/fesm2015/ngx-openmrs-formentry.js.map +1 -1
- package/fesm5/ngx-openmrs-formentry.js +128 -5
- package/fesm5/ngx-openmrs-formentry.js.map +1 -1
- package/form-entry/form-factory/question.factory.d.ts +2 -0
- package/form-entry/form-renderer/form-renderer.component.css.d.ts +1 -1
- package/form-entry/question-models/interfaces/time-question-options.d.ts +3 -0
- package/form-entry/question-models/question-base.d.ts +3 -0
- package/form-entry/question-models/time-question.d.ts +5 -0
- package/ngx-openmrs-formentry.d.ts +23 -21
- package/ngx-openmrs-formentry.metadata.json +1 -1
- package/ngx-openmrs-formentry.metadata.json-e +1 -1
- package/package.json +4 -1
|
@@ -3,6 +3,7 @@ import { TextAreaInputQuestion } from '../question-models/text-area-input-questi
|
|
|
3
3
|
import { SelectQuestion } from '../question-models/select-question';
|
|
4
4
|
import { UiSelectQuestion } from '../question-models/ui-select-question';
|
|
5
5
|
import { DateQuestion } from '../question-models/date-question';
|
|
6
|
+
import { TimeQuestion } from './../question-models/time-question';
|
|
6
7
|
import { MultiSelectQuestion } from '../question-models/multi-select-question';
|
|
7
8
|
import { QuestionGroup } from '../question-models/group-question';
|
|
8
9
|
import { RepeatingQuestion } from '../question-models/repeating-question';
|
|
@@ -22,6 +23,7 @@ export declare class QuestionFactory {
|
|
|
22
23
|
toNumericQuestion(schemaQuestion: any): TextInputQuestion;
|
|
23
24
|
toNumberQuestion(schemaQuestion: any): TextInputQuestion;
|
|
24
25
|
toDateQuestion(schemaQuestion: any): DateQuestion;
|
|
26
|
+
toTimeQuestion(schemaQuestion: any): TimeQuestion;
|
|
25
27
|
toEncounterDatetimeQuestion(schemaQuestion: any): DateQuestion;
|
|
26
28
|
toCheckBoxQuestion(schemaQuestion: any): CheckBoxQuestion;
|
|
27
29
|
toMultiCheckboxQuestion(schemaQuestion: any): MultiSelectQuestion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DEFAULT_STYLES = "a {\n color: white;\n text-decoration: none;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n ul {\n list-style-type: none;\n margin: 2px auto;\n position: relative;\n }\n\n li {\n display: block;\n padding: 10px 20px;\n white-space: nowrap;\n transition: all 0.3s ease-in;\n border-bottom: 4px solid transparent;\n }\n\n li:hover {\n border-bottom: 4px solid white;\n opacity: 0.7;\n cursor: pointer;\n }\n\n .owl-theme .owl-controls .owl-nav {\n position: absolute;\n width: 100%;\n top: 0;\n }\n\n .owl-theme .owl-controls .owl-nav [class*=\"owl-\"] {\n position: absolute;\n background: none;\n color: black;\n }\n\n .owl-theme .owl-controls .owl-nav [class*=\"owl-\"]:hover {\n background: none;\n color: black;\n }\n\n .owl-theme .owl-controls .owl-nav .owl-next {\n right: 0;\n transform: translate(120%);\n }\n\n .owl-theme .owl-controls .owl-nav .owl-prev {\n left: 0;\n transform: translate(-120%);\n }\n\n .slick-initialized .swipe-tab-content {\n position: relative;\n min-height: 365px;\n }\n @media screen and (min-width: 767px) {\n .slick-initialized .swipe-tab-content {\n min-height: 500px;\n }\n }\n .slick-initialized .swipe-tab {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 50px;\n background: none;\n border: 0;\n color: #757575;\n cursor: pointer;\n text-align: center;\n border-bottom: 2px solid rgba(51, 122, 183, 0);\n transition: all 0.5s;\n }\n .slick-initialized .swipe-tab:hover {\n color: #337AB7;\n }\n .slick-initialized .swipe-tab.active-tab {\n border-bottom-color: #337AB7;\n color: #337AB7;\n font-weight: bold;\n }\n\n .disabled {\n opacity: .5;\n pointer-events: none;\n }\n\n .select2-container {\n margin-top: -5px;\n }\n\n .btn {\n padding: 0px 12px !important;\n }\n\n .form-tooltip{\n color:rgb(51, 122, 183);\n display: inline-block;\n }\n .question-info{\n opacity:0;\n height:0px;\n display: none;\n transition-duration: opacity 1s ease-out;\n transtion-delay: 0.5s;\n padding-top: 2px;\n padding-bottom: 2px;\n color: #696969;\n border-style: ridge;\n border-width: 1px;\n border-color: #337ab7;\n margin-top: 2px;\n }\n .hide-info{\n display:none;\n height:0px;\n }\n .form-tooltip:hover ~ .question-info {\n display:block;\n opacity:1;\n height:auto;\n }\n .form-tooltip .tooltipcontent::after {\n content: \" \";\n position: absolute;\n bottom: 100%; /* At the top of the tooltip */\n right: 0%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-top-color: transparent;\n border-right-color: transparent;\n border-bottom-color: #337ab7;\n border-left-color: transparent;\n }\n\n ng-select.form-control {\n padding-top: 0;\n height: auto;\n padding-bottom: 0;\n }\n\n .forms-dropdown-menu {\n max-height: 450px;\n overflow-y: scroll;\n }\n .no-border {\n border: 0;\n box-shadow: none;\n}\n\n ";
|
|
1
|
+
export declare const DEFAULT_STYLES = "a {\n color: white;\n text-decoration: none;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n ul {\n list-style-type: none;\n margin: 2px auto;\n position: relative;\n }\n\n li {\n display: block;\n padding: 10px 20px;\n white-space: nowrap;\n transition: all 0.3s ease-in;\n border-bottom: 4px solid transparent;\n }\n\n li:hover {\n border-bottom: 4px solid white;\n opacity: 0.7;\n cursor: pointer;\n }\n\n .owl-theme .owl-controls .owl-nav {\n position: absolute;\n width: 100%;\n top: 0;\n }\n\n .owl-theme .owl-controls .owl-nav [class*=\"owl-\"] {\n position: absolute;\n background: none;\n color: black;\n }\n\n .owl-theme .owl-controls .owl-nav [class*=\"owl-\"]:hover {\n background: none;\n color: black;\n }\n\n .owl-theme .owl-controls .owl-nav .owl-next {\n right: 0;\n transform: translate(120%);\n }\n\n .owl-theme .owl-controls .owl-nav .owl-prev {\n left: 0;\n transform: translate(-120%);\n }\n\n .slick-initialized .swipe-tab-content {\n position: relative;\n min-height: 365px;\n }\n @media screen and (min-width: 767px) {\n .slick-initialized .swipe-tab-content {\n min-height: 500px;\n }\n .time-control{\n width:50%;\n }\n }\n .slick-initialized .swipe-tab {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 50px;\n background: none;\n border: 0;\n color: #757575;\n cursor: pointer;\n text-align: center;\n border-bottom: 2px solid rgba(51, 122, 183, 0);\n transition: all 0.5s;\n }\n .slick-initialized .swipe-tab:hover {\n color: #337AB7;\n }\n .slick-initialized .swipe-tab.active-tab {\n border-bottom-color: #337AB7;\n color: #337AB7;\n font-weight: bold;\n }\n\n .disabled {\n opacity: .5;\n pointer-events: none;\n }\n\n .select2-container {\n margin-top: -5px;\n }\n\n .btn {\n padding: 0px 12px !important;\n }\n\n .form-tooltip{\n color:rgb(51, 122, 183);\n display: inline-block;\n }\n .question-info{\n opacity:0;\n height:0px;\n display: none;\n transition-duration: opacity 1s ease-out;\n transtion-delay: 0.5s;\n padding-top: 2px;\n padding-bottom: 2px;\n color: #696969;\n border-style: ridge;\n border-width: 1px;\n border-color: #337ab7;\n margin-top: 2px;\n }\n .hide-info{\n display:none;\n height:0px;\n }\n .form-tooltip:hover ~ .question-info {\n display:block;\n opacity:1;\n height:auto;\n }\n .form-tooltip .tooltipcontent::after {\n content: \" \";\n position: absolute;\n bottom: 100%; /* At the top of the tooltip */\n right: 0%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n border-top-color: transparent;\n border-right-color: transparent;\n border-bottom-color: #337ab7;\n border-left-color: transparent;\n }\n\n ng-select.form-control {\n padding-top: 0;\n height: auto;\n padding-bottom: 0;\n }\n\n .forms-dropdown-menu {\n max-height: 450px;\n overflow-y: scroll;\n }\n .no-border {\n border: 0;\n box-shadow: none;\n}\n.time-control{\n width:100%;\n}\n\n ";
|
|
@@ -10,6 +10,7 @@ export declare class QuestionBase implements BaseOptions {
|
|
|
10
10
|
hidden?: any;
|
|
11
11
|
showTime?: any;
|
|
12
12
|
showWeek?: any;
|
|
13
|
+
showDate?: boolean;
|
|
13
14
|
historicalDisplay?: any;
|
|
14
15
|
rows?: any;
|
|
15
16
|
showWeeksAdder?: any;
|
|
@@ -32,6 +33,8 @@ export declare class QuestionBase implements BaseOptions {
|
|
|
32
33
|
disable?: string | boolean;
|
|
33
34
|
calculateExpression?: string;
|
|
34
35
|
options?: any;
|
|
36
|
+
maxTime?: string;
|
|
37
|
+
minTime?: string;
|
|
35
38
|
constructor(options: BaseOptions);
|
|
36
39
|
setHistoricalValue(v: boolean): void;
|
|
37
40
|
showHistoricalEncounterDate(v?: boolean): void;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
export { AfeNgSelectComponent as
|
|
6
|
-
export { AppointmentsOverviewComponent as
|
|
5
|
+
export { AfeNgSelectComponent as ɵbg } from './components/afe-ng-select.component';
|
|
6
|
+
export { AppointmentsOverviewComponent as ɵbh } from './components/appointments-overview/appointments-overview.component';
|
|
7
7
|
export { CheckboxControlComponent as ɵz } from './components/check-box/checkbox.component';
|
|
8
8
|
export { CheckboxModule as ɵy } from './components/check-box/checkbox.module';
|
|
9
9
|
export { DatePickerComponent as ɵg } from './components/date-time-picker/date-picker/date-picker.component';
|
|
@@ -15,6 +15,8 @@ export { FileUploadComponent as ɵq } from './components/file-upload/file-upload
|
|
|
15
15
|
export { RemoteFileUploadModule as ɵn } from './components/file-upload/file-upload.module';
|
|
16
16
|
export { SecurePipe as ɵp } from './components/file-upload/secure.pipe';
|
|
17
17
|
export { MY_FORMATS as ɵba, NgxDateTimePickerComponent as ɵbb } from './components/ngx-date-time-picker/ngx-date-time-picker.component';
|
|
18
|
+
export { NgxTimePickerComponent as ɵbd } from './components/ngx-time-picker/ngx-time-picker.component';
|
|
19
|
+
export { NgxTimePickerModule as ɵbc } from './components/ngx-time-picker/ngx-time-picker.module';
|
|
18
20
|
export { RemoteSelectComponent as ɵm } from './components/remote-select/remote-select.component';
|
|
19
21
|
export { RemoteSelectModule as ɵl } from './components/remote-select/remote-select.module';
|
|
20
22
|
export { SelectDropdownComponent as ɵe } from './components/select/select-dropdown.component';
|
|
@@ -29,23 +31,23 @@ export { EncounterContainerComponent as ɵu } from './encounter-viewer/encounter
|
|
|
29
31
|
export { EncounterViewerComponent as ɵs } from './encounter-viewer/encounter-view/encounter-viewer.component';
|
|
30
32
|
export { EncounterViewerModule as ɵr } from './encounter-viewer/encounter-viewer.module';
|
|
31
33
|
export { EncounterViewerService as ɵt } from './encounter-viewer/encounter-viewer.service';
|
|
32
|
-
export { HistoricalValueDirective as
|
|
33
|
-
export { ErrorRendererComponent as
|
|
34
|
-
export { ExpressionRunner as
|
|
35
|
-
export { HidersDisablersFactory as
|
|
36
|
-
export { AlertsFactory as
|
|
37
|
-
export { FormRendererComponent as
|
|
38
|
-
export { DEFAULT_STYLES as
|
|
39
|
-
export { HistoricalFieldHelperService as
|
|
40
|
-
export { CheckboxOptions as
|
|
41
|
-
export { DateQuestionOptions as
|
|
42
|
-
export { FileUploadQuestionOptions as
|
|
43
|
-
export { MultiSelectQuestionOptions as
|
|
44
|
-
export { SelectOption as
|
|
45
|
-
export { SelectQuestionOptions as
|
|
46
|
-
export { TestOrderQuestionOptions as
|
|
47
|
-
export { TextAreaQuestionOptions as
|
|
48
|
-
export { TextQuestionOptions as
|
|
49
|
-
export { UiSelectQuestionOptions as
|
|
50
|
-
export { DebugModeService as
|
|
34
|
+
export { HistoricalValueDirective as ɵbi } from './form-entry/directives/historical-value-directive';
|
|
35
|
+
export { ErrorRendererComponent as ɵbk } from './form-entry/error-renderer/error-renderer.component';
|
|
36
|
+
export { ExpressionRunner as ɵbm } from './form-entry/expression-runner/expression-runner';
|
|
37
|
+
export { HidersDisablersFactory as ɵbl } from './form-entry/form-factory/hiders-disablers.factory';
|
|
38
|
+
export { AlertsFactory as ɵbo } from './form-entry/form-factory/show-messages.factory';
|
|
39
|
+
export { FormRendererComponent as ɵbe } from './form-entry/form-renderer/form-renderer.component';
|
|
40
|
+
export { DEFAULT_STYLES as ɵbf } from './form-entry/form-renderer/form-renderer.component.css';
|
|
41
|
+
export { HistoricalFieldHelperService as ɵbj } from './form-entry/helpers/historical-field-helper-service';
|
|
42
|
+
export { CheckboxOptions as ɵbp } from './form-entry/question-models/interfaces/checkbox-options';
|
|
43
|
+
export { DateQuestionOptions as ɵbq } from './form-entry/question-models/interfaces/date-question-options';
|
|
44
|
+
export { FileUploadQuestionOptions as ɵbr } from './form-entry/question-models/interfaces/file-upload-question-options';
|
|
45
|
+
export { MultiSelectQuestionOptions as ɵbt } from './form-entry/question-models/interfaces/multi-select-options';
|
|
46
|
+
export { SelectOption as ɵbu } from './form-entry/question-models/interfaces/select-option';
|
|
47
|
+
export { SelectQuestionOptions as ɵbs } from './form-entry/question-models/interfaces/select-question-options';
|
|
48
|
+
export { TestOrderQuestionOptions as ɵbv } from './form-entry/question-models/interfaces/test-order-question-options';
|
|
49
|
+
export { TextAreaQuestionOptions as ɵbx } from './form-entry/question-models/interfaces/text-area-question-options';
|
|
50
|
+
export { TextQuestionOptions as ɵbw } from './form-entry/question-models/interfaces/text-question-options';
|
|
51
|
+
export { UiSelectQuestionOptions as ɵby } from './form-entry/question-models/interfaces/ui-select-question-options';
|
|
52
|
+
export { DebugModeService as ɵbn } from './form-entry/services/debug-mode.service';
|
|
51
53
|
export { SharedModule as ɵo } from './shared.module';
|