@finos/legend-query-builder 4.14.49 → 4.14.50
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +1 -1
- package/lib/components/QueryBuilder.js +45 -46
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +18 -19
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +2 -2
- package/lib/components/QueryBuilderDiffPanel.js +6 -7
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +10 -11
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +13 -14
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -2
- package/lib/components/QueryBuilderSideBar.js +11 -12
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +1 -1
- package/lib/components/QueryBuilderTextEditor.js +7 -8
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +3 -4
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
- package/lib/components/QueryChat.d.ts +1 -1
- package/lib/components/QueryChat.js +2 -3
- package/lib/components/QueryChat.js.map +1 -1
- package/lib/components/QueryLoader.d.ts +2 -2
- package/lib/components/QueryLoader.js +24 -25
- package/lib/components/QueryLoader.js.map +1 -1
- package/lib/components/QueryUsageViewer.d.ts +1 -1
- package/lib/components/QueryUsageViewer.js +3 -4
- package/lib/components/QueryUsageViewer.js.map +1 -1
- package/lib/components/ServiceQuerySetupUtils.js +3 -4
- package/lib/components/ServiceQuerySetupUtils.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -3
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/data-access/DataAccessOverview.d.ts +1 -1
- package/lib/components/data-access/DataAccessOverview.js +16 -17
- package/lib/components/data-access/DataAccessOverview.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +3 -4
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +2 -3
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js +3 -4
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +3 -3
- package/lib/components/execution-plan/ExecutionPlanViewer.js +33 -34
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +2 -3
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ImplementationViewer.js +3 -4
- package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.js +2 -3
- package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +6 -7
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +3 -4
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.js +4 -5
- package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +6 -7
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.js +3 -4
- package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.js +2 -3
- package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +30 -31
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +19 -20
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +3 -4
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +17 -18
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +8 -9
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +3 -3
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +23 -24
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +26 -27
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +2 -3
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +13 -14
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +8 -9
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +40 -41
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +28 -29
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +19 -20
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts +2 -2
- package/lib/components/result/QueryBuilderResultPanel.js +16 -17
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -11
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +4 -5
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +8 -9
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +37 -38
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +20 -21
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +2 -2
- package/lib/components/shared/LambdaEditor.js +13 -14
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +6 -7
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +3 -4
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +9 -10
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js +3 -4
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +2 -2
- package/lib/components/shared/QueryBuilderVariableSelector.js +7 -8
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +5 -6
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +5 -6
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +5 -6
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,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AChD,CACF,CACF,CAAC;IAEF,IAAI,qCAAqC,EAAE,CAAC;QAC1C,SAAS,CACP,iBAAiB,CAAC,YAAY,EAC9B,6BAA6B,CAC9B,CAAC,iBAAiB,CACjB,iBAAiB,CAAC,YAAY,CAAC,uCAAuC,CACpE,qCAAqC,EACrC,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,sBAAsB,YACrD,KAAC,gCAAgC,cAC/B,KAAC,4BAA4B,cAC3B,KAAC,YAAY,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GACzB,GACE,GACV,CAC5B,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import type { DataAccessState } from '../../stores/data-access/DataAccessState.j
|
|
17
17
|
export declare const DataAccessOverview: ((props: {
|
18
18
|
dataAccessState: DataAccessState;
|
19
19
|
compact?: boolean | undefined;
|
20
|
-
}) => import("react/jsx-
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
21
21
|
displayName: string;
|
22
22
|
};
|
23
23
|
//# sourceMappingURL=DataAccessOverview.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/data-access/DataAccessOverview.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -29,7 +28,7 @@ const DataAccessOverviewChart = observer((props) => {
|
|
29
28
|
const total = entitlementCheckInfo.total;
|
30
29
|
const accessGrantedCount = getNullableFirstEntry(entitlementCheckInfo.data)?.count ?? 0;
|
31
30
|
const accessGrantedPercentage = getNullableFirstEntry(entitlementCheckInfo.data)?.percentage ?? 0;
|
32
|
-
return (
|
31
|
+
return (_jsx("div", { className: "data-access-overview__chart", children: _jsxs("div", { className: "data-access-overview__chart__container", children: [_jsx(Doughnut, { data: {
|
33
32
|
labels: entitlementCheckInfo.data.map((item) => item.label),
|
34
33
|
datasets: [
|
35
34
|
{
|
@@ -57,7 +56,7 @@ const DataAccessOverviewChart = observer((props) => {
|
|
57
56
|
},
|
58
57
|
},
|
59
58
|
},
|
60
|
-
} }
|
59
|
+
} }), _jsxs("div", { className: "data-access-overview__chart__stats", children: [_jsxs("div", { className: "data-access-overview__chart__stats__percentage", children: [total === 0 ? 0 : accessGrantedPercentage, "%"] }), _jsxs("div", { className: "data-access-overview__chart__stats__tally", children: [total === 0 ? 0 : accessGrantedCount, "/", total] })] })] }) }));
|
61
60
|
});
|
62
61
|
const AccessStatusCellRenderer = observer((params) => {
|
63
62
|
const { data, dataAccessState } = params;
|
@@ -66,13 +65,13 @@ const AccessStatusCellRenderer = observer((params) => {
|
|
66
65
|
return null;
|
67
66
|
}
|
68
67
|
if (data.entitlementReport instanceof DatasetEntitlementAccessGrantedReport) {
|
69
|
-
return (
|
68
|
+
return (_jsx("div", { className: "data-access-overview__grid__access-status-cell", children: _jsxs("div", { className: "data-access-overview__grid__access-status-cell__content", children: [_jsx("div", { className: "data-access-overview__grid__access-status-cell__icon data-access-overview__grid__access-status-cell__icon--access-granted", children: _jsx(CheckCircleIcon, {}) }), _jsx("div", { className: "data-access-overview__grid__access-status-cell__text", children: "Access Granted" })] }) }));
|
70
69
|
}
|
71
70
|
else if (data.entitlementReport instanceof DatasetEntitlementAccessApprovedReport) {
|
72
|
-
return (
|
71
|
+
return (_jsx("div", { className: "data-access-overview__grid__access-status-cell", children: _jsxs("div", { className: "data-access-overview__grid__access-status-cell__content", children: [_jsx("div", { className: "data-access-overview__grid__access-status-cell__icon data-access-overview__grid__access-status-cell__icon--access-approved", children: _jsx(MinusCircleIcon, {}) }), _jsx("div", { className: "data-access-overview__grid__access-status-cell__text", children: "Access Approved" })] }) }));
|
73
72
|
}
|
74
73
|
else if (data.entitlementReport instanceof DatasetEntitlementAccessRequestedReport) {
|
75
|
-
return (
|
74
|
+
return (_jsx("div", { className: "data-access-overview__grid__access-status-cell", children: _jsxs("div", { className: "data-access-overview__grid__access-status-cell__content", children: [_jsx("div", { className: "data-access-overview__grid__access-status-cell__icon data-access-overview__grid__access-status-cell__icon--access-requested", children: _jsx(ExclamationCircleIcon, {}) }), _jsx("div", { className: "data-access-overview__grid__access-status-cell__text", children: "Access Requested" })] }) }));
|
76
75
|
}
|
77
76
|
else if (data.entitlementReport instanceof DatasetEntitlementAccessNotGrantedReport) {
|
78
77
|
const plugins = applicationStore.pluginManager
|
@@ -86,10 +85,10 @@ const AccessStatusCellRenderer = observer((params) => {
|
|
86
85
|
break;
|
87
86
|
}
|
88
87
|
}
|
89
|
-
return (
|
88
|
+
return (_jsxs("div", { className: "data-access-overview__grid__access-status-cell", children: [_jsxs("div", { className: "data-access-overview__grid__access-status-cell__content", children: [_jsx("div", { className: "data-access-overview__grid__access-status-cell__icon data-access-overview__grid__access-status-cell__icon--access-not-granted", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { className: "data-access-overview__grid__access-status-cell__text", children: "Access Not Granted" })] }), action && (_jsx("div", { className: "data-access-overview__grid__access-status-cell__action", children: action }))] }));
|
90
89
|
}
|
91
90
|
else if (data.entitlementReport instanceof DatasetEntitlementUnsupportedReport) {
|
92
|
-
return (
|
91
|
+
return (_jsx("div", { className: "data-access-overview__grid__empty-cell", children: "(unsupported)" }));
|
93
92
|
}
|
94
93
|
return null;
|
95
94
|
});
|
@@ -97,10 +96,10 @@ const DataAccessOverviewGrid = observer((props) => {
|
|
97
96
|
const { dataAccessState } = props;
|
98
97
|
const darkMode = !dataAccessState.applicationStore.layoutService
|
99
98
|
.TEMPORARY__isLightColorThemeEnabled;
|
100
|
-
return (
|
99
|
+
return (_jsx("div", { className: clsx('data-access-overview__grid', {
|
101
100
|
'ag-theme-balham': !darkMode,
|
102
101
|
'ag-theme-balham-dark': darkMode,
|
103
|
-
}), children:
|
102
|
+
}), children: _jsx(DataGrid, { rowData: dataAccessState.datasets, gridOptions: {
|
104
103
|
suppressScrollOnNewData: true,
|
105
104
|
getRowId: (rowData) => rowData.data.uuid,
|
106
105
|
}, columnDefs: [
|
@@ -131,7 +130,7 @@ const DataAccessOverviewGrid = observer((props) => {
|
|
131
130
|
cellRenderer: AccessStatusCellRenderer,
|
132
131
|
flex: 1,
|
133
132
|
},
|
134
|
-
] }
|
133
|
+
] }) }));
|
135
134
|
});
|
136
135
|
export const DataAccessOverview = observer((props) => {
|
137
136
|
const { dataAccessState, compact } = props;
|
@@ -156,14 +155,14 @@ export const DataAccessOverview = observer((props) => {
|
|
156
155
|
return warehouseEntitlementRender;
|
157
156
|
};
|
158
157
|
const warehouseEntitlementTab = renderWarehouseEntitlementTab();
|
159
|
-
return (
|
158
|
+
return (_jsxs("div", { className: clsx('data-access-overview', {
|
160
159
|
'data-access-overview--compact': Boolean(compact),
|
161
|
-
}), children: [
|
162
|
-
dataAccessState.checkEntitlementsState.isInProgress }
|
163
|
-
DatasetEntitlementUnsupportedReport)) && (
|
160
|
+
}), children: [_jsx(PanelLoadingIndicator, { isLoading: dataAccessState.surveyDatasetsState.isInProgress ||
|
161
|
+
dataAccessState.checkEntitlementsState.isInProgress }), _jsxs("div", { className: "data-access-overview__actions", children: [Boolean(dataAccessState.datasets.find((dataset) => dataset.entitlementReport instanceof
|
162
|
+
DatasetEntitlementUnsupportedReport)) && (_jsx("div", { className: "data-access-overview__actions__warning", children: "Use case is not fully supported!" })), _jsx("button", { className: "data-access-overview__actions__refresh-btn btn--dark", tabIndex: -1, title: "Refresh", onClick: () => {
|
164
163
|
dataAccessState
|
165
164
|
.refresh()
|
166
165
|
.catch(applicationStore.alertUnhandledError);
|
167
|
-
}, children:
|
166
|
+
}, children: _jsx(RefreshIcon, {}) })] }), _jsxs("div", { className: "data-access-overview__datasets", children: [_jsx("div", { className: "data-access-overview__header", children: "DATASET ENTITLEMENTS" }), _jsx(DataAccessOverviewChart, { dataAccessState: dataAccessState }), _jsx(DataAccessOverviewGrid, { dataAccessState: dataAccessState })] }), warehouseEntitlementTab] }));
|
168
167
|
});
|
169
168
|
//# sourceMappingURL=DataAccessOverview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataAccessOverview.js","sourceRoot":"","sources":["../../../src/components/data-access/DataAccessOverview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DataAccessOverview.js","sourceRoot":"","sources":["../../../src/components/data-access/DataAccessOverview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAKhE,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,QAAQ,GAET,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,sCAAsC,EACtC,qCAAqC,EACrC,wCAAwC,EACxC,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,uBAAuB,GAAG,QAAQ,CACtC,CAAC,KAA2C,EAAE,EAAE;IAC9C,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAClC,MAAM,oBAAoB,GAAG,eAAe,CAAC,oBAAoB,CAAC;IAClE,MAA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,GACR,IACL,EACN,eAAK,SAAS,EAAC,gCAAgC,aAC7C,cAAK,SAAS,EAAC,8BAA8B,qCAEvC,EACN,KAAC,uBAAuB,IAAC,eAAe,EAAE,eAAe,GAAI,EAC7D,KAAC,sBAAsB,IAAC,eAAe,EAAE,eAAe,GAAI,IACxD,EACL,uBAAuB,IACpB,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/AllocationExecutionNodeViewer.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -26,8 +25,8 @@ export const AllocationExecutionNodeViewer = observer((props) => {
|
|
26
25
|
const resultType = node.resultType;
|
27
26
|
const realizeInMemory = node.realizeInMemory?.toString();
|
28
27
|
const applicationStore = executionPlanState.applicationStore;
|
29
|
-
return (
|
28
|
+
return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsx("div", { className: "query-builder__allocation__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__allocation__container__item__label", children: "Allocation Node Details" }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__allocation__container__item", children: _jsx("table", { className: "query-builder__allocation__container__table", children: _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { children: "varName" }), _jsx("td", { children: `: ${varName}` })] }), _jsxs("tr", { children: [_jsx("td", { children: "realizeInMemory" }), _jsx("td", { children: `: ${realizeInMemory}` })] })] }) }) })] }) }), _jsx(PanelDivider, {}), _jsx(ResultTypeViewer, { resultType: resultType }), _jsx(PanelDivider, {}), node.executionNodes.length > 0 &&
|
30
29
|
node.executionNodes[0] !== undefined &&
|
31
|
-
node.executionNodes[0] instanceof ConstantExecutionNode && (
|
30
|
+
node.executionNodes[0] instanceof ConstantExecutionNode && (_jsx(ConstantExecutionNodeViewer, { cnode: node.executionNodes[0], executionPlanState: executionPlanState })), _jsx(PanelDivider, {})] }));
|
32
31
|
});
|
33
32
|
//# sourceMappingURL=AllocationExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AllocationExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/AllocationExecutionNodeViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"AllocationExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/AllocationExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EACL,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAGrC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACnC,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,CAAC;IACzD,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAE7D,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,cAAK,SAAS,EAAC,sCAAsC,YACnD,0BACE,KAAC,aAAa,IAAC,SAAS,EAAC,mDAAmD,wCAE5D,EAChB,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,4CAA4C,YACzD,gBAAO,SAAS,EAAC,6CAA6C,YAC5D,4BACE,yBACE,mCAAgB,EAChB,uBAAK,KAAK,OAAO,EAAE,GAAM,IACtB,EACL,yBACE,2CAAwB,EACxB,uBAAK,KAAK,eAAe,EAAE,GAAM,IAC9B,IACC,GACF,GACJ,IACF,GACF,EACN,KAAC,YAAY,KAAG,EAChB,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,KAAC,YAAY,KAAG,EACf,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC;gBAC7B,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS;gBACpC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,qBAAqB,IAAI,CACzD,KAAC,2BAA2B,IAC1B,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAC7B,kBAAkB,EAAE,kBAAkB,GACtC,CACH,EACH,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/ConstantExecutionNodeViewer.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -31,6 +30,6 @@ export const ConstantExecutionNodeViewer = observer((props) => {
|
|
31
30
|
catch {
|
32
31
|
// do nothing
|
33
32
|
}
|
34
|
-
return (
|
33
|
+
return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [value !== '' && (_jsx("div", { className: "query-builder__constant__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__constant__container__item__label", children: "Constant Execution Node Details" }), _jsx(PanelDivider, {}), _jsx("pre", { children: _jsx("div", { className: "query-builder__constant__container__item", children: _jsxs("div", { children: ["value: ", value] }) }) })] }) })), _jsx(PanelDivider, {}), _jsx(ResultTypeViewer, { resultType: resultType }), _jsx("div", { className: "query-builder__constant__container", children: _jsx(Button, { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), text: "View JSON" }) }), _jsx(PanelDivider, {})] }));
|
35
34
|
});
|
36
35
|
//# sourceMappingURL=ConstantExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConstantExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/ConstantExecutionNodeViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ConstantExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/ConstantExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAGnC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;IACpC,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,IAAI,CAAC;QACH,KAAK,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAW,CAAC;IAC5E,CAAC;IAAC,MAAM,CAAC;QACP,aAAa;IACf,CAAC;IAED,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGpE,KAAK,KAAK,EAAE,IAAI,CACf,cAAK,SAAS,EAAC,oCAAoC,YACjD,0BACE,KAAC,aAAa,IAAC,SAAS,EAAC,iDAAiD,gDAE1D,EAChB,KAAC,YAAY,KAAG,EAChB,wBACE,cAAK,SAAS,EAAC,0CAA0C,YACvD,qCAAa,KAAK,IAAO,GACrB,GACF,IACF,GACF,CACP,EACD,KAAC,YAAY,KAAG,EAChB,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAE/D,IAAI,EAAC,WAAW,GAChB,GACE,EACN,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { Fragment as _Fragment,
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/DataTypeResultTypeViewer.tsx";
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -25,8 +24,8 @@ export const DataTypeResultTypeViewer = observer((props) => {
|
|
25
24
|
type = resultType.type.input ?? '';
|
26
25
|
}
|
27
26
|
if (type === '') {
|
28
|
-
return
|
27
|
+
return _jsx(_Fragment, {});
|
29
28
|
}
|
30
|
-
return (
|
29
|
+
return (_jsxs("div", { className: "query-builder__result__container", children: [_jsx(PanelListItem, { className: "query-builder__result__container__item__data-type", children: _jsxs(_Fragment, { children: [_jsx("div", { className: "query-builder__result__container__item__data-type__type", children: "Result type:" }), _jsx("div", { className: "query-builder__result__container__item__data-type__value", children: type })] }) }), _jsx(PanelDivider, {})] }));
|
31
30
|
});
|
32
31
|
//# sourceMappingURL=DataTypeResultTypeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataTypeResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/DataTypeResultTypeViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DataTypeResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/DataTypeResultTypeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,mCAAmC,GAEpC,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,wBAAwB,GAEhC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7B,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,UAAU,CAAC,IAAI,YAAY,mCAAmC,EAAE,CAAC;QACnE,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;QAChB,OAAO,mBAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,KAAC,aAAa,IAAC,SAAS,EAAC,mDAAmD,YAC1E,8BACE,cAAK,SAAS,EAAC,yDAAyD,6BAElE,EACN,cAAK,SAAS,EAAC,0DAA0D,YACtE,IAAI,GACD,IACL,GACW,EAChB,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -27,19 +27,19 @@ export declare const ExecutionPlanViewerPanelContent: React.FC<{
|
|
27
27
|
export declare const ExecutionPlanTree: ((props: {
|
28
28
|
executionPlanState: ExecutionPlanState;
|
29
29
|
executionPlan: ExecutionPlan;
|
30
|
-
}) => import("react/jsx-
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
31
31
|
displayName: string;
|
32
32
|
};
|
33
33
|
export declare const ExecutionNodeViewer: ((props: {
|
34
34
|
executionNode: ExecutionNode;
|
35
35
|
executionPlanState: ExecutionPlanState;
|
36
36
|
viewJson?: boolean | undefined;
|
37
|
-
}) => import("react/jsx-
|
37
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
38
38
|
displayName: string;
|
39
39
|
};
|
40
40
|
export declare const ExecutionPlanViewer: ((props: {
|
41
41
|
executionPlanState: ExecutionPlanState;
|
42
|
-
}) => import("react/jsx-
|
42
|
+
}) => import("react/jsx-runtime").JSX.Element | null) & {
|
43
43
|
displayName: string;
|
44
44
|
};
|
45
45
|
//# sourceMappingURL=ExecutionPlanViewer.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/ExecutionPlanViewer.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -106,34 +105,34 @@ export const ExecutionPlanViewerPanelContent = observer((props) => {
|
|
106
105
|
executionPlanState.globalImplementationSupportState.setSelectedJavaClass(`${globalImplementationSupport.classes[0]?.package}.${globalImplementationSupport.classes[0]?.name}`);
|
107
106
|
}
|
108
107
|
}
|
109
|
-
return (
|
108
|
+
return (_jsx("div", { className: "query-builder__execution-plan-form--editor", children: _jsxs("div", { className: "panel", children: [_jsx("div", { className: "panel__header query-builder__execution-plan-form--editor__header--with-tabs", children: _jsx("div", { className: "uml-element-editor__tabs", children: Object.values(PLAN_TABS).map((tab) => (_jsx("div", { onClick: () => executionPlanState.globalImplementationSupportState.setSelectedTab(tab), className: clsx('query-builder__execution-plan-form--editor__tab', {
|
110
109
|
'query-builder__execution-plan-form--editor__tab--active': tab ===
|
111
110
|
executionPlanState.globalImplementationSupportState
|
112
111
|
.selectedTab,
|
113
|
-
}), children: prettyCONSTName(tab) }, tab
|
112
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), executionPlanState.globalImplementationSupportState.selectedTab ===
|
114
113
|
PLAN_TABS.GLOBAL_IMPLEMENTATION_SUPPORT &&
|
115
114
|
globalImplementationSupport &&
|
116
|
-
globalImplementationSupport instanceof JavaPlatformImplementation && (
|
115
|
+
globalImplementationSupport instanceof JavaPlatformImplementation && (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { minSize: 30, size: 400, children: _jsx(PanelContent, { darkMode: isDarkMode, className: "query-builder__java__container__panel", children: _jsx("div", { className: "query-builder__java__container", children: _jsxs("div", { children: [globalImplementationSupport.classes.map((cl) => (_jsx("div", { className: clsx('query-builder__java__container__item', {
|
117
116
|
'query-builder__java__container__item--active': `${cl.package}.${cl.name}` ===
|
118
117
|
executionPlanState
|
119
118
|
.globalImplementationSupportState
|
120
119
|
.selectedJavaClass,
|
121
|
-
}), children:
|
122
|
-
.selectedJavaClass && (
|
120
|
+
}), children: _jsx("button", { className: "query-builder__java__container__item__btn", onClick: () => executionPlanState.globalImplementationSupportState.setSelectedJavaClass(`${cl.package}.${cl.name}`), tabIndex: -1, title: `Go to ${cl.package}.${cl.name}`, children: `${cl.package}.${cl.name}` }) }, cl.package + cl.name))), _jsx(PanelDivider, {})] }) }) }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: executionPlanState.globalImplementationSupportState
|
121
|
+
.selectedJavaClass && (_jsx(CodeEditor, { inputValue: globalImplementationSupport.classes.reduce((value, cl) => {
|
123
122
|
if (executionPlanState.globalImplementationSupportState
|
124
123
|
.selectedJavaClass === `${cl.package}.${cl.name}`) {
|
125
124
|
return cl.source;
|
126
125
|
}
|
127
126
|
return value;
|
128
|
-
}, ''), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.JAVA, hideMinimap: true }
|
127
|
+
}, ''), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.JAVA, hideMinimap: true })) })] })), executionPlanState.globalImplementationSupportState.selectedTab ===
|
129
128
|
PLAN_TABS.GENERAL &&
|
130
|
-
templateFunctions.length > 0 && (
|
129
|
+
templateFunctions.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-builder__template--function--editor__header", children: `AuthDependent: ${executionPlanState.plan?.authDependent.toString()}` }), _jsx("div", { className: "query-builder__template--function--editor__title", children: "Template Functions" }), _jsx("div", { className: "query-builder__template--function--editor__code", children: _jsx(CodeEditor, { inputValue: templateFunctions.reduce((total, func) => (total += `${func}\n`), ''), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.XML, hideMinimap: true, hideActionBar: true }) }), _jsx("div", { className: "query-builder__template--function--editor__json", children: _jsx(Button, { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), text: "View JSON" }) })] }))] }) }));
|
131
130
|
});
|
132
131
|
const ExecutionNodeElementTreeNodeContainer = observer((props) => {
|
133
132
|
const { node, level, stepPaddingInRem, onNodeSelect } = props;
|
134
133
|
const isExpandable = Boolean(node.childrenIds?.length);
|
135
134
|
const selectNode = () => onNodeSelect?.(node);
|
136
|
-
const nodeExpandIcon = isExpandable ? (node.isOpen ? (
|
135
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
|
137
136
|
let details = '';
|
138
137
|
let prefixLabel = '';
|
139
138
|
const STORE_MAPPING_LABEL = `Store Mapping Global Graph Fetch Execution Node`;
|
@@ -149,13 +148,13 @@ const ExecutionNodeElementTreeNodeContainer = observer((props) => {
|
|
149
148
|
}
|
150
149
|
prefixLabel = generateExecutionNodePrefixLabel(node.executionNode);
|
151
150
|
}
|
152
|
-
return (
|
151
|
+
return (_jsxs("div", { className: clsx('tree-view__node__container execution-plan-viewer__explorer-tree__node__container', {
|
153
152
|
'menu__trigger--on-menu-open': !node.isSelected,
|
154
153
|
}, {
|
155
154
|
'execution-plan-viewer__explorer-tree__node__container--selected': node.isSelected,
|
156
155
|
}), style: {
|
157
156
|
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1)}rem`,
|
158
|
-
}, onClick: selectNode, children: [
|
157
|
+
}, onClick: selectNode, children: [_jsx("div", { className: "tree-view__node__icon", children: _jsx("div", { className: "tree-view__node__expand-icon", children: nodeExpandIcon }) }), details !== '' && (_jsx("div", { className: "execution-plan-viewer__node__sub-type", children: _jsx("div", { className: "execution-plan-viewer__node__sub-type__label", children: details }) })), prefixLabel !== '' && (_jsx("div", { className: "execution-plan-viewer__node__type", children: _jsx("div", { className: "execution-plan-viewer__node__type__label", children: prefixLabel }) })), _jsx("button", { className: "tree-view__node__label execution-plan-viewer__explorer-tree__node__label", tabIndex: -1, title: node.id, children: node.label })] }));
|
159
158
|
});
|
160
159
|
export const ExecutionPlanTree = observer((props) => {
|
161
160
|
const { executionPlanState } = props;
|
@@ -215,48 +214,48 @@ export const ExecutionPlanTree = observer((props) => {
|
|
215
214
|
.filter(isNonNullable);
|
216
215
|
return childrenNodes;
|
217
216
|
};
|
218
|
-
return (
|
217
|
+
return (_jsx(TreeView, { components: {
|
219
218
|
TreeNodeContainer: ExecutionNodeElementTreeNodeContainer,
|
220
219
|
}, treeData: executionPlanState.nonNullableTreeData, getChildNodes: getChildNodes, onNodeSelect: onNodeSelect, innerProps: {
|
221
220
|
onNodeExpand,
|
222
|
-
} }
|
221
|
+
} }));
|
223
222
|
});
|
224
223
|
export const ExecutionNodeViewer = observer((props) => {
|
225
224
|
const { executionNode, executionPlanState, viewJson } = props;
|
226
225
|
if (executionNode instanceof SQLExecutionNode) {
|
227
|
-
return (
|
226
|
+
return (_jsx(SQLExecutionNodeViewer, { query: executionNode.sqlQuery, resultColumns: executionNode.resultColumns, resultType: executionNode.resultType, executionPlanState: executionPlanState, viewJson: viewJson }));
|
228
227
|
}
|
229
228
|
if (executionNode instanceof RelationalTDSInstantiationExecutionNode) {
|
230
|
-
return (
|
229
|
+
return (_jsx(RelationalTDSInstantiationExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState }));
|
231
230
|
}
|
232
231
|
if (executionNode instanceof FunctionParametersValidationNode) {
|
233
|
-
return (
|
232
|
+
return (_jsx(FunctionParametersValidationNodeViewer, { functionParameters: executionNode.functionParameters, parameterValidationContext: executionNode.parameterValidationContext, executionPlanState: executionPlanState, resultType: executionNode.resultType }));
|
234
233
|
}
|
235
234
|
if (executionNode instanceof AllocationExecutionNode) {
|
236
|
-
return (
|
235
|
+
return (_jsx(AllocationExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState }));
|
237
236
|
}
|
238
237
|
if (executionNode instanceof ConstantExecutionNode) {
|
239
|
-
return (
|
238
|
+
return (_jsx(ConstantExecutionNodeViewer, { cnode: executionNode, executionPlanState: executionPlanState }));
|
240
239
|
}
|
241
240
|
if (executionNode instanceof SequenceExecutionNode) {
|
242
|
-
return (
|
241
|
+
return (_jsx(SequenceExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState, viewJson: viewJson }));
|
243
242
|
}
|
244
243
|
if (executionNode instanceof StoreMappingGlobalGraphFetchExecutionNode) {
|
245
|
-
return (
|
244
|
+
return (_jsx(StoreMappingGlobalGraphFetchExecutionNodeViewer, { storeMappingNode: executionNode, executionPlanState: executionPlanState }));
|
246
245
|
}
|
247
246
|
if (executionNode instanceof
|
248
247
|
RelationalCrossRootQueryTempTableGraphFetchExecutionNode) {
|
249
|
-
return (
|
248
|
+
return (_jsx(RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState }));
|
250
249
|
}
|
251
250
|
if (executionNode instanceof
|
252
251
|
RelationalRootQueryTempTableGraphFetchExecutionNode) {
|
253
|
-
return (
|
252
|
+
return (_jsx(RelationalRootQueryTempTableGraphFetchExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState }));
|
254
253
|
}
|
255
254
|
if (executionNode instanceof
|
256
255
|
RelationalClassQueryTempTableGraphFetchExecutionNode) {
|
257
|
-
return (
|
256
|
+
return (_jsx(RelationalClassQueryTempTableGraphFetchExecutionNodeViewer, { node: executionNode, executionPlanState: executionPlanState }));
|
258
257
|
}
|
259
|
-
return (
|
258
|
+
return (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "execution-node-viewer__unsupported-view", children: [_jsx("div", { className: "execution-node-viewer__unsupported-view__summary", children: `Can't display execution node` }), _jsx("button", { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), children: "View JSON" })] }) }));
|
260
259
|
});
|
261
260
|
const ExecutionPlanViewPanel = observer((props) => {
|
262
261
|
const { displayData, executionPlanState } = props;
|
@@ -279,21 +278,21 @@ const ExecutionPlanViewPanel = observer((props) => {
|
|
279
278
|
}
|
280
279
|
}, [executionPlanState]);
|
281
280
|
const nativeViewModes = Object.values(EXECUTION_PLAN_VIEW_MODE);
|
282
|
-
return (
|
281
|
+
return (_jsx("div", { className: "execution-plan-viewer__panel", children: executionPlanState.selectedNode !== undefined && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header execution-plan-viewer__panel__header", children: [_jsx("div", { className: "execution-plan-viewer__panel__header__tabs", children: _jsx("button", { className: "execution-plan-viewer__panel__header__tab execution-plan-viewer__panel__header__tab--active", children: executionPlanState.selectedNode.label }) }), _jsx(DropdownMenu, { className: "execution-plan-viewer__panel__view-mode__type", title: "View as...", content: _jsx(MenuContent, { className: "execution-plan-viewer__panel__view-mode__options execution-plan-viewer__panel__view-mode__options--with-group", children: _jsxs("div", { className: "execution-plan-viewer__panel__view-mode__option__group execution-plan-viewer__panel__view-mode__option__group--native", children: [_jsx("div", { className: "execution-plan-viewer__panel__view-mode__option__group__name", children: "native" }), _jsx("div", { className: "execution-plan-viewer__panel__view-mode__option__group__options", children: nativeViewModes.map((mode) => (_jsx(MenuContentItem, { className: "execution-plan-viewer__panel__view-mode__option", onClick: () => executionPlanState.setViewMode(mode), children: mode }, mode))) })] }) }), menuProps: {
|
283
282
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
284
283
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
285
|
-
}, children:
|
286
|
-
Boolean(displayData) && (
|
287
|
-
EXECUTION_PLAN_VIEW_MODE.FORM && (
|
284
|
+
}, children: _jsx("div", { className: "execution-plan-viewer__panel__view-mode__type__label", children: executionPlanState.viewMode }) })] }), _jsxs("div", { className: "panel__content execution-plan-viewer__panel__content", children: [executionPlanState.viewMode === EXECUTION_PLAN_VIEW_MODE.JSON &&
|
285
|
+
Boolean(displayData) && (_jsx(CodeEditor, { inputValue: displayData, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.JSON, hideMinimap: true })), executionPlanState.viewMode ===
|
286
|
+
EXECUTION_PLAN_VIEW_MODE.FORM && (_jsxs(_Fragment, { children: [currentElement instanceof ExecutionNode && (_jsx(ExecutionNodeViewer, { executionNode: currentElement, executionPlanState: executionPlanState, viewJson: true })), currentElement instanceof ExecutionPlan && (_jsx(ExecutionPlanViewerPanelContent, { executionPlanState: executionPlanState }))] }))] })] })) }));
|
288
287
|
});
|
289
288
|
const ExecutionPlanViewerContent = observer((props) => {
|
290
289
|
const { executionPlanState, rawPlan } = props;
|
291
290
|
const plan = executionPlanState.plan;
|
292
291
|
const isDarkMode = !executionPlanState.applicationStore.layoutService
|
293
292
|
.TEMPORARY__isLightColorThemeEnabled;
|
294
|
-
return (
|
293
|
+
return (_jsx("div", { className: "execution-plan-viewer__content", children: plan ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 300, minSize: 300, children: _jsxs("div", { className: "panel execution-plan-viewer__explorer", children: [_jsx(PanelSideBarHeader, { darkMode: isDarkMode, title: "execution plan explorer" }), _jsx("div", { className: "panel__content execution-plan-viewer__explorer__content__container", children: _jsx(ExecutionPlanTree, { executionPlanState: executionPlanState, executionPlan: plan }) })] }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: isDarkMode
|
295
294
|
? 'var(--color-dark-grey-200)'
|
296
|
-
: 'var(--color-legacylight-light-grey-300)' }
|
295
|
+
: 'var(--color-legacylight-light-grey-300)' }) }), _jsx(ResizablePanel, { children: _jsx(ExecutionPlanViewPanel, { displayData: executionPlanState.displayData, executionPlanState: executionPlanState }) })] })) : (_jsx(CodeEditor, { inputValue: JSON.stringify(rawPlan, undefined, DEFAULT_TAB_SIZE), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.JSON })) }));
|
297
296
|
});
|
298
297
|
export const ExecutionPlanViewer = observer((props) => {
|
299
298
|
const { executionPlanState } = props;
|
@@ -312,12 +311,12 @@ export const ExecutionPlanViewer = observer((props) => {
|
|
312
311
|
if (!rawPlan) {
|
313
312
|
return null;
|
314
313
|
}
|
315
|
-
return (
|
314
|
+
return (_jsx(Dialog, { open: Boolean(executionPlanState.rawPlan), onClose: closePlanViewer, classes: {
|
316
315
|
root: 'editor-modal__root-container',
|
317
316
|
container: 'editor-modal__container',
|
318
317
|
paper: 'editor-modal__content',
|
319
|
-
}, children:
|
318
|
+
}, children: _jsxs(Modal, { className: "editor-modal", darkMode: isDarkMode, children: [_jsx(ModalHeader, { title: "Execution Plan" }), _jsx(ModalBody, { children: executionPlanState.debugText ? (_jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 100, children: _jsx(ExecutionPlanViewerContent, { executionPlanState: executionPlanState, rawPlan: rawPlan }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: isDarkMode
|
320
319
|
? 'var(--color-dark-grey-200)'
|
321
|
-
: 'var(--color-legacylight-light-grey-300)' }
|
320
|
+
: 'var(--color-legacylight-light-grey-300)' }) }), _jsx(ResizablePanel, { size: 200, minSize: 28, children: _jsxs(Panel, { className: "panel execution-plan-viewer__debug-panel", children: [_jsx(PanelHeader, { title: "DEBUG LOG", keepTitleFormat: true, darkMode: isDarkMode }), _jsx(PanelContent, { children: _jsx(CodeEditor, { inputValue: executionPlanState.debugText, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.TEXT }) })] }) })] })) : (_jsx(ExecutionPlanViewerContent, { executionPlanState: executionPlanState, rawPlan: rawPlan })) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: closePlanViewer, text: "Close", type: "secondary" }) })] }) }));
|
322
321
|
});
|
323
322
|
//# sourceMappingURL=ExecutionPlanViewer.js.map
|