react-jsonschema-rxnt-extras 0.4.4 → 0.4.5

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.
@@ -108,8 +108,8 @@ var TextInput = function (_Component) {
108
108
 
109
109
  return TextInput;
110
110
  }(_react.Component);
111
- /**
112
- * TypeaheadInput- Displays a Typeahead Component
111
+ /**
112
+ * TypeaheadInput- Displays a Typeahead Component
113
113
  */
114
114
 
115
115
 
@@ -154,8 +154,8 @@ var TypeaheadInput = function (_Component2) {
154
154
  return _this2;
155
155
  }
156
156
 
157
- /**
158
- * handles changes selection in the typeahead
157
+ /**
158
+ * handles changes selection in the typeahead
159
159
  */
160
160
 
161
161
 
@@ -1,134 +1,134 @@
1
- /*Styles for select all dropdown*/
2
- .select-all-checkbox-wrapper {
3
- display: flex;
4
- justify-content: flex-start;
5
- align-items: center;
6
- margin-right: 10px;
7
- }
8
-
9
- .select-all-checkbox-wrapper input[type="checkbox"] {
10
- border-radius: 2.7px !important;
11
- border: solid 1.3px #003b5c !important;
12
- height: 16px !important;
13
- margin-left: 0px;
14
- margin-right: 1px;
15
- outline: none;
16
- width: 16px !important;
17
- }
18
-
19
- .select-all-checkbox-wrapper input[type="checkbox"]:checked,
20
- .select-all-indeterminate input[type="checkbox"] {
21
- background-color: #003b5c !important;
22
- }
23
-
24
- .select-all-checkbox-wrapper input[type="checkbox"]:checked::after {
25
- content: "";
26
- color: #fff;
27
- width: 10px;
28
- height: 4.5px;
29
- border: 2px solid #fff;
30
- border-top: none;
31
- border-right: none;
32
- transform: rotate(-45deg);
33
- margin-top: 3px;
34
- margin-left: 2px;
35
- }
36
-
37
- .select-all-indeterminate input[type="checkbox"]:after {
38
- content: "";
39
- color: white;
40
- width: 10px;
41
- height: 4.5px;
42
- border: 2px solid white;
43
- border-top: none;
44
- border-right: none;
45
- border-left: none;
46
- margin-top: 3px;
47
- margin-left: 2px;
48
- }
49
-
50
- .select-all-button {
51
- background-color: transparent;
52
- border: none;
53
- border-radius: none;
54
- padding: 0;
55
- margin: 0;
56
- }
57
-
58
- .select-all-dropdown {
59
- border: none;
60
- background-color: white;
61
- border-radius: 0;
62
- width: 140px;
63
- box-shadow: 0 6px 17px 0 rgba(0, 7, 32, 0.07);
64
- }
65
-
66
- .select-all-dropdown li {
67
- border: none;
68
- background-color: white;
69
- padding: 12px;
70
- width: 100%;
71
- height: 40px;
72
- display: flex;
73
- align-items: center;
74
- }
75
-
76
- .select-all-dropdown li:hover {
77
- cursor: pointer;
78
- background-color: #f5f7f7;
79
- }
80
-
81
- /*Bulk delete table*/
82
-
83
- .bulk-delete-wrapper .react-bs-select-all {
84
- visibility: hidden;
85
- }
86
-
87
- .bulk-delete-wrapper .header-row {
88
- align-items: stretch;
89
- display: inline-flex;
90
- justify-content: flex-start;
91
- margin-bottom: 10px;
92
- margin-left: 17px;
93
- }
94
-
95
- .bulk-delete-wrapper tr td:first-child {
96
- border-right: none !important;
97
- }
98
-
99
- .bulk-delete-wrapper table input[type="checkbox"] {
100
- border-radius: 2.7px;
101
- border: solid 1.3px #003b5c;
102
- height: 16px;
103
- margin-left: 0px;
104
- margin-right: 10px;
105
- outline: none;
106
- width: 16px;
107
- }
108
-
109
- .bulk-delete-wrapper table input[type="checkbox"]:checked:after {
110
- background-color: #003b5c !important;
111
- border-color: #fff !important;
112
- margin-left: 0px !important;
113
- }
114
-
115
- .bulk-delete-wrapper table input[type="checkbox"]:checked {
116
- background-color: #003b5c !important;
117
- }
118
-
119
- .bulk-delete-wrapper .delete-button {
120
- cursor: pointer;
121
- }
122
-
123
- /*AsyncMultiTypeahead styles*/
124
- .async-multi-typeahead-wrapper .MuiInputBase-input {
125
- border: none !important;
126
- outline: none !important;
127
- box-shadow: none !important;
128
- }
129
-
130
- .async-multi-typeahead-wrapper .MuiInputBase-input:focus {
131
- border: none !important;
132
- outline: none !important;
133
- box-shadow: none !important;
134
- }
1
+ /*Styles for select all dropdown*/
2
+ .select-all-checkbox-wrapper {
3
+ display: flex;
4
+ justify-content: flex-start;
5
+ align-items: center;
6
+ margin-right: 10px;
7
+ }
8
+
9
+ .select-all-checkbox-wrapper input[type="checkbox"] {
10
+ border-radius: 2.7px !important;
11
+ border: solid 1.3px #003b5c !important;
12
+ height: 16px !important;
13
+ margin-left: 0px;
14
+ margin-right: 1px;
15
+ outline: none;
16
+ width: 16px !important;
17
+ }
18
+
19
+ .select-all-checkbox-wrapper input[type="checkbox"]:checked,
20
+ .select-all-indeterminate input[type="checkbox"] {
21
+ background-color: #003b5c !important;
22
+ }
23
+
24
+ .select-all-checkbox-wrapper input[type="checkbox"]:checked::after {
25
+ content: "";
26
+ color: #fff;
27
+ width: 10px;
28
+ height: 4.5px;
29
+ border: 2px solid #fff;
30
+ border-top: none;
31
+ border-right: none;
32
+ transform: rotate(-45deg);
33
+ margin-top: 3px;
34
+ margin-left: 2px;
35
+ }
36
+
37
+ .select-all-indeterminate input[type="checkbox"]:after {
38
+ content: "";
39
+ color: white;
40
+ width: 10px;
41
+ height: 4.5px;
42
+ border: 2px solid white;
43
+ border-top: none;
44
+ border-right: none;
45
+ border-left: none;
46
+ margin-top: 3px;
47
+ margin-left: 2px;
48
+ }
49
+
50
+ .select-all-button {
51
+ background-color: transparent;
52
+ border: none;
53
+ border-radius: none;
54
+ padding: 0;
55
+ margin: 0;
56
+ }
57
+
58
+ .select-all-dropdown {
59
+ border: none;
60
+ background-color: white;
61
+ border-radius: 0;
62
+ width: 140px;
63
+ box-shadow: 0 6px 17px 0 rgba(0, 7, 32, 0.07);
64
+ }
65
+
66
+ .select-all-dropdown li {
67
+ border: none;
68
+ background-color: white;
69
+ padding: 12px;
70
+ width: 100%;
71
+ height: 40px;
72
+ display: flex;
73
+ align-items: center;
74
+ }
75
+
76
+ .select-all-dropdown li:hover {
77
+ cursor: pointer;
78
+ background-color: #f5f7f7;
79
+ }
80
+
81
+ /*Bulk delete table*/
82
+
83
+ .bulk-delete-wrapper .react-bs-select-all {
84
+ visibility: hidden;
85
+ }
86
+
87
+ .bulk-delete-wrapper .header-row {
88
+ align-items: stretch;
89
+ display: inline-flex;
90
+ justify-content: flex-start;
91
+ margin-bottom: 10px;
92
+ margin-left: 17px;
93
+ }
94
+
95
+ .bulk-delete-wrapper tr td:first-child {
96
+ border-right: none !important;
97
+ }
98
+
99
+ .bulk-delete-wrapper table input[type="checkbox"] {
100
+ border-radius: 2.7px;
101
+ border: solid 1.3px #003b5c;
102
+ height: 16px;
103
+ margin-left: 0px;
104
+ margin-right: 10px;
105
+ outline: none;
106
+ width: 16px;
107
+ }
108
+
109
+ .bulk-delete-wrapper table input[type="checkbox"]:checked:after {
110
+ background-color: #003b5c !important;
111
+ border-color: #fff !important;
112
+ margin-left: 0px !important;
113
+ }
114
+
115
+ .bulk-delete-wrapper table input[type="checkbox"]:checked {
116
+ background-color: #003b5c !important;
117
+ }
118
+
119
+ .bulk-delete-wrapper .delete-button {
120
+ cursor: pointer;
121
+ }
122
+
123
+ /*AsyncMultiTypeahead styles*/
124
+ .async-multi-typeahead-wrapper .MuiInputBase-input {
125
+ border: none !important;
126
+ outline: none !important;
127
+ box-shadow: none !important;
128
+ }
129
+
130
+ .async-multi-typeahead-wrapper .MuiInputBase-input:focus {
131
+ border: none !important;
132
+ outline: none !important;
133
+ box-shadow: none !important;
134
+ }
@@ -414,21 +414,21 @@ var ListItems = function (_React$Component) {
414
414
  dataBlock: "vaccinationRecord"
415
415
  }
