@finos/legend-query-builder 4.14.49 → 4.14.50
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 +45 -46
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +18 -19
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +2 -2
- package/lib/components/QueryBuilderDiffPanel.js +6 -7
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +10 -11
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +13 -14
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -2
- package/lib/components/QueryBuilderSideBar.js +11 -12
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +1 -1
- package/lib/components/QueryBuilderTextEditor.js +7 -8
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +3 -4
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -1
- package/lib/components/QueryChat.d.ts +1 -1
- package/lib/components/QueryChat.js +2 -3
- package/lib/components/QueryChat.js.map +1 -1
- package/lib/components/QueryLoader.d.ts +2 -2
- package/lib/components/QueryLoader.js +24 -25
- package/lib/components/QueryLoader.js.map +1 -1
- package/lib/components/QueryUsageViewer.d.ts +1 -1
- package/lib/components/QueryUsageViewer.js +3 -4
- package/lib/components/QueryUsageViewer.js.map +1 -1
- package/lib/components/ServiceQuerySetupUtils.js +3 -4
- package/lib/components/ServiceQuerySetupUtils.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -3
- 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 +16 -17
- package/lib/components/data-access/DataAccessOverview.js.map +1 -1
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js +3 -4
- package/lib/components/execution-plan/AllocationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js +2 -3
- package/lib/components/execution-plan/ConstantExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/DataTypeResultTypeViewer.js +3 -4
- 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 +33 -34
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js +2 -3
- package/lib/components/execution-plan/FunctionParametersValidationNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ImplementationViewer.js +3 -4
- package/lib/components/execution-plan/ImplementationViewer.js.map +1 -1
- package/lib/components/execution-plan/PartialClassResultViewer.js +2 -3
- package/lib/components/execution-plan/PartialClassResultViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/RelationalClassQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js +6 -7
- package/lib/components/execution-plan/RelationalCrossRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/RelationalRootQueryTempTableGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js +3 -4
- package/lib/components/execution-plan/RelationalTDSInstantiationExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/ResultTypeViewer.js +4 -5
- package/lib/components/execution-plan/ResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +6 -7
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/SequenceExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js +5 -6
- package/lib/components/execution-plan/StoreMappingGlobalGraphFetchExecutionNodeViewer.js.map +1 -1
- package/lib/components/execution-plan/TDSResultTypeViewer.js +3 -4
- package/lib/components/execution-plan/TDSResultTypeViewer.js.map +1 -1
- package/lib/components/execution-plan/TempTableStrategyViewer.js +2 -3
- 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 +30 -31
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +19 -20
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js +3 -4
- package/lib/components/explorer/QueryBuilderMilestoningParameterEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +17 -18
- 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 +8 -9
- 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 +23 -24
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +26 -27
- 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 +2 -3
- 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 +13 -14
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +8 -9
- 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.js +40 -41
- 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 +28 -29
- 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 +19 -20
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts +2 -2
- package/lib/components/result/QueryBuilderResultPanel.js +16 -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 +10 -11
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +4 -5
- 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 +8 -9
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +37 -38
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +20 -21
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +2 -2
- package/lib/components/shared/LambdaEditor.js +13 -14
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +6 -7
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +3 -4
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +9 -10
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js +3 -4
- package/lib/components/shared/QueryBuilderRootClassInfoTooltip.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +2 -2
- package/lib/components/shared/QueryBuilderVariableSelector.js +7 -8
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +5 -6
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +5 -6
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +5 -6
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +3 -3
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -31,18 +30,18 @@ export const QueryBuilderTaggedValueInfoTooltip = (props) => {
|
|
31
30
|
.filter((taggedValue) => isDocTaggedValue(taggedValue))
|
32
31
|
.map((taggedValue) => taggedValue.value);
|
33
32
|
const tagValuesExceptDoc = taggedValues.filter((taggedValue) => !isDocTaggedValue(taggedValue));
|
34
|
-
const taggedValueCellRender = (taggedValue) => (
|
35
|
-
return (
|
33
|
+
const taggedValueCellRender = (taggedValue) => (_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: `${taggedValue.tag.ownerReference.value.name}.${taggedValue.tag.value.value}` }), _jsx("div", { className: "query-builder__tooltip__item__value", children: taggedValue.value })] }, `${taggedValue.tag.ownerReference.value.name}.${taggedValue.value}`));
|
34
|
+
return (_jsx("div", { children: tagValuesExceptDoc.length > 0 ? (_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Tagged Values" }), _jsxs("div", { className: "query-builder__tooltip__taggedValues", children: [taggedValues.slice(0, 1).map((taggedValue) => (_jsxs("div", { className: "query-builder__tooltip__combo", children: [taggedValueCellRender(taggedValue), taggedValues.length > 3 && (_jsx("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' }))] }, `${taggedValue.tag.ownerReference.value.name}.${taggedValue.value}`))), taggedValues
|
36
35
|
.slice(1, 3)
|
37
36
|
.map((taggedValue) => taggedValueCellRender(taggedValue)), showMore &&
|
38
37
|
taggedValues
|
39
38
|
.slice(3)
|
40
|
-
.map((taggedValue) => taggedValueCellRender(taggedValue))] }
|
39
|
+
.map((taggedValue) => taggedValueCellRender(taggedValue))] })] })) : (_jsx(_Fragment, { children: Boolean(documentation.length) && (_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Documentation" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: documentation.join('\n\n') })] })) })) }));
|
41
40
|
};
|
42
41
|
const QueryBuilderBaseInfoTooltip = (props) => {
|
43
42
|
const { title, data, placement, children, footerElement } = props;
|
44
43
|
const [open, setIsOpen] = useState(false);
|
45
|
-
return (
|
44
|
+
return (_jsx(ClickAwayListener, { onClickAway: () => setIsOpen(false), children: _jsx("div", { children: _jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
46
45
|
tooltip: 'query-builder__tooltip',
|
47
46
|
arrow: 'query-builder__tooltip__arrow',
|
48
47
|
tooltipPlacementRight: 'query-builder__tooltip--right',
|
@@ -51,7 +50,7 @@ const QueryBuilderBaseInfoTooltip = (props) => {
|
|
51
50
|
// NOTE: somehow, this is the only workaround we have, if for example
|
52
51
|
// we set `appear = true`, the tooltip will jump out of position
|
53
52
|
timeout: 0,
|
54
|
-
}, disableFocusListener: true, disableHoverListener: true, disableTouchListener: true, title:
|
53
|
+
}, disableFocusListener: true, disableHoverListener: true, disableTouchListener: true, title: _jsxs("div", { className: "query-builder__tooltip__content", children: [_jsx("div", { className: "query-builder__tooltip__header", children: title }), data.map((elem) => (_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: elem.label }), _jsx("div", { className: "query-builder__tooltip__item__value", children: elem.value }), elem.actionButton] }, elem.label))), footerElement] }), children: _jsx("div", { onClick: () => setIsOpen(true), children: children }) }) }) }));
|
55
54
|
};
|
56
55
|
export const QueryBuilderPropertyInfoTooltip = (props) => {
|
57
56
|
const { title, property, path, isMapped, children, placement, type, explorerState, } = props;
|
@@ -63,7 +62,7 @@ export const QueryBuilderPropertyInfoTooltip = (props) => {
|
|
63
62
|
{
|
64
63
|
label: 'Path',
|
65
64
|
value: path,
|
66
|
-
actionButton: explorerState ? (
|
65
|
+
actionButton: explorerState ? (_jsx("div", { className: "query-builder__tooltip__item__action", children: _jsx("button", { onClick: () => explorerState.highlightTreeNode(path), title: "Show in tree", children: _jsx(ShareBoxIcon, { color: "white" }) }) })) : undefined,
|
67
66
|
},
|
68
67
|
{
|
69
68
|
label: 'Multiplicity',
|
@@ -78,7 +77,7 @@ export const QueryBuilderPropertyInfoTooltip = (props) => {
|
|
78
77
|
value: isMapped ? 'Yes' : 'No',
|
79
78
|
},
|
80
79
|
];
|
81
|
-
return (
|
80
|
+
return (_jsx(QueryBuilderBaseInfoTooltip, { title: title, data: data, placement: placement, footerElement: _jsx(QueryBuilderTaggedValueInfoTooltip, { taggedValues: property.taggedValues }), children: children }));
|
82
81
|
};
|
83
82
|
export const QueryBuilderDerivationInfoTooltip = (props) => {
|
84
83
|
const { title, children, placement, type } = props;
|
@@ -88,6 +87,6 @@ export const QueryBuilderDerivationInfoTooltip = (props) => {
|
|
88
87
|
value: type?.path ?? 'undefined',
|
89
88
|
},
|
90
89
|
];
|
91
|
-
return (
|
90
|
+
return (_jsx(QueryBuilderBaseInfoTooltip, { title: title, data: data, placement: placement, children: children }));
|
92
91
|
};
|
93
92
|
//# 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,CAAC;IACvC,MAAM,aAAa,GAAG,YAAY;SAC/B,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;SACtD,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC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CAAC,EACpD,KAAK,EAAC,cAAc,YAEpB,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,GAAG,GACvB,GACL,CACP,CAAC,CAAC,CAAC,SAAS;SACd;QACD;YACE,KAAK,EAAE,cAAc;YACrB,KAAK,EAAE,0BAA0B,CAAC,QAAQ,CAAC,YAAY,CAAC;SACzD;QACD;YACE,KAAK,EAAE,kBAAkB;YACzB,KAAK,EAAE,QAAQ,YAAY,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SAC1D;QACD;YACE,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;SAC/B;KACF,CAAC;IAEF,OAAO,CACL,KAAC,2BAA2B,IAC1B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,aAAa,EACX,KAAC,kCAAkC,IACjC,YAAY,EAAE,QAAQ,CAAC,YAAY,GACnC,YAGH,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAKzC,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEnD,MAAM,IAAI,GAAG;QACX;YACE,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,IAAI,EAAE,IAAI,IAAI,WAAW;SACjC;KACF,CAAC;IAEF,OAAO,CACL,KAAC,2BAA2B,IAC1B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/shared/QueryBuilderRootClassInfoTooltip.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -20,7 +19,7 @@ import {} from '@finos/legend-graph';
|
|
20
19
|
import { QueryBuilderTaggedValueInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js';
|
21
20
|
export const QueryBuilderRootClassInfoTooltip = (props) => {
|
22
21
|
const { _class, children, placement } = props;
|
23
|
-
return (
|
22
|
+
return (_jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
|
24
23
|
tooltip: 'query-builder__tooltip',
|
25
24
|
arrow: 'query-builder__tooltip__arrow',
|
26
25
|
tooltipPlacementRight: 'query-builder__tooltip--right',
|
@@ -29,6 +28,6 @@ export const QueryBuilderRootClassInfoTooltip = (props) => {
|
|
29
28
|
// NOTE: somehow, this is the only workaround we have, if for example
|
30
29
|
// we set `appear = true`, the tooltip will jump out of position
|
31
30
|
timeout: 0,
|
32
|
-
}, title:
|
31
|
+
}, title: _jsxs("div", { className: "query-builder__tooltip__content", children: [_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Type" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: "Unknown" })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Path" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: _class.path })] }), _jsx(QueryBuilderTaggedValueInfoTooltip, { taggedValues: _class.taggedValues })] }), children: children }));
|
33
32
|
};
|
34
33
|
//# 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,KAAC,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,eAAK,SAAS,EAAC,iCAAiC,aAC9C,eAAK,SAAS,EAAC,8BAA8B,aAC3C,cAAK,SAAS,EAAC,qCAAqC,qBAAW,EAC/D,cAAK,SAAS,EAAC,qCAAqC,wBAAc,IAC9D,EACN,eAAK,SAAS,EAAC,8BAA8B,aAC3C,cAAK,SAAS,EAAC,qCAAqC,qBAAW,EAC/D,cAAK,SAAS,EAAC,qCAAqC,YACjD,MAAM,CAAC,IAAI,GACR,IACF,EACN,KAAC,kCAAkC,IACjC,YAAY,EAAE,MAAM,CAAC,YAAY,GACjC,IACE,YAGP,QAAQ,GACD,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-
|
35
|
+
}) => import("react/jsx-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-
|
41
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
42
42
|
displayName: string;
|
43
43
|
};
|
44
44
|
//# sourceMappingURL=QueryBuilderVariableSelector.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/shared/QueryBuilderVariableSelector.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -36,7 +35,7 @@ export const getNameOfValueSpecification = (value, queryBuilderState) => {
|
|
36
35
|
};
|
37
36
|
const QueryBuilderVariableContextMenu = observer(forwardRef(function QueryBuilderVariableContextMenu(props, ref) {
|
38
37
|
const { actions, extraContextMenuActions, variableInUse } = props;
|
39
|
-
return (
|
38
|
+
return (_jsxs(MenuContent, { ref: ref, children: [extraContextMenuActions?.map((action) => (_jsx(MenuContentItem, { onClick: action.handler, children: action.label }, action.key))), actions?.editVariable && (_jsx(MenuContentItem, { onClick: actions.editVariable, children: "Edit" })), actions?.deleteVariable && (_jsx(MenuContentItem, { disabled: variableInUse, onClick: actions.deleteVariable, children: "Remove" }))] }));
|
40
39
|
}));
|
41
40
|
export const VariableViewer = observer((props) => {
|
42
41
|
const { variable, value, actions, isReadOnly, queryBuilderState, extraContextMenuActions, } = props;
|
@@ -71,21 +70,21 @@ export const VariableViewer = observer((props) => {
|
|
71
70
|
item: { variable: variable },
|
72
71
|
}), [variable]);
|
73
72
|
useDragPreviewLayer(dragPreviewConnector);
|
74
|
-
return (
|
73
|
+
return (_jsx("div", { className: "query-builder__variables__variable", ref: dragConnector, children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderVariableContextMenu, { variable: variable, variableInUse: isVariableUsed, actions: actions, extraContextMenuActions: extraContextMenuActions }), disabled: isReadOnly || !actions, className: clsx('query-builder__variables__variable__context-menu', {
|
75
74
|
'query-builder__variables__variable--selected-from-context-menu': isSelectedFromContextMenu,
|
76
|
-
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [
|
75
|
+
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(DragPreviewLayer, { labelGetter: (item) => item.variable.name === '' ? '(unknown)' : item.variable.name, types: [QUERY_BUILDER_VARIABLE_DND_TYPE] }), _jsxs("div", { onClick: editVariable, className: "query-builder__variables__variable__content", children: [_jsx("div", { className: "query-builder__variables__variable__icon", children: _jsx("div", { className: "query-builder__variables__variable-icon", children: isConstant ? (_jsx("div", { className: "icon query-builder__variables__variable-icon", children: "C" })) : (_jsx(DollarIcon, {})) }) }), _jsxs("div", { className: "query-builder__variables__variable__label", children: [name, isConstant ? (_jsxs("div", { className: clsx('query-builder__constants__value', {
|
77
76
|
'query-builder__constants__value--icon': !constantValueString,
|
78
|
-
}), children: [constantValueString, !constantValueString && (
|
77
|
+
}), children: [constantValueString, !constantValueString && (_jsx(CalculatorIcon, { title: "Calculated Constant" }))] })) : (_jsxs("div", { className: "query-builder__variables__variable__type", children: [_jsx("div", { className: "query-builder__variables__variable__type__label", children: variableTypeName ?? 'unknown' }), isMilestoningParameter && (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-builder__variables__variable__type__label query-builder__variables__variable__type__label--milestoning", children: "milestoning" }), _jsx("div", { className: "query-builder__constants__value", children: milestoningParameterValueString })] }))] }))] })] }), actions && (_jsxs("div", { className: "query-builder__variables__variable__actions", children: [_jsx("button", { className: "query-builder__variables__variable__action", tabIndex: -1, disabled: isReadOnly, onClick: editVariable, title: "Edit", children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "query-builder__variables__variable__action", tabIndex: -1, onClick: deleteVariable, disabled: deleteDisabled, title: deleteTitle, children: _jsx(TimesIcon, {}) }), _jsx(VariableInfoTooltip, { variable: variable, children: _jsx("div", { className: "query-builder__variables__variable__action value-spec-editor__variable__info", children: _jsx(InfoCircleIcon, {}) }) })] }))] }) }));
|
79
78
|
});
|
80
79
|
export const VariableSelector = observer((props) => {
|
81
80
|
const { queryBuilderState, filterBy } = props;
|
82
81
|
const filteredParameterStates = queryBuilderState.parametersState.parameterStates.filter((p) => filterBy ? filterBy(p.parameter) : true);
|
83
82
|
const filteredConstantState = queryBuilderState.constantState.constants.filter((c) => filterBy ? filterBy(c.variable) : true);
|
84
|
-
return (
|
83
|
+
return (_jsxs(_Fragment, { children: [_jsxs(PanelFormListItems, { title: "Available parameters", children: [filteredParameterStates.length === 0 && (_jsx(_Fragment, { children: " No available parameters " })), filteredParameterStates.map((pState) => (_jsx(VariableViewer, { variable: pState.parameter, isReadOnly: true, queryBuilderState: queryBuilderState }, pState.uuid)))] }), Boolean(filteredConstantState.length) && (_jsx(PanelFormListItems, { title: "Available constants", children: filteredConstantState.map((constantState) => (_jsx(VariableViewer, { variable: constantState.variable, value: {
|
85
84
|
val: constantState instanceof
|
86
85
|
QueryBuilderSimpleConstantExpressionState
|
87
86
|
? constantState.value
|
88
87
|
: undefined,
|
89
|
-
}, queryBuilderState: queryBuilderState, isReadOnly: true }, constantState.uuid
|
88
|
+
}, queryBuilderState: queryBuilderState, isReadOnly: true }, constantState.uuid))) }))] }));
|
90
89
|
});
|
91
90
|
//# 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,UAAU,CAmBR,SAAS,+BAA+B,CAAC,KAAK,EAAE,GAAG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,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CACvC,CAAC;IAEJ,OAAO,CACL,8BACE,MAAC,kBAAkB,IAAC,KAAK,EAAC,sBAAsB,aAC7C,uBAAuB,CAAC,MAAM,KAAK,CAAC,IAAI,CACvC,0DAA8B,CAC/B,EACA,uBAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvC,KAAC,cAAc,IAEb,QAAQ,EAAE,MAAM,CAAC,SAAS,EAC1B,UAAU,EAAE,IAAI,EAChB,iBAAiB,EAAE,iBAAiB,IAH/B,MAAM,CAAC,IAAI,CAIhB,CACH,CAAC,IACiB,EACpB,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CACxC,KAAC,kBAAkB,IAAC,KAAK,EAAC,qBAAqB,YAC5C,qBAAqB,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,CAC5C,KAAC,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,CAWvB,CACH,CAAC,GACiB,CACtB,IACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/workflows/ClassQueryBuilder.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -83,18 +82,18 @@ const ClassQueryBuilderSetupPanelContent = observer((props) => {
|
|
83
82
|
? option.value.packageableRuntime.value.path
|
84
83
|
: 'custom',
|
85
84
|
});
|
86
|
-
return (
|
85
|
+
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "mapping", htmlFor: "query-builder__setup__mapping-selector", children: "Mapping" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__mapping-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: mappingOptions.length
|
87
86
|
? 'Choose a mapping...'
|
88
87
|
: '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
|
89
88
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: mappingFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
90
89
|
darkMode: !applicationStore.layoutService
|
91
90
|
.TEMPORARY__isLightColorThemeEnabled,
|
92
|
-
}) }
|
91
|
+
}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", htmlFor: "query-builder__setup__runtime-selector", children: "Runtime" }), _jsx(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 ||
|
93
92
|
!queryBuilderState.executionContextState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
|
94
93
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
95
94
|
darkMode: !applicationStore.layoutService
|
96
95
|
.TEMPORARY__isLightColorThemeEnabled,
|
97
|
-
}) }
|
96
|
+
}) })] }), _jsx("div", { className: "query-builder__setup__config-group__item", children: _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, onClassChange: onClassChange }) })] })] }));
|
98
97
|
});
|
99
|
-
export const renderClassQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
98
|
+
export const renderClassQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsx(ClassQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
100
99
|
//# 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":"ClassQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/ClassQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAIL,mCAAmC,EACnC,cAAc,EACd,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,kCAAkC,GAAG,QAAQ,CACjD,CAAC,KAAoD,EAAE,EAAE;IACvD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,QAAQ;IACR,MAAM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AAa,GAC5B,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,iBAAyC,EACxB,EAAE,CAAC,CACpB,KAAC,kCAAkC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC7E,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/workflows/MappingQueryBuilder.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -83,17 +82,17 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
83
82
|
const classes = queryBuilderState.executionContextState.mapping
|
84
83
|
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
85
84
|
: [];
|
86
|
-
return (
|
85
|
+
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "mapping", htmlFor: "query-builder__setup__mapping-selector", children: "Mapping" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__mapping-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: mappingOptions.length
|
87
86
|
? 'Choose a mapping...'
|
88
87
|
: 'No mapping found', noMatchMessage: "No mapping found", options: mappingOptions, onChange: changeMapping, value: selectedMappingOption, darkMode: !applicationStore.layoutService
|
89
88
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: mappingFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
90
89
|
darkMode: !applicationStore.layoutService
|
91
90
|
.TEMPORARY__isLightColorThemeEnabled,
|
92
|
-
}) }
|
91
|
+
}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", htmlFor: "query-builder__setup__runtime-selector", children: "Runtime" }), _jsx(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
|
93
92
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
94
93
|
darkMode: !applicationStore.layoutService
|
95
94
|
.TEMPORARY__isLightColorThemeEnabled,
|
96
|
-
}) }
|
95
|
+
}) })] }), _jsx("div", { className: "query-builder__setup__config-group__item", children: _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, noMatchMessage: "No compatible entity found for specified mapping" }) })] })] }));
|
97
96
|
});
|
98
|
-
export const renderMappingQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
97
|
+
export const renderMappingQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsx(MappingQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
99
98
|
//# 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/MappingQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QA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c,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,GACF,IACE,EACN,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAC,kDAAkD,GACjE,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-query-builder/src/components/workflows/ServiceQueryBuilder.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -67,12 +66,12 @@ const ServiceQueryBuilderSetupPanelContent = observer((props) => {
|
|
67
66
|
const classes = queryBuilderState.executionContextState.mapping
|
68
67
|
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
69
68
|
: [];
|
70
|
-
return (
|
69
|
+
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "service", htmlFor: "query-builder__setup__service-selector", children: "Service" }), _jsx(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 ||
|
71
70
|
(serviceOptions.length === 1 && Boolean(selectedServiceOption)), onChange: onServiceOptionChange, value: selectedServiceOption, darkMode: !applicationStore.layoutService
|
72
|
-
.TEMPORARY__isLightColorThemeEnabled }
|
71
|
+
.TEMPORARY__isLightColorThemeEnabled })] }), Boolean(queryBuilderState.executionContexts.length) && (_jsx(_Fragment, { children: _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", htmlFor: "query-builder__setup__context-selector", children: "Context" }), _jsx(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 ||
|
73
72
|
(executionContextOptions.length === 1 &&
|
74
73
|
Boolean(selectedExecutionContextOption)), onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
|
75
|
-
.TEMPORARY__isLightColorThemeEnabled }
|
74
|
+
.TEMPORARY__isLightColorThemeEnabled })] }) })), _jsx("div", { className: "query-builder__setup__config-group__item", children: _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, noMatchMessage: "No compatible entity found for specified execution context" }) })] })] }));
|
76
75
|
});
|
77
|
-
export const renderServiceQueryBuilderSetupPanelContent = (queryBuilderState) => (
|
76
|
+
export const renderServiceQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsx(ServiceQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
78
77
|
//# 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,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAgB,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,OAAO,EACL,kBAAkB,GAEnB,MAAM,iCAAiC,CAAC;AAMzC,MAAM,2BAA2B,GAAG,CAClC,KAA8B,EACN,EAAE,CAAC,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC,GAAG;IAChB,KAAK;CACN,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,+CAA+C;AAC/C,MAAM,oCAAoC,GAAG,QAAQ,CACnD,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,oBAAoB;IACpB,MAAM,cAAc,GAClB,iBAAiB,CAAC,cAAc;QAC9B,EAAE,GAAG,CAAC,kBAAkB,CAAC;SACxB,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IAChC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC5E,MAAM,qBAAqB,GAAG,CAC5B,MAAyC,EACnC,EAAE;QACR,IAAI,MAAM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AG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.50",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,8 +44,8 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "15.1.9",
|
46
46
|
"@finos/legend-art": "7.1.37",
|
47
|
-
"@finos/legend-graph": "31.10.
|
48
|
-
"@finos/legend-lego": "1.2.
|
47
|
+
"@finos/legend-graph": "31.10.4",
|
48
|
+
"@finos/legend-lego": "1.2.40",
|
49
49
|
"@finos/legend-server-depot": "6.0.44",
|
50
50
|
"@finos/legend-shared": "10.0.39",
|
51
51
|
"@finos/legend-storage": "3.0.89",
|