@bahmni/widgets 0.0.1-dev.187 → 0.0.1-dev.189
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/{DocumentsTable-BXOwjkeG.js → DocumentsTable-CafHkVha.js} +1 -1
- package/dist/{FormsTable-lwNcLVVv.js → FormsTable-BMmldQfg.js} +1 -1
- package/dist/{Observations-BIS0am83.js → Observations-CHkBu95w.js} +1 -1
- package/dist/{index-DwHCZ4D7.js → index-zYYwI7OI.js} +5287 -5265
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -25
- package/dist/userPrivileges/consultationPadPrivileges.d.ts +15 -0
- package/dist/userPrivileges/consultationPadPrivileges.d.ts.map +1 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts +2 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export { ProgramDetails } from './programDetails';
|
|
|
15
15
|
export { useNotification, NotificationProvider, NotificationServiceComponent, } from './notification';
|
|
16
16
|
export { usePatientUUID } from './hooks/usePatientUUID';
|
|
17
17
|
export { useUserPrivilege } from './userPrivileges/useUserPrivilege';
|
|
18
|
+
export { useHasPrivilege } from './userPrivileges/useHasPrivilege';
|
|
18
19
|
export { UserPrivilegeProvider } from './userPrivileges/UserPrivilegeProvider';
|
|
20
|
+
export { CONSULTATION_PAD_PRIVILEGES } from './userPrivileges/consultationPadPrivileges';
|
|
19
21
|
export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
|
|
20
22
|
export { createConfigProvider, createConfigHook } from './configProvider';
|
|
21
23
|
export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,E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AM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as s, a1 as t, A as o, y as r, a0 as n, C as g, D as l, H as P, L as c, z as d, O as v, U as T, w as b, I as A, K as C, F as f, E as I, S as W, $ as p, V as u, a5 as S, a4 as m, ab as D, aa as R, a7 as U, a8 as y, a9 as N, a6 as L, ac as h, a2 as E, Y as H, a as O, u as V, W as w } from "./index-zYYwI7OI.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as ActivePractitionerContext,
|
|
5
|
+
t as ActivePractitionerProvider,
|
|
6
6
|
o as AllergiesTable,
|
|
7
7
|
r as AppointmentsTable,
|
|
8
|
-
n as
|
|
9
|
-
g as
|
|
10
|
-
l as
|
|
8
|
+
n as CONSULTATION_PAD_PRIVILEGES,
|
|
9
|
+
g as ConditionsTable,
|
|
10
|
+
l as DiagnosesTable,
|
|
11
|
+
P as GenericServiceRequestTable,
|
|
11
12
|
c as LabInvestigation,
|
|
12
13
|
d as MedicationsTable,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
v as NotificationProvider,
|
|
15
|
+
T as NotificationServiceComponent,
|
|
15
16
|
b as PatientDetails,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
A as PatientProgramsTable,
|
|
18
|
+
C as ProgramDetails,
|
|
19
|
+
f as RadiologyInvestigationReport,
|
|
20
|
+
I as RadiologyInvestigationTable,
|
|
20
21
|
W as SearchPatient,
|
|
21
22
|
p as UserPrivilegeProvider,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
u as VitalFlowSheet,
|
|
24
|
+
S as createConfigHook,
|
|
25
|
+
m as createConfigProvider,
|
|
25
26
|
D as getAllWidgetConfigs,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
R as getAllWidgetTypes,
|
|
28
|
+
U as getWidget,
|
|
29
|
+
y as getWidgetConfig,
|
|
30
|
+
N as hasWidget,
|
|
31
|
+
L as registerWidget,
|
|
32
|
+
h as resetWidgetRegistry,
|
|
33
|
+
E as useActivePractitioner,
|
|
34
|
+
H as useHasPrivilege,
|
|
35
|
+
O as useNotification,
|
|
36
|
+
V as usePatientUUID,
|
|
37
|
+
w as useUserPrivilege
|
|
36
38
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Privilege configuration for consultation pad controls
|
|
3
|
+
* Each privilege key maps to an array of required OpenMRS privilege names
|
|
4
|
+
* This array-based structure allows multiple privileges per feature and easy extensibility
|
|
5
|
+
*/
|
|
6
|
+
export declare const CONSULTATION_PAD_PRIVILEGES: {
|
|
7
|
+
ENCOUNTER: string[];
|
|
8
|
+
ALLERGIES: string[];
|
|
9
|
+
CONDITIONS_AND_DIAGNOSES: string[];
|
|
10
|
+
INVESTIGATIONS: string[];
|
|
11
|
+
MEDICATIONS: string[];
|
|
12
|
+
OBSERVATIONS: string[];
|
|
13
|
+
VACCINATIONS: string[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=consultationPadPrivileges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consultationPadPrivileges.d.ts","sourceRoot":"","sources":["../../src/userPrivileges/consultationPadPrivileges.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;CAQvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHasPrivilege.d.ts","sourceRoot":"","sources":["../../src/userPrivileges/useHasPrivilege.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,GAAG,MAAM,EAAE,KAAG,OAG9D,CAAC"}
|