@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
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -20,6 +20,7 @@
|
|
20
20
|
"type": "module",
|
21
21
|
"exports": {
|
22
22
|
".": "./lib/index.js",
|
23
|
+
"./test": "./lib/__test__.js",
|
23
24
|
"./lib/index.css": "./lib/index.css"
|
24
25
|
},
|
25
26
|
"module": "lib/index.js",
|
@@ -41,15 +42,15 @@
|
|
41
42
|
"test:watch": "jest --watch"
|
42
43
|
},
|
43
44
|
"dependencies": {
|
44
|
-
"@finos/legend-application": "
|
45
|
-
"@finos/legend-art": "7.0.
|
46
|
-
"@finos/legend-graph": "
|
47
|
-
"@finos/legend-lego": "0.1.
|
48
|
-
"@finos/legend-server-depot": "
|
49
|
-
"@finos/legend-shared": "
|
50
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "15.0.0",
|
46
|
+
"@finos/legend-art": "7.0.1",
|
47
|
+
"@finos/legend-graph": "28.0.0",
|
48
|
+
"@finos/legend-lego": "0.1.5",
|
49
|
+
"@finos/legend-server-depot": "5.0.0",
|
50
|
+
"@finos/legend-shared": "9.0.0",
|
51
|
+
"@finos/legend-storage": "3.0.49",
|
51
52
|
"@testing-library/react": "14.0.0",
|
52
|
-
"@types/react": "18.0.
|
53
|
+
"@types/react": "18.0.37",
|
53
54
|
"@types/react-dom": "18.0.11",
|
54
55
|
"mathjs": "11.8.0",
|
55
56
|
"mobx": "6.9.0",
|
@@ -62,7 +63,7 @@
|
|
62
63
|
"sql-formatter": "12.2.0"
|
63
64
|
},
|
64
65
|
"devDependencies": {
|
65
|
-
"@finos/legend-dev-utils": "2.0.
|
66
|
+
"@finos/legend-dev-utils": "2.0.54",
|
66
67
|
"@jest/globals": "29.5.0",
|
67
68
|
"cross-env": "7.0.3",
|
68
69
|
"eslint": "8.38.0",
|
package/src/__test__.ts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
export { TEST__setUpQueryBuilder } from './components/__test-utils__/QueryBuilderComponentTestUtils.js';
|
@@ -49,7 +49,7 @@ import { QueryBuilderTextEditor } from './QueryBuilderTextEditor.js';
|
|
49
49
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
50
50
|
import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
|
51
51
|
import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderFetchStructurePanel.js';
|
52
|
-
import { QUERY_BUILDER_TEST_ID } from '../
|
52
|
+
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
53
53
|
import { flowResult } from 'mobx';
|
54
54
|
import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js';
|
55
55
|
import {
|
@@ -67,9 +67,9 @@ import { QueryBuilderPostTDSPanel } from './fetch-structure/QueryBuilderPostTDSP
|
|
67
67
|
import { QueryBuilderWatermarkEditor } from './watermark/QueryBuilderWatermark.js';
|
68
68
|
import { QueryBuilderConstantExpressionPanel } from './QueryBuilderConstantExpressionPanel.js';
|
69
69
|
import { QueryBuilder_LegendApplicationPlugin } from './QueryBuilder_LegendApplicationPlugin.js';
|
70
|
-
import { QUERY_BUILDER_SETTING_KEY } from '../
|
70
|
+
import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
|
71
71
|
import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
|
72
|
-
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../
|
72
|
+
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
|
73
73
|
|
74
74
|
const QueryBuilderStatusBar = observer(
|
75
75
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
@@ -15,10 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import {
|
18
|
-
type PackageableElementOption,
|
19
18
|
buildElementOption,
|
20
19
|
getPackageableElementOptionFormatter,
|
21
|
-
|
20
|
+
type PackageableElementOption,
|
21
|
+
} from '@finos/legend-lego/graph-editor';
|
22
22
|
import {
|
23
23
|
BlankPanelPlaceholder,
|
24
24
|
CustomSelectorInput,
|
@@ -49,8 +49,8 @@ import { buildDefaultInstanceValue } from '../stores/shared/ValueSpecificationEd
|
|
49
49
|
import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
50
50
|
import { BasicValueSpecificationEditor } from './shared/BasicValueSpecificationEditor.js';
|
51
51
|
import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
|
52
|
-
import { QUERY_BUILDER_TEST_ID } from '../
|
53
|
-
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../
|
52
|
+
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
53
|
+
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
|
54
54
|
|
55
55
|
// NOTE: We currently only allow constant variables for primitive types of multiplicity ONE.
|
56
56
|
// This is why we don't show multiplicity in the editor.
|
@@ -153,7 +153,6 @@ const QueryBuilderConstantExpressionEditor = observer(
|
|
153
153
|
darkMode:
|
154
154
|
!applicationStore.layoutService
|
155
155
|
.TEMPORARY__isLightColorThemeEnabled,
|
156
|
-
graph: queryBuilderState.graphManagerState.graph,
|
157
156
|
})}
|
158
157
|
/>
|
159
158
|
</PanelFormSection>
|
@@ -14,90 +14,21 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
|
19
|
-
CODE_EDITOR_THEME,
|
20
|
-
TAB_SIZE,
|
21
|
-
useApplicationStore,
|
22
|
-
} from '@finos/legend-application';
|
23
|
-
import { clsx, Dialog, useResizeDetector, Button } from '@finos/legend-art';
|
17
|
+
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
18
|
+
import { clsx, Dialog, Button } from '@finos/legend-art';
|
24
19
|
import { observer } from 'mobx-react-lite';
|
25
|
-
import {
|
26
|
-
import { useEffect, useRef, useState } from 'react';
|
20
|
+
import { useEffect } from 'react';
|
27
21
|
import {
|
28
22
|
type QueryBuilderDiffViewState,
|
29
23
|
QueryBuilderDiffViewMode,
|
30
24
|
} from '../stores/QueryBuilderChangeDetectionState.js';
|
31
25
|
import { pruneSourceInformation } from '@finos/legend-graph';
|
32
26
|
import {
|
33
|
-
|
34
|
-
|
27
|
+
CODE_EDITOR_LANGUAGE,
|
28
|
+
CodeDiffView,
|
29
|
+
JSONDiffView,
|
35
30
|
} from '@finos/legend-lego/code-editor';
|
36
31
|
|
37
|
-
const TextDiffView = observer(
|
38
|
-
(props: {
|
39
|
-
language: CODE_EDITOR_LANGUAGE;
|
40
|
-
from?: string | undefined;
|
41
|
-
to?: string | undefined;
|
42
|
-
}) => {
|
43
|
-
const { from, to, language } = props;
|
44
|
-
const applicationStore = useApplicationStore();
|
45
|
-
const [editor, setEditor] =
|
46
|
-
useState<monacoEditorAPI.IStandaloneDiffEditor>();
|
47
|
-
const editorRef = useRef<HTMLDivElement>(null);
|
48
|
-
const originalText = from ?? '';
|
49
|
-
const modifiedText = to ?? '';
|
50
|
-
|
51
|
-
const { ref, width, height } = useResizeDetector<HTMLDivElement>();
|
52
|
-
|
53
|
-
useEffect(() => {
|
54
|
-
if (width !== undefined && height !== undefined) {
|
55
|
-
editor?.layout({ width, height });
|
56
|
-
}
|
57
|
-
}, [editor, width, height]);
|
58
|
-
|
59
|
-
useEffect(() => {
|
60
|
-
if (!editor && editorRef.current) {
|
61
|
-
const element = editorRef.current;
|
62
|
-
const _editor = monacoEditorAPI.createDiffEditor(element, {
|
63
|
-
...getBaseCodeEditorOptions(),
|
64
|
-
theme: applicationStore.layoutService
|
65
|
-
.TEMPORARY__isLightColorThemeEnabled
|
66
|
-
? CODE_EDITOR_THEME.TEMPORARY__VSCODE_LIGHT
|
67
|
-
: CODE_EDITOR_THEME.LEGEND,
|
68
|
-
readOnly: true,
|
69
|
-
wordWrap: 'on',
|
70
|
-
});
|
71
|
-
setEditor(_editor);
|
72
|
-
}
|
73
|
-
}, [applicationStore, editor]);
|
74
|
-
|
75
|
-
if (editor) {
|
76
|
-
const originalModel = monacoEditorAPI.createModel(originalText, language);
|
77
|
-
const modifiedModel = monacoEditorAPI.createModel(modifiedText, language);
|
78
|
-
editor.setModel({
|
79
|
-
original: originalModel,
|
80
|
-
modified: modifiedModel,
|
81
|
-
});
|
82
|
-
}
|
83
|
-
|
84
|
-
useEffect(
|
85
|
-
() => (): void => {
|
86
|
-
if (editor) {
|
87
|
-
disposeDiffCodeEditor(editor);
|
88
|
-
}
|
89
|
-
},
|
90
|
-
[editor],
|
91
|
-
); // dispose editor
|
92
|
-
|
93
|
-
return (
|
94
|
-
<div ref={ref} className="code-editor__container">
|
95
|
-
<div className="code-editor__body" ref={editorRef} />
|
96
|
-
</div>
|
97
|
-
);
|
98
|
-
},
|
99
|
-
);
|
100
|
-
|
101
32
|
export const QueryBuilderDiffViewPanel = observer(
|
102
33
|
(props: { diffViewState: QueryBuilderDiffViewState }) => {
|
103
34
|
const { diffViewState } = props;
|
@@ -149,15 +80,14 @@ export const QueryBuilderDiffViewPanel = observer(
|
|
149
80
|
</div>
|
150
81
|
<div className="query-builder__diff-panel__content">
|
151
82
|
{diffViewState.mode === QueryBuilderDiffViewMode.GRAMMAR && (
|
152
|
-
<
|
83
|
+
<CodeDiffView
|
153
84
|
language={CODE_EDITOR_LANGUAGE.PURE}
|
154
85
|
from={fromGrammarText}
|
155
86
|
to={toGrammarText}
|
156
87
|
/>
|
157
88
|
)}
|
158
89
|
{diffViewState.mode === QueryBuilderDiffViewMode.JSON && (
|
159
|
-
<
|
160
|
-
language={CODE_EDITOR_LANGUAGE.JSON}
|
90
|
+
<JSONDiffView
|
161
91
|
from={JSON.stringify(
|
162
92
|
{
|
163
93
|
parameters: diffViewState.initialQuery.parameters
|
@@ -172,7 +102,7 @@ export const QueryBuilderDiffViewPanel = observer(
|
|
172
102
|
: undefined,
|
173
103
|
},
|
174
104
|
null,
|
175
|
-
|
105
|
+
DEFAULT_TAB_SIZE,
|
176
106
|
)}
|
177
107
|
to={JSON.stringify(
|
178
108
|
{
|
@@ -188,7 +118,7 @@ export const QueryBuilderDiffViewPanel = observer(
|
|
188
118
|
: undefined,
|
189
119
|
},
|
190
120
|
null,
|
191
|
-
|
121
|
+
DEFAULT_TAB_SIZE,
|
192
122
|
)}
|
193
123
|
/>
|
194
124
|
)}
|
@@ -39,20 +39,20 @@ import {
|
|
39
39
|
Multiplicity,
|
40
40
|
getMultiplicityPrettyDescription,
|
41
41
|
} from '@finos/legend-graph';
|
42
|
-
import {
|
43
|
-
type PackageableElementOption,
|
44
|
-
buildElementOption,
|
45
|
-
getPackageableElementOptionFormatter,
|
46
|
-
useApplicationStore,
|
47
|
-
} from '@finos/legend-application';
|
42
|
+
import { useApplicationStore } from '@finos/legend-application';
|
48
43
|
import { generateEnumerableNameFromToken } from '@finos/legend-shared';
|
49
44
|
import { DEFAULT_VARIABLE_NAME } from '../stores/QueryBuilderConfig.js';
|
50
45
|
import { variableExpression_setName } from '../stores/shared/ValueSpecificationModifierHelper.js';
|
51
46
|
import { LambdaParameterState } from '../stores/shared/LambdaParameterState.js';
|
52
47
|
import { LambdaParameterValuesEditor } from './shared/LambdaParameterValuesEditor.js';
|
53
48
|
import { VariableViewer } from './shared/QueryBuilderVariableSelector.js';
|
54
|
-
import { QUERY_BUILDER_TEST_ID } from '../
|
55
|
-
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../
|
49
|
+
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
50
|
+
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
|
51
|
+
import {
|
52
|
+
buildElementOption,
|
53
|
+
getPackageableElementOptionFormatter,
|
54
|
+
type PackageableElementOption,
|
55
|
+
} from '@finos/legend-lego/graph-editor';
|
56
56
|
|
57
57
|
type MultiplicityOption = { label: string; value: Multiplicity };
|
58
58
|
|
@@ -182,7 +182,6 @@ const VariableExpressionEditor = observer(
|
|
182
182
|
darkMode:
|
183
183
|
!applicationStore.layoutService
|
184
184
|
.TEMPORARY__isLightColorThemeEnabled,
|
185
|
-
graph: queryBuilderState.graphManagerState.graph,
|
186
185
|
})}
|
187
186
|
/>
|
188
187
|
</div>
|
@@ -45,8 +45,7 @@ import {
|
|
45
45
|
import {
|
46
46
|
ActionAlertActionType,
|
47
47
|
ActionAlertType,
|
48
|
-
|
49
|
-
TAB_SIZE,
|
48
|
+
DEFAULT_TAB_SIZE,
|
50
49
|
useApplicationStore,
|
51
50
|
} from '@finos/legend-application';
|
52
51
|
import {
|
@@ -57,7 +56,7 @@ import {
|
|
57
56
|
prettyDuration,
|
58
57
|
prettyCONSTName,
|
59
58
|
} from '@finos/legend-shared';
|
60
|
-
import { forwardRef,
|
59
|
+
import { type MutableRefObject, forwardRef, useRef } from 'react';
|
61
60
|
import {
|
62
61
|
QueryBuilderDerivationProjectionColumnState,
|
63
62
|
QueryBuilderProjectionColumnState,
|
@@ -82,19 +81,22 @@ import {
|
|
82
81
|
instanceValue_setValues,
|
83
82
|
} from '../stores/shared/ValueSpecificationModifierHelper.js';
|
84
83
|
import { PARAMETER_SUBMIT_ACTION } from '../stores/shared/LambdaParameterState.js';
|
85
|
-
import { QUERY_BUILDER_TEST_ID } from '../
|
84
|
+
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
86
85
|
import {
|
87
86
|
DataGrid,
|
88
87
|
type DataGridCellMouseOverEvent,
|
89
88
|
} from '@finos/legend-lego/data-grid';
|
90
|
-
import {
|
89
|
+
import {
|
90
|
+
CODE_EDITOR_LANGUAGE,
|
91
|
+
CodeEditor,
|
92
|
+
} from '@finos/legend-lego/code-editor';
|
91
93
|
import { ExecutionPlanViewer } from './execution-plan/ExecutionPlanViewer.js';
|
92
94
|
|
93
95
|
const QueryBuilderGridResultContextMenu = observer(
|
94
96
|
forwardRef<
|
95
97
|
HTMLDivElement,
|
96
98
|
{
|
97
|
-
event: DataGridCellMouseOverEvent | null
|
99
|
+
event: MutableRefObject<DataGridCellMouseOverEvent | null>;
|
98
100
|
tdsState: QueryBuilderTDSState;
|
99
101
|
}
|
100
102
|
>(function QueryBuilderResultContextMenu(props, ref) {
|
@@ -108,10 +110,10 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
108
110
|
const postFilterState = tdsState.postFilterState;
|
109
111
|
const projectionColumnState = guaranteeNonNullable(
|
110
112
|
tdsState.projectionColumns
|
111
|
-
.filter((c) => c.columnName === event?.column.getColId())
|
113
|
+
.filter((c) => c.columnName === event.current?.column.getColId())
|
112
114
|
.concat(
|
113
115
|
tdsState.aggregationState.columns
|
114
|
-
.filter((c) => c.columnName === event?.column.getColId())
|
116
|
+
.filter((c) => c.columnName === event.current?.column.getColId())
|
115
117
|
.map((ag) => ag.projectionColumnState),
|
116
118
|
)[0],
|
117
119
|
);
|
@@ -142,7 +144,7 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
142
144
|
const updateFilterConditionValue = (
|
143
145
|
conditionValue: InstanceValue,
|
144
146
|
): void => {
|
145
|
-
if (event?.value !== null) {
|
147
|
+
if (event.current?.value !== null) {
|
146
148
|
instanceValue_setValue(
|
147
149
|
conditionValue,
|
148
150
|
conditionValue instanceof EnumValueInstanceValue
|
@@ -151,10 +153,10 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
151
153
|
(
|
152
154
|
conditionValue.genericType?.ownerReference
|
153
155
|
.value as Enumeration
|
154
|
-
).values.filter((v) => v.name === event?.value)[0],
|
156
|
+
).values.filter((v) => v.name === event.current?.value)[0],
|
155
157
|
),
|
156
158
|
)
|
157
|
-
: event?.value,
|
159
|
+
: event.current?.value,
|
158
160
|
0,
|
159
161
|
tdsState.queryBuilderState.observerContext,
|
160
162
|
);
|
@@ -221,7 +223,7 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
221
223
|
(conditionState.value instanceof EnumValueInstanceValue
|
222
224
|
? conditionState.value.values.map((ef) => ef.value.name)
|
223
225
|
: conditionState.value.values
|
224
|
-
).includes(event?.value);
|
226
|
+
).includes(event.current?.value);
|
225
227
|
if (!doesValueAlreadyExist) {
|
226
228
|
const currentValueSpecificaton = conditionState.value;
|
227
229
|
const newValueSpecification =
|
@@ -249,7 +251,7 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
249
251
|
: (v as InstanceValue).values,
|
250
252
|
)
|
251
253
|
.flat()
|
252
|
-
.includes(event?.value);
|
254
|
+
.includes(event.current?.value);
|
253
255
|
if (!doesValueAlreadyExist) {
|
254
256
|
const newValueSpecification = (
|
255
257
|
isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator
|
@@ -285,12 +287,14 @@ const QueryBuilderGridResultContextMenu = observer(
|
|
285
287
|
};
|
286
288
|
|
287
289
|
const handleCopyCellValue = applicationStore.guardUnhandledError(() =>
|
288
|
-
applicationStore.clipboardService.copyTextToClipboard(
|
290
|
+
applicationStore.clipboardService.copyTextToClipboard(
|
291
|
+
event.current?.value,
|
292
|
+
),
|
289
293
|
);
|
290
294
|
|
291
295
|
const handleCopyRowValue = applicationStore.guardUnhandledError(() =>
|
292
296
|
applicationStore.clipboardService.copyTextToClipboard(
|
293
|
-
Object.values(event?.data).toString(),
|
297
|
+
Object.values(event.current?.data).toString(),
|
294
298
|
),
|
295
299
|
);
|
296
300
|
|
@@ -330,8 +334,9 @@ const QueryBuilderGridResult = observer(
|
|
330
334
|
const { executionResult, queryBuilderState } = props;
|
331
335
|
const fetchStructureImplementation =
|
332
336
|
queryBuilderState.fetchStructureState.implementation;
|
333
|
-
const
|
334
|
-
|
337
|
+
const cellDoubleClickedEvent = useRef<DataGridCellMouseOverEvent | null>(
|
338
|
+
null,
|
339
|
+
);
|
335
340
|
const columns = executionResult.result.columns;
|
336
341
|
const rowData = executionResult.result.rows.map((_row, rowIdx) => {
|
337
342
|
const row: PlainObject = {};
|
@@ -381,7 +386,7 @@ const QueryBuilderGridResult = observer(
|
|
381
386
|
// in. hence why we set the cell every time we mouse over
|
382
387
|
// rather than making user click multiple times.
|
383
388
|
onCellMouseOver={(event): void => {
|
384
|
-
|
389
|
+
cellDoubleClickedEvent.current = event;
|
385
390
|
}}
|
386
391
|
suppressFieldDotNotation={true}
|
387
392
|
columnDefs={columns.map((colName) => ({
|
@@ -425,7 +430,7 @@ const QueryBuilderResultValues = observer(
|
|
425
430
|
inputValue={JSON.stringify(
|
426
431
|
extractExecutionResultValues(executionResult),
|
427
432
|
null,
|
428
|
-
|
433
|
+
DEFAULT_TAB_SIZE,
|
429
434
|
)}
|
430
435
|
isReadOnly={true}
|
431
436
|
/>
|
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
} from '@finos/legend-art';
|
27
27
|
import { observer } from 'mobx-react-lite';
|
28
28
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
29
|
-
import { QUERY_BUILDER_TEST_ID } from '../
|
29
|
+
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
30
30
|
import {
|
31
31
|
type Class,
|
32
32
|
type Mapping,
|
@@ -41,14 +41,13 @@ import {
|
|
41
41
|
VARIABLE_REFERENCE_TOKEN,
|
42
42
|
isElementDeprecated,
|
43
43
|
PrimitiveType,
|
44
|
-
type PureModel,
|
45
44
|
} from '@finos/legend-graph';
|
45
|
+
import { useApplicationStore } from '@finos/legend-application';
|
46
46
|
import {
|
47
|
-
type PackageableElementOption,
|
48
|
-
getPackageableElementOptionFormatter,
|
49
47
|
buildElementOption,
|
50
|
-
|
51
|
-
|
48
|
+
getPackageableElementOptionFormatter,
|
49
|
+
type PackageableElementOption,
|
50
|
+
} from '@finos/legend-lego/graph-editor';
|
52
51
|
import { MilestoningParametersEditor } from './explorer/QueryBuilderMilestoningEditor.js';
|
53
52
|
|
54
53
|
export const getParameterValue = (
|
@@ -188,7 +187,6 @@ export const QueryBuilderClassSelector = observer(
|
|
188
187
|
darkMode:
|
189
188
|
!applicationStore.layoutService
|
190
189
|
.TEMPORARY__isLightColorThemeEnabled,
|
191
|
-
graph: queryBuilderState.graphManagerState.graph,
|
192
190
|
})}
|
193
191
|
/>
|
194
192
|
{queryBuilderState.isQuerySupported && (
|
@@ -226,7 +224,6 @@ export const buildRuntimeValueOption = (
|
|
226
224
|
|
227
225
|
export const getRuntimeOptionFormatter = (props: {
|
228
226
|
darkMode?: boolean;
|
229
|
-
pureModel: PureModel;
|
230
227
|
}): ((option: { value: Runtime }) => React.ReactNode) =>
|
231
228
|
function RuntimeOptionLabel(option: { value: Runtime }): React.ReactNode {
|
232
229
|
if (option.value instanceof RuntimePointer) {
|
@@ -351,7 +348,6 @@ const BasicQueryBuilderSetup = observer(
|
|
351
348
|
darkMode:
|
352
349
|
!applicationStore.layoutService
|
353
350
|
.TEMPORARY__isLightColorThemeEnabled,
|
354
|
-
graph: queryBuilderState.graphManagerState.graph,
|
355
351
|
})}
|
356
352
|
/>
|
357
353
|
</div>
|
@@ -386,7 +382,6 @@ const BasicQueryBuilderSetup = observer(
|
|
386
382
|
darkMode:
|
387
383
|
!applicationStore.layoutService
|
388
384
|
.TEMPORARY__isLightColorThemeEnabled,
|
389
|
-
pureModel: queryBuilderState.graphManagerState.graph,
|
390
385
|
})}
|
391
386
|
/>
|
392
387
|
</div>
|
@@ -31,12 +31,12 @@ import {
|
|
31
31
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
32
32
|
import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
|
33
33
|
import { flowResult } from 'mobx';
|
34
|
+
import { useApplicationStore } from '@finos/legend-application';
|
35
|
+
import { LambdaEditor } from './shared/LambdaEditor.js';
|
34
36
|
import {
|
35
37
|
CODE_EDITOR_LANGUAGE,
|
36
|
-
|
37
|
-
} from '@finos/legend-
|
38
|
-
import { LambdaEditor } from './shared/LambdaEditor.js';
|
39
|
-
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
38
|
+
CodeEditor,
|
39
|
+
} from '@finos/legend-lego/code-editor';
|
40
40
|
|
41
41
|
export const QueryBuilderTextEditor = observer(
|
42
42
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
@@ -29,7 +29,7 @@ import {
|
|
29
29
|
import { QueryBuilderSidebar } from './QueryBuilderSideBar.js';
|
30
30
|
import { QueryBuilderParametersPanel } from './QueryBuilderParametersPanel.js';
|
31
31
|
|
32
|
-
const
|
32
|
+
const QueryBuilderUnsupportedQueryViewer = observer(
|
33
33
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
34
34
|
const { queryBuilderState } = props;
|
35
35
|
const queryUnsupportedState = queryBuilderState.unsupportedQueryState;
|
@@ -77,7 +77,7 @@ export const QueryBuilderUnsupportedQueryEditor = observer(
|
|
77
77
|
</ResizablePanel>
|
78
78
|
<ResizablePanelSplitter />
|
79
79
|
<ResizablePanel>
|
80
|
-
<
|
80
|
+
<QueryBuilderUnsupportedQueryViewer
|
81
81
|
queryBuilderState={queryBuilderState}
|
82
82
|
/>
|
83
83
|
</ResizablePanel>
|
@@ -24,7 +24,7 @@ import {
|
|
24
24
|
type LegendApplicationSetup,
|
25
25
|
} from '@finos/legend-application';
|
26
26
|
import packageJson from '../../package.json';
|
27
|
-
import { QUERY_BUILDER_SETTING_CONFIG } from '../
|
27
|
+
import { QUERY_BUILDER_SETTING_CONFIG } from '../__lib__/QueryBuilderSetting.js';
|
28
28
|
import { QUERY_BUILDER_COMMAND_CONFIG } from '../stores/QueryBuilderCommand.js';
|
29
29
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
30
30
|
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
@@ -15,7 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { type RenderResult, render, waitFor } from '@testing-library/react';
|
18
|
-
import {
|
18
|
+
import { LogService } from '@finos/legend-shared';
|
19
|
+
import { createSpy } from '@finos/legend-shared/test';
|
19
20
|
import {
|
20
21
|
type RawMappingModelCoverageAnalysisResult,
|
21
22
|
type RawLambda,
|
@@ -24,24 +25,23 @@ import {
|
|
24
25
|
RuntimePointer,
|
25
26
|
} from '@finos/legend-graph';
|
26
27
|
import {
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
TEST__provideMockedApplicationStore,
|
31
|
-
WebApplicationNavigator,
|
32
|
-
TEST__provideMockedWebApplicationNavigator,
|
33
|
-
LegendApplicationComponentFrameworkProvider,
|
34
|
-
Router,
|
35
|
-
createMemoryHistory,
|
28
|
+
ApplicationStoreProvider,
|
29
|
+
ApplicationFrameworkProvider,
|
30
|
+
ApplicationStore,
|
36
31
|
} from '@finos/legend-application';
|
32
|
+
import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
|
37
33
|
import type { Entity } from '@finos/legend-storage';
|
38
|
-
import { QueryBuilder } from '
|
34
|
+
import { QueryBuilder } from '../QueryBuilder.js';
|
39
35
|
import {
|
40
36
|
type QueryBuilderState,
|
41
37
|
INTERNAL__BasicQueryBuilderState,
|
42
|
-
} from '
|
43
|
-
import { QueryBuilder_GraphManagerPreset } from '
|
44
|
-
import { QUERY_BUILDER_TEST_ID } from '
|
38
|
+
} from '../../stores/QueryBuilderState.js';
|
39
|
+
import { QueryBuilder_GraphManagerPreset } from '../../graph-manager/QueryBuilder_GraphManagerPreset.js';
|
40
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
41
|
+
import {
|
42
|
+
TEST__LegendApplicationPluginManager,
|
43
|
+
TEST__getGenericApplicationConfig,
|
44
|
+
} from '../../stores/__test-utils__/QueryBuilderStateTestUtils.js';
|
45
45
|
|
46
46
|
export const TEST__setUpQueryBuilder = async (
|
47
47
|
entities: Entity[],
|
@@ -53,12 +53,15 @@ export const TEST__setUpQueryBuilder = async (
|
|
53
53
|
renderResult: RenderResult;
|
54
54
|
queryBuilderState: QueryBuilderState;
|
55
55
|
}> => {
|
56
|
-
const
|
57
|
-
|
56
|
+
const MOCK__pluginManager = TEST__LegendApplicationPluginManager.create();
|
57
|
+
MOCK__pluginManager.usePresets([
|
58
|
+
new QueryBuilder_GraphManagerPreset(),
|
59
|
+
]).install();
|
58
60
|
const graphManagerState = new GraphManagerState(
|
59
|
-
|
61
|
+
MOCK__pluginManager,
|
60
62
|
new LogService(),
|
61
63
|
);
|
64
|
+
|
62
65
|
await graphManagerState.initializeSystem();
|
63
66
|
await graphManagerState.graphManager.buildGraph(
|
64
67
|
graphManagerState.graph,
|
@@ -66,18 +69,13 @@ export const TEST__setUpQueryBuilder = async (
|
|
66
69
|
graphManagerState.graphBuildState,
|
67
70
|
);
|
68
71
|
|
69
|
-
const
|
70
|
-
const navigator = new WebApplicationNavigator(history);
|
71
|
-
TEST__provideMockedWebApplicationNavigator({ mock: navigator });
|
72
|
-
|
73
|
-
const applicationStore = TEST__provideMockedApplicationStore(
|
72
|
+
const MOCK__applicationStore = new ApplicationStore(
|
74
73
|
TEST__getGenericApplicationConfig(),
|
75
|
-
|
76
|
-
{ navigator },
|
74
|
+
MOCK__pluginManager,
|
77
75
|
);
|
78
76
|
|
79
77
|
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
|
80
|
-
|
78
|
+
MOCK__applicationStore,
|
81
79
|
graphManagerState,
|
82
80
|
);
|
83
81
|
const mapping = graphManagerState.graph.getMapping(mappingPath);
|
@@ -103,16 +101,13 @@ export const TEST__setUpQueryBuilder = async (
|
|
103
101
|
}
|
104
102
|
|
105
103
|
const renderResult = render(
|
106
|
-
<
|
107
|
-
<
|
108
|
-
|
109
|
-
pluginManager={pluginManager}
|
110
|
-
>
|
111
|
-
<LegendApplicationComponentFrameworkProvider>
|
104
|
+
<ApplicationStoreProvider store={MOCK__applicationStore}>
|
105
|
+
<TEST__BrowserEnvironmentProvider>
|
106
|
+
<ApplicationFrameworkProvider>
|
112
107
|
<QueryBuilder queryBuilderState={queryBuilderState} />
|
113
|
-
</
|
114
|
-
</
|
115
|
-
</
|
108
|
+
</ApplicationFrameworkProvider>
|
109
|
+
</TEST__BrowserEnvironmentProvider>
|
110
|
+
</ApplicationStoreProvider>,
|
116
111
|
);
|
117
112
|
|
118
113
|
await waitFor(() =>
|