dce-reactkit 3.2.2-beta.9 → 3.2.4
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 +742 -435
- package/dist/cjs/index.js.map +1 -1
- 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/dynamicConstants/DynamicWord.d.ts +13 -0
- package/dist/cjs/types/helpers/isMobileOrTablet.d.ts +7 -0
- package/dist/cjs/types/index.d.ts +3 -1
- 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 +742 -437
- package/dist/esm/index.js.map +1 -1
- 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/dynamicConstants/DynamicWord.d.ts +13 -0
- package/dist/esm/types/helpers/isMobileOrTablet.d.ts +7 -0
- package/dist/esm/types/index.d.ts +3 -1
- 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 +70 -30
- package/package.json +1 -1
- package/src/components/ButtonInputGroup.tsx +1 -1
- package/src/components/CSVDownloadButton.tsx +2 -2
- package/src/components/Drawer.tsx +9 -1
- package/src/components/IntelliTable.tsx +178 -23
- package/src/components/ItemPicker/NestableItemList.tsx +32 -14
- package/src/components/LogReviewer.tsx +584 -424
- package/src/components/SimpleDateChooser.tsx +30 -25
- package/src/dynamicConstants/DynamicWord.tsx +44 -0
- package/src/helpers/genCSV.ts +22 -4
- package/src/helpers/genRouteHandler.ts +2 -2
- package/src/helpers/isMobileOrTablet.tsx +26 -0
- package/src/helpers/logClientEvent.tsx +1 -1
- package/src/index.ts +7 -0
- 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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic words determined by the user's platform
|
|
3
|
+
* @author Gabe Abrams
|
|
4
|
+
*/
|
|
5
|
+
declare const DynamicWord: {
|
|
6
|
+
Click: string;
|
|
7
|
+
ClickCapitalized: string;
|
|
8
|
+
App: string;
|
|
9
|
+
AppCapitalized: string;
|
|
10
|
+
Device: string;
|
|
11
|
+
DeviceCapitalized: string;
|
|
12
|
+
};
|
|
13
|
+
export default DynamicWord;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the user is on a mobile device or tablet
|
|
3
|
+
* from https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser
|
|
4
|
+
* @returns true if user is on a mobile device
|
|
5
|
+
*/
|
|
6
|
+
declare const isMobileOrTablet: () => boolean;
|
|
7
|
+
export default isMobileOrTablet;
|
|
@@ -20,6 +20,7 @@ import ErrorWithCode from './errors/ErrorWithCode';
|
|
|
20
20
|
import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
|
|
21
21
|
import HOUR_IN_MS from './constants/HOUR_IN_MS';
|
|
22
22
|
import DAY_IN_MS from './constants/DAY_IN_MS';
|
|
23
|
+
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
23
24
|
import abbreviate from './helpers/abbreviate';
|
|
24
25
|
import avg from './helpers/avg';
|
|
25
26
|
import ceilToNumDecimals from './helpers/ceilToNumDecimals';
|
|
@@ -49,6 +50,7 @@ import initLogCollection from './server/initLogCollection';
|
|
|
49
50
|
import getMonthName from './helpers/getMonthName';
|
|
50
51
|
import genCSV from './helpers/genCSV';
|
|
51
52
|
import canReviewLogs from './helpers/canReviewLogs';
|
|
53
|
+
import isMobileOrTablet from './helpers/isMobileOrTablet';
|
|
52
54
|
import ModalButtonType from './types/ModalButtonType';
|
|
53
55
|
import ModalSize from './types/ModalSize';
|
|
54
56
|
import ModalType from './types/ModalType';
|
|
@@ -64,4 +66,4 @@ import LogBuiltInMetadata from './types/LogBuiltInMetadata';
|
|
|
64
66
|
import LogMetadataType from './types/LogMetadataType';
|
|
65
67
|
import IntelliTableColumn from './types/IntelliTableColumn';
|
|
66
68
|
import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
67
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, alert, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, visitServerEndpoint, logClientEvent, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, ParamType, };
|
|
69
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, alert, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, visitServerEndpoint, logClientEvent, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, ParamType, };
|
|
@@ -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;
|