416
416
  },
417
- /* {
418
- "conditions": {
419
- "typeIm": { nequal: '00' }
420
- },
421
- "type": "addOption",
422
- "dataCollection": "vaccinationRecord",
423
- "params": {
424
- "field": "route",
425
- "addItem": {
426
- routeCode: "OTH",
427
- route: "Other"
428
- },
429
- "key": "routeCode",
430
- "dataBlock": "vaccinationRecord"
431
- },
417
+ /* {
418
+ "conditions": {
419
+ "typeIm": { nequal: '00' }
420
+ },
421
+ "type": "addOption",
422
+ "dataCollection": "vaccinationRecord",
423
+ "params": {
424
+ "field": "route",
425
+ "addItem": {
426
+ routeCode: "OTH",
427
+ route: "Other"
428
+ },
429
+ "key": "routeCode",
430
+ "dataBlock": "vaccinationRecord"
431
+ },
432
432
  }, */
433
433
  {
434
434
  conditions: {
@@ -653,13 +653,13 @@ var ListItems = function (_React$Component) {
653
653
  };
654
654
 
655
655
  /** block for Vaccnination record */
656
- /* let vaccinationRecordSchema = JSON.parse(
657
- JSON.stringify(schema.properties.item.items.properties.vaccinationRecord)
658
- );
659
- let vaccinationRecordUiSchema = JSON.parse(
660
- JSON.stringify(uiSchema.item.vaccinationRecord)
661
- );
662
-
656
+ /* let vaccinationRecordSchema = JSON.parse(
657
+ JSON.stringify(schema.properties.item.items.properties.vaccinationRecord)
658
+ );
659
+ let vaccinationRecordUiSchema = JSON.parse(
660
+ JSON.stringify(uiSchema.item.vaccinationRecord)
661
+ );
662
+
663
663
  const vaccinationRecordData = JSON.parse(JSON.stringify(data)); */
664
664
 
665
665
  var _processSchema = this.processSchema(JSON.parse(JSON.stringify(schema.properties.item.items.properties.vaccinationRecord)), JSON.parse(JSON.stringify(uiSchema.item.vaccinationRecord)), JSON.parse(JSON.stringify(data))),
@@ -675,16 +675,16 @@ var ListItems = function (_React$Component) {
675
675
  overrideCollapsible(vaccinationRecordSchema, vaccinationRecordUiSchema, vaccinationRecordData, position);
676
676
  }
677
677
 
678
- /* checkFormDataAndUpdate(
679
- vaccinationRecordData,
680
- "vaccinationRecord",
681
- "includeInRegistry",
682
- {
683
- vaccinationRecord: {
684
- isPopupValidated: false
685
- }
686
- }
687
- );
678
+ /* checkFormDataAndUpdate(
679
+ vaccinationRecordData,
680
+ "vaccinationRecord",
681
+ "includeInRegistry",
682
+ {
683
+ vaccinationRecord: {
684
+ isPopupValidated: false
685
+ }
686
+ }
687
+ );
688
688
  */
689
689
 
690
690
  var _openPopup = this.openPopup(vaccinationRecordData, "includeInRegistry", schema),
@@ -116,11 +116,11 @@ var Modifiers = function Modifiers(_ref4) {
116
116
  activeModifiers = _ref4.activeModifiers,
117
117
  _onChange = _ref4.onChange;
118
118
 
119
- /*
120
- let schema = {
121
- type: "object",
122
- properties: toProperties(modifiers),
123
- };
119
+ /*
120
+ let schema = {
121
+ type: "object",
122
+ properties: toProperties(modifiers),
123
+ };
124
124
  let uiSchema = toUiSchema(schema.properties); */
125
125
 
126
126
  var newScheme = {
@@ -253,8 +253,8 @@ var _initialiseProps = function _initialiseProps() {
253
253
  var schema = _this2.props.schema;
254
254
 
255
255
  if (updateFrom === EXISTING_ENTRY) {
256
- /* let ff = [{ "labTestName":"labTestName2", patientLabId :2 },{ "labTestName":"labTestName3", patientLabId :3 },
257
- { "labTestName":"labTestName4", patientLabId :4 },{ "labTestName":"labTestName5", patientLabId :5 }];
256
+ /* let ff = [{ "labTestName":"labTestName2", patientLabId :2 },{ "labTestName":"labTestName3", patientLabId :3 },
257
+ { "labTestName":"labTestName4", patientLabId :4 },{ "labTestName":"labTestName5", patientLabId :5 }];
258
258
  this.setState({ addFrom : EXISTING_ENTRY,externalData :ff }); */
259
259
 
260
260
  _this2.getPatientLabOrdersList(patientId, schema).then(function (externaList) {
@@ -544,21 +544,21 @@ var TableWithSearchAdd = function (_Component) {
544
544
  return _this;
545
545
  }
546
546
 
547
- /**
548
- *
549
- * @param {*} rowIndex
550
- * with the help of row Index , fetchthe procedure code details-
551
- * fetch the diagnosis link to that procedure code.
552
- * one by one remove procedure code from each diagnosis.
547
+ /**
548
+ *
549
+ * @param {*} rowIndex
550
+ * with the help of row Index , fetchthe procedure code details-
551
+ * fetch the diagnosis link to that procedure code.
552
+ * one by one remove procedure code from each diagnosis.
553
553
  */
554
554
 
555
555
 
556
- /**
557
- *
558
- * @param {*} rowIndex
559
- * with the help of row Index , fetch the diagnosis details-
560
- * fetch the diagnosis link to that procedure code.
561
- * one by one remove procedure code from each diagnosis.
556
+ /**
557
+ *
558
+ * @param {*} rowIndex
559
+ * with the help of row Index , fetch the diagnosis details-
560
+ * fetch the diagnosis link to that procedure code.
561
+ * one by one remove procedure code from each diagnosis.
562
562
  */
563
563
 
564
564
 
@@ -709,10 +709,10 @@ function ProcedureCodeModal(formProps) {
709
709
  return dxData;
710
710
  };
711
711
 
712
- /**
713
- * function to check the diagnosis are added in the sequence manner like in the PM application.
714
- * @param {*}
715
- * @returns
712
+ /**
713
+ * function to check the diagnosis are added in the sequence manner like in the PM application.
714
+ * @param {*}
715
+ * @returns
716
716
  */
717
717
  var checkDiagnosisSequenceError = function checkDiagnosisSequenceError() {
718
718
  var _procedureCodeDetails3 = procedureCodeDetails.diagnosis,
@@ -723,14 +723,14 @@ function ProcedureCodeModal(formProps) {
723
723
  });
724
724
  };
725
725
 
726
- /**
727
- * - if rowIndex avaiable = edit procedure code
728
- * In case of Edit -
729
- * (user can update anything so for easy maintainablity we are deleting first and adding as new procedue code
730
- * again)
731
- * Remove the procedure code from each diagnosis first
732
- * Add new PrOCEDURE CODE
733
- *
726
+ /**
727
+ * - if rowIndex avaiable = edit procedure code
728
+ * In case of Edit -
729
+ * (user can update anything so for easy maintainablity we are deleting first and adding as new procedue code
730
+ * again)
731
+ * Remove the procedure code from each diagnosis first
732
+ * Add new PrOCEDURE CODE
733
+ *
734
734
  */
735
735
  var handleSaveModal = function handleSaveModal() {
736
736
  if (hasEmptyCptCodeQuestionAnswer()) {