@finos/legend-query-builder 4.14.51 → 4.14.53
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +1 -0
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +1 -1
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts +0 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/ServiceQuerySetupUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -2
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +0 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +1 -1
- package/lib/components/execution-plan/ImplementationViewer.d.ts +0 -1
- package/lib/components/execution-plan/ImplementationViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts +0 -1
- package/lib/components/execution-plan/PartialClassResultViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.js +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/ResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts +0 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +2 -2
- package/lib/components/execution-plan/TDSResultTypeViewer.d.ts +0 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.js +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts +0 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +2 -0
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +14 -7
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +36 -11
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +5 -2
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +9 -4
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +10 -8
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +0 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +2 -2
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +19 -4
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +97 -36
- package/lib/components/shared/BasicValueSpecificationEditor.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 +8 -5
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts +0 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +3 -0
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +3 -3
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +1 -0
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +1 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -2
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +68 -8
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +7 -7
- package/lib/stores/QueryBuilderState.d.ts +0 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +1 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +5 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +1 -2
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
- package/lib/stores/execution-plan/ExecutionPlanState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +11 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +76 -20
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +70 -34
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +7 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +2 -2
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +15 -4
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +5 -2
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +20 -9
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -1
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/components/QueryBuilder.tsx +1 -0
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
- package/src/components/QueryBuilderParametersPanel.tsx +1 -1
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -1
- package/src/components/QueryBuilderSideBar.tsx +1 -1
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -1
- package/src/components/execution-plan/FunctionParametersValidationNodeViewer.tsx +1 -1
- package/src/components/execution-plan/PartialClassResultViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
- package/src/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.tsx +2 -2
- package/src/components/execution-plan/TDSResultTypeViewer.tsx +1 -1
- package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +60 -22
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +156 -60
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +12 -2
- package/src/components/filter/QueryBuilderFilterPanel.tsx +18 -4
- package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +12 -13
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +1 -1
- package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +2 -2
- package/src/components/shared/BasicValueSpecificationEditor.tsx +257 -55
- package/src/components/shared/CustomDatePicker.tsx +36 -11
- package/src/components/shared/LambdaParameterValuesEditor.tsx +1 -1
- package/src/components/shared/QueryBuilderVariableSelector.tsx +13 -4
- package/src/graph/QueryBuilderMetaModelConst.ts +1 -0
- package/src/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +189 -18
- package/src/index.ts +1 -0
- package/src/stores/QueryBuilderState.ts +1 -0
- package/src/stores/QueryBuilderStateBuilder.ts +6 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +1 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +167 -43
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +145 -69
- package/src/stores/filter/QueryBuilderFilterState.ts +8 -0
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +22 -9
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +47 -7
- package/tsconfig.package.json +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.53",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,39 +42,39 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.1.
|
46
|
-
"@finos/legend-art": "7.1.
|
47
|
-
"@finos/legend-graph": "31.10.
|
48
|
-
"@finos/legend-lego": "1.2.
|
49
|
-
"@finos/legend-server-depot": "6.0.
|
50
|
-
"@finos/legend-shared": "10.0.
|
51
|
-
"@finos/legend-storage": "3.0.
|
52
|
-
"@testing-library/dom": "10.
|
45
|
+
"@finos/legend-application": "15.1.11",
|
46
|
+
"@finos/legend-art": "7.1.39",
|
47
|
+
"@finos/legend-graph": "31.10.6",
|
48
|
+
"@finos/legend-lego": "1.2.42",
|
49
|
+
"@finos/legend-server-depot": "6.0.46",
|
50
|
+
"@finos/legend-shared": "10.0.41",
|
51
|
+
"@finos/legend-storage": "3.0.91",
|
52
|
+
"@testing-library/dom": "10.2.0",
|
53
53
|
"@testing-library/react": "16.0.0",
|
54
54
|
"@types/react": "18.3.3",
|
55
55
|
"@types/react-dom": "18.3.0",
|
56
56
|
"chart.js": "4.4.3",
|
57
57
|
"mathjs": "13.0.0",
|
58
|
-
"mobx": "6.12.
|
58
|
+
"mobx": "6.12.4",
|
59
59
|
"mobx-react-lite": "4.0.7",
|
60
|
-
"monaco-editor": "0.
|
60
|
+
"monaco-editor": "0.50.0",
|
61
61
|
"react": "18.3.1",
|
62
62
|
"react-chartjs-2": "5.2.0",
|
63
63
|
"react-dnd": "16.0.1",
|
64
64
|
"react-dom": "18.3.1",
|
65
65
|
"serializr": "3.0.2",
|
66
|
-
"sql-formatter": "15.3.
|
66
|
+
"sql-formatter": "15.3.2"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
|
-
"@finos/legend-dev-utils": "2.1.
|
69
|
+
"@finos/legend-dev-utils": "2.1.9",
|
70
70
|
"@jest/globals": "29.7.0",
|
71
71
|
"cross-env": "7.0.3",
|
72
72
|
"eslint": "8.57.0",
|
73
73
|
"jest": "29.7.0",
|
74
74
|
"npm-run-all": "4.1.5",
|
75
75
|
"rimraf": "5.0.7",
|
76
|
-
"sass": "1.77.
|
77
|
-
"typescript": "5.
|
76
|
+
"sass": "1.77.6",
|
77
|
+
"typescript": "5.5.2"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
80
|
"react": "^18.0.0"
|
@@ -484,6 +484,7 @@ export const QueryBuilder = observer(
|
|
484
484
|
plugin as QueryBuilder_LegendApplicationPlugin_Extension
|
485
485
|
).getExtraQueryBuilderHelpMenuActionConfigurations?.() ?? [],
|
486
486
|
)
|
487
|
+
.filter((item) => !item.disableFunc?.(queryBuilderState))
|
487
488
|
.map((item) => (
|
488
489
|
<MenuContentItem
|
489
490
|
key={item.key}
|
@@ -271,7 +271,7 @@ const QueryBuilderSimpleConstantExpressionEditor = observer(
|
|
271
271
|
);
|
272
272
|
}}
|
273
273
|
graph={queryBuilderState.graphManagerState.graph}
|
274
|
-
|
274
|
+
observerContext={queryBuilderState.observerContext}
|
275
275
|
typeCheckOption={{
|
276
276
|
expectedType: selectedType.value,
|
277
277
|
match: selectedType.value === PrimitiveType.DATETIME,
|
@@ -266,7 +266,7 @@ const VariableExpressionEditor = observer(
|
|
266
266
|
setDefaultMilestoningValue(deepClone(val));
|
267
267
|
}}
|
268
268
|
graph={queryBuilderState.graphManagerState.graph}
|
269
|
-
|
269
|
+
observerContext={queryBuilderState.observerContext}
|
270
270
|
typeCheckOption={{
|
271
271
|
expectedType: selectedType.value,
|
272
272
|
match: selectedType.value === PrimitiveType.DATETIME,
|
@@ -131,7 +131,7 @@ export const QueryBuilderClassSelector = observer(
|
|
131
131
|
|
132
132
|
return (
|
133
133
|
<div className="query-builder__setup__config-group query-builder__setup__config-group--class">
|
134
|
-
<div className="query-builder__setup__config-group__item
|
134
|
+
<div className="query-builder__setup__config-group__item">
|
135
135
|
<label
|
136
136
|
className="btn--sm query-builder__setup__config-group__item__label"
|
137
137
|
title="entity"
|
@@ -114,6 +114,7 @@ export const selectFromCustomSelectorInput = (
|
|
114
114
|
export const selectFirstOptionFromCustomSelectorInput = (
|
115
115
|
selectorContainer: HTMLElement,
|
116
116
|
lightMode?: boolean,
|
117
|
+
verifyInputValue?: boolean,
|
117
118
|
): void => {
|
118
119
|
const selectorContainerClassName = getSelectorContainerClassName(lightMode);
|
119
120
|
const selectorInputValue = getSelectorInputClassName(lightMode);
|
@@ -124,7 +125,9 @@ export const selectFirstOptionFromCustomSelectorInput = (
|
|
124
125
|
|
125
126
|
fireEvent.keyDown(selector, { key: 'ArrowDown' });
|
126
127
|
fireEvent.keyDown(selector, { key: 'Enter' });
|
127
|
-
|
128
|
+
if (verifyInputValue ?? true) {
|
129
|
+
expect(selector.querySelector(selectorInputValue)).not.toBeNull();
|
130
|
+
}
|
128
131
|
};
|
129
132
|
|
130
133
|
export const getCustomSelectorInputValue = (
|
@@ -77,7 +77,7 @@ export const FunctionParametersValidationNodeViewer: React.FC<{
|
|
77
77
|
Variables Details
|
78
78
|
</PanelListItem>
|
79
79
|
<PanelDivider />
|
80
|
-
<table className="
|
80
|
+
<table className="query-builder__function-parameters-validation__container__table table">
|
81
81
|
<thead>
|
82
82
|
<tr>
|
83
83
|
<th className="table__cell--left">Name</th>
|
@@ -30,7 +30,7 @@ export const PartialClassResultTypeViewer: React.FC<{
|
|
30
30
|
</PanelListItem>
|
31
31
|
<PanelDivider />
|
32
32
|
{
|
33
|
-
<table className="
|
33
|
+
<table className="query-builder__result__container__table--partial-class table">
|
34
34
|
<thead>
|
35
35
|
<tr>
|
36
36
|
<th className="table__cell--left">Property</th>
|
package/src/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.tsx
CHANGED
@@ -88,7 +88,7 @@ export const RelationalClassQueryTempTableGraphFetchExecutionNodeViewer: React.F
|
|
88
88
|
Details
|
89
89
|
</PanelListItem>
|
90
90
|
<PanelDivider />
|
91
|
-
<table className="
|
91
|
+
<table className="query-builder__store-mapping-global-graph-fetch__container__table table">
|
92
92
|
<thead>
|
93
93
|
<tr>
|
94
94
|
<th className="table__cell--left">Property</th>
|
@@ -90,7 +90,7 @@ export const RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer: Rea
|
|
90
90
|
Node Details
|
91
91
|
</PanelListItem>
|
92
92
|
<PanelDivider />
|
93
|
-
<table className="
|
93
|
+
<table className="query-builder__store-mapping-global-graph-fetch__container__table table">
|
94
94
|
<thead>
|
95
95
|
<tr>
|
96
96
|
<th className="table__cell--left">Property</th>
|
package/src/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.tsx
CHANGED
@@ -88,7 +88,7 @@ export const RelationalRootQueryTempTableGraphFetchExecutionNodeViewer: React.FC
|
|
88
88
|
Details
|
89
89
|
</PanelListItem>
|
90
90
|
<PanelDivider />
|
91
|
-
<table className="
|
91
|
+
<table className="query-builder__store-mapping-global-graph-fetch__container__table table">
|
92
92
|
<thead>
|
93
93
|
<tr>
|
94
94
|
<th className="table__cell--left">Property</th>
|
@@ -116,7 +116,7 @@ export const SQLExecutionNodeViewerHelper: React.FC<{
|
|
116
116
|
Result Columns
|
117
117
|
</PanelListItem>
|
118
118
|
<PanelDivider />
|
119
|
-
<table className="
|
119
|
+
<table className="query-builder__sql__container__table table">
|
120
120
|
<thead>
|
121
121
|
<tr>
|
122
122
|
<th className="table__cell--left">Label</th>
|
@@ -92,7 +92,7 @@ export const StoreMappingGlobalGraphFetchExecutionNodeViewer: React.FC<{
|
|
92
92
|
Store Mapping Global Graph Fetch Execution Node Details
|
93
93
|
</PanelListItem>
|
94
94
|
<PanelDivider />
|
95
|
-
<table className="
|
95
|
+
<table className="query-builder__store-mapping-global-graph-fetch__container__table table">
|
96
96
|
<thead>
|
97
97
|
<tr>
|
98
98
|
<th className="table__cell--left">Property</th>
|
@@ -178,7 +178,7 @@ export const StoreMappingGlobalGraphFetchExecutionNodeViewer: React.FC<{
|
|
178
178
|
xStorePropertyFetchDetails
|
179
179
|
</PanelListItem>
|
180
180
|
<PanelDivider />
|
181
|
-
<table className="
|
181
|
+
<table className="query-builder__store-mapping-global-graph-fetch__container__table table">
|
182
182
|
<thead>
|
183
183
|
<tr>
|
184
184
|
<th className="table__cell--left">Property</th>
|
@@ -33,7 +33,7 @@ export const TDSResultTypeViewer: React.FC<{
|
|
33
33
|
</PanelListItem>
|
34
34
|
<PanelDivider />
|
35
35
|
{
|
36
|
-
<table className="
|
36
|
+
<table className="query-builder__result__container__table table">
|
37
37
|
<thead>
|
38
38
|
<tr>
|
39
39
|
<th className="table__cell--left">Label</th>
|
@@ -25,6 +25,7 @@ import {
|
|
25
25
|
PrimitiveInstanceValue,
|
26
26
|
PRIMITIVE_TYPE,
|
27
27
|
PrimitiveType,
|
28
|
+
VariableExpression,
|
28
29
|
} from '@finos/legend-graph';
|
29
30
|
import { useDrop } from 'react-dnd';
|
30
31
|
import { PanelEntryDropZonePlaceholder } from '@finos/legend-art';
|
@@ -33,16 +34,27 @@ import {
|
|
33
34
|
BasicValueSpecificationEditor,
|
34
35
|
type QueryBuilderVariableDragSource,
|
35
36
|
QUERY_BUILDER_VARIABLE_DND_TYPE,
|
37
|
+
EditableBasicValueSpecificationEditor,
|
36
38
|
} from '../shared/BasicValueSpecificationEditor.js';
|
37
39
|
import { instanceValue_setValues } from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
40
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
41
|
+
import { createSupportedFunctionExpression } from '../../stores/shared/ValueSpecificationEditorHelper.js';
|
38
42
|
|
39
43
|
export const MilestoningParameterEditor = observer(
|
40
44
|
(props: {
|
41
45
|
queryBuilderState: QueryBuilderState;
|
42
46
|
parameter: ValueSpecification;
|
43
47
|
setParameter: (val: ValueSpecification) => void;
|
48
|
+
parameterValue: ValueSpecification | undefined;
|
49
|
+
setParameterValue: (val: ValueSpecification) => void;
|
44
50
|
}) => {
|
45
|
-
const {
|
51
|
+
const {
|
52
|
+
queryBuilderState,
|
53
|
+
parameter,
|
54
|
+
setParameter,
|
55
|
+
parameterValue,
|
56
|
+
setParameterValue,
|
57
|
+
} = props;
|
46
58
|
const handleDrop = useCallback(
|
47
59
|
(item: QueryBuilderVariableDragSource): void => {
|
48
60
|
setParameter(item.variable);
|
@@ -87,27 +99,53 @@ export const MilestoningParameterEditor = observer(
|
|
87
99
|
};
|
88
100
|
|
89
101
|
return (
|
90
|
-
<div
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
>
|
95
|
-
<
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
102
|
+
<div
|
103
|
+
ref={dropConnector}
|
104
|
+
className="query-builder__milestoning-panel__variable-editor"
|
105
|
+
>
|
106
|
+
<div className="query-builder__milestoning-panel__variable-editor__variable">
|
107
|
+
<PanelEntryDropZonePlaceholder
|
108
|
+
isDragOver={isDragOver}
|
109
|
+
label="Change Milestoning Parameter Value"
|
110
|
+
>
|
111
|
+
<BasicValueSpecificationEditor
|
112
|
+
valueSpecification={parameter}
|
113
|
+
graph={queryBuilderState.graphManagerState.graph}
|
114
|
+
observerContext={queryBuilderState.observerContext}
|
115
|
+
setValueSpecification={(val: ValueSpecification): void =>
|
116
|
+
setParameter(val)
|
117
|
+
}
|
118
|
+
typeCheckOption={{
|
119
|
+
expectedType: PrimitiveType.DATE,
|
120
|
+
}}
|
121
|
+
resetValue={resetMilestoningParameter}
|
122
|
+
isConstant={queryBuilderState.constantState.isValueSpecConstant(
|
123
|
+
parameter,
|
124
|
+
)}
|
125
|
+
/>
|
126
|
+
</PanelEntryDropZonePlaceholder>
|
127
|
+
</div>
|
128
|
+
{parameter instanceof VariableExpression && parameterValue && (
|
129
|
+
<div className="query-builder__milestoning-panel__variable-editor__value">
|
130
|
+
<EditableBasicValueSpecificationEditor
|
131
|
+
valueSpecification={parameterValue}
|
132
|
+
setValueSpecification={setParameterValue}
|
133
|
+
graph={queryBuilderState.graphManagerState.graph}
|
134
|
+
observerContext={queryBuilderState.observerContext}
|
135
|
+
typeCheckOption={{
|
136
|
+
expectedType: PrimitiveType.DATE,
|
137
|
+
}}
|
138
|
+
resetValue={() => {
|
139
|
+
const now = createSupportedFunctionExpression(
|
140
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW,
|
141
|
+
PrimitiveType.DATETIME,
|
142
|
+
);
|
143
|
+
setParameterValue(now);
|
144
|
+
}}
|
145
|
+
initializeAsEditable={true}
|
146
|
+
/>
|
147
|
+
</div>
|
148
|
+
)}
|
111
149
|
</div>
|
112
150
|
);
|
113
151
|
},
|
@@ -462,7 +462,7 @@ const QueryBuilderPostFilterConditionEditor = observer(
|
|
462
462
|
valueSpecification={rightConditionValue.value}
|
463
463
|
setValueSpecification={changeValueSpecification}
|
464
464
|
graph={graph}
|
465
|
-
|
465
|
+
observerContext={queryBuilderState.observerContext}
|
466
466
|
typeCheckOption={{
|
467
467
|
expectedType: guaranteeNonNullable(
|
468
468
|
node.condition.leftConditionValue.getColumnType(),
|