@ampath-kenya/ngx-openmrs-formentry 2.12.13 → 2.12.16

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.
Files changed (39) hide show
  1. package/ampath-kenya-ngx-openmrs-formentry.d.ts +23 -21
  2. package/ampath-kenya-ngx-openmrs-formentry.metadata.json +1 -1
  3. package/ampath-kenya-ngx-openmrs-formentry.metadata.json-e +1 -0
  4. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.js +140 -15
  5. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.js.map +1 -1
  6. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.min.js +1 -1
  7. package/bundles/ampath-kenya-ngx-openmrs-formentry.umd.min.js.map +1 -1
  8. package/components/ngx-time-picker/ngx-time-picker.component.d.ts +13 -0
  9. package/components/ngx-time-picker/ngx-time-picker.module.d.ts +2 -0
  10. package/esm2015/ampath-kenya-ngx-openmrs-formentry.js +14 -12
  11. package/esm2015/components/ngx-time-picker/ngx-time-picker.component.js +79 -0
  12. package/esm2015/components/ngx-time-picker/ngx-time-picker.module.js +23 -0
  13. package/esm2015/form-entry/form-entry.module.js +5 -2
  14. package/esm2015/form-entry/form-factory/question.factory.js +21 -1
  15. package/esm2015/form-entry/form-renderer/form-renderer.component.css.js +7 -1
  16. package/esm2015/form-entry/form-renderer/form-renderer.component.js +6 -1
  17. package/esm2015/form-entry/question-models/interfaces/time-question-options.js +1 -0
  18. package/esm2015/form-entry/question-models/question-base.js +1 -1
  19. package/esm2015/form-entry/question-models/time-question.js +10 -0
  20. package/esm5/ampath-kenya-ngx-openmrs-formentry.js +14 -12
  21. package/esm5/components/ngx-time-picker/ngx-time-picker.component.js +75 -0
  22. package/esm5/components/ngx-time-picker/ngx-time-picker.module.js +27 -0
  23. package/esm5/form-entry/form-entry.module.js +5 -2
  24. package/esm5/form-entry/form-factory/question.factory.js +21 -1
  25. package/esm5/form-entry/form-renderer/form-renderer.component.css.js +2 -2
  26. package/esm5/form-entry/form-renderer/form-renderer.component.js +2 -2
  27. package/esm5/form-entry/question-models/interfaces/time-question-options.js +1 -0
  28. package/esm5/form-entry/question-models/question-base.js +1 -1
  29. package/esm5/form-entry/question-models/time-question.js +15 -0
  30. package/fesm2015/ampath-kenya-ngx-openmrs-formentry.js +137 -4
  31. package/fesm2015/ampath-kenya-ngx-openmrs-formentry.js.map +1 -1
  32. package/fesm5/ampath-kenya-ngx-openmrs-formentry.js +129 -6
  33. package/fesm5/ampath-kenya-ngx-openmrs-formentry.js.map +1 -1
  34. package/form-entry/form-factory/question.factory.d.ts +2 -0
  35. package/form-entry/form-renderer/form-renderer.component.css.d.ts +1 -1
  36. package/form-entry/question-models/interfaces/time-question-options.d.ts +3 -0
  37. package/form-entry/question-models/question-base.d.ts +3 -0
  38. package/form-entry/question-models/time-question.d.ts +5 -0
  39. package/package.json +1 -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 ";
@@ -0,0 +1,3 @@
1
+ import { BaseOptions } from '../interfaces/base-options';
2
+ export interface TimeQuestionOptions extends BaseOptions {
3
+ }
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { QuestionBase } from './question-base';
2
+ import { TimeQuestionOptions } from './interfaces/time-question-options';
3
+ export declare class TimeQuestion extends QuestionBase {
4
+ constructor(options: TimeQuestionOptions);
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampath-kenya/ngx-openmrs-formentry",
3
- "version": "2.12.13",
3
+ "version": "2.12.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^6.1.0",
6
6
  "@angular/core": "^6.1.0",