ag-common 0.0.562 → 0.0.563
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,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ITableItem {
|
|
3
3
|
content: JSX.Element;
|
|
4
|
-
groupTitle
|
|
4
|
+
groupTitle?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface ITable {
|
|
7
|
-
children:
|
|
7
|
+
children: ITableItem[];
|
|
8
8
|
className?: string;
|
|
9
9
|
headerRow?: JSX.Element;
|
|
10
10
|
}
|
|
@@ -36,6 +36,7 @@ const GroupTitle = styled_1.default.div `
|
|
|
36
36
|
const GroupWrap = styled_1.default.div `
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-flow: column;
|
|
39
|
+
width: 100%;
|
|
39
40
|
`;
|
|
40
41
|
const Table = ({ children, className, headerRow }) => {
|
|
41
42
|
const grouped = (0, groupBy_1.groupByList)(children, (s) => s.groupTitle);
|
|
@@ -5,7 +5,7 @@ export interface ICheckboxEdit {
|
|
|
5
5
|
onSubmit: (val: boolean) => void;
|
|
6
6
|
noGrow?: boolean;
|
|
7
7
|
/**
|
|
8
|
-
* if true, will add undo button after changes. if false, will submit after every keypress. default
|
|
8
|
+
* if true, will add undo button after changes. if false, will submit after every keypress. default false
|
|
9
9
|
*/
|
|
10
10
|
allowUndo?: boolean;
|
|
11
11
|
/** display to right of CB */
|
|
@@ -41,9 +41,7 @@ const Icons = (0, styled_1.default)(FlexRow_1.FlexRow) `
|
|
|
41
41
|
top: 0;
|
|
42
42
|
right: -2rem;
|
|
43
43
|
`;
|
|
44
|
-
const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false,
|
|
45
|
-
/** default allowUndo=true */
|
|
46
|
-
allowUndo = true, rightSpan, className, }) => {
|
|
44
|
+
const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false, allowUndo = false, rightSpan, className, }) => {
|
|
47
45
|
const ref = (0, react_1.useRef)(null);
|
|
48
46
|
const [value, setValue] = (0, react_1.useState)(defaultValue);
|
|
49
47
|
(0, react_1.useEffect)(() => {
|
|
@@ -35,6 +35,10 @@ function getCookieRawWrapper({ name, cookieDocument, defaultValue, parse: parseR
|
|
|
35
35
|
currentCount += 1;
|
|
36
36
|
}
|
|
37
37
|
try {
|
|
38
|
+
if (!raw) {
|
|
39
|
+
(0, log_1.debug)('no cookie found:' + name);
|
|
40
|
+
return defaultValue;
|
|
41
|
+
}
|
|
38
42
|
return parse((0, base64_1.fromBase64)(raw));
|
|
39
43
|
}
|
|
40
44
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.563",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"test-run": "ts-node -- src/api/helpers/s3.test.ts"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
20
|
-
"@aws-sdk/client-s3": "^3.
|
|
21
|
-
"@aws-sdk/client-ses": "^3.
|
|
22
|
-
"@aws-sdk/client-sqs": "^3.
|
|
23
|
-
"@aws-sdk/client-sts": "^3.
|
|
24
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
25
|
-
"@aws-sdk/s3-presigned-post": "^3.
|
|
26
|
-
"@aws-sdk/util-dynamodb": "^3.
|
|
19
|
+
"@aws-sdk/client-dynamodb": "^3.390",
|
|
20
|
+
"@aws-sdk/client-s3": "^3.390",
|
|
21
|
+
"@aws-sdk/client-ses": "^3.390",
|
|
22
|
+
"@aws-sdk/client-sqs": "^3.390",
|
|
23
|
+
"@aws-sdk/client-sts": "^3.390",
|
|
24
|
+
"@aws-sdk/lib-dynamodb": "^3.390",
|
|
25
|
+
"@aws-sdk/s3-presigned-post": "^3.390",
|
|
26
|
+
"@aws-sdk/util-dynamodb": "^3.390",
|
|
27
27
|
"aws-cdk-lib": "^2",
|
|
28
28
|
"axios": "^1",
|
|
29
29
|
"buffer": "^6",
|