@bahmni/widgets 0.0.1-dev.111 → 0.0.1-dev.113
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/{FormsTable-nBWoaiqW.js → FormsTable-p73D2vYO.js} +1 -1
- package/dist/{Observations-DEXfusTw.js → Observations-FgHEt53Y.js} +1 -1
- package/dist/activePractitioner/ActivePractitionerContext.d.ts +10 -0
- package/dist/activePractitioner/ActivePractitionerContext.d.ts.map +1 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts +7 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts.map +1 -0
- package/dist/activePractitioner/index.d.ts +5 -0
- package/dist/activePractitioner/index.d.ts.map +1 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts +7 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts.map +1 -0
- package/dist/{index-C1xlT_ZV.js → index-CJakYuEL.js} +5393 -5377
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -23
- package/package.json +1 -1
- package/dist/hooks/useActivePractitioner.d.ts +0 -15
- package/dist/hooks/useActivePractitioner.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export { GenericServiceRequestTable } from './genericServiceRequest';
|
|
|
11
11
|
export { PatientProgramsTable } from './patientPrograms';
|
|
12
12
|
export { useNotification, NotificationProvider, NotificationServiceComponent, } from './notification';
|
|
13
13
|
export { usePatientUUID } from './hooks/usePatientUUID';
|
|
14
|
-
export { useActivePractitioner } from './hooks/useActivePractitioner';
|
|
15
14
|
export { useUserPrivilege } from './userPrivileges/useUserPrivilege';
|
|
16
15
|
export { UserPrivilegeProvider } from './userPrivileges/UserPrivilegeProvider';
|
|
16
|
+
export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
|
|
17
17
|
export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
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,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,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;AAGzD,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,
|
|
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,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,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;AAGzD,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;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAG/E,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,EACd,SAAS,EACT,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as t, x as s, g as r, k as o, l as n, G as g, n as l, M as c, N as P, r as d, P as v, p as T, m as b, S as f, w as W, V as u, T as A, Q as m, F as p, H as C, O as S, E as y, X as N, y as U, f as h, u as x, v as D } from "./index-CJakYuEL.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
l as
|
|
4
|
+
t as ActivePractitionerContext,
|
|
5
|
+
s as ActivePractitionerProvider,
|
|
6
|
+
r as AllergiesTable,
|
|
7
|
+
o as ConditionsTable,
|
|
8
|
+
n as DiagnosesTable,
|
|
9
|
+
g as GenericServiceRequestTable,
|
|
10
|
+
l as LabInvestigation,
|
|
11
|
+
c as MedicationsTable,
|
|
12
|
+
P as NotificationProvider,
|
|
11
13
|
d as NotificationServiceComponent,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
v as PatientDetails,
|
|
15
|
+
T as PatientProgramsTable,
|
|
16
|
+
b as RadiologyInvestigationTable,
|
|
17
|
+
f as SearchPatient,
|
|
18
|
+
W as UserPrivilegeProvider,
|
|
19
|
+
u as VitalFlowSheet,
|
|
20
|
+
A as getAllWidgetConfigs,
|
|
21
|
+
m as getAllWidgetTypes,
|
|
22
|
+
p as getWidget,
|
|
23
|
+
C as getWidgetConfig,
|
|
22
24
|
S as hasWidget,
|
|
23
25
|
y as registerWidget,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
N as resetWidgetRegistry,
|
|
27
|
+
U as useActivePractitioner,
|
|
28
|
+
h as useNotification,
|
|
29
|
+
x as usePatientUUID,
|
|
30
|
+
D as useUserPrivilege
|
|
29
31
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Provider, User } from '@bahmni/services';
|
|
2
|
-
interface useActivePractitionerResult {
|
|
3
|
-
practitioner: Provider | null;
|
|
4
|
-
user: User | null;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
error: Error | null;
|
|
7
|
-
refetch: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Custom hook to fetch and manage the active practitioner's details
|
|
11
|
-
* @returns Object containing practitioner, loading state, error state, and refetch function
|
|
12
|
-
*/
|
|
13
|
-
export declare const useActivePractitioner: () => useActivePractitionerResult;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=useActivePractitioner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActivePractitioner.d.ts","sourceRoot":"","sources":["../../src/hooks/useActivePractitioner.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,IAAI,EAGL,MAAM,kBAAkB,CAAC;AAG1B,UAAU,2BAA2B;IACnC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,2BA4CxC,CAAC"}
|