@openmrs/ngx-formentry 3.0.1-pre.44 → 3.0.1-pre.49
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/openmrs-ngx-formentry.umd.js +3 -14
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/esm2015/components/afe-ng-select.component.js +1 -4
- package/esm2015/components/ngx-tabset/components/ngx-tab-set.component.js +2 -4
- package/esm2015/form-entry/control-hiders-disablers/disabler-helper.js +1 -2
- package/esm2015/form-entry/data-sources/data-sources.js +1 -2
- package/esm2015/form-entry/services/form-schema-compiler.service.js +3 -3
- package/esm2015/form-entry/value-adapters/encounter.adapter.js +1 -2
- package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +1 -2
- package/esm2015/form-entry/value-adapters/order.adapter.js +1 -3
- package/fesm2015/openmrs-ngx-formentry.js +3 -14
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/package.json +1 -1
|
@@ -721,7 +721,6 @@
|
|
|
721
721
|
toDisable = true;
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
|
-
// console.log('Control', control);
|
|
725
724
|
if (toDisable) {
|
|
726
725
|
control.disable();
|
|
727
726
|
}
|
|
@@ -2504,7 +2503,6 @@
|
|
|
2504
2503
|
if (unWrap) {
|
|
2505
2504
|
// eslint-disable-next-line guard-for-in
|
|
2506
2505
|
for (var o in dataSource) {
|
|
2507
|
-
// console.log('registering', o, dataSource[o]);
|
|
2508
2506
|
this.registerDataSource(o, dataSource[o], false);
|
|
2509
2507
|
}
|
|
2510
2508
|
}
|
|
@@ -2614,9 +2612,7 @@
|
|
|
2614
2612
|
}
|
|
2615
2613
|
});
|
|
2616
2614
|
};
|
|
2617
|
-
TabSetComponent.prototype.onHover = function ($event) {
|
|
2618
|
-
console.log($event);
|
|
2619
|
-
};
|
|
2615
|
+
TabSetComponent.prototype.onHover = function ($event) { };
|
|
2620
2616
|
TabSetComponent.prototype.selectTab = function (tabToSelect) {
|
|
2621
2617
|
if (tabToSelect.disabled === true || tabToSelect.active === true) {
|
|
2622
2618
|
return;
|
|
@@ -11370,7 +11366,6 @@
|
|
|
11370
11366
|
}
|
|
11371
11367
|
AfeNgSelectComponent.prototype.getChangingText = function (event) {
|
|
11372
11368
|
var _this = this;
|
|
11373
|
-
// console.log(event);
|
|
11374
11369
|
this.getData(event).subscribe(function (options) {
|
|
11375
11370
|
_this.question_options = options;
|
|
11376
11371
|
});
|
|
@@ -11396,7 +11391,6 @@
|
|
|
11396
11391
|
this.subject = new rxjs.BehaviorSubject([]);
|
|
11397
11392
|
var OptionsObservable = this.dataSource.searchOptions(searchText);
|
|
11398
11393
|
OptionsObservable.subscribe(function (options) {
|
|
11399
|
-
// console.log('options', options);
|
|
11400
11394
|
var mappedOptions = new Array();
|
|
11401
11395
|
for (var i = 0; i < options.length; i++) {
|
|
11402
11396
|
mappedOptions.push(new Option(options[i]));
|
|
@@ -11413,7 +11407,6 @@
|
|
|
11413
11407
|
this.subjectOption = new rxjs.BehaviorSubject(null);
|
|
11414
11408
|
var OptionObservable = this.dataSource.resolveSelectedValue(value);
|
|
11415
11409
|
OptionObservable.subscribe(function (option) {
|
|
11416
|
-
// console.log('option', option);
|
|
11417
11410
|
_this.subjectOption.next(option);
|
|
11418
11411
|
}, function (error) {
|
|
11419
11412
|
_this.subjectOption.error(error);
|
|
@@ -11463,12 +11456,12 @@
|
|
|
11463
11456
|
if (___namespace.isEmpty(refForms)) {
|
|
11464
11457
|
return formSchema;
|
|
11465
11458
|
}
|
|
11466
|
-
// get all
|
|
11459
|
+
// get all placeholders from the form schema
|
|
11467
11460
|
var placeHolders = this.getAllPlaceholderObjects(formSchema);
|
|
11468
11461
|
if (___namespace.isEmpty(placeHolders)) {
|
|
11469
11462
|
return formSchema;
|
|
11470
11463
|
}
|
|
11471
|
-
// replace all
|
|
11464
|
+
// replace all placeholders
|
|
11472
11465
|
this.replaceAllPlaceholdersWithActualObjects(refForms, placeHolders);
|
|
11473
11466
|
return formSchema;
|
|
11474
11467
|
};
|
|
@@ -13578,7 +13571,6 @@
|
|
|
13578
13571
|
}
|
|
13579
13572
|
}
|
|
13580
13573
|
}
|
|
13581
|
-
// console.log('Deleted Orders ', deleteOrders);
|
|
13582
13574
|
return deleteOrders;
|
|
13583
13575
|
};
|
|
13584
13576
|
OrderValueAdapter.prototype._setOrderNodeValues = function (node, orders) {
|
|
@@ -13595,7 +13587,6 @@
|
|
|
13595
13587
|
childNode.control.setValue(value);
|
|
13596
13588
|
childNode['initialValue'] = value;
|
|
13597
13589
|
childNode['orderNumber'] = order.orderNumber;
|
|
13598
|
-
// console.log('Set Value', node.children[index].control.value, node, childNode);
|
|
13599
13590
|
index++;
|
|
13600
13591
|
}
|
|
13601
13592
|
}
|
|
@@ -14055,7 +14046,6 @@
|
|
|
14055
14046
|
}
|
|
14056
14047
|
});
|
|
14057
14048
|
// void deleted groups
|
|
14058
|
-
// console.log('groupsUuidsAfterEditting', groupsUuidsAfterEditting);
|
|
14059
14049
|
if (nodeAsArray.initialValue && Array.isArray(nodeAsArray.initialValue)) {
|
|
14060
14050
|
___default["default"].each(nodeAsArray.initialValue, function (obs) {
|
|
14061
14051
|
if (groupsUuidsAfterEditting.indexOf(obs.uuid) < 0) {
|
|
@@ -14934,7 +14924,6 @@
|
|
|
14934
14924
|
switch (node.question.extras.type) {
|
|
14935
14925
|
case 'encounterDatetime':
|
|
14936
14926
|
if (payload['encounterDatetime']) {
|
|
14937
|
-
// console.log('date', payload['encounterDatetime']);
|
|
14938
14927
|
node.control.setValue(moment__default["default"](payload['encounterDatetime']).toDate());
|
|
14939
14928
|
node.initialValue = moment__default["default"](payload['encounterDatetime']).toDate();
|
|
14940
14929
|
}
|