ag-common 0.0.728 → 0.0.729
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/api/helpers/api.js +0 -6
- package/dist/api/helpers/dynamo.d.ts +1 -1
- package/dist/api/helpers/dynamo.js +11 -12
- package/dist/api/helpers/enforceDynamoProvisionCap.js +0 -1
- package/dist/api/helpers/openApiHelpers.js +1 -2
- package/dist/api/helpers/s3.d.ts +0 -1
- package/dist/api/helpers/s3.js +11 -11
- package/dist/api/helpers/ses.d.ts +1 -1
- package/dist/api/helpers/sts.js +2 -2
- package/dist/api/helpers/validateOpenApi.js +1 -4
- package/dist/api/helpers/validations.js +3 -5
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +0 -1
- package/dist/api/openapi-postfix.js +0 -3
- package/dist/api/openapi-prefix.js +0 -6
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +0 -15
- package/dist/common/helpers/array.d.ts +1 -1
- package/dist/common/helpers/array.js +3 -4
- package/dist/common/helpers/async.js +2 -3
- package/dist/common/helpers/binary.d.ts +3 -4
- package/dist/common/helpers/binary.js +4 -4
- package/dist/common/helpers/csv.js +1 -3
- package/dist/common/helpers/date.js +0 -1
- package/dist/common/helpers/func.js +1 -2
- package/dist/common/helpers/generator.js +1 -3
- package/dist/common/helpers/groupBy.js +3 -4
- package/dist/common/helpers/hashCode.js +0 -1
- package/dist/common/helpers/log.js +0 -2
- package/dist/common/helpers/math.js +6 -8
- package/dist/common/helpers/memo.js +1 -4
- package/dist/common/helpers/object.js +9 -14
- package/dist/common/helpers/random.js +3 -3
- package/dist/common/helpers/stream.js +3 -3
- package/dist/common/helpers/string/contains.js +3 -3
- package/dist/common/helpers/string/json.js +0 -1
- package/dist/common/helpers/string/object.js +1 -2
- package/dist/common/helpers/string/redact.js +3 -3
- package/dist/common/helpers/string/trim.js +2 -3
- package/dist/common/helpers/string/truncate.js +1 -2
- package/dist/common/helpers/string/url.js +3 -2
- package/dist/common/helpers/xml.js +0 -1
- package/dist/node/helpers/fetch.js +2 -2
- package/dist/node/helpers/fs.js +2 -3
- package/dist/ui/components/Accordion/index.js +17 -7
- package/dist/ui/components/BarChart/index.d.ts +1 -1
- package/dist/ui/components/BarChart/index.js +0 -1
- package/dist/ui/components/Button/index.d.ts +2 -3
- package/dist/ui/components/Button/index.js +1 -4
- package/dist/ui/components/Confirm/Dialog.js +1 -0
- package/dist/ui/components/Confirm/index.d.ts +1 -1
- package/dist/ui/components/Confirm/index.js +0 -1
- package/dist/ui/components/DarkMode/Base.d.ts +3 -4
- package/dist/ui/components/DarkMode/Base.js +18 -7
- package/dist/ui/components/DropdownList/Base.d.ts +2 -2
- package/dist/ui/components/DropdownList/Base.js +19 -10
- package/dist/ui/components/DropdownList/Dialog.d.ts +1 -1
- package/dist/ui/components/DropdownList/Dialog.js +2 -0
- package/dist/ui/components/DropdownList/types.d.ts +1 -1
- package/dist/ui/components/HorizontalScrollBar/index.js +18 -7
- package/dist/ui/components/Icon/index.d.ts +2 -2
- package/dist/ui/components/Image/index.js +17 -7
- package/dist/ui/components/InfiniteScroll/index.js +17 -8
- package/dist/ui/components/LineChart/index.d.ts +1 -1
- package/dist/ui/components/LineChart/index.js +0 -1
- package/dist/ui/components/Loader/index.js +17 -7
- package/dist/ui/components/Markdown/index.d.ts +2 -2
- package/dist/ui/components/MinSidebar/index.js +17 -7
- package/dist/ui/components/Modal/Dialog.js +1 -0
- package/dist/ui/components/Modal/Modal.d.ts +2 -2
- package/dist/ui/components/Modal/Modal.js +18 -7
- package/dist/ui/components/Modal/index.d.ts +1 -1
- package/dist/ui/components/Modal/index.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/index.d.ts +2 -2
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.d.ts +4 -5
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/index.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/index.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/types.d.ts +1 -1
- package/dist/ui/components/ProgressBar/index.js +17 -7
- package/dist/ui/components/Prompt/Modal.js +18 -7
- package/dist/ui/components/Prompt/index.d.ts +1 -1
- package/dist/ui/components/Prompt/index.js +0 -1
- package/dist/ui/components/RadioGroup/index.d.ts +2 -2
- package/dist/ui/components/RadioGroup/index.js +17 -8
- package/dist/ui/components/Search/AutoHideSearchBox.js +17 -7
- package/dist/ui/components/Search/Dialog.js +1 -0
- package/dist/ui/components/Search/Inline.js +17 -8
- package/dist/ui/components/Search/SearchBox.d.ts +1 -1
- package/dist/ui/components/Search/SearchBox.js +17 -7
- package/dist/ui/components/Search/index.d.ts +1 -1
- package/dist/ui/components/Search/index.js +0 -1
- package/dist/ui/components/Search/types.d.ts +2 -2
- package/dist/ui/components/Sidebar/index.js +17 -7
- package/dist/ui/components/TabBar/index.d.ts +2 -2
- package/dist/ui/components/TabBar/index.js +17 -7
- package/dist/ui/components/Table/index.d.ts +2 -2
- package/dist/ui/components/TextEdit/CheckboxEdit.js +17 -7
- package/dist/ui/components/TextEdit/ColourEdit.js +17 -7
- package/dist/ui/components/TextEdit/ListboxEdit.js +20 -18
- package/dist/ui/components/TextEdit/TextEdit.d.ts +2 -2
- package/dist/ui/components/TextEdit/TextEdit.js +20 -18
- package/dist/ui/components/TextEdit/common.d.ts +6 -7
- package/dist/ui/components/TextEdit/index.d.ts +1 -1
- package/dist/ui/components/TextEdit/index.js +0 -1
- package/dist/ui/components/TextEdit/types.d.ts +1 -0
- package/dist/ui/components/TextWithButton/index.js +17 -7
- package/dist/ui/components/Toast/base.js +18 -7
- package/dist/ui/components/Toast/index.d.ts +1 -1
- package/dist/ui/components/Toast/index.js +0 -1
- package/dist/ui/components/Toast/types.d.ts +1 -1
- package/dist/ui/components/TreeChart/base.js +17 -7
- package/dist/ui/components/TreeChart/index.d.ts +1 -1
- package/dist/ui/components/TreeChart/index.js +0 -1
- package/dist/ui/components/UserImage/index.js +17 -7
- package/dist/ui/helpers/axiosHelper.d.ts +1 -1
- package/dist/ui/helpers/axiosHelper.js +0 -2
- package/dist/ui/helpers/callOpenApi/direct.js +2 -7
- package/dist/ui/helpers/callOpenApi/helpers.js +1 -2
- package/dist/ui/helpers/callOpenApi/hook.d.ts +0 -1
- package/dist/ui/helpers/callOpenApi/index.d.ts +1 -1
- package/dist/ui/helpers/callOpenApi/index.js +0 -1
- package/dist/ui/helpers/cookie/get.js +3 -3
- package/dist/ui/helpers/cookie/raw.js +4 -4
- package/dist/ui/helpers/cookie/set.js +2 -2
- package/dist/ui/helpers/cookie/use.js +2 -2
- package/dist/ui/helpers/debounce.js +2 -3
- package/dist/ui/helpers/dom.js +0 -2
- package/dist/ui/helpers/extractAttributes.js +0 -1
- package/dist/ui/helpers/index.d.ts +2 -2
- package/dist/ui/helpers/index.js +0 -2
- package/dist/ui/helpers/plural.js +1 -2
- package/dist/ui/helpers/routes.d.ts +2 -2
- package/dist/ui/helpers/serviceWorker.js +1 -2
- package/dist/ui/helpers/useContextMenu.d.ts +1 -1
- package/dist/ui/helpers/useContextMenu.js +2 -3
- package/dist/ui/helpers/useElementAttribute.js +3 -2
- package/dist/ui/helpers/useGranularHook.js +1 -1
- package/dist/ui/helpers/useInterval.js +2 -2
- package/dist/ui/helpers/useIsInViewport.js +1 -2
- package/dist/ui/helpers/useLocalStorage.js +2 -2
- package/dist/ui/helpers/useLockBodyScroll.js +1 -2
- package/dist/ui/helpers/useOnClickOutside.d.ts +1 -1
- package/dist/ui/helpers/useOnClickOutside.js +3 -3
- package/dist/ui/helpers/useOnScroll.js +6 -7
- package/dist/ui/helpers/useOverloadPageSearch.js +2 -0
- package/dist/ui/helpers/useQueryString.js +1 -1
- package/dist/ui/helpers/useResize.js +2 -2
- package/dist/ui/helpers/useTimeout.js +1 -2
- package/dist/ui/helpers/useTooltip.d.ts +1 -0
- package/dist/ui/helpers/useTooltip.js +18 -7
- package/dist/ui/icons/index.d.ts +27 -28
- package/dist/ui/styles/common.d.ts +2 -2
- package/dist/ui/styles/standaloneStyles.d.ts +12 -13
- package/package.json +36 -33
|
@@ -33,6 +33,7 @@ const DropdownListDialog = (p) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
33
33
|
try {
|
|
34
34
|
root.unmount();
|
|
35
35
|
wrapper.remove();
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
37
|
}
|
|
37
38
|
catch (e) {
|
|
38
39
|
//
|
|
@@ -41,6 +42,7 @@ const DropdownListDialog = (p) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
41
42
|
try {
|
|
42
43
|
root.unmount();
|
|
43
44
|
wrapper.remove();
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
44
46
|
}
|
|
45
47
|
catch (e) {
|
|
46
48
|
//
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
37
|
exports.HorizontalScrollBar = void 0;
|
|
28
38
|
const react_1 = __importStar(require("react"));
|
|
@@ -44,6 +54,7 @@ const HorizontalScrollBar = ({ children, className, }) => {
|
|
|
44
54
|
try {
|
|
45
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
56
|
(_a = scrollRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('wheel', handleScroll);
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
47
58
|
}
|
|
48
59
|
catch (e) {
|
|
49
60
|
//
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare const IconF: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: React.ElementType
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
7
7
|
export interface IIcon {
|
|
8
8
|
disabled?: boolean;
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
27
37
|
var t = {};
|
|
28
38
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -60,7 +70,6 @@ const InfiniteScroll = (p) => {
|
|
|
60
70
|
}
|
|
61
71
|
};
|
|
62
72
|
(0, react_1.useEffect)(() => {
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
64
73
|
setStartScrollTop(ref.current.scrollTop);
|
|
65
74
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
66
75
|
}, []);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Base';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
export interface IMarkdown {
|
|
3
3
|
markdown: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
/** run after html is generated for markdown, but before applied */
|
|
6
6
|
preprocessText?: (s: string) => string | JSX.Element;
|
|
7
7
|
}
|
|
8
|
-
export declare const Markdown: (p: IMarkdown) =>
|
|
8
|
+
export declare const Markdown: (p: IMarkdown) => JSX.Element;
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IModal } from './types';
|
|
3
3
|
export declare const ModalItem: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: React.ElementType
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
7
|
export declare const Modal: (p: IModal) => React.JSX.Element | null;
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -109,6 +119,7 @@ const Modal = (p) => {
|
|
|
109
119
|
var _a;
|
|
110
120
|
try {
|
|
111
121
|
(_a = document.querySelector(`#${portalId}`)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
112
123
|
}
|
|
113
124
|
catch (e) {
|
|
114
125
|
//
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Dialog"), exports);
|
|
18
18
|
__exportStar(require("./Modal"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../types';
|
|
3
3
|
export declare const Curl: <TDefaultApi>({ ops, p, }: {
|
|
4
4
|
p: IOpenApiCodeBlock<TDefaultApi>;
|
|
5
5
|
ops: IOpenApiOperationBlock;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
|
|
3
3
|
export declare const getFetchCall: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>, ops: IOpenApiOperationBlock) => JSX.Element | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
|
|
3
3
|
export declare const getRequestOptions: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>, ops: IOpenApiOperationBlock) => JSX.Element | undefined;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { IOpenApi, IOpenApiCodeBlock, IOpenApiOperation, IOpenApiOperationBlock } from '../types';
|
|
3
2
|
export declare const Highlight: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
6
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
7
6
|
export declare const Highlight2: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?:
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
10
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
11
10
|
export declare const getOperation: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => IOpenApiOperationBlock;
|
|
12
11
|
export declare const getBodyJson: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
export declare const joinJsx: (items: (JSX.Element | undefined)[], sep: JSX.Element[]) => JSX.Element[];
|
|
3
3
|
export declare const joinJsxWithSlash: (items: (JSX.Element | undefined)[]) => JSX.Element[];
|
|
4
4
|
export declare const joinJsxWithComma: (items: (JSX.Element | undefined)[]) => JSX.Element[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './OpenApiCodeBlock';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -74,6 +84,7 @@ const PromptModal = ({ root, wrapper, res, bottomText, topText, okText = 'OK', c
|
|
|
74
84
|
try {
|
|
75
85
|
root === null || root === void 0 ? void 0 : root.unmount();
|
|
76
86
|
wrapper === null || wrapper === void 0 ? void 0 : wrapper.remove();
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
77
88
|
}
|
|
78
89
|
catch (e) {
|
|
79
90
|
//
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Dialog"), exports);
|
|
18
18
|
__exportStar(require("./Modal"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import type { JSX } from 'react';
|
|
3
3
|
export interface IRadioGroup<T> {
|
|
4
4
|
/**
|
|
5
5
|
* can overload the render of the label. defaults to toString
|
|
@@ -13,4 +13,4 @@ export interface IRadioGroup<T> {
|
|
|
13
13
|
/** default horiz */
|
|
14
14
|
mode?: 'vert' | 'horiz';
|
|
15
15
|
}
|
|
16
|
-
export declare const RadioGroup: <T>(p: IRadioGroup<T>) =>
|
|
16
|
+
export declare const RadioGroup: <T>(p: IRadioGroup<T>) => JSX.Element;
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -53,7 +63,6 @@ const Label = styled_1.default.label `
|
|
|
53
63
|
`;
|
|
54
64
|
const RadioGroup = (p) => {
|
|
55
65
|
var _a;
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
57
66
|
const { renderLabel = (x) => x.toString() } = p;
|
|
58
67
|
const [index, setIndex] = (0, react_1.useState)(p.defaultIndex);
|
|
59
68
|
return (react_1.default.createElement(Base, { className: p.className, style: p.style, "data-mode": (_a = p.mode) !== null && _a !== void 0 ? _a : 'horiz' }, p.values.map((v, i) => (react_1.default.createElement(Label
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -119,7 +129,6 @@ const SearchInline = (p) => {
|
|
|
119
129
|
react_1.default.createElement(Content, { "data-hasitems": !!filteredItems.length, "data-type": "content" },
|
|
120
130
|
rowCountOptDisplay === 'top' && outdiff && (react_1.default.createElement(RowCount, { "data-top": "true" }, showText)),
|
|
121
131
|
filteredItems.map((item, index) => (0, react_1.cloneElement)(p.renderItem({ searchText, item, index }), {
|
|
122
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
123
132
|
onClick: (e) => resWrap(item, e.target),
|
|
124
133
|
})),
|
|
125
134
|
rowCountOptDisplay === 'bottom' && outdiff && (react_1.default.createElement(RowCount, { "data-top": "false" }, showText)))));
|
|
@@ -5,7 +5,7 @@ export interface ISearchBox {
|
|
|
5
5
|
searchText: string;
|
|
6
6
|
setSearchText: (val: string, enterPressed: boolean) => void;
|
|
7
7
|
className?: string;
|
|
8
|
-
textBoxRef?: React.RefObject<IRefTextEdit>;
|
|
8
|
+
textBoxRef?: React.RefObject<IRefTextEdit | null>;
|
|
9
9
|
/**
|
|
10
10
|
* if truthy will enable text edit mode by default. if focus is true, will also focus on open
|
|
11
11
|
*/
|