@finos/legend-query-builder 4.14.48 → 4.14.49
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +1 -1
- package/lib/components/QueryBuilder.js +46 -45
- 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 -20
- 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/QueryBuilderMilestoningParameterEditor.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +4 -3
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
- 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.js +14 -13
- 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 +48 -39
- 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/index.css +17 -1
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +3 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +40 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningState.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/components/QueryBuilderConstantExpressionPanel.tsx +13 -4
- package/src/components/QueryBuilderParametersPanel.tsx +55 -0
- package/src/components/QueryBuilderSideBar.tsx +0 -20
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +143 -78
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +22 -6
- package/src/components/result/QueryBuilderResultPanel.tsx +9 -1
- package/src/components/shared/QueryBuilderVariableSelector.tsx +22 -0
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +1 -1
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +54 -0
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +11 -0
@@ -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/shared/QueryBuilderPropertyInfoTooltip.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -30,18 +31,18 @@ export const QueryBuilderTaggedValueInfoTooltip = (props) => {
|
|
30
31
|
.filter((taggedValue) => isDocTaggedValue(taggedValue))
|
31
32
|
.map((taggedValue) => taggedValue.value);
|
32
33
|
const tagValuesExceptDoc = taggedValues.filter((taggedValue) => !isDocTaggedValue(taggedValue));
|
33
|
-
const taggedValueCellRender = (taggedValue) => (
|
34
|
-
return (
|
34
|
+
const taggedValueCellRender = (taggedValue) => (_jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: `${taggedValue.tag.ownerReference.value.name}.${taggedValue.tag.value.value}` }, void 0, false, { fileName: _jsxFileName, lineNumber: 59, columnNumber: 7 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item__value", children: taggedValue.value }, void 0, false, { fileName: _jsxFileName, lineNumber: 62, columnNumber: 7 }, this)] }, `${taggedValue.tag.ownerReference.value.name}.${taggedValue.value}`, true, { fileName: _jsxFileName, lineNumber: 54, columnNumber: 81 }, this));
|
35
|
+
return (_jsxDEV("div", { children: tagValuesExceptDoc.length > 0 ? (_jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: "Tagged Values" }, void 0, false, { fileName: _jsxFileName, lineNumber: 72, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__tooltip__taggedValues", children: [taggedValues.slice(0, 1).map((taggedValue) => (_jsxDEV("div", { className: "query-builder__tooltip__combo", children: [taggedValueCellRender(taggedValue), taggedValues.length > 3 && (_jsxDEV("button", { className: "btn btn--dark query-builder__tooltip__taggedValues__show-btn", onClick: toggleShowMoreButton, title: "Toggle button to show more/less", children: showMore ? 'Show Less' : 'Show More' }, void 0, false, { fileName: _jsxFileName, lineNumber: 82, columnNumber: 46 }, this))] }, `${taggedValue.tag.ownerReference.value.name}.${taggedValue.value}`, true, { fileName: _jsxFileName, lineNumber: 76, columnNumber: 61 }, this))), taggedValues
|
35
36
|
.slice(1, 3)
|
36
37
|
.map((taggedValue) => taggedValueCellRender(taggedValue)), showMore &&
|
37
38
|
taggedValues
|
38
39
|
.slice(3)
|
39
|
-
.map((taggedValue) => taggedValueCellRender(taggedValue))] })] })) : (
|
40
|
+
.map((taggedValue) => taggedValueCellRender(taggedValue))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 75, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 70, columnNumber: 41 }, this)) : (_jsxDEV(_Fragment, { children: Boolean(documentation.length) && (_jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: "Documentation" }, void 0, false, { fileName: _jsxFileName, lineNumber: 106, columnNumber: 15 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item__value", children: documentation.join('\n\n') }, void 0, false, { fileName: _jsxFileName, lineNumber: 109, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 104, columnNumber: 46 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 102, columnNumber: 12 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 68, columnNumber: 11 }, this));
|
40
41
|
};
|
41
42
|
const QueryBuilderBaseInfoTooltip = (props) => {
|
42
43
|
const { title, data, placement, children, footerElement } = props;
|
43
44
|
const [open, setIsOpen] = useState(false);
|
44
|
-
return (
|
45
|
+
return (_jsxDEV(ClickAwayListener, { onClickAway: () => setIsOpen(false), children: _jsxDEV("div", { children: _jsxDEV(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
45
46
|
tooltip: 'query-builder__tooltip',
|
46
47
|
arrow: 'query-builder__tooltip__arrow',
|
47
48
|
tooltipPlacementRight: 'query-builder__tooltip--right',
|
@@ -50,7 +51,7 @@ const QueryBuilderBaseInfoTooltip = (props) => {
|
|
50
51
|
// NOTE: somehow, this is the only workaround we have, if for example
|
51
52
|
// we set `appear = true`, the tooltip will jump out of position
|
52
53
|
timeout: 0,
|
53
|
-
}, disableFocusListener: true, disableHoverListener: true, disableTouchListener: true, title:
|
54
|
+
}, disableFocusListener: true, disableHoverListener: true, disableTouchListener: true, title: _jsxDEV("div", { className: "query-builder__tooltip__content", children: [_jsxDEV("div", { className: "query-builder__tooltip__header", children: title }, void 0, false, { fileName: _jsxFileName, lineNumber: 159, columnNumber: 15 }, this), data.map((elem) => (_jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: elem.label }, void 0, false, { fileName: _jsxFileName, lineNumber: 162, columnNumber: 19 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item__value", children: elem.value }, void 0, false, { fileName: _jsxFileName, lineNumber: 165, columnNumber: 19 }, this), elem.actionButton] }, elem.label, true, { fileName: _jsxFileName, lineNumber: 160, columnNumber: 36 }, this))), footerElement] }, void 0, true, { fileName: _jsxFileName, lineNumber: 157, columnNumber: 18 }, this), children: _jsxDEV("div", { onClick: () => setIsOpen(true), children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 175, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 138, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 137, columnNumber: 7 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 135, columnNumber: 11 }, this));
|
54
55
|
};
|
55
56
|
export const QueryBuilderPropertyInfoTooltip = (props) => {
|
56
57
|
const { title, property, path, isMapped, children, placement, type, explorerState, } = props;
|
@@ -62,7 +63,7 @@ export const QueryBuilderPropertyInfoTooltip = (props) => {
|
|
62
63
|
{
|
63
64
|
label: 'Path',
|
64
65
|
value: path,
|
65
|
-
actionButton: explorerState ? (
|
66
|
+
actionButton: explorerState ? (_jsxDEV("div", { className: "query-builder__tooltip__item__action", children: _jsxDEV("button", { onClick: () => explorerState.highlightTreeNode(path), title: "Show in tree", children: _jsxDEV(ShareBoxIcon, { color: "white" }, void 0, false, { fileName: _jsxFileName, lineNumber: 217, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 213, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 211, columnNumber: 38 }, this)) : undefined,
|
66
67
|
},
|
67
68
|
{
|
68
69
|
label: 'Multiplicity',
|
@@ -77,7 +78,7 @@ export const QueryBuilderPropertyInfoTooltip = (props) => {
|
|
77
78
|
value: isMapped ? 'Yes' : 'No',
|
78
79
|
},
|
79
80
|
];
|
80
|
-
return (
|
81
|
+
return (_jsxDEV(QueryBuilderBaseInfoTooltip, { title: title, data: data, placement: placement, footerElement: _jsxDEV(QueryBuilderTaggedValueInfoTooltip, { taggedValues: property.taggedValues }, void 0, false, { fileName: _jsxFileName, lineNumber: 241, columnNumber: 22 }, this), children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 236, columnNumber: 11 }, this));
|
81
82
|
};
|
82
83
|
export const QueryBuilderDerivationInfoTooltip = (props) => {
|
83
84
|
const { title, children, placement, type } = props;
|
@@ -87,6 +88,6 @@ export const QueryBuilderDerivationInfoTooltip = (props) => {
|
|
87
88
|
value: type?.path ?? 'undefined',
|
88
89
|
},
|
89
90
|
];
|
90
|
-
return (
|
91
|
+
return (_jsxDEV(QueryBuilderBaseInfoTooltip, { title: title, data: data, placement: placement, children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 267, columnNumber: 11 }, this));
|
91
92
|
};
|
92
93
|
//# sourceMappingURL=QueryBuilderPropertyInfoTooltip.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPropertyInfoTooltip.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderPropertyInfoTooltip.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyInfoTooltip.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderPropertyInfoTooltip.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAIL,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,MAAM,CAAC,MAAM,kCAAkC,GAE1C,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,oBAAoB,GAA4B,CAAC,KAAK,EAAE,EAAE;QAC9D,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,GAAgB,EAAW,EAAE,CACrD,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,cAAc,CAAC,WAAW;QAChE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,YAAY,CAA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AAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,YAEnB,QAAQ,uFACmB,CAC/B,CAAC;AACJ,CAAC,CAAC"}
|
@@ -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/shared/QueryBuilderRootClassInfoTooltip.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -19,7 +20,7 @@ import {} from '@finos/legend-graph';
|
|
19
20
|
import { QueryBuilderTaggedValueInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js';
|
20
21
|
export const QueryBuilderRootClassInfoTooltip = (props) => {
|
21
22
|
const { _class, children, placement } = props;
|
22
|
-
return (
|
23
|
+
return (_jsxDEV(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
23
24
|
tooltip: 'query-builder__tooltip',
|
24
25
|
arrow: 'query-builder__tooltip__arrow',
|
25
26
|
tooltipPlacementRight: 'query-builder__tooltip--right',
|
@@ -28,6 +29,6 @@ export const QueryBuilderRootClassInfoTooltip = (props) => {
|
|
28
29
|
// NOTE: somehow, this is the only workaround we have, if for example
|
29
30
|
// we set `appear = true`, the tooltip will jump out of position
|
30
31
|
timeout: 0,
|
31
|
-
}, title:
|
32
|
+
}, title: _jsxDEV("div", { className: "query-builder__tooltip__content", children: [_jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: "Type" }, void 0, false, { fileName: _jsxFileName, lineNumber: 46, columnNumber: 13 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item__value", children: "Unknown" }, void 0, false, { fileName: _jsxFileName, lineNumber: 47, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 45, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item", children: [_jsxDEV("div", { className: "query-builder__tooltip__item__label", children: "Path" }, void 0, false, { fileName: _jsxFileName, lineNumber: 50, columnNumber: 13 }, this), _jsxDEV("div", { className: "query-builder__tooltip__item__value", children: _class.path }, void 0, false, { fileName: _jsxFileName, lineNumber: 51, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 49, columnNumber: 11 }, this), _jsxDEV(QueryBuilderTaggedValueInfoTooltip, { taggedValues: _class.taggedValues }, void 0, false, { fileName: _jsxFileName, lineNumber: 55, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 43, columnNumber: 14 }, this), children: children }, void 0, false, { fileName: _jsxFileName, lineNumber: 28, columnNumber: 11 }, this));
|
32
33
|
};
|
33
34
|
//# sourceMappingURL=QueryBuilderRootClassInfoTooltip.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderRootClassInfoTooltip.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderRootClassInfoTooltip.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"QueryBuilderRootClassInfoTooltip.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderRootClassInfoTooltip.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAyB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,MAAM,CAAC,MAAM,gCAAgC,GAIxC,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE9C,OAAO,CACL,QAAC,OAAO,IACN,KAAK,EAAE,IAAI,KACP,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAClD,OAAO,EAAE;YACP,OAAO,EAAE,wBAAwB;YACjC,KAAK,EAAE,+BAA+B;YACtC,qBAAqB,EAAE,+BAA+B;SACvD,EACD,eAAe,EAAE;YACf,qBAAqB;YACrB,qEAAqE;YACrE,gEAAgE;YAChE,OAAO,EAAE,CAAC;SACX,EACD,KAAK,EACH,iBAAK,SAAS,EAAC,iCAAiC,aAC9C,iBAAK,SAAS,EAAC,8BAA8B,aAC3C,iBAAK,SAAS,EAAC,qCAAqC,wGAAW,EAC/D,iBAAK,SAAS,EAAC,qCAAqC,2GAAc,sFAC9D,EACN,iBAAK,SAAS,EAAC,8BAA8B,aAC3C,iBAAK,SAAS,EAAC,qCAAqC,wGAAW,EAC/D,iBAAK,SAAS,EAAC,qCAAqC,YACjD,MAAM,CAAC,IAAI,sFACR,sFACF,EACN,QAAC,kCAAkC,IACjC,YAAY,EAAE,MAAM,CAAC,YAAY,sFACjC,sFACE,YAGP,QAAQ,sFACD,CACX,CAAC;AACJ,CAAC,CAAC"}
|
@@ -32,13 +32,13 @@ export declare const VariableViewer: ((props: {
|
|
32
32
|
label: string;
|
33
33
|
handler: () => void;
|
34
34
|
}[] | undefined;
|
35
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
35
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
36
36
|
displayName: string;
|
37
37
|
};
|
38
38
|
export declare const VariableSelector: ((props: {
|
39
39
|
queryBuilderState: QueryBuilderState;
|
40
40
|
filterBy?: (variableExpression: VariableExpression) => boolean;
|
41
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
41
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
42
42
|
displayName: string;
|
43
43
|
};
|
44
44
|
//# sourceMappingURL=QueryBuilderVariableSelector.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderVariableSelector.d.ts","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAa3E,eAAO,MAAM,2BAA2B,UAC/B,kBAAkB,qBACN,iBAAiB,KACnC,MAAM,GAAG,SAWX,CAAC;AA8CF,eAAO,MAAM,cAAc,WACjB;IACN,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,kBAAkB,GAAG,SAAS,CAAC;KACrC,CAAC;IACF,OAAO,CAAC,EAAE;QACR,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,cAAc,EAAE,MAAM,IAAI,CAAC;KAC5B,CAAC;IACF,uBAAuB,CAAC,EACpB;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,EAAE,GACH,SAAS,CAAC;CACf;;
|
1
|
+
{"version":3,"file":"QueryBuilderVariableSelector.d.ts","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAa3E,eAAO,MAAM,2BAA2B,UAC/B,kBAAkB,qBACN,iBAAiB,KACnC,MAAM,GAAG,SAWX,CAAC;AA8CF,eAAO,MAAM,cAAc,WACjB;IACN,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,kBAAkB,GAAG,SAAS,CAAC;KACrC,CAAC;IACF,OAAO,CAAC,EAAE;QACR,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,cAAc,EAAE,MAAM,IAAI,CAAC;KAC5B,CAAC;IACF,uBAAuB,CAAC,EACpB;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,EAAE,GACH,SAAS,CAAC;CACf;;CA6JF,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,KAAK,OAAO,CAAC;CAChE;;CAgDF,CAAC"}
|
@@ -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/shared/QueryBuilderVariableSelector.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -35,7 +36,7 @@ export const getNameOfValueSpecification = (value, queryBuilderState) => {
|
|
35
36
|
};
|
36
37
|
const QueryBuilderVariableContextMenu = observer(forwardRef(function QueryBuilderVariableContextMenu(props, ref) {
|
37
38
|
const { actions, extraContextMenuActions, variableInUse } = props;
|
38
|
-
return (
|
39
|
+
return (_jsxDEV(MenuContent, { ref: ref, children: [extraContextMenuActions?.map((action) => (_jsxDEV(MenuContentItem, { onClick: action.handler, children: action.label }, action.key, false, { fileName: _jsxFileName, lineNumber: 91, columnNumber: 52 }, this))), actions?.editVariable && (_jsxDEV(MenuContentItem, { onClick: actions.editVariable, children: "Edit" }, void 0, false, { fileName: _jsxFileName, lineNumber: 96, columnNumber: 36 }, this)), actions?.deleteVariable && (_jsxDEV(MenuContentItem, { disabled: variableInUse, onClick: actions.deleteVariable, children: "Remove" }, void 0, false, { fileName: _jsxFileName, lineNumber: 99, columnNumber: 38 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 89, columnNumber: 13 }, this));
|
39
40
|
}));
|
40
41
|
export const VariableViewer = observer((props) => {
|
41
42
|
const { variable, value, actions, isReadOnly, queryBuilderState, extraContextMenuActions, } = props;
|
@@ -50,6 +51,13 @@ export const VariableViewer = observer((props) => {
|
|
50
51
|
const name = variable.name;
|
51
52
|
const variableTypeName = variable.genericType?.value.rawType.name ??
|
52
53
|
(isConstant ? CALCULATED : undefined);
|
54
|
+
const isMilestoningParameter = queryBuilderState.milestoningState.isMilestoningParameter(variable);
|
55
|
+
const milestoningParameterValue = queryBuilderState.milestoningState.getMilestoningParameterValue(variable);
|
56
|
+
const milestoningParameterValueString = isMilestoningParameter
|
57
|
+
? milestoningParameterValue
|
58
|
+
? getNameOfValueSpecification(milestoningParameterValue, queryBuilderState)
|
59
|
+
: undefined
|
60
|
+
: undefined;
|
53
61
|
const deleteDisabled = isReadOnly || isVariableUsed;
|
54
62
|
const deleteTitle = isVariableUsed ? 'Used in query' : 'Remove';
|
55
63
|
const editVariable = () => {
|
@@ -63,21 +71,21 @@ export const VariableViewer = observer((props) => {
|
|
63
71
|
item: { variable: variable },
|
64
72
|
}), [variable]);
|
65
73
|
useDragPreviewLayer(dragPreviewConnector);
|
66
|
-
return (
|
74
|
+
return (_jsxDEV("div", { className: "query-builder__variables__variable", ref: dragConnector, children: _jsxDEV(ContextMenu, { content: _jsxDEV(QueryBuilderVariableContextMenu, { variable: variable, variableInUse: isVariableUsed, actions: actions, extraContextMenuActions: extraContextMenuActions }, void 0, false, { fileName: _jsxFileName, lineNumber: 185, columnNumber: 20 }, this), disabled: isReadOnly || !actions, className: clsx('query-builder__variables__variable__context-menu', {
|
67
75
|
'query-builder__variables__variable--selected-from-context-menu': isSelectedFromContextMenu,
|
68
|
-
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [
|
76
|
+
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsxDEV(DragPreviewLayer, { labelGetter: (item) => item.variable.name === '' ? '(unknown)' : item.variable.name, types: [QUERY_BUILDER_VARIABLE_DND_TYPE] }, void 0, false, { fileName: _jsxFileName, lineNumber: 202, columnNumber: 11 }, this), _jsxDEV("div", { onClick: editVariable, className: "query-builder__variables__variable__content", children: [_jsxDEV("div", { className: "query-builder__variables__variable__icon", children: _jsxDEV("div", { className: "query-builder__variables__variable-icon", children: isConstant ? (_jsxDEV("div", { className: "icon query-builder__variables__variable-icon", children: "C" }, void 0, false, { fileName: _jsxFileName, lineNumber: 214, columnNumber: 32 }, this)) : (_jsxDEV(DollarIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 218, columnNumber: 22 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 213, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 212, columnNumber: 13 }, this), _jsxDEV("div", { className: "query-builder__variables__variable__label", children: [name, isConstant ? (_jsxDEV("div", { className: clsx('query-builder__constants__value', {
|
69
77
|
'query-builder__constants__value--icon': !constantValueString,
|
70
|
-
}), children: [constantValueString, !constantValueString && (
|
78
|
+
}), children: [constantValueString, !constantValueString && (_jsxDEV(CalculatorIcon, { title: "Calculated Constant" }, void 0, false, { fileName: _jsxFileName, lineNumber: 233, columnNumber: 45 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 225, columnNumber: 30 }, this)) : (_jsxDEV("div", { className: "query-builder__variables__variable__type", children: [_jsxDEV("div", { className: "query-builder__variables__variable__type__label", children: variableTypeName ?? 'unknown' }, void 0, false, { fileName: _jsxFileName, lineNumber: 239, columnNumber: 19 }, this), isMilestoningParameter && (_jsxDEV(_Fragment, { children: [_jsxDEV("div", { className: "query-builder__variables__variable__type__label query-builder__variables__variable__type__label--milestoning", children: "milestoning" }, void 0, false, { fileName: _jsxFileName, lineNumber: 244, columnNumber: 23 }, this), _jsxDEV("div", { className: "query-builder__constants__value", children: milestoningParameterValueString }, void 0, false, { fileName: _jsxFileName, lineNumber: 247, columnNumber: 23 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 242, columnNumber: 47 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 237, columnNumber: 20 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 223, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 208, columnNumber: 11 }, this), actions && (_jsxDEV("div", { className: "query-builder__variables__variable__actions", children: [_jsxDEV("button", { className: "query-builder__variables__variable__action", tabIndex: -1, disabled: isReadOnly, onClick: editVariable, title: "Edit", children: _jsxDEV(PencilIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 265, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 258, columnNumber: 15 }, this), _jsxDEV("button", { className: "query-builder__variables__variable__action", tabIndex: -1, onClick: deleteVariable, disabled: deleteDisabled, title: deleteTitle, children: _jsxDEV(TimesIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 274, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 267, columnNumber: 15 }, this), _jsxDEV(VariableInfoTooltip, { variable: variable, children: _jsxDEV("div", { className: "query-builder__variables__variable__action value-spec-editor__variable__info", children: _jsxDEV(InfoCircleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 278, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 277, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 276, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 256, columnNumber: 24 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 184, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 182, columnNumber: 13 }, this));
|
71
79
|
});
|
72
80
|
export const VariableSelector = observer((props) => {
|
73
81
|
const { queryBuilderState, filterBy } = props;
|
74
82
|
const filteredParameterStates = queryBuilderState.parametersState.parameterStates.filter((p) => filterBy ? filterBy(p.parameter) : true);
|
75
83
|
const filteredConstantState = queryBuilderState.constantState.constants.filter((c) => filterBy ? filterBy(c.variable) : true);
|
76
|
-
return (
|
84
|
+
return (_jsxDEV(_Fragment, { children: [_jsxDEV(PanelFormListItems, { title: "Available parameters", children: [filteredParameterStates.length === 0 && (_jsxDEV(_Fragment, { children: " No available parameters " }, void 0, false, { fileName: _jsxFileName, lineNumber: 307, columnNumber: 53 }, this)), filteredParameterStates.map((pState) => (_jsxDEV(VariableViewer, { variable: pState.parameter, isReadOnly: true, queryBuilderState: queryBuilderState }, pState.uuid, false, { fileName: _jsxFileName, lineNumber: 310, columnNumber: 53 }, this)))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 306, columnNumber: 9 }, this), Boolean(filteredConstantState.length) && (_jsxDEV(PanelFormListItems, { title: "Available constants", children: filteredConstantState.map((constantState) => (_jsxDEV(VariableViewer, { variable: constantState.variable, value: {
|
77
85
|
val: constantState instanceof
|
78
86
|
QueryBuilderSimpleConstantExpressionState
|
79
87
|
? constantState.value
|
80
88
|
: undefined,
|
81
|
-
}, queryBuilderState: queryBuilderState, isReadOnly: true }, constantState.uuid))) }))] }));
|
89
|
+
}, queryBuilderState: queryBuilderState, isReadOnly: true }, constantState.uuid, false, { fileName: _jsxFileName, lineNumber: 321, columnNumber: 60 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 319, columnNumber: 52 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 304, columnNumber: 13 }, this));
|
82
90
|
});
|
83
91
|
//# sourceMappingURL=QueryBuilderVariableSelector.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderVariableSelector.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"QueryBuilderVariableSelector.js","sourceRoot":"","sources":["../../../src/components/shared/QueryBuilderVariableSelector.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AACzG,OAAO,EAEL,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,yCAAyC,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,UAAU,GAAG,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,KAAyB,EACzB,iBAAoC,EAChB,EAAE;IACtB,IAAI,KAAK,YAAY,wBAAwB,EAAE,CAAC;QAC9C,MAAM,iBAAiB,GAAG,qBAAqB,CAC7C,KAAK,EACL,iBAAiB,CAAC,gBAAgB,CACnC,CAAC,KAAK,CAAC;QACR,IAAI,iBAAiB,EAAE,CAAC;YACtB,OAAO,iBAAiB,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,gCAAgC,CAAC,KAAK,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,+BAA+B,GAAG,QAAQ,CAC9C,UAA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C,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACrD,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CACvC,CAAC;IAEJ,OAAO,CACL,gCACE,QAAC,kBAAkB,IAAC,KAAK,EAAC,sBAAsB,aAC7C,uBAAuB,CAAC,MAAM,KAAK,CAAC,IAAI,CACvC,iJAA8B,CAC/B,EACA,uBAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvC,QAAC,cAAc,IAEb,QAAQ,EAAE,MAAM,CAAC,SAAS,EAC1B,UAAU,EAAE,IAAI,EAChB,iBAAiB,EAAE,iBAAiB,IAH/B,MAAM,CAAC,IAAI,6EAIhB,CACH,CAAC,sFACiB,EACpB,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CACxC,QAAC,kBAAkB,IAAC,KAAK,EAAC,qBAAqB,YAC5C,qBAAqB,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,CAC5C,QAAC,cAAc,IAEb,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAChC,KAAK,EAAE;wBACL,GAAG,EACD,aAAa;4BACb,yCAAyC;4BACvC,CAAC,CAAC,aAAa,CAAC,KAAK;4BACrB,CAAC,CAAC,SAAS;qBAChB,EACD,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,IAAI,IAVX,aAAa,CAAC,IAAI,6EAWvB,CACH,CAAC,uFACiB,CACtB,uFACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -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/workflows/ClassQueryBuilder.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -82,18 +83,18 @@ const ClassQueryBuilderSetupPanelContent = observer((props) => {
|
|
82
83
|
? option.value.packageableRuntime.value.path
|
83
84
|
: 'custom',
|
84
85
|
});
|
85
|
-
return (
|
86
|
+
return (_jsxDEV("div", { className: "query-builder__setup__config-group", children: [_jsxDEV(PanelHeader, { title: "properties" }, void 0, false, { fileName: _jsxFileName, lineNumber: 135, columnNumber: 9 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__content", children: [_jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "mapping", htmlFor: "query-builder__setup__mapping-selector", children: "Mapping" }, void 0, false, { fileName: _jsxFileName, lineNumber: 138, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__mapping-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: mappingOptions.length
|
86
87
|
? 'Choose a mapping...'
|
87
88
|
: 'No compatible mapping found for class', noMatchMessage: "No compatible mapping found for specified class", disabled: !queryBuilderState.class, options: mappingOptions, onChange: changeMapping, value: selectedMappingOption, darkMode: !applicationStore.layoutService
|
88
89
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: mappingFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
89
90
|
darkMode: !applicationStore.layoutService
|
90
91
|
.TEMPORARY__isLightColorThemeEnabled,
|
91
|
-
}) })] }),
|
92
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 145, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 137, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", htmlFor: "query-builder__setup__runtime-selector", children: "Runtime" }, void 0, false, { fileName: _jsxFileName, lineNumber: 171, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__runtime-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified mapping", disabled: !queryBuilderState.class ||
|
92
93
|
!queryBuilderState.executionContextState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
|
93
94
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
94
95
|
darkMode: !applicationStore.layoutService
|
95
96
|
.TEMPORARY__isLightColorThemeEnabled,
|
96
|
-
}) })] }),
|
97
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 178, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 170, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: _jsxDEV(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, onClassChange: onClassChange }, void 0, false, { fileName: _jsxFileName, lineNumber: 203, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 202, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 136, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 133, columnNumber: 13 }, this));
|
97
98
|
});
|
98
|
-
export const renderClassQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
99
|
+
export const renderClassQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsxDEV(ClassQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }, void 0, false, { fileName: _jsxFileName, lineNumber: 217, columnNumber: 24 }, this));
|
99
100
|
//# sourceMappingURL=ClassQueryBuilder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClassQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/ClassQueryBuilder.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ClassQueryBu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N,iBAAK,SAAS,EAAC,0CAA0C,aACvD,mBACE,SAAS,EAAC,yDAAyD,EACnE,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,wCAAwC,4GAG1C,EACR,QAAC,mBAAmB,IAClB,OAAO,EAAC,wCAAwC,EAChD,SAAS,EAAC,4FAA4F,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,mDAAmD,EAClE,QAAQ,EACN,CAAC,iBAAiB,CAAC,KAAK;oCACxB,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAElD,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;oCAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC;iCACzC,CAAC,uFACF,uFACE,EACN,iBAAK,SAAS,EAAC,0CAA0C,YACvD,QAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,uFAC5B,uFACE,sFACF,uFACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,iBAAyC,EACxB,EAAE,CAAC,CACpB,QAAC,kCAAkC,IAAC,iBAAiB,EAAE,iBAAiB,uFAAI,CAC7E,CAAC"}
|
@@ -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/workflows/MappingQueryBuilder.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -82,17 +83,17 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
82
83
|
const classes = queryBuilderState.executionContextState.mapping
|
83
84
|
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
84
85
|
: [];
|
85
|
-
return (
|
86
|
+
return (_jsxDEV("div", { className: "query-builder__setup__config-group", children: [_jsxDEV(PanelHeader, { title: "properties" }, void 0, false, { fileName: _jsxFileName, lineNumber: 129, columnNumber: 9 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__content", children: [_jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "mapping", htmlFor: "query-builder__setup__mapping-selector", children: "Mapping" }, void 0, false, { fileName: _jsxFileName, lineNumber: 132, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__mapping-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: mappingOptions.length
|
86
87
|
? 'Choose a mapping...'
|
87
88
|
: 'No mapping found', noMatchMessage: "No mapping found", options: mappingOptions, onChange: changeMapping, value: selectedMappingOption, darkMode: !applicationStore.layoutService
|
88
89
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: mappingFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
89
90
|
darkMode: !applicationStore.layoutService
|
90
91
|
.TEMPORARY__isLightColorThemeEnabled,
|
91
|
-
}) })] }),
|
92
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 139, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 131, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", htmlFor: "query-builder__setup__runtime-selector", children: "Runtime" }, void 0, false, { fileName: _jsxFileName, lineNumber: 164, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__runtime-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified mapping", disabled: !queryBuilderState.executionContextState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
|
92
93
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
93
94
|
darkMode: !applicationStore.layoutService
|
94
95
|
.TEMPORARY__isLightColorThemeEnabled,
|
95
|
-
}) })] }),
|
96
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 171, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 163, columnNumber: 11 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: _jsxDEV(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, noMatchMessage: "No compatible entity found for specified mapping" }, void 0, false, { fileName: _jsxFileName, lineNumber: 193, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 192, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 130, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 127, columnNumber: 13 }, this));
|
96
97
|
});
|
97
|
-
export const renderMappingQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
98
|
+
export const renderMappingQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsxDEV(MappingQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }, void 0, false, { fileName: _jsxFileName, lineNumber: 207, columnNumber: 24 }, this));
|
98
99
|
//# sourceMappingURL=MappingQueryBuilder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/MappingQueryBuilder.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"MappingQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/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,yDAAyD,EACnE,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,wCAAwC,4GAG1C,EACR,QAAC,mBAAmB,IAClB,OAAO,EAAC,wCAAwC,EAChD,SAAS,EAAC,4FAA4F,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,mDAAmD,EAClE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAC1D,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;oCAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC;iCACzC,CAAC,uFACF,uFACE,EACN,iBAAK,SAAS,EAAC,0CAA0C,YACvD,QAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAC,kDAAkD,uFACjE,uFACE,sFACF,uFACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,QAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,uFAAI,CAC/E,CAAC"}
|
@@ -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/workflows/ServiceQueryBuilder.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -66,12 +67,12 @@ const ServiceQueryBuilderSetupPanelContent = observer((props) => {
|
|
66
67
|
const classes = queryBuilderState.executionContextState.mapping
|
67
68
|
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
68
69
|
: [];
|
69
|
-
return (
|
70
|
+
return (_jsxDEV("div", { className: "query-builder__setup__config-group", children: [_jsxDEV(PanelHeader, { title: "properties" }, void 0, false, { fileName: _jsxFileName, lineNumber: 106, columnNumber: 9 }, this), _jsxDEV("div", { className: "query-builder__setup__config-group__content", children: [_jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "service", htmlFor: "query-builder__setup__service-selector", children: "Service" }, void 0, false, { fileName: _jsxFileName, lineNumber: 109, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__service-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a service...", options: serviceOptions, disabled: serviceOptions.length < 1 ||
|
70
71
|
(serviceOptions.length === 1 && Boolean(selectedServiceOption)), onChange: onServiceOptionChange, value: selectedServiceOption, darkMode: !applicationStore.layoutService
|
71
|
-
.TEMPORARY__isLightColorThemeEnabled })] }), Boolean(queryBuilderState.executionContexts.length) && (
|
72
|
+
.TEMPORARY__isLightColorThemeEnabled }, void 0, false, { fileName: _jsxFileName, lineNumber: 116, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 108, columnNumber: 11 }, this), Boolean(queryBuilderState.executionContexts.length) && (_jsxDEV(_Fragment, { children: _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: [_jsxDEV("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", htmlFor: "query-builder__setup__context-selector", children: "Context" }, void 0, false, { fileName: _jsxFileName, lineNumber: 137, columnNumber: 17 }, this), _jsxDEV(CustomSelectorInput, { inputId: "query-builder__setup__context-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length < 1 ||
|
72
73
|
(executionContextOptions.length === 1 &&
|
73
74
|
Boolean(selectedExecutionContextOption)), onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
|
74
|
-
.TEMPORARY__isLightColorThemeEnabled })] }) })),
|
75
|
+
.TEMPORARY__isLightColorThemeEnabled }, void 0, false, { fileName: _jsxFileName, lineNumber: 144, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 136, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 134, columnNumber: 68 }, this)), _jsxDEV("div", { className: "query-builder__setup__config-group__item", children: _jsxDEV(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, noMatchMessage: "No compatible entity found for specified execution context" }, void 0, false, { fileName: _jsxFileName, lineNumber: 165, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 164, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 107, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 104, columnNumber: 13 }, this));
|
75
76
|
});
|
76
|
-
export const renderServiceQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
77
|
+
export const renderServiceQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsxDEV(ServiceQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }, void 0, false, { fileName: _jsxFileName, lineNumber: 179, columnNumber: 24 }, this));
|
77
78
|
//# sourceMappingURL=ServiceQueryBuilder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/ServiceQueryBuilder.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ServiceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/ServiceQueryBuilder.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,cAAc,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