@bahmni/widgets 0.0.1-dev.78 → 0.0.1-dev.80
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/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15488 -15261
- package/dist/programs/index.d.ts +5 -0
- package/dist/programs/index.d.ts.map +1 -0
- package/dist/programs/model.d.ts +28 -0
- package/dist/programs/model.d.ts.map +1 -0
- package/dist/programs/programsDetails.d.ts +12 -0
- package/dist/programs/programsDetails.d.ts.map +1 -0
- package/dist/programs/usePrograms.d.ts +7 -0
- package/dist/programs/usePrograms.d.ts.map +1 -0
- package/dist/programs/utils.d.ts +13 -0
- package/dist/programs/utils.d.ts.map +1 -0
- package/dist/registry/widgetMap.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ProgramsDetails } from './programsDetails';
|
|
2
|
+
export { ProgramStatus } from './model';
|
|
3
|
+
export type { formattedProgram as ProgramViewModel } from './model';
|
|
4
|
+
export { default as usePrograms } from './usePrograms';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/programs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,YAAY,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum ProgramStatus {
|
|
2
|
+
InProgress = "in-progress",
|
|
3
|
+
Submitted = "submitted",
|
|
4
|
+
Finalised = "finalised",
|
|
5
|
+
Completed = "completed",
|
|
6
|
+
OnHold = "on-hold",
|
|
7
|
+
Cancelled = "cancelled",
|
|
8
|
+
Abandoned = "abandoned"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Interface representing a formatted program for easier consumption by components
|
|
12
|
+
*/
|
|
13
|
+
export interface formattedProgram {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly uuid: string;
|
|
16
|
+
readonly programName: string;
|
|
17
|
+
readonly referenceNumber: string;
|
|
18
|
+
readonly destination: string | null;
|
|
19
|
+
readonly dateEnrolled: string;
|
|
20
|
+
readonly dateEnded: string | null;
|
|
21
|
+
readonly outcome: string | null;
|
|
22
|
+
readonly outcomeDetails: string | null;
|
|
23
|
+
readonly status: ProgramStatus;
|
|
24
|
+
readonly statusKey: string;
|
|
25
|
+
readonly statusClassName: string;
|
|
26
|
+
readonly attributes: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/programs/model.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,UAAU,gBAAgB;IAC1B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,YAAY;IAClB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ProgramsDetailsProps {
|
|
3
|
+
config?: {
|
|
4
|
+
fields?: string[];
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Component to display patient programs using SortableDataTable
|
|
9
|
+
*/
|
|
10
|
+
declare const ProgramsDetails: React.FC<ProgramsDetailsProps>;
|
|
11
|
+
export default ProgramsDetails;
|
|
12
|
+
//# sourceMappingURL=programsDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programsDetails.d.ts","sourceRoot":"","sources":["../../src/programs/programsDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH;AAaD;;GAEG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqGnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrograms.d.ts","sourceRoot":"","sources":["../../src/programs/usePrograms.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE;;;;EA2C1D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProgramEnrollment } from '@bahmni/services';
|
|
2
|
+
import { formattedProgram } from './model';
|
|
3
|
+
export declare function parseAttributeField(field: string): {
|
|
4
|
+
isAttribute: boolean;
|
|
5
|
+
attributeName: string | null;
|
|
6
|
+
fieldKey: string;
|
|
7
|
+
path: string | null;
|
|
8
|
+
property: string | null;
|
|
9
|
+
};
|
|
10
|
+
export declare function generateTranslationKey(path: string, property: string): string;
|
|
11
|
+
export declare function getValueByPath(program: ProgramEnrollment, path: string, property: string): string;
|
|
12
|
+
export declare function mapPrograms(programs: ProgramEnrollment[], configFields?: string[]): formattedProgram[];
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/programs/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAiB,MAAM,SAAS,CAAC;AAyH1D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG;IAClD,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAkBA;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAI7E;AAcD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAoCR;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,gBAAgB,EAAE,CAEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetMap.d.ts","sourceRoot":"","sources":["../../src/registry/widgetMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"widgetMap.d.ts","sourceRoot":"","sources":["../../src/registry/widgetMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE,YAAY,EAyCxC,CAAC"}
|