@finos/legend-query-builder 4.14.29 → 4.14.31
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.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +64 -7
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +5 -10
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +3 -0
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +5 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +4 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -0
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +51 -3
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +1 -0
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +10 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +21 -2
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +2 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +33 -4
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +5 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +2 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +2 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +7 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +4 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderAdvancedWorkflowState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderAdvancedWorkflowState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderAdvancedWorkflowState.js +2 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderAdvancedWorkflowState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +4 -3
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +35 -3
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +2 -9
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +45 -36
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.d.ts +20 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js +55 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js.map +1 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts +35 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.d.ts.map +1 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js +42 -0
- package/lib/stores/query-workflow/QueryBuilderWorkFlowState.js.map +1 -0
- package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +2 -1
- package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/FunctionQueryBuilderState.js +2 -2
- package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts +2 -1
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/MappingQueryBuilderState.js +2 -2
- package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +2 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +2 -2
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +3 -3
- package/src/components/QueryBuilder.tsx +214 -2
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +2 -0
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +29 -29
- package/src/graph/QueryBuilderMetaModelConst.ts +7 -0
- package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +3 -3
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +122 -1
- package/src/index.ts +1 -0
- package/src/stores/QueryBuilderResultState.ts +1 -0
- package/src/stores/QueryBuilderState.ts +27 -0
- package/src/stores/QueryBuilderStateBuilder.ts +65 -5
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +5 -0
- package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +2 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +15 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +5 -0
- package/src/stores/fetch-structure/tds/QueryBuilderAdvancedWorkflowState.ts +0 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +5 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +76 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +90 -81
- package/src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts +108 -0
- package/src/stores/query-workflow/QueryBuilderWorkFlowState.ts +64 -0
- package/src/stores/workflows/FunctionQueryBuilderState.ts +3 -1
- package/src/stores/workflows/MappingQueryBuilderState.ts +9 -1
- package/src/stores/workflows/ServiceQueryBuilderState.ts +9 -1
- package/tsconfig.json +3 -0
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import type
|
16
|
+
import { type QueryBuilderState } from '../stores/QueryBuilderState.js';
|
17
17
|
export declare const QueryBuilder: ((props: {
|
18
18
|
queryBuilderState: QueryBuilderState;
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element) & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuCH,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAC;AAkLxC,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA6sBjD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
4
|
*
|
@@ -15,18 +15,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
|
-
import { HammerIcon, ResizablePanelGroup, ResizablePanel, ResizablePanelSplitter, HackerIcon, DropdownMenu, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, CheckIcon, CaretDownIcon, DiffIcon, WaterDropIcon, MenuContentDivider, Dialog, Modal, ModalBody, ModalFooter, ModalHeader, BlankPanelContent, ModalFooterButton, CalendarClockIcon, ChatIcon, PanelLoadingIndicator, SerializeIcon, DataAccessIcon, AssistantIcon, } from '@finos/legend-art';
|
18
|
+
import { HammerIcon, ResizablePanelGroup, ResizablePanel, ResizablePanelSplitter, HackerIcon, DropdownMenu, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, CheckIcon, CaretDownIcon, DiffIcon, WaterDropIcon, MenuContentDivider, Dialog, Modal, ModalBody, ModalFooter, ModalHeader, BlankPanelContent, ModalFooterButton, CalendarClockIcon, ChatIcon, PanelLoadingIndicator, SerializeIcon, DataAccessIcon, AssistantIcon, clsx, } from '@finos/legend-art';
|
19
19
|
import { QueryBuilderFilterPanel } from './filter/QueryBuilderFilterPanel.js';
|
20
20
|
import { QueryBuilderExplorerPanel } from './explorer/QueryBuilderExplorerPanel.js';
|
21
21
|
import { QueryBuilderSidebar } from './QueryBuilderSideBar.js';
|
22
22
|
import { QueryBuilderResultPanel } from './result/QueryBuilderResultPanel.js';
|
23
23
|
import { QueryBuilderTextEditor } from './QueryBuilderTextEditor.js';
|
24
|
+
import { QUERY_BUILDER_LAMBDA_WRITER_MODE, } from '../stores/QueryBuilderState.js';
|
24
25
|
import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
|
25
26
|
import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderFetchStructurePanel.js';
|
26
27
|
import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
27
28
|
import { flowResult } from 'mobx';
|
28
29
|
import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js';
|
29
|
-
import { BackdropContainer, useCommands, ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
30
|
+
import { BackdropContainer, useCommands, ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
|
30
31
|
import { QueryBuilderParametersPanel } from './QueryBuilderParametersPanel.js';
|
31
32
|
import { QueryBuilderFunctionsExplorerPanel } from './explorer/QueryBuilderFunctionsExplorerPanel.js';
|
32
33
|
import { QueryBuilderTDSState } from '../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
@@ -42,6 +43,8 @@ import { DataAccessOverview } from './data-access/DataAccessOverview.js';
|
|
42
43
|
import { QueryChat } from './QueryChat.js';
|
43
44
|
import { useEffect, useRef } from 'react';
|
44
45
|
import { RedoButton, UndoButton } from '@finos/legend-lego/application';
|
46
|
+
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js';
|
47
|
+
import { onChangeFetchStructureImplementation } from '../stores/fetch-structure/QueryBuilderFetchStructureState.js';
|
45
48
|
const QueryBuilderPostGraphFetchPanel = observer((props) => {
|
46
49
|
const { graphFetchState } = props;
|
47
50
|
if (!graphFetchState.TEMPORARY__showPostFetchStructurePanel) {
|
@@ -49,6 +52,30 @@ const QueryBuilderPostGraphFetchPanel = observer((props) => {
|
|
49
52
|
}
|
50
53
|
return (_jsx(QueryBuilderFilterPanel, { queryBuilderState: graphFetchState.queryBuilderState }));
|
51
54
|
});
|
55
|
+
const QueryBuilderStatusBar = observer((props) => {
|
56
|
+
const { queryBuilderState } = props;
|
57
|
+
const applicationStore = useApplicationStore();
|
58
|
+
const showDiff = () => queryBuilderState.changeDetectionState.showDiffViewPanel();
|
59
|
+
const openLambdaEditor = (mode) => queryBuilderState.textEditorState.openModal(mode);
|
60
|
+
const compile = applicationStore.guardUnhandledError(() => flowResult(queryBuilderState.compileQuery()));
|
61
|
+
const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
|
62
|
+
const openQueryChat = () => queryBuilderState.setIsQueryChatOpened(true);
|
63
|
+
return (_jsxs("div", { className: "query-builder__status-bar", children: [_jsx("div", { className: "query-builder__status-bar__left" }), _jsxs("div", { className: "query-builder__status-bar__right", children: [queryBuilderState.changeDetectionState.initState.hasCompleted && (_jsxs(_Fragment, { children: [_jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__view-diff-btn'), disabled: !queryBuilderState.changeDetectionState.hasChanged, onClick: showDiff, tabIndex: -1, title: queryBuilderState.changeDetectionState.hasChanged
|
64
|
+
? 'Show changes'
|
65
|
+
: 'Query has not been changed', children: _jsx(DiffIcon, {}) }), queryBuilderState.changeDetectionState.diffViewState && (_jsx(QueryBuilderDiffViewPanelDiaglog, { diffViewState: queryBuilderState.changeDetectionState.diffViewState }))] })), queryBuilderState.isQueryChatOpened && (_jsx(QueryChat, { queryBuilderState: queryBuilderState })), !queryBuilderState.config?.TEMPORARY__disableQueryBuilderChat && (_jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__action__toggler', {
|
66
|
+
'query-builder__status-bar__action__toggler--toggled': queryBuilderState.isQueryChatOpened === true,
|
67
|
+
}), onClick: openQueryChat, tabIndex: -1, title: "Open Query Chat", children: _jsx(ChatIcon, {}) })), _jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__compile-btn', {
|
68
|
+
'query-builder__status-bar__compile-btn--wiggling': queryBuilderState.queryCompileState.isInProgress,
|
69
|
+
}), disabled: queryBuilderState.queryCompileState.isInProgress, onClick: compile, tabIndex: -1, title: "Compile (F9)", children: _jsx(HammerIcon, {}) }), _jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__action__toggler', {
|
70
|
+
'query-builder__status-bar__action__toggler--toggled': queryBuilderState.textEditorState.mode ===
|
71
|
+
QueryBuilderTextEditorMode.JSON,
|
72
|
+
}), onClick: () => openLambdaEditor(QueryBuilderTextEditorMode.JSON), tabIndex: -1, title: "View Query Protocol", children: `{ }` }), _jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__action__toggler', {
|
73
|
+
'query-builder__status-bar__action__toggler--toggled': queryBuilderState.textEditorState.mode ===
|
74
|
+
QueryBuilderTextEditorMode.TEXT,
|
75
|
+
}), onClick: () => openLambdaEditor(QueryBuilderTextEditorMode.TEXT), tabIndex: -1, title: "View Query in Pure", children: _jsx(HackerIcon, {}) }), _jsx("button", { className: clsx('query-builder__status-bar__action query-builder__status-bar__action__toggler', {
|
76
|
+
'query-builder__status-bar__action__toggler--toggled': !applicationStore.assistantService.isHidden,
|
77
|
+
}), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) })] })] }));
|
78
|
+
});
|
52
79
|
export const QueryBuilder = observer((props) => {
|
53
80
|
const { queryBuilderState } = props;
|
54
81
|
const applicationStore = queryBuilderState.applicationStore;
|
@@ -125,6 +152,30 @@ export const QueryBuilder = observer((props) => {
|
|
125
152
|
});
|
126
153
|
}
|
127
154
|
};
|
155
|
+
const toggleTypedRelation = () => {
|
156
|
+
if (queryBuilderState.isFetchStructureTyped) {
|
157
|
+
queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.STANDARD);
|
158
|
+
}
|
159
|
+
else {
|
160
|
+
queryBuilderState.applicationStore.alertService.setActionAlertInfo({
|
161
|
+
message: 'You are about to change to use typed TDS functions. Please proceed with caution as this is still an experimental feature.',
|
162
|
+
prompt: ' Do you want to proceed?',
|
163
|
+
type: ActionAlertType.CAUTION,
|
164
|
+
actions: [
|
165
|
+
{
|
166
|
+
label: 'Proceed',
|
167
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
168
|
+
handler: () => queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE),
|
169
|
+
},
|
170
|
+
{
|
171
|
+
label: 'Cancel',
|
172
|
+
type: ActionAlertActionType.PROCEED,
|
173
|
+
default: true,
|
174
|
+
},
|
175
|
+
],
|
176
|
+
});
|
177
|
+
}
|
178
|
+
};
|
128
179
|
const editQueryInPure = () => {
|
129
180
|
openLambdaEditor(QueryBuilderTextEditorMode.TEXT);
|
130
181
|
};
|
@@ -173,14 +224,18 @@ export const QueryBuilder = observer((props) => {
|
|
173
224
|
queryBuilderState.changeHistoryState.cacheNewQuery(queryBuilderState.buildQuery());
|
174
225
|
}
|
175
226
|
}, [queryBuilderState, queryBuilderState.hashCode]);
|
176
|
-
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", ref: queryBuilderRef, children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className:
|
227
|
+
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", ref: queryBuilderRef, children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className: clsx('query-builder__body', {
|
228
|
+
'query-builder__body__status-bar': queryBuilderState.workflowState.showStatusBar,
|
229
|
+
}), children: [_jsx(PanelLoadingIndicator, { isLoading: queryBuilderState.resultState.exportState.isInProgress }), _jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__header", children: [_jsxs("div", { className: "query-builder__header__statuses", children: [queryBuilderState.watermarkState.value && (_jsx("button", { className: "query-builder__header__status query-builder__header__status--action", onClick: openWatermark, tabIndex: -1, title: "Used watermark", name: "Used watermark", children: _jsx(WaterDropIcon, {}) })), queryBuilderState.isCalendarEnabled && (_jsx("div", { className: "query-builder__header__status", title: "Used calendar aggregation", children: _jsx(CalendarClockIcon, { className: "query-builder__header__status__icon--calendar" }) })), queryBuilderState.watermarkState.isEditingWatermark && (_jsx(QueryBuilderWatermarkEditor, { queryBuilderState: queryBuilderState }))] }), _jsxs("div", { className: "query-builder__header__actions", children: [_jsxs("div", { className: "query-builder__header__actions__undo-redo", children: [_jsx(UndoButton, { parent: queryBuilderRef, canUndo: queryBuilderState.changeHistoryState.canUndo &&
|
177
230
|
queryBuilderState.isQuerySupported, undo: undo }), _jsx(RedoButton, { parent: queryBuilderRef, canRedo: queryBuilderState.changeHistoryState.canRedo &&
|
178
231
|
queryBuilderState.isQuerySupported, redo: redo })] }), _jsxs(DropdownMenu, { className: "query-builder__header__advanced-dropdown", title: "Show Advanced Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowFunctionPanel, disabled: !queryBuilderState.isQuerySupported, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showFunctionsExplorerPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Function(s)" })] }), !queryBuilderState.isParameterSupportDisabled && (_jsxs(MenuContentItem, { onClick: toggleShowParameterPanel, disabled: !queryBuilderState.isQuerySupported ||
|
179
232
|
queryBuilderState.parametersState.parameterStates
|
180
233
|
.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showParametersPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Parameter(s)" })] })), _jsxs(MenuContentItem, { onClick: toggleConstantPanel, disabled: !queryBuilderState.isQuerySupported ||
|
181
234
|
queryBuilderState.constantState.constants.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.constantState
|
182
235
|
.showConstantPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Constant(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
|
183
|
-
Array.from(queryBuilderState.filterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.filterState.showPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Filter" })] }),
|
236
|
+
Array.from(queryBuilderState.filterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.filterState.showPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Filter" })] }), _jsxs(MenuContentItem, { onClick: onChangeFetchStructureImplementation(isTDSState
|
237
|
+
? FETCH_STRUCTURE_IMPLEMENTATION.GRAPH_FETCH
|
238
|
+
: FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE, fetchStructureState), disabled: !queryBuilderState.isQuerySupported, children: [_jsx(MenuContentItemIcon, { children: isTDSState ? _jsx(CheckIcon, {}) : null }), _jsx(MenuContentItemLabel, { children: "Tabular Data Structure" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: toggleShowOLAPGroupByPanel, disabled: !queryBuilderState.isQuerySupported ||
|
184
239
|
!(queryBuilderState.fetchStructureState
|
185
240
|
.implementation instanceof QueryBuilderTDSState) ||
|
186
241
|
queryBuilderState.fetchStructureState.implementation
|
@@ -194,7 +249,9 @@ export const QueryBuilder = observer((props) => {
|
|
194
249
|
queryBuilderState.fetchStructureState.implementation
|
195
250
|
.showPostFilterPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Post-Filter" })] }), _jsxs(MenuContentItem, { onClick: openWatermark, children: [_jsx(MenuContentItemIcon, { children: _jsx(WaterDropIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Show Watermark" })] }), _jsxs(MenuContentItem, { onClick: toggleEnableCalendar, disabled: !queryBuilderState.isQuerySupported ||
|
196
251
|
!(queryBuilderState.fetchStructureState
|
197
|
-
.implementation instanceof QueryBuilderTDSState), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.isCalendarEnabled ? (_jsx(CheckIcon, {})) : (_jsx(CalendarClockIcon, {})) }), _jsx(MenuContentItemLabel, { children: "Enable Calendar" })] }),
|
252
|
+
.implementation instanceof QueryBuilderTDSState), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.isCalendarEnabled ? (_jsx(CheckIcon, {})) : (_jsx(CalendarClockIcon, {})) }), _jsx(MenuContentItemLabel, { children: "Enable Calendar" })] }), _jsxs(MenuContentItem, { onClick: toggleTypedRelation, disabled: !queryBuilderState.isQuerySupported ||
|
253
|
+
!(queryBuilderState.fetchStructureState
|
254
|
+
.implementation instanceof QueryBuilderTDSState), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.isFetchStructureTyped ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Enable Typed TDS (BETA)" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: openCheckEntitlmentsEditor, disabled: queryBuilderState.isQuerySupported &&
|
198
255
|
queryBuilderState.fetchStructureState
|
199
256
|
.implementation instanceof QueryBuilderTDSState &&
|
200
257
|
queryBuilderState.fetchStructureState.implementation
|
@@ -219,6 +276,6 @@ export const QueryBuilder = observer((props) => {
|
|
219
276
|
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService
|
220
277
|
.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal", children: [_jsx(ModalHeader, { title: "Query Entitlements" }), _jsx(ModalBody, { className: "query-builder__data-access-overview", children: _jsx("div", { className: "query-builder__data-access-overview__container", children: queryBuilderState.checkEntitlementsState
|
221
278
|
.dataAccessState ? (_jsx(DataAccessOverview, { dataAccessState: queryBuilderState.checkEntitlementsState
|
222
|
-
.dataAccessState })) : (_jsx(BlankPanelContent, { children: "No data access information available" })) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Close", onClick: handleClose, type: "secondary" }) })] }) }))] })] }));
|
279
|
+
.dataAccessState })) : (_jsx(BlankPanelContent, { children: "No data access information available" })) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Close", onClick: handleClose, type: "secondary" }) })] }) }))] }), queryBuilderState.workflowState.showStatusBar ? (_jsx(QueryBuilderStatusBar, { queryBuilderState: queryBuilderState })) : null] }));
|
223
280
|
});
|
224
281
|
//# sourceMappingURL=QueryBuilder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EA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IAAC,KAAK,EAAC,oBAAoB,GAAG,EAC1C,KAAC,SAAS,IAAC,SAAS,EAAC,qCAAqC,YACxD,cAAK,SAAS,EAAC,gDAAgD,YAC5D,iBAAiB,CAAC,sBAAsB;6CACtC,eAAe,CAAC,CAAC,CAAC,CACnB,KAAC,kBAAkB,IACjB,eAAe,EACb,iBAAiB,CAAC,sBAAsB;iDACrC,eAAe,GAEpB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,uDAEE,CACrB,GACG,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAChB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,WAAW,GAChB,GACU,IACR,GACD,CACV,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,aAAa,EACb,IAAI,GACL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,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BAAsB;iDACrC,eAAe,GAEpB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,uDAEE,CACrB,GACG,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAChB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,WAAW,GAChB,GACU,IACR,GACD,CACV,IACG,EACL,iBAAiB,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAC/C,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EAMlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAiB3C,eAAO,MAAM,6BAA6B,sBACrB,WAAW,cAClB,MAAM,cACN,OAAO,KAClB,IA8CF,CAAC;AAEF,eAAO,MAAM,wCAAwC,sBAChC,WAAW,cAClB,OAAO,KAClB,IAWF,CAAC;AAEF,eAAO,MAAM,2BAA2B,sBACnB,WAAW,cAClB,OAAO,KAClB,MAAM,GAAG,IAWX,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,WAAW,QACb,WAAW,SACV,WAAW,sBACE,MAAM,KACzB,QAAQ,IAAI,CAUd,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC;kBAE/D,YAAY;uBACP,iBAAiB;EA0ErC,CAAC"}
|
@@ -27,6 +27,7 @@ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
|
27
27
|
import { TEST__LegendApplicationPluginManager, TEST__getGenericApplicationConfig, } from '../../stores/__test-utils__/QueryBuilderStateTestUtils.js';
|
28
28
|
import { STYLE_PREFIX, STYLE_PREFIX__DARK } from '@finos/legend-art';
|
29
29
|
import { expect } from '@jest/globals';
|
30
|
+
import { QueryBuilderAdvancedWorkflowState } from '../../stores/query-workflow/QueryBuilderWorkFlowState.js';
|
30
31
|
const getSelectorContainerClassName = (lightMode) => '.' + `${lightMode ? STYLE_PREFIX : STYLE_PREFIX__DARK}__value-container`;
|
31
32
|
const getSelectorInputClassName = (lightMode) => '.' + `${lightMode ? STYLE_PREFIX : STYLE_PREFIX__DARK}__single-value`;
|
32
33
|
export const selectFromCustomSelectorInput = (selectorContainer, optionText, lightMode) => {
|
@@ -104,7 +105,7 @@ export const TEST__setUpQueryBuilder = async (entities, lambda, mappingPath, run
|
|
104
105
|
await graphManagerState.initializeSystem();
|
105
106
|
await graphManagerState.graphManager.buildGraph(graphManagerState.graph, entities, graphManagerState.graphBuildState);
|
106
107
|
const MOCK__applicationStore = new ApplicationStore(TEST__getGenericApplicationConfig(), MOCK__pluginManager);
|
107
|
-
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(MOCK__applicationStore, graphManagerState, undefined);
|
108
|
+
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(MOCK__applicationStore, graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, undefined);
|
108
109
|
const mapping = graphManagerState.graph.getMapping(mappingPath);
|
109
110
|
queryBuilderState.executionContextState.setMapping(mapping);
|
110
111
|
queryBuilderState.executionContextState.setRuntimeValue(new RuntimePointer(PackageableElementExplicitReference.create(graphManagerState.graph.getRuntime(runtimePath))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oCAAoC,EACpC,iCAAiC,GAClC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0DAA0D,CAAC;AAE7G,MAAM,6BAA6B,GAAG,CAAC,SAAmB,EAAU,EAAE,CACpE,GAAG,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,Y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,CAC5B,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA0C3E,eAAO,MAAM,+BAA+B,WAClC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAqDjD,CAAC"}
|
@@ -24,6 +24,7 @@ import { QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/gr
|
|
24
24
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
25
25
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js';
|
26
26
|
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
27
|
+
import { onChangeFetchStructureImplementation } from '../../stores/fetch-structure/QueryBuilderFetchStructureState.js';
|
27
28
|
const QueryBuilderFetchStructureEditor = observer((props) => {
|
28
29
|
const { queryBuilderState } = props;
|
29
30
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
@@ -39,17 +40,11 @@ const QueryBuilderFetchStructureEditor = observer((props) => {
|
|
39
40
|
export const QueryBuilderFetchStructurePanel = observer((props) => {
|
40
41
|
const { queryBuilderState } = props;
|
41
42
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
42
|
-
const
|
43
|
-
|
44
|
-
fetchStructureState.implementation.checkBeforeChangingImplementation(() => {
|
45
|
-
fetchStructureState.changeImplementation(implementationType);
|
46
|
-
});
|
47
|
-
}
|
48
|
-
};
|
49
|
-
return (_jsxs(Panel, { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FETCH_STRUCTURE, children: [_jsxs(PanelHeader, { children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "fetch structure" }), fetchStructureState.implementation.fetchStructureValidationIssues
|
43
|
+
const fetchConfig = queryBuilderState.workflowState.getFetchStructureLayoutConfig(queryBuilderState);
|
44
|
+
return (_jsxs(Panel, { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FETCH_STRUCTURE, children: [_jsxs(PanelHeader, { children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: fetchConfig.label }), fetchStructureState.implementation.fetchStructureValidationIssues
|
50
45
|
.length !== 0 && (_jsx(QueryBuilderPanelIssueCountBadge, { issues: fetchStructureState.implementation
|
51
|
-
.fetchStructureValidationIssues }))] }), _jsx(PanelHeaderActions, { children: _jsx("div", { className: "query-builder__fetch__structure__modes", children: Object.values(FETCH_STRUCTURE_IMPLEMENTATION).map((type) => (_jsx("button", { onClick: onChangeFetchStructureImplementation(type), className: clsx('query-builder__fetch__structure__mode', {
|
46
|
+
.fetchStructureValidationIssues }))] }), fetchConfig.showInFetchPanel ? (_jsx(PanelHeaderActions, { children: _jsx("div", { className: "query-builder__fetch__structure__modes", children: Object.values(FETCH_STRUCTURE_IMPLEMENTATION).map((type) => (_jsx("button", { onClick: onChangeFetchStructureImplementation(type, fetchStructureState), className: clsx('query-builder__fetch__structure__mode', {
|
52
47
|
'query-builder__fetch__structure__mode--selected': type === fetchStructureState.implementation.type,
|
53
|
-
}), children: prettyCONSTName(type) }, type))) }) })] }), _jsx(QueryBuilderFetchStructureEditor, { queryBuilderState: queryBuilderState })] }));
|
48
|
+
}), children: prettyCONSTName(type) }, type))) }) })) : null] }), _jsx(QueryBuilderFetchStructureEditor, { queryBuilderState: queryBuilderState })] }));
|
54
49
|
});
|
55
50
|
//# sourceMappingURL=QueryBuilderFetchStructurePanel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6EAA6E,CAAC;AAC9H,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,+EAA+E,CAAC;AAC/H,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,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_TABULAR_DATASET = "meta::pure::tds::TabularDataSet",
|
20
20
|
DURATION_UNIT = "meta::pure::functions::date::DurationUnit",
|
21
21
|
DAY_OF_WEEK = "meta::pure::functions::date::DayOfWeek",
|
22
|
+
RELATION = "meta::pure::metamodel::relation::Relation",
|
22
23
|
SERIALIZE_CONFIG = "meta::pure::graphFetch::execution::AlloySerializationConfig"
|
23
24
|
}
|
24
25
|
export declare enum QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS {
|
@@ -98,6 +99,8 @@ export declare enum QUERY_BUILDER_SUPPORTED_FUNCTIONS {
|
|
98
99
|
TDS_TAKE = "meta::pure::tds::take",
|
99
100
|
TDS_RESTRICT = "meta::pure::tds::restrict",
|
100
101
|
TDS_FUNC = "meta::pure::tds::func",
|
102
|
+
RELATION_PROJECT = "meta::pure::functions::relation::project",
|
103
|
+
RELATION_LIMIT = "meta::pure::functions::relation::limit",
|
101
104
|
CONTAINS = "meta::pure::functions::string::contains",
|
102
105
|
ENDS_WITH = "meta::pure::functions::string::endsWith",
|
103
106
|
EQUAL = "meta::pure::functions::boolean::equal",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderMetaModelConst.d.ts","sourceRoot":"","sources":["../../src/graph/QueryBuilderMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,uBAAuB;IAEjC,OAAO,4BAA4B;IACnC,UAAU,+BAA+B;IACzC,mBAAmB,oCAAoC;IAGvD,aAAa,8CAA8C;IAC3D,WAAW,2CAA2C;IAGtD,gBAAgB,gEAAgE;CACjF;AAED,oBAAY,sDAAsD;IAChE,mBAAmB,sDAAsD;IACzE,YAAY,gDAAgD;
|
1
|
+
{"version":3,"file":"QueryBuilderMetaModelConst.d.ts","sourceRoot":"","sources":["../../src/graph/QueryBuilderMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,uBAAuB;IAEj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2D;IACtE,uCAAuC,4DAA4D;IACnG,IAAI,8BAA8B;IAClC,OAAO,qCAAqC;IAC5C,aAAa,uCAAuC;IAGpD,YAAY,gCAAgC;IAC5C,eAAe,0DAA0D;IAGzE,KAAK,6CAA6C;CACnD;AAED,oBAAY,iBAAiB;IAC3B,UAAU,cAAc;IACxB,UAAU,cAAc;IACxB,WAAW,eAAe;IAC1B,SAAS,aAAa;IACtB,WAAW,eAAe;IAC1B,QAAQ,YAAY;IACpB,YAAY,gBAAgB;IAC5B,cAAc,kBAAkB;IAChC,WAAW,eAAe;IAC1B,QAAQ,YAAY;IACpB,OAAO,WAAW;IAClB,WAAW,cAAc;CAC1B;AAED,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,IAAI,SAAS;CACd"}
|
@@ -22,6 +22,8 @@ export var QUERY_BUILDER_PURE_PATH;
|
|
22
22
|
// time
|
23
23
|
QUERY_BUILDER_PURE_PATH["DURATION_UNIT"] = "meta::pure::functions::date::DurationUnit";
|
24
24
|
QUERY_BUILDER_PURE_PATH["DAY_OF_WEEK"] = "meta::pure::functions::date::DayOfWeek";
|
25
|
+
// RELATION
|
26
|
+
QUERY_BUILDER_PURE_PATH["RELATION"] = "meta::pure::metamodel::relation::Relation";
|
25
27
|
// serialization
|
26
28
|
QUERY_BUILDER_PURE_PATH["SERIALIZE_CONFIG"] = "meta::pure::graphFetch::execution::AlloySerializationConfig";
|
27
29
|
})(QUERY_BUILDER_PURE_PATH || (QUERY_BUILDER_PURE_PATH = {}));
|
@@ -108,6 +110,9 @@ export var QUERY_BUILDER_SUPPORTED_FUNCTIONS;
|
|
108
110
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["TDS_TAKE"] = "meta::pure::tds::take";
|
109
111
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["TDS_RESTRICT"] = "meta::pure::tds::restrict";
|
110
112
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["TDS_FUNC"] = "meta::pure::tds::func";
|
113
|
+
// Relation
|
114
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS["RELATION_PROJECT"] = "meta::pure::functions::relation::project";
|
115
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS["RELATION_LIMIT"] = "meta::pure::functions::relation::limit";
|
111
116
|
// filter
|
112
117
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["CONTAINS"] = "meta::pure::functions::string::contains";
|
113
118
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["ENDS_WITH"] = "meta::pure::functions::string::endsWith";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderMetaModelConst.js","sourceRoot":"","sources":["../../src/graph/QueryBuilderMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderMetaModelConst.js","sourceRoot":"","sources":["../../src/graph/QueryBuilderMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,uBAcX;AAdD,WAAY,uBAAuB;IACjC,MAAM;IACN,8DAAmC,CAAA;IACnC,oEAAyC,CAAA;IACzC,kFAAuD,CAAA;IAEvD,OAAO;IACP,sFAA2D,CAAA;IAC3D,iFAAsD,CAAA;IAEtD,WAAW;IACX,iFAAsD,CAAA;IACtD,gBAAgB;IAChB,2GAAgF,CAAA;AAClF,CAAC,EAdW,uBAAuB,KAAvB,uBAAuB,QAclC;AAED,MAAM,CAAN,IAAY,sDAiCX;AAjCD,WAAY,sDAAsD;IAChE,mIAAyE,CAAA;IACzE,sHAA4D,CAAA;IAE5D,mHAAyD,CAAA;IACzD,yHAA+D,CAAA;IAC/D,gIAAsE,CAAA;IACtE,gIAAsE,CAAA;IACtE,qHAA2D,CAAA;IAC3D,yHAA+D,CAAA;IAC/D,2HAAiE,CAAA;IACjE,uHAA6D,CAAA;IAC7D,yHAA+D,CAAA;IAC/D,2HAAiE,CAAA;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AAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,6CAAwB,CAAA;IACxB,6CAAwB,CAAA;IACxB,+CAA0B,CAAA;IAC1B,2CAAsB,CAAA;IACtB,+CAA0B,CAAA;IAC1B,yCAAoB,CAAA;IACpB,iDAA4B,CAAA;IAC5B,qDAAgC,CAAA;IAChC,+CAA0B,CAAA;IAC1B,yCAAoB,CAAA;IACpB,uCAAkB,CAAA;IAClB,8CAAyB,CAAA;AAC3B,CAAC,EAbW,iBAAiB,KAAjB,iBAAiB,QAa5B;AAED,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
|
@@ -45,7 +45,10 @@ export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
45
45
|
else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK)) {
|
46
46
|
return V1_buildWatermarkFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
|
47
47
|
}
|
48
|
-
else if (matchFunctionName(functionName,
|
48
|
+
else if (matchFunctionName(functionName, [
|
49
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
50
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT,
|
51
|
+
])) {
|
49
52
|
return V1_buildProjectFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
|
50
53
|
}
|
51
54
|
else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,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BAAM,IACL,iBAAiB,CAAC,YAAY,EAAE;oBAC9B,iCAAiC,CAAC,MAAM;oBACxC,iCAAiC,CAAC,UAAU;iBAC7C,CAAC,EACF;oBACA,OAAO,gCAAgC,CACrC,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,CACf,YAAY,EACZ,iCAAiC,CAAC,MAAM,CACzC,EACD;oBACA,OAAO,gCAAgC,CACrC,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,CACf,YAAY,EACZ,iCAAiC,CAAC,SAAS,CAC5C,EACD;oBACA,OAAO,mCAAmC,CACxC,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,
|
1
|
+
{"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3E,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,EAChC,wCAAwC,EACxC,+CAA+C,EAC/C,iCAAiC,EACjC,qCAAqC,EACrC,iCAAiC,EACjC,8CAA8C,EAC9C,mCAAmC,GACpC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAQL,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,WAAW,EACX,4BAA4B,EAC5B,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sDAAsD,EACtD,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,8CAA8C,CAAC;AAEtD,MA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CAA8C,CAAC,gBAAgB,CAAC,CAAC;iBACpE;gBACD,OAAO,YAAY,CAAC;YACtB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -19,6 +19,7 @@ export declare const V1_buildGetAllVersionsInRangeFunctionExpression: (functionN
|
|
19
19
|
export declare const V1_buildGetAllVersionsFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
20
20
|
export declare const V1_buildExistsFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
21
21
|
export declare const V1_buildFilterFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
22
|
+
export declare const V1_buildTypedProjectFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
22
23
|
export declare const V1_buildProjectFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
23
24
|
export declare const V1_buildGroupByFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression;
|
24
25
|
export declare const V1_buildWatermarkFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => SimpleFunctionExpression | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,qBAAqB,EAErB,KAAK,wBAAwB,EAC7B,KAAK,IAAI,EAgCV,MAAM,qBAAqB,CAAC;AAmT7B,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAmBF,CAAC;AAEF,eAAO,MAAM,+CAA+C,iBAC5C,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAwBF,CAAC;AAEF,eAAO,MAAM,wCAAwC,iBACrC,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAyBF,CAAC;AAEF,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAkDF,CAAC;AAEF,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAqDF,CAAC;AAEF,eAAO,MAAM,sCAAsC,iBACnC,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAgGF,CAAC;AAEF,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAuGF,CAAC;AAEF,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAuIF,CAAC;AAEF,eAAO,MAAM,mCAAmC,iBAChC,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAAwB,GAAG,SA8D7B,CAAC;AAEF,eAAO,MAAM,qCAAqC,iBAClC,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,wBAAwB,GAAG,SA4H7B,CAAC;AAEF,eAAO,MAAM,8CAA8C,qBACvC,wBAAwB,KACzC,IAAI,GAAG,SAGwB,CAAC"}
|
@@ -13,8 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { assertNonNullable, assertTrue, assertType, filterByType, guaranteeNonNullable, guaranteeType, returnUndefOnError, } from '@finos/legend-shared';
|
17
|
-
import { V1_ValueSpecification, V1_buildBaseSimpleFunctionExpression, V1_buildGenericFunctionExpression, extractElementNameFromPath, V1_AppliedProperty, CollectionInstanceValue, INTERNAL__UnknownValueSpecification, V1_Variable, V1_serializeValueSpecification, GenericType, GenericTypeExplicitReference, matchFunctionName, InstanceValue, V1_AppliedFunction, V1_Collection, V1_Lambda, V1_ValueSpecificationBuilder, AbstractPropertyExpression, VariableExpression, Multiplicity, PrimitiveType, V1_CString, CORE_PURE_PATH, FunctionType, LambdaFunction, LambdaFunctionInstanceValue, PackageableElementExplicitReference, } from '@finos/legend-graph';
|
16
|
+
import { assertNonNullable, assertTrue, assertType, filterByType, guaranteeNonNullable, guaranteeType, isNonNullable, returnUndefOnError, } from '@finos/legend-shared';
|
17
|
+
import { V1_ValueSpecification, V1_buildBaseSimpleFunctionExpression, V1_buildGenericFunctionExpression, extractElementNameFromPath, V1_AppliedProperty, CollectionInstanceValue, INTERNAL__UnknownValueSpecification, V1_Variable, V1_serializeValueSpecification, GenericType, GenericTypeExplicitReference, matchFunctionName, InstanceValue, V1_AppliedFunction, V1_Collection, V1_Lambda, V1_ValueSpecificationBuilder, AbstractPropertyExpression, VariableExpression, Multiplicity, PrimitiveType, V1_CString, CORE_PURE_PATH, FunctionType, LambdaFunction, LambdaFunctionInstanceValue, PackageableElementExplicitReference, V1_ClassInstance, V1_ColSpecArray, ColSpecArrayInstance, ColSpecArray, ColSpec, } from '@finos/legend-graph';
|
18
18
|
import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_CALENDAR_AGGREGATION_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
19
19
|
import { QUERY_BUILDER_CALENDAR_TYPE } from '../../../QueryBuilderConst.js';
|
20
20
|
const buildProjectionColumnLambda = (valueSpecification, openVariables, compileContext, processingContext) => {
|
@@ -167,8 +167,56 @@ export const V1_buildFilterFunctionExpression = (functionName, parameters, openV
|
|
167
167
|
expression.multiplicity = precedingExpression.multiplicity;
|
168
168
|
return expression;
|
169
169
|
};
|
170
|
+
export const V1_buildTypedProjectFunctionExpression = (functionName, parameters, openVariables, compileContext, processingContext) => {
|
171
|
+
assertTrue(parameters.length === 2, `Can't build relation project() expression: project() expects 2 arguments`);
|
172
|
+
let topLevelLambdaParameters = [];
|
173
|
+
const precedingExperession = parameters[0].accept_ValueSpecificationVisitor(new V1_ValueSpecificationBuilder(compileContext, processingContext, openVariables));
|
174
|
+
assertNonNullable(precedingExperession.genericType, `Can't build relation project() expression: preceding expression return type is missing`);
|
175
|
+
const classInstance = parameters[1];
|
176
|
+
assertType(classInstance, V1_ClassInstance, `Can't build relation project() expression: project() expects argument #1 to be a ClassInstance`);
|
177
|
+
const specArray = guaranteeType(classInstance.value, V1_ColSpecArray, `Can't build relation project() expression: project() expects argument #1 to hold spec array instances value`);
|
178
|
+
topLevelLambdaParameters = specArray.colSpecs
|
179
|
+
.map((e) => e.function1)
|
180
|
+
.filter(isNonNullable)
|
181
|
+
.filter(filterByType(V1_Lambda))
|
182
|
+
.map((lambda) => lambda.parameters)
|
183
|
+
.flat();
|
184
|
+
const variables = new Set();
|
185
|
+
// Make sure top-level lambdas have their lambda parameter types set properly
|
186
|
+
topLevelLambdaParameters.forEach((variable) => {
|
187
|
+
if (!variables.has(variable.name) && !variable.class) {
|
188
|
+
const variableExpression = new VariableExpression(variable.name, precedingExperession.multiplicity);
|
189
|
+
variableExpression.genericType = precedingExperession.genericType;
|
190
|
+
processingContext.addInferredVariables(variable.name, variableExpression);
|
191
|
+
}
|
192
|
+
});
|
193
|
+
const processedExpression = new ColSpecArrayInstance(Multiplicity.ONE);
|
194
|
+
const processedColSpecArray = new ColSpecArray();
|
195
|
+
processedExpression.values = [processedColSpecArray];
|
196
|
+
processedColSpecArray.colSpecs = specArray.colSpecs.map((colSpec) => {
|
197
|
+
const pColSpec = new ColSpec();
|
198
|
+
let lambda;
|
199
|
+
const _funct = guaranteeType(colSpec.function1, V1_ValueSpecification, `Can't build relation col spec() expression: expects function1 to be a lambda`);
|
200
|
+
try {
|
201
|
+
lambda = buildProjectionColumnLambda(_funct, openVariables, compileContext, processingContext);
|
202
|
+
}
|
203
|
+
catch {
|
204
|
+
lambda = new INTERNAL__UnknownValueSpecification(V1_serializeValueSpecification(_funct, compileContext.extensions.plugins));
|
205
|
+
}
|
206
|
+
pColSpec.function1 = lambda;
|
207
|
+
pColSpec.name = colSpec.name;
|
208
|
+
return pColSpec;
|
209
|
+
});
|
210
|
+
const expression = V1_buildBaseSimpleFunctionExpression([precedingExperession, processedExpression], functionName, compileContext);
|
211
|
+
expression.genericType = GenericTypeExplicitReference.create(new GenericType(compileContext.resolveType(QUERY_BUILDER_PURE_PATH.RELATION).value));
|
212
|
+
return expression;
|
213
|
+
};
|
170
214
|
export const V1_buildProjectFunctionExpression = (functionName, parameters, openVariables, compileContext, processingContext) => {
|
171
|
-
|
215
|
+
if (parameters.length === 2) {
|
216
|
+
return V1_buildTypedProjectFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
|
217
|
+
}
|
218
|
+
const length = parameters.length;
|
219
|
+
assertTrue(length === 3 || length === 2, `Can't build project() expression: project() expects 2 arguments`);
|
172
220
|
let topLevelLambdaParameters = [];
|
173
221
|
const precedingExperession = parameters[0].accept_ValueSpecificationVisitor(new V1_ValueSpecificationBuilder(compileContext, processingContext, openVariables));
|
174
222
|
assertNonNullable(precedingExperession.genericType, `Can't build project() expression: preceding expression return type is missing`);
|