@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":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"
|
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,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAKpC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAC3D,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,M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gB,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"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/SequenceExecutionNodeViewer.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
|
*
|
@@ -25,7 +24,7 @@ export const SequenceExecutionNodeViewerHelper = observer((props) => {
|
|
25
24
|
const { node, executionPlanState, viewJson } = props;
|
26
25
|
const resultType = node.resultType;
|
27
26
|
const [executionNode, setExecutionNode] = useState(undefined);
|
28
|
-
const nodeExpandIcon = viewJson ? (
|
27
|
+
const nodeExpandIcon = viewJson ? (_jsx("div", {})) : executionNode ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}));
|
29
28
|
const openExecutionNode = (child) => {
|
30
29
|
const newNode = executionPlanState.treeData?.nodes.get(child._UUID);
|
31
30
|
if (viewJson === false) {
|
@@ -48,14 +47,14 @@ export const SequenceExecutionNodeViewerHelper = observer((props) => {
|
|
48
47
|
}
|
49
48
|
}
|
50
49
|
};
|
51
|
-
return (
|
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 }))] }));
|
52
51
|
});
|
53
52
|
export const SequenceExecutionNodeViewer = observer((props) => {
|
54
53
|
const { node, executionPlanState, viewJson } = props;
|
55
54
|
const applicationStore = executionPlanState.applicationStore;
|
56
55
|
if (viewJson === false) {
|
57
|
-
return (
|
56
|
+
return (_jsx(SequenceExecutionNodeViewerHelper, { node: node, executionPlanState: executionPlanState, viewJson: viewJson }));
|
58
57
|
}
|
59
|
-
return (
|
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, {})] }));
|
60
59
|
});
|
61
60
|
//# sourceMappingURL=SequenceExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SequenceExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SequenceExecutionNodeViewer.tsx"],"names":[],"mappings":"
|
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,IAAI,QAAQ,KAAK,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,KAAK,KAAK,IAAI,aAAa,IAAI,CACtC,KAAC,mBAAmB,IAClB,aAAa,EAAE,aAAa,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,CAAC;QACvB,OAAO,CACL,KAAC,iCAAiC,IAChC,IAAI,EAAE,IAAI,EACV,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;IACJ,CAAC;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"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.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
|
*
|
@@ -47,12 +46,12 @@ export const StoreMappingGlobalGraphFetchExecutionNodeViewer = observer((props)
|
|
47
46
|
.filter(isNonNullable);
|
48
47
|
const isReadOnly = true;
|
49
48
|
const applicationStore = executionPlanState.applicationStore;
|
50
|
-
return (
|
49
|
+
return (_jsx(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: _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: "Store Mapping Global 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: [storeMappingNode.parentIndex !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " ParentIndex" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.parentIndex })] })), storeMappingNode.enableConstraints !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "EnableConstraints" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.enableConstraints.toString() })] })), storeMappingNode.checked !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Checked" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.checked.toString() })] })), storeMappingNode.authDependent !== undefined && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "AuthDependent" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.authDependent.toString() })] })), storeMappingNode.store && (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "Store" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.store })] })), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "LocalTreeIndices" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.localTreeIndices.toString()}]` })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "DependencyIndices" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.dependencyIndices.toString()}]` })] })] })] }), _jsx(PanelDivider, {}), treeData && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__label2", children: "Graph Fetch Tree" }), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__config-group__content", children: _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__config-group__item", children: _jsx(TreeView, { components: {
|
51
50
|
TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
|
52
51
|
}, className: "query-builder-graph-fetch-tree__container__tree", treeData: treeData, getChildNodes: getChildNodes, innerProps: {
|
53
52
|
isReadOnly,
|
54
|
-
} }
|
55
|
-
.sourceMappingId }
|
56
|
-
.targetMappingId }
|
53
|
+
} }) }) }), _jsx(PanelDivider, {})] })), storeMappingNode.xStorePropertyFetchDetails && (_jsxs(_Fragment, { children: [_jsx(PanelListItem, { className: "query-builder__store-mapping-global-graph-fetch__container__xstore", children: "xStorePropertyFetchDetails" }), _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: " propertyPath " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.propertyPath })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " sourceMappingId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails
|
54
|
+
.sourceMappingId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " sourceSetId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.sourceSetId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " subTree " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.subTree })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " supportsCaching " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.supportsCaching.toString() })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " targetMappingId " }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails
|
55
|
+
.targetMappingId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: " targetSetId" }), _jsx("td", { className: "table__cell--left", children: storeMappingNode.xStorePropertyFetchDetails.targetSetId })] }), _jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: "targetPropertiesOrdered" }), _jsx("td", { className: "table__cell--left", children: `[${storeMappingNode.xStorePropertyFetchDetails.targetPropertiesOrdered.toString()}]` })] })] })] })] })), storeMappingNode.resultType instanceof PartialClassResultType && (_jsx(PartialClassResultTypeViewer, { resultType: storeMappingNode.resultType })), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__store-mapping-global-graph-fetch__container__btn", 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, {})] }) }));
|
57
56
|
});
|
58
57
|
//# sourceMappingURL=StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map
|
package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StoreMappingGlobalGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"StoreMappingGlobalGraphFetchExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,+BAA+B,GAGhC,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,uCAAuC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,MAAM,CAAC,MAAM,+CAA+C,GAGvD,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEvD,IAAI,QAAQ,GAA+C,SAAS,CAAC;IACrE,IAAI,CAAC;QACH,IAAI,gBAAgB,CAAC,cAAc,YAAY,kBAAkB,EAAE,CAAC;YAClE,QAAQ,GAAG,uBAAuB,CAChC,aAAa,CAAC,gBAAgB,CAAC,cAAc,EAAE,kBAAkB,CAAC,EAClE,IAAI,CACL,CAAC;QACJ,CAAC;aAAM,IACL,gBAAgB,CAAC,cAAc,YAAY,sBAAsB,EACjE,CAAC;YACD,QAAQ,GAAG,+BAA+B,CACxC,gBAAgB,CAAC,cAAc,CAChC,CAAC;QAC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C,0BAA0B,CAAC,uBAAuB,CAAC,QAAQ,EAAE,GAAG,GAAM,IAC3H,IACC,IACF,IACP,CACJ,EACA,gBAAgB,CAAC,UAAU,YAAY,sBAAsB,IAAI,CAChE,KAAC,4BAA4B,IAC3B,UAAU,EAAE,gBAAgB,CAAC,UAAU,GACvC,CACH,EACD,KAAC,YAAY,KAAG,EAChB,cAAK,SAAS,EAAC,iEAAiE,YAC9E,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,IACZ,GACO,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/TDSResultTypeViewer.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
|
*
|
@@ -20,7 +19,7 @@ import { PanelListItem, PanelDivider } from '@finos/legend-art';
|
|
20
19
|
import { PackageableElementImplicitReference, } from '@finos/legend-graph';
|
21
20
|
export const TDSResultTypeViewer = observer((props) => {
|
22
21
|
const { resultType } = props;
|
23
|
-
return (
|
24
|
-
(column.type.input ?? '') }
|
22
|
+
return (_jsxs("div", { className: "query-builder__result__container", children: [_jsx(PanelListItem, { className: "query-builder__result__container__item__tds", children: "Result type: TDS" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__result__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Label" }), _jsx("th", { className: "table__cell--left", children: "Result DataType" })] }) }), _jsx("tbody", { children: resultType.tdsColumns.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.name }), _jsx("td", { className: "table__cell--left", children: column.type instanceof PackageableElementImplicitReference &&
|
23
|
+
(column.type.input ?? '') })] }, column.name))) })] }), _jsx(PanelDivider, {})] }));
|
25
24
|
});
|
26
25
|
//# sourceMappingURL=TDSResultTypeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TDSResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TDSResultTypeViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TDSResultTypeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TDSResultTypeViewer.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,mBAAmB,GAE3B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,OAAO,CACL,eAAK,SAAS,EAAC,kCAAkC,aAC/C,KAAC,aAAa,IAAC,SAAS,EAAC,6CAA6C,iCAEtD,EAChB,KAAC,YAAY,KAAG,EAEd,iBAAO,SAAS,EAAC,+CAA+C,aAC9D,0BACE,yBACE,aAAI,SAAS,EAAC,mBAAmB,sBAAW,EAC5C,aAAI,SAAS,EAAC,mBAAmB,gCAAqB,IACnD,GACC,EACR,0BACG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrC,yBACE,aAAI,SAAS,EAAC,mBAAmB,YAAE,MAAM,CAAC,IAAI,GAAM,EACpD,aAAI,SAAS,EAAC,mBAAmB,YAC9B,MAAM,CAAC,IAAI,YAAY,mCAAmC;wCACzD,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,GACxB,KALE,MAAM,CAAC,IAAI,CAMf,CACN,CAAC,GACI,IACF,EAEV,KAAC,YAAY,KAAG,IACZ,CACP,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/TempTableStrategyViewer.tsx";
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -38,6 +37,6 @@ export const TempTableStrategyViewer = observer((props) => {
|
|
38
37
|
if (tempTableStrategy instanceof LoadFromSubQueryTempTableStrategy) {
|
39
38
|
_type = TEMP_TABLE_STRATEGY_TYPES.SUB_QUERY;
|
40
39
|
}
|
41
|
-
return (
|
40
|
+
return (_jsxs("div", { className: "query-builder__temp-table-strategy__container", children: [_type && (_jsxs(PanelListItem, { className: "query-builder__temp-table-strategy__container__item", children: ["Type: ", _type] })), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Create Temp Table (${generateExecutionNodeLabel(tempTableStrategy.createTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.createTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {}), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Load Temp Table (${generateExecutionNodeLabel(tempTableStrategy.loadTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.loadTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {}), _jsx(PanelListItem, { className: "query-builder__temp-table-strategy__container__header", children: `Drop Temp Table (${generateExecutionNodeLabel(tempTableStrategy.dropTempTableNode)})` }), _jsx(ExecutionNodeViewer, { executionNode: tempTableStrategy.dropTempTableNode, executionPlanState: executionPlanState, viewJson: false }), _jsx(PanelDivider, {})] }));
|
42
41
|
});
|
43
42
|
//# sourceMappingURL=TempTableStrategyViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TempTableStrategyViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TempTableStrategyViewer.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TempTableStrategyViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/TempTableStrategyViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,+CAA+C,EAC/C,iCAAiC,EACjC,iCAAiC,GAElC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAA2B,MAAM,mDAAmD,CAAC;AAE5F,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,qDAAwB,CAAA;IACxB,mDAAsB,CAAA;IACtB,mDAAsB,CAAA;AACxB,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAG/B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACxD,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IACE,iBAAiB,YAAY,+CAA+C,EAC5E,CAAC;QACD,KAAK,GAAG,yBAAyB,CAAC,UAAU,CAAC;IAC/C,CAAC;SAAM,IAAI,iBAAiB,YAAY,iCAAiC,EAAE,CAAC;QAC1E,KAAK,GAAG,yBAAyB,CAAC,SAAS,CAAC;IAC9C,CAAC;IACD,IAAI,iBAAiB,YAAY,iCAAiC,EAAE,CAAC;QACnE,KAAK,GAAG,yBAAyB,CAAC,SAAS,CAAC;IAC9C,CAAC;IACD,OAAO,CACL,eAAK,SAAS,EAAC,+CAA+C,aAC3D,KAAK,IAAI,CACR,MAAC,aAAa,IAAC,SAAS,EAAC,qDAAqD,uBACrE,KAAK,IACE,CACjB,EACD,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,sBAAsB,0BAA0B,CAC/C,iBAAiB,CAAC,mBAAmB,CACtC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,mBAAmB,EACpD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,EAEhB,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,oBAAoB,0BAA0B,CAC7C,iBAAiB,CAAC,iBAAiB,CACpC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,EAClD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,EAEhB,KAAC,aAAa,IAAC,SAAS,EAAC,uDAAuD,YAC7E,oBAAoB,0BAA0B,CAC7C,iBAAiB,CAAC,iBAAiB,CACpC,GAAG,GACU,EAChB,KAAC,mBAAmB,IAClB,aAAa,EAAE,iBAAiB,CAAC,iBAAiB,EAClD,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,KAAK,GACf,EACF,KAAC,YAAY,KAAG,IACZ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -30,7 +30,7 @@ export declare const QueryBuilderSubclassInfoTooltip: React.FC<{
|
|
30
30
|
export declare const renderPropertyTypeIcon: (type: Type) => React.ReactNode;
|
31
31
|
export declare const QueryBuilderExplorerPanel: ((props: {
|
32
32
|
queryBuilderState: QueryBuilderState;
|
33
|
-
}) => import("react/jsx-
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
34
34
|
displayName: string;
|
35
35
|
};
|
36
36
|
//# sourceMappingURL=QueryBuilderExplorerPanel.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/explorer/QueryBuilderExplorerPanel.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
|
*
|
@@ -68,7 +67,7 @@ export const isExplorerTreeNodeAlreadyUsed = (node, queryBuilderState) => {
|
|
68
67
|
};
|
69
68
|
export const QueryBuilderSubclassInfoTooltip = (props) => {
|
70
69
|
const { subclass, path, isMapped, children, placement, multiplicity } = props;
|
71
|
-
return (
|
70
|
+
return (_jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
72
71
|
tooltip: 'query-builder__tooltip',
|
73
72
|
arrow: 'query-builder__tooltip__arrow',
|
74
73
|
tooltipPlacementRight: 'query-builder__tooltip--right',
|
@@ -77,25 +76,25 @@ export const QueryBuilderSubclassInfoTooltip = (props) => {
|
|
77
76
|
// NOTE: somehow, this is the only workaround we have, if for example
|
78
77
|
// we set `appear = true`, the tooltip will jump out of position
|
79
78
|
timeout: 0,
|
80
|
-
}, title:
|
79
|
+
}, title: _jsxs("div", { className: "query-builder__tooltip__content", children: [_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Type" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: subclass.path })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Path" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: path })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Multiplicity" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: getMultiplicityDescription(multiplicity) })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Mapped" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: isMapped ? 'Yes' : 'No' })] }), _jsx(QueryBuilderTaggedValueInfoTooltip, { taggedValues: subclass.taggedValues })] }), children: children }));
|
81
80
|
};
|
82
81
|
const QueryBuilderExplorerPreviewDataModal = observer((props) => {
|
83
82
|
const { queryBuilderState } = props;
|
84
83
|
const applicationStore = queryBuilderState.applicationStore;
|
85
84
|
const previewDataState = queryBuilderState.explorerState.previewDataState;
|
86
85
|
const close = () => previewDataState.setPreviewData(undefined);
|
87
|
-
return (
|
86
|
+
return (_jsx(Dialog, { open: Boolean(previewDataState.previewData) ||
|
88
87
|
previewDataState.isGeneratingPreviewData, onClose: close, classes: {
|
89
88
|
root: 'editor-modal__root-container',
|
90
89
|
container: 'editor-modal__container',
|
91
90
|
paper: 'editor-modal__content',
|
92
|
-
}, children:
|
91
|
+
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal query-builder__explorer__preview-data-modal", children: [_jsx(ModalHeader, { title: prettyCONSTName(previewDataState.propertyName) }), _jsx(PanelLoadingIndicator, { isLoading: previewDataState.isGeneratingPreviewData }), _jsxs(ModalBody, { className: "query-builder__explorer__preview-data-modal__body", children: [previewDataState.isGeneratingPreviewData && (_jsx("div", { className: "query-builder__explorer__preview-data-modal__placeholder", children: "Loading preview data..." })), previewDataState.previewData && (_jsxs("table", { className: "table", children: [_jsx("thead", { children: _jsx("tr", { children: previewDataState.previewData.columns.map((column, idx) => (
|
93
92
|
// eslint-disable-next-line react/no-array-index-key
|
94
|
-
|
93
|
+
_jsx("th", { className: "table__cell--left", children: column }, idx))) }) }), _jsx("tbody", { children: previewDataState.previewData.rows.map((row, rowIdx) => (
|
95
94
|
// eslint-disable-next-line react/no-array-index-key
|
96
|
-
|
95
|
+
_jsx("tr", { children: row.values.map((value, idx) => (
|
97
96
|
// eslint-disable-next-line react/no-array-index-key
|
98
|
-
|
97
|
+
_jsx("td", { className: "table__cell--left", children: value }, idx))) }, rowIdx))) })] }))] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Close", onClick: close, type: "secondary" }) })] }) }));
|
99
98
|
});
|
100
99
|
const QueryBuilderExplorerContextMenu = observer(forwardRef(function QueryBuilderExplorerContextMenu(props, ref) {
|
101
100
|
const { queryBuilderState, openNode, node } = props;
|
@@ -129,27 +128,27 @@ const QueryBuilderExplorerContextMenu = observer(forwardRef(function QueryBuilde
|
|
129
128
|
nodesToAdd.forEach((nodeToAdd) => queryBuilderState.fetchStructureState.fetchProperty(nodeToAdd));
|
130
129
|
}
|
131
130
|
};
|
132
|
-
return (
|
133
|
-
!(node.type instanceof Class) && (
|
131
|
+
return (_jsxs(MenuContent, { ref: ref, children: [node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
132
|
+
!(node.type instanceof Class) && (_jsx(MenuContentItem, { onClick: addNodeToFetchStructure, children: "Add Property to Fetch Structure" })), node.type instanceof Class && (_jsx(MenuContentItem, { onClick: addNodeChildrenToFetchStructure, children: "Add Properties to Fetch Structure" }))] }));
|
134
133
|
}));
|
135
134
|
export const renderPropertyTypeIcon = (type) => {
|
136
135
|
if (type instanceof PrimitiveType) {
|
137
136
|
if (type.name === PRIMITIVE_TYPE.STRING) {
|
138
|
-
return (
|
137
|
+
return (_jsx(StringTypeIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__string" }));
|
139
138
|
}
|
140
139
|
else if (type.name === PRIMITIVE_TYPE.BOOLEAN) {
|
141
|
-
return (
|
140
|
+
return (_jsx(ToggleIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__boolean" }));
|
142
141
|
}
|
143
142
|
else if (type.name === PRIMITIVE_TYPE.NUMBER ||
|
144
143
|
type.name === PRIMITIVE_TYPE.INTEGER ||
|
145
144
|
type.name === PRIMITIVE_TYPE.FLOAT ||
|
146
145
|
type.name === PRIMITIVE_TYPE.DECIMAL) {
|
147
|
-
return (
|
146
|
+
return (_jsx(HashtagIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__number" }));
|
148
147
|
}
|
149
148
|
else if (type.name === PRIMITIVE_TYPE.DATE ||
|
150
149
|
type.name === PRIMITIVE_TYPE.DATETIME ||
|
151
150
|
type.name === PRIMITIVE_TYPE.STRICTDATE) {
|
152
|
-
return (
|
151
|
+
return (_jsx(ClockIcon, { className: "query-builder-explorer-tree__icon query-builder-explorer-tree__icon__time" }));
|
153
152
|
}
|
154
153
|
}
|
155
154
|
return getClassPropertyIcon(type);
|
@@ -186,7 +185,7 @@ const QueryBuilderExplorerTreeNodeContainer = observer((props) => {
|
|
186
185
|
node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
187
186
|
node.type instanceof PrimitiveType &&
|
188
187
|
!node.isPartOfDerivedPropertyBranch;
|
189
|
-
const nodeExpandIcon = isExpandable ? (node.isOpen ? (
|
188
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
|
190
189
|
const propertyName = explorerState.humanizePropertyName
|
191
190
|
? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
192
191
|
? TYPE_CAST_TOKEN + prettyCONSTName(node.label)
|
@@ -214,8 +213,8 @@ const QueryBuilderExplorerTreeNodeContainer = observer((props) => {
|
|
214
213
|
!explorerState.showUnmappedProperties) {
|
215
214
|
return null;
|
216
215
|
}
|
217
|
-
return (
|
218
|
-
node instanceof QueryBuilderExplorerTreeRootNodeData) || applicationStore.layoutService.showBackdrop, menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children:
|
216
|
+
return (_jsx(ContextMenu, { content: _jsx(QueryBuilderExplorerContextMenu, { queryBuilderState: queryBuilderState, openNode: openNode, node: node }), disabled: !(node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
217
|
+
node instanceof QueryBuilderExplorerTreeRootNodeData) || applicationStore.layoutService.showBackdrop, menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("div", { className: clsx('tree-view__node__container query-builder-explorer-tree__node__container', {
|
219
218
|
'query-builder-explorer-tree__node__container--selected-from-context-menu': isSelectedFromContextMenu,
|
220
219
|
'query-builder-explorer-tree__node__container--unmapped': !node.mappingData.mapped,
|
221
220
|
'query-builder-explorer-tree__node__container--selected': node.isSelected,
|
@@ -228,15 +227,15 @@ const QueryBuilderExplorerTreeNodeContainer = observer((props) => {
|
|
228
227
|
: undefined, onClick: selectNode, ref: node.mappingData.mapped && !isExpandable ? dragConnector : undefined, style: {
|
229
228
|
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1) + 0.5}rem`,
|
230
229
|
display: 'flex',
|
231
|
-
}, children: [node instanceof QueryBuilderExplorerTreeRootNodeData && (
|
232
|
-
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) && (
|
230
|
+
}, children: [node instanceof QueryBuilderExplorerTreeRootNodeData && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "tree-view__node__icon query-builder-explorer-tree__node__icon", children: [_jsx("div", { className: "query-builder-explorer-tree__expand-icon", children: nodeExpandIcon }), _jsx("div", { className: "query-builder-explorer-tree__type-icon", children: _jsx(PURE_ClassIcon, {}) })] }), _jsx("div", { className: "tree-view__node__label query-builder-explorer-tree__node__label query-builder-explorer-tree__node__label--with-action", children: node.label }), _jsx("div", { className: "query-builder-explorer-tree__node__actions", children: _jsx(QueryBuilderRootClassInfoTooltip, { _class: guaranteeNonNullable(queryBuilderState.class), children: _jsx("div", { className: "query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TOOLTIP_ICON, children: _jsx(InfoCircleIcon, {}) }) }) })] })), (node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
231
|
+
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "tree-view__node__icon query-builder-explorer-tree__node__icon", ref: node.elementRef, children: [_jsx("div", { className: "query-builder-explorer-tree__expand-icon", children: nodeExpandIcon }), _jsx("div", { className: "query-builder-explorer-tree__type-icon", children: renderPropertyTypeIcon(node.type) })] }), _jsxs("div", { className: clsx('tree-view__node__label query-builder-explorer-tree__node__label query-builder-explorer-tree__node__label--with-action', {
|
233
232
|
'query-builder-explorer-tree__node__label--with-preview': allowPreview,
|
234
233
|
}, {
|
235
234
|
'query-builder-explorer-tree__node__label--highlight': node.isHighlighting,
|
236
|
-
}), onAnimationEnd: () => node.setIsHighlighting(false), children: [
|
235
|
+
}), onAnimationEnd: () => node.setIsHighlighting(false), children: [_jsx("div", { className: clsx('query-builder-explorer-tree__node__label--property__name', {
|
237
236
|
'query-builder-explorer-tree__node__label--deprecated': checkForDeprecatedNode(node, explorerState.queryBuilderState.graphManagerState
|
238
237
|
.graph, explorerState.nonNullableTreeData),
|
239
|
-
}), children: propertyName }
|
238
|
+
}), children: propertyName }), isDerivedProperty && (_jsx("div", { className: "query-builder-explorer-tree__node__label__derived-property", title: "Property is derived and may require user to specify parameter values", children: "(...)" })), isMultiple && (_jsx("div", { className: "query-builder-explorer-tree__node__label__multiple", title: "Multiple values of this property can cause row explosion", children: "*" }))] }), _jsxs("div", { className: "query-builder-explorer-tree__node__actions", children: [allowPreview && (_jsx("button", { className: "query-builder-explorer-tree__node__action", disabled: explorerState.previewDataState.isGeneratingPreviewData, tabIndex: -1, title: "Preview Data", onClick: previewData, children: _jsx(EyeIcon, {}) })), node instanceof QueryBuilderExplorerTreePropertyNodeData && (_jsx(QueryBuilderPropertyInfoTooltip, { title: propertyName, property: node.property, path: node.id, isMapped: node.mappingData.mapped, type: node.type, children: _jsx("div", { className: "query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TOOLTIP_ICON, children: _jsx(InfoCircleIcon, {}) }) })), node instanceof QueryBuilderExplorerTreeSubTypeNodeData && (_jsx(QueryBuilderSubclassInfoTooltip, { subclass: node.subclass, path: node.id, isMapped: node.mappingData.mapped, multiplicity: node.multiplicity, children: _jsx("div", { className: "query-builder-explorer-tree__node__action query-builder-explorer-tree__node__info", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TOOLTIP_ICON, children: _jsx(InfoCircleIcon, {}) }) }))] })] }))] }) }));
|
240
239
|
});
|
241
240
|
const QueryBuilderExplorerTreeNodeView = observer((props) => {
|
242
241
|
const { node, level, onNodeSelect, getChildNodes, stepPaddingInRem, innerProps, } = props;
|
@@ -247,8 +246,8 @@ const QueryBuilderExplorerTreeNodeView = observer((props) => {
|
|
247
246
|
!queryBuilderState.explorerState.showUnmappedProperties) {
|
248
247
|
return null;
|
249
248
|
}
|
250
|
-
return (
|
251
|
-
getChildNodes(node).map((childNode) => (
|
249
|
+
return (_jsxs("div", { className: "tree-view__node__block", children: [_jsx(QueryBuilderExplorerTreeNodeContainer, { node: node, level: level + 1, stepPaddingInRem: stepPaddingInRem, onNodeSelect: onNodeSelect, innerProps: innerProps }), node.isOpen &&
|
250
|
+
getChildNodes(node).map((childNode) => (_jsx(QueryBuilderExplorerTreeNodeView, { node: childNode, level: level + 1, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: innerProps }, childNode.id)))] }));
|
252
251
|
});
|
253
252
|
/**
|
254
253
|
* Sort order for Query Builder tree nodes will be ranked by return type as followed:
|
@@ -307,12 +306,12 @@ const QueryBuilderExplorerTree = observer((props) => {
|
|
307
306
|
.sort((a, b) => a.label.localeCompare(b.label))
|
308
307
|
.sort((a, b) => getQueryBuilderExplorerTreeNodeSortRank(b) -
|
309
308
|
getQueryBuilderExplorerTreeNodeSortRank(a));
|
310
|
-
return (
|
309
|
+
return (_jsx(TreeView, { components: {
|
311
310
|
TreeNodeContainer: QueryBuilderExplorerTreeNodeContainer,
|
312
311
|
TreeNodeView: QueryBuilderExplorerTreeNodeView,
|
313
312
|
}, className: "query-builder-explorer-tree__root", treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
|
314
313
|
queryBuilderState,
|
315
|
-
} }
|
314
|
+
} }));
|
316
315
|
});
|
317
316
|
export const QueryBuilderExplorerPanel = observer((props) => {
|
318
317
|
const { queryBuilderState } = props;
|
@@ -352,16 +351,16 @@ export const QueryBuilderExplorerPanel = observer((props) => {
|
|
352
351
|
explorerState,
|
353
352
|
queryBuilderState.executionContextState.mapping,
|
354
353
|
]);
|
355
|
-
return (
|
354
|
+
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_EXPLORER, className: clsx('panel query-builder__explorer', {
|
356
355
|
backdrop__element: applicationStore.layoutService.showBackdrop,
|
357
|
-
}), children: [
|
356
|
+
}), children: [_jsxs(PanelHeader, { title: "explorer", children: [_jsxs(PanelHeaderActions, { children: [_jsx("button", { ref: searchButtonRef, className: clsx('panel__header__action', {
|
358
357
|
'query-builder__explorer__header__action--active': propertySearchPanelState.isSearchPanelOpen,
|
359
|
-
}), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children:
|
358
|
+
}), onClick: togglePropertySearch, tabIndex: -1, title: "Toggle property search", children: _jsx(SearchIcon, {}) }), _jsx(PanelHeaderActionItem, { onClick: collapseTree, title: "Collapse Tree", children: _jsx(CompressIcon, {}) }), _jsx(DropdownMenu, { className: "panel__header__action", title: "Show Options Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowUnmappedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.showUnmappedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Unmapped Properties" })] }), _jsxs(MenuContentItem, { onClick: toggleHumanizePropertyName, children: [_jsx(MenuContentItemIcon, { children: explorerState.humanizePropertyName ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Humanize Property Name" })] }), _jsxs(MenuContentItem, { onClick: toggleHighlightUsedProperties, children: [_jsx(MenuContentItemIcon, { children: explorerState.highlightUsedProperties ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Highlight already used properties" })] })] }), menuProps: {
|
360
359
|
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
361
360
|
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
362
361
|
elevation: 7,
|
363
|
-
}, children:
|
362
|
+
}, children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) })] }), propertySearchPanelState.isSearchPanelOpen && (_jsx(QueryBuilderPropertySearchPanel, { queryBuilderState: queryBuilderState, triggerElement: searchButtonRef.current }))] }), _jsxs("div", { className: "panel__content query-builder-explorer-tree__content", children: [_jsx(PanelLoadingIndicator, { isLoading: explorerState.mappingModelCoverageAnalysisState.isInProgress }), _jsx(DragPreviewLayer, { labelGetter: (item) => explorerState.humanizePropertyName
|
364
363
|
? prettyCONSTName(item.node.label)
|
365
|
-
: item.node.label, types: Object.values(QUERY_BUILDER_EXPLORER_TREE_DND_TYPE) }
|
364
|
+
: item.node.label, types: Object.values(QUERY_BUILDER_EXPLORER_TREE_DND_TYPE) }), explorerState.mappingModelCoverageAnalysisState.isInProgress ? (_jsx(BlankPanelContent, { children: explorerState.mappingModelCoverageAnalysisState.message })) : (_jsxs(_Fragment, { children: [!explorerState.treeData && (_jsx(BlankPanelContent, { children: "Specify the class, mapping, and runtime to start building query" })), explorerState.treeData && (_jsx(QueryBuilderExplorerTree, { queryBuilderState: queryBuilderState }))] })), _jsx(QueryBuilderExplorerPreviewDataModal, { queryBuilderState: queryBuilderState })] })] }));
|
366
365
|
});
|
367
366
|
//# sourceMappingURL=QueryBuilderExplorerPanel.js.map
|