@bahmni/widgets 0.0.1-dev.262 → 0.0.1-dev.265
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-C_Y7Tdgu.js → DocumentsTable-BAI2j9Ue.js} +1 -1
- package/dist/{FormsTable-eDRz4c99.js → FormsTable-CbjYhFmJ.js} +27 -27
- package/dist/{Observations-CXpokmD1.js → Observations-DkAARn33.js} +10 -10
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/{index-C6v4EFU_.js → index-BBIrtGWB.js} +13864 -13727
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -30
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/dist/location/LocationContext.d.ts +13 -0
- package/dist/location/LocationContext.d.ts.map +1 -0
- package/dist/location/LocationProvider.d.ts +7 -0
- package/dist/location/LocationProvider.d.ts.map +1 -0
- package/dist/location/LocationSelector.d.ts +3 -0
- package/dist/location/LocationSelector.d.ts.map +1 -0
- package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts +14 -0
- package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts.map +1 -0
- package/dist/location/index.d.ts +4 -0
- package/dist/location/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,5 @@ export { AppContextProvider } from './appContext';
|
|
|
25
25
|
export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
|
|
26
26
|
export { createConfigProvider, createConfigHook } from './configProvider';
|
|
27
27
|
export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
|
|
28
|
+
export { LocationContext, useLocation, LocationProvider, LocationSelector, } from './location';
|
|
28
29
|
//# sourceMappingURL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A as
|
|
1
|
+
import { a3 as s, a1 as t, B as o, a0 as r, D as n, Z as g, E as l, A as c, F as P, H as d, J as v, L as b, ad as A, af as C, ag as T, M as f, N as m, Q as p, O as u, P as I, I as L, K as R, G as S, R as W, S as D, Y as N, V as y, a5 as U, a4 as x, ab as H, aa as O, a7 as h, a8 as E, a9 as G, a6 as M, ac as V, a2 as F, X as _, ae as k, a as q, u as w, W as z } from "./index-BBIrtGWB.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
s as ActivePractitionerContext,
|
|
@@ -8,35 +8,39 @@ export {
|
|
|
8
8
|
n as AppointmentsTable,
|
|
9
9
|
g as CONSULTATION_PAD_PRIVILEGES,
|
|
10
10
|
l as ConditionsTable,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
c as ConfirmationModal,
|
|
12
|
+
P as DiagnosesTable,
|
|
13
|
+
d as GenericServiceRequestTable,
|
|
14
14
|
v as ImmunizationHistory,
|
|
15
15
|
b as LabInvestigation,
|
|
16
|
-
A as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
f as
|
|
20
|
-
m as
|
|
21
|
-
p as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
S as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
E as
|
|
37
|
-
G as
|
|
38
|
-
M as
|
|
39
|
-
V as
|
|
40
|
-
F as
|
|
41
|
-
_ as
|
|
16
|
+
A as LocationContext,
|
|
17
|
+
C as LocationProvider,
|
|
18
|
+
T as LocationSelector,
|
|
19
|
+
f as MedicationsTable,
|
|
20
|
+
m as NotificationProvider,
|
|
21
|
+
p as NotificationServiceComponent,
|
|
22
|
+
u as ObservationsRenderer,
|
|
23
|
+
I as PatientDetails,
|
|
24
|
+
L as PatientProgramsTable,
|
|
25
|
+
R as ProgramDetails,
|
|
26
|
+
S as RadiologyInvestigationReport,
|
|
27
|
+
W as RadiologyInvestigationTable,
|
|
28
|
+
D as SearchPatient,
|
|
29
|
+
N as UserPrivilegeProvider,
|
|
30
|
+
y as VitalFlowSheet,
|
|
31
|
+
U as createConfigHook,
|
|
32
|
+
x as createConfigProvider,
|
|
33
|
+
H as getAllWidgetConfigs,
|
|
34
|
+
O as getAllWidgetTypes,
|
|
35
|
+
h as getWidget,
|
|
36
|
+
E as getWidgetConfig,
|
|
37
|
+
G as hasWidget,
|
|
38
|
+
M as registerWidget,
|
|
39
|
+
V as resetWidgetRegistry,
|
|
40
|
+
F as useActivePractitioner,
|
|
41
|
+
_ as useHasPrivilege,
|
|
42
|
+
k as useLocation,
|
|
43
|
+
q as useNotification,
|
|
44
|
+
w as usePatientUUID,
|
|
45
|
+
z as useUserPrivilege
|
|
42
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2M3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserLocation } from '@bahmni/services';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type { UserLocation };
|
|
4
|
+
interface LocationContextType {
|
|
5
|
+
location: UserLocation | null;
|
|
6
|
+
setLocation: (location: UserLocation | null) => void;
|
|
7
|
+
availableLocations: UserLocation[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
error: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const LocationContext: React.Context<LocationContextType | undefined>;
|
|
12
|
+
export declare const useLocation: () => LocationContextType;
|
|
13
|
+
//# sourceMappingURL=LocationContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationContext.d.ts","sourceRoot":"","sources":["../../src/location/LocationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,kBAAkB,EAAE,YAAY,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,gDAEhB,CAAC;AAEb,eAAO,MAAM,WAAW,2BAMvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationProvider.d.ts","sourceRoot":"","sources":["../../src/location/LocationProvider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiG5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationSelector.d.ts","sourceRoot":"","sources":["../../src/location/LocationSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAwDpC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const mockLocation: {
|
|
2
|
+
name: string;
|
|
3
|
+
uuid: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const mockLocations: {
|
|
6
|
+
name: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const mockUser: {
|
|
10
|
+
uuid: string;
|
|
11
|
+
username: string;
|
|
12
|
+
display: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=LocationSelectorMocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationSelectorMocks.d.ts","sourceRoot":"","sources":["../../../../src/location/__tests__/__mocks__/LocationSelectorMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;GAGzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/location/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|