openchs-models 1.31.26 → 1.31.28
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/dist/ReportCard.js +8 -0
- package/dist/Schema.js +7 -2
- package/package.json +1 -1
package/dist/ReportCard.js
CHANGED
|
@@ -96,6 +96,14 @@ class ReportCard extends _BaseEntity.default {
|
|
|
96
96
|
get textColor() {
|
|
97
97
|
return _lodash.default.isNil(this.standardReportCardType) ? '#ffffff' : this.standardReportCardType.textColor;
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Helper method used to generate unique key value for Nested Report Cards using UUID and Index of the Report Card.
|
|
101
|
+
* The Nested Report Card's query responses would be mapped to the corresponding Dashboard Report cards using the UUID and Index.
|
|
102
|
+
*
|
|
103
|
+
* @param index
|
|
104
|
+
* @returns {string}
|
|
105
|
+
*/
|
|
106
|
+
|
|
99
107
|
|
|
100
108
|
getCardId(index = 0) {
|
|
101
109
|
return this.uuid + '#' + index;
|
package/dist/Schema.js
CHANGED
|
@@ -287,8 +287,13 @@ function migrateEmbeddedObjects(oldDB, newDB) {
|
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
console.log(`deleting model: ChecklistItemStatus`);
|
|
290
|
-
newDB.deleteModel("ChecklistItemStatus");
|
|
291
|
-
|
|
290
|
+
newDB.deleteModel("ChecklistItemStatus");
|
|
291
|
+
console.log(`deleting model: VisitScheduleConfig`);
|
|
292
|
+
newDB.deleteModel("VisitScheduleConfig");
|
|
293
|
+
console.log(`deleting model: VisitScheduleInterval`);
|
|
294
|
+
newDB.deleteModel("VisitScheduleInterval");
|
|
295
|
+
console.log(`deleting model: StringKeyNumericValue`);
|
|
296
|
+
newDB.deleteModel("StringKeyNumericValue");
|
|
292
297
|
}
|
|
293
298
|
|
|
294
299
|
function createRealmConfig() {
|