@finos/legend-query-builder 2.1.6 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -0
- package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderEvent.js.map +1 -0
- package/lib/__lib__/QueryBuilderSetting.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderSetting.js.map +1 -0
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -0
- package/lib/{components/shared/ElementIconUtils.d.ts → __test__.d.ts} +2 -3
- package/lib/__test__.d.ts.map +1 -0
- package/lib/__test__.js +17 -0
- package/lib/__test__.js.map +1 -0
- package/lib/components/QueryBuilder.js +3 -3
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +3 -4
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +7 -51
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +4 -4
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +16 -16
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +1 -2
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +3 -5
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +2 -2
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +2 -2
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/{QueryBuilderComponentTestUtils.d.ts → __test-utils__/QueryBuilderComponentTestUtils.d.ts} +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -0
- package/lib/components/{QueryBuilderComponentTestUtils.js → __test-utils__/QueryBuilderComponentTestUtils.js} +17 -15
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -0
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.js +3 -3
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -2
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +2 -2
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +12 -2
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +147 -22
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.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/QueryBuilderTDSPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +39 -37
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +9 -7
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +2 -3
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +2 -3
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +2 -1
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/{graphManager/QueryBuilderSupportedFunctions.d.ts → graph/QueryBuilderMetaModelConst.d.ts} +22 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -0
- package/lib/{graphManager/QueryBuilderSupportedFunctions.js → graph/QueryBuilderMetaModelConst.js} +27 -1
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -0
- package/lib/graph-manager/QueryBuilder_GraphManagerPreset.d.ts.map +1 -0
- package/lib/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.js +1 -1
- package/lib/graph-manager/QueryBuilder_GraphManagerPreset.js.map +1 -0
- package/lib/{graphManager/QueryBuilder_GraphManagerPlugin.d.ts → graph-manager/QueryBuilder_PureGraphManagerPlugin.d.ts} +2 -1
- package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.d.ts.map +1 -0
- package/lib/{graphManager/QueryBuilder_GraphManagerPlugin.js → graph-manager/QueryBuilder_PureGraphManagerPlugin.js} +9 -1
- package/lib/graph-manager/QueryBuilder_PureGraphManagerPlugin.js.map +1 -0
- package/lib/graph-manager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +1 -0
- package/lib/graph-manager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +1 -0
- package/lib/graph-manager/action/analytics/ServiceExecutionAnalysis.d.ts.map +1 -0
- package/lib/graph-manager/action/analytics/ServiceExecutionAnalysis.js.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +26 -2
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +5 -5
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +10 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -9
- package/lib/index.js.map +1 -1
- package/lib/package.json +3 -2
- package/lib/stores/QueryBuilderConstantsState.js +3 -3
- package/lib/stores/QueryBuilderConstantsState.js.map +1 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.js +1 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -1
- package/lib/stores/QueryBuilderParametersState.js +2 -2
- package/lib/stores/QueryBuilderParametersState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +3 -3
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +4 -4
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.js +2 -2
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/{graphManager/QueryBuilderHashUtils.d.ts → stores/QueryBuilderStateHashUtils.d.ts} +2 -2
- package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -0
- package/lib/stores/QueryBuilderStateHashUtils.js +111 -0
- package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -0
- package/lib/stores/QueryBuilderTextEditorState.js +2 -2
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderUnsupportedQueryState.js +2 -2
- package/lib/stores/QueryBuilderUnsupportedQueryState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts +39 -0
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -0
- package/lib/stores/{QueryBuilderStateTestUtils.js → __test-utils__/QueryBuilderStateTestUtils.js} +54 -6
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -0
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +2 -2
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +1 -2
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js +1 -2
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +3 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +21 -3
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -4
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +2 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +14 -14
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +3 -3
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js +5 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js +5 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js +5 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js +5 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +3 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +5 -3
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +3 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +9 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +6 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +3 -3
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js +6 -6
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js +5 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js +5 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js +5 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js +5 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js +5 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +6 -6
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +6 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +6 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +11 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +6 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +6 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +6 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +6 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +8 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +6 -6
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +6 -4
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +2 -2
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +2 -2
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +4 -3
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -2
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
- package/package.json +11 -10
- package/src/__test__.ts +17 -0
- package/src/components/QueryBuilder.tsx +3 -3
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +4 -5
- package/src/components/QueryBuilderDiffPanel.tsx +10 -80
- package/src/components/QueryBuilderParametersPanel.tsx +8 -9
- package/src/components/QueryBuilderResultPanel.tsx +24 -19
- package/src/components/QueryBuilderSideBar.tsx +5 -10
- package/src/components/QueryBuilderTextEditor.tsx +4 -4
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +2 -2
- package/src/components/QueryBuilder_LegendApplicationPlugin.ts +1 -1
- package/src/components/{QueryBuilderComponentTestUtils.tsx → __test-utils__/QueryBuilderComponentTestUtils.tsx} +29 -34
- package/src/components/execution-plan/ExecutionPlanViewer.tsx +6 -3
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +4 -2
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +2 -2
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +2 -2
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +388 -65
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +1 -1
- package/src/components/filter/QueryBuilderFilterPanel.tsx +1 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -1
- package/src/components/shared/CustomDatePicker.tsx +54 -41
- package/src/components/shared/LambdaEditor.tsx +10 -8
- package/src/components/workflows/ClassQueryBuilder.tsx +6 -8
- package/src/components/workflows/MappingQueryBuilder.tsx +6 -8
- package/src/components/workflows/ServiceQueryBuilder.tsx +5 -5
- package/src/{graphManager/QueryBuilderSupportedFunctions.ts → graph/QueryBuilderMetaModelConst.ts} +29 -0
- package/src/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.ts +1 -1
- package/src/{graphManager/QueryBuilder_GraphManagerPlugin.ts → graph-manager/QueryBuilder_PureGraphManagerPlugin.ts} +9 -0
- package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +55 -1
- package/src/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +2 -2
- package/src/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +13 -5
- package/src/index.ts +13 -11
- package/src/stores/QueryBuilderConstantsState.ts +3 -3
- package/src/stores/QueryBuilderGroupOperationHelper.ts +1 -1
- package/src/stores/QueryBuilderParametersState.ts +2 -2
- package/src/stores/QueryBuilderPropertyEditorState.ts +3 -3
- package/src/stores/QueryBuilderResultState.ts +4 -4
- package/src/stores/QueryBuilderState.ts +2 -2
- package/src/stores/QueryBuilderStateBuilder.ts +1 -1
- package/src/{graphManager/QueryBuilderHashUtils.ts → stores/QueryBuilderStateHashUtils.ts} +1 -1
- package/src/stores/QueryBuilderTextEditorState.ts +2 -2
- package/src/stores/QueryBuilderUnsupportedQueryState.ts +2 -2
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +1 -1
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +1 -1
- package/src/stores/{QueryBuilderStateTestUtils.ts → __test-utils__/QueryBuilderStateTestUtils.ts} +80 -8
- package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +2 -2
- package/src/stores/explorer/QueryBuilderExplorerState.ts +1 -1
- package/src/stores/explorer/QueryBuilderPropertySearchState.ts +1 -1
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +36 -2
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +7 -5
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +2 -2
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +16 -14
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +1 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +4 -4
- package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +5 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +5 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +5 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +5 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +3 -3
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +5 -3
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +6 -6
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +8 -7
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +5 -6
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +5 -6
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +6 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +3 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +5 -6
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +5 -6
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -4
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +3 -3
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +6 -6
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.ts +3 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.ts +5 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.ts +5 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.ts +5 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.ts +5 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.ts +3 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.ts +3 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.ts +5 -3
- package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts +3 -3
- package/src/stores/filter/QueryBuilderFilterState.ts +6 -6
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +1 -1
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +1 -1
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +6 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +6 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +10 -7
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +5 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +5 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +6 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +6 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +7 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +5 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +6 -4
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +2 -2
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +4 -4
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -2
- package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +1 -1
- package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +1 -1
- package/tsconfig.json +19 -19
- package/lib/application/QueryBuilderDocumentation.d.ts.map +0 -1
- package/lib/application/QueryBuilderDocumentation.js.map +0 -1
- package/lib/application/QueryBuilderEvent.d.ts.map +0 -1
- package/lib/application/QueryBuilderEvent.js.map +0 -1
- package/lib/application/QueryBuilderSetting.d.ts.map +0 -1
- package/lib/application/QueryBuilderSetting.js.map +0 -1
- package/lib/application/QueryBuilderTelemetryHelper.d.ts.map +0 -1
- package/lib/application/QueryBuilderTelemetryHelper.js.map +0 -1
- package/lib/application/QueryBuilderTesting.d.ts.map +0 -1
- package/lib/application/QueryBuilderTesting.js.map +0 -1
- package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +0 -1
- package/lib/components/QueryBuilderComponentTestUtils.js.map +0 -1
- package/lib/components/shared/ElementIconUtils.d.ts.map +0 -1
- package/lib/components/shared/ElementIconUtils.js +0 -37
- package/lib/components/shared/ElementIconUtils.js.map +0 -1
- package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilderHashUtils.js +0 -111
- package/lib/graphManager/QueryBuilderHashUtils.js.map +0 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +0 -1
- package/lib/stores/QueryBuilderStateTestUtils.d.ts +0 -24
- package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +0 -1
- package/lib/stores/QueryBuilderStateTestUtils.js.map +0 -1
- package/src/components/shared/ElementIconUtils.tsx +0 -47
- /package/lib/{application → __lib__}/QueryBuilderDocumentation.d.ts +0 -0
- /package/lib/{application → __lib__}/QueryBuilderDocumentation.js +0 -0
- /package/lib/{application → __lib__}/QueryBuilderEvent.d.ts +0 -0
- /package/lib/{application → __lib__}/QueryBuilderEvent.js +0 -0
- /package/lib/{application → __lib__}/QueryBuilderSetting.d.ts +0 -0
- /package/lib/{application → __lib__}/QueryBuilderSetting.js +0 -0
- /package/lib/{application → __lib__}/QueryBuilderTelemetryHelper.d.ts +0 -0
- /package/lib/{application → __lib__}/QueryBuilderTelemetryHelper.js +0 -0
- /package/lib/{application → __lib__}/QueryBuilderTesting.d.ts +0 -0
- /package/lib/{application → __lib__}/QueryBuilderTesting.js +0 -0
- /package/lib/{graphManager → graph-manager}/QueryBuilder_GraphManagerPreset.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -0
- /package/lib/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.js +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -0
- /package/lib/{graphManager → graph-manager}/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +0 -0
- /package/src/{application → __lib__}/QueryBuilderDocumentation.ts +0 -0
- /package/src/{application → __lib__}/QueryBuilderEvent.ts +0 -0
- /package/src/{application → __lib__}/QueryBuilderSetting.ts +0 -0
- /package/src/{application → __lib__}/QueryBuilderTelemetryHelper.ts +0 -0
- /package/src/{application → __lib__}/QueryBuilderTesting.ts +0 -0
- /package/src/{graphManager → graph-manager}/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -0
- /package/src/{graphManager → graph-manager}/action/analytics/ServiceExecutionAnalysis.ts +0 -0
- /package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -0
- /package/src/{graphManager → graph-manager}/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -0
@@ -59,8 +59,11 @@ import {
|
|
59
59
|
type RawExecutionPlan,
|
60
60
|
} from '@finos/legend-graph';
|
61
61
|
import { SQLExecutionNodeViewer } from './SQLExecutionNodeViewer.js';
|
62
|
-
import {
|
63
|
-
|
62
|
+
import {
|
63
|
+
CODE_EDITOR_LANGUAGE,
|
64
|
+
CodeEditor,
|
65
|
+
} from '@finos/legend-lego/code-editor';
|
66
|
+
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
64
67
|
|
65
68
|
/**
|
66
69
|
* @modularize
|
@@ -456,7 +459,7 @@ const ExecutionPlanViewerContent = observer(
|
|
456
459
|
</ResizablePanelGroup>
|
457
460
|
) : (
|
458
461
|
<CodeEditor
|
459
|
-
inputValue={JSON.stringify(rawPlan, undefined,
|
462
|
+
inputValue={JSON.stringify(rawPlan, undefined, DEFAULT_TAB_SIZE)}
|
460
463
|
isReadOnly={true}
|
461
464
|
language={CODE_EDITOR_LANGUAGE.JSON}
|
462
465
|
showMiniMap={true}
|
@@ -18,8 +18,10 @@ import { observer } from 'mobx-react-lite';
|
|
18
18
|
import type { ExecutionPlanState } from '../../stores/execution-plan/ExecutionPlanState.js';
|
19
19
|
import { format as formatSQL } from 'sql-formatter';
|
20
20
|
import type { SQLResultColumn } from '@finos/legend-graph';
|
21
|
-
import {
|
22
|
-
|
21
|
+
import {
|
22
|
+
CODE_EDITOR_LANGUAGE,
|
23
|
+
CodeEditor,
|
24
|
+
} from '@finos/legend-lego/code-editor';
|
23
25
|
|
24
26
|
/**
|
25
27
|
* TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
|
@@ -87,8 +87,7 @@ import {
|
|
87
87
|
isElementDeprecated,
|
88
88
|
} from '@finos/legend-graph';
|
89
89
|
import { useApplicationStore } from '@finos/legend-application';
|
90
|
-
import {
|
91
|
-
import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
|
90
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
92
91
|
import {
|
93
92
|
filterByType,
|
94
93
|
guaranteeNonNullable,
|
@@ -97,6 +96,7 @@ import {
|
|
97
96
|
import { QueryBuilderPropertySearchPanel } from './QueryBuilderPropertySearchPanel.js';
|
98
97
|
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
99
98
|
import { QueryBuilderSimpleProjectionColumnState } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
99
|
+
import { getClassPropertyIcon } from '@finos/legend-lego/graph-editor';
|
100
100
|
|
101
101
|
const checkForDeprecatedNode = (
|
102
102
|
node: QueryBuilderExplorerTreeNodeData,
|
@@ -60,8 +60,8 @@ import {
|
|
60
60
|
renderPropertyTypeIcon,
|
61
61
|
} from './QueryBuilderExplorerPanel.js';
|
62
62
|
import { QueryBuilderPropertyInfoTooltip } from '../shared/QueryBuilderPropertyInfoTooltip.js';
|
63
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
64
|
-
import { FuzzySearchAdvancedConfigMenu } from '@finos/legend-application
|
63
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
64
|
+
import { FuzzySearchAdvancedConfigMenu } from '@finos/legend-lego/application';
|
65
65
|
|
66
66
|
const prettyPropertyNameFromNodeId = (name: string): string => {
|
67
67
|
let propNameArray = name.split('.');
|
@@ -41,9 +41,21 @@ import {
|
|
41
41
|
ModalFooterButton,
|
42
42
|
ModalFooter,
|
43
43
|
SerializeIcon,
|
44
|
+
ResizablePanel,
|
45
|
+
ResizablePanelSplitter,
|
46
|
+
ResizablePanelGroup,
|
47
|
+
BufferIcon,
|
48
|
+
CustomSelectorInput,
|
49
|
+
FolderIcon,
|
44
50
|
} from '@finos/legend-art';
|
45
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
46
|
-
import {
|
51
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
52
|
+
import {
|
53
|
+
deepClone,
|
54
|
+
filterByType,
|
55
|
+
guaranteeNonNullable,
|
56
|
+
isNonNullable,
|
57
|
+
prettyCONSTName,
|
58
|
+
} from '@finos/legend-shared';
|
47
59
|
import {
|
48
60
|
type QueryBuilderGraphFetchTreeData,
|
49
61
|
type QueryBuilderGraphFetchTreeNodeData,
|
@@ -55,12 +67,53 @@ import {
|
|
55
67
|
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE,
|
56
68
|
} from '../../stores/explorer/QueryBuilderExplorerState.js';
|
57
69
|
import {
|
70
|
+
type GraphFetchSerializationState,
|
71
|
+
GraphFetchExternalFormatSerializationState,
|
58
72
|
GraphFetchPureSerializationState,
|
59
73
|
PureSerializationConfig,
|
74
|
+
SERIALIZATION_TYPE,
|
60
75
|
type QueryBuilderGraphFetchTreeState,
|
61
76
|
} from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
62
|
-
import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
|
63
77
|
import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
|
78
|
+
import {
|
79
|
+
type PackageableElement,
|
80
|
+
Binding,
|
81
|
+
Package,
|
82
|
+
getDescendantsOfPackage,
|
83
|
+
} from '@finos/legend-graph';
|
84
|
+
import {
|
85
|
+
ActionAlertActionType,
|
86
|
+
ActionAlertType,
|
87
|
+
} from '@finos/legend-application';
|
88
|
+
import {
|
89
|
+
buildElementOption,
|
90
|
+
getClassPropertyIcon,
|
91
|
+
type PackageableElementOption,
|
92
|
+
} from '@finos/legend-lego/graph-editor';
|
93
|
+
|
94
|
+
const getBindingFormatter = (props: {
|
95
|
+
darkMode?: boolean;
|
96
|
+
}): ((
|
97
|
+
option: PackageableElementOption<PackageableElement>,
|
98
|
+
) => React.ReactNode) =>
|
99
|
+
function BindingLabel(
|
100
|
+
option: PackageableElementOption<PackageableElement>,
|
101
|
+
): React.ReactNode {
|
102
|
+
const className = props.darkMode
|
103
|
+
? 'packageable-element-option-label--dark'
|
104
|
+
: 'packageable-element-option-label';
|
105
|
+
return (
|
106
|
+
<div className={className}>
|
107
|
+
<div className={`${className}__name`}>{option.label}</div>
|
108
|
+
{option.value.package && (
|
109
|
+
<div className={`${className}__tag`}>{option.value.path}</div>
|
110
|
+
)}
|
111
|
+
<div className={`${className}__tag`}>
|
112
|
+
{(option.value as Binding).contentType}
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
);
|
116
|
+
};
|
64
117
|
|
65
118
|
const QueryBuilderGraphFetchTreeNodeContainer: React.FC<
|
66
119
|
TreeNodeContainerProps<
|
@@ -287,22 +340,131 @@ const PureSerializationConfigModal = observer(
|
|
287
340
|
},
|
288
341
|
);
|
289
342
|
|
343
|
+
export const QueryBuilderGraphFetchExternalConfig = observer(
|
344
|
+
(props: {
|
345
|
+
graphFetchState: QueryBuilderGraphFetchTreeState;
|
346
|
+
serializationState: GraphFetchExternalFormatSerializationState;
|
347
|
+
serializationTreeData: QueryBuilderGraphFetchTreeData;
|
348
|
+
bindings: Binding[];
|
349
|
+
isReadOnly: boolean;
|
350
|
+
}) => {
|
351
|
+
const {
|
352
|
+
graphFetchState,
|
353
|
+
serializationState,
|
354
|
+
serializationTreeData,
|
355
|
+
bindings,
|
356
|
+
isReadOnly,
|
357
|
+
} = props;
|
358
|
+
const bindingOptions = bindings.map((result) => buildElementOption(result));
|
359
|
+
const selectedBinding = {
|
360
|
+
value: serializationState.targetBinding,
|
361
|
+
label: serializationState.targetBinding.name,
|
362
|
+
};
|
363
|
+
const onBindingChange = (
|
364
|
+
val: PackageableElementOption<Binding> | null,
|
365
|
+
): void => {
|
366
|
+
if (val !== null) {
|
367
|
+
serializationState.setBinding(val.value);
|
368
|
+
serializationState.setGraphFetchTree(serializationTreeData);
|
369
|
+
}
|
370
|
+
};
|
371
|
+
const onNodeSelect = (node: QueryBuilderGraphFetchTreeNodeData): void => {
|
372
|
+
if (node.childrenIds.length) {
|
373
|
+
node.isOpen = !node.isOpen;
|
374
|
+
}
|
375
|
+
};
|
376
|
+
const getChildNodes = (
|
377
|
+
node: QueryBuilderGraphFetchTreeNodeData,
|
378
|
+
): QueryBuilderGraphFetchTreeNodeData[] =>
|
379
|
+
node.childrenIds
|
380
|
+
.map((id) => serializationTreeData.nodes.get(id))
|
381
|
+
.filter(isNonNullable);
|
382
|
+
const removeNode = (node: QueryBuilderGraphFetchTreeNodeData): void => {
|
383
|
+
if (serializationTreeData.nodes.size === 1) {
|
384
|
+
graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning(
|
385
|
+
'externalize serialization tree can not be empty',
|
386
|
+
);
|
387
|
+
} else {
|
388
|
+
removeNodeRecursively(serializationTreeData, node);
|
389
|
+
serializationState.setGraphFetchTree({ ...serializationTreeData });
|
390
|
+
}
|
391
|
+
};
|
392
|
+
|
393
|
+
return (
|
394
|
+
<div className="query-builder-graph-fetch-external-format">
|
395
|
+
<div className="service-execution-editor__configuration__items">
|
396
|
+
<div className="service-execution-editor__configuration__item">
|
397
|
+
<div className="btn--sm service-execution-editor__configuration__item__label">
|
398
|
+
<BufferIcon />
|
399
|
+
</div>
|
400
|
+
<CustomSelectorInput
|
401
|
+
className="panel__content__form__section__dropdown service-execution-editor__configuration__item__dropdown"
|
402
|
+
disabled={isReadOnly}
|
403
|
+
options={bindingOptions}
|
404
|
+
onChange={onBindingChange}
|
405
|
+
value={selectedBinding}
|
406
|
+
formatOptionLabel={getBindingFormatter({
|
407
|
+
darkMode: true,
|
408
|
+
})}
|
409
|
+
darkMode={true}
|
410
|
+
/>
|
411
|
+
</div>
|
412
|
+
<div className="service-execution-editor__configuration__item">
|
413
|
+
<div className="btn--sm service-execution-editor__configuration__item__label">
|
414
|
+
<FolderIcon />
|
415
|
+
</div>
|
416
|
+
<TreeView
|
417
|
+
components={{
|
418
|
+
TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
|
419
|
+
}}
|
420
|
+
className="query-builder-graph-fetch-tree__container__tree"
|
421
|
+
treeData={serializationTreeData}
|
422
|
+
onNodeSelect={onNodeSelect}
|
423
|
+
getChildNodes={getChildNodes}
|
424
|
+
innerProps={{
|
425
|
+
isReadOnly,
|
426
|
+
removeNode,
|
427
|
+
}}
|
428
|
+
/>
|
429
|
+
</div>
|
430
|
+
</div>
|
431
|
+
</div>
|
432
|
+
);
|
433
|
+
},
|
434
|
+
);
|
435
|
+
|
290
436
|
export const QueryBuilderGraphFetchTreeExplorer = observer(
|
291
437
|
(props: {
|
292
438
|
graphFetchState: QueryBuilderGraphFetchTreeState;
|
293
|
-
|
439
|
+
serializationState: GraphFetchSerializationState;
|
294
440
|
treeData: QueryBuilderGraphFetchTreeData;
|
295
441
|
updateTreeData: (data: QueryBuilderGraphFetchTreeData) => void;
|
296
442
|
isReadOnly: boolean;
|
297
443
|
}) => {
|
298
444
|
const {
|
299
445
|
graphFetchState,
|
300
|
-
|
446
|
+
serializationState,
|
301
447
|
treeData,
|
302
448
|
updateTreeData,
|
303
449
|
isReadOnly,
|
304
450
|
} = props;
|
305
451
|
|
452
|
+
// Retrieve all bindings whose packageableElementIncludes contain the root class of main graph fetch tree
|
453
|
+
const compatibleBindings =
|
454
|
+
graphFetchState.queryBuilderState.graphManagerState.usableStores
|
455
|
+
.filter(filterByType(Binding))
|
456
|
+
.filter((b) => {
|
457
|
+
const elements = b.modelUnit.packageableElementIncludes.map(
|
458
|
+
(p) => p.value,
|
459
|
+
);
|
460
|
+
return elements
|
461
|
+
.filter(filterByType(Package))
|
462
|
+
.map((p) => Array.from(getDescendantsOfPackage(p)))
|
463
|
+
.flat()
|
464
|
+
.concat(elements.filter((e) => !(e instanceof Package)))
|
465
|
+
.includes(treeData.tree.class.value);
|
466
|
+
});
|
467
|
+
|
306
468
|
const onNodeSelect = (node: QueryBuilderGraphFetchTreeNodeData): void => {
|
307
469
|
if (node.childrenIds.length) {
|
308
470
|
node.isOpen = !node.isOpen;
|
@@ -319,6 +481,24 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
|
|
319
481
|
|
320
482
|
const removeNode = (node: QueryBuilderGraphFetchTreeNodeData): void => {
|
321
483
|
removeNodeRecursively(treeData, node);
|
484
|
+
if (treeData.nodes.size === 0) {
|
485
|
+
graphFetchState.setSerializationState(
|
486
|
+
new GraphFetchPureSerializationState(graphFetchState),
|
487
|
+
);
|
488
|
+
}
|
489
|
+
// Remove node from external format serialization tree as well
|
490
|
+
if (
|
491
|
+
serializationState instanceof
|
492
|
+
GraphFetchExternalFormatSerializationState &&
|
493
|
+
serializationState.treeData &&
|
494
|
+
serializationState.treeData.nodes.get(node.id)
|
495
|
+
) {
|
496
|
+
removeNodeRecursively(
|
497
|
+
serializationState.treeData,
|
498
|
+
guaranteeNonNullable(serializationState.treeData.nodes.get(node.id)),
|
499
|
+
);
|
500
|
+
updateTreeData({ ...serializationState.treeData });
|
501
|
+
}
|
322
502
|
updateTreeData({ ...treeData });
|
323
503
|
};
|
324
504
|
|
@@ -326,71 +506,202 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
|
|
326
506
|
graphFetchState.setChecked(!graphFetchState.isChecked);
|
327
507
|
|
328
508
|
const openConfigModal = (): void => {
|
329
|
-
|
509
|
+
if (serializationState instanceof GraphFetchPureSerializationState) {
|
510
|
+
serializationState.setConfigModal(true);
|
511
|
+
}
|
330
512
|
};
|
331
513
|
|
514
|
+
const onChangeSerializationType =
|
515
|
+
(implementationType: SERIALIZATION_TYPE): (() => void) =>
|
516
|
+
(): void => {
|
517
|
+
if (implementationType !== serializationState.getLabel()) {
|
518
|
+
graphFetchState.queryBuilderState.applicationStore.alertService.setActionAlertInfo(
|
519
|
+
{
|
520
|
+
message:
|
521
|
+
'Current graph-fetch will be lost when switching to a different serialization mode. Do you still want to proceed?',
|
522
|
+
type: ActionAlertType.CAUTION,
|
523
|
+
actions: [
|
524
|
+
{
|
525
|
+
label: 'Proceed',
|
526
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
527
|
+
handler:
|
528
|
+
graphFetchState.queryBuilderState.applicationStore.guardUnhandledError(
|
529
|
+
async () => {
|
530
|
+
switch (implementationType) {
|
531
|
+
case SERIALIZATION_TYPE.EXTERNAL_FORMAT:
|
532
|
+
if (
|
533
|
+
compatibleBindings.length > 0 &&
|
534
|
+
compatibleBindings[0]
|
535
|
+
) {
|
536
|
+
const externalizeState =
|
537
|
+
new GraphFetchExternalFormatSerializationState(
|
538
|
+
graphFetchState,
|
539
|
+
compatibleBindings[0],
|
540
|
+
undefined,
|
541
|
+
);
|
542
|
+
graphFetchState.setGraphFetchTree(treeData);
|
543
|
+
externalizeState.setGraphFetchTree(
|
544
|
+
deepClone(treeData),
|
545
|
+
);
|
546
|
+
graphFetchState.setSerializationState(
|
547
|
+
externalizeState,
|
548
|
+
);
|
549
|
+
} else {
|
550
|
+
graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning(
|
551
|
+
`Can't switch to external format serialization: No compatible bindings found`,
|
552
|
+
);
|
553
|
+
}
|
554
|
+
break;
|
555
|
+
case SERIALIZATION_TYPE.PURE:
|
556
|
+
default:
|
557
|
+
graphFetchState.setSerializationState(
|
558
|
+
new GraphFetchPureSerializationState(
|
559
|
+
graphFetchState,
|
560
|
+
),
|
561
|
+
);
|
562
|
+
break;
|
563
|
+
}
|
564
|
+
},
|
565
|
+
),
|
566
|
+
},
|
567
|
+
{
|
568
|
+
label: 'Cancel',
|
569
|
+
type: ActionAlertActionType.PROCEED,
|
570
|
+
default: true,
|
571
|
+
},
|
572
|
+
],
|
573
|
+
},
|
574
|
+
);
|
575
|
+
}
|
576
|
+
};
|
577
|
+
|
332
578
|
return (
|
333
579
|
<div className="query-builder-graph-fetch-tree">
|
334
580
|
<div className="query-builder-graph-fetch-tree__toolbar">
|
581
|
+
<div className="query-builder__fetch__structure__modes">
|
582
|
+
{Object.values(SERIALIZATION_TYPE).map((type) => (
|
583
|
+
<button
|
584
|
+
onClick={onChangeSerializationType(type)}
|
585
|
+
className={clsx('query-builder__fetch__structure__mode', {
|
586
|
+
'query-builder__fetch__structure__mode--selected':
|
587
|
+
type === serializationState.getLabel(),
|
588
|
+
})}
|
589
|
+
key={type}
|
590
|
+
>
|
591
|
+
{prettyCONSTName(type)}
|
592
|
+
</button>
|
593
|
+
))}
|
594
|
+
</div>
|
335
595
|
<div className="query-builder-graph-fetch-tree__actions">
|
336
|
-
|
337
|
-
className="query-builder-graph-fetch-tree__actions__action
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
596
|
+
{serializationState instanceof GraphFetchPureSerializationState && (
|
597
|
+
<div className="query-builder-graph-fetch-tree__actions__action">
|
598
|
+
<button
|
599
|
+
className="query-builder-graph-fetch-tree__actions__action-btn__label"
|
600
|
+
onClick={openConfigModal}
|
601
|
+
title={`${
|
602
|
+
serializationState.config
|
603
|
+
? 'Edit pure serialization config'
|
604
|
+
: 'Add pure serialization config'
|
605
|
+
}`}
|
606
|
+
tabIndex={-1}
|
607
|
+
>
|
608
|
+
<SerializeIcon className="query-builder-graph-fetch-tree__actions__action-btn__label__icon" />
|
609
|
+
<div className="query-builder-graph-fetch-tree__actions__action-btn__label__title">
|
610
|
+
{serializationState.config ? 'Edit Config' : 'Add Config'}
|
611
|
+
</div>
|
612
|
+
</button>
|
349
613
|
</div>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
onClick={toggleChecked}
|
355
|
-
>
|
356
|
-
<button
|
357
|
-
className={clsx('panel__content__form__section__toggler__btn', {
|
358
|
-
'panel__content__form__section__toggler__btn--toggled':
|
359
|
-
graphFetchState.isChecked,
|
360
|
-
})}
|
614
|
+
)}
|
615
|
+
<div
|
616
|
+
className={clsx('panel__content__form__section__toggler')}
|
617
|
+
onClick={toggleChecked}
|
361
618
|
>
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
619
|
+
<button
|
620
|
+
className={clsx('panel__content__form__section__toggler__btn', {
|
621
|
+
'panel__content__form__section__toggler__btn--toggled':
|
622
|
+
graphFetchState.isChecked,
|
623
|
+
})}
|
624
|
+
>
|
625
|
+
{graphFetchState.isChecked ? (
|
626
|
+
<CheckSquareIcon />
|
627
|
+
) : (
|
628
|
+
<SquareIcon />
|
629
|
+
)}
|
630
|
+
</button>
|
631
|
+
<div className="panel__content__form__section__toggler__prompt">
|
632
|
+
Check graph fetch
|
633
|
+
</div>
|
634
|
+
<div className="query-builder-graph-fetch-tree__toolbar__hint-icon">
|
635
|
+
<InfoCircleIcon title="With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" />
|
636
|
+
</div>
|
369
637
|
</div>
|
370
638
|
</div>
|
371
639
|
</div>
|
372
640
|
<div className="query-builder-graph-fetch-tree__container">
|
373
|
-
{
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
641
|
+
{serializationState instanceof GraphFetchPureSerializationState &&
|
642
|
+
serializationState.configModal && (
|
643
|
+
<PureSerializationConfigModal
|
644
|
+
pureSerializationState={serializationState}
|
645
|
+
graphFetchState={graphFetchState}
|
646
|
+
config={
|
647
|
+
serializationState.config ?? new PureSerializationConfig()
|
648
|
+
}
|
649
|
+
/>
|
650
|
+
)}
|
651
|
+
<ResizablePanelGroup orientation="horizontal">
|
652
|
+
<ResizablePanel>
|
653
|
+
<div className="query-builder-graph-fetch-external-format__config-group">
|
654
|
+
<div className="query-builder-graph-fetch-external-format__config-group__header">
|
655
|
+
<div className="query-builder-graph-fetch-external-format__config-group__header__title">
|
656
|
+
Graph Fetch Tree
|
657
|
+
</div>
|
658
|
+
</div>
|
659
|
+
<div className="query-builder-graph-fetch-external-format__config-group__content">
|
660
|
+
<div className="query-builder-graph-fetch-external-format__config-group__item">
|
661
|
+
<TreeView
|
662
|
+
components={{
|
663
|
+
TreeNodeContainer:
|
664
|
+
QueryBuilderGraphFetchTreeNodeContainer,
|
665
|
+
}}
|
666
|
+
className="query-builder-graph-fetch-tree__container__tree"
|
667
|
+
treeData={treeData}
|
668
|
+
onNodeSelect={onNodeSelect}
|
669
|
+
getChildNodes={getChildNodes}
|
670
|
+
innerProps={{
|
671
|
+
isReadOnly,
|
672
|
+
removeNode,
|
673
|
+
}}
|
674
|
+
/>
|
675
|
+
</div>
|
676
|
+
</div>
|
677
|
+
</div>
|
678
|
+
</ResizablePanel>
|
679
|
+
<ResizablePanelSplitter />
|
680
|
+
{serializationState instanceof
|
681
|
+
GraphFetchExternalFormatSerializationState &&
|
682
|
+
serializationState.treeData && (
|
683
|
+
<ResizablePanel>
|
684
|
+
<div className="query-builder-graph-fetch-external-format__config-group">
|
685
|
+
<div className="query-builder-graph-fetch-external-format__config-group__header">
|
686
|
+
<div className="query-builder-graph-fetch-external-format__config-group__header__title">
|
687
|
+
Externalize
|
688
|
+
</div>
|
689
|
+
</div>
|
690
|
+
<div className="query-builder-graph-fetch-external-format__config-group__content">
|
691
|
+
<div className="query-builder-graph-fetch-external-format_config-group__item">
|
692
|
+
<QueryBuilderGraphFetchExternalConfig
|
693
|
+
graphFetchState={graphFetchState}
|
694
|
+
serializationState={serializationState}
|
695
|
+
serializationTreeData={serializationState.treeData}
|
696
|
+
bindings={compatibleBindings}
|
697
|
+
isReadOnly={false}
|
698
|
+
/>
|
699
|
+
</div>
|
700
|
+
</div>
|
701
|
+
</div>
|
702
|
+
</ResizablePanel>
|
703
|
+
)}
|
704
|
+
</ResizablePanelGroup>
|
394
705
|
</div>
|
395
706
|
</div>
|
396
707
|
);
|
@@ -400,10 +711,9 @@ export const QueryBuilderGraphFetchTreeExplorer = observer(
|
|
400
711
|
const QueryBuilderGraphFetchTreePanel = observer(
|
401
712
|
(props: {
|
402
713
|
graphFetchTreeState: QueryBuilderGraphFetchTreeState;
|
403
|
-
|
404
|
-
pureSerializationState: GraphFetchPureSerializationState;
|
714
|
+
serializationState: GraphFetchSerializationState;
|
405
715
|
}) => {
|
406
|
-
const { graphFetchTreeState,
|
716
|
+
const { graphFetchTreeState, serializationState } = props;
|
407
717
|
const treeData = graphFetchTreeState.treeData;
|
408
718
|
|
409
719
|
// Deep/Graph Fetch Tree
|
@@ -415,8 +725,18 @@ const QueryBuilderGraphFetchTreePanel = observer(
|
|
415
725
|
const handleDrop = useCallback(
|
416
726
|
(item: QueryBuilderExplorerTreeDragSource): void => {
|
417
727
|
graphFetchTreeState.addProperty(item.node, { refreshTreeData: true });
|
728
|
+
// If serializationState is GraphFetchExternalFormatSerializationState, we should add this node to
|
729
|
+
// the external format serialization tree as well
|
730
|
+
if (
|
731
|
+
serializationState instanceof
|
732
|
+
GraphFetchExternalFormatSerializationState
|
733
|
+
) {
|
734
|
+
serializationState.addProperty(deepClone(item.node), {
|
735
|
+
refreshTreeData: true,
|
736
|
+
});
|
737
|
+
}
|
418
738
|
},
|
419
|
-
[graphFetchTreeState],
|
739
|
+
[graphFetchTreeState, serializationState],
|
420
740
|
);
|
421
741
|
const [{ isDragOver }, dropTargetConnector] = useDrop<
|
422
742
|
QueryBuilderExplorerTreeDragSource,
|
@@ -458,7 +778,7 @@ const QueryBuilderGraphFetchTreePanel = observer(
|
|
458
778
|
{treeData && !isGraphFetchTreeDataEmpty(treeData) && (
|
459
779
|
<QueryBuilderGraphFetchTreeExplorer
|
460
780
|
graphFetchState={graphFetchTreeState}
|
461
|
-
|
781
|
+
serializationState={serializationState}
|
462
782
|
treeData={treeData}
|
463
783
|
isReadOnly={false}
|
464
784
|
updateTreeData={updateTreeData}
|
@@ -478,11 +798,14 @@ export const QueryBuilderGraphFetchPanel = observer(
|
|
478
798
|
graphFetchTreeState.queryBuilderState.textEditorState.openModal(
|
479
799
|
QueryBuilderTextEditorMode.TEXT,
|
480
800
|
);
|
481
|
-
if (
|
801
|
+
if (
|
802
|
+
serializationState instanceof GraphFetchPureSerializationState ||
|
803
|
+
serializationState instanceof GraphFetchExternalFormatSerializationState
|
804
|
+
) {
|
482
805
|
return (
|
483
806
|
<QueryBuilderGraphFetchTreePanel
|
484
807
|
graphFetchTreeState={graphFetchTreeState}
|
485
|
-
|
808
|
+
serializationState={serializationState}
|
486
809
|
/>
|
487
810
|
);
|
488
811
|
}
|
@@ -79,7 +79,7 @@ import {
|
|
79
79
|
QueryBuilderDerivationProjectionColumnState,
|
80
80
|
} from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
81
81
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
82
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
82
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
83
83
|
import { isTypeCompatibleForAssignment } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
84
84
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../stores/QueryBuilderGroupOperationHelper.js';
|
85
85
|
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
@@ -53,7 +53,7 @@ import {
|
|
53
53
|
} from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
54
54
|
import { QueryBuilderPropertyExpressionBadge } from '../QueryBuilderPropertyExpressionEditor.js';
|
55
55
|
import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel.js';
|
56
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
56
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
57
57
|
import { flowResult } from 'mobx';
|
58
58
|
import { useApplicationStore } from '@finos/legend-application';
|
59
59
|
import {
|
@@ -63,7 +63,7 @@ import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE } from '../../stores/fetch-str
|
|
63
63
|
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
64
64
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
65
65
|
import { COLUMN_SORT_TYPE } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
|
66
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
66
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
67
67
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
68
68
|
|
69
69
|
// helpers
|
@@ -68,7 +68,7 @@ import {
|
|
68
68
|
debounce,
|
69
69
|
UnsupportedOperationError,
|
70
70
|
} from '@finos/legend-shared';
|
71
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
71
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
72
72
|
import { useApplicationStore } from '@finos/legend-application';
|
73
73
|
import type { ValueSpecification } from '@finos/legend-graph';
|
74
74
|
import {
|
@@ -76,7 +76,7 @@ import {
|
|
76
76
|
instanceValue_setValues,
|
77
77
|
} from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
78
78
|
import { CustomDatePicker } from './CustomDatePicker.js';
|
79
|
-
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../
|
79
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
80
80
|
import { simplifyValueExpression } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
81
81
|
import { evaluate } from 'mathjs';
|
82
82
|
|