@bahmni/admin-app 0.0.1-dev.434 → 0.0.1-dev.438

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.
@@ -1,6 +1,7 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  interface AdminLayoutProps {
3
3
  children: ReactNode;
4
+ breadcrumbLabel?: string;
4
5
  }
5
6
  export declare const AdminLayout: React.FC<AdminLayoutProps>;
6
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"AdminLayout.d.ts","sourceRoot":"","sources":["../../../src/components/AdminLayout/AdminLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAGlD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4BlD,CAAC"}
1
+ {"version":3,"file":"AdminLayout.d.ts","sourceRoot":"","sources":["../../../src/components/AdminLayout/AdminLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAIlD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqDlD,CAAC"}
@@ -1,7 +1,11 @@
1
1
  export declare const BAHMNI_ADMIN_NAMESPACE = "admin";
2
2
  export declare const ADMIN_PRIVILEGE = "app:admin";
3
+ /** Path to the admin home (dashboard). */
4
+ export declare const BAHMNI_ADMIN_HOME_PATH = "/bahmni-v2/admin";
3
5
  /** Extension point the admin dashboard tiles are configured under. */
4
6
  export declare const ADMIN_EXTENSION_POINT = "org.bahmni.admin.dashboard";
5
7
  /** Config directory under /bahmni_config/openmrs/apps that holds those tiles. */
6
8
  export declare const ADMIN_CONFIG_APP = "admin";
9
+ /** Number of audit log events per page; a full page means more may follow. */
10
+ export declare const AUDIT_LOG_PAGE_SIZE = 50;
7
11
  //# 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,UAAU,CAAC;AAE9C,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,UAAU,CAAC"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAE9C,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,qBAAkC,CAAC;AAEtE,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,KAAK,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { AuditLogListEntry } from '@bahmni/services';
2
+ export interface AuditLogFilters {
3
+ startDate: Date | null;
4
+ startTime: string;
5
+ username: string;
6
+ patientId: string;
7
+ }
8
+ export declare const NO_EVENTS_FOUND = "NO_EVENTS_FOUND";
9
+ export declare const NO_MORE_EVENTS_FOUND = "NO_MORE_EVENTS_FOUND";
10
+ export declare const MATCHING_EVENTS_NOT_FOUND = "MATCHING_EVENTS_NOT_FOUND";
11
+ export declare const useAuditLogs: () => {
12
+ filters: AuditLogFilters;
13
+ setFilters: import('react').Dispatch<import('react').SetStateAction<AuditLogFilters>>;
14
+ logs: AuditLogListEntry[];
15
+ isLoading: boolean;
16
+ isFetching: boolean;
17
+ isError: boolean;
18
+ emptyMessageKey: string | null;
19
+ firstIndex: number;
20
+ lastIndex: number;
21
+ hasNext: boolean;
22
+ hasPrevious: boolean;
23
+ currentPageNumber: number;
24
+ next: () => void;
25
+ prev: () => void;
26
+ runReport: () => void;
27
+ reset: () => void;
28
+ };
29
+ //# sourceMappingURL=useAuditLogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogs.d.ts","sourceRoot":"","sources":["../../src/hooks/useAuditLogs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAqBD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAiOxB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Combines a date and an (optional) `HH:mm` time (24-hour, the native
3
+ * `<input type="time">` value format) into a single ISO `startFrom` value,
4
+ * mirroring the legacy screen's two separate date/time inputs feeding a
5
+ * single `startDate` scope value.
6
+ */
7
+ export declare const combineDateAndTime: (date: Date | null, time: string) => string | undefined;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/hooks/utils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,IAAI,GAAG,IAAI,EACjB,MAAM,MAAM,KACX,MAAM,GAAG,SAeX,CAAC"}