@oliasoft-open-source/react-ui-library 5.23.0-beta-1 → 5.23.0-beta-2
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/components/audit-log/audit-log.d.ts +6 -34
- package/dist/components/audit-log/audit-log.d.ts.map +1 -1
- package/dist/components/audit-log/comparison-view-modal.d.ts +2 -10
- package/dist/components/audit-log/comparison-view-modal.d.ts.map +1 -1
- package/dist/index.js +359 -384
- package/package.json +1 -20
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { ISectionName } from './utils';
|
|
3
2
|
export type AuditLogOperation = 'Created' | 'Cloned' | 'Reverted' | 'Imported' | 'Updated';
|
|
4
|
-
export type AuditLogSource = 'System' | 'Application' | 'API'
|
|
5
|
-
export type JsonDelta = Record<string, any>;
|
|
3
|
+
export type AuditLogSource = 'System' | 'Application' | 'API';
|
|
6
4
|
export interface AuditLogItem {
|
|
7
5
|
id: string;
|
|
8
6
|
userName: string;
|
|
9
7
|
operation: AuditLogOperation;
|
|
10
|
-
source
|
|
11
|
-
createdAt
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
operationMetaData?: string | number | null;
|
|
15
|
-
snapshot?: string | null;
|
|
8
|
+
source: AuditLogSource;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
diffs: JsonDelta | JsonDelta[] | null;
|
|
11
|
+
operationMetaData?: string;
|
|
16
12
|
}
|
|
17
13
|
export type FilterToggle = {
|
|
18
14
|
id: string;
|
|
@@ -22,17 +18,6 @@ export type FilterToggle = {
|
|
|
22
18
|
disabled?: boolean;
|
|
23
19
|
onChange: () => void;
|
|
24
20
|
};
|
|
25
|
-
type AuditLogLabels = {
|
|
26
|
-
heading: ReactNode;
|
|
27
|
-
change: ReactNode;
|
|
28
|
-
modifiedBy: ReactNode;
|
|
29
|
-
using: ReactNode;
|
|
30
|
-
operation: ReactNode;
|
|
31
|
-
date: ReactNode;
|
|
32
|
-
unknownUser: ReactNode;
|
|
33
|
-
snapshot: ReactNode;
|
|
34
|
-
cancel: ReactNode;
|
|
35
|
-
};
|
|
36
21
|
interface IAuditLogProps {
|
|
37
22
|
logs: AuditLogItem[];
|
|
38
23
|
total: number;
|
|
@@ -44,21 +29,8 @@ interface IAuditLogProps {
|
|
|
44
29
|
onSelectPage: (page: number) => void;
|
|
45
30
|
onChangeRowsPerPage: (n: number) => void;
|
|
46
31
|
data: any;
|
|
47
|
-
labels?: Partial<AuditLogLabels>;
|
|
48
|
-
/**
|
|
49
|
-
* Used for old snapshot rows.
|
|
50
|
-
*/
|
|
51
|
-
onClickSnapshot?: (snapshot: string, log: AuditLogItem) => void;
|
|
52
|
-
snapshotLoading?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Used for legacy restore/revert action.
|
|
55
|
-
*/
|
|
56
|
-
getActions?: (log: AuditLogItem) => any[];
|
|
57
|
-
/**
|
|
58
|
-
* Lets legacy consumers disable rows in the same way as before.
|
|
59
|
-
*/
|
|
60
|
-
isLogDisabled?: (log: AuditLogItem) => boolean;
|
|
61
32
|
}
|
|
33
|
+
export type JsonDelta = Record<string, any>;
|
|
62
34
|
export declare const AuditLog: React.FC<IAuditLogProps>;
|
|
63
35
|
export {};
|
|
64
36
|
//# sourceMappingURL=audit-log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/audit-log.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/audit-log.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,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{
|
|
5
|
-
deltaFormat: any[];
|
|
6
|
-
path: string[];
|
|
7
|
-
};
|
|
2
|
+
import { ISectionName } from './utils';
|
|
8
3
|
export declare const viewTypes: Readonly<{
|
|
9
4
|
summary: {
|
|
10
5
|
label: string;
|
|
@@ -15,15 +10,12 @@ export declare const viewTypes: Readonly<{
|
|
|
15
10
|
value: string;
|
|
16
11
|
};
|
|
17
12
|
}>;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const ComparisonViewModal: ({ auditLog, auditLogs, data, isOpen, sectionNames, onClose, cancelLabel, }: {
|
|
13
|
+
export declare const ComparisonViewModal: ({ auditLog, auditLogs, data, isOpen, sectionNames, onClose, }: {
|
|
20
14
|
auditLog: AuditLogItem;
|
|
21
15
|
auditLogs: AuditLogItem[];
|
|
22
16
|
data: any;
|
|
23
17
|
sectionNames: ISectionName[];
|
|
24
18
|
isOpen: boolean;
|
|
25
19
|
onClose: () => void;
|
|
26
|
-
cancelLabel?: ReactNode;
|
|
27
20
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
-
export {};
|
|
29
21
|
//# sourceMappingURL=comparison-view-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comparison-view-modal.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/comparison-view-modal.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAG/E,OAAO,EAAkB,YAAY,EAAa,MAAM,SAAS,CAAC;AAOlE,eAAO,MAAM,SAAS;;;;;;;;;EASpB,CAAC;AA0BH,eAAO,MAAM,mBAAmB,GAAI,+DAOjC;IACD,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,mDAqDA,CAAC"}
|