@parca/profile 0.16.425 → 0.16.427
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 +8 -0
- package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.js +1 -1
- package/dist/ProfileIcicleGraph/index.d.ts +1 -1
- package/dist/ProfileIcicleGraph/index.d.ts.map +1 -1
- package/dist/ProfileIcicleGraph/index.js +4 -59
- package/dist/ProfileSelector/index.d.ts.map +1 -1
- package/dist/ProfileSelector/index.js +11 -6
- package/dist/ProfileView/VisualizationPanel.d.ts.map +1 -1
- package/dist/ProfileView/VisualizationPanel.js +2 -3
- package/dist/ProfileView/index.d.ts.map +1 -1
- package/dist/ProfileView/index.js +21 -14
- package/dist/Table/ColumnsVisibility.js +1 -1
- package/dist/Table/index.d.ts +6 -0
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +45 -21
- package/dist/ViewMatchers/index.d.ts +14 -0
- package/dist/ViewMatchers/index.d.ts.map +1 -0
- package/dist/ViewMatchers/index.js +103 -0
- package/dist/components/ActionButtons/GroupByDropdown.d.ts.map +1 -0
- package/dist/{ProfileIcicleGraph → components}/ActionButtons/GroupByDropdown.js +1 -1
- package/dist/components/FilterByFunctionButton.d.ts.map +1 -0
- package/dist/components/ShareButton/ResultBox.d.ts.map +1 -0
- package/dist/components/ShareButton/index.d.ts +14 -0
- package/dist/components/ShareButton/index.d.ts.map +1 -0
- package/dist/components/{ProfileShareButton → ShareButton}/index.js +28 -5
- package/dist/components/ViewSelector/Dropdown.d.ts +30 -0
- package/dist/components/ViewSelector/Dropdown.d.ts.map +1 -0
- package/dist/components/ViewSelector/Dropdown.js +41 -0
- package/dist/components/ViewSelector/index.d.ts +3 -0
- package/dist/components/ViewSelector/index.d.ts.map +1 -0
- package/dist/{ProfileView/ViewSelector.js → components/ViewSelector/index.js} +25 -12
- package/dist/components/VisualisationToolbar/MultiLevelDropdown.d.ts +9 -0
- package/dist/components/VisualisationToolbar/MultiLevelDropdown.d.ts.map +1 -0
- package/dist/components/VisualisationToolbar/MultiLevelDropdown.js +123 -0
- package/dist/components/VisualisationToolbar/TableColumnsDropdown.d.ts +9 -0
- package/dist/components/VisualisationToolbar/TableColumnsDropdown.d.ts.map +1 -0
- package/dist/components/VisualisationToolbar/TableColumnsDropdown.js +189 -0
- package/dist/components/VisualisationToolbar/index.d.ts +25 -0
- package/dist/components/VisualisationToolbar/index.d.ts.map +1 -0
- package/dist/components/VisualisationToolbar/index.js +55 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx +1 -1
- package/src/ProfileIcicleGraph/index.tsx +3 -206
- package/src/ProfileSelector/index.tsx +59 -33
- package/src/ProfileView/VisualizationPanel.tsx +1 -6
- package/src/ProfileView/index.tsx +46 -56
- package/src/Table/ColumnsVisibility.tsx +1 -1
- package/src/Table/index.tsx +64 -42
- package/src/ViewMatchers/index.tsx +190 -0
- package/src/{ProfileIcicleGraph → components}/ActionButtons/GroupByDropdown.tsx +1 -1
- package/src/components/{ProfileShareButton → ShareButton}/index.tsx +88 -24
- package/src/components/ViewSelector/Dropdown.tsx +181 -0
- package/src/{ProfileView/ViewSelector.tsx → components/ViewSelector/index.tsx} +32 -39
- package/src/components/VisualisationToolbar/MultiLevelDropdown.tsx +258 -0
- package/src/components/VisualisationToolbar/TableColumnsDropdown.tsx +222 -0
- package/src/components/VisualisationToolbar/index.tsx +171 -0
- package/src/index.tsx +3 -1
- package/dist/ProfileIcicleGraph/ActionButtons/GroupByDropdown.d.ts.map +0 -1
- package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts +0 -7
- package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts.map +0 -1
- package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.js +0 -44
- package/dist/ProfileView/FilterByFunctionButton.d.ts.map +0 -1
- package/dist/ProfileView/ViewSelector.d.ts +0 -13
- package/dist/ProfileView/ViewSelector.d.ts.map +0 -1
- package/dist/components/ProfileShareButton/ResultBox.d.ts.map +0 -1
- package/dist/components/ProfileShareButton/index.d.ts +0 -9
- package/dist/components/ProfileShareButton/index.d.ts.map +0 -1
- package/src/ProfileIcicleGraph/ActionButtons/SortBySelect.tsx +0 -81
- /package/dist/{ProfileIcicleGraph → components}/ActionButtons/GroupByDropdown.d.ts +0 -0
- /package/dist/{ProfileView → components}/FilterByFunctionButton.d.ts +0 -0
- /package/dist/{ProfileView → components}/FilterByFunctionButton.js +0 -0
- /package/dist/components/{ProfileShareButton → ShareButton}/ResultBox.d.ts +0 -0
- /package/dist/components/{ProfileShareButton → ShareButton}/ResultBox.js +0 -0
- /package/src/{ProfileView → components}/FilterByFunctionButton.tsx +0 -0
- /package/src/components/{ProfileShareButton → ShareButton}/ResultBox.tsx +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2022 The Parca Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { Icon } from '@iconify/react';
|
|
16
|
+
import cx from 'classnames';
|
|
17
|
+
import { useGrpcMetadata } from '@parca/components';
|
|
18
|
+
import { sanitizeLabelValue } from '@parca/utilities';
|
|
19
|
+
import CustomSelect from '../SimpleMatchers/Select';
|
|
20
|
+
const ViewMatchers = ({ labelNames, profileType, queryClient, runQuery, setMatchersString, currentQuery, }) => {
|
|
21
|
+
const [labelValuesMap, setLabelValuesMap] = useState({});
|
|
22
|
+
const [isLoading, setIsLoading] = useState({});
|
|
23
|
+
const metadata = useGrpcMetadata();
|
|
24
|
+
const currentMatchers = currentQuery.matchersString();
|
|
25
|
+
const parseCurrentMatchers = useCallback((matchersString) => {
|
|
26
|
+
const matches = matchersString.match(/(\w+)="([^"]+)"/g);
|
|
27
|
+
if (matches === null)
|
|
28
|
+
return {};
|
|
29
|
+
return matches.reduce((acc, match) => {
|
|
30
|
+
const [label, value] = match.split('=');
|
|
31
|
+
if (label !== undefined) {
|
|
32
|
+
acc[label] = value.replace(/"/g, '');
|
|
33
|
+
}
|
|
34
|
+
return acc;
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
37
|
+
{});
|
|
38
|
+
}, []);
|
|
39
|
+
const initialSelections = parseCurrentMatchers(currentMatchers);
|
|
40
|
+
const selectionsRef = useRef(initialSelections);
|
|
41
|
+
const runQueryRef = useRef(runQuery);
|
|
42
|
+
const timeoutRef = useRef(null);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
runQueryRef.current = runQuery;
|
|
45
|
+
}, [runQuery]);
|
|
46
|
+
const fetchLabelValues = useCallback(async (labelName) => {
|
|
47
|
+
try {
|
|
48
|
+
const response = await queryClient.values({ labelName, match: [], profileType }, { meta: metadata }).response;
|
|
49
|
+
return sanitizeLabelValue(response.labelValues);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
console.error('Error fetching label values:', error);
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
}, [queryClient, metadata, profileType]);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const fetchAllLabelValues = async () => {
|
|
58
|
+
const newLabelValuesMap = {};
|
|
59
|
+
const newIsLoading = {};
|
|
60
|
+
for (const labelName of labelNames) {
|
|
61
|
+
newIsLoading[labelName] = true;
|
|
62
|
+
setIsLoading(prev => ({ ...prev, [labelName]: true }));
|
|
63
|
+
const values = await fetchLabelValues(labelName);
|
|
64
|
+
newLabelValuesMap[labelName] = values;
|
|
65
|
+
newIsLoading[labelName] = false;
|
|
66
|
+
}
|
|
67
|
+
setLabelValuesMap(newLabelValuesMap);
|
|
68
|
+
setIsLoading(newIsLoading);
|
|
69
|
+
};
|
|
70
|
+
void fetchAllLabelValues();
|
|
71
|
+
}, [labelNames, fetchLabelValues]);
|
|
72
|
+
const updateMatcherString = useCallback(() => {
|
|
73
|
+
const matcherParts = Object.entries(selectionsRef.current)
|
|
74
|
+
.filter(([_, v]) => v !== null && v !== '')
|
|
75
|
+
.map(([ln, v]) => `${ln}="${v}"`);
|
|
76
|
+
const matcherString = matcherParts.join(',');
|
|
77
|
+
setMatchersString(matcherString);
|
|
78
|
+
if (timeoutRef.current !== null) {
|
|
79
|
+
clearTimeout(timeoutRef.current);
|
|
80
|
+
}
|
|
81
|
+
timeoutRef.current = setTimeout(() => {
|
|
82
|
+
runQueryRef.current();
|
|
83
|
+
}, 300);
|
|
84
|
+
}, [setMatchersString]);
|
|
85
|
+
const handleSelection = useCallback((labelName, value) => {
|
|
86
|
+
selectionsRef.current = {
|
|
87
|
+
...selectionsRef.current,
|
|
88
|
+
[labelName]: value,
|
|
89
|
+
};
|
|
90
|
+
updateMatcherString();
|
|
91
|
+
}, [updateMatcherString]);
|
|
92
|
+
const handleReset = useCallback((labelName) => {
|
|
93
|
+
handleSelection(labelName, null);
|
|
94
|
+
}, [handleSelection]);
|
|
95
|
+
const transformValuesForSelect = useCallback((values) => {
|
|
96
|
+
return values.map(value => ({
|
|
97
|
+
key: value,
|
|
98
|
+
element: { active: _jsx(_Fragment, { children: value }), expanded: _jsx(_Fragment, { children: value }) },
|
|
99
|
+
}));
|
|
100
|
+
}, []);
|
|
101
|
+
return (_jsx("div", { className: "flex flex-wrap gap-2", children: labelNames.map(labelName => (_jsxs("div", { className: "flex items-center", children: [_jsx("div", { className: "relative border shadow-sm px-4 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 text-sm flex gap-2 items-center justify-between bg-gray-100 dark:bg-gray-700 rounded-l-md border-gray-300 dark:border-gray-600", children: labelName }), _jsx(CustomSelect, { searchable: true, placeholder: "Select value", items: transformValuesForSelect(labelValuesMap[labelName] ?? []), onSelection: (value) => handleSelection(labelName, value), selectedKey: selectionsRef.current[labelName] ?? undefined, className: cx('rounded-l-none border-l-0', selectionsRef.current[labelName] != null && 'border-r-0 rounded-r-none'), loading: isLoading[labelName] ?? false }), selectionsRef.current[labelName] != null && (_jsx("button", { onClick: () => handleReset(labelName), className: "p-2 border-gray-200 bg-white dark:bg-gray-900 dark:border-gray-600 border rounded-r-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", "aria-label": `Reset ${labelName} selection`, children: _jsx(Icon, { icon: "mdi:close", className: "h-5 w-5 text-gray-400", "aria-hidden": "true" }) }))] }, labelName))) }));
|
|
102
|
+
};
|
|
103
|
+
export default ViewMatchers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupByDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButtons/GroupByDropdown.tsx"],"names":[],"mappings":"AAyDA,QAAA,MAAM,eAAe,gCAGlB;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OA6Db,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { Menu, Transition } from '@headlessui/react';
|
|
15
15
|
import { Icon } from '@iconify/react';
|
|
16
|
-
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_NAME, FIELD_LABELS, FIELD_LOCATION_ADDRESS, FIELD_MAPPING_FILE, } from '
|
|
16
|
+
import { FIELD_FUNCTION_FILE_NAME, FIELD_FUNCTION_NAME, FIELD_LABELS, FIELD_LOCATION_ADDRESS, FIELD_MAPPING_FILE, } from '../../ProfileIcicleGraph/IcicleGraphArrow';
|
|
17
17
|
const groupByOptions = [
|
|
18
18
|
{
|
|
19
19
|
value: FIELD_FUNCTION_NAME,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterByFunctionButton.d.ts","sourceRoot":"","sources":["../../src/components/FilterByFunctionButton.tsx"],"names":[],"mappings":"AAoBA,QAAA,MAAM,sBAAsB,QAAO,GAAG,CAAC,OAuCtC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultBox.d.ts","sourceRoot":"","sources":["../../../src/components/ShareButton/ResultBox.tsx"],"names":[],"mappings":"AAoBA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,QAAA,MAAM,SAAS,yBAA6B,KAAK,KAAG,GAAG,CAAC,OAqCvD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryRequest, QueryServiceClient } from '@parca/client';
|
|
3
|
+
import { ProfileSource } from '../../ProfileSource';
|
|
4
|
+
interface Props {
|
|
5
|
+
profileSource?: ProfileSource;
|
|
6
|
+
queryClient?: QueryServiceClient;
|
|
7
|
+
queryRequest?: QueryRequest;
|
|
8
|
+
onDownloadPProf: () => void;
|
|
9
|
+
pprofdownloading: boolean;
|
|
10
|
+
profileViewExternalSubActions: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const ShareButton: ({ queryRequest, queryClient, profileSource, onDownloadPProf, pprofdownloading, profileViewExternalSubActions, }: Props) => JSX.Element;
|
|
13
|
+
export default ShareButton;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ShareButton/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,6BAA6B,EAAE,KAAK,CAAC,SAAS,CAAC;CAChD;AAkGD,QAAA,MAAM,WAAW,oHAOd,KAAK,KAAG,GAAG,CAAC,OA4Ed,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { useState } from 'react';
|
|
15
15
|
import { Icon } from '@iconify/react';
|
|
16
|
-
import { Button, Modal, useGrpcMetadata } from '@parca/components';
|
|
16
|
+
import { Button, Dropdown, Modal, useGrpcMetadata } from '@parca/components';
|
|
17
17
|
import ResultBox from './ResultBox';
|
|
18
18
|
const ProfileShareModal = ({ isOpen, closeModal, queryRequest, queryClient, }) => {
|
|
19
19
|
const [isShared, setIsShared] = useState(false);
|
|
@@ -53,8 +53,31 @@ const ProfileShareModal = ({ isOpen, closeModal, queryRequest, queryClient, }) =
|
|
|
53
53
|
void handleSubmit();
|
|
54
54
|
}, disabled: loading || !isFormDataValid(), type: "submit", children: loading ? 'Sharing' : 'Share' }), error !== '' ? _jsx("p", { children: "Something went wrong please try again" }) : null] })) : (_jsxs(_Fragment, { children: [_jsx(ResultBox, { value: sharedLink, className: "mt-4" }), _jsx("div", { className: "mt-8 flex justify-center", children: _jsx(Button, { variant: "neutral", className: "w-fit", onClick: onClose, children: "Close" }) })] }))] }) }));
|
|
55
55
|
};
|
|
56
|
-
const
|
|
57
|
-
const [
|
|
58
|
-
|
|
56
|
+
const ShareButton = ({ queryRequest, queryClient, profileSource, onDownloadPProf, pprofdownloading, profileViewExternalSubActions, }) => {
|
|
57
|
+
const [showProfileShareModal, setShowProfileShareModal] = useState(false);
|
|
58
|
+
const actions = [
|
|
59
|
+
{
|
|
60
|
+
key: 'shareProfile',
|
|
61
|
+
label: 'Share profile via link',
|
|
62
|
+
onSelect: () => setShowProfileShareModal(true),
|
|
63
|
+
id: 'h-share-profile-button',
|
|
64
|
+
disabled: profileSource === undefined && queryClient === undefined && queryRequest === undefined,
|
|
65
|
+
icon: 'material-symbols-light:link',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: 'downloadProfile',
|
|
69
|
+
label: pprofdownloading != null && pprofdownloading ? 'Downloading...' : 'Download as pprof',
|
|
70
|
+
onSelect: () => onDownloadPProf(),
|
|
71
|
+
id: 'h-download-pprof',
|
|
72
|
+
disabled: pprofdownloading,
|
|
73
|
+
icon: 'material-symbols:download',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
return (_jsx(_Fragment, { children: profileViewExternalSubActions != null ? (_jsx(_Fragment, { children: _jsxs(Button, { className: "gap-2", variant: "neutral", onClick: e => {
|
|
77
|
+
e.preventDefault();
|
|
78
|
+
onDownloadPProf();
|
|
79
|
+
}, disabled: pprofdownloading, id: "h-download-pprof", children: [pprofdownloading != null && pprofdownloading ? 'Downloading...' : 'Download pprof', _jsx(Icon, { icon: "material-symbols:download", width: 20 })] }) })) : (_jsxs(_Fragment, { children: [_jsxs(Dropdown, { dropdownWidth: "w-48", element: _jsxs(Button, { variant: "neutral", children: ["Share", _jsx(Icon, { icon: "material-symbols:share", className: "h-5 w-5 ml-2" })] }), children: [_jsx("span", { className: "text-xs text-gray-400 capitalize px-2", children: "actions" }), actions.map(item => (_jsx(Dropdown.Item, { onSelect: item.onSelect, children: _jsxs("div", { id: item.id, className: "flex items-center", children: [_jsx("span", { children: item.label }), _jsx(Icon, { icon: item.icon, className: "ml-2 h-4 w-4" })] }) }, item.key)))] }), profileSource !== undefined &&
|
|
80
|
+
queryClient !== undefined &&
|
|
81
|
+
queryRequest !== undefined && (_jsx(ProfileShareModal, { isOpen: showProfileShareModal, closeModal: () => setShowProfileShareModal(false), queryRequest: queryRequest, queryClient: queryClient }))] })) }));
|
|
59
82
|
};
|
|
60
|
-
export default
|
|
83
|
+
export default ShareButton;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface DropdownElement {
|
|
2
|
+
active: JSX.Element;
|
|
3
|
+
expanded: JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export interface DropdownItem {
|
|
6
|
+
key: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
element: DropdownElement;
|
|
9
|
+
innerAction?: InnerAction;
|
|
10
|
+
}
|
|
11
|
+
export interface InnerAction {
|
|
12
|
+
text: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function contructItemsFromArray(items: any[]): DropdownItem[];
|
|
16
|
+
declare const Dropdown: ({ items, selectedKey, onSelection, placeholder, width, className, loading, primary, disabled, icon, id, }: {
|
|
17
|
+
items: DropdownItem[];
|
|
18
|
+
selectedKey: string | undefined;
|
|
19
|
+
onSelection: (value: string) => void;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
width?: number;
|
|
22
|
+
className?: string;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
primary?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
icon?: JSX.Element;
|
|
27
|
+
id?: string;
|
|
28
|
+
}) => JSX.Element;
|
|
29
|
+
export default Dropdown;
|
|
30
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ViewSelector/Dropdown.tsx"],"names":[],"mappings":"AAqBA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,YAAY,EAAE,CAMnE;AAED,QAAA,MAAM,QAAQ,8GAYX;IACD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,KAAG,GAAG,CAAC,OA4GP,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2022 The Parca Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { Fragment } from 'react';
|
|
15
|
+
import { Listbox, Transition } from '@headlessui/react';
|
|
16
|
+
import { Icon } from '@iconify/react';
|
|
17
|
+
import cx from 'classnames';
|
|
18
|
+
import { Button, useParcaContext } from '@parca/components';
|
|
19
|
+
export function contructItemsFromArray(items) {
|
|
20
|
+
return items.map(item => ({
|
|
21
|
+
key: item.key,
|
|
22
|
+
element: { active: _jsx(_Fragment, { children: item.label }), expanded: _jsx(_Fragment, { children: item.label }) },
|
|
23
|
+
innerAction: item.innerAction,
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
const Dropdown = ({ items, selectedKey, onSelection, placeholder, width, className = '', loading, primary = false, disabled = false, icon, id, }) => {
|
|
27
|
+
const selection = items.find(v => v.key === selectedKey) ?? {
|
|
28
|
+
key: selectedKey,
|
|
29
|
+
element: { active: _jsx(_Fragment, { children: selectedKey }), expanded: _jsx(_Fragment, { children: selectedKey }) },
|
|
30
|
+
};
|
|
31
|
+
const { loader } = useParcaContext();
|
|
32
|
+
const styles = 'relative border rounded-md shadow-sm px-4 py-2 text-left cursor-default focus:outline-none focus:ring-1 items-center focus:ring-indigo-500 focus:border-indigo-500 text-sm flex gap-2 flex items-center justify-between';
|
|
33
|
+
const defaultStyles = 'bg-white dark:bg-gray-900 dark:border-gray-600';
|
|
34
|
+
const primaryStyles = 'text-gray-100 dark:gray-900 bg-indigo-600 border-indigo-500 font-medium py-2 px-4';
|
|
35
|
+
return (_jsx(Listbox, { value: selectedKey, onChange: onSelection, children: ({ open }) => (_jsxs("div", { className: "relative", children: [_jsx("div", { id: id, children: _jsxs(Listbox.Button, { className: cx(styles, width !== undefined ? `w-${width}` : 'w-full', disabled ? 'cursor-not-allowed opacity-50 pointer-events-none' : '', primary ? primaryStyles : defaultStyles, { [className]: className.length > 0 }), children: [_jsx("div", { className: cx(icon != null ? '' : 'block overflow-x-hidden text-ellipsis'), children: selection?.key !== '' ? selection.element.active : placeholder }), _jsx("div", { className: cx(icon != null ? '' : 'pointer-events-none text-gray-400'), children: icon ?? _jsx(Icon, { icon: "heroicons:chevron-up-down-20-solid", "aria-hidden": "true" }) })] }) }), _jsx(Transition, { show: open, as: Fragment, leave: "transition ease-in duration-100", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: _jsx(Listbox.Options, { className: "absolute w-[246px] right-0 z-50 mt-1 max-h-[50vh] overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:border-gray-600 dark:bg-gray-900 dark:ring-white dark:ring-opacity-20 sm:text-sm", children: loading === true ? (_jsx("div", { className: "w-[270px]", children: loader })) : (items.length > 0 &&
|
|
36
|
+
items.map(option => (_jsx(Listbox.Option, { id: `h-select-option-${option.key}`, disabled: option.disabled ?? false, className: ({ active }) => cx(active && 'bg-indigo-600 text-white', 'relative flex cursor-default select-none py-2 px-3'), value: option.key, children: ({ selected, active, disabled }) => (_jsxs("div", { className: "flex items-center w-full justify-between", children: [_jsx("div", { className: "flex items-center", children: _jsx("span", { className: cx(selected ? 'font-semibold' : 'font-normal', disabled && 'opacity-50'), children: option.element.expanded }) }), option.innerAction !== undefined && (_jsxs(Button, { variant: "neutral", className: "p-[6px]", onClick: e => {
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
option.innerAction?.onClick();
|
|
39
|
+
}, children: [option.innerAction.text, option.innerAction.text === 'Add Panel' && (_jsx(Icon, { icon: "ic:baseline-plus", className: "w-[14px] h-[14px] ml-2" }))] })), selected ? (_jsx("span", { className: cx(active ? 'text-white' : 'text-indigo-600', 'absolute inset-y-0 right-0 flex items-center pr-4'), children: _jsx(Icon, { icon: "heroicons:check-20-solid", "aria-hidden": "true" }) })) : null] })) }, option.key)))) }) })] })) }));
|
|
40
|
+
};
|
|
41
|
+
export default Dropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ViewSelector/index.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,YAAY,QAAO,GAAG,CAAC,OAwF5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -11,8 +11,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
import {
|
|
15
|
-
|
|
14
|
+
import { useParcaContext, useURLState } from '@parca/components';
|
|
15
|
+
import Dropdown from './Dropdown';
|
|
16
|
+
const ViewSelector = () => {
|
|
16
17
|
const [dashboardItems = ['icicle'], setDashboardItems] = useURLState('dashboard_items', {
|
|
17
18
|
alwaysReturnArray: true,
|
|
18
19
|
});
|
|
@@ -31,28 +32,40 @@ const ViewSelector = ({ defaultValue, position, placeholderText, primary = false
|
|
|
31
32
|
expanded: (_jsxs(_Fragment, { children: [title, supportingText !== null && _jsx("span", { className: "text-xs", children: supportingText })] })),
|
|
32
33
|
};
|
|
33
34
|
};
|
|
35
|
+
const getInnerActionForItem = (item) => {
|
|
36
|
+
if (dashboardItems.length === 1 && item.key === dashboardItems[0])
|
|
37
|
+
return undefined;
|
|
38
|
+
return {
|
|
39
|
+
text: !item.canBeSelected && item.key === 'source'
|
|
40
|
+
? 'Add Panel'
|
|
41
|
+
: item.canBeSelected
|
|
42
|
+
? 'Add Panel'
|
|
43
|
+
: 'Close Panel',
|
|
44
|
+
onClick: () => {
|
|
45
|
+
if (item.canBeSelected) {
|
|
46
|
+
setDashboardItems([...dashboardItems, item.key]);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
setDashboardItems(dashboardItems.filter(v => v !== item.key));
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
};
|
|
34
54
|
const items = allItems.map(item => ({
|
|
35
55
|
key: item.key,
|
|
36
56
|
disabled: !item.canBeSelected,
|
|
37
57
|
element: getOption(item),
|
|
58
|
+
innerAction: getInnerActionForItem(item),
|
|
38
59
|
}));
|
|
39
60
|
const onSelection = (value) => {
|
|
40
|
-
if (addView) {
|
|
41
|
-
setDashboardItems([dashboardItems[0], value]);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
61
|
const isOnlyChart = dashboardItems.length === 1;
|
|
45
62
|
if (isOnlyChart) {
|
|
46
63
|
setDashboardItems([value]);
|
|
47
64
|
return;
|
|
48
65
|
}
|
|
49
|
-
|
|
50
|
-
const isFirstChart = position === 0;
|
|
51
|
-
const newDashboardItems = isFirstChart
|
|
52
|
-
? [value, dashboardItems[1]]
|
|
53
|
-
: [dashboardItems[0], value];
|
|
66
|
+
const newDashboardItems = [dashboardItems[0], value];
|
|
54
67
|
setDashboardItems(newDashboardItems);
|
|
55
68
|
};
|
|
56
|
-
return (_jsx(
|
|
69
|
+
return (_jsx(Dropdown, { className: "h-view-selector", items: items, selectedKey: dashboardItems.length >= 2 ? 'Multiple' : dashboardItems[0], onSelection: onSelection, placeholder: 'Select view type...', id: "h-view-selector" }));
|
|
57
70
|
};
|
|
58
71
|
export default ViewSelector;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProfileType } from '@parca/parser';
|
|
3
|
+
interface MultiLevelDropdownProps {
|
|
4
|
+
onSelect: (path: string[]) => void;
|
|
5
|
+
profileType?: ProfileType;
|
|
6
|
+
}
|
|
7
|
+
declare const MultiLevelDropdown: React.FC<MultiLevelDropdownProps>;
|
|
8
|
+
export default MultiLevelDropdown;
|
|
9
|
+
//# sourceMappingURL=MultiLevelDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiLevelDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/VisualisationToolbar/MultiLevelDropdown.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAgH1C,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsHzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
// Copyright 2022 The Parca Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { useCallback } from 'react';
|
|
15
|
+
import { Menu } from '@headlessui/react';
|
|
16
|
+
import { Icon } from '@iconify/react';
|
|
17
|
+
import { useURLState } from '@parca/components';
|
|
18
|
+
import { USER_PREFERENCES, useUserPreference } from '@parca/hooks';
|
|
19
|
+
import { FIELD_CUMULATIVE, FIELD_DIFF, FIELD_FUNCTION_NAME, } from '../../ProfileIcicleGraph/IcicleGraphArrow';
|
|
20
|
+
import { useProfileViewContext } from '../../ProfileView/ProfileViewContext';
|
|
21
|
+
const MenuItem = ({ label, items, onclick, onSelect, path = [], id, closeDropdown, isNested = false, activeValue, value, disabled = false, icon, }) => {
|
|
22
|
+
const isActive = isNested && value === activeValue;
|
|
23
|
+
const handleSelect = () => {
|
|
24
|
+
if (items === undefined) {
|
|
25
|
+
if (onclick !== undefined) {
|
|
26
|
+
onclick();
|
|
27
|
+
closeDropdown();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
onSelect([...path, label]);
|
|
31
|
+
closeDropdown();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return (_jsx("div", { className: "relative", children: _jsx(Menu, { children: ({ close }) => (_jsxs(_Fragment, { children: [_jsxs(Menu.Button, { className: `w-full text-left px-4 py-2 text-sm ${disabled
|
|
36
|
+
? 'text-gray-400'
|
|
37
|
+
: isActive
|
|
38
|
+
? 'text-white bg-indigo-400 hover:text-white'
|
|
39
|
+
: 'text-white-600 hover:bg-indigo-600 hover:text-white'} flex justify-between items-center`, onClick: handleSelect, id: id, disabled: disabled, children: [_jsxs("span", { className: "flex items-center", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("span", { children: label }), icon !== undefined && _jsx(Icon, { icon: icon, className: "ml-2 h-4 w-4" })] }), isActive && _jsx(Icon, { icon: "heroicons-solid:check", className: "ml-2 h-4 w-4" })] }), items !== undefined && (_jsx(Icon, { icon: "flowbite:caret-right-solid", className: "h-[14px] w-[14px]" }))] }), items !== undefined && (_jsx(Menu.Items, { className: "absolute left-full top-0 w-56 mt-0 origin-top-right bg-white border border-gray-200 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-900 ml-1 dark:border-gray-600", children: items?.map((item, index) => (_jsx(MenuItem, { ...item, onSelect: selectedPath => {
|
|
40
|
+
onSelect([...path, ...selectedPath]);
|
|
41
|
+
close();
|
|
42
|
+
closeDropdown();
|
|
43
|
+
}, path: [...path, label], closeDropdown: closeDropdown, isNested: true, activeValue: activeValue }, index))) }))] })) }) }));
|
|
44
|
+
};
|
|
45
|
+
const MultiLevelDropdown = ({ onSelect, profileType }) => {
|
|
46
|
+
const [storeSortBy, setStoreSortBy] = useURLState('sort_by', {
|
|
47
|
+
defaultValue: FIELD_FUNCTION_NAME,
|
|
48
|
+
});
|
|
49
|
+
const [colorStackLegend, setStoreColorStackLegend] = useURLState('color_stack_legend');
|
|
50
|
+
const [binaryFrameFilter, setBinaryFrameFilter] = useURLState('binary_frame_filter');
|
|
51
|
+
const { compareMode } = useProfileViewContext();
|
|
52
|
+
const [colorProfileName] = useUserPreference(USER_PREFERENCES.FLAMEGRAPH_COLOR_PROFILE.key);
|
|
53
|
+
const [invertStack = '', setInvertStack] = useURLState('invert_call_stack');
|
|
54
|
+
const isInvert = invertStack === 'true';
|
|
55
|
+
const isColorStackLegendEnabled = colorStackLegend === 'true';
|
|
56
|
+
// By default, we want delta profiles (CPU) to be relatively compared.
|
|
57
|
+
// For non-delta profiles, like goroutines or memory, we want the profiles to be compared absolutely.
|
|
58
|
+
const compareAbsoluteDefault = profileType?.delta === false ? 'true' : 'false';
|
|
59
|
+
const [compareAbsolute = compareAbsoluteDefault, setCompareAbsolute] = useURLState('compare_absolute');
|
|
60
|
+
const isCompareAbsolute = compareAbsolute === 'true';
|
|
61
|
+
const setColorStackLegend = useCallback((value) => {
|
|
62
|
+
setStoreColorStackLegend(value);
|
|
63
|
+
}, [setStoreColorStackLegend]);
|
|
64
|
+
const resetLegend = () => {
|
|
65
|
+
setBinaryFrameFilter([]);
|
|
66
|
+
};
|
|
67
|
+
const menuItems = [
|
|
68
|
+
{
|
|
69
|
+
label: 'Sort by',
|
|
70
|
+
id: 'h-sort-by-filter',
|
|
71
|
+
items: [
|
|
72
|
+
{
|
|
73
|
+
label: 'Function',
|
|
74
|
+
onclick: () => setStoreSortBy(FIELD_FUNCTION_NAME),
|
|
75
|
+
value: FIELD_FUNCTION_NAME,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: 'Cumulative',
|
|
79
|
+
onclick: () => setStoreSortBy(FIELD_CUMULATIVE),
|
|
80
|
+
value: FIELD_CUMULATIVE,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Diff',
|
|
84
|
+
onclick: () => setStoreSortBy(FIELD_DIFF),
|
|
85
|
+
value: FIELD_DIFF,
|
|
86
|
+
disabled: !compareMode,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
hide: false,
|
|
90
|
+
icon: 'material-symbols:sort',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
label: isColorStackLegendEnabled ? 'Hide legend' : 'Show legend',
|
|
94
|
+
onclick: () => setColorStackLegend(isColorStackLegendEnabled ? 'false' : 'true'),
|
|
95
|
+
hide: compareMode || colorProfileName === 'default',
|
|
96
|
+
id: 'h-show-legend-button',
|
|
97
|
+
icon: isColorStackLegendEnabled ? 'ph:eye-closed' : 'ph:eye',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: isInvert ? 'Original Call Stack' : 'Invert Call Stack',
|
|
101
|
+
onclick: () => setInvertStack(isInvert ? '' : 'true'),
|
|
102
|
+
hide: false,
|
|
103
|
+
icon: isInvert ? 'ph:sort-ascending' : 'ph:sort-descending',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: isCompareAbsolute ? 'Compare Relative' : 'Compare Absolute',
|
|
107
|
+
onclick: () => setCompareAbsolute(isCompareAbsolute ? 'false' : 'true'),
|
|
108
|
+
hide: !compareMode,
|
|
109
|
+
icon: isCompareAbsolute ? 'fluent-mdl2:compare' : 'fluent-mdl2:compare-uneven',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: 'Reset Legend',
|
|
113
|
+
hide: binaryFrameFilter === undefined || binaryFrameFilter.length === 0,
|
|
114
|
+
onclick: () => resetLegend(),
|
|
115
|
+
id: 'h-reset-legend-button',
|
|
116
|
+
icon: 'system-uicons:reset',
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
return (_jsx("div", { className: "relative inline-block text-left", children: _jsx(Menu, { children: ({ open, close }) => (_jsxs(_Fragment, { children: [_jsx(Menu.Button, { className: "inline-flex dark:bg-gray-900 dark:border-gray-600 justify-center w-full px-4 py-2 text-sm font-medium text-white bg-white rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 border border-gray-200", children: _jsx(Icon, { icon: "pepicons-pencil:dots-x", className: "h-5 w-5 text-gray-800 dark:text-gray-200" }) }), open && (_jsxs(Menu.Items, { className: "absolute z-30 right-0 w-56 mt-2 py-2 origin-top-right bg-white rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none border dark:bg-gray-900 dark:border-gray-600", children: [_jsx("span", { className: "text-xs text-gray-400 capitalize px-4 py-3", children: "actions" }), menuItems
|
|
120
|
+
.filter(item => item.hide !== undefined && !item.hide)
|
|
121
|
+
.map((item, index) => (_jsx(MenuItem, { ...item, onSelect: onSelect, closeDropdown: close, activeValue: storeSortBy }, index)))] }))] })) }) }));
|
|
122
|
+
};
|
|
123
|
+
export default MultiLevelDropdown;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileType } from '@parca/parser';
|
|
2
|
+
interface Props {
|
|
3
|
+
profileType?: ProfileType;
|
|
4
|
+
total: bigint;
|
|
5
|
+
filtered: bigint;
|
|
6
|
+
}
|
|
7
|
+
declare const TableColumnsDropdown: ({ profileType, total, filtered }: Props) => JSX.Element;
|
|
8
|
+
export default TableColumnsDropdown;
|
|
9
|
+
//# sourceMappingURL=TableColumnsDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableColumnsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/VisualisationToolbar/TableColumnsDropdown.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAO1C,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,oBAAoB,qCAAoC,KAAK,KAAG,GAAG,CAAC,OA4LzE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|