@bahmni/registration-app 0.0.1-dev.67 → 0.0.1-dev.69
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/{LNWAZHJI-BRxjtqF3.js → LNWAZHJI-BMOsL9Ci.js} +2 -2
- package/dist/{MWZ6AO7Z-ClNrSEFJ.js → MWZ6AO7Z-C3Ywc1iy.js} +2 -2
- package/dist/{YPM2AS64-BGgDkeCX.js → YPM2AS64-Dtkuh9ef.js} +1 -1
- package/dist/components/registrationActions/RegistrationActions.d.ts +16 -0
- package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -0
- package/dist/components/registrationActions/index.d.ts +3 -0
- package/dist/components/registrationActions/index.d.ts.map +1 -0
- package/dist/hooks/useFilteredExtensions.d.ts +15 -0
- package/dist/hooks/useFilteredExtensions.d.ts.map +1 -0
- package/dist/{index-CHjozzhO.js → index-ClUC2oEA.js} +40172 -40098
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +1 -0
- package/dist/locales/locale_es.json +1 -0
- package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -1
- package/dist/pages/PatientRegister/visitTypeSelector.d.ts +2 -1
- package/dist/pages/PatientRegister/visitTypeSelector.d.ts.map +1 -1
- package/dist/utils/extensionNavigation.d.ts +9 -0
- package/dist/utils/extensionNavigation.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { g as d, c as f, a as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-Dtkuh9ef.js";
|
|
2
|
+
import { g as d, c as f, a as e } from "./index-ClUC2oEA.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { g as v, c as C, a as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-Dtkuh9ef.js";
|
|
2
|
+
import { g as v, c as C, a as e } from "./index-ClUC2oEA.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ws = Object.defineProperty;
|
|
2
2
|
var xs = (e, t, n) => t in e ? ws(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => xs(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { b as $e, d as K, o as xt, e as H, c as L, a as v, P as zo, m as ye, S as z, t as q, i as k, f as G, h as T, j as $s, k as sr, u as Ce, l as V, s as Vn, n as jn, p as ft, q as A, r as Cs, v as cn, w as He, x as Ss, y as _t, z as Kt, A as ks, B as Es, C as Cn, F as Ds, D as Hr, E as Nt, $ as Ko, G as Ms, H as As, I as W, J as Ur, K as Ts, L as Fs, M as lr, N as Is, O as Os, Q as Kn, R as Ls, T as Ps, U as oe, V as qs, W as _s } from "./index-
|
|
4
|
+
import { b as $e, d as K, o as xt, e as H, c as L, a as v, P as zo, m as ye, S as z, t as q, i as k, f as G, h as T, j as $s, k as sr, u as Ce, l as V, s as Vn, n as jn, p as ft, q as A, r as Cs, v as cn, w as He, x as Ss, y as _t, z as Kt, A as ks, B as Es, C as Cn, F as Ds, D as Hr, E as Nt, $ as Ko, G as Ms, H as As, I as W, J as Ur, K as Ts, L as Fs, M as lr, N as Is, O as Os, Q as Kn, R as Ls, T as Ps, U as oe, V as qs, W as _s } from "./index-ClUC2oEA.js";
|
|
5
5
|
var Rs = (e) => e != null, zs = (e) => e.filter(Rs);
|
|
6
6
|
function Ks(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface RegistrationActionsProps {
|
|
2
|
+
extensionPointId?: string;
|
|
3
|
+
onBeforeNavigate?: () => Promise<unknown>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Component that renders extensions based on type
|
|
7
|
+
* Auto-extracts URL params from route as key-value pairs
|
|
8
|
+
* type="startVisit": renders VisitTypeSelector
|
|
9
|
+
* Other types: renders Button with navigation
|
|
10
|
+
*
|
|
11
|
+
* @param onBeforeNavigate - Optional callback executed before navigation
|
|
12
|
+
* Parent should handle validation and save patient data
|
|
13
|
+
* If validation fails, parent should show error notification and throw to prevent navigation
|
|
14
|
+
*/
|
|
15
|
+
export declare const RegistrationActions: ({ extensionPointId, onBeforeNavigate, }: RegistrationActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
//# sourceMappingURL=RegistrationActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistrationActions.d.ts","sourceRoot":"","sources":["../../../src/components/registrationActions/RegistrationActions.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,GAAI,yCAGjC,wBAAwB,mDA6E1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/registrationActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppExtensionConfig } from '@bahmni/services';
|
|
2
|
+
interface UseFilteredExtensionsProps {
|
|
3
|
+
extensionPointId?: string;
|
|
4
|
+
}
|
|
5
|
+
interface UseFilteredExtensionsReturn {
|
|
6
|
+
filteredExtensions: AppExtensionConfig[];
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Custom hook to filter and validate app extensions
|
|
11
|
+
* Handles extension point validation, privilege filtering, and sorting
|
|
12
|
+
*/
|
|
13
|
+
export declare const useFilteredExtensions: ({ extensionPointId, }: UseFilteredExtensionsProps) => UseFilteredExtensionsReturn;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useFilteredExtensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilteredExtensions.d.ts","sourceRoot":"","sources":["../../src/hooks/useFilteredExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAgB,MAAM,kBAAkB,CAAC;AAIpE,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,2BAA2B;IACnC,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,uBAEnC,0BAA0B,KAAG,2BAsD/B,CAAC"}
|