openchs-models 1.25.2 → 1.25.3
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/Schema.js +1 -1
- package/dist/application/MenuItem.js +24 -2
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -188,7 +188,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
188
188
|
var _default = {
|
|
189
189
|
//order is important, should be arranged according to the dependency
|
|
190
190
|
schema: [_LocaleMapping.default, _Settings.default, _Concept.ConceptAnswer, _Concept.default, _EncounterType.default, _Gender.default, _UserDefinedIndividualProperty.default, _AddressLevel.LocationMapping, _AddressLevel.default, _KeyValue.default, _Form.default, _FormMapping.default, _FormElementGroup.default, _FormElement.default, _SubjectType.default, _Individual.default, _ProgramOutcome.default, _Program.default, _ProgramEnrolment.default, _Observation.default, _ProgramEncounter.default, _Encounter.default, _EntitySyncStatus.default, _EntityQueue.default, _ConfigFile.default, _Checklist.default, _ChecklistItem.default, _Format.default, _UserInfo.default, _StringKeyNumericValue.default, _VisitScheduleInterval.default, _VisitScheduleConfig.default, _ProgramConfig.default, _Family.default, _IndividualRelation.default, _IndividualRelationGenderMapping.default, _IndividualRelationshipType.default, _IndividualRelationship.default, _RuleDependency.default, _Rule.default, _ChecklistItemStatus.default, _ChecklistDetail.default, _ChecklistItemDetail.default, _VideoTelemetric.default, _Video.default, _MediaQueue.default, _Point.default, _SyncTelemetry.default, _IdentifierSource.default, _IdentifierAssignment.default, _RuleFailureTelemetry.default, _BeneficiaryModePin.default, _OrganisationConfig.default, _PlatformTranslation.default, _Translation.default, _Groups.default, _MyGroups.default, _GroupPrivileges.default, _Privilege.default, _GroupRole.default, _GroupSubject.default, _DashboardCache.default, _LocationHierarchy.default, _ReportCard.default, _Dashboard.default, _DashboardSectionCardMapping.default, _DraftSubject.default, _StandardReportCardType.default, _ApprovalStatus.default, _EntityApprovalStatus.default, _GroupDashboard.default, _DashboardSection.default, _News.default, _Comment.default, _CommentThread.default, _Extension.default, _SubjectMigration.default, _ResetSync.default, _Documentation.default, _DocumentationItem.default, _TaskType.default, _TaskStatus.default, _Task.default, _TaskUnAssignment.default, _DraftEncounter.default, _SubjectProgramEligibility.default, _MenuItem.default],
|
|
191
|
-
schemaVersion:
|
|
191
|
+
schemaVersion: 165,
|
|
192
192
|
migration: function (oldDB, newDB) {
|
|
193
193
|
if (oldDB.schemaVersion < 10) {
|
|
194
194
|
const oldObjects = oldDB.objects("DecisionConfig");
|
|
@@ -12,8 +12,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
|
|
14
14
|
class MenuItem {
|
|
15
|
+
constructor() {
|
|
16
|
+
_defineProperty(this, "uuid", void 0);
|
|
17
|
+
|
|
18
|
+
_defineProperty(this, "displayKey", void 0);
|
|
19
|
+
|
|
20
|
+
_defineProperty(this, "type", void 0);
|
|
21
|
+
|
|
22
|
+
_defineProperty(this, "icon", void 0);
|
|
23
|
+
|
|
24
|
+
_defineProperty(this, "group", void 0);
|
|
25
|
+
|
|
26
|
+
_defineProperty(this, "linkFunction", void 0);
|
|
27
|
+
|
|
28
|
+
_defineProperty(this, "voided", void 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
15
31
|
static fromResource(resource, entityService) {
|
|
16
|
-
return _General.default.assignFields(resource, new MenuItem(), ['uuid', 'displayKey', 'type', 'icon', "voided", "group", "
|
|
32
|
+
return _General.default.assignFields(resource, new MenuItem(), ['uuid', 'displayKey', 'type', 'icon', "voided", "group", "linkFunction"]);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
toString() {
|
|
36
|
+
return `uuid:${this.uuid}; displayKey:${this.displayKey}; type:${this.type}; group:${this.group}; voided:${this.voided}`;
|
|
17
37
|
}
|
|
18
38
|
|
|
19
39
|
}
|
|
@@ -26,6 +46,8 @@ _defineProperty(MenuItem, "UserGroupName", "User");
|
|
|
26
46
|
|
|
27
47
|
_defineProperty(MenuItem, "SupportGroupName", "Support");
|
|
28
48
|
|
|
49
|
+
_defineProperty(MenuItem, "HyperlinkTypeName", "Link");
|
|
50
|
+
|
|
29
51
|
_defineProperty(MenuItem, "schema", {
|
|
30
52
|
name: "MenuItem",
|
|
31
53
|
primaryKey: "uuid",
|
|
@@ -38,7 +60,7 @@ _defineProperty(MenuItem, "schema", {
|
|
|
38
60
|
optional: true
|
|
39
61
|
},
|
|
40
62
|
group: "string",
|
|
41
|
-
|
|
63
|
+
linkFunction: {
|
|
42
64
|
type: "string",
|
|
43
65
|
optional: true
|
|
44
66
|
},
|