openchs-models 1.32.5 → 1.32.7

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/Privilege.js CHANGED
@@ -126,6 +126,7 @@ _defineProperty(Privilege, "PrivilegeType", {
126
126
  EditVideo: "EditVideo",
127
127
  EnrolSubject: "EnrolSubject",
128
128
  ExitEnrolment: "ExitEnrolment",
129
+ MultiTxEntityTypeUpdate: "MultiTxEntityTypeUpdate",
129
130
  PerformVisit: "PerformVisit",
130
131
  PhoneVerification: "PhoneVerification",
131
132
  RegisterSubject: "RegisterSubject",
@@ -151,7 +152,8 @@ _defineProperty(Privilege, "PrivilegeType", {
151
152
  EditChecklistConfiguration: "EditChecklistConfiguration",
152
153
  DownloadBundle: "DownloadBundle",
153
154
  EditTaskType: "EditTaskType",
154
- ViewEditEntitiesOnDataEntryApp: "ViewEditEntitiesOnDataEntryApp"
155
+ ViewEditEntitiesOnDataEntryApp: "ViewEditEntitiesOnDataEntryApp",
156
+ DeleteOrganisationConfiguration: "DeleteOrganisationConfiguration"
155
157
  });
156
158
 
157
159
  _defineProperty(Privilege, "privilegeEntityType", {
@@ -180,7 +180,11 @@ class DashboardFilterConfig {
180
180
 
181
181
  getInputDataType() {
182
182
  if (this.isConceptTypeFilter()) {
183
- return this.observationBasedFilter.concept.datatype;
183
+ if (this.isRangeWidget()) {
184
+ return _Range.default.DateRange;
185
+ } else {
186
+ return this.observationBasedFilter.concept.datatype;
187
+ }
184
188
  } else if ([_CustomFilter.default.type.Gender, _CustomFilter.default.type.Address, _CustomFilter.default.type.GroupSubject].includes(this.type)) {
185
189
  return DashboardFilterConfig.dataTypes.array;
186
190
  } else if (dateFilterTypes.includes(this.type) && !this.isRangeWidget()) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.32.5",
4
+ "version": "1.32.7",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",