@finos/legend-query-builder 4.4.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +8 -2
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +7 -0
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.js +109 -27
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ImplementationViewer.d.ts +23 -0
- package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/ImplementationViewer.js +35 -0
- package/lib/components/execution-plan/ImplementationViewer.js.map +1 -0
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts +21 -0
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/PartialClassResultViewer.js +24 -0
- package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -0
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +47 -0
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +23 -0
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +43 -0
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -0
- package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.js +5 -1
- package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +16 -3
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +6 -0
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +34 -12
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +23 -0
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +57 -0
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -0
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +28 -0
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -0
- package/lib/components/execution-plan/TempTableStrategyViewer.js +42 -0
- package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +7 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +16 -10
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts +2 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +31 -19
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/execution-plan/ExecutionPlanState.d.ts +15 -1
- package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
- package/lib/stores/execution-plan/ExecutionPlanState.js +50 -3
- package/lib/stores/execution-plan/ExecutionPlanState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +16 -4
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +6 -4
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +43 -9
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
- package/package.json +5 -5
- package/src/components/QueryBuilderResultPanel.tsx +7 -2
- package/src/components/execution-plan/AllocationExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/ExecutionPlanViewer.tsx +233 -57
- package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -0
- package/src/components/execution-plan/ImplementationViewer.tsx +76 -0
- package/src/components/execution-plan/PartialClassResultViewer.tsx +55 -0
- package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +190 -0
- package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +219 -0
- package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +204 -0
- package/src/components/execution-plan/ResultTypeViewer.tsx +4 -0
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +66 -44
- package/src/components/execution-plan/SequenceExecutionNodeViewer.tsx +79 -15
- package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +264 -0
- package/src/components/execution-plan/TempTableStrategyViewer.tsx +97 -0
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +23 -9
- package/src/components/shared/CustomDatePicker.tsx +65 -27
- package/src/components/shared/QueryBuilderVariableSelector.tsx +4 -1
- package/src/stores/execution-plan/ExecutionPlanState.ts +64 -1
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +17 -7
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +73 -9
- package/tsconfig.json +7 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ImplementationViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/ImplementationViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAEL,aAAa,EACb,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa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yright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type PartialClassResultType } from '@finos/legend-graph';
|
18
|
+
export declare const PartialClassResultTypeViewer: React.FC<{
|
19
|
+
resultType: PartialClassResultType;
|
20
|
+
}>;
|
21
|
+
//# sourceMappingURL=PartialClassResultViewer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PartialClassResultViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/PartialClassResultViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC;IAClD,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAgCC,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { PanelListItem, PanelDivider } from '@finos/legend-art';
|
19
|
+
import {} from '@finos/legend-graph';
|
20
|
+
export const PartialClassResultTypeViewer = observer((props) => {
|
21
|
+
const { resultType } = props;
|
22
|
+
return (_jsxs("div", { className: "query-builder__result__container", children: [_jsxs(PanelListItem, { className: "query-builder__result__container__item__partial-class", children: ["Result type: PartialClass[", resultType.type.valueForSerialization ?? '', "]"] }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__result__container__table--partial-class", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Parameters" })] }) }), _jsx("tbody", { children: resultType.propertiesWithParameters.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.property }), _jsx("td", { className: "table__cell--left", children: column.parameters.toString() })] }, column.property))) })] }), _jsx(PanelDivider, {})] }));
|
23
|
+
});
|
24
|
+
//# sourceMappingURL=PartialClassResultViewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PartialClassResultViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/PartialClassResultViewer.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,EAA+B,MAAM,qBAAqB,CAAC;AAElE,MAAM,CAAC,MAAM,4BAA4B,GAEpC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,MAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,2CACnD,UAAU,CAAC,IAAI,CAAC,qBAAqB,IAAI,EAAE,SACxD,EAChB,KAAC,YAAY,KAAG,EAEd,iBAAO,SAAS,EAAC,8DAA8D,aAC7E,0BACE,yBACE,aAAI,SAAS,EAAC,mBAAmB,yBAAc,EAC/C,aAAI,SAAS,EAAC,mBAAmB,2BAAgB,IAC9C,GACC,EACR,0BACG,UAAU,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACnD,yBACE,aAAI,SAAS,EAAC,mBAAmB,YAAE,MAAM,CAAC,QAAQ,GAAM,EACxD,aAAI,SAAS,EAAC,mBAAmB,YAC9B,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,GAC1B,KAJE,MAAM,CAAC,QAAQ,CAKnB,CACN,CAAC,GACI,IACF,EAEV,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
18
|
+
import { type RelationalClassQueryTempTableGraphFetchExecutionNode } from '@finos/legend-graph';
|
19
|
+
export declare const RelationalClassQueryTempTableGraphFetchExecutionNodeViewer: React.FC<{
|
20
|
+
node: RelationalClassQueryTempTableGraphFetchExecutionNode;
|
21
|
+
executionPlanState: ExecutionPlanState;
|
22
|
+
}>;
|
23
|
+
//# sourceMappingURL=RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAS3D,OAAO,EACL,KAAK,oDAAoD,EAE1D,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,0DAA0D,EAAE,KAAK,CAAC,EAAE,CAAC;IAChF,IAAI,EAAE,oDAAoD,CAAC;IAC3D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CA6IC,CAAC"}
|
package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
|
19
|
+
import { PanelListItem, PanelDivider, Button, PanelContent, clsx, } from '@finos/legend-art';
|
20
|
+
import { SQLExecutionNode, } from '@finos/legend-graph';
|
21
|
+
import { ResultTypeViewer } from './ResultTypeViewer.js';
|
22
|
+
import { SQLExecutionNodeViewerHelper } from './SQLExecutionNodeViewer.js';
|
23
|
+
import { useState } from 'react';
|
24
|
+
import { prettyCONSTName } from '@finos/legend-shared';
|
25
|
+
import { ImplementationViewer } from './ImplementationViewer.js';
|
26
|
+
import { TempTableStrategyViewer } from './TempTableStrategyViewer.js';
|
27
|
+
var RELATIONAL_CLASS_QUERY_TABS;
|
28
|
+
(function (RELATIONAL_CLASS_QUERY_TABS) {
|
29
|
+
RELATIONAL_CLASS_QUERY_TABS["GENERAL"] = "GENERAL";
|
30
|
+
RELATIONAL_CLASS_QUERY_TABS["TEMP_TABLE"] = "TEMP_TABLE_STRATEGY";
|
31
|
+
})(RELATIONAL_CLASS_QUERY_TABS || (RELATIONAL_CLASS_QUERY_TABS = {}));
|
32
|
+
export const RelationalClassQueryTempTableGraphFetchExecutionNodeViewer = observer((props) => {
|
33
|
+
const { node, executionPlanState } = props;
|
34
|
+
const applicationStore = executionPlanState.applicationStore;
|
35
|
+
const [selectedTab, setSelectedTab] = useState(RELATIONAL_CLASS_QUERY_TABS.GENERAL);
|
36
|
+
return (_jsx(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: _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(RELATIONAL_CLASS_QUERY_TABS).map((tab) => (_jsx("div", { onClick: () => setSelectedTab(tab), className: clsx('query-builder__execution-plan-form--editor__tab', {
|
37
|
+
'query-builder__execution-plan-form--editor__tab--active': tab === selectedTab,
|
38
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), selectedTab === RELATIONAL_CLASS_QUERY_TABS.GENERAL && (_jsxs("div", { className: "query-builder__store-mapping-global-graph-fetch__container", children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label", children: "Relational Class Query Temp Table Graph Fetch Execution Node Details" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__store-mapping-global-graph-fetch__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Details" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " NodeIndex" }), _jsx("td", { className: "table__cell--left", children: node.nodeIndex })] }), node.parentIndex && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "ParentIndex" }), _jsx("td", { className: "table__cell--left", children: node.parentIndex })] })), node.authDependent && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "AuthDependent" }), _jsx("td", { className: "table__cell--left", children: node.authDependent.toString() })] })), node.processedTempTableName && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "processedTempTableName" }), _jsx("td", { className: "table__cell--left", children: node.processedTempTableName })] })), node.tempTableName && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "tempTableName" }), _jsx("td", { className: "table__cell--left", children: node.tempTableName })] }))] })] }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__implementation", children: _jsx(ImplementationViewer, { node: node, executionPlanState: executionPlanState }) }), _jsx(PanelDivider, {}), node.executionNodes.length > 0 &&
|
39
|
+
node.executionNodes[0] &&
|
40
|
+
node.executionNodes[0] instanceof SQLExecutionNode && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label2", children: "Execution Node Details" }), _jsx(PanelDivider, {}), _jsx(SQLExecutionNodeViewerHelper, { query: node.executionNodes[0].sqlQuery, resultColumns: node.executionNodes[0].resultColumns, resultType: node.executionNodes[0].resultType, executionPlanState: executionPlanState })] })), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", children: _jsx(ResultTypeViewer, { resultType: node.resultType }) }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", 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" }) })] })), selectedTab === RELATIONAL_CLASS_QUERY_TABS.TEMP_TABLE &&
|
41
|
+
node.tempTableStrategy && (_jsx(TempTableStrategyViewer, { tempTableStrategy: node.tempTableStrategy, executionPlanState: executionPlanState }))] }) }) }));
|
42
|
+
});
|
43
|
+
//# sourceMappingURL=RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.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,EACZ,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,E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gCAC7B,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;gCACtB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,gBAAgB,IAAI,CACpD,8BACE,KAAC,aAAa,IAAC,SAAS,EAAC,oEAAoE,uCAE7E,EAChB,KAAC,YAAY,KAAG,EAChB,KAAC,4BAA4B,IAC3B,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,EACtC,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,aAAa,EACnD,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,EAC7C,kBAAkB,EAAE,kBAAkB,GACtC,IACD,CACJ,EACH,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,oEAAoE,YACjF,KAAC,gBAAgB,IAAC,UAAU,EAAE,IAAI,CAAC,UAAU,GAAI,GAC7C,EACN,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,oEAAoE,YACjF,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAC5B,wBAAwB,CAAC,IAAI,CAC9B,EAEH,IAAI,EAAC,WAAW,GAChB,GACE,IACF,CACP,EACA,WAAW,KAAK,2BAA2B,CAAC,UAAU;wBACrD,IAAI,CAAC,iBAAiB,IAAI,CACxB,KAAC,uBAAuB,IACtB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,kBAAkB,EAAE,kBAAkB,GACtC,CACH,IACC,GACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
18
|
+
import { type RelationalCrossRootQueryTempTableGraphFetchExecutionNode } from '@finos/legend-graph';
|
19
|
+
export declare const RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer: React.FC<{
|
20
|
+
node: RelationalCrossRootQueryTempTableGraphFetchExecutionNode;
|
21
|
+
executionPlanState: ExecutionPlanState;
|
22
|
+
}>;
|
23
|
+
//# sourceMappingURL=RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAS3D,OAAO,EACL,KAAK,wDAAwD,EAE9D,MAAM,qBAAqB,CAAC;AAc7B,eAAO,MAAM,8DAA8D,EAAE,KAAK,CAAC,EAAE,CAAC;IACpF,IAAI,EAAE,wDAAwD,CAAC;IAC/D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAyKC,CAAC"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
|
19
|
+
import { PanelListItem, PanelDivider, Button, PanelContent, clsx, } from '@finos/legend-art';
|
20
|
+
import { SQLExecutionNode, } from '@finos/legend-graph';
|
21
|
+
import { ResultTypeViewer } from './ResultTypeViewer.js';
|
22
|
+
import { SQLExecutionNodeViewerHelper } from './SQLExecutionNodeViewer.js';
|
23
|
+
import { useState } from 'react';
|
24
|
+
import { prettyCONSTName } from '@finos/legend-shared';
|
25
|
+
import { ImplementationViewer } from './ImplementationViewer.js';
|
26
|
+
import { TempTableStrategyViewer } from './TempTableStrategyViewer.js';
|
27
|
+
var RELATIONAL_CROSS_ROOT_QUERY_TABS;
|
28
|
+
(function (RELATIONAL_CROSS_ROOT_QUERY_TABS) {
|
29
|
+
RELATIONAL_CROSS_ROOT_QUERY_TABS["GENERAL"] = "GENERAL";
|
30
|
+
RELATIONAL_CROSS_ROOT_QUERY_TABS["TEMP_TABLE_STRATEGY"] = "TEMP_TABLE_STRATEGY";
|
31
|
+
RELATIONAL_CROSS_ROOT_QUERY_TABS["PARENT_TEMP_TABLE_STRATEGY"] = "PARENT_TEMP_TABLE_STRATEGY";
|
32
|
+
})(RELATIONAL_CROSS_ROOT_QUERY_TABS || (RELATIONAL_CROSS_ROOT_QUERY_TABS = {}));
|
33
|
+
export const RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer = observer((props) => {
|
34
|
+
const { node, executionPlanState } = props;
|
35
|
+
const applicationStore = executionPlanState.applicationStore;
|
36
|
+
const [selectedTab, setSelectedTab] = useState(RELATIONAL_CROSS_ROOT_QUERY_TABS.GENERAL);
|
37
|
+
return (_jsx(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: _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(RELATIONAL_CROSS_ROOT_QUERY_TABS).map((tab) => (_jsx("div", { onClick: () => setSelectedTab(tab), className: clsx('query-builder__execution-plan-form--editor__tab', {
|
38
|
+
'query-builder__execution-plan-form--editor__tab--active': tab === selectedTab,
|
39
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), selectedTab === RELATIONAL_CROSS_ROOT_QUERY_TABS.GENERAL && (_jsxs("div", { className: "query-builder__store-mapping-global-graph-fetch__container", children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label", children: "Relational Cross Root Query Temp Table Graph Fetch Execution Node Details" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__store-mapping-global-graph-fetch__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Details" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " NodeIndex" }), _jsx("td", { className: "table__cell--left", children: node.nodeIndex })] }), node.parentIndex !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "ParentIndex" }), _jsx("td", { className: "table__cell--left", children: node.parentIndex })] })), node.authDependent !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "AuthDependent" }), _jsx("td", { className: "table__cell--left", children: node.authDependent.toString() })] })), node.processedTempTableName !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "processedTempTableName" }), _jsx("td", { className: "table__cell--left", children: node.processedTempTableName })] })), node.tempTableName && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "tempTableName" }), _jsx("td", { className: "table__cell--left", children: node.tempTableName })] })), node.processedParentTempTableName !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "processedParentTempTableName" }), _jsx("td", { className: "table__cell--left", children: node.processedParentTempTableName })] })), node.parentTempTableName && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "parentTempTableName" }), _jsx("td", { className: "table__cell--left", children: node.parentTempTableName })] }))] })] }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__implementation", children: _jsx(ImplementationViewer, { node: node, executionPlanState: executionPlanState }) }), _jsx(PanelDivider, {}), node.executionNodes.length > 0 &&
|
40
|
+
node.executionNodes[0] &&
|
41
|
+
node.executionNodes[0] instanceof SQLExecutionNode && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label2", children: "Execution Node Details" }), _jsx(PanelDivider, {}), _jsx(SQLExecutionNodeViewerHelper, { query: node.executionNodes[0].sqlQuery, resultColumns: node.executionNodes[0].resultColumns, resultType: node.executionNodes[0].resultType, executionPlanState: executionPlanState })] })), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", children: _jsx(ResultTypeViewer, { resultType: node.resultType }) }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", 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" }) })] })), selectedTab ===
|
42
|
+
RELATIONAL_CROSS_ROOT_QUERY_TABS.TEMP_TABLE_STRATEGY &&
|
43
|
+
node.tempTableStrategy && (_jsx(TempTableStrategyViewer, { tempTableStrategy: node.tempTableStrategy, executionPlanState: executionPlanState })), selectedTab ===
|
44
|
+
RELATIONAL_CROSS_ROOT_QUERY_TABS.PARENT_TEMP_TABLE_STRATEGY &&
|
45
|
+
node.parentTempTableStrategy && (_jsx(TempTableStrategyViewer, { tempTableStrategy: node.parentTempTableStrategy, executionPlanState: executionPlanState }))] }) }) }));
|
46
|
+
});
|
47
|
+
//# sourceMappingURL=RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.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,EACZ,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,IAAK,gCAIJ;AAJD,WAAK,gCAAgC;IACnC,u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EAAE,kBAAkB,GACtC,CACH,IACC,GACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
18
|
+
import { type RelationalRootQueryTempTableGraphFetchExecutionNode } from '@finos/legend-graph';
|
19
|
+
export declare const RelationalRootQueryTempTableGraphFetchExecutionNodeViewer: React.FC<{
|
20
|
+
node: RelationalRootQueryTempTableGraphFetchExecutionNode;
|
21
|
+
executionPlanState: ExecutionPlanState;
|
22
|
+
}>;
|
23
|
+
//# sourceMappingURL=RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAS3D,OAAO,EACL,KAAK,mDAAmD,EAEzD,MAAM,qBAAqB,CAAC;AAa7B,eAAO,MAAM,yDAAyD,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/E,IAAI,EAAE,mDAAmD,CAAC;IAC1D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CA2JC,CAAC"}
|
package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { observer } from 'mobx-react-lite';
|
18
|
+
import { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
|
19
|
+
import { PanelListItem, PanelDivider, Button, PanelContent, clsx, } from '@finos/legend-art';
|
20
|
+
import { SQLExecutionNode, } from '@finos/legend-graph';
|
21
|
+
import { ResultTypeViewer } from './ResultTypeViewer.js';
|
22
|
+
import { SQLExecutionNodeViewerHelper } from './SQLExecutionNodeViewer.js';
|
23
|
+
import { useState } from 'react';
|
24
|
+
import { prettyCONSTName } from '@finos/legend-shared';
|
25
|
+
import { ImplementationViewer } from './ImplementationViewer.js';
|
26
|
+
import { TempTableStrategyViewer } from './TempTableStrategyViewer.js';
|
27
|
+
var RELATIONAL_ROOT_QUERY_TABS;
|
28
|
+
(function (RELATIONAL_ROOT_QUERY_TABS) {
|
29
|
+
RELATIONAL_ROOT_QUERY_TABS["GENERAL"] = "GENERAL";
|
30
|
+
RELATIONAL_ROOT_QUERY_TABS["TEMP_TABLE"] = "TEMP_TABLE_STRATEGY";
|
31
|
+
})(RELATIONAL_ROOT_QUERY_TABS || (RELATIONAL_ROOT_QUERY_TABS = {}));
|
32
|
+
export const RelationalRootQueryTempTableGraphFetchExecutionNodeViewer = observer((props) => {
|
33
|
+
const { node, executionPlanState } = props;
|
34
|
+
const applicationStore = executionPlanState.applicationStore;
|
35
|
+
const [selectedTab, setSelectedTab] = useState(RELATIONAL_ROOT_QUERY_TABS.GENERAL);
|
36
|
+
return (_jsx(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: _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(RELATIONAL_ROOT_QUERY_TABS).map((tab) => (_jsx("div", { onClick: () => setSelectedTab(tab), className: clsx('query-builder__execution-plan-form--editor__tab', {
|
37
|
+
'query-builder__execution-plan-form--editor__tab--active': tab === selectedTab,
|
38
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), selectedTab === RELATIONAL_ROOT_QUERY_TABS.GENERAL && (_jsxs("div", { className: "query-builder__store-mapping-global-graph-fetch__container", children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label", children: "Relational Root Query Temp Table Graph Fetch Execution Node Details" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__store-mapping-global-graph-fetch__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Details" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " NodeIndex" }), _jsx("td", { className: "table__cell--left", children: node.nodeIndex })] }), node.parentIndex !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "ParentIndex" }), _jsx("td", { className: "table__cell--left", children: node.parentIndex })] })), node.batchSize !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Batch Size" }), _jsx("td", { className: "table__cell--left", children: node.batchSize })] })), node.checked && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Checked" }), _jsx("td", { className: "table__cell--left", children: node.checked.toString() })] })), node.authDependent !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "AuthDependent" }), _jsx("td", { className: "table__cell--left", children: node.authDependent.toString() })] })), node.processedTempTableName !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "processedTempTableName" }), _jsx("td", { className: "table__cell--left", children: node.processedTempTableName })] })), node.tempTableName && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "tempTableName" }), _jsx("td", { className: "table__cell--left", children: node.tempTableName })] }))] })] }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__implementation", children: _jsx(ImplementationViewer, { node: node, executionPlanState: executionPlanState }) }), _jsx(PanelDivider, {}), node.executionNodes.length > 0 &&
|
39
|
+
node.executionNodes[0] &&
|
40
|
+
node.executionNodes[0] instanceof SQLExecutionNode && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label2", children: "Execution Node Details" }), _jsx(PanelDivider, {}), _jsx(SQLExecutionNodeViewerHelper, { query: node.executionNodes[0].sqlQuery, resultColumns: node.executionNodes[0].resultColumns, resultType: node.executionNodes[0].resultType, executionPlanState: executionPlanState })] })), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", children: _jsx(ResultTypeViewer, { resultType: node.resultType }) }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__result", 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" }) })] })), selectedTab === RELATIONAL_ROOT_QUERY_TABS.TEMP_TABLE &&
|
41
|
+
node.tempTableStrategy && (_jsx(TempTableStrategyViewer, { tempTableStrategy: node.tempTableStrategy, executionPlanState: executionPlanState }))] }) }) }));
|
42
|
+
});
|
43
|
+
//# sourceMappingURL=RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.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,EACZ,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,IAAK,0BAGJ;AAHD,WAAK,0BAA0B;IAC7B,iDAAmB,CAAA;IACnB,gEAAkC,CAAA;AACpC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cAAc,CAAC,MAAM,GAAG,CAAC;gCAC7B,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;gCACtB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,gBAAgB,IAAI,CACpD,8BACE,KAAC,aAAa,IAAC,SAAS,EAAC,oEAAoE,uCAE7E,EAChB,KAAC,YAAY,KAAG,EAChB,KAAC,4BAA4B,IAC3B,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,EACtC,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,aAAa,EACnD,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,EAC7C,kBAAkB,EAAE,kBAAkB,GACtC,IACD,CACJ,EACH,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,oEAAoE,YACjF,KAAC,gBAAgB,IAAC,UAAU,EAAE,IAAI,CAAC,UAAU,GAAI,GAC7C,EACN,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,oEAAoE,YACjF,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAC5B,wBAAwB,CAAC,IAAI,CAC9B,EAEH,IAAI,EAAC,WAAW,GAChB,GACE,IACF,CACP,EACA,WAAW,KAAK,0BAA0B,CAAC,UAAU;wBACpD,IAAI,CAAC,iBAAiB,IAAI,CACxB,KAAC,uBAAuB,IACtB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,kBAAkB,EAAE,kBAAkB,GACtC,CACH,IACC,GACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultTypeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/ResultTypeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,UAAU,
|
1
|
+
{"version":3,"file":"ResultTypeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/ResultTypeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,qBAAqB,CAAC;AAK7B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,UAAU,EAAE,UAAU,CAAC;CACxB,CAWC,CAAC"}
|
@@ -15,9 +15,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
|
-
import { TDSResultType, DataTypeResultType, } from '@finos/legend-graph';
|
18
|
+
import { TDSResultType, DataTypeResultType, PartialClassResultType, } from '@finos/legend-graph';
|
19
19
|
import { DataTypeResultTypeViewer } from './DataTypeResultTypeViewer.js';
|
20
20
|
import { TDSResultTypeViewer } from './TDSResultTypeViewer.js';
|
21
|
+
import { PartialClassResultTypeViewer } from './PartialClassResultViewer.js';
|
21
22
|
export const ResultTypeViewer = observer((props) => {
|
22
23
|
const { resultType } = props;
|
23
24
|
if (resultType instanceof DataTypeResultType) {
|
@@ -26,6 +27,9 @@ export const ResultTypeViewer = observer((props) => {
|
|
26
27
|
else if (resultType instanceof TDSResultType) {
|
27
28
|
return _jsx(TDSResultTypeViewer, { resultType: resultType });
|
28
29
|
}
|
30
|
+
else if (resultType instanceof PartialClassResultType) {
|
31
|
+
return _jsx(PartialClassResultTypeViewer, { resultType: resultType });
|
32
|
+
}
|
29
33
|
else {
|
30
34
|
return null;
|
31
35
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/ResultTypeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,aAAa,EACb,kBAAkB,
|
1
|
+
{"version":3,"file":"ResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/ResultTypeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,aAAa,EACb,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAExB,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7B,IAAI,UAAU,YAAY,kBAAkB,EAAE;QAC5C,OAAO,KAAC,wBAAwB,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;KAC7D;SAAM,IAAI,UAAU,YAAY,aAAa,EAAE;QAC9C,OAAO,KAAC,mBAAmB,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;KACxD;SAAM,IAAI,UAAU,YAAY,sBAAsB,EAAE;QACvD,OAAO,KAAC,4BAA4B,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;KACjE;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC,CAAC"}
|
@@ -34,6 +34,6 @@ export declare const SQLExecutionNodeViewer: React.FC<{
|
|
34
34
|
resultColumns: SQLResultColumn[];
|
35
35
|
resultType: ResultType;
|
36
36
|
executionPlanState: ExecutionPlanState;
|
37
|
-
viewJson
|
37
|
+
viewJson?: boolean | undefined;
|
38
38
|
}>;
|
39
39
|
//# sourceMappingURL=SQLExecutionNodeViewer.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SQLExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAe7B;;;;;;GAMG;AAEH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,
|
1
|
+
{"version":3,"file":"SQLExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAe7B;;;;;;GAMG;AAEH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CA6FC,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAwCC,CAAC"}
|
@@ -29,7 +29,7 @@ import { CodeEditor, CODE_EDITOR_LANGUAGE, } from '@finos/legend-lego/code-edito
|
|
29
29
|
* See https://github.com/finos/legend-studio/issues/65
|
30
30
|
*/
|
31
31
|
export const SQLExecutionNodeViewerHelper = observer((props) => {
|
32
|
-
const { query, resultColumns,
|
32
|
+
const { query, resultColumns, executionPlanState } = props;
|
33
33
|
const applicationStore = executionPlanState.applicationStore;
|
34
34
|
const copyExpression = (value) => {
|
35
35
|
applicationStore.clipboardService
|
@@ -39,11 +39,24 @@ export const SQLExecutionNodeViewerHelper = observer((props) => {
|
|
39
39
|
};
|
40
40
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__sql__container", children: [_jsx(PanelDivider, {}), _jsxs("div", { children: [_jsx("div", { className: "query-builder__sql__container__item__label", children: _jsxs(PanelListItem, { children: ["SQL", _jsx("div", { children: _jsx("button", { onClick: () => {
|
41
41
|
copyExpression(query);
|
42
|
-
}, title: "Copy SQL Expression", className: "query-builder__sql__container__icon", children: _jsx(CopyIcon, {}) }) })] }) }), _jsx("div", { className: "query-builder__sql__container__code-editor", children: _jsx(CodeEditor, { inputValue: tryToFormatSql(query
|
42
|
+
}, title: "Copy SQL Expression", className: "query-builder__sql__container__icon", children: _jsx(CopyIcon, {}) }) })] }) }), _jsx("div", { className: "query-builder__sql__container__code-editor", children: _jsx(CodeEditor, { inputValue: tryToFormatSql(query
|
43
|
+
.replaceAll('$', 'changeDollar')
|
44
|
+
.replaceAll('?', 'changeQuestion')
|
45
|
+
.replaceAll('{', 'changeOpenCurlyBracket')
|
46
|
+
.replaceAll('}', 'changeCloseCurlyBracket')
|
47
|
+
.replaceAll("'", 'changeSingleQuote'))
|
48
|
+
.replaceAll('changeDollar', '$')
|
49
|
+
.replaceAll('changeQuestion', '?')
|
50
|
+
.replaceAll('changeOpenCurlyBracket', '{')
|
51
|
+
.replaceAll('changeCloseCurlyBracket', '}')
|
52
|
+
.replaceAll('changeSingleQuote', "'"), language: CODE_EDITOR_LANGUAGE.SQL }) }), _jsx(PanelDivider, {})] }, query)] }), resultColumns.length > 0 && (_jsx("div", { className: "query-builder__sql__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__sql__container__item__label", children: "Result Columns" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__sql__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Label" }), _jsx("th", { className: "table__cell--left", children: "Data Type" })] }) }), _jsx("tbody", { children: resultColumns.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.label.replaceAll(`"`, '') }), column.dataType && (_jsx("td", { className: "table__cell--left", children: stringifyDataType(column.dataType) }))] }, column.label))) })] })] }) }))] }));
|
43
53
|
});
|
44
54
|
export const SQLExecutionNodeViewer = observer((props) => {
|
45
55
|
const { query, resultColumns, resultType, executionPlanState, viewJson } = props;
|
46
56
|
const applicationStore = executionPlanState.applicationStore;
|
47
|
-
|
57
|
+
if (viewJson === false) {
|
58
|
+
return (_jsx(SQLExecutionNodeViewerHelper, { query: query, resultColumns: resultColumns, resultType: resultType, executionPlanState: executionPlanState }));
|
59
|
+
}
|
60
|
+
return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsx(SQLExecutionNodeViewerHelper, { query: query, resultColumns: resultColumns, resultType: resultType, executionPlanState: executionPlanState }), _jsx(ResultTypeViewer, { resultType: resultType }), _jsx("div", { className: "query-builder__sql__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, {})] }));
|
48
61
|
});
|
49
62
|
//# sourceMappingURL=SQLExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAEL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAExC;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAKpC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,
|
1
|
+
{"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAEL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAExC;;;;;;GAMG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AAO,CACL,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,CACH,CAAC;KACH;IACD,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,cAAK,SAAS,EAAC,+BAA+B,YAC5C,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"}
|
@@ -16,8 +16,14 @@
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
17
17
|
import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
18
18
|
import type { SequenceExecutionNode } from '@finos/legend-graph';
|
19
|
+
export declare const SequenceExecutionNodeViewerHelper: React.FC<{
|
20
|
+
node: SequenceExecutionNode;
|
21
|
+
executionPlanState: ExecutionPlanState;
|
22
|
+
viewJson?: boolean | undefined;
|
23
|
+
}>;
|
19
24
|
export declare const SequenceExecutionNodeViewer: React.FC<{
|
20
25
|
node: SequenceExecutionNode;
|
21
26
|
executionPlanState: ExecutionPlanState;
|
27
|
+
viewJson?: boolean | undefined;
|
22
28
|
}>;
|
23
29
|
//# sourceMappingURL=SequenceExecutionNodeViewer.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SequenceExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
1
|
+
{"version":3,"file":"SequenceExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,mDAAmD,CAAC;AAU3D,OAAO,KAAK,EAAiB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIhF,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC;IACvD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAyEC,CAAC;AAEH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IACjD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAmCC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
4
|
*
|
@@ -15,24 +15,46 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
|
-
import { generateExecutionNodeLabel } from './ExecutionPlanViewer.js';
|
18
|
+
import { ExecutionNodeViewer, generateExecutionNodeLabel, } from './ExecutionPlanViewer.js';
|
19
19
|
import { EXECUTION_PLAN_VIEW_MODE, ExecutionPlanViewTreeNodeData, ExecutionNodeTreeNodeData, } from '../../stores/execution-plan/ExecutionPlanState.js';
|
20
|
-
import { PanelListItem, PanelDivider, Button, PanelContent, } from '@finos/legend-art';
|
20
|
+
import { PanelListItem, PanelDivider, Button, PanelContent, ChevronDownIcon, ChevronRightIcon, } from '@finos/legend-art';
|
21
21
|
import { ResultTypeViewer } from './ResultTypeViewer.js';
|
22
|
-
|
23
|
-
|
22
|
+
import { useState } from 'react';
|
23
|
+
export const SequenceExecutionNodeViewerHelper = observer((props) => {
|
24
|
+
const { node, executionPlanState, viewJson } = props;
|
24
25
|
const resultType = node.resultType;
|
25
|
-
const
|
26
|
+
const [executionNode, setExecutionNode] = useState(undefined);
|
27
|
+
const nodeExpandIcon = viewJson ? (_jsx("div", {})) : executionNode ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}));
|
26
28
|
const openExecutionNode = (child) => {
|
27
29
|
const newNode = executionPlanState.treeData?.nodes.get(child._UUID);
|
28
|
-
if (
|
29
|
-
|
30
|
+
if (viewJson === false) {
|
31
|
+
if (executionNode) {
|
32
|
+
setExecutionNode(undefined);
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
setExecutionNode(child);
|
36
|
+
}
|
30
37
|
}
|
31
|
-
else
|
32
|
-
|
38
|
+
else {
|
39
|
+
if (newNode instanceof ExecutionPlanViewTreeNodeData) {
|
40
|
+
executionPlanState.transformMetadataToProtocolJson(newNode.executionPlan);
|
41
|
+
}
|
42
|
+
else if (newNode instanceof ExecutionNodeTreeNodeData) {
|
43
|
+
executionPlanState.transformMetadataToProtocolJson(newNode.executionNode);
|
44
|
+
}
|
45
|
+
if (newNode) {
|
46
|
+
executionPlanState.setSelectedNode(newNode);
|
47
|
+
}
|
33
48
|
}
|
34
|
-
executionPlanState.setSelectedNode(newNode);
|
35
49
|
};
|
36
|
-
return (_jsxs(
|
50
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-builder__sequence__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__sequence__container__item__label", children: "Execution Nodes" }), _jsx(PanelDivider, {}), node.executionNodes.map((child, index) => (_jsx("div", { className: "query-builder__sequence__container__item", children: _jsxs("button", { className: "query-builder__sequence__container__item__btn", onClick: () => openExecutionNode(child), tabIndex: -1, title: `Go to ${generateExecutionNodeLabel(child)}`, children: [!viewJson && nodeExpandIcon, `${index + 1}: ${generateExecutionNodeLabel(child)}`] }) }, child._UUID)))] }) }), _jsx(PanelDivider, {}), _jsx(ResultTypeViewer, { resultType: resultType }), viewJson === false && executionNode && (_jsx(ExecutionNodeViewer, { executionNode: executionNode, executionPlanState: executionPlanState, viewJson: false }))] }));
|
51
|
+
});
|
52
|
+
export const SequenceExecutionNodeViewer = observer((props) => {
|
53
|
+
const { node, executionPlanState, viewJson } = props;
|
54
|
+
const applicationStore = executionPlanState.applicationStore;
|
55
|
+
if (viewJson === false) {
|
56
|
+
return (_jsx(SequenceExecutionNodeViewerHelper, { node: node, executionPlanState: executionPlanState, viewJson: viewJson }));
|
57
|
+
}
|
58
|
+
return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsx(SequenceExecutionNodeViewerHelper, { node: node, executionPlanState: executionPlanState, viewJson: viewJson }), _jsx("div", { className: "query-builder__execution__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, {})] }));
|
37
59
|
});
|
38
60
|
//# sourceMappingURL=SequenceExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SequenceExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,
|
1
|
+
{"version":3,"file":"SequenceExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,wBAAwB,EACxB,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,eAAe,EACf,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,iCAAiC,GAIzC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACnC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAChD,SAAS,CACV,CAAC;IACF,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,CAChC,eAAO,CACR,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAClB,KAAC,eAAe,KAAG,CACpB,CAAC,CAAC,CAAC,CACF,KAAC,gBAAgB,KAAG,CACrB,CAAC;IACF,MAAM,iBAAiB,GAAG,CAAC,KAAoB,EAAQ,EAAE;QACvD,MAAM,OAAO,GAAG,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACpE,IA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AAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAInC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,IAAI,QAAQ,KAAK,KAAK,EAAE;QACtB,OAAO,CACL,KAAC,iCAAiC,IAChC,IAAI,EAAE,IAAI,EACV,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;KACH;IACD,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,KAAC,iCAAiC,IAChC,IAAI,EAAE,IAAI,EACV,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,QAAQ,GAClB,EACF,cAAK,SAAS,EAAC,qCAAqC,YAClD,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"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
17
|
+
import { type ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
18
|
+
import { type StoreMappingGlobalGraphFetchExecutionNode } from '@finos/legend-graph';
|
19
|
+
export declare const StoreMappingGlobalGraphFetchExecutionNodeViewer: React.FC<{
|
20
|
+
storeMappingNode: StoreMappingGlobalGraphFetchExecutionNode;
|
21
|
+
executionPlanState: ExecutionPlanState;
|
22
|
+
}>;
|
23
|
+
//# sourceMappingURL=StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map
|