@kylincloud/flamegraph 0.35.6
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/CHANGELOG.md +1211 -0
- package/LICENSE +202 -0
- package/README.md +251 -0
- package/dist/FlameGraph/FlameGraphComponent/CheckIcon.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/CheckIcon.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenu.d.ts +17 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenu.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenuHighlight.d.ts +14 -0
- package/dist/FlameGraph/FlameGraphComponent/ContextMenuHighlight.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegend.d.ts +9 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegend.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.d.ts +8 -0
- package/dist/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts +96 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts +27 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/GraphVizPane.d.ts +7 -0
- package/dist/FlameGraph/FlameGraphComponent/GraphVizPane.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Header.d.ts +12 -0
- package/dist/FlameGraph/FlameGraphComponent/Header.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/Highlight.d.ts +18 -0
- package/dist/FlameGraph/FlameGraphComponent/Highlight.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/LogoLink.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/LogoLink.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/color.d.ts +20 -0
- package/dist/FlameGraph/FlameGraphComponent/color.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/colorPalette.d.ts +11 -0
- package/dist/FlameGraph/FlameGraphComponent/colorPalette.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/constants.d.ts +6 -0
- package/dist/FlameGraph/FlameGraphComponent/constants.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts +37 -0
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/murmur3.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/murmur3.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/testData.d.ts +53 -0
- package/dist/FlameGraph/FlameGraphComponent/testData.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/utils.d.ts +6 -0
- package/dist/FlameGraph/FlameGraphComponent/utils.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphComponent/viewTypes.d.ts +2 -0
- package/dist/FlameGraph/FlameGraphComponent/viewTypes.d.ts.map +1 -0
- package/dist/FlameGraph/FlameGraphRenderer.d.ts +86 -0
- package/dist/FlameGraph/FlameGraphRenderer.d.ts.map +1 -0
- package/dist/FlameGraph/decode.d.ts +27 -0
- package/dist/FlameGraph/decode.d.ts.map +1 -0
- package/dist/FlameGraph/normalize.d.ts +6 -0
- package/dist/FlameGraph/normalize.d.ts.map +1 -0
- package/dist/FlameGraph/uniqueness.d.ts +3 -0
- package/dist/FlameGraph/uniqueness.d.ts.map +1 -0
- package/dist/FlamegraphRenderer.d.ts +19 -0
- package/dist/FlamegraphRenderer.d.ts.map +1 -0
- package/dist/Icons.d.ts +9 -0
- package/dist/Icons.d.ts.map +1 -0
- package/dist/ProfilerTable.d.ts +21 -0
- package/dist/ProfilerTable.d.ts.map +1 -0
- package/dist/SharedQueryInput.d.ts +10 -0
- package/dist/SharedQueryInput.d.ts.map +1 -0
- package/dist/Toolbar.d.ts +31 -0
- package/dist/Toolbar.d.ts.map +1 -0
- package/dist/Tooltip/FlamegraphTooltip.d.ts +59 -0
- package/dist/Tooltip/FlamegraphTooltip.d.ts.map +1 -0
- package/dist/Tooltip/LeftClickIcon.d.ts +2 -0
- package/dist/Tooltip/LeftClickIcon.d.ts.map +1 -0
- package/dist/Tooltip/RightClickIcon.d.ts +2 -0
- package/dist/Tooltip/RightClickIcon.d.ts.map +1 -0
- package/dist/Tooltip/TableTooltip.d.ts +12 -0
- package/dist/Tooltip/TableTooltip.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +29 -0
- package/dist/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/convert/convertJaegerTraceToProfile.d.ts +3 -0
- package/dist/convert/convertJaegerTraceToProfile.d.ts.map +1 -0
- package/dist/convert/diffTwoProfiles.d.ts +3 -0
- package/dist/convert/diffTwoProfiles.d.ts.map +1 -0
- package/dist/convert/flamebearersToTree.d.ts +11 -0
- package/dist/convert/flamebearersToTree.d.ts.map +1 -0
- package/dist/convert/sandwichViewProfiles.d.ts +14 -0
- package/dist/convert/sandwichViewProfiles.d.ts.map +1 -0
- package/dist/convert/subtract.d.ts +3 -0
- package/dist/convert/subtract.d.ts.map +1 -0
- package/dist/convert/testData.d.ts +50 -0
- package/dist/convert/testData.d.ts.map +1 -0
- package/dist/convert/toGraphviz.d.ts +3 -0
- package/dist/convert/toGraphviz.d.ts.map +1 -0
- package/dist/fitMode/fitMode.d.ts +42 -0
- package/dist/fitMode/fitMode.d.ts.map +1 -0
- package/dist/format/format.d.ts +42 -0
- package/dist/format/format.d.ts.map +1 -0
- package/dist/i18n.d.ts +55 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/index.cjs.css +792 -0
- package/dist/index.cjs.js +5087 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.css +792 -0
- package/dist/index.esm.js +5079 -0
- package/dist/index.node.d.ts +9 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/logo-v3-small-T5VXIMRR.svg +32 -0
- package/dist/models/decode.d.ts +3 -0
- package/dist/models/decode.d.ts.map +1 -0
- package/dist/models/flamebearer.d.ts +63 -0
- package/dist/models/flamebearer.d.ts.map +1 -0
- package/dist/models/groups.d.ts +37 -0
- package/dist/models/groups.d.ts.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/profile.d.ts +152 -0
- package/dist/models/profile.d.ts.map +1 -0
- package/dist/models/spyName.d.ts +8 -0
- package/dist/models/spyName.d.ts.map +1 -0
- package/dist/models/trace.d.ts +357 -0
- package/dist/models/trace.d.ts.map +1 -0
- package/dist/models/units.d.ts +6 -0
- package/dist/models/units.d.ts.map +1 -0
- package/dist/search.d.ts +2 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/shims/Box.d.ts +38 -0
- package/dist/shims/Box.d.ts.map +1 -0
- package/dist/shims/Button.d.ts +26 -0
- package/dist/shims/Button.d.ts.map +1 -0
- package/dist/shims/Dropdown.d.ts +30 -0
- package/dist/shims/Dropdown.d.ts.map +1 -0
- package/dist/shims/Input.d.ts +19 -0
- package/dist/shims/Input.d.ts.map +1 -0
- package/dist/shims/LoadingSpinner.d.ts +7 -0
- package/dist/shims/LoadingSpinner.d.ts.map +1 -0
- package/dist/shims/Menu.d.ts +4 -0
- package/dist/shims/Menu.d.ts.map +1 -0
- package/dist/shims/NoData.d.ts +2 -0
- package/dist/shims/NoData.d.ts.map +1 -0
- package/dist/shims/Table.d.ts +52 -0
- package/dist/shims/Table.d.ts.map +1 -0
- package/dist/shims/Tooltip.d.ts +9 -0
- package/dist/shims/Tooltip.d.ts.map +1 -0
- package/package.json +84 -0
- package/src/FlameGraph/FlameGraphComponent/CheckIcon.tsx +27 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.spec.tsx +84 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenu.tsx +86 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenuHighlight.module.css +8 -0
- package/src/FlameGraph/FlameGraphComponent/ContextMenuHighlight.tsx +47 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.module.css +21 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegend.tsx +52 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.module.css +40 -0
- package/src/FlameGraph/FlameGraphComponent/DiffLegendPaletteDropdown.tsx +129 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.spec.ts +552 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.ts +446 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.spec.tsx +233 -0
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.ts +478 -0
- package/src/FlameGraph/FlameGraphComponent/GraphVizPane.tsx +56 -0
- package/src/FlameGraph/FlameGraphComponent/GraphVizPanel.module.scss +55 -0
- package/src/FlameGraph/FlameGraphComponent/Header.module.css +27 -0
- package/src/FlameGraph/FlameGraphComponent/Header.tsx +71 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.module.css +7 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.spec.tsx +53 -0
- package/src/FlameGraph/FlameGraphComponent/Highlight.tsx +94 -0
- package/src/FlameGraph/FlameGraphComponent/LogoLink.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/LogoLink.tsx +101 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-collapses-small-blocks-into-one-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-diff-mode-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-highlighted-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-normal-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/canvas-renderer-spec-tsx-canvas-renderer-group-snapshot-works-with-selected-node-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-also-zooms-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-in-the-beginning-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-when-node-is-not-in-the-beginning-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-focused-renders-a-focused-node-zoom-top-level-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-complex-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-double-diff-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-highlighted-double-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-highlighted-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-simple-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-simple-tree-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-zoomed-flamegraph-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/__image_snapshots__/flamegraph-render-spec-tsx-render-group-snapshot-renders-a-zoomed-with-fit-mode-tail-1-snap.png +0 -0
- package/src/FlameGraph/FlameGraphComponent/canvas.module.css +6 -0
- package/src/FlameGraph/FlameGraphComponent/color.spec.ts +308 -0
- package/src/FlameGraph/FlameGraphComponent/color.ts +167 -0
- package/src/FlameGraph/FlameGraphComponent/colorPalette.ts +58 -0
- package/src/FlameGraph/FlameGraphComponent/constants.ts +5 -0
- package/src/FlameGraph/FlameGraphComponent/index.spec.tsx +291 -0
- package/src/FlameGraph/FlameGraphComponent/index.tsx +411 -0
- package/src/FlameGraph/FlameGraphComponent/murmur3.ts +97 -0
- package/src/FlameGraph/FlameGraphComponent/styles.module.scss +10 -0
- package/src/FlameGraph/FlameGraphComponent/testData.ts +427 -0
- package/src/FlameGraph/FlameGraphComponent/utils.ts +31 -0
- package/src/FlameGraph/FlameGraphComponent/viewTypes.ts +6 -0
- package/src/FlameGraph/FlameGraphRenderer.tsx +603 -0
- package/src/FlameGraph/FlamegraphRenderer.module.scss +93 -0
- package/src/FlameGraph/decode.ts +78 -0
- package/src/FlameGraph/normalize.spec.ts +76 -0
- package/src/FlameGraph/normalize.ts +60 -0
- package/src/FlameGraph/testData.json +423 -0
- package/src/FlameGraph/uniqueness.spec.ts +16 -0
- package/src/FlameGraph/uniqueness.ts +84 -0
- package/src/FlamegraphRenderer.tsx +61 -0
- package/src/Icons.tsx +74 -0
- package/src/ProfilerTable.tsx +527 -0
- package/src/SharedQueryInput.module.scss +82 -0
- package/src/SharedQueryInput.tsx +127 -0
- package/src/Toolbar.module.scss +117 -0
- package/src/Toolbar.spec.tsx +217 -0
- package/src/Toolbar.tsx +471 -0
- package/src/Tooltip/FlamegraphTooltip.spec.tsx +81 -0
- package/src/Tooltip/FlamegraphTooltip.tsx +257 -0
- package/src/Tooltip/LeftClickIcon.tsx +18 -0
- package/src/Tooltip/RightClickIcon.tsx +18 -0
- package/src/Tooltip/TableTooltip.spec.tsx +44 -0
- package/src/Tooltip/TableTooltip.tsx +145 -0
- package/src/Tooltip/Tooltip.module.scss +71 -0
- package/src/Tooltip/Tooltip.spec.tsx +395 -0
- package/src/Tooltip/Tooltip.tsx +336 -0
- package/src/__snapshots__/Toolbar.spec.tsx.snap +297 -0
- package/src/convert/convertJaegerTraceToProfile.ts +97 -0
- package/src/convert/diffTwoProfiles.ts +81 -0
- package/src/convert/flamebearersToTree.ts +78 -0
- package/src/convert/sandwichViewProfiles.spec.ts +65 -0
- package/src/convert/sandwichViewProfiles.ts +191 -0
- package/src/convert/subtract.ts +87 -0
- package/src/convert/testData.ts +145 -0
- package/src/convert/toGraphviz.ts +485 -0
- package/src/fitMode/fitMode.spec.ts +93 -0
- package/src/fitMode/fitMode.ts +122 -0
- package/src/format/format.spec.ts +291 -0
- package/src/format/format.ts +303 -0
- package/src/globals.d.ts +13 -0
- package/src/i18n.tsx +293 -0
- package/src/index.node.ts +19 -0
- package/src/index.spec.tsx +383 -0
- package/src/index.tsx +10 -0
- package/src/logo-v3-small.svg +32 -0
- package/src/models/decode.ts +45 -0
- package/src/models/flamebearer.ts +86 -0
- package/src/models/groups.ts +14 -0
- package/src/models/index.ts +7 -0
- package/src/models/profile.spec.ts +32 -0
- package/src/models/profile.ts +48 -0
- package/src/models/spyName.spec.ts +18 -0
- package/src/models/spyName.ts +32 -0
- package/src/models/trace.ts +45 -0
- package/src/models/units.spec.ts +21 -0
- package/src/models/units.ts +24 -0
- package/src/sass/_common.scss +206 -0
- package/src/sass/_css-variables.scss +201 -0
- package/src/sass/_mixins.scss +15 -0
- package/src/sass/_sanitize.scss +407 -0
- package/src/sass/_variables.scss +53 -0
- package/src/sass/flamegraph.scss +18 -0
- package/src/search.spec.ts +11 -0
- package/src/search.ts +4 -0
- package/src/shameful-any.d.ts +2 -0
- package/src/shims/Box.module.scss +57 -0
- package/src/shims/Box.tsx +105 -0
- package/src/shims/Button.module.scss +129 -0
- package/src/shims/Button.tsx +128 -0
- package/src/shims/Dropdown.module.scss +63 -0
- package/src/shims/Dropdown.tsx +96 -0
- package/src/shims/Input.module.scss +15 -0
- package/src/shims/Input.tsx +55 -0
- package/src/shims/LoadingSpinner.tsx +19 -0
- package/src/shims/Menu.tsx +9 -0
- package/src/shims/NoData.module.scss +6 -0
- package/src/shims/NoData.tsx +11 -0
- package/src/shims/Table.module.scss +82 -0
- package/src/shims/Table.spec.tsx +121 -0
- package/src/shims/Table.tsx +252 -0
- package/src/shims/Tooltip.tsx +51 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const TraceSpanSchema: z.ZodObject<{
|
|
3
|
+
traceID: z.ZodString;
|
|
4
|
+
spanID: z.ZodString;
|
|
5
|
+
flags: z.ZodString;
|
|
6
|
+
operationName: z.ZodString;
|
|
7
|
+
references: z.ZodArray<z.ZodObject<{
|
|
8
|
+
refType: z.ZodString;
|
|
9
|
+
traceID: z.ZodString;
|
|
10
|
+
spanID: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
refType?: string;
|
|
13
|
+
traceID?: string;
|
|
14
|
+
spanID?: string;
|
|
15
|
+
}, {
|
|
16
|
+
refType?: string;
|
|
17
|
+
traceID?: string;
|
|
18
|
+
spanID?: string;
|
|
19
|
+
}>, "many">;
|
|
20
|
+
startTime: z.ZodNumber;
|
|
21
|
+
duration: z.ZodNumber;
|
|
22
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
23
|
+
key: z.ZodString;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
value?: string | number | boolean;
|
|
28
|
+
type?: string;
|
|
29
|
+
key?: string;
|
|
30
|
+
}, {
|
|
31
|
+
value?: string | number | boolean;
|
|
32
|
+
type?: string;
|
|
33
|
+
key?: string;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
logs: z.ZodObject<{
|
|
36
|
+
timestamp: z.ZodNumber;
|
|
37
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
38
|
+
key: z.ZodString;
|
|
39
|
+
type: z.ZodString;
|
|
40
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
value?: string | number | boolean;
|
|
43
|
+
type?: string;
|
|
44
|
+
key?: string;
|
|
45
|
+
}, {
|
|
46
|
+
value?: string | number | boolean;
|
|
47
|
+
type?: string;
|
|
48
|
+
key?: string;
|
|
49
|
+
}>, "many">;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
timestamp?: number;
|
|
52
|
+
fields?: {
|
|
53
|
+
value?: string | number | boolean;
|
|
54
|
+
type?: string;
|
|
55
|
+
key?: string;
|
|
56
|
+
}[];
|
|
57
|
+
}, {
|
|
58
|
+
timestamp?: number;
|
|
59
|
+
fields?: {
|
|
60
|
+
value?: string | number | boolean;
|
|
61
|
+
type?: string;
|
|
62
|
+
key?: string;
|
|
63
|
+
}[];
|
|
64
|
+
}>;
|
|
65
|
+
processID: z.ZodString;
|
|
66
|
+
warnings: z.ZodAny;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
startTime?: number;
|
|
69
|
+
traceID?: string;
|
|
70
|
+
spanID?: string;
|
|
71
|
+
flags?: string;
|
|
72
|
+
operationName?: string;
|
|
73
|
+
references?: {
|
|
74
|
+
refType?: string;
|
|
75
|
+
traceID?: string;
|
|
76
|
+
spanID?: string;
|
|
77
|
+
}[];
|
|
78
|
+
duration?: number;
|
|
79
|
+
tags?: {
|
|
80
|
+
value?: string | number | boolean;
|
|
81
|
+
type?: string;
|
|
82
|
+
key?: string;
|
|
83
|
+
}[];
|
|
84
|
+
logs?: {
|
|
85
|
+
timestamp?: number;
|
|
86
|
+
fields?: {
|
|
87
|
+
value?: string | number | boolean;
|
|
88
|
+
type?: string;
|
|
89
|
+
key?: string;
|
|
90
|
+
}[];
|
|
91
|
+
};
|
|
92
|
+
processID?: string;
|
|
93
|
+
warnings?: any;
|
|
94
|
+
}, {
|
|
95
|
+
startTime?: number;
|
|
96
|
+
traceID?: string;
|
|
97
|
+
spanID?: string;
|
|
98
|
+
flags?: string;
|
|
99
|
+
operationName?: string;
|
|
100
|
+
references?: {
|
|
101
|
+
refType?: string;
|
|
102
|
+
traceID?: string;
|
|
103
|
+
spanID?: string;
|
|
104
|
+
}[];
|
|
105
|
+
duration?: number;
|
|
106
|
+
tags?: {
|
|
107
|
+
value?: string | number | boolean;
|
|
108
|
+
type?: string;
|
|
109
|
+
key?: string;
|
|
110
|
+
}[];
|
|
111
|
+
logs?: {
|
|
112
|
+
timestamp?: number;
|
|
113
|
+
fields?: {
|
|
114
|
+
value?: string | number | boolean;
|
|
115
|
+
type?: string;
|
|
116
|
+
key?: string;
|
|
117
|
+
}[];
|
|
118
|
+
};
|
|
119
|
+
processID?: string;
|
|
120
|
+
warnings?: any;
|
|
121
|
+
}>;
|
|
122
|
+
declare const TraceSchema: z.ZodObject<{
|
|
123
|
+
traceID: z.ZodString;
|
|
124
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
125
|
+
traceID: z.ZodString;
|
|
126
|
+
spanID: z.ZodString;
|
|
127
|
+
flags: z.ZodString;
|
|
128
|
+
operationName: z.ZodString;
|
|
129
|
+
references: z.ZodArray<z.ZodObject<{
|
|
130
|
+
refType: z.ZodString;
|
|
131
|
+
traceID: z.ZodString;
|
|
132
|
+
spanID: z.ZodString;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
refType?: string;
|
|
135
|
+
traceID?: string;
|
|
136
|
+
spanID?: string;
|
|
137
|
+
}, {
|
|
138
|
+
refType?: string;
|
|
139
|
+
traceID?: string;
|
|
140
|
+
spanID?: string;
|
|
141
|
+
}>, "many">;
|
|
142
|
+
startTime: z.ZodNumber;
|
|
143
|
+
duration: z.ZodNumber;
|
|
144
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
145
|
+
key: z.ZodString;
|
|
146
|
+
type: z.ZodString;
|
|
147
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
value?: string | number | boolean;
|
|
150
|
+
type?: string;
|
|
151
|
+
key?: string;
|
|
152
|
+
}, {
|
|
153
|
+
value?: string | number | boolean;
|
|
154
|
+
type?: string;
|
|
155
|
+
key?: string;
|
|
156
|
+
}>, "many">;
|
|
157
|
+
logs: z.ZodObject<{
|
|
158
|
+
timestamp: z.ZodNumber;
|
|
159
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
160
|
+
key: z.ZodString;
|
|
161
|
+
type: z.ZodString;
|
|
162
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
value?: string | number | boolean;
|
|
165
|
+
type?: string;
|
|
166
|
+
key?: string;
|
|
167
|
+
}, {
|
|
168
|
+
value?: string | number | boolean;
|
|
169
|
+
type?: string;
|
|
170
|
+
key?: string;
|
|
171
|
+
}>, "many">;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
timestamp?: number;
|
|
174
|
+
fields?: {
|
|
175
|
+
value?: string | number | boolean;
|
|
176
|
+
type?: string;
|
|
177
|
+
key?: string;
|
|
178
|
+
}[];
|
|
179
|
+
}, {
|
|
180
|
+
timestamp?: number;
|
|
181
|
+
fields?: {
|
|
182
|
+
value?: string | number | boolean;
|
|
183
|
+
type?: string;
|
|
184
|
+
key?: string;
|
|
185
|
+
}[];
|
|
186
|
+
}>;
|
|
187
|
+
processID: z.ZodString;
|
|
188
|
+
warnings: z.ZodAny;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
startTime?: number;
|
|
191
|
+
traceID?: string;
|
|
192
|
+
spanID?: string;
|
|
193
|
+
flags?: string;
|
|
194
|
+
operationName?: string;
|
|
195
|
+
references?: {
|
|
196
|
+
refType?: string;
|
|
197
|
+
traceID?: string;
|
|
198
|
+
spanID?: string;
|
|
199
|
+
}[];
|
|
200
|
+
duration?: number;
|
|
201
|
+
tags?: {
|
|
202
|
+
value?: string | number | boolean;
|
|
203
|
+
type?: string;
|
|
204
|
+
key?: string;
|
|
205
|
+
}[];
|
|
206
|
+
logs?: {
|
|
207
|
+
timestamp?: number;
|
|
208
|
+
fields?: {
|
|
209
|
+
value?: string | number | boolean;
|
|
210
|
+
type?: string;
|
|
211
|
+
key?: string;
|
|
212
|
+
}[];
|
|
213
|
+
};
|
|
214
|
+
processID?: string;
|
|
215
|
+
warnings?: any;
|
|
216
|
+
}, {
|
|
217
|
+
startTime?: number;
|
|
218
|
+
traceID?: string;
|
|
219
|
+
spanID?: string;
|
|
220
|
+
flags?: string;
|
|
221
|
+
operationName?: string;
|
|
222
|
+
references?: {
|
|
223
|
+
refType?: string;
|
|
224
|
+
traceID?: string;
|
|
225
|
+
spanID?: string;
|
|
226
|
+
}[];
|
|
227
|
+
duration?: number;
|
|
228
|
+
tags?: {
|
|
229
|
+
value?: string | number | boolean;
|
|
230
|
+
type?: string;
|
|
231
|
+
key?: string;
|
|
232
|
+
}[];
|
|
233
|
+
logs?: {
|
|
234
|
+
timestamp?: number;
|
|
235
|
+
fields?: {
|
|
236
|
+
value?: string | number | boolean;
|
|
237
|
+
type?: string;
|
|
238
|
+
key?: string;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
processID?: string;
|
|
242
|
+
warnings?: any;
|
|
243
|
+
}>, "many">;
|
|
244
|
+
processes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
245
|
+
serviceName: z.ZodString;
|
|
246
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
247
|
+
key: z.ZodString;
|
|
248
|
+
type: z.ZodString;
|
|
249
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodNumber, z.ZodString]>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
value?: string | number | boolean;
|
|
252
|
+
type?: string;
|
|
253
|
+
key?: string;
|
|
254
|
+
}, {
|
|
255
|
+
value?: string | number | boolean;
|
|
256
|
+
type?: string;
|
|
257
|
+
key?: string;
|
|
258
|
+
}>, "many">;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
tags?: {
|
|
261
|
+
value?: string | number | boolean;
|
|
262
|
+
type?: string;
|
|
263
|
+
key?: string;
|
|
264
|
+
}[];
|
|
265
|
+
serviceName?: string;
|
|
266
|
+
}, {
|
|
267
|
+
tags?: {
|
|
268
|
+
value?: string | number | boolean;
|
|
269
|
+
type?: string;
|
|
270
|
+
key?: string;
|
|
271
|
+
}[];
|
|
272
|
+
serviceName?: string;
|
|
273
|
+
}>>;
|
|
274
|
+
warnings: z.ZodAny;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
traceID?: string;
|
|
277
|
+
warnings?: any;
|
|
278
|
+
spans?: {
|
|
279
|
+
startTime?: number;
|
|
280
|
+
traceID?: string;
|
|
281
|
+
spanID?: string;
|
|
282
|
+
flags?: string;
|
|
283
|
+
operationName?: string;
|
|
284
|
+
references?: {
|
|
285
|
+
refType?: string;
|
|
286
|
+
traceID?: string;
|
|
287
|
+
spanID?: string;
|
|
288
|
+
}[];
|
|
289
|
+
duration?: number;
|
|
290
|
+
tags?: {
|
|
291
|
+
value?: string | number | boolean;
|
|
292
|
+
type?: string;
|
|
293
|
+
key?: string;
|
|
294
|
+
}[];
|
|
295
|
+
logs?: {
|
|
296
|
+
timestamp?: number;
|
|
297
|
+
fields?: {
|
|
298
|
+
value?: string | number | boolean;
|
|
299
|
+
type?: string;
|
|
300
|
+
key?: string;
|
|
301
|
+
}[];
|
|
302
|
+
};
|
|
303
|
+
processID?: string;
|
|
304
|
+
warnings?: any;
|
|
305
|
+
}[];
|
|
306
|
+
processes?: Record<string, {
|
|
307
|
+
tags?: {
|
|
308
|
+
value?: string | number | boolean;
|
|
309
|
+
type?: string;
|
|
310
|
+
key?: string;
|
|
311
|
+
}[];
|
|
312
|
+
serviceName?: string;
|
|
313
|
+
}>;
|
|
314
|
+
}, {
|
|
315
|
+
traceID?: string;
|
|
316
|
+
warnings?: any;
|
|
317
|
+
spans?: {
|
|
318
|
+
startTime?: number;
|
|
319
|
+
traceID?: string;
|
|
320
|
+
spanID?: string;
|
|
321
|
+
flags?: string;
|
|
322
|
+
operationName?: string;
|
|
323
|
+
references?: {
|
|
324
|
+
refType?: string;
|
|
325
|
+
traceID?: string;
|
|
326
|
+
spanID?: string;
|
|
327
|
+
}[];
|
|
328
|
+
duration?: number;
|
|
329
|
+
tags?: {
|
|
330
|
+
value?: string | number | boolean;
|
|
331
|
+
type?: string;
|
|
332
|
+
key?: string;
|
|
333
|
+
}[];
|
|
334
|
+
logs?: {
|
|
335
|
+
timestamp?: number;
|
|
336
|
+
fields?: {
|
|
337
|
+
value?: string | number | boolean;
|
|
338
|
+
type?: string;
|
|
339
|
+
key?: string;
|
|
340
|
+
}[];
|
|
341
|
+
};
|
|
342
|
+
processID?: string;
|
|
343
|
+
warnings?: any;
|
|
344
|
+
}[];
|
|
345
|
+
processes?: Record<string, {
|
|
346
|
+
tags?: {
|
|
347
|
+
value?: string | number | boolean;
|
|
348
|
+
type?: string;
|
|
349
|
+
key?: string;
|
|
350
|
+
}[];
|
|
351
|
+
serviceName?: string;
|
|
352
|
+
}>;
|
|
353
|
+
}>;
|
|
354
|
+
export type Trace = z.infer<typeof TraceSchema>;
|
|
355
|
+
export type TraceSpan = z.infer<typeof TraceSpanSchema>;
|
|
356
|
+
export {};
|
|
357
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/models/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenB,CAAC;AAOH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKf,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const units: string[];
|
|
3
|
+
export declare const UnitsSchema: z.ZodEffects<z.ZodEnum<["samples", "objects", "goroutines", "bytes", "lock_samples", "lock_nanoseconds", "trace_samples", "exceptions", "unknown"]>, "unknown" | "samples" | "objects" | "goroutines" | "bytes" | "lock_samples" | "lock_nanoseconds" | "trace_samples" | "exceptions", unknown>;
|
|
4
|
+
export type UnitsType = typeof units[number];
|
|
5
|
+
export type Units = z.infer<typeof UnitsSchema>;
|
|
6
|
+
//# sourceMappingURL=units.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/models/units.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK,UASjB,CAAC;AAEF,eAAO,MAAM,WAAW,kSAO+G,CAAC;AAExI,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/search.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AACA,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAEtD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Box 支持的主题类型
|
|
4
|
+
* - dark : 原 Pyroscope 深色风格(默认)
|
|
5
|
+
* - light : 原 light 主题
|
|
6
|
+
* - kylin : 贴近 antd 白色系的主题(在 _css-variables.scss 里定义)
|
|
7
|
+
*/
|
|
8
|
+
export type BoxTheme = 'dark' | 'light' | 'kylin';
|
|
9
|
+
/**
|
|
10
|
+
* Box renders its children with a box around it
|
|
11
|
+
*/
|
|
12
|
+
export interface BoxProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* 关闭 padding,默认 false
|
|
16
|
+
*/
|
|
17
|
+
noPadding?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 额外 className(来自宿主项目)
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Box 使用的主题,默认 'dark'
|
|
24
|
+
*/
|
|
25
|
+
theme?: BoxTheme;
|
|
26
|
+
}
|
|
27
|
+
export default function Box(props: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export interface CollapseBoxProps {
|
|
29
|
+
/** 标题(必填) */
|
|
30
|
+
title: string;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* 折叠 Box 的主题,默认也用 dark
|
|
34
|
+
*/
|
|
35
|
+
theme?: BoxTheme;
|
|
36
|
+
}
|
|
37
|
+
export declare function CollapseBox({ title, children, theme }: CollapseBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/shims/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,2CAmB1C;AAID,MAAM,WAAW,gBAAgB;IAC/B,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAc,EAAE,EAAE,gBAAgB,2CAiChF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import type { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
kind?: 'default' | 'primary' | 'secondary' | 'danger' | 'outline' | 'float';
|
|
5
|
+
/** Whether the button is disabled or not */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: IconDefinition;
|
|
8
|
+
iconNode?: ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/** Buttons are grouped so that only the first and last have clear limits */
|
|
11
|
+
grouped?: boolean;
|
|
12
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
type?: 'button' | 'submit';
|
|
14
|
+
['data-testid']?: string;
|
|
15
|
+
['aria-label']?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
form?: React.ButtonHTMLAttributes<HTMLButtonElement>['form'];
|
|
19
|
+
/** disable a box around it */
|
|
20
|
+
noBox?: boolean;
|
|
21
|
+
/** ONLY use this if within a modal (https://stackoverflow.com/a/71848275 and https://citizensadvice.github.io/react-dialogs/modal/auto_focus/index.html) */
|
|
22
|
+
autoFocus?: React.ButtonHTMLAttributes<HTMLButtonElement>['autoFocus'];
|
|
23
|
+
}
|
|
24
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export default Button;
|
|
26
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/shims/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAI5E,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IAE5E,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAI/D,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IAEzB,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;IAE7D,8BAA8B;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,4JAA4J;IAC5J,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAC;CACxE;AAED,QAAA,MAAM,MAAM,uFAqDV,CAAC;AAkCH,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import '@szhsin/react-menu/dist/index.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ClickEvent, MenuProps } from '@szhsin/react-menu';
|
|
4
|
+
export interface DropdownProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
['data-testid']?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
menuButtonClassName?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
children?: JSX.Element[] | JSX.Element;
|
|
13
|
+
onItemClick?: (event: ClickEvent) => void;
|
|
14
|
+
overflow?: MenuProps['overflow'];
|
|
15
|
+
position?: MenuProps['position'];
|
|
16
|
+
direction?: MenuProps['direction'];
|
|
17
|
+
align?: MenuProps['align'];
|
|
18
|
+
viewScroll?: MenuProps['viewScroll'];
|
|
19
|
+
arrow?: MenuProps['arrow'];
|
|
20
|
+
ariaLabel?: MenuProps['aria-label'];
|
|
21
|
+
menuButton?: JSX.Element;
|
|
22
|
+
portal?: MenuProps['portal'];
|
|
23
|
+
}
|
|
24
|
+
export default function Dropdown({ id, children, className, disabled, value, label, onItemClick, overflow, position, direction, align, viewScroll, arrow, menuButtonClassName, ariaLabel, portal, ...props }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const SubMenu: React.ForwardRefExoticComponent<import("@szhsin/react-menu").SubMenuProps>;
|
|
26
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<import("@szhsin/react-menu").MenuItemProps>;
|
|
27
|
+
export declare const MenuButton: any;
|
|
28
|
+
export declare const FocusableItem: React.ForwardRefExoticComponent<import("@szhsin/react-menu").FocusableItemProps>;
|
|
29
|
+
export declare const MenuGroup: React.ForwardRefExoticComponent<import("@szhsin/react-menu").MenuGroupProps>;
|
|
30
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../src/shims/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,mCAAmC,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAEV,SAAS,EAOV,MAAM,oBAAoB,CAAC;AAM1B,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,EAAE,EACF,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,UAAU,EACV,KAAK,EACL,mBAAwB,EACxB,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,aAAa,2CAgCf;AAEH,eAAO,MAAM,OAAO,4EAAa,CAAC;AAClC,eAAO,MAAM,QAAQ,6EAAc,CAAC;AACpC,eAAO,MAAM,UAAU,KAA+B,CAAC;AACvD,eAAO,MAAM,aAAa,kFAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,8EAAe,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
|
2
|
+
interface InputProps {
|
|
3
|
+
testId?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
type: 'search' | 'text' | 'password' | 'email' | 'number';
|
|
6
|
+
name: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
minLength?: number;
|
|
9
|
+
debounceTimeout?: number;
|
|
10
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
value: string | number;
|
|
12
|
+
htmlId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use TextField instead
|
|
16
|
+
*/
|
|
17
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export default Input;
|
|
19
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/shims/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAO,WAAW,EAAE,MAAM,OAAO,CAAC;AAIhD,UAAU,UAAU;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,QAAA,MAAM,KAAK,qFAgCV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../src/shims/LoadingSpinner.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,IAAa,GACd,EAAE,mBAAmB,2CAOrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/shims/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../src/shims/NoData.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,MAAM,4CAM7B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, RefObject } from 'react';
|
|
2
|
+
interface CustomProp {
|
|
3
|
+
[k: string]: string | CSSProperties | ReactNode | number | undefined;
|
|
4
|
+
}
|
|
5
|
+
export interface Cell extends CustomProp {
|
|
6
|
+
value: ReactNode | string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
interface HeadCell extends CustomProp {
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
sortable?: number;
|
|
13
|
+
default?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface BodyRow {
|
|
16
|
+
'data-row'?: string;
|
|
17
|
+
isRowSelected?: boolean;
|
|
18
|
+
isRowDisabled?: boolean;
|
|
19
|
+
cells: Cell[];
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export type TableBodyType = {
|
|
24
|
+
type: 'not-filled';
|
|
25
|
+
value: string | ReactNode;
|
|
26
|
+
bodyClassName?: string;
|
|
27
|
+
} | {
|
|
28
|
+
type: 'filled';
|
|
29
|
+
bodyRows: BodyRow[];
|
|
30
|
+
};
|
|
31
|
+
type Table = TableBodyType & {
|
|
32
|
+
headRow: HeadCell[];
|
|
33
|
+
};
|
|
34
|
+
interface TableSortProps {
|
|
35
|
+
sortBy: string;
|
|
36
|
+
updateSortParams: (v: string) => void;
|
|
37
|
+
sortByDirection: 'desc' | 'asc';
|
|
38
|
+
}
|
|
39
|
+
export declare const useTableSort: (headRow: HeadCell[]) => TableSortProps;
|
|
40
|
+
interface TableProps {
|
|
41
|
+
sortByDirection?: string;
|
|
42
|
+
sortBy?: string;
|
|
43
|
+
updateSortParams?: (newSortBy: string) => void;
|
|
44
|
+
table: Table;
|
|
45
|
+
tableBodyRef?: RefObject<HTMLTableSectionElement>;
|
|
46
|
+
className?: string;
|
|
47
|
+
isLoading?: boolean;
|
|
48
|
+
itemsPerPage?: number;
|
|
49
|
+
}
|
|
50
|
+
declare function Table({ sortByDirection, sortBy, updateSortParams, table, tableBodyRef, className, isLoading, itemsPerPage, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export default Table;
|
|
52
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/shims/Table.tsx"],"names":[],"mappings":"AACA,OAAc,EAAY,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU7E,UAAU,UAAU;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;CACtE;AAED,MAAM,WAAW,IAAK,SAAQ,UAAU;IACtC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,UAAU,QAAS,SAAQ,UAAU;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GACrB;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEN,KAAK,KAAK,GAAG,aAAa,GAAG;IAC3B,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB,CAAC;AAEF,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,YAAa,QAAQ,EAAE,KAAG,cAsBlD,CAAC;AAEF,UAAU,UAAU;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,SAAS,CAAC,uBAAuB,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,KAAK,CAAC,EACb,eAAe,EACf,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,GACb,EAAE,UAAU,2CA0FZ;AA2DD,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
placement?: string;
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
9
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/shims/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AA2BD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAe1C,CAAA"}
|