dce-reactkit 3.2.2-beta.5 → 3.2.2-beta.50
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/cjs/index.js +728 -433
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/cjs/types/components/Drawer.d.ts +1 -0
- package/dist/cjs/types/components/IntelliTable.d.ts +1 -0
- package/dist/cjs/types/components/ItemPicker/NestableItemList.d.ts +1 -0
- package/dist/cjs/types/components/ItemPicker/index.d.ts +1 -0
- package/dist/cjs/types/types/LogAction.d.ts +16 -16
- package/dist/cjs/types/types/LogBuiltInMetadata.d.ts +1 -1
- package/dist/cjs/types/types/LogMetadataContextMap.d.ts +11 -0
- package/dist/cjs/types/types/LogMetadataTagMap.d.ts +8 -0
- package/dist/cjs/types/types/LogMetadataTargetMap.d.ts +8 -0
- package/dist/cjs/types/types/LogMetadataType.d.ts +6 -12
- package/dist/esm/index.js +729 -434
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/esm/types/components/Drawer.d.ts +1 -0
- package/dist/esm/types/components/IntelliTable.d.ts +1 -0
- package/dist/esm/types/components/ItemPicker/NestableItemList.d.ts +1 -0
- package/dist/esm/types/components/ItemPicker/index.d.ts +1 -0
- package/dist/esm/types/types/LogAction.d.ts +16 -16
- package/dist/esm/types/types/LogBuiltInMetadata.d.ts +1 -1
- package/dist/esm/types/types/LogMetadataContextMap.d.ts +11 -0
- package/dist/esm/types/types/LogMetadataTagMap.d.ts +8 -0
- package/dist/esm/types/types/LogMetadataTargetMap.d.ts +8 -0
- package/dist/esm/types/types/LogMetadataType.d.ts +6 -12
- package/dist/index.d.ts +51 -29
- package/package.json +1 -1
- package/src/components/ButtonInputGroup.tsx +5 -2
- package/src/components/CSVDownloadButton.tsx +2 -2
- package/src/components/Drawer.tsx +9 -1
- package/src/components/IntelliTable.tsx +181 -26
- package/src/components/ItemPicker/NestableItemList.tsx +32 -14
- package/src/components/ItemPicker/index.tsx +4 -0
- package/src/components/LogReviewer.tsx +635 -406
- package/src/components/SimpleDateChooser.tsx +27 -18
- package/src/helpers/genCSV.ts +22 -4
- package/src/helpers/genRouteHandler.ts +2 -2
- package/src/helpers/logClientEvent.tsx +1 -1
- package/src/server/initServer.ts +10 -3
- package/src/types/LogAction.ts +16 -16
- package/src/types/LogBuiltInMetadata.ts +5 -5
- package/src/types/LogMetadataContextMap.ts +15 -0
- package/src/types/LogMetadataTagMap.ts +9 -0
- package/src/types/LogMetadataTargetMap.ts +9 -0
- package/src/types/LogMetadataType.ts +8 -15
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
5
|
declare enum LogAction {
|
|
6
|
-
Open = "
|
|
7
|
-
Close = "
|
|
8
|
-
Cancel = "
|
|
9
|
-
Expand = "
|
|
10
|
-
Collapse = "
|
|
11
|
-
View = "
|
|
12
|
-
Interrupt = "
|
|
13
|
-
Create = "
|
|
14
|
-
Edit = "
|
|
15
|
-
Delete = "
|
|
16
|
-
Add = "
|
|
17
|
-
Remove = "
|
|
18
|
-
Activate = "
|
|
19
|
-
Deactivate = "
|
|
20
|
-
Peek = "
|
|
21
|
-
Unknown = "
|
|
6
|
+
Open = "Open",
|
|
7
|
+
Close = "Close",
|
|
8
|
+
Cancel = "Cancel",
|
|
9
|
+
Expand = "Expand",
|
|
10
|
+
Collapse = "Collapse",
|
|
11
|
+
View = "View",
|
|
12
|
+
Interrupt = "Interrupt",
|
|
13
|
+
Create = "Create",
|
|
14
|
+
Edit = "Edit",
|
|
15
|
+
Delete = "Delete",
|
|
16
|
+
Add = "Add",
|
|
17
|
+
Remove = "Remove",
|
|
18
|
+
Activate = "Activate",
|
|
19
|
+
Deactivate = "Deactivate",
|
|
20
|
+
Peek = "Peek",
|
|
21
|
+
Unknown = "Unknown"
|
|
22
22
|
}
|
|
23
23
|
export default LogAction;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
import LogMetadataContextMap from './LogMetadataContextMap';
|
|
2
|
+
import LogMetadataTagMap from './LogMetadataTagMap';
|
|
3
|
+
import LogMetadataTargetMap from './LogMetadataTargetMap';
|
|
1
4
|
/**
|
|
2
5
|
* Type of a LogMetadata file
|
|
3
6
|
* @author Gabe Abrams
|
|
4
7
|
*/
|
|
5
8
|
declare type LogMetadataType = {
|
|
6
|
-
Context?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[k: string]: string;
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
Tag?: {
|
|
13
|
-
[k: string]: string;
|
|
14
|
-
};
|
|
15
|
-
Target?: {
|
|
16
|
-
[k: string]: string;
|
|
17
|
-
};
|
|
9
|
+
Context?: LogMetadataContextMap;
|
|
10
|
+
Tag?: LogMetadataTagMap;
|
|
11
|
+
Target?: LogMetadataTargetMap;
|
|
18
12
|
};
|
|
19
13
|
export default LogMetadataType;
|
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ declare type Props$a = {
|
|
|
242
242
|
label: string;
|
|
243
243
|
minLabelWidth?: string;
|
|
244
244
|
children: React.ReactNode;
|
|
245
|
+
className?: string;
|
|
245
246
|
};
|
|
246
247
|
declare const ButtonInputGroup: React.FC<Props$a>;
|
|
247
248
|
|
|
@@ -274,6 +275,7 @@ declare const SimpleDateChooser: React.FC<Props$9>;
|
|
|
274
275
|
*/
|
|
275
276
|
|
|
276
277
|
declare type Props$8 = {
|
|
278
|
+
customBackgroundColor?: string;
|
|
277
279
|
children: React.ReactNode;
|
|
278
280
|
};
|
|
279
281
|
declare const Drawer: React.FC<Props$8>;
|
|
@@ -363,26 +365,45 @@ declare type Props$3 = {
|
|
|
363
365
|
* values updated
|
|
364
366
|
*/
|
|
365
367
|
onChanged: (updatedItems: PickableItem[]) => void;
|
|
368
|
+
noBottomMargin?: boolean;
|
|
366
369
|
};
|
|
367
370
|
declare const ItemPicker: React.FC<Props$3>;
|
|
368
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Type of the context map in a LogMetadata file
|
|
374
|
+
* @author Gabe Abrams
|
|
375
|
+
*/
|
|
376
|
+
declare type LogMetadataContextMap = {
|
|
377
|
+
[k: string]: (string | {
|
|
378
|
+
_: string;
|
|
379
|
+
[k: string]: string;
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Type of the tag map inside a LogMetadata file
|
|
385
|
+
* @author Gabe Abrams
|
|
386
|
+
*/
|
|
387
|
+
declare type LogMetadataTagMap = {
|
|
388
|
+
[k: string]: string;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Type of the target map inside a LogMetadata file
|
|
393
|
+
* @author Gabe Abrams
|
|
394
|
+
*/
|
|
395
|
+
declare type LogMetadataTargetMap = {
|
|
396
|
+
[k: string]: string;
|
|
397
|
+
};
|
|
398
|
+
|
|
369
399
|
/**
|
|
370
400
|
* Type of a LogMetadata file
|
|
371
401
|
* @author Gabe Abrams
|
|
372
402
|
*/
|
|
373
403
|
declare type LogMetadataType = {
|
|
374
|
-
Context?:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
[k: string]: string;
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
Tag?: {
|
|
381
|
-
[k: string]: string;
|
|
382
|
-
};
|
|
383
|
-
Target?: {
|
|
384
|
-
[k: string]: string;
|
|
385
|
-
};
|
|
404
|
+
Context?: LogMetadataContextMap;
|
|
405
|
+
Tag?: LogMetadataTagMap;
|
|
406
|
+
Target?: LogMetadataTargetMap;
|
|
386
407
|
};
|
|
387
408
|
|
|
388
409
|
/**
|
|
@@ -438,6 +459,7 @@ declare type Props$1 = {
|
|
|
438
459
|
[k: string]: any;
|
|
439
460
|
}[];
|
|
440
461
|
columns: IntelliTableColumn[];
|
|
462
|
+
csvName?: string;
|
|
441
463
|
};
|
|
442
464
|
declare const IntelliTable: React.FC<Props$1>;
|
|
443
465
|
|
|
@@ -667,22 +689,22 @@ declare type LogSourceSpecificInfo = ({
|
|
|
667
689
|
* @author Gabe Abrams
|
|
668
690
|
*/
|
|
669
691
|
declare enum LogAction {
|
|
670
|
-
Open = "
|
|
671
|
-
Close = "
|
|
672
|
-
Cancel = "
|
|
673
|
-
Expand = "
|
|
674
|
-
Collapse = "
|
|
675
|
-
View = "
|
|
676
|
-
Interrupt = "
|
|
677
|
-
Create = "
|
|
678
|
-
Edit = "
|
|
679
|
-
Delete = "
|
|
680
|
-
Add = "
|
|
681
|
-
Remove = "
|
|
682
|
-
Activate = "
|
|
683
|
-
Deactivate = "
|
|
684
|
-
Peek = "
|
|
685
|
-
Unknown = "
|
|
692
|
+
Open = "Open",
|
|
693
|
+
Close = "Close",
|
|
694
|
+
Cancel = "Cancel",
|
|
695
|
+
Expand = "Expand",
|
|
696
|
+
Collapse = "Collapse",
|
|
697
|
+
View = "View",
|
|
698
|
+
Interrupt = "Interrupt",
|
|
699
|
+
Create = "Create",
|
|
700
|
+
Edit = "Edit",
|
|
701
|
+
Delete = "Delete",
|
|
702
|
+
Add = "Add",
|
|
703
|
+
Remove = "Remove",
|
|
704
|
+
Activate = "Activate",
|
|
705
|
+
Deactivate = "Deactivate",
|
|
706
|
+
Peek = "Peek",
|
|
707
|
+
Unknown = "Unknown"
|
|
686
708
|
}
|
|
687
709
|
|
|
688
710
|
/**
|
|
@@ -1026,7 +1048,7 @@ declare const LogBuiltInMetadata: {
|
|
|
1026
1048
|
ClientFatalError: string;
|
|
1027
1049
|
};
|
|
1028
1050
|
Target: {
|
|
1029
|
-
|
|
1051
|
+
NoTarget: string;
|
|
1030
1052
|
};
|
|
1031
1053
|
};
|
|
1032
1054
|
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@ type Props = {
|
|
|
18
18
|
minLabelWidth?: string,
|
|
19
19
|
// Buttons
|
|
20
20
|
children: React.ReactNode,
|
|
21
|
+
// Additional class names to add to the outer container
|
|
22
|
+
className?: string,
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
/*------------------------------------------------------------------------*/
|
|
@@ -36,6 +38,7 @@ const ButtonInputGroup: React.FC<Props> = (props) => {
|
|
|
36
38
|
label,
|
|
37
39
|
minLabelWidth,
|
|
38
40
|
children,
|
|
41
|
+
className,
|
|
39
42
|
} = props;
|
|
40
43
|
|
|
41
44
|
/*------------------------------------------------------------------------*/
|
|
@@ -47,7 +50,7 @@ const ButtonInputGroup: React.FC<Props> = (props) => {
|
|
|
47
50
|
/*----------------------------------------*/
|
|
48
51
|
|
|
49
52
|
return (
|
|
50
|
-
<div className=
|
|
53
|
+
<div className={`input-group ${className ?? ''}`}>
|
|
51
54
|
<div className="input-group-prepend d-flex w-100">
|
|
52
55
|
{/* Label */}
|
|
53
56
|
<span
|
|
@@ -66,7 +69,7 @@ const ButtonInputGroup: React.FC<Props> = (props) => {
|
|
|
66
69
|
|
|
67
70
|
{/* Contents */}
|
|
68
71
|
<span
|
|
69
|
-
className="input-group-text flex-grow-1 rounded-right"
|
|
72
|
+
className="input-group-text flex-grow-1 rounded-right d-flex flex-wrap"
|
|
70
73
|
style={{
|
|
71
74
|
backgroundColor: 'white',
|
|
72
75
|
borderTopLeftRadius: 0,
|
|
@@ -70,7 +70,7 @@ const CSVDownloadButton: React.FC<Props> = (props) => {
|
|
|
70
70
|
<a
|
|
71
71
|
id={id}
|
|
72
72
|
download={filename}
|
|
73
|
-
href={`data:application/octet-stream,${csv}`}
|
|
73
|
+
href={`data:application/octet-stream,${encodeURIComponent(csv)}`}
|
|
74
74
|
className={`CSVDownloadButton-button ${className ?? 'btn btn-secondary'}`}
|
|
75
75
|
aria-label={(
|
|
76
76
|
ariaLabel
|
|
@@ -84,8 +84,8 @@ const CSVDownloadButton: React.FC<Props> = (props) => {
|
|
|
84
84
|
<>
|
|
85
85
|
<FontAwesomeIcon
|
|
86
86
|
icon={faCloudDownloadAlt}
|
|
87
|
-
className="mr-2"
|
|
88
87
|
/>
|
|
88
|
+
{' '}
|
|
89
89
|
Download CSV
|
|
90
90
|
</>
|
|
91
91
|
)}
|
|
@@ -12,6 +12,8 @@ import React from 'react';
|
|
|
12
12
|
|
|
13
13
|
// Props definition
|
|
14
14
|
type Props = {
|
|
15
|
+
// Custom background color
|
|
16
|
+
customBackgroundColor?: string,
|
|
15
17
|
// Children to display
|
|
16
18
|
children: React.ReactNode,
|
|
17
19
|
};
|
|
@@ -49,6 +51,7 @@ const Drawer: React.FC<Props> = (props) => {
|
|
|
49
51
|
|
|
50
52
|
// Destructure all props
|
|
51
53
|
const {
|
|
54
|
+
customBackgroundColor,
|
|
52
55
|
children,
|
|
53
56
|
} = props;
|
|
54
57
|
|
|
@@ -61,7 +64,12 @@ const Drawer: React.FC<Props> = (props) => {
|
|
|
61
64
|
/*----------------------------------------*/
|
|
62
65
|
|
|
63
66
|
return (
|
|
64
|
-
<div
|
|
67
|
+
<div
|
|
68
|
+
className="Drawer-container"
|
|
69
|
+
style={{
|
|
70
|
+
backgroundColor: (customBackgroundColor ?? undefined),
|
|
71
|
+
}}
|
|
72
|
+
>
|
|
65
73
|
<style>{style}</style>
|
|
66
74
|
{children}
|
|
67
75
|
</div>
|