@bahmni/registration-app 0.0.1-dev.234 → 0.0.1-dev.237
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-Cl0S6I_z-DqZdqL-h.js → DocumentsTable-DZLV91xy-CxzeGcPE.js} +32 -32
- package/dist/{FormsTable-Iqc9AxOy-BzfTY7Wr.js → FormsTable-Yt3aI_e6-EwL8PKkT.js} +69 -69
- package/dist/{LNWAZHJI-BekELcky.js → LNWAZHJI-mqLi1yCc.js} +6 -6
- package/dist/{MWZ6AO7Z-BQLmv85K.js → MWZ6AO7Z-BW_x4w9P.js} +5 -5
- package/dist/{Observations-DBbsNLYV-EO2y9OkU.js → Observations-DoBEcLrI-CMpRZG3h.js} +36 -36
- package/dist/{YPM2AS64-CwmNiHJq.js → YPM2AS64-BUe6iWAq.js} +1 -1
- package/dist/components/forms/profile/Profile.d.ts.map +1 -1
- package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts +2 -0
- package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts.map +1 -1
- package/dist/components/patientPhotoUpload/utils.d.ts +23 -0
- package/dist/components/patientPhotoUpload/utils.d.ts.map +1 -0
- package/dist/constants/app.d.ts +3 -0
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/{index-C8FL8_cr.js → index-CUhWstXf.js} +57750 -55859
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/registrationConfig/models.d.ts +10 -0
- package/dist/providers/registrationConfig/models.d.ts.map +1 -1
- package/dist/providers/registrationConfig/schema.json.d.ts +41 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientPhotoUpload.d.ts","sourceRoot":"","sources":["../../../src/components/patientPhotoUpload/PatientPhotoUpload.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PatientPhotoUpload.d.ts","sourceRoot":"","sources":["../../../src/components/patientPhotoUpload/PatientPhotoUpload.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAWpF,UAAU,uBAAuB;IAC/B,cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmUhE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PatientPhotoConfig } from '../../providers/registrationConfig/models';
|
|
2
|
+
export type CaptureFn = (width?: number, height?: number, quality?: number) => string | undefined;
|
|
3
|
+
export type ResolvedPhotoConfig = {
|
|
4
|
+
mode: 'fixed';
|
|
5
|
+
widthPx: number;
|
|
6
|
+
heightPx: number;
|
|
7
|
+
maxFileSizeBytes: number;
|
|
8
|
+
} | {
|
|
9
|
+
mode: 'variable';
|
|
10
|
+
minWidthPx: number;
|
|
11
|
+
maxWidthPx: number;
|
|
12
|
+
minHeightPx: number;
|
|
13
|
+
maxHeightPx: number;
|
|
14
|
+
maxFileSizeBytes: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const resolvePhotoConfig: (config?: PatientPhotoConfig) => ResolvedPhotoConfig;
|
|
17
|
+
export declare const dataUrlByteSize: (dataUrl: string) => number;
|
|
18
|
+
export declare const toJpegDataUrl: (img: HTMLImageElement, quality?: number) => string | undefined;
|
|
19
|
+
export declare const base64FromDataUrl: (dataUrl: string) => string;
|
|
20
|
+
export declare const fileToObjectUrl: (file: File) => string;
|
|
21
|
+
export declare const revokeObjectUrl: (url?: string) => void;
|
|
22
|
+
export declare const captureWithSizeConstraint: (capture: CaptureFn, cfg: ResolvedPhotoConfig) => Promise<string | undefined>;
|
|
23
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/patientPhotoUpload/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,MAAM,SAAS,GAAG,CACtB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;AAExB,MAAM,MAAM,mBAAmB,GAC3B;IACE,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAQN,eAAO,MAAM,kBAAkB,GAC7B,SAAS,kBAAkB,KAC1B,mBAmBF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAIjD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,KAAK,gBAAgB,EACrB,gBAAW,KACV,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MACvB,CAAC;AAE9B,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,KAAG,MAClB,CAAC;AAE5B,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,IAE9C,CAAC;AAwDF,eAAO,MAAM,yBAAyB,GACpC,SAAS,SAAS,EAClB,KAAK,mBAAmB,KACvB,OAAO,CAAC,MAAM,GAAG,SAAS,CAGqB,CAAC"}
|
package/dist/constants/app.d.ts
CHANGED
|
@@ -4,4 +4,7 @@ export declare const BAHMNI_REGISTRATION_PATIENT = "/registration/patient";
|
|
|
4
4
|
export declare const REGISTRATION_CONFIG_BASE_URL = "/bahmni_config/openmrs/apps/registration/v2";
|
|
5
5
|
export declare const getPatientUrl: (patientUuid: string) => string;
|
|
6
6
|
export declare const getPatientUrlExternal: (patientUuid: string) => string;
|
|
7
|
+
export declare const DEFAULT_PHOTO_WIDTH_PX = 600;
|
|
8
|
+
export declare const DEFAULT_PHOTO_HEIGHT_PX = 600;
|
|
9
|
+
export declare const DEFAULT_PHOTO_MAX_FILE_SIZE_KB = 500;
|
|
7
10
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AACrD,eAAO,MAAM,0BAA0B,oCAAoC,CAAC;AAC5E,eAAO,MAAM,2BAA2B,0BAAuC,CAAC;AAChF,eAAO,MAAM,4BAA4B,gDACM,CAAC;AAEhD,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,MACH,CAAC;AAElD,eAAO,MAAM,qBAAqB,GAAI,aAAa,MAAM,KAAG,MACA,CAAC"}
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AACrD,eAAO,MAAM,0BAA0B,oCAAoC,CAAC;AAC5E,eAAO,MAAM,2BAA2B,0BAAuC,CAAC;AAChF,eAAO,MAAM,4BAA4B,gDACM,CAAC;AAEhD,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,MACH,CAAC;AAElD,eAAO,MAAM,qBAAqB,GAAI,aAAa,MAAM,KAAG,MACA,CAAC;AAE7D,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,8BAA8B,MAAM,CAAC"}
|