@finos/legend-application-query 5.2.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendQuery.d.ts.map +1 -1
- package/lib/application/LegendQuery.js +4 -7
- package/lib/application/LegendQuery.js.map +1 -1
- package/lib/components/LegendQueryApplication.d.ts +0 -1
- package/lib/components/LegendQueryApplication.d.ts.map +1 -1
- package/lib/components/LegendQueryApplication.js +2 -2
- package/lib/components/LegendQueryApplication.js.map +1 -1
- package/lib/components/QueryEditor.d.ts +2 -3
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +83 -32
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts +5 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.js +21 -20
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/QueryEditorStoreProvider.d.ts +2 -3
- package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -1
- package/lib/components/QueryEditorStoreProvider.js +5 -5
- package/lib/components/QueryEditorStoreProvider.js.map +1 -1
- package/lib/components/QuerySetup.js +17 -17
- package/lib/components/QuerySetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -4
- package/lib/index.js.map +1 -1
- package/lib/package.json +8 -14
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +7 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/LegendQueryRouter.d.ts +8 -12
- package/lib/stores/LegendQueryRouter.d.ts.map +1 -1
- package/lib/stores/LegendQueryRouter.js +6 -7
- package/lib/stores/LegendQueryRouter.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +22 -11
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +102 -67
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QuerySetupStore.d.ts +4 -4
- package/lib/stores/QuerySetupStore.d.ts.map +1 -1
- package/lib/stores/QuerySetupStore.js +4 -4
- package/lib/stores/QuerySetupStore.js.map +1 -1
- package/package.json +15 -21
- package/src/application/LegendQuery.tsx +7 -8
- package/src/components/LegendQueryApplication.tsx +7 -7
- package/src/components/QueryEditor.tsx +371 -134
- package/src/components/QueryEditorComponentTestUtils.tsx +40 -29
- package/src/components/QueryEditorStoreProvider.tsx +7 -9
- package/src/components/QuerySetup.tsx +25 -25
- package/src/index.ts +2 -10
- package/src/stores/LegendQueryApplicationPlugin.ts +12 -0
- package/src/stores/LegendQueryRouter.ts +11 -16
- package/src/stores/QueryEditorStore.ts +167 -113
- package/src/stores/QuerySetupStore.ts +8 -6
- package/tsconfig.json +2 -111
- package/tsconfig.package.json +1 -1
- package/lib/QueryBuilder_Const.d.ts +0 -77
- package/lib/QueryBuilder_Const.d.ts.map +0 -1
- package/lib/QueryBuilder_Const.js +0 -85
- package/lib/QueryBuilder_Const.js.map +0 -1
- package/lib/components/QueryBuilder.d.ts +0 -23
- package/lib/components/QueryBuilder.d.ts.map +0 -1
- package/lib/components/QueryBuilder.js +0 -111
- package/lib/components/QueryBuilder.js.map +0 -1
- package/lib/components/QueryBuilderParameterPanel.d.ts +0 -30
- package/lib/components/QueryBuilderParameterPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderParameterPanel.js +0 -128
- package/lib/components/QueryBuilderParameterPanel.js.map +0 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -30
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +0 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +0 -116
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +0 -1
- package/lib/components/QueryBuilderResultPanel.d.ts +0 -23
- package/lib/components/QueryBuilderResultPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderResultPanel.js +0 -242
- package/lib/components/QueryBuilderResultPanel.js.map +0 -1
- package/lib/components/QueryBuilderSetupPanel.d.ts +0 -23
- package/lib/components/QueryBuilderSetupPanel.d.ts.map +0 -1
- package/lib/components/QueryBuilderSetupPanel.js +0 -149
- package/lib/components/QueryBuilderSetupPanel.js.map +0 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +0 -23
- package/lib/components/QueryBuilderTextEditor.d.ts.map +0 -1
- package/lib/components/QueryBuilderTextEditor.js +0 -48
- package/lib/components/QueryBuilderTextEditor.js.map +0 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -23
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +0 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +0 -37
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +0 -1
- package/lib/components/QueryBuilder_TestID.d.ts +0 -26
- package/lib/components/QueryBuilder_TestID.d.ts.map +0 -1
- package/lib/components/QueryBuilder_TestID.js +0 -27
- package/lib/components/QueryBuilder_TestID.js.map +0 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +0 -36
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +0 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +0 -335
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +0 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -23
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +0 -147
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +0 -24
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js +0 -120
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -24
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +0 -200
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -23
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +0 -52
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -32
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +0 -94
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -31
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +0 -378
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +0 -23
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +0 -216
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -23
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +0 -88
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +0 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -23
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +0 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +0 -316
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +0 -1
- package/lib/components/shared/ElementIconUtils.d.ts +0 -18
- 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/components/shared/QueryBuilderLambdaEditor.d.ts +0 -43
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
- package/lib/components/shared/QueryBuilderLambdaEditor.js +0 -47
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +0 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -20
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +0 -28
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +0 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -26
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +0 -32
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +0 -21
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +0 -27
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +0 -24
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +0 -32
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -21
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -20
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +0 -21
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +0 -20
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -25
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -21
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -18
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -20
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -22
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +0 -70
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +0 -22
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +0 -207
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +0 -18
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +0 -18
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -29
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +0 -182
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +0 -22
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderGroupOperationHelper.js +0 -43
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +0 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +0 -26
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js +0 -143
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +0 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +0 -62
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +0 -395
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +0 -1
- package/lib/stores/QueryBuilderResultState.d.ts +0 -41
- package/lib/stores/QueryBuilderResultState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderResultState.js +0 -176
- package/lib/stores/QueryBuilderResultState.js.map +0 -1
- package/lib/stores/QueryBuilderSetupState.d.ts +0 -46
- package/lib/stores/QueryBuilderSetupState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderSetupState.js +0 -163
- package/lib/stores/QueryBuilderSetupState.js.map +0 -1
- package/lib/stores/QueryBuilderState.d.ts +0 -100
- package/lib/stores/QueryBuilderState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderState.js +0 -308
- package/lib/stores/QueryBuilderState.js.map +0 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +0 -124
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +0 -1
- package/lib/stores/QueryBuilderStateBuilder.js +0 -310
- package/lib/stores/QueryBuilderStateBuilder.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 +0 -50
- package/lib/stores/QueryBuilderStateTestUtils.js.map +0 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +0 -24
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +0 -86
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +0 -1
- package/lib/stores/QueryBuilderUnsupportedState.d.ts +0 -26
- package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +0 -1
- package/lib/stores/QueryBuilderUnsupportedState.js +0 -36
- package/lib/stores/QueryBuilderUnsupportedState.js.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +0 -20
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +0 -87
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +0 -27
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +0 -156
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +0 -61
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +0 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +0 -235
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +0 -1
- package/lib/stores/QueryParametersState.d.ts +0 -28
- package/lib/stores/QueryParametersState.d.ts.map +0 -1
- package/lib/stores/QueryParametersState.js +0 -39
- package/lib/stores/QueryParametersState.js.map +0 -1
- package/lib/stores/QueryTextEditorState.d.ts +0 -49
- package/lib/stores/QueryTextEditorState.d.ts.map +0 -1
- package/lib/stores/QueryTextEditorState.js +0 -145
- package/lib/stores/QueryTextEditorState.js.map +0 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +0 -99
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +0 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +0 -442
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +0 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts +0 -46
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.d.ts.map +0 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js +0 -242
- package/lib/stores/explorer/QueryBuilderPropertySearchPanelState.js.map +0 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +0 -59
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +0 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +0 -229
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +0 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +0 -40
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +0 -34
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +0 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +0 -27
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +0 -74
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +0 -49
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +0 -157
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +0 -20
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +0 -62
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +0 -42
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +0 -173
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +0 -26
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +0 -72
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +0 -73
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +0 -187
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +0 -68
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +0 -304
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -25
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +0 -186
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +0 -26
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +0 -189
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +0 -43
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +0 -77
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +0 -36
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -18
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -38
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +0 -42
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +0 -103
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -20
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +0 -96
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +0 -22
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +0 -40
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +0 -50
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +0 -55
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +0 -26
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +0 -50
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +0 -78
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +0 -67
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +0 -26
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +0 -86
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +0 -26
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +0 -86
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +0 -50
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +0 -50
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +0 -26
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +0 -45
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -29
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +0 -30
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -18
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -44
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +0 -135
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +0 -586
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -22
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +0 -122
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -19
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +0 -79
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +0 -23
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +0 -74
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +0 -75
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +0 -75
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +0 -118
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +0 -81
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -24
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -43
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +0 -104
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -33
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +0 -67
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -27
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +0 -81
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -24
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -43
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -32
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +0 -75
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +0 -27
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.js +0 -20
- package/lib/stores/filter/QueryBuilderFilterOperator.js.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +0 -18
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +0 -44
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +0 -123
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +0 -531
- package/lib/stores/filter/QueryBuilderFilterState.js.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +0 -19
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +0 -74
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +0 -19
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +0 -78
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +0 -21
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +0 -257
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +0 -71
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +0 -71
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +0 -115
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +0 -27
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +0 -83
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +0 -27
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +0 -83
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +0 -103
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +0 -65
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +0 -27
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +0 -83
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +0 -27
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +0 -83
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +0 -32
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +0 -71
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
- package/src/QueryBuilder_Const.ts +0 -88
- package/src/components/QueryBuilder.tsx +0 -412
- package/src/components/QueryBuilderParameterPanel.tsx +0 -403
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +0 -374
- package/src/components/QueryBuilderResultPanel.tsx +0 -640
- package/src/components/QueryBuilderSetupPanel.tsx +0 -342
- package/src/components/QueryBuilderTextEditor.tsx +0 -127
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +0 -112
- package/src/components/QueryBuilder_TestID.ts +0 -26
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +0 -927
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +0 -554
- package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +0 -291
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +0 -617
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +0 -112
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +0 -276
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +0 -1103
- package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +0 -649
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +0 -254
- package/src/components/filter/QueryBuilderFilterPanel.tsx +0 -890
- package/src/components/shared/ElementIconUtils.tsx +0 -47
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +0 -120
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +0 -40
- package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +0 -87
- package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +0 -32
- package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +0 -33
- package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -22
- package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +0 -22
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -47
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -27
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +0 -167
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +0 -573
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +0 -28
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +0 -296
- package/src/stores/QueryBuilderGroupOperationHelper.ts +0 -54
- package/src/stores/QueryBuilderPreviewDataHelper.ts +0 -210
- package/src/stores/QueryBuilderPropertyEditorState.ts +0 -668
- package/src/stores/QueryBuilderResultState.ts +0 -281
- package/src/stores/QueryBuilderSetupState.ts +0 -236
- package/src/stores/QueryBuilderState.ts +0 -465
- package/src/stores/QueryBuilderStateBuilder.ts +0 -584
- package/src/stores/QueryBuilderStateTestUtils.ts +0 -96
- package/src/stores/QueryBuilderTypeaheadHelper.ts +0 -155
- package/src/stores/QueryBuilderUnsupportedState.ts +0 -42
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +0 -179
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +0 -254
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +0 -359
- package/src/stores/QueryParametersState.ts +0 -52
- package/src/stores/QueryTextEditorState.ts +0 -203
- package/src/stores/explorer/QueryBuilderExplorerState.ts +0 -810
- package/src/stores/explorer/QueryBuilderPropertySearchPanelState.ts +0 -333
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +0 -376
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +0 -65
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +0 -108
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +0 -240
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +0 -131
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +0 -282
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +0 -154
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +0 -329
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +0 -569
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +0 -426
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -416
- package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +0 -95
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +0 -79
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -41
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +0 -145
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +0 -228
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +0 -109
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +0 -98
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +0 -106
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +0 -96
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +0 -173
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +0 -155
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +0 -174
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +0 -174
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +0 -98
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +0 -98
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +0 -88
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +0 -66
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -65
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +0 -808
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +0 -297
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -121
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +0 -129
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +0 -140
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +0 -135
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +0 -218
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +0 -143
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -70
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +0 -183
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +0 -113
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +0 -143
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -70
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +0 -135
- package/src/stores/filter/QueryBuilderFilterOperator.ts +0 -52
- package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +0 -65
- package/src/stores/filter/QueryBuilderFilterState.ts +0 -738
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +0 -155
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -120
- package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +0 -524
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +0 -134
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +0 -134
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -211
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +0 -145
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +0 -145
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +0 -181
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +0 -125
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +0 -145
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +0 -145
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +0 -134
@@ -1,116 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { useCallback } from 'react';
|
18
|
-
import { clsx, Dialog, PanelDropZone, InfoCircleIcon, PanelEntryDropZonePlaceholder, } from '@finos/legend-art';
|
19
|
-
import { observer } from 'mobx-react-lite';
|
20
|
-
import { generateMilestonedPropertyParameterValue, generateValueSpecificationForParameter, getPropertyPath, } from '../stores/QueryBuilderPropertyEditorState.js';
|
21
|
-
import { useDrop } from 'react-dnd';
|
22
|
-
import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../stores/explorer/QueryBuilderExplorerState.js';
|
23
|
-
import { QueryBuilderPropertyInfoTooltip } from './shared/QueryBuilderPropertyInfoTooltip.js';
|
24
|
-
import { VariableExpressionViewer } from './QueryBuilderParameterPanel.js';
|
25
|
-
import { QUERY_BUILDER_PARAMETER_DND_TYPE, } from '../stores/QueryParametersState.js';
|
26
|
-
import { Class, Enumeration, PrimitiveType, PRIMITIVE_TYPE, isSuperType, } from '@finos/legend-graph';
|
27
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
28
|
-
import { propertyExpression_setParametersValue, BasicValueSpecificationEditor, } from '@finos/legend-application';
|
29
|
-
const DerivedPropertyParameterValueEditor = observer((props) => {
|
30
|
-
const { derivedPropertyExpressionState, variable, idx } = props;
|
31
|
-
const graph = derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph;
|
32
|
-
const parameterType = guaranteeNonNullable(derivedPropertyExpressionState.parameters[idx]?.genericType).value.rawType;
|
33
|
-
const handleDrop = useCallback((item) => {
|
34
|
-
propertyExpression_setParametersValue(derivedPropertyExpressionState.propertyExpression, idx + 1, item.variable.parameter, derivedPropertyExpressionState.queryBuilderState.observableContext);
|
35
|
-
}, [derivedPropertyExpressionState, idx]);
|
36
|
-
const [{ isParameterValueDragOver }, dropTargetConnector] = useDrop(() => ({
|
37
|
-
accept: [QUERY_BUILDER_PARAMETER_DND_TYPE],
|
38
|
-
drop: (item, monitor) => {
|
39
|
-
const itemType = item.variable.parameter.genericType?.value.rawType;
|
40
|
-
if (!monitor.didDrop() &&
|
41
|
-
// Doing a type check, which only allows dragging and dropping parameters of the same type or of child types
|
42
|
-
itemType &&
|
43
|
-
(isSuperType(parameterType, itemType) ||
|
44
|
-
parameterType.name === itemType.name)) {
|
45
|
-
handleDrop(item);
|
46
|
-
} // prevent drop event propagation to accomondate for nested DnD
|
47
|
-
},
|
48
|
-
collect: (monitor) => ({
|
49
|
-
isParameterValueDragOver: monitor.isOver({
|
50
|
-
shallow: true,
|
51
|
-
}),
|
52
|
-
}),
|
53
|
-
}), [handleDrop]);
|
54
|
-
const resetParameterValue = () => {
|
55
|
-
propertyExpression_setParametersValue(derivedPropertyExpressionState.propertyExpression, idx + 1, generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ??
|
56
|
-
generateValueSpecificationForParameter(variable, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
57
|
-
.graph), derivedPropertyExpressionState.queryBuilderState.observableContext);
|
58
|
-
};
|
59
|
-
return (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: variable.name }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `${variable.multiplicity.lowerBound === 0 ? 'optional' : ''}` }), _jsx("div", { className: "query-builder__parameter-editor", children: _jsx(PanelDropZone, { isDragOver: isParameterValueDragOver, dropTargetConnector: dropTargetConnector, children: _jsx(BasicValueSpecificationEditor, { valueSpecification: guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), setValueSpecification: (val) => {
|
60
|
-
propertyExpression_setParametersValue(derivedPropertyExpressionState.propertyExpression, idx + 1, val, derivedPropertyExpressionState.queryBuilderState
|
61
|
-
.observableContext);
|
62
|
-
}, graph: graph, typeCheckOption: {
|
63
|
-
expectedType: parameterType,
|
64
|
-
match: parameterType ===
|
65
|
-
graph.getPrimitiveType(PRIMITIVE_TYPE.DATETIME),
|
66
|
-
}, resetValue: resetParameterValue }) }) }), _jsx("div", { className: "panel__content__form__section__list" })] }, variable.name));
|
67
|
-
});
|
68
|
-
const DerivedPropertyExpressionEditor = observer((props) => {
|
69
|
-
const { derivedPropertyExpressionState } = props;
|
70
|
-
const parameterValues = derivedPropertyExpressionState.parameterValues;
|
71
|
-
const parameters = derivedPropertyExpressionState.parameters;
|
72
|
-
return (_jsxs("div", { className: "query-builder-property-editor__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: derivedPropertyExpressionState.title }), !parameterValues.length && (_jsx("div", { className: "query-builder-property-editor__section__content--empty", children: "No parameter" })), parameters.map((variable, idx) => (_jsx(DerivedPropertyParameterValueEditor, { derivedPropertyExpressionState: derivedPropertyExpressionState, variable: variable, idx: idx }, variable.name)))] }));
|
73
|
-
});
|
74
|
-
export const QueryBuilderPropertyExpressionEditor = observer((props) => {
|
75
|
-
const { propertyExpressionState } = props;
|
76
|
-
const handleClose = () => propertyExpressionState.setIsEditingDerivedProperty(false);
|
77
|
-
return (_jsx(Dialog, { open: Boolean(propertyExpressionState.isEditingDerivedPropertyExpression), onClose: handleClose, classes: {
|
78
|
-
root: 'editor-modal__root-container',
|
79
|
-
container: 'editor-modal__container',
|
80
|
-
paper: 'editor-modal__content',
|
81
|
-
}, children: _jsxs("div", { className: "modal modal--dark editor-modal query-builder-property-editor", children: [_jsx("div", { className: "modal__header", children: _jsx("div", { className: "modal__title", children: "Derived Property" }) }), _jsxs("div", { className: "modal__body query-builder-property-editor__content", children: [propertyExpressionState.derivedPropertyExpressionStates.map((pe) => (_jsx(DerivedPropertyExpressionEditor, { derivedPropertyExpressionState: pe }, pe.path))), _jsxs("div", { className: "modal__body query-builder__parameters__modal__body", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "List of available parameters" }), _jsx("div", { className: "panel__content__form__section__list__items", children: propertyExpressionState.queryBuilderState.queryParametersState.parameterStates.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: propertyExpressionState.queryBuilderState, variableExpressionState: parameter }, parameter.uuid))) })] })] }), _jsx("div", { className: "modal__footer", children: _jsx("button", { className: "btn modal__footer__close-btn", onClick: handleClose, children: "Done" }) })] }) }));
|
82
|
-
});
|
83
|
-
export const QueryBuilderPropertyExpressionBadge = observer((props) => {
|
84
|
-
const { propertyExpressionState, onPropertyExpressionChange } = props;
|
85
|
-
const type = propertyExpressionState.propertyExpression.func.genericType.value.rawType;
|
86
|
-
const hasDerivedPropertyInExpression = Boolean(propertyExpressionState.derivedPropertyExpressionStates.length);
|
87
|
-
const isValid = propertyExpressionState.isValid;
|
88
|
-
const setDerivedPropertyArguments = () => {
|
89
|
-
if (hasDerivedPropertyInExpression) {
|
90
|
-
propertyExpressionState.setIsEditingDerivedProperty(true);
|
91
|
-
}
|
92
|
-
};
|
93
|
-
const handleDrop = useCallback((item) => onPropertyExpressionChange(item.node), [onPropertyExpressionChange]);
|
94
|
-
const [{ isDragOver }, dropConnector] = useDrop(() => ({
|
95
|
-
accept: [
|
96
|
-
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
|
97
|
-
QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.PRIMITIVE_PROPERTY,
|
98
|
-
],
|
99
|
-
drop: (item, monitor) => {
|
100
|
-
if (!monitor.didDrop()) {
|
101
|
-
handleDrop(item);
|
102
|
-
} // prevent drop event propagation to accomondate for nested DnD
|
103
|
-
},
|
104
|
-
collect: (monitor) => ({
|
105
|
-
isDragOver: monitor.isOver({ shallow: true }),
|
106
|
-
}),
|
107
|
-
}), [handleDrop]);
|
108
|
-
return (_jsx("div", { className: "query-builder-property-expression-badge", ref: dropConnector, children: _jsx(PanelEntryDropZonePlaceholder, { showPlaceholder: isDragOver, label: "Change Property", className: "query-builder__dnd__placeholder", children: _jsxs("div", { className: clsx('query-builder-property-expression-badge__content', {
|
109
|
-
'query-builder-property-expression-badge__content--class': type instanceof Class,
|
110
|
-
'query-builder-property-expression-badge__content--enumeration': type instanceof Enumeration,
|
111
|
-
'query-builder-property-expression-badge__content--primitive': type instanceof PrimitiveType,
|
112
|
-
}), children: [_jsx("div", { className: "query-builder-property-expression-badge__property", title: `${propertyExpressionState.title} - ${propertyExpressionState.path}`, children: propertyExpressionState.title }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
|
113
|
-
'query-builder-property-expression-badge__action--error': !isValid,
|
114
|
-
}), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: propertyExpressionState }), _jsx(QueryBuilderPropertyInfoTooltip, { property: propertyExpressionState.propertyExpression.func, path: getPropertyPath(propertyExpressionState.propertyExpression), isMapped: true, placement: "bottom-end", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) })] }) }) }));
|
115
|
-
});
|
116
|
-
//# sourceMappingURL=QueryBuilderPropertyExpressionEditor.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,MAAM,EACN,aAAa,EACb,cAAc,EACd,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ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B,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,23 +0,0 @@
|
|
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
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
|
-
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
-
export declare const QueryBuilderResultPanel: ((props: {
|
19
|
-
queryBuilderState: QueryBuilderState;
|
20
|
-
}) => JSX.Element) & {
|
21
|
-
displayName: string;
|
22
|
-
};
|
23
|
-
//# sourceMappingURL=QueryBuilderResultPanel.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA0WxE,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAqPjD,CAAC"}
|
@@ -1,242 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { AgGridColumn, AgGridReact } from '@ag-grid-community/react';
|
18
|
-
import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, clsx, PauseCircleIcon, } from '@finos/legend-art';
|
19
|
-
import { observer } from 'mobx-react-lite';
|
20
|
-
import { flowResult } from 'mobx';
|
21
|
-
import { InstanceValue, extractExecutionResultValues, TdsExecutionResult, RawExecutionResult, EXECUTION_SERIALIZATION_FORMAT, EnumValueInstanceValue, EnumValueExplicitReference, } from '@finos/legend-graph';
|
22
|
-
import { ActionAlertActionType, ActionAlertType, EDITOR_LANGUAGE, ExecutionPlanViewer, instanceValue_changeValue, instanceValue_changeValues, PARAMETER_SUBMIT_ACTION, TAB_SIZE, TextInputEditor, useApplicationStore, } from '@finos/legend-application';
|
23
|
-
import { assertErrorThrown, guaranteeNonNullable, isBoolean, } from '@finos/legend-shared';
|
24
|
-
import { forwardRef, useState } from 'react';
|
25
|
-
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js';
|
26
|
-
import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, } from '../stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js';
|
27
|
-
import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, } from '../stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
|
28
|
-
import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, } from '../stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
|
29
|
-
import { QueryBuilderProjectionState } from '../stores/fetch-structure/projection/QueryBuilderProjectionState.js';
|
30
|
-
const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuilderResultContextMenu(props, ref) {
|
31
|
-
const { event, projectionState } = props;
|
32
|
-
const applicationStore = useApplicationStore();
|
33
|
-
const postFilterEqualOperator = new QueryBuilderPostFilterOperator_Equal();
|
34
|
-
const postFilterInOperator = new QueryBuilderPostFilterOperator_In();
|
35
|
-
const postFilterNotEqualOperator = new QueryBuilderPostFilterOperator_NotEqual();
|
36
|
-
const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
|
37
|
-
const postFilterState = projectionState.postFilterState;
|
38
|
-
const projectionColumnState = guaranteeNonNullable(projectionState.columns
|
39
|
-
.filter((c) => c.columnName === event?.column.getColId())
|
40
|
-
.concat(projectionState.aggregationState.columns
|
41
|
-
.filter((c) => c.columnName === event?.column.getColId())
|
42
|
-
.map((ag) => ag.projectionColumnState))[0]);
|
43
|
-
const getExistingPostFilterNode = (operators) => Array.from(postFilterState.nodes.values())
|
44
|
-
.filter((v) => v instanceof QueryBuilderPostFilterTreeConditionNodeData &&
|
45
|
-
v.condition.columnState instanceof
|
46
|
-
QueryBuilderProjectionColumnState)
|
47
|
-
.filter((n) => n.condition
|
48
|
-
.columnState.columnName === projectionColumnState.columnName &&
|
49
|
-
operators
|
50
|
-
.map((op) => op.getLabel())
|
51
|
-
.includes(n.condition.operator.getLabel()))[0];
|
52
|
-
const updateFilterConditionValue = (conditionValue) => {
|
53
|
-
if (event?.value !== null) {
|
54
|
-
instanceValue_changeValue(conditionValue, conditionValue instanceof EnumValueInstanceValue
|
55
|
-
? EnumValueExplicitReference.create(guaranteeNonNullable((conditionValue.genericType?.ownerReference
|
56
|
-
.value).values.filter((v) => v.name === event?.value)[0]))
|
57
|
-
: event?.value, 0);
|
58
|
-
}
|
59
|
-
};
|
60
|
-
const generateNewPostFilterConditionNodeData = async (operator) => {
|
61
|
-
let postFilterConditionState;
|
62
|
-
try {
|
63
|
-
postFilterConditionState = new PostFilterConditionState(postFilterState, projectionColumnState, undefined, operator);
|
64
|
-
if (projectionColumnState instanceof
|
65
|
-
QueryBuilderDerivationProjectionColumnState) {
|
66
|
-
await flowResult(projectionColumnState.fetchDerivationLambdaReturnType());
|
67
|
-
}
|
68
|
-
const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
|
69
|
-
postFilterConditionState.setValue(defaultFilterConditionValue);
|
70
|
-
updateFilterConditionValue(defaultFilterConditionValue);
|
71
|
-
}
|
72
|
-
catch (error) {
|
73
|
-
assertErrorThrown(error);
|
74
|
-
applicationStore.notifyWarning(error.message);
|
75
|
-
return;
|
76
|
-
}
|
77
|
-
postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
|
78
|
-
};
|
79
|
-
const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFilterBy) => {
|
80
|
-
const conditionState = existingPostFilterNode.condition;
|
81
|
-
if (conditionState.operator.getLabel() ===
|
82
|
-
(isFilterBy
|
83
|
-
? postFilterEqualOperator
|
84
|
-
: postFilterNotEqualOperator).getLabel()) {
|
85
|
-
const doesValueAlreadyExist = conditionState.value instanceof InstanceValue &&
|
86
|
-
(conditionState.value instanceof EnumValueInstanceValue
|
87
|
-
? conditionState.value.values.map((ef) => ef.value.name)
|
88
|
-
: conditionState.value.values).includes(event?.value);
|
89
|
-
if (!doesValueAlreadyExist) {
|
90
|
-
const currentValueSpecificaton = conditionState.value;
|
91
|
-
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
92
|
-
updateFilterConditionValue(newValueSpecification);
|
93
|
-
conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
|
94
|
-
instanceValue_changeValues(conditionState.value, [
|
95
|
-
currentValueSpecificaton,
|
96
|
-
newValueSpecification,
|
97
|
-
]);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
else {
|
101
|
-
const doesValueAlreadyExist = conditionState.value instanceof InstanceValue &&
|
102
|
-
conditionState.value.values
|
103
|
-
.filter((v) => v instanceof InstanceValue)
|
104
|
-
.map((v) => v instanceof EnumValueInstanceValue
|
105
|
-
? v.values.map((ef) => ef.value.name)
|
106
|
-
: v.values)
|
107
|
-
.flat()
|
108
|
-
.includes(event?.value);
|
109
|
-
if (!doesValueAlreadyExist) {
|
110
|
-
const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
111
|
-
updateFilterConditionValue(newValueSpecification);
|
112
|
-
instanceValue_changeValues(conditionState.value, [
|
113
|
-
...conditionState.value.values,
|
114
|
-
newValueSpecification,
|
115
|
-
]);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
};
|
119
|
-
const filterByOrOut = (isFilterBy) => {
|
120
|
-
projectionState.setShowPostFilterPanel(true);
|
121
|
-
const existingPostFilterNode = getExistingPostFilterNode(isFilterBy
|
122
|
-
? [postFilterEqualOperator, postFilterInOperator]
|
123
|
-
: [postFilterNotEqualOperator, postFilterNotInOperator]);
|
124
|
-
existingPostFilterNode === undefined
|
125
|
-
? generateNewPostFilterConditionNodeData(isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).catch(applicationStore.alertUnhandledError)
|
126
|
-
: updateExistingPostFilterConditionNodeData(existingPostFilterNode, isFilterBy);
|
127
|
-
};
|
128
|
-
return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { onClick: () => {
|
129
|
-
filterByOrOut(true);
|
130
|
-
}, children: "Filter By" }), _jsx(MenuContentItem, { onClick: () => {
|
131
|
-
filterByOrOut(false);
|
132
|
-
}, children: "Filter Out" })] }));
|
133
|
-
}));
|
134
|
-
const QueryBuilderGridResult = observer((props) => {
|
135
|
-
const { executionResult, queryBuilderState } = props;
|
136
|
-
const fetchStructureImplementation = queryBuilderState.fetchStructureState.implementation;
|
137
|
-
const [cellDoubleClickedEvent, setCellDoubleClickedEvent] = useState(null);
|
138
|
-
const columns = executionResult.result.columns;
|
139
|
-
const rowData = executionResult.result.rows.map((_row) => {
|
140
|
-
const row = {};
|
141
|
-
const cols = executionResult.result.columns;
|
142
|
-
_row.values.forEach((value, idx) => {
|
143
|
-
// `ag-grid` shows `false` value as empty string so we have
|
144
|
-
// call `.toString()` to avoid this behavior.
|
145
|
-
// See https://github.com/finos/legend-studio/issues/1008
|
146
|
-
row[cols[idx]] = isBoolean(value) ? String(value) : value;
|
147
|
-
});
|
148
|
-
return row;
|
149
|
-
});
|
150
|
-
return (_jsx(ContextMenu, { content:
|
151
|
-
// NOTE: we only support this functionality for grid result with a projection fetch-structure
|
152
|
-
fetchStructureImplementation instanceof
|
153
|
-
QueryBuilderProjectionState ? (_jsx(QueryBuilderGridResultContextMenu, { event: cellDoubleClickedEvent, projectionState: fetchStructureImplementation })) : null, disabled: !(fetchStructureImplementation instanceof QueryBuilderProjectionState), menuProps: { elevation: 7 }, className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: _jsx(AgGridReact, { rowData: rowData, onCellMouseOver: (event) => {
|
154
|
-
setCellDoubleClickedEvent(event);
|
155
|
-
}, children: columns.map((colName) => (_jsx(AgGridColumn, { minWidth: 50, sortable: true, resizable: true, field: colName, flex: 1 }, colName))) }) }, executionResult._UUID));
|
156
|
-
});
|
157
|
-
const QueryBuilderResultValues = observer((props) => {
|
158
|
-
const { executionResult, queryBuilderState } = props;
|
159
|
-
if (executionResult instanceof TdsExecutionResult) {
|
160
|
-
return (_jsx(QueryBuilderGridResult, { queryBuilderState: queryBuilderState, executionResult: executionResult }));
|
161
|
-
}
|
162
|
-
else if (executionResult instanceof RawExecutionResult) {
|
163
|
-
return (_jsx(TextInputEditor, { language: EDITOR_LANGUAGE.TEXT, inputValue: executionResult.value, isReadOnly: true }));
|
164
|
-
}
|
165
|
-
else {
|
166
|
-
const executionResultString = JSON.stringify(extractExecutionResultValues(executionResult), null, TAB_SIZE);
|
167
|
-
return (_jsx(TextInputEditor, { language: EDITOR_LANGUAGE.JSON, inputValue: executionResultString, isReadOnly: true }));
|
168
|
-
}
|
169
|
-
});
|
170
|
-
export const QueryBuilderResultPanel = observer((props) => {
|
171
|
-
const { queryBuilderState } = props;
|
172
|
-
const applicationStore = useApplicationStore();
|
173
|
-
const resultState = queryBuilderState.resultState;
|
174
|
-
const queryParametersState = queryBuilderState.queryParametersState;
|
175
|
-
const executionResult = resultState.executionResult;
|
176
|
-
const USER_ATTESTATION_MESSAGE = 'I attest that I am aware of the sensitive data leakage risk when exporting queried data. The data I export will only be used by me.';
|
177
|
-
const exportQueryResults = async (format) => {
|
178
|
-
if (queryBuilderState.queryParametersState.parameterStates.length) {
|
179
|
-
queryParametersState.parameterValuesEditorState.open(() => flowResult(resultState.exportData(format)).catch(applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.EXPORT);
|
180
|
-
}
|
181
|
-
else {
|
182
|
-
await flowResult(resultState.exportData(format)).catch(applicationStore.alertUnhandledError);
|
183
|
-
}
|
184
|
-
};
|
185
|
-
const confirmExport = (format) => {
|
186
|
-
applicationStore.setActionAlertInfo({
|
187
|
-
message: USER_ATTESTATION_MESSAGE,
|
188
|
-
type: ActionAlertType.CAUTION,
|
189
|
-
actions: [
|
190
|
-
{
|
191
|
-
label: 'Accept',
|
192
|
-
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
193
|
-
handler: applicationStore.guardUnhandledError(() => exportQueryResults(format)),
|
194
|
-
},
|
195
|
-
{
|
196
|
-
label: 'Decline',
|
197
|
-
type: ActionAlertActionType.PROCEED,
|
198
|
-
default: true,
|
199
|
-
},
|
200
|
-
],
|
201
|
-
});
|
202
|
-
};
|
203
|
-
const queryValidationIssues = queryBuilderState.validationIssues;
|
204
|
-
const isQueryValid = !queryBuilderState.isQuerySupported() || !queryValidationIssues;
|
205
|
-
const runQuery = () => {
|
206
|
-
if (queryParametersState.parameterStates.length) {
|
207
|
-
queryParametersState.parameterValuesEditorState.open(() => flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.EXECUTE);
|
208
|
-
}
|
209
|
-
else {
|
210
|
-
flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError);
|
211
|
-
}
|
212
|
-
};
|
213
|
-
const cancelQuery = () => {
|
214
|
-
resultState.setIsRunningQuery(false);
|
215
|
-
queryBuilderState.resultState.setQueryRunPromise(undefined);
|
216
|
-
};
|
217
|
-
const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
|
218
|
-
const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
|
219
|
-
const changeLimit = (event) => {
|
220
|
-
const val = event.target.value;
|
221
|
-
queryBuilderState.resultState.setPreviewLimit(val === '' ? 0 : parseInt(val, 10));
|
222
|
-
};
|
223
|
-
const allowSettingPreviewLimit = queryBuilderState.isQuerySupported();
|
224
|
-
const resultSetSize = (result) => result && result instanceof TdsExecutionResult
|
225
|
-
? `${result.result.rows.length} row(s) in ${resultState.executionDuration?.toString()} ms`
|
226
|
-
: '';
|
227
|
-
return (_jsxs("div", { className: "panel query-builder__result", children: [_jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), _jsx("div", { className: "query-builder__result__analytics", children: resultSetSize(executionResult) })] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: resultState.previewLimit, onChange: changeLimit, disabled: !isQueryValid })] })), resultState.isRunningQuery ? (_jsx("button", { className: "query-builder__result__stop-btn", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution query-builder__result__stop-btn__label", children: [_jsx(PauseCircleIcon, { className: "query-builder__result__stop-btn__label__icon" }), _jsx("div", { className: "query-builder__result__stop-btn__label__title", children: "Stop" })] }) })) : (_jsxs("button", { className: "query-builder__result__execute-btn", onClick: runQuery, tabIndex: -1, title: queryValidationIssues
|
228
|
-
? `Query is not valid:\n${queryValidationIssues
|
229
|
-
.map((issue) => `\u2022 ${issue}`)
|
230
|
-
.join('\n')}`
|
231
|
-
: undefined, disabled: !isQueryValid, children: [_jsxs("div", { className: "query-builder__result__execute-btn__label", children: [_jsx(PlayIcon, { className: "query-builder__result__execute-btn__label__icon" }), _jsx("div", { className: "query-builder__result__execute-btn__label__title", children: "Run Query" })] }), _jsx(DropdownMenu, { className: "query-builder__result__execute-btn__dropdown-btn", disabled: resultState.isGeneratingPlan, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "query-builder__result__execute-btn__option", onClick: generatePlan, children: "Generate Plan" }), _jsx(MenuContentItem, { className: "query-builder__result__execute-btn__option", onClick: debugPlanGeneration, children: "Debug" })] }), menuProps: {
|
232
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
233
|
-
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
234
|
-
}, children: _jsx(CaretDownIcon, {}) })] })), _jsxs(DropdownMenu, { className: "query-builder__result__export__dropdown", content: _jsx(MenuContent, { children: Object.values(EXECUTION_SERIALIZATION_FORMAT).map((format) => (_jsx(MenuContentItem, { className: "query-builder__result__export__dropdown__menu__item", onClick: () => confirmExport(format), children: format }, format))) }), menuProps: {
|
235
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
236
|
-
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
237
|
-
elevation: 7,
|
238
|
-
}, children: [_jsx("button", { className: "query-builder__result__export__dropdown__label", tabIndex: -1, title: "Export", disabled: !isQueryValid, children: "Export" }), _jsx("button", { className: "query-builder__result__export__dropdown__trigger", tabIndex: -1, disabled: !isQueryValid, children: _jsx(CaretDownIcon, {}) })] })] })] }), _jsxs("div", { className: "panel__content", children: [_jsx(PanelLoadingIndicator, { isLoading: resultState.isRunningQuery ||
|
239
|
-
resultState.isGeneratingPlan ||
|
240
|
-
resultState.exportDataState.isInProgress }), !executionResult && (_jsx(BlankPanelContent, { children: "Build or load a valid query first" })), executionResult && (_jsx("div", { className: "query-builder__result__values", children: _jsx(QueryBuilderResultValues, { executionResult: executionResult, queryBuilderState: queryBuilderState }) }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: resultState.executionPlanState })] }));
|
241
|
-
});
|
242
|
-
//# sourceMappingURL=QueryBuilderResultPanel.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,QAAQ,EACR,eAAe,E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AAC;iCACb,aAED,iBACE,SAAS,EAAC,gDAAgD,EAC1D,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,QAAQ,EACd,QAAQ,EAAE,CAAC,YAAY,uBAGhB,EACT,iBACE,SAAS,EAAC,kDAAkD,EAC5D,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,CAAC,YAAY,YAEvB,KAAC,aAAa,KAAG,GACV,IACI,IACX,IACF,EACN,eAAK,SAAS,EAAC,gBAAgB,aAC7B,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACG,EACN,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,23 +0,0 @@
|
|
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
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
|
-
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
|
-
export declare const QueryBuilderSetupPanel: ((props: {
|
19
|
-
queryBuilderState: QueryBuilderState;
|
20
|
-
}) => JSX.Element) & {
|
21
|
-
displayName: string;
|
22
|
-
};
|
23
|
-
//# sourceMappingURL=QueryBuilderSetupPanel.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderSetupPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderSetupPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAaH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA2HxE,eAAO,MAAM,sBAAsB,WACzB;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA8LjD,CAAC"}
|
@@ -1,149 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import { CustomSelectorInput, createFilter, CogIcon, PURE_ClassIcon, PURE_MappingIcon, PURE_RuntimeIcon, ClockIcon, clsx, } from '@finos/legend-art';
|
18
|
-
import { observer } from 'mobx-react-lite';
|
19
|
-
import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js';
|
20
|
-
import { PRIMITIVE_TYPE, LATEST_DATE, MILESTONING_STEREOTYPE, PrimitiveInstanceValue, VariableExpression, getMilestoneTemporalStereotype, PackageableElementExplicitReference, RuntimePointer, VARIABLE_REFERENCE_TOKEN, isElementDeprecated, } from '@finos/legend-graph';
|
21
|
-
import { getPackageableElementOptionFormatter, buildElementOption, useApplicationStore, } from '@finos/legend-application';
|
22
|
-
import { MilestoningParametersEditor } from './explorer/QueryBuilderMilestoneEditor.js';
|
23
|
-
import { useState } from 'react';
|
24
|
-
const getParameterValue = (parameter) => {
|
25
|
-
if (parameter instanceof VariableExpression) {
|
26
|
-
return `${VARIABLE_REFERENCE_TOKEN}${parameter.name}`;
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
if (parameter instanceof PrimitiveInstanceValue &&
|
30
|
-
parameter.genericType.value.rawType.name === PRIMITIVE_TYPE.STRICTDATE) {
|
31
|
-
return parameter.values[0];
|
32
|
-
}
|
33
|
-
else if (parameter instanceof PrimitiveInstanceValue &&
|
34
|
-
parameter.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
|
35
|
-
return LATEST_DATE;
|
36
|
-
}
|
37
|
-
return 'unknown';
|
38
|
-
}
|
39
|
-
};
|
40
|
-
const generateClassLabel = (val, queryBuilderState) => {
|
41
|
-
const milestoneStereotype = getMilestoneTemporalStereotype(val, queryBuilderState.graphManagerState.graph);
|
42
|
-
const isDeprecatedClass = isElementDeprecated(val, queryBuilderState.graphManagerState.graph);
|
43
|
-
if (milestoneStereotype) {
|
44
|
-
let milestoningParameterValues;
|
45
|
-
switch (milestoneStereotype) {
|
46
|
-
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
47
|
-
milestoningParameterValues = `Business Date: ${getParameterValue(queryBuilderState.querySetupState.businessDate)}`;
|
48
|
-
break;
|
49
|
-
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
50
|
-
milestoningParameterValues = `Processing Date: ${getParameterValue(queryBuilderState.querySetupState.processingDate)}`;
|
51
|
-
break;
|
52
|
-
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
53
|
-
milestoningParameterValues = `Processing Date: ${getParameterValue(queryBuilderState.querySetupState.processingDate)}, Business Date: ${getParameterValue(queryBuilderState.querySetupState.businessDate)}`;
|
54
|
-
break;
|
55
|
-
default:
|
56
|
-
milestoningParameterValues = '';
|
57
|
-
}
|
58
|
-
return (_jsxs("div", { className: "query-builder__setup__config__item__class-label", children: [_jsx("div", { className: clsx('query-builder__setup__config__item__class-label__content', {
|
59
|
-
' query-builder__setup__config__item__class-label--deprecated': isDeprecatedClass,
|
60
|
-
}), children: val.name }), _jsx(ClockIcon, { className: "query-builder__setup__config__item__class-label__milestoning", title: milestoningParameterValues })] }));
|
61
|
-
}
|
62
|
-
return (_jsx("div", { className: "query-builder__setup__config__item__class-label", children: _jsx("div", { className: clsx('query-builder__setup__config__item__class-label__content', {
|
63
|
-
' query-builder__setup__config__item__class-label--deprecated': isDeprecatedClass,
|
64
|
-
}), children: val.name }) }));
|
65
|
-
};
|
66
|
-
export const QueryBuilderSetupPanel = observer((props) => {
|
67
|
-
const { queryBuilderState } = props;
|
68
|
-
const applicationStore = useApplicationStore();
|
69
|
-
const querySetupState = queryBuilderState.querySetupState;
|
70
|
-
const [isMilestoneEditorOpened, setIsMilestoneEditorOpened] = useState(false);
|
71
|
-
const elementFilterOption = createFilter({
|
72
|
-
ignoreCase: true,
|
73
|
-
ignoreAccents: false,
|
74
|
-
stringify: (option) => option.value.path,
|
75
|
-
});
|
76
|
-
const isQuerySupported = queryBuilderState.isQuerySupported();
|
77
|
-
// class
|
78
|
-
const classOptions = queryBuilderState.querySetupState.classes.map((_class) => ({
|
79
|
-
value: _class,
|
80
|
-
label: generateClassLabel(_class, queryBuilderState),
|
81
|
-
}));
|
82
|
-
const selectedClassOption = querySetupState._class
|
83
|
-
? {
|
84
|
-
value: querySetupState._class,
|
85
|
-
label: generateClassLabel(querySetupState._class, queryBuilderState),
|
86
|
-
}
|
87
|
-
: null;
|
88
|
-
const changeClass = (val) => {
|
89
|
-
queryBuilderState.changeClass(val.value);
|
90
|
-
};
|
91
|
-
// mapping
|
92
|
-
const mappingOptions = querySetupState.mappings.map(buildElementOption);
|
93
|
-
const selectedMappingOption = querySetupState.mapping
|
94
|
-
? buildElementOption(querySetupState.mapping)
|
95
|
-
: null;
|
96
|
-
const changeMapping = (val) => {
|
97
|
-
if (querySetupState._class && !querySetupState.mappingIsReadOnly) {
|
98
|
-
querySetupState.setMapping(val.value);
|
99
|
-
queryBuilderState.resetQueryBuilder();
|
100
|
-
queryBuilderState.resetQueryContent();
|
101
|
-
}
|
102
|
-
};
|
103
|
-
// runtime
|
104
|
-
const runtime = querySetupState.runtimeValue;
|
105
|
-
const isRuntimePointer = runtime instanceof RuntimePointer;
|
106
|
-
const customRuntimeLabel = (_jsxs("div", { className: "service-execution-editor__configuration__runtime-option--custom", children: [_jsx(CogIcon, {}), _jsx("div", { className: "service-execution-editor__configuration__runtime-option--custom__label", children: "(custom)" })] }));
|
107
|
-
// only show custom runtime option when a runtime pointer is currently selected
|
108
|
-
let runtimeOptions = !isRuntimePointer
|
109
|
-
? []
|
110
|
-
: [{ label: customRuntimeLabel }];
|
111
|
-
runtimeOptions = runtimeOptions.concat(querySetupState.compatibleRuntimes.map((rt) => ({
|
112
|
-
value: new RuntimePointer(PackageableElementExplicitReference.create(rt)),
|
113
|
-
label: rt.name,
|
114
|
-
})));
|
115
|
-
const selectedRuntimeOption = {
|
116
|
-
value: runtime,
|
117
|
-
label: runtime instanceof RuntimePointer
|
118
|
-
? runtime.packageableRuntime.value.name
|
119
|
-
: '(custom)',
|
120
|
-
};
|
121
|
-
const changeRuntime = (val) => {
|
122
|
-
if (val.value !== runtime) {
|
123
|
-
querySetupState.setRuntimeValue(val.value);
|
124
|
-
}
|
125
|
-
};
|
126
|
-
const runtimeFilterOption = createFilter({
|
127
|
-
ignoreCase: true,
|
128
|
-
ignoreAccents: false,
|
129
|
-
stringify: (option) => option.value instanceof RuntimePointer
|
130
|
-
? option.value.packageableRuntime.value.path
|
131
|
-
: '(custom)',
|
132
|
-
});
|
133
|
-
const close = () => {
|
134
|
-
setIsMilestoneEditorOpened(false);
|
135
|
-
};
|
136
|
-
const isMilestonedQuery = Boolean(querySetupState.businessDate ?? querySetupState.processingDate);
|
137
|
-
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_SETUP, className: "panel query-builder__setup", children: [_jsx("div", { className: "panel__header", children: _jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "setup" }) }) }), _jsxs("div", { className: "panel__content query-builder__setup__content", children: [_jsxs("div", { className: "query-builder__setup__config__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config__item__label", children: _jsx(PURE_ClassIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config__item__selector query-builder__setup__config__item__selector__milestoned", placeholder: "Choose a class...", options: classOptions, onChange: changeClass, value: selectedClassOption, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, disabled: !isQuerySupported || querySetupState.classIsReadOnly, filterOption: elementFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
138
|
-
darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
|
139
|
-
}) }), _jsx("button", { className: "btn--dark btn__icon--dark query-builder__setup__milestoning", tabIndex: -1, onClick: () => setIsMilestoneEditorOpened(true), disabled: !isMilestonedQuery, title: "Edit Milestoning Parameters", children: _jsx(ClockIcon, {}) })] }), _jsxs("div", { className: "query-builder__setup__config__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config__item__label", children: _jsx(PURE_MappingIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config__item__selector", placeholder: mappingOptions.length
|
140
|
-
? 'Choose a mapping...'
|
141
|
-
: 'No mapping found for class', disabled: querySetupState.mappingIsReadOnly ||
|
142
|
-
!querySetupState._class ||
|
143
|
-
!mappingOptions.length, options: mappingOptions, onChange: changeMapping, value: selectedMappingOption, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, filterOption: elementFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
144
|
-
darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
|
145
|
-
}) })] }), isMilestoneEditorOpened && isMilestonedQuery && (_jsx(MilestoningParametersEditor, { queryBuilderState: queryBuilderState, close: close })), _jsxs("div", { className: "query-builder__setup__config__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config__item__label", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config__item__selector", placeholder: "Choose or create a runtime...", disabled: querySetupState.runtimeIsReadOnly ||
|
146
|
-
!querySetupState._class ||
|
147
|
-
!querySetupState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, filterOption: runtimeFilterOption })] })] })] }));
|
148
|
-
});
|
149
|
-
//# sourceMappingURL=QueryBuilderSetupPanel.js.map
|