@finos/legend-query-builder 4.14.47 → 4.14.49
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts +3 -1
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js +2 -0
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +59 -46
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +22 -22
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +2 -2
- package/lib/components/QueryBuilderDiffPanel.js +7 -6
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +29 -10
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +14 -13
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -2
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +14 -24
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +1 -1
- package/lib/components/QueryBuilderTextEditor.js +8 -7
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +4 -3
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
- package/lib/components/QueryChat.d.ts +1 -1
- package/lib/components/QueryChat.js +3 -2
- package/lib/components/QueryChat.js.map +1 -1
- package/lib/components/QueryLoader.d.ts +2 -2
- package/lib/components/QueryLoader.js +25 -24
- package/lib/components/QueryLoader.js.map +1 -1
- package/lib/components/QueryUsageViewer.d.ts +1 -1
- package/lib/components/QueryUsageViewer.js +4 -3
- package/lib/components/QueryUsageViewer.js.map +1 -1
- package/lib/components/ServiceQuerySetupUtils.js +4 -3
- package/lib/components/ServiceQuerySetupUtils.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +3 -2
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/data-access/DataAccessOverview.d.ts +1 -1
- package/lib/components/data-access/DataAccessOverview.js +17 -16
- package/lib/components/data-access/DataAccessOverview.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +4 -3
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +3 -2
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js +4 -3
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +3 -3
- package/lib/components/execution-plan/ExecutionPlanViewer.js +34 -33
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +3 -2
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ImplementationViewer.js +4 -3
- package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.js +3 -2
- package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +6 -5
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +7 -6
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +6 -5
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +4 -3
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.js +5 -4
- package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +7 -6
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +6 -5
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +6 -5
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.js +4 -3
- package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.js +3 -2
- package/lib/components/execution-plan/TempTableStrategyViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +31 -30
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +20 -19
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/explorer/{QueryBuilderMilestoningEditor.d.ts → QueryBuilderMilestoningParameterEditor.d.ts} +6 -3
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +53 -0
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +18 -17
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +9 -8
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +3 -3
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +24 -23
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +4 -3
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +76 -54
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -2
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +201 -29
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +9 -8
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +55 -36
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +29 -28
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +20 -19
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts +2 -2
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +19 -17
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +11 -10
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +5 -4
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +9 -8
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +38 -37
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +21 -20
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +2 -2
- package/lib/components/shared/LambdaEditor.js +14 -13
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +7 -6
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +4 -3
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +10 -9
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js +4 -3
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +2 -2
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +15 -7
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +6 -5
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +6 -5
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +6 -5
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/graph-manager/QueryBuilderConfig.d.ts +4 -0
- package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
- package/lib/graph-manager/QueryBuilderConfig.js +5 -0
- package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +2 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +3 -3
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/QueryLoaderState.d.ts +1 -0
- package/lib/stores/QueryLoaderState.d.ts.map +1 -1
- package/lib/stores/QueryLoaderState.js +1 -0
- package/lib/stores/QueryLoaderState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +8 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.js +4 -2
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +2 -0
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +13 -2
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +2 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +8 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +25 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +2 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +5 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +62 -3
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +2 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +8 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -0
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +7 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/package.json +4 -4
- package/src/__lib__/QueryBuilderDocumentation.ts +2 -0
- package/src/components/QueryBuilder.tsx +44 -0
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +13 -4
- package/src/components/QueryBuilderParametersPanel.tsx +55 -0
- package/src/components/QueryBuilderSideBar.tsx +0 -42
- package/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx +114 -0
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +143 -78
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +445 -19
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +134 -21
- package/src/components/result/QueryBuilderResultPanel.tsx +9 -1
- package/src/components/shared/QueryBuilderVariableSelector.tsx +22 -0
- package/src/graph-manager/QueryBuilderConfig.ts +6 -0
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +4 -1
- package/src/stores/QueryLoaderState.ts +1 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +11 -0
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Percentile.ts +6 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -0
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -0
- package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +23 -0
- package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +13 -0
- package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +45 -0
- package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +3 -0
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +95 -7
- package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +13 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +11 -0
- package/tsconfig.json +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +0 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +0 -102
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +0 -1
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +0 -364
@@ -0,0 +1,53 @@
|
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx";
|
3
|
+
/**
|
4
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
5
|
+
*
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
* you may not use this file except in compliance with the License.
|
8
|
+
* You may obtain a copy of the License at
|
9
|
+
*
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
*
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
* See the License for the specific language governing permissions and
|
16
|
+
* limitations under the License.
|
17
|
+
*/
|
18
|
+
import { observer } from 'mobx-react-lite';
|
19
|
+
import { useCallback } from 'react';
|
20
|
+
import { GenericType, GenericTypeExplicitReference, observe_PrimitiveInstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
21
|
+
import { useDrop } from 'react-dnd';
|
22
|
+
import { PanelEntryDropZonePlaceholder } from '@finos/legend-art';
|
23
|
+
import { generateDefaultValueForPrimitiveType } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
24
|
+
import { BasicValueSpecificationEditor, QUERY_BUILDER_VARIABLE_DND_TYPE, } from '../shared/BasicValueSpecificationEditor.js';
|
25
|
+
import { instanceValue_setValues } from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
26
|
+
export const MilestoningParameterEditor = observer((props) => {
|
27
|
+
const { queryBuilderState, parameter, setParameter } = props;
|
28
|
+
const handleDrop = useCallback((item) => {
|
29
|
+
setParameter(item.variable);
|
30
|
+
}, [setParameter]);
|
31
|
+
const [{ isDragOver }, dropConnector] = useDrop(() => ({
|
32
|
+
accept: [QUERY_BUILDER_VARIABLE_DND_TYPE],
|
33
|
+
drop: (item, monitor) => {
|
34
|
+
if (!monitor.didDrop()) {
|
35
|
+
handleDrop(item);
|
36
|
+
}
|
37
|
+
},
|
38
|
+
collect: (monitor) => ({
|
39
|
+
isDragOver: monitor.isOver({
|
40
|
+
shallow: true,
|
41
|
+
}),
|
42
|
+
}),
|
43
|
+
}), [handleDrop]);
|
44
|
+
const resetMilestoningParameter = () => {
|
45
|
+
const param = observe_PrimitiveInstanceValue(new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRICTDATE))), queryBuilderState.observerContext);
|
46
|
+
instanceValue_setValues(param, [generateDefaultValueForPrimitiveType(PRIMITIVE_TYPE.STRICTDATE)], queryBuilderState.observerContext);
|
47
|
+
setParameter(param);
|
48
|
+
};
|
49
|
+
return (_jsxDEV("div", { ref: dropConnector, className: "query-builder__variable-editor", children: _jsxDEV(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Change Milestoning Parameter Value", children: _jsxDEV(BasicValueSpecificationEditor, { valueSpecification: parameter, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, setValueSpecification: (val) => setParameter(val), typeCheckOption: {
|
50
|
+
expectedType: PrimitiveType.DATE,
|
51
|
+
}, resetValue: resetMilestoningParameter, isConstant: queryBuilderState.constantState.isValueSpecConstant(parameter) }, void 0, false, { fileName: _jsxFileName, lineNumber: 95, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 91, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 89, columnNumber: 13 }, this));
|
52
|
+
});
|
53
|
+
//# sourceMappingURL=QueryBuilderMilestoningParameterEditor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderMilestoningParameterEditor.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderMilestoningParameterEditor.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,WAAW,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,yBAAyB,GAAG,GAAS,EAAE;QAC3C,MAAM,KAAK,GAAG,8BAA8B,CAC1C,IAAI,sBAAsB,CACxB,4BAA4B,CAAC,MAAM,CACjC,IAAI,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAC1C,CACF,EACD,iBAAiB,CAAC,eAAe,CAClC,CAAC;QACF,uBAAuB,CACrB,KAAK,EACL,CAAC,oCAAoC,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,EACjE,iBAAiB,CAAC,eAAe,CAClC,CAAC;QACF,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACL,iBAAK,GAAG,EAAE,aAAa,EAAE,SAAS,EAAC,gCAAgC,YACjE,QAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAC,oCAAoC,YAE1C,QAAC,6BAA6B,IAC5B,kBAAkB,EAAE,SAAS,EAC7B,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EAChD,cAAc,EAAE,iBAAiB,CAAC,eAAe,EACjD,qBAAqB,EAAE,CAAC,GAAuB,EAAQ,EAAE,CACvD,YAAY,CAAC,GAAG,CAAC,EAEnB,eAAe,EAAE;oBACf,YAAY,EAAE,aAAa,CAAC,IAAI;iBACjC,EACD,UAAU,EAAE,yBAAyB,EACrC,UAAU,EAAE,iBAAiB,CAAC,aAAa,CAAC,mBAAmB,CAC7D,SAAS,CACV,sFACD,qFAC4B,sFAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -17,7 +17,7 @@ import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
|
17
17
|
export declare const QueryBuilderPropertySearchPanel: ((props: {
|
18
18
|
queryBuilderState: QueryBuilderState;
|
19
19
|
triggerElement: HTMLElement | null;
|
20
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
20
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
21
21
|
displayName: string;
|
22
22
|
};
|
23
23
|
//# sourceMappingURL=QueryBuilderPropertySearchPanel.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/explorer/QueryBuilderPropertySearchPanel.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -115,13 +116,13 @@ const QueryBuilderTreeNodeViewer = observer((props) => {
|
|
115
116
|
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
116
117
|
? prettyPropertyNameForSubTypeClass(node.id)
|
117
118
|
: prettyPropertyNameFromNodeId(node.id);
|
118
|
-
return (
|
119
|
+
return (_jsxDEV("div", { children: [_jsxDEV("div", { className: "tree-view__node__container query-builder-property-search-panel__node__container", ref: dragConnector, style: {
|
119
120
|
paddingLeft: `${(level - 1) * stepPaddingInRem + 0.5}rem`,
|
120
121
|
display: 'flex',
|
121
122
|
}, onClick: () => setIsExpandable(!isExpandable),
|
122
123
|
// Temporarily hide away the panel when we drag-and-drop the properties
|
123
|
-
onDrag: () => propertySearchState.setIsSearchPanelHidden(true), onDragEnd: () => propertySearchState.setIsSearchPanelHidden(false), children: [
|
124
|
-
getChildrenNodes().map((childNode) => (
|
124
|
+
onDrag: () => propertySearchState.setIsSearchPanelHidden(true), onDragEnd: () => propertySearchState.setIsSearchPanelHidden(false), children: [_jsxDEV("div", { className: "tree-view__node__icon query-builder-property-search-panel__node__icon", children: _jsxDEV("div", { className: "query-builder-property-search-panel__type-icon", children: renderPropertyTypeIcon(node.type) }, void 0, false, { fileName: _jsxFileName, lineNumber: 209, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 208, columnNumber: 11 }, this), _jsxDEV("div", { className: "tree-view__node__label query-builder-property-search-panel__node__label query-builder-property-search-panel__node__label--with-action", children: propertyName }, void 0, false, { fileName: _jsxFileName, lineNumber: 213, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__node__actions", children: [node instanceof QueryBuilderExplorerTreePropertyNodeData && (_jsxDEV(QueryBuilderPropertyInfoTooltip, { title: propertyName, property: node.property, path: node.id, isMapped: node.mappingData.mapped, children: _jsxDEV("div", { className: "query-builder-property-search-panel__node__action query-builder-property-search-panel__node__info", children: _jsxDEV(InfoCircleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 225, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 224, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 217, columnNumber: 75 }, this)), node instanceof QueryBuilderExplorerTreeSubTypeNodeData && (_jsxDEV(QueryBuilderSubclassInfoTooltip, { subclass: node.subclass, path: node.id, isMapped: node.mappingData.mapped, multiplicity: node.multiplicity, children: _jsxDEV("div", { className: "query-builder-property-search-panel__node__action query-builder-property-search-panel__node__info", children: _jsxDEV(InfoCircleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 237, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 236, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 229, columnNumber: 74 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 216, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 194, columnNumber: 9 }, this), isExpandable &&
|
125
|
+
getChildrenNodes().map((childNode) => (_jsxDEV(QueryBuilderTreeNodeViewer, { node: childNode, queryBuilderState: queryBuilderState, level: 1, stepPaddingInRem: 2, explorerState: queryBuilderState.explorerState }, childNode.id, false, { fileName: _jsxFileName, lineNumber: 244, columnNumber: 50 }, this)))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 192, columnNumber: 13 }, this));
|
125
126
|
});
|
126
127
|
export const QueryBuilderPropertySearchPanel = observer((props) => {
|
127
128
|
const { queryBuilderState, triggerElement } = props;
|
@@ -147,7 +148,7 @@ export const QueryBuilderPropertySearchPanel = observer((props) => {
|
|
147
148
|
clearSearch();
|
148
149
|
propertySearchState.setIsSearchPanelOpen(false);
|
149
150
|
};
|
150
|
-
return (
|
151
|
+
return (_jsxDEV(BasePopover, { open: propertySearchState.isSearchPanelOpen, PaperProps: {
|
151
152
|
classes: {
|
152
153
|
root: 'query-builder-property-search-panel__container__root',
|
153
154
|
},
|
@@ -159,17 +160,17 @@ export const QueryBuilderPropertySearchPanel = observer((props) => {
|
|
159
160
|
}, transformOrigin: {
|
160
161
|
vertical: 'top',
|
161
162
|
horizontal: 'center',
|
162
|
-
}, TransitionProps: { onEnter: handleEnter }, children:
|
163
|
+
}, TransitionProps: { onEnter: handleEnter }, children: _jsxDEV("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_PROPERTY_SEARCH_PANEL, className: "query-builder-property-search-panel", children: [_jsxDEV("div", { className: "query-builder-property-search-panel__header", children: [_jsxDEV("div", { className: "query-builder-property-search-panel__input__container", children: [_jsxDEV("input", { ref: searchInputRef, className: clsx('query-builder-property-search-panel__input input--dark', {
|
163
164
|
'query-builder-property-search-panel__input--searching': propertySearchState.searchText,
|
164
|
-
}), spellCheck: false, onChange: onSearchPropertyTextChange, value: propertySearchState.searchText, placeholder: "Search for a property by name or documentation" }), propertySearchState.searchText && (
|
165
|
+
}), spellCheck: false, onChange: onSearchPropertyTextChange, value: propertySearchState.searchText, placeholder: "Search for a property by name or documentation" }, void 0, false, { fileName: _jsxFileName, lineNumber: 332, columnNumber: 15 }, this), propertySearchState.searchText && (_jsxDEV("div", { className: "query-builder-property-search-panel__input__search__count", children: propertySearchState.filteredSearchResults.length +
|
165
166
|
(propertySearchState.isOverSearchLimit &&
|
166
167
|
propertySearchState.filteredSearchResults.length !== 0
|
167
168
|
? '+'
|
168
|
-
: '') })),
|
169
|
+
: '') }, void 0, false, { fileName: _jsxFileName, lineNumber: 346, columnNumber: 51 }, this)), _jsxDEV("button", { ref: searchConfigTriggerRef, className: clsx('query-builder-property-search-panel__input__search__config__trigger', {
|
169
170
|
'query-builder-property-search-panel__input__search__config__trigger--toggled': propertySearchState.showSearchConfigurationMenu,
|
170
171
|
'query-builder-property-search-panel__input__search__config__trigger--active': propertySearchState.searchConfigurationState
|
171
172
|
.isAdvancedSearchActive,
|
172
|
-
}), tabIndex: -1, onClick: toggleSearchConfigMenu, title: "Click to toggle search config menu", children:
|
173
|
+
}), tabIndex: -1, onClick: toggleSearchConfigMenu, title: "Click to toggle search config menu", children: _jsxDEV(CogIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 371, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 355, columnNumber: 15 }, this), _jsxDEV(BasePopover, { open: Boolean(propertySearchState.showSearchConfigurationMenu), TransitionProps: {
|
173
174
|
onEnter: handleEnter,
|
174
175
|
}, anchorEl: searchConfigTriggerRef.current, onClose: closeSearchConfigMenu, anchorOrigin: {
|
175
176
|
vertical: 'bottom',
|
@@ -177,28 +178,28 @@ export const QueryBuilderPropertySearchPanel = observer((props) => {
|
|
177
178
|
}, transformOrigin: {
|
178
179
|
vertical: 'top',
|
179
180
|
horizontal: 'center',
|
180
|
-
}, children:
|
181
|
+
}, children: _jsxDEV(FuzzySearchAdvancedConfigMenu, { configState: propertySearchState.searchConfigurationState }, void 0, false, { fileName: _jsxFileName, lineNumber: 389, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 373, columnNumber: 15 }, this), !propertySearchState.searchText ? (_jsxDEV(_Fragment, { children: _jsxDEV("div", { className: "query-builder-property-search-panel__input__search__icon", children: _jsxDEV(SearchIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 396, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 395, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 393, columnNumber: 51 }, this)) : (_jsxDEV("button", { className: "query-builder-property-search-panel__input__clear-btn", tabIndex: -1, onClick: clearSearch, title: "Clear", children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 406, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 399, columnNumber: 20 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 331, columnNumber: 13 }, this), _jsxDEV("button", { className: "btn btn--dark query-builder-property-search-panel__close-btn", tabIndex: -1, title: "Close", onClick: handleClose, children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 416, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 410, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 330, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__content", children: _jsxDEV(ResizablePanelGroup, { orientation: "vertical", children: [_jsxDEV(ResizablePanel, { size: 150, children: _jsxDEV("div", { className: "query-builder-property-search-panel__config", children: _jsxDEV("div", { className: "query-builder-property-search-panel__form__section", children: [_jsxDEV("div", { className: "query-builder-property-search-panel__form__section__header__label", children: "By type" }, void 0, false, { fileName: _jsxFileName, lineNumber: 424, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__filter__element", children: [_jsxDEV("button", { className: clsx('query-builder-property-search-panel__form__section__toggler__btn', {
|
181
182
|
'query-builder-property-search-panel__form__section__toggler__btn--toggled': propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS),
|
182
183
|
}), onClick: () => {
|
183
184
|
propertySearchState.toggleFilterForType(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS);
|
184
|
-
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS) ? (
|
185
|
+
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.CLASS) ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 447, columnNumber: 30 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 449, columnNumber: 30 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 428, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__form__section__toggler__prompt", children: "Class" }, void 0, false, { fileName: _jsxFileName, lineNumber: 453, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 427, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__filter__element", children: [_jsxDEV("button", { className: clsx('query-builder-property-search-panel__form__section__toggler__btn', {
|
185
186
|
'query-builder-property-search-panel__form__section__toggler__btn--toggled': propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING),
|
186
187
|
}), onClick: () => {
|
187
188
|
propertySearchState.toggleFilterForType(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING);
|
188
|
-
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING) ? (
|
189
|
+
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING) ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 477, columnNumber: 30 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 479, columnNumber: 30 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 458, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__form__section__toggler__prompt", children: "String" }, void 0, false, { fileName: _jsxFileName, lineNumber: 483, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 457, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__filter__element", children: [_jsxDEV("button", { className: clsx('query-builder-property-search-panel__form__section__toggler__btn', {
|
189
190
|
'query-builder-property-search-panel__form__section__toggler__btn--toggled': propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN),
|
190
191
|
}), onClick: () => {
|
191
192
|
propertySearchState.toggleFilterForType(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN);
|
192
|
-
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN) ? (
|
193
|
+
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN) ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 507, columnNumber: 30 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 509, columnNumber: 30 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 488, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__form__section__toggler__prompt", children: "Boolean" }, void 0, false, { fileName: _jsxFileName, lineNumber: 513, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 487, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__filter__element", children: [_jsxDEV("button", { className: clsx('query-builder-property-search-panel__form__section__toggler__btn', {
|
193
194
|
'query-builder-property-search-panel__form__section__toggler__btn--toggled': propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER),
|
194
195
|
}), onClick: () => {
|
195
196
|
propertySearchState.toggleFilterForType(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER);
|
196
|
-
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER) ? (
|
197
|
+
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.NUMBER) ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 537, columnNumber: 30 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 539, columnNumber: 30 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 518, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__form__section__toggler__prompt", children: "Number" }, void 0, false, { fileName: _jsxFileName, lineNumber: 543, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 517, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__filter__element", children: [_jsxDEV("button", { className: clsx('query-builder-property-search-panel__form__section__toggler__btn', {
|
197
198
|
'query-builder-property-search-panel__form__section__toggler__btn--toggled': propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE),
|
198
199
|
}), onClick: () => {
|
199
200
|
propertySearchState.toggleFilterForType(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE);
|
200
|
-
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE) ? (
|
201
|
-
propertySearchState.filteredSearchResults.map((node) => (
|
202
|
-
propertySearchState.searchText && (
|
201
|
+
}, tabIndex: -1, children: propertySearchState.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.DATE) ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 567, columnNumber: 30 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 569, columnNumber: 30 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 548, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__form__section__toggler__prompt", children: "Date" }, void 0, false, { fileName: _jsxFileName, lineNumber: 573, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 547, columnNumber: 21 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 423, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 422, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 421, columnNumber: 15 }, this), _jsxDEV(ResizablePanelSplitter, { children: _jsxDEV(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }, void 0, false, { fileName: _jsxFileName, lineNumber: 581, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 580, columnNumber: 15 }, this), _jsxDEV(ResizablePanel, { children: [propertySearchState.searchState.isInProgress && (_jsxDEV(PanelLoadingIndicator, { isLoading: true }, void 0, false, { fileName: _jsxFileName, lineNumber: 584, columnNumber: 67 }, this)), _jsxDEV("div", { className: "query-builder-property-search-panel__results", children: [!propertySearchState.searchState.isInProgress && (_jsxDEV(_Fragment, { children: [Boolean(propertySearchState.filteredSearchResults.length) &&
|
202
|
+
propertySearchState.filteredSearchResults.map((node) => (_jsxDEV(QueryBuilderTreeNodeViewer, { node: node, queryBuilderState: queryBuilderState, level: 1, stepPaddingInRem: 0, explorerState: queryBuilderState.explorerState }, node.id, false, { fileName: _jsxFileName, lineNumber: 594, columnNumber: 38 }, this))), !propertySearchState.filteredSearchResults.length &&
|
203
|
+
propertySearchState.searchText && (_jsxDEV(BlankPanelContent, { children: [_jsxDEV("div", { className: "query-builder-property-search-panel__result-placeholder__text", children: "No result" }, void 0, false, { fileName: _jsxFileName, lineNumber: 608, columnNumber: 29 }, this), _jsxDEV("div", { className: "query-builder-property-search-panel__result-placeholder__tips", children: "Tips: Navigate deeper into the explorer tree to improve the scope and accuracy of the search" }, void 0, false, { fileName: _jsxFileName, lineNumber: 611, columnNumber: 29 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 606, columnNumber: 60 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 588, columnNumber: 70 }, this)), propertySearchState.searchState.isInProgress && (_jsxDEV(BlankPanelContent, { children: "Searching..." }, void 0, false, { fileName: _jsxFileName, lineNumber: 619, columnNumber: 69 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 587, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 583, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 420, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 419, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 324, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 300, columnNumber: 13 }, this));
|
203
204
|
});
|
204
205
|
//# sourceMappingURL=QueryBuilderPropertySearchPanel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertySearchPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderPropertySearchPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EACL,IAAI,EACJ,eAAe,EACf,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,WAAW,EACX,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kCAAkC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C,aAAa,IALzC,IAAI,CAAC,EAAE,CAMZ,CACH,CACF,EACF,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,MAAM;wDAChD,mBAAmB,CAAC,UAAU,IAAI,CAChC,MAAC,iBAAiB,eAChB,cAAK,SAAS,EAAC,+DAA+D,0BAExE,EACN,cAAK,SAAS,EAAC,+DAA+D,6GAGxE,IACY,CACrB,IACF,CACJ,EACA,mBAAmB,CAAC,WAAW,CAAC,YAAY,IAAI,CAC/C,KAAC,iBAAiB,+BAAiC,CACpD,IACG,IACS,IACG,GAClB,IACF,GACM,CACf,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderPropertySearchPanel.js","sourceRoot":"","sources":["../../../src/components/explorer/QueryBuilderPropertySearchPanel.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EACL,IAAI,EACJ,eAAe,EACf,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,WAAW,EACX,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAEL,wCAAwC,EACxC,uCAAuC,EACvC,oCAAoC,EACpC,+BAA+B,GAEhC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,IALzC,IAAI,CAAC,EAAE,6EAMZ,CACH,CACF,EACF,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,MAAM;wDAChD,mBAAmB,CAAC,UAAU,IAAI,CAChC,QAAC,iBAAiB,eAChB,iBAAK,SAAS,EAAC,+DAA+D,8GAExE,EACN,iBAAK,SAAS,EAAC,+DAA+D,iMAGxE,uFACY,CACrB,uFACF,CACJ,EACA,mBAAmB,CAAC,WAAW,CAAC,YAAY,IAAI,CAC/C,QAAC,iBAAiB,mHAAiC,CACpD,uFACG,uFACS,uFACG,uFAClB,sFACF,uFACM,CACf,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
17
17
|
export declare const QueryBuilderFetchStructurePanel: ((props: {
|
18
18
|
queryBuilderState: QueryBuilderState;
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
19
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
20
20
|
displayName: string;
|
21
21
|
};
|
22
22
|
//# sourceMappingURL=QueryBuilderFetchStructurePanel.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -30,21 +31,21 @@ const QueryBuilderFetchStructureEditor = observer((props) => {
|
|
30
31
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
31
32
|
const fetchStructureImplementation = fetchStructureState.implementation;
|
32
33
|
if (fetchStructureImplementation instanceof QueryBuilderTDSState) {
|
33
|
-
return
|
34
|
+
return _jsxDEV(QueryBuilderTDSPanel, { tdsState: fetchStructureImplementation }, void 0, false, { fileName: _jsxFileName, lineNumber: 44, columnNumber: 13 }, this);
|
34
35
|
}
|
35
36
|
else if (fetchStructureImplementation instanceof QueryBuilderGraphFetchTreeState) {
|
36
|
-
return (
|
37
|
+
return (_jsxDEV(QueryBuilderGraphFetchPanel, { graphFetchTreeState: fetchStructureImplementation }, void 0, false, { fileName: _jsxFileName, lineNumber: 48, columnNumber: 15 }, this));
|
37
38
|
}
|
38
|
-
return (
|
39
|
+
return (_jsxDEV(PanelContent, { children: _jsxDEV(BlankPanelContent, { children: _jsxDEV("div", { className: "query-builder__unsupported-view__main", children: _jsxDEV("div", { className: "query-builder__unsupported-view__summary", children: "Unsupported fetch structure" }, void 0, false, { fileName: _jsxFileName, lineNumber: 58, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 57, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 56, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 54, columnNumber: 13 }, this));
|
39
40
|
});
|
40
41
|
export const QueryBuilderFetchStructurePanel = observer((props) => {
|
41
42
|
const { queryBuilderState } = props;
|
42
43
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
43
44
|
const fetchConfig = queryBuilderState.workflowState.getFetchStructureLayoutConfig(queryBuilderState);
|
44
|
-
return (
|
45
|
-
.length !== 0 && (
|
46
|
-
.fetchStructureValidationIssues }))] }), fetchConfig.showInFetchPanel ? (
|
45
|
+
return (_jsxDEV(Panel, { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FETCH_STRUCTURE, children: [_jsxDEV(PanelHeader, { children: [_jsxDEV("div", { className: "panel__header__title", children: [_jsxDEV("div", { className: "panel__header__title__label", children: fetchConfig.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 80, columnNumber: 13 }, this), fetchStructureState.implementation.fetchStructureValidationIssues
|
46
|
+
.length !== 0 && (_jsxDEV(QueryBuilderPanelIssueCountBadge, { issues: fetchStructureState.implementation
|
47
|
+
.fetchStructureValidationIssues }, void 0, false, { fileName: _jsxFileName, lineNumber: 84, columnNumber: 33 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 79, columnNumber: 11 }, this), fetchConfig.showInFetchPanel ? (_jsxDEV(PanelHeaderActions, { children: _jsxDEV("div", { className: "query-builder__fetch__structure__modes", children: Object.values(FETCH_STRUCTURE_IMPLEMENTATION).map((type) => (_jsxDEV("button", { onClick: onChangeFetchStructureImplementation(type, fetchStructureState), className: clsx('query-builder__fetch__structure__mode', {
|
47
48
|
'query-builder__fetch__structure__mode--selected': type === fetchStructureState.implementation.type,
|
48
|
-
}), children: prettyCONSTName(type) }, type))) }) })) : null] }),
|
49
|
+
}), children: prettyCONSTName(type) }, type, false, { fileName: _jsxFileName, lineNumber: 96, columnNumber: 79 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 95, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 93, columnNumber: 44 }, this)) : null] }, void 0, true, { fileName: _jsxFileName, lineNumber: 78, columnNumber: 9 }, this), _jsxDEV(QueryBuilderFetchStructureEditor, { queryBuilderState: queryBuilderState }, void 0, false, { fileName: _jsxFileName, lineNumber: 115, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 76, columnNumber: 13 }, this));
|
49
50
|
});
|
50
51
|
//# sourceMappingURL=QueryBuilderFetchStructurePanel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ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GraphFetchExternalConfig: ((props: {
|
|
28
28
|
serializationTreeData: QueryBuilderGraphFetchTreeData;
|
29
29
|
bindings: Binding[];
|
30
30
|
isReadOnly: boolean;
|
31
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
31
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
32
32
|
displayName: string;
|
33
33
|
};
|
34
34
|
export declare const QueryBuilderGraphFetchTreeExplorer: ((props: {
|
@@ -37,12 +37,12 @@ export declare const QueryBuilderGraphFetchTreeExplorer: ((props: {
|
|
37
37
|
treeData: QueryBuilderGraphFetchTreeData;
|
38
38
|
updateTreeData: (data: QueryBuilderGraphFetchTreeData) => void;
|
39
39
|
isReadOnly: boolean;
|
40
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
40
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
41
41
|
displayName: string;
|
42
42
|
};
|
43
43
|
export declare const QueryBuilderGraphFetchPanel: ((props: {
|
44
44
|
graphFetchTreeState: QueryBuilderGraphFetchTreeState;
|
45
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
45
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
46
46
|
displayName: string;
|
47
47
|
};
|
48
48
|
//# sourceMappingURL=QueryBuilderGraphFetchTreePanel.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -31,7 +32,7 @@ const getBindingFormatter = (props) => function BindingLabel(option) {
|
|
31
32
|
const className = props.darkMode
|
32
33
|
? 'packageable-element-option-label--dark'
|
33
34
|
: 'packageable-element-option-label';
|
34
|
-
return (
|
35
|
+
return (_jsxDEV("div", { className: className, children: [_jsxDEV("div", { className: `${className}__name`, children: option.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 110, columnNumber: 9 }, this), option.value.package && (_jsxDEV("div", { className: `${className}__tag`, children: option.value.path }, void 0, false, { fileName: _jsxFileName, lineNumber: 111, columnNumber: 35 }, this)), _jsxDEV("div", { className: `${className}__tag`, children: option.value.contentType }, void 0, false, { fileName: _jsxFileName, lineNumber: 114, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 108, columnNumber: 13 }, this));
|
35
36
|
};
|
36
37
|
export const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
|
37
38
|
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
@@ -46,14 +47,14 @@ export const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
|
|
46
47
|
type = node.tree.class.value;
|
47
48
|
}
|
48
49
|
const isExpandable = Boolean(node.childrenIds.length);
|
49
|
-
const nodeExpandIcon = isExpandable ? (node.isOpen ? (
|
50
|
-
const nodeTypeIcon = type ? (getClassPropertyIcon(type)) : (
|
50
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsxDEV(ChevronDownIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 143, columnNumber: 20 }, this)) : (_jsxDEV(ChevronRightIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 145, columnNumber: 10 }, this))) : (_jsxDEV("div", {}, void 0, false, { fileName: _jsxFileName, lineNumber: 148, columnNumber: 8 }, this));
|
51
|
+
const nodeTypeIcon = type ? (getClassPropertyIcon(type)) : (_jsxDEV(PURE_UnknownElementTypeIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 153, columnNumber: 8 }, this));
|
51
52
|
const toggleExpandNode = () => onNodeSelect?.(node);
|
52
53
|
const deleteNode = () => removeNode?.(node);
|
53
|
-
return (
|
54
|
+
return (_jsxDEV("div", { className: "tree-view__node__container query-builder-graph-fetch-tree__node__container", style: {
|
54
55
|
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 2)}rem`,
|
55
56
|
display: 'flex',
|
56
|
-
}, children: [
|
57
|
+
}, children: [_jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__content", children: [_jsxDEV("div", { className: "tree-view__node__icon query-builder-graph-fetch-tree__node__icon", children: [_jsxDEV("div", { className: "query-builder-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }, void 0, false, { fileName: _jsxFileName, lineNumber: 169, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon }, void 0, false, { fileName: _jsxFileName, lineNumber: 175, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 168, columnNumber: 9 }, this), _jsxDEV("div", { className: "tree-view__node__label query-builder-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, subType && (_jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__sub-type", children: _jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__sub-type__label", children: subType.name }, void 0, false, { fileName: _jsxFileName, lineNumber: 192, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 190, columnNumber: 24 }, this)), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__type", children: _jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__type__label", children: type?.name }, void 0, false, { fileName: _jsxFileName, lineNumber: 199, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 197, columnNumber: 12 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 182, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 167, columnNumber: 7 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__node__actions", children: _jsxDEV("button", { className: "query-builder-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, disabled: isReadOnly, children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 214, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 207, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 206, columnNumber: 7 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 159, columnNumber: 11 }, this));
|
57
58
|
};
|
58
59
|
const PureSerializationConfigModal = observer((props) => {
|
59
60
|
const { pureSerializationState, graphFetchState, config } = props;
|
@@ -71,13 +72,13 @@ const PureSerializationConfigModal = observer((props) => {
|
|
71
72
|
graphFetchState.queryBuilderState.applicationStore.notificationService.notifySuccess('Serialization config removed');
|
72
73
|
};
|
73
74
|
const close = () => pureSerializationState.setConfigModal(false);
|
74
|
-
return (
|
75
|
+
return (_jsxDEV(Dialog, { open: pureSerializationState.configModal, onClose: close, classes: {
|
75
76
|
root: 'editor-modal__root-container',
|
76
77
|
container: 'editor-modal__container',
|
77
78
|
paper: 'editor-modal__content',
|
78
|
-
}, children:
|
79
|
+
}, children: _jsxDEV(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "query-builder-graph-fetch-config", children: [_jsxDEV(ModalHeader, { title: `${toAdd ? 'Add Serialization Config' : 'Edit Serialization Config'}` }, void 0, false, { fileName: _jsxFileName, lineNumber: 260, columnNumber: 11 }, this), _jsxDEV(ModalBody, { className: "query-builder-graph-fetch-config__content", children: _jsxDEV(Panel, { children: _jsxDEV(PanelForm, { children: [_jsxDEV(PanelFormTextField, { name: "Type Key Name", value: config.typeKeyName, isReadOnly: false, update: (value) => config.setTypeName(value ?? ''), errorMessage: config.typeKeyName === ''
|
79
80
|
? `Type key name can't be empty`
|
80
|
-
: undefined }),
|
81
|
+
: undefined }, void 0, false, { fileName: _jsxFileName, lineNumber: 268, columnNumber: 17 }, this), _jsxDEV(PanelFormTextField, { name: "Date Time Format", value: config.dateTimeFormat, isReadOnly: false, update: (value) => config.setDateTimeFormat(value === '' ? undefined : value) }, void 0, false, { fileName: _jsxFileName, lineNumber: 281, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Include Type", value: config.includeType, isReadOnly: false, update: (value) => config.setIncludeType(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 289, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Include Enum Type", value: config.includeEnumType, isReadOnly: false, update: (value) => config.setInclueEnumType(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 298, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Remove Properties With Null Values", value: config.removePropertiesWithNullValues, isReadOnly: false, update: (value) => config.setRemovePropertiesWithNullValues(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 306, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Remove properties with empty sets", value: config.removePropertiesWithEmptySets, isReadOnly: false, update: (value) => config.setRemovePropertiesWithEmptySets(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 314, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Use Fully Qualified Type Path", value: config.fullyQualifiedTypePath, isReadOnly: false, update: (value) => config.setFullyQualifiedTypePath(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 322, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { name: "Include Object Reference", value: config.includeObjectReference, isReadOnly: false, update: (value) => config.setIncludeObjectReference(Boolean(value)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 330, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 267, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 266, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 265, columnNumber: 11 }, this), _jsxDEV(ModalFooter, { children: [!toAdd && (_jsxDEV(ModalFooterButton, { className: "btn--caution", text: "Remove Config", onClick: removeConfig }, void 0, false, { fileName: _jsxFileName, lineNumber: 342, columnNumber: 25 }, this)), _jsxDEV(ModalFooterButton, { className: "modal__footer__close-btn", onClick: handleAction, type: toAdd ? 'primary' : 'secondary', children: toAdd ? 'Add Config' : 'Close' }, void 0, false, { fileName: _jsxFileName, lineNumber: 349, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 341, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 254, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 244, columnNumber: 13 }, this));
|
81
82
|
});
|
82
83
|
export const QueryBuilderGraphFetchExternalConfig = observer((props) => {
|
83
84
|
const { graphFetchState, serializationState, serializationTreeData, bindings, isReadOnly, } = props;
|
@@ -110,16 +111,16 @@ export const QueryBuilderGraphFetchExternalConfig = observer((props) => {
|
|
110
111
|
serializationState.setGraphFetchTree({ ...serializationTreeData });
|
111
112
|
}
|
112
113
|
};
|
113
|
-
return (
|
114
|
+
return (_jsxDEV("div", { className: "query-builder-graph-fetch-external-format", children: _jsxDEV("div", { className: "service-execution-editor__configuration__items", children: [_jsxDEV("div", { className: "service-execution-editor__configuration__item", children: [_jsxDEV("div", { className: "btn--sm service-execution-editor__configuration__item__label", children: _jsxDEV(BufferIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 419, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 418, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { className: "panel__content__form__section__dropdown service-execution-editor__configuration__item__dropdown", disabled: isReadOnly, options: bindingOptions, onChange: onBindingChange, value: selectedBinding, formatOptionLabel: getBindingFormatter({
|
114
115
|
darkMode: !applicationStore.layoutService
|
115
116
|
.TEMPORARY__isLightColorThemeEnabled,
|
116
117
|
}), darkMode: !applicationStore.layoutService
|
117
|
-
.TEMPORARY__isLightColorThemeEnabled })] }),
|
118
|
+
.TEMPORARY__isLightColorThemeEnabled }, void 0, false, { fileName: _jsxFileName, lineNumber: 421, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 417, columnNumber: 11 }, this), _jsxDEV("div", { className: "service-execution-editor__configuration__item", children: [_jsxDEV("div", { className: "btn--sm service-execution-editor__configuration__item__label", children: _jsxDEV(FolderIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 440, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 439, columnNumber: 13 }, this), _jsxDEV(TreeView, { components: {
|
118
119
|
TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
|
119
120
|
}, className: "query-builder-graph-fetch-tree__container__tree", treeData: serializationTreeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
|
120
121
|
isReadOnly,
|
121
122
|
removeNode,
|
122
|
-
} })] })] }) }));
|
123
|
+
} }, void 0, false, { fileName: _jsxFileName, lineNumber: 442, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 438, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 416, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 414, columnNumber: 13 }, this));
|
123
124
|
});
|
124
125
|
export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
|
125
126
|
const { graphFetchState, serializationState, treeData, updateTreeData, isReadOnly, } = props;
|
@@ -203,22 +204,22 @@ export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
|
|
203
204
|
});
|
204
205
|
}
|
205
206
|
};
|
206
|
-
return (
|
207
|
+
return (_jsxDEV("div", { className: "query-builder-graph-fetch-tree", children: [_jsxDEV("div", { className: "query-builder-graph-fetch-tree__toolbar", children: [_jsxDEV("div", { className: "query-builder__fetch__structure__modes", children: Object.values(SERIALIZATION_TYPE).map((type) => (_jsxDEV("button", { onClick: onChangeSerializationType(type), className: clsx('query-builder__fetch__structure__mode', {
|
207
208
|
'query-builder__fetch__structure__mode--selected': type === serializationState.getLabel(),
|
208
|
-
}), children: prettyCONSTName(type) }, type))) }),
|
209
|
+
}), children: prettyCONSTName(type) }, type, false, { fileName: _jsxFileName, lineNumber: 607, columnNumber: 63 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 606, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__actions", children: [serializationState instanceof GraphFetchPureSerializationState && (_jsxDEV("div", { className: "query-builder-graph-fetch-tree__actions__action", children: _jsxDEV("button", { className: "query-builder-graph-fetch-tree__actions__action-btn__label", onClick: openConfigModal, title: `${serializationState.config
|
209
210
|
? 'Edit pure serialization config'
|
210
|
-
: 'Add pure serialization config'}`, tabIndex: -1, children: [
|
211
|
+
: 'Add pure serialization config'}`, tabIndex: -1, children: [_jsxDEV(SerializeIcon, { className: "query-builder-graph-fetch-tree__actions__action-btn__label__icon" }, void 0, false, { fileName: _jsxFileName, lineNumber: 633, columnNumber: 19 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__actions__action-btn__label__title", children: serializationState.config ? 'Edit Config' : 'Add Config' }, void 0, false, { fileName: _jsxFileName, lineNumber: 634, columnNumber: 19 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 623, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 621, columnNumber: 81 }, this)), _jsxDEV("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleChecked, children: [_jsxDEV("button", { className: clsx('panel__content__form__section__toggler__btn', {
|
211
212
|
'panel__content__form__section__toggler__btn--toggled': graphFetchState.isChecked,
|
212
|
-
}), children: graphFetchState.isChecked ? (
|
213
|
-
serializationState.configModal && (
|
214
|
-
PureSerializationConfig.createDefault() })),
|
213
|
+
}), children: graphFetchState.isChecked ? (_jsxDEV(CheckSquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 650, columnNumber: 47 }, this)) : (_jsxDEV(SquareIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 652, columnNumber: 22 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 644, columnNumber: 15 }, this), _jsxDEV("div", { className: "panel__content__form__section__toggler__prompt", children: "Check graph fetch" }, void 0, false, { fileName: _jsxFileName, lineNumber: 656, columnNumber: 15 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__toolbar__hint-icon", children: _jsxDEV(InfoCircleIcon, { title: "With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" }, void 0, false, { fileName: _jsxFileName, lineNumber: 660, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 659, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 640, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 620, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 605, columnNumber: 9 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-tree__container", children: [serializationState instanceof GraphFetchPureSerializationState &&
|
214
|
+
serializationState.configModal && (_jsxDEV(PureSerializationConfigModal, { pureSerializationState: serializationState, graphFetchState: graphFetchState, config: serializationState.config ??
|
215
|
+
PureSerializationConfig.createDefault() }, void 0, false, { fileName: _jsxFileName, lineNumber: 667, columnNumber: 48 }, this)), _jsxDEV(ResizablePanelGroup, { orientation: "horizontal", children: [_jsxDEV(ResizablePanel, { children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group", children: [_jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__header", children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__header__title", children: "Graph Fetch Tree" }, void 0, false, { fileName: _jsxFileName, lineNumber: 681, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 680, columnNumber: 17 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__content", children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__item", children: _jsxDEV(TreeView, { components: {
|
215
216
|
TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
|
216
217
|
}, className: "query-builder-graph-fetch-tree__container__tree", treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
|
217
218
|
isReadOnly,
|
218
219
|
removeNode,
|
219
|
-
} }) }) })] }) }),
|
220
|
+
} }, void 0, false, { fileName: _jsxFileName, lineNumber: 687, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 686, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 685, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 679, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 678, columnNumber: 13 }, this), _jsxDEV(ResizablePanelSplitter, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 705, columnNumber: 13 }, this), serializationState instanceof
|
220
221
|
GraphFetchExternalFormatSerializationState &&
|
221
|
-
serializationState.treeData && (
|
222
|
+
serializationState.treeData && (_jsxDEV(ResizablePanel, { children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group", children: [_jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__header", children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__header__title", children: "Externalize" }, void 0, false, { fileName: _jsxFileName, lineNumber: 712, columnNumber: 23 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 711, columnNumber: 21 }, this), _jsxDEV("div", { className: "query-builder-graph-fetch-external-format__config-group__content", children: _jsxDEV("div", { className: "query-builder-graph-fetch-external-format_config-group__item", children: _jsxDEV(QueryBuilderGraphFetchExternalConfig, { graphFetchState: graphFetchState, serializationState: serializationState, serializationTreeData: serializationState.treeData, bindings: compatibleBindings, isReadOnly: false }, void 0, false, { fileName: _jsxFileName, lineNumber: 718, columnNumber: 25 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 717, columnNumber: 23 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 716, columnNumber: 21 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 710, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 708, columnNumber: 47 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 677, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 665, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 603, columnNumber: 13 }, this));
|
222
223
|
});
|
223
224
|
const QueryBuilderGraphFetchTreePanel = observer((props) => {
|
224
225
|
const { graphFetchTreeState, serializationState } = props;
|
@@ -253,7 +254,7 @@ const QueryBuilderGraphFetchTreePanel = observer((props) => {
|
|
253
254
|
isDragOver: monitor.isOver({ shallow: true }),
|
254
255
|
}),
|
255
256
|
}), [handleDrop]);
|
256
|
-
return (
|
257
|
+
return (_jsxDEV("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, className: "panel__content", children: _jsxDEV(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, contentClassName: "query-builder-graph-fetch-panel", children: [(!treeData || isGraphFetchTreeDataEmpty(treeData)) && (_jsxDEV(BlankPanelPlaceholder, { text: "Add a graph fetch property", tooltipText: "Drag and drop properties here" }, void 0, false, { fileName: _jsxFileName, lineNumber: 799, columnNumber: 67 }, this)), treeData && !isGraphFetchTreeDataEmpty(treeData) && (_jsxDEV(QueryBuilderGraphFetchTreeExplorer, { graphFetchState: graphFetchTreeState, serializationState: serializationState, treeData: treeData, isReadOnly: false, updateTreeData: updateTreeData }, void 0, false, { fileName: _jsxFileName, lineNumber: 805, columnNumber: 65 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 794, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 789, columnNumber: 13 }, this));
|
257
258
|
});
|
258
259
|
export const QueryBuilderGraphFetchPanel = observer((props) => {
|
259
260
|
const { graphFetchTreeState } = props;
|
@@ -261,8 +262,8 @@ export const QueryBuilderGraphFetchPanel = observer((props) => {
|
|
261
262
|
const handleTextModeClick = () => graphFetchTreeState.queryBuilderState.textEditorState.openModal(QueryBuilderTextEditorMode.TEXT);
|
262
263
|
if (serializationState instanceof GraphFetchPureSerializationState ||
|
263
264
|
serializationState instanceof GraphFetchExternalFormatSerializationState) {
|
264
|
-
return (
|
265
|
+
return (_jsxDEV(QueryBuilderGraphFetchTreePanel, { graphFetchTreeState: graphFetchTreeState, serializationState: serializationState }, void 0, false, { fileName: _jsxFileName, lineNumber: 832, columnNumber: 15 }, this));
|
265
266
|
}
|
266
|
-
return (
|
267
|
+
return (_jsxDEV("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, children: _jsxDEV(BlankPanelContent, { children: _jsxDEV("div", { className: "unsupported-element-editor__main", children: [_jsxDEV("div", { className: "unsupported-element-editor__summary", children: "Unsupported Graph Fetch Serialization Type" }, void 0, false, { fileName: _jsxFileName, lineNumber: 843, columnNumber: 13 }, this), _jsxDEV("button", { className: "btn--dark unsupported-element-editor__to-text-mode__btn", onClick: handleTextModeClick, children: "Edit in text mode" }, void 0, false, { fileName: _jsxFileName, lineNumber: 847, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 842, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 841, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 839, columnNumber: 13 }, this));
|
267
268
|
});
|
268
269
|
//# sourceMappingURL=QueryBuilderGraphFetchTreePanel.js.map
|