@finos/legend-query-builder 2.1.7 → 3.0.1
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 +4 -4
- 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.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +3 -3
- 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 +16 -0
- 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.js +2 -2
- 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 +3 -3
- 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 +7 -5
- 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 +5 -3
- 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 +2 -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 +5 -3
- 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
@@ -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(() =>
|
@@ -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('.');
|
@@ -48,7 +48,7 @@ import {
|
|
48
48
|
CustomSelectorInput,
|
49
49
|
FolderIcon,
|
50
50
|
} from '@finos/legend-art';
|
51
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
51
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
52
52
|
import {
|
53
53
|
deepClone,
|
54
54
|
filterByType,
|
@@ -74,7 +74,6 @@ import {
|
|
74
74
|
SERIALIZATION_TYPE,
|
75
75
|
type QueryBuilderGraphFetchTreeState,
|
76
76
|
} from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
77
|
-
import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
|
78
77
|
import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
|
79
78
|
import {
|
80
79
|
type PackageableElement,
|
@@ -85,9 +84,12 @@ import {
|
|
85
84
|
import {
|
86
85
|
ActionAlertActionType,
|
87
86
|
ActionAlertType,
|
87
|
+
} from '@finos/legend-application';
|
88
|
+
import {
|
88
89
|
buildElementOption,
|
90
|
+
getClassPropertyIcon,
|
89
91
|
type PackageableElementOption,
|
90
|
-
} from '@finos/legend-
|
92
|
+
} from '@finos/legend-lego/graph-editor';
|
91
93
|
|
92
94
|
const getBindingFormatter = (props: {
|
93
95
|
darkMode?: boolean;
|
@@ -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
|
|
@@ -34,12 +34,8 @@ import {
|
|
34
34
|
EnumValueExplicitReference,
|
35
35
|
EnumValueInstanceValue,
|
36
36
|
matchFunctionName,
|
37
|
-
SUPPORTED_FUNCTIONS,
|
38
|
-
DAY_OF_WEEK,
|
39
|
-
DURATION_UNIT,
|
40
37
|
type ObserverContext,
|
41
38
|
PrimitiveType,
|
42
|
-
getSupportFunctionFullPath,
|
43
39
|
} from '@finos/legend-graph';
|
44
40
|
import {
|
45
41
|
guaranteeNonNullable,
|
@@ -58,6 +54,10 @@ import {
|
|
58
54
|
instanceValue_setValues,
|
59
55
|
valueSpecification_setGenericType,
|
60
56
|
} from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
57
|
+
import {
|
58
|
+
QUERY_BUILDER_PURE_PATH,
|
59
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS,
|
60
|
+
} from '../../graph/QueryBuilderMetaModelConst.js';
|
61
61
|
|
62
62
|
export enum CUSTOM_DATE_PICKER_OPTION {
|
63
63
|
ABSOLUTE_DATE = 'Absolute Date',
|
@@ -237,6 +237,13 @@ const reservedCustomDateOptions: CustomDateOption[] = [
|
|
237
237
|
),
|
238
238
|
];
|
239
239
|
|
240
|
+
const getSupportedDateFunctionFullPath = (
|
241
|
+
functionName: string,
|
242
|
+
): string | undefined =>
|
243
|
+
Object.values(QUERY_BUILDER_SUPPORTED_FUNCTIONS).find((_func) =>
|
244
|
+
matchFunctionName(functionName, _func),
|
245
|
+
);
|
246
|
+
|
240
247
|
/**
|
241
248
|
* Generate pure date functions based on the DatePickerOption.
|
242
249
|
*/
|
@@ -247,7 +254,7 @@ const buildPureDateFunctionExpression = (
|
|
247
254
|
): SimpleFunctionExpression => {
|
248
255
|
if (datePickerOption instanceof CustomPreviousDayOfWeekOption) {
|
249
256
|
const previousFridaySFE = new SimpleFunctionExpression(
|
250
|
-
|
257
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.PREVIOUS_DAY_OF_WEEK,
|
251
258
|
);
|
252
259
|
valueSpecification_setGenericType(
|
253
260
|
previousFridaySFE,
|
@@ -255,7 +262,7 @@ const buildPureDateFunctionExpression = (
|
|
255
262
|
);
|
256
263
|
const dayOfWeekEnumIntanceValue = new EnumValueInstanceValue(
|
257
264
|
GenericTypeExplicitReference.create(
|
258
|
-
new GenericType(graph.getType(DAY_OF_WEEK)),
|
265
|
+
new GenericType(graph.getType(QUERY_BUILDER_PURE_PATH.DAY_OF_WEEK)),
|
259
266
|
),
|
260
267
|
);
|
261
268
|
instanceValue_setValues(
|
@@ -265,7 +272,7 @@ const buildPureDateFunctionExpression = (
|
|
265
272
|
EnumValueExplicitReference.create(
|
266
273
|
guaranteeNonNullable(
|
267
274
|
graph
|
268
|
-
.getEnumeration(DAY_OF_WEEK)
|
275
|
+
.getEnumeration(QUERY_BUILDER_PURE_PATH.DAY_OF_WEEK)
|
269
276
|
.values.filter((e) => e.name === datePickerOption.day)[0],
|
270
277
|
),
|
271
278
|
),
|
@@ -282,7 +289,7 @@ const buildPureDateFunctionExpression = (
|
|
282
289
|
switch (datePickerOption.unit) {
|
283
290
|
case CUSTOM_DATE_FIRST_DAY_OF_UNIT.YEAR: {
|
284
291
|
const firstDayOfYearSFE = new SimpleFunctionExpression(
|
285
|
-
|
292
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR,
|
286
293
|
);
|
287
294
|
valueSpecification_setGenericType(
|
288
295
|
firstDayOfYearSFE,
|
@@ -294,7 +301,7 @@ const buildPureDateFunctionExpression = (
|
|
294
301
|
}
|
295
302
|
case CUSTOM_DATE_FIRST_DAY_OF_UNIT.QUARTER: {
|
296
303
|
const firstDayOfQuarterSFE = new SimpleFunctionExpression(
|
297
|
-
|
304
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER,
|
298
305
|
);
|
299
306
|
valueSpecification_setGenericType(
|
300
307
|
firstDayOfQuarterSFE,
|
@@ -306,7 +313,7 @@ const buildPureDateFunctionExpression = (
|
|
306
313
|
}
|
307
314
|
case CUSTOM_DATE_FIRST_DAY_OF_UNIT.MONTH: {
|
308
315
|
const firstDayOfMonthSFE = new SimpleFunctionExpression(
|
309
|
-
|
316
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH,
|
310
317
|
);
|
311
318
|
valueSpecification_setGenericType(
|
312
319
|
firstDayOfMonthSFE,
|
@@ -318,7 +325,7 @@ const buildPureDateFunctionExpression = (
|
|
318
325
|
}
|
319
326
|
case CUSTOM_DATE_FIRST_DAY_OF_UNIT.WEEK: {
|
320
327
|
const firstDayOfWeekSFE = new SimpleFunctionExpression(
|
321
|
-
|
328
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK,
|
322
329
|
);
|
323
330
|
valueSpecification_setGenericType(
|
324
331
|
firstDayOfWeekSFE,
|
@@ -337,19 +344,19 @@ const buildPureDateFunctionExpression = (
|
|
337
344
|
switch (datePickerOption.value) {
|
338
345
|
case CUSTOM_DATE_PICKER_OPTION.TODAY: {
|
339
346
|
return createSupportedFunctionExpression(
|
340
|
-
|
347
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TODAY,
|
341
348
|
PrimitiveType.STRICTDATE,
|
342
349
|
);
|
343
350
|
}
|
344
351
|
case CUSTOM_DATE_PICKER_OPTION.NOW: {
|
345
352
|
return createSupportedFunctionExpression(
|
346
|
-
|
353
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW,
|
347
354
|
PrimitiveType.DATETIME,
|
348
355
|
);
|
349
356
|
}
|
350
357
|
case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_YEAR: {
|
351
358
|
const firstDayOfYearSFE = new SimpleFunctionExpression(
|
352
|
-
|
359
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR,
|
353
360
|
);
|
354
361
|
valueSpecification_setGenericType(
|
355
362
|
firstDayOfYearSFE,
|
@@ -361,7 +368,7 @@ const buildPureDateFunctionExpression = (
|
|
361
368
|
}
|
362
369
|
case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_QUARTER: {
|
363
370
|
const firstDayOfQuarterSFE = new SimpleFunctionExpression(
|
364
|
-
|
371
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER,
|
365
372
|
);
|
366
373
|
valueSpecification_setGenericType(
|
367
374
|
firstDayOfQuarterSFE,
|
@@ -373,7 +380,7 @@ const buildPureDateFunctionExpression = (
|
|
373
380
|
}
|
374
381
|
case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_MONTH: {
|
375
382
|
const firstDayOfMonthSFE = new SimpleFunctionExpression(
|
376
|
-
|
383
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH,
|
377
384
|
);
|
378
385
|
valueSpecification_setGenericType(
|
379
386
|
firstDayOfMonthSFE,
|
@@ -385,7 +392,7 @@ const buildPureDateFunctionExpression = (
|
|
385
392
|
}
|
386
393
|
case CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_WEEK: {
|
387
394
|
const firstDayOfWeekSFE = new SimpleFunctionExpression(
|
388
|
-
|
395
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK,
|
389
396
|
);
|
390
397
|
valueSpecification_setGenericType(
|
391
398
|
firstDayOfWeekSFE,
|
@@ -410,7 +417,9 @@ const buildPureDurationEnumValue = (
|
|
410
417
|
unitString: string,
|
411
418
|
graph: PureModel,
|
412
419
|
): Enum => {
|
413
|
-
const durationUnitEnum = graph.getEnumeration(
|
420
|
+
const durationUnitEnum = graph.getEnumeration(
|
421
|
+
QUERY_BUILDER_PURE_PATH.DURATION_UNIT,
|
422
|
+
);
|
414
423
|
const targetPureDurationEnumValue = durationUnitEnum.values.filter(
|
415
424
|
(e) =>
|
416
425
|
e.name ===
|
@@ -436,7 +445,7 @@ const buildPureAdjustDateFunction = (
|
|
436
445
|
observerContext: ObserverContext,
|
437
446
|
): SimpleFunctionExpression => {
|
438
447
|
const dateAdjustSimpleFunctionExpression = new SimpleFunctionExpression(
|
439
|
-
|
448
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.ADJUST,
|
440
449
|
);
|
441
450
|
functionExpression_addParameterValue(
|
442
451
|
dateAdjustSimpleFunctionExpression,
|
@@ -451,7 +460,9 @@ const buildPureAdjustDateFunction = (
|
|
451
460
|
observerContext,
|
452
461
|
);
|
453
462
|
if (customDateOption.direction === CUSTOM_DATE_OPTION_DIRECTION.BEFORE) {
|
454
|
-
const minusFunc = new SimpleFunctionExpression(
|
463
|
+
const minusFunc = new SimpleFunctionExpression(
|
464
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.MINUS,
|
465
|
+
);
|
455
466
|
functionExpression_addParameterValue(
|
456
467
|
minusFunc,
|
457
468
|
buildPrimitiveInstanceValue(
|
@@ -481,7 +492,7 @@ const buildPureAdjustDateFunction = (
|
|
481
492
|
}
|
482
493
|
const durationUnitEnumIntanceValue = new EnumValueInstanceValue(
|
483
494
|
GenericTypeExplicitReference.create(
|
484
|
-
new GenericType(graph.getType(DURATION_UNIT)),
|
495
|
+
new GenericType(graph.getType(QUERY_BUILDER_PURE_PATH.DURATION_UNIT)),
|
485
496
|
),
|
486
497
|
);
|
487
498
|
instanceValue_setValues(
|
@@ -521,7 +532,10 @@ const buildCustomDateOptionDurationValue = (
|
|
521
532
|
return durationParam instanceof PrimitiveInstanceValue
|
522
533
|
? (durationParam.values[0] as number)
|
523
534
|
: durationParam instanceof SimpleFunctionExpression &&
|
524
|
-
matchFunctionName(
|
535
|
+
matchFunctionName(
|
536
|
+
durationParam.functionName,
|
537
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.MINUS,
|
538
|
+
)
|
525
539
|
? durationParam.parametersValues[0] instanceof PrimitiveInstanceValue
|
526
540
|
? (durationParam.parametersValues[0].values[0] as number)
|
527
541
|
: 0
|
@@ -538,7 +552,7 @@ const buildCustomDateOptionDirectionValue = (
|
|
538
552
|
SimpleFunctionExpression &&
|
539
553
|
matchFunctionName(
|
540
554
|
pureDateAdjustFunction.parametersValues[1].functionName,
|
541
|
-
|
555
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.MINUS,
|
542
556
|
)
|
543
557
|
? CUSTOM_DATE_OPTION_DIRECTION.BEFORE
|
544
558
|
: CUSTOM_DATE_OPTION_DIRECTION.AFTER;
|
@@ -572,18 +586,18 @@ const buildCustomDateOptionReferenceMomentValue = (
|
|
572
586
|
const funcName = (
|
573
587
|
pureDateAjustFunction.parametersValues[0] as SimpleFunctionExpression
|
574
588
|
).functionName;
|
575
|
-
switch (
|
576
|
-
case
|
589
|
+
switch (getSupportedDateFunctionFullPath(funcName)) {
|
590
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.TODAY:
|
577
591
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.TODAY;
|
578
|
-
case
|
592
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW:
|
579
593
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.NOW;
|
580
|
-
case
|
594
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR:
|
581
595
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_YEAR;
|
582
|
-
case
|
596
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER:
|
583
597
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_QUARTER;
|
584
|
-
case
|
598
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH:
|
585
599
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_MONTH;
|
586
|
-
case
|
600
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK:
|
587
601
|
return CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_WEEK;
|
588
602
|
default:
|
589
603
|
throw new UnsupportedOperationError(
|
@@ -603,7 +617,7 @@ const buildCustomDateOption = (
|
|
603
617
|
valueSpecification instanceof SimpleFunctionExpression &&
|
604
618
|
matchFunctionName(
|
605
619
|
valueSpecification.functionName,
|
606
|
-
|
620
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.ADJUST,
|
607
621
|
)
|
608
622
|
) {
|
609
623
|
const customDateOption = new CustomDateOption(
|
@@ -640,38 +654,38 @@ export const buildDatePickerOption = (
|
|
640
654
|
valueSpecification: SimpleFunctionExpression | PrimitiveInstanceValue,
|
641
655
|
): DatePickerOption => {
|
642
656
|
if (valueSpecification instanceof SimpleFunctionExpression) {
|
643
|
-
switch (
|
644
|
-
case
|
657
|
+
switch (getSupportedDateFunctionFullPath(valueSpecification.functionName)) {
|
658
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.TODAY:
|
645
659
|
return new DatePickerOption(
|
646
660
|
CUSTOM_DATE_PICKER_OPTION.TODAY,
|
647
661
|
CUSTOM_DATE_PICKER_OPTION.TODAY,
|
648
662
|
);
|
649
|
-
case
|
663
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOW:
|
650
664
|
return new DatePickerOption(
|
651
665
|
CUSTOM_DATE_PICKER_OPTION.NOW,
|
652
666
|
CUSTOM_DATE_PICKER_OPTION.NOW,
|
653
667
|
);
|
654
|
-
case
|
668
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_YEAR:
|
655
669
|
return new CustomFirstDayOfOption(
|
656
670
|
CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_YEAR,
|
657
671
|
CUSTOM_DATE_FIRST_DAY_OF_UNIT.YEAR,
|
658
672
|
);
|
659
|
-
case
|
673
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_QUARTER:
|
660
674
|
return new CustomFirstDayOfOption(
|
661
675
|
CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_QUARTER,
|
662
676
|
CUSTOM_DATE_FIRST_DAY_OF_UNIT.QUARTER,
|
663
677
|
);
|
664
|
-
case
|
678
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_MONTH:
|
665
679
|
return new CustomFirstDayOfOption(
|
666
680
|
CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_MONTH,
|
667
681
|
CUSTOM_DATE_FIRST_DAY_OF_UNIT.MONTH,
|
668
682
|
);
|
669
|
-
case
|
683
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.FIRST_DAY_OF_WEEK:
|
670
684
|
return new CustomFirstDayOfOption(
|
671
685
|
CUSTOM_DATE_OPTION_REFERENCE_MOMENT.FIRST_DAY_OF_WEEK,
|
672
686
|
CUSTOM_DATE_FIRST_DAY_OF_UNIT.WEEK,
|
673
687
|
);
|
674
|
-
case
|
688
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.PREVIOUS_DAY_OF_WEEK:
|
675
689
|
return new CustomPreviousDayOfWeekOption(
|
676
690
|
`Previous ${
|
677
691
|
(valueSpecification.parametersValues[0] as EnumValueInstanceValue)
|
@@ -680,8 +694,7 @@ export const buildDatePickerOption = (
|
|
680
694
|
(valueSpecification.parametersValues[0] as EnumValueInstanceValue)
|
681
695
|
.values[0]?.value.name as CUSTOM_DATE_DAY_OF_WEEK,
|
682
696
|
);
|
683
|
-
|
684
|
-
case SUPPORTED_FUNCTIONS.ADJUST:
|
697
|
+
case QUERY_BUILDER_SUPPORTED_FUNCTIONS.ADJUST:
|
685
698
|
return buildCustomDateOption(valueSpecification);
|
686
699
|
default:
|
687
700
|
return new DatePickerOption('', '');
|
@@ -37,6 +37,8 @@ import {
|
|
37
37
|
normalizeLineEnding,
|
38
38
|
clearMarkers,
|
39
39
|
setErrorMarkers,
|
40
|
+
CODE_EDITOR_LANGUAGE,
|
41
|
+
CODE_EDITOR_THEME,
|
40
42
|
} from '@finos/legend-lego/code-editor';
|
41
43
|
import type { LambdaEditorState } from '../../stores/shared/LambdaEditorState.js';
|
42
44
|
import {
|
@@ -48,12 +50,10 @@ import {
|
|
48
50
|
import { flowResult } from 'mobx';
|
49
51
|
import { ParserError, type EngineError, type Type } from '@finos/legend-graph';
|
50
52
|
import {
|
51
|
-
|
52
|
-
CODE_EDITOR_THEME,
|
53
|
-
TAB_SIZE,
|
53
|
+
DEFAULT_TAB_SIZE,
|
54
54
|
useApplicationStore,
|
55
55
|
} from '@finos/legend-application';
|
56
|
-
import { QUERY_BUILDER_TEST_ID } from '../../
|
56
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
57
57
|
|
58
58
|
const LambdaErrorFeedback: React.FC<{
|
59
59
|
error?: EngineError | undefined;
|
@@ -303,7 +303,7 @@ const LambdaEditorInline = observer(
|
|
303
303
|
|
304
304
|
// Set the errors
|
305
305
|
if (editorModel) {
|
306
|
-
editorModel.updateOptions({ tabSize:
|
306
|
+
editorModel.updateOptions({ tabSize: DEFAULT_TAB_SIZE });
|
307
307
|
const error = parserError ?? compilationError;
|
308
308
|
if (error?.sourceInformation) {
|
309
309
|
setErrorMarkers(editorModel, [
|
@@ -321,6 +321,7 @@ const LambdaEditorInline = observer(
|
|
321
321
|
}
|
322
322
|
}
|
323
323
|
|
324
|
+
// dispose editor
|
324
325
|
useEffect(
|
325
326
|
() => (): void => {
|
326
327
|
if (editor) {
|
@@ -330,7 +331,7 @@ const LambdaEditorInline = observer(
|
|
330
331
|
onDidFocusEditorWidgetDisposer.current?.dispose();
|
331
332
|
},
|
332
333
|
[editor],
|
333
|
-
);
|
334
|
+
);
|
334
335
|
|
335
336
|
return (
|
336
337
|
<>
|
@@ -537,7 +538,7 @@ const LambdaEditorPopUp = observer(
|
|
537
538
|
|
538
539
|
// Set the errors
|
539
540
|
if (editorModel) {
|
540
|
-
editorModel.updateOptions({ tabSize:
|
541
|
+
editorModel.updateOptions({ tabSize: DEFAULT_TAB_SIZE });
|
541
542
|
const error = parserError ?? compilationError;
|
542
543
|
if (error?.sourceInformation) {
|
543
544
|
setErrorMarkers(editorModel, [
|
@@ -561,6 +562,7 @@ const LambdaEditorPopUp = observer(
|
|
561
562
|
).catch(applicationStore.alertUnhandledError);
|
562
563
|
}, [applicationStore, lambdaEditorState]);
|
563
564
|
|
565
|
+
// dispose editor
|
564
566
|
useEffect(
|
565
567
|
() => (): void => {
|
566
568
|
if (editor) {
|
@@ -569,7 +571,7 @@ const LambdaEditorPopUp = observer(
|
|
569
571
|
onDidChangeModelContentEventDisposer.current?.dispose();
|
570
572
|
},
|
571
573
|
[editor],
|
572
|
-
);
|
574
|
+
);
|
573
575
|
|
574
576
|
return (
|
575
577
|
<Dialog
|