@finos/legend-query-builder 4.14.31 → 4.14.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +3 -3
  2. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  3. package/lib/components/QueryBuilderPropertyExpressionEditor.js +23 -15
  4. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  5. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  6. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +7 -7
  7. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  8. package/lib/index.css +1 -1
  9. package/lib/package.json +1 -1
  10. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  11. package/lib/stores/QueryBuilderStateBuilder.js +7 -1
  12. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  13. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -1
  14. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  15. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -27
  16. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  17. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.d.ts +20 -0
  18. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.d.ts.map +1 -0
  19. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js +54 -0
  20. package/lib/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js.map +1 -0
  21. package/package.json +2 -2
  22. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +34 -20
  23. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +9 -16
  24. package/src/stores/QueryBuilderStateBuilder.ts +18 -5
  25. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -68
  26. package/src/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.ts +103 -0
  27. package/tsconfig.json +1 -0
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type ChangeEvent } from 'react';
17
16
  import { type QueryBuilderPropertyExpressionState } from '../stores/QueryBuilderPropertyEditorState.js';
18
17
  import { type QueryBuilderExplorerTreePropertyNodeData } from '../stores/explorer/QueryBuilderExplorerState.js';
19
18
  export declare const QueryBuilderPropertyExpressionEditor: ((props: {
@@ -23,9 +22,10 @@ export declare const QueryBuilderPropertyExpressionEditor: ((props: {
23
22
  };
24
23
  export declare const QueryBuilderEditablePropertyName: ((props: {
25
24
  columnName: string;
26
- changeColumnName?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
25
+ setColumnName?: ((columnName: string) => void) | undefined;
27
26
  error: string | undefined;
28
27
  title: string;
28
+ defaultColumnName: string;
29
29
  }) => import("react/jsx-runtime").JSX.Element) & {
30
30
  displayName: string;
31
31
  };
@@ -33,7 +33,7 @@ export declare const QueryBuilderPropertyExpressionBadge: ((props: {
33
33
  columnName?: string;
34
34
  propertyExpressionState: QueryBuilderPropertyExpressionState;
35
35
  onPropertyExpressionChange: (node: QueryBuilderExplorerTreePropertyNodeData) => void;
36
- changeColumnName?: (event: ChangeEvent<HTMLInputElement>) => void;
36
+ setColumnName?: (columnName: string) => void;
37
37
  error?: string | undefined;
38
38
  }) => import("react/jsx-runtime").JSX.Element) & {
39
39
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,OAAO,CAAC;AAef,OAAO,EAGL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAuEzE,CAAC;AAEF,eAAO,MAAM,gCAAgC;gBAE7B,MAAM;gCAEL,YAAY,gBAAgB,CAAC,KAAK,IAAI;WAE5C,MAAM,GAAG,SAAS;WAClB,MAAM;;;CA6DhB,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;+BACkB,YAAY,gBAAgB,CAAC,KAAK,IAAI;YACzD,MAAM,GAAG,SAAS;;;CAoG7B,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertyExpressionEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,OAAO,EAIL,KAAK,mCAAmC,EACzC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAGL,KAAK,wCAAwC,EAC9C,MAAM,iDAAiD,CAAC;AAoQzD,eAAO,MAAM,oCAAoC,WACvC;IAAE,uBAAuB,EAAE,mCAAmC,CAAA;CAAE;;CAuEzE,CAAC;AAEF,eAAO,MAAM,gCAAgC;gBAE7B,MAAM;kCACY,MAAM,KAAK,IAAI;WACtC,MAAM,GAAG,SAAS;WAClB,MAAM;uBACM,MAAM;;;CAsE5B,CAAC;AAEF,eAAO,MAAM,mCAAmC;iBAE/B,MAAM;6BACM,mCAAmC;uCAEpD,wCAAwC,KAC3C,IAAI;iCACoB,MAAM,KAAK,IAAI;YACpC,MAAM,GAAG,SAAS;;;CAyG7B,CAAC"}
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  import { useCallback, useEffect, useRef, useState, } from 'react';
18
18
  import { clsx, Dialog, PanelDropZone, InfoCircleIcon, PanelEntryDropZonePlaceholder, Modal, ModalHeader, ModalBody, ModalFooter, ModalFooterButton, InputWithInlineValidation, } from '@finos/legend-art';
19
19
  import { observer } from 'mobx-react-lite';
20
- import { generateValueSpecificationForParameter, } from '../stores/QueryBuilderPropertyEditorState.js';
20
+ import { generateValueSpecificationForParameter, getPropertyChainName, } from '../stores/QueryBuilderPropertyEditorState.js';
21
21
  import { useDrop } from 'react-dnd';
22
22
  import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../stores/explorer/QueryBuilderExplorerState.js';
23
23
  import { Class, Enumeration, PrimitiveType, isSuperType, AbstractPropertyExpression, INTERNAL__PropagatedValue, getMilestoneTemporalStereotype, } from '@finos/legend-graph';
@@ -138,40 +138,47 @@ export const QueryBuilderPropertyExpressionEditor = observer((props) => {
138
138
  }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal query-builder-property-editor", children: [_jsx(ModalHeader, { title: "Derived Property" }), _jsxs(ModalBody, { className: "query-builder-property-editor__content", children: [propertyExpressionState.derivedPropertyExpressionStates.map((pe) => (_jsx(DerivedPropertyExpressionEditor, { derivedPropertyExpressionState: pe }, pe.path))), _jsx(ModalBody, { className: "query-builder__variables__modal__body", children: _jsx(VariableSelector, { queryBuilderState: propertyExpressionState.queryBuilderState, filterBy: (v) => isParameterCompatibleWithDerivedProperty(v, propertyExpressionState.derivedPropertyExpressionStates) }) })] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { text: "Done", onClick: handleClose }) })] }) }));
139
139
  });
140
140
  export const QueryBuilderEditablePropertyName = observer((props) => {
141
- const { columnName, changeColumnName, error, title } = props;
141
+ const { columnName, setColumnName, error, title, defaultColumnName } = props;
142
142
  const [isEditingColumnName, setIsEditingColumnName] = useState(false);
143
+ const [selectedColumnName, setSelectedColumnName] = useState(columnName);
143
144
  const columnNameInputRef = useRef(null);
144
145
  useEffect(() => {
145
146
  if (isEditingColumnName) {
146
147
  columnNameInputRef.current?.focus();
147
148
  }
148
149
  }, [isEditingColumnName, columnNameInputRef]);
149
- return isEditingColumnName ? (_jsx("div", { className: "query-builder__property__name__editor", children: _jsx(InputWithInlineValidation, { className: "query-builder__property__name__editor__input input-group__input", spellCheck: false, value: columnName, onChange: changeColumnName, onKeyDown: (event) => {
150
+ const handleFinishEditing = () => {
151
+ const trimmedSelectedColumnName = selectedColumnName.trim();
152
+ if (trimmedSelectedColumnName.length > 0) {
153
+ setColumnName?.(trimmedSelectedColumnName);
154
+ setSelectedColumnName(trimmedSelectedColumnName);
155
+ }
156
+ else {
157
+ setColumnName?.(defaultColumnName);
158
+ setSelectedColumnName(defaultColumnName);
159
+ }
160
+ setIsEditingColumnName(false);
161
+ };
162
+ return isEditingColumnName ? (_jsx("div", { className: "query-builder__property__name__editor", children: _jsx(InputWithInlineValidation, { className: "query-builder__property__name__editor__input input-group__input", spellCheck: false, value: selectedColumnName, onChange: (event) => setSelectedColumnName(event.target.value), onKeyDown: (event) => {
150
163
  if (event.key === 'Enter') {
151
- if (columnName.length > 0) {
152
- setIsEditingColumnName(false);
153
- }
154
- }
155
- }, onBlur: () => {
156
- if (columnName.length > 0) {
157
- setIsEditingColumnName(false);
164
+ handleFinishEditing();
158
165
  }
159
- }, error: error, ref: columnNameInputRef, draggable: true, onDragStart: (e) => {
166
+ }, onBlur: handleFinishEditing, ref: columnNameInputRef, draggable: true, onDragStart: (e) => {
160
167
  // The below 2 lines are to allow dragging to select text in the input instead of
161
168
  // dragging the draggable element containing the input.
162
169
  e.preventDefault();
163
170
  e.stopPropagation();
164
171
  } }) })) : (_jsx("div", { className: "query-builder__property__name__display", title: title, children: _jsx("span", { className: clsx('query-builder__property__name__display__content', {
165
172
  'query-builder__property__name__display__content--error': error,
166
- 'editable-value': changeColumnName,
173
+ 'editable-value': setColumnName,
167
174
  }), onClick: () => {
168
- if (changeColumnName) {
175
+ if (setColumnName) {
169
176
  setIsEditingColumnName(true);
170
177
  }
171
178
  }, children: columnName }) }));
172
179
  });
173
180
  export const QueryBuilderPropertyExpressionBadge = observer((props) => {
174
- const { columnName, propertyExpressionState, onPropertyExpressionChange, changeColumnName, error, } = props;
181
+ const { columnName, propertyExpressionState, onPropertyExpressionChange, setColumnName, error, } = props;
175
182
  const type = propertyExpressionState.propertyExpression.func.value.genericType.value
176
183
  .rawType;
177
184
  const hasDerivedPropertyInExpression = Boolean(propertyExpressionState.derivedPropertyExpressionStates.length);
@@ -200,7 +207,8 @@ export const QueryBuilderPropertyExpressionBadge = observer((props) => {
200
207
  'query-builder-property-expression-badge__content--class': type instanceof Class,
201
208
  'query-builder-property-expression-badge__content--enumeration': type instanceof Enumeration,
202
209
  'query-builder-property-expression-badge__content--primitive': type instanceof PrimitiveType,
203
- }), children: [_jsx(QueryBuilderEditablePropertyName, { columnName: columnName ?? propertyExpressionState.title, changeColumnName: changeColumnName, error: error, title: `${propertyExpressionState.title} - ${propertyExpressionState.path}` }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
210
+ }), children: [_jsx(QueryBuilderEditablePropertyName, { columnName: columnName ?? propertyExpressionState.title, setColumnName: setColumnName, error: error, title: `${propertyExpressionState.title} - ${propertyExpressionState.path}`, defaultColumnName: getPropertyChainName(propertyExpressionState.propertyExpression, propertyExpressionState.queryBuilderState.explorerState
211
+ .humanizePropertyName) }), hasDerivedPropertyInExpression && (_jsxs("button", { className: clsx('query-builder-property-expression-badge__action', {
204
212
  'query-builder-property-expression-badge__action--error': !isValid,
205
213
  }), tabIndex: -1, onClick: setDerivedPropertyArguments, title: "Set Derived Property Argument(s)...", children: [!isValid && _jsx(InfoCircleIcon, {}), " (...)"] })), _jsx(QueryBuilderPropertyExpressionEditor, { propertyExpressionState: propertyExpressionState })] }) }) }));
206
214
  });
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBu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O,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACrB,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;SAC9C,CAAC;KACH,CAAC,EACF,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAC,yCAAyC,EACnD,GAAG,EAAE,aAAa,YAElB,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAC,iBAAiB,YAEvB,eACE,SAAS,EAAE,IAAI,CACb,kDAAkD,EAClD;oBACE,yDAAyD,EACvD,IAAI,YAAY,KAAK;oBACvB,+DAA+D,EAC7D,IAAI,YAAY,WAAW;oBAC7B,6DAA6D,EAC3D,IAAI,YAAY,aAAa;iBAChC,CACF,aAED,KAAC,gCAAgC,IAC/B,UAAU,EAAE,UAAU,IAAI,uBAAuB,CAAC,KAAK,EACvD,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,uBAAuB,CAAC,KAAK,MAAM,uBAAuB,CAAC,IAAI,EAAE,GAC3E,EACD,8BAA8B,IAAI,CACjC,kBACE,SAAS,EAAE,IAAI,CACb,iDAAiD,EACjD;4BACE,wDAAwD,EACtD,CAAC,OAAO;yBACX,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,2BAA2B,EACpC,KAAK,EAAC,qCAAqC,aAE1C,CAAC,OAAO,IAAI,KAAC,cAAc,KAAG,cACxB,CACV,EACD,KAAC,oCAAoC,IACnC,uBAAuB,EAAE,uBAAuB,GAChD,IACE,GACwB,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderPropertyExpressionEditor.js","sourceRoot":"","sources":["../../src/components/QueryBuilderPropertyExpressionEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,SA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CAAC,CAAC,EACZ,OAAO,EAAE,2BAA2B,EACpC,KAAK,EAAC,qCAAqC,aAE1C,CAAC,OAAO,IAAI,KAAC,cAAc,KAAG,cACxB,CACV,EACD,KAAC,oCAAoC,IACnC,uBAAuB,EAAE,uBAAuB,GAChD,IACE,GACwB,GAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAm5BrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiT3C,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAm5BrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiT3C,CAAC"}
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { useEffect, useRef, useCallback, useState, forwardRef, } from 'react';
17
+ import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { clsx, BlankPanelPlaceholder, CalculatorIcon, TimesIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, ContextMenu, SigmaIcon, PanelDropZone, DragPreviewLayer, useDragPreviewLayer, PlusIcon, PanelContent, TrashIcon, PanelDnDEntry, CalendarIcon, CalendarClockIcon, CustomSelectorInput, PanelEntryDropZonePlaceholder, FunctionIcon, CogIcon, InfoCircleIcon, } from '@finos/legend-art';
20
20
  import { buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
@@ -49,10 +49,10 @@ const QueryBuilderProjectionColumnContextMenu = observer(forwardRef(function Que
49
49
  QueryBuilderSimpleProjectionColumnState && (_jsx(MenuContentItem, { onClick: convertToDerivation, children: "Convert To Derivation" })), _jsx(MenuContentItem, { onClick: removeColumn, children: "Remove" })] }));
50
50
  }));
51
51
  const QueryBuilderSimpleProjectionColumnEditor = observer((props) => {
52
- const { projectionColumnState, changeColumnName, error } = props;
52
+ const { projectionColumnState, setColumnName, error } = props;
53
53
  const onPropertyExpressionChange = (node) => projectionColumnState.changeProperty(node, projectionColumnState.tdsState.queryBuilderState.explorerState
54
54
  .humanizePropertyName);
55
- return (_jsx(QueryBuilderPropertyExpressionBadge, { columnName: projectionColumnState.columnName, propertyExpressionState: projectionColumnState.propertyExpressionState, onPropertyExpressionChange: onPropertyExpressionChange, changeColumnName: changeColumnName, error: error }));
55
+ return (_jsx(QueryBuilderPropertyExpressionBadge, { columnName: projectionColumnState.columnName, propertyExpressionState: projectionColumnState.propertyExpressionState, onPropertyExpressionChange: onPropertyExpressionChange, setColumnName: setColumnName, error: error }));
56
56
  });
57
57
  const QueryBuilderDerivationProjectionColumnEditor = observer((props) => {
58
58
  const { projectionColumnState } = props;
@@ -133,7 +133,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
133
133
  const isRemovalDisabled = tdsState.isColumnInUse(projectionColumnState);
134
134
  const removeColumn = () => tdsState.removeColumn(projectionColumnState);
135
135
  // name
136
- const changeColumnName = (event) => projectionColumnState.setColumnName(event.target.value);
136
+ const setColumnName = (columnName) => projectionColumnState.setColumnName(columnName);
137
137
  const isDuplicatedColumnName = projectionColumnState.tdsState.isDuplicateColumn(projectionColumnState);
138
138
  // aggregation
139
139
  const aggregateColumnState = tdsState.aggregationState.columns.find((column) => column.projectionColumnState === projectionColumnState);
@@ -333,16 +333,16 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
333
333
  QueryBuilderSimpleProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderPropertyInfoTooltip, { title: projectionColumnState.propertyExpressionState.title, property: projectionColumnState.propertyExpressionState
334
334
  .propertyExpression.func.value, path: getPropertyPath(projectionColumnState.propertyExpressionState
335
335
  .propertyExpression), isMapped: true, placement: "bottom-start", explorerState: projectionColumnState.propertyExpressionState
336
- .queryBuilderState.explorerState, children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("div", { className: "query-builder__projection__column__value", children: _jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState, changeColumnName: changeColumnName, error: isDuplicatedColumnName
336
+ .queryBuilderState.explorerState, children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(InfoCircleIcon, {}) }) }), _jsx("div", { className: "query-builder__projection__column__value", children: _jsx(QueryBuilderSimpleProjectionColumnEditor, { projectionColumnState: projectionColumnState, setColumnName: setColumnName, error: isDuplicatedColumnName
337
337
  ? 'Duplicated column'
338
338
  : projectionColumnState.columnName.length === 0
339
339
  ? 'Empty column name'
340
340
  : undefined }) })] })), projectionColumnState instanceof
341
- QueryBuilderDerivationProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderDerivationInfoTooltip, { title: projectionColumnState.columnName, type: projectionColumnState.returnType, placement: "bottom-start", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(CalculatorIcon, {}) }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [_jsx(QueryBuilderEditablePropertyName, { columnName: projectionColumnState.columnName, changeColumnName: changeColumnName, error: isDuplicatedColumnName
341
+ QueryBuilderDerivationProjectionColumnState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderDerivationInfoTooltip, { title: projectionColumnState.columnName, type: projectionColumnState.returnType, placement: "bottom-start", children: _jsx("div", { className: "query-builder-property-expression-badge__property__info", children: _jsx(CalculatorIcon, {}) }) }), _jsxs("div", { className: "query-builder__projection__column__value", children: [_jsx(QueryBuilderEditablePropertyName, { columnName: projectionColumnState.columnName, setColumnName: setColumnName, error: isDuplicatedColumnName
342
342
  ? 'Duplicated column'
343
343
  : projectionColumnState.columnName.length === 0
344
344
  ? 'Empty column name'
345
- : undefined, title: projectionColumnState.columnName }), _jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState })] })] })), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), isCalendarEnabled &&
345
+ : undefined, title: projectionColumnState.columnName, defaultColumnName: "(derivation)" }), _jsx(QueryBuilderDerivationProjectionColumnEditor, { projectionColumnState: projectionColumnState })] })] })), _jsx("div", { className: "query-builder__projection__column__aggregate", children: _jsxs("div", { className: "query-builder__projection__column__aggregate__operator", children: [aggregateColumnState && (_jsx("div", { className: "query-builder__projection__column__aggregate__operator__label", children: aggregateColumnState.operator.getLabel(projectionColumnState) })), isCalendarEnabled &&
346
346
  aggregateColumnState &&
347
347
  aggregateCalendarFunctions.length > 0 && (_jsx("div", { className: clsx('query-builder__projection__column__aggregate__calendar__toggler', {
348
348
  'query-builder__projection__column__aggregate__calendar__toggler--active': !aggregateColumnState.hideCalendarColumnState,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,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e,qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,oCAAoC,YAE9C,eAAK,GAAG,EAAE,4BAA4B,aACpC,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA4C,EACpC,EAAE,CACV,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;4CAChC,CAAC,CAAC,WAAW;4CACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3D,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,EACpC,kCAAkC,EAChC,kCAAkC,EAEpC,4BAA4B,EAC1B,4BAA4B,EAE9B,qCAAqC,EACnC,qCAAqC,EAEvC,+BAA+B,EAC7B,+BAA+B,EAEjC,SAAS,EAAE,SAAS,IAff,qBAAqB,CAAC,IAAI,CAgB/B,CACH,CAAC,IACE,GACF,CACP,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,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qBAAqB,CAAC,iBAAiB,EACpD,SAAS,EAAC,oCAAoC,YAE9C,eAAK,GAAG,EAAE,4BAA4B,aACpC,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA4C,EACpC,EAAE,CACV,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;4CAChC,CAAC,CAAC,WAAW;4CACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3D,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,EACpC,kCAAkC,EAChC,kCAAkC,EAEpC,4BAA4B,EAC1B,4BAA4B,EAE9B,qCAAqC,EACnC,qCAAqC,EAEvC,+BAA+B,EAC7B,+BAA+B,EAEjC,SAAS,EAAE,SAAS,IAff,qBAAqB,CAAC,IAAI,CAgB/B,CACH,CAAC,IACE,GACF,CACP,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.14.31
1
+ /** @license @finos/legend-query-builder v4.14.32
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.31",
3
+ "version": "4.14.32",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderStateBuilder.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,2BAA2B,EAC3B,KAAK,oBAAoB,EACzB,aAAa,EACb,mCAAmC,EAGnC,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAUnB,MAAM,qBAAqB,CAAC;AAqC7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAuHnF,eAAO,MAAM,qCAAqC,cACrC,kBAAkB,KAC5B,OAoBF,CAAC;AAyGF;;;;;;;;;;;;;GAaG;AACH,qBAAa,uCACX,YAAW,yBAAyB,CAAC,IAAI,CAAC;IAE1C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACjE,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAC;IAEtC,OAAO;IAUP,MAAM,CAAC,OAAO,CACZ,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,cAAc,EAC5B,iBAAiB,EAAE,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vE,KACA,IAeF,CAAC"}
@@ -27,6 +27,7 @@ import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkSta
27
27
  import { QueryBuilderCalculatedConstantExpressionState, QueryBuilderSimpleConstantExpressionState, } from './QueryBuilderConstantsState.js';
28
28
  import { checkIfEquivalent } from './milestoning/QueryBuilderMilestoningHelper.js';
29
29
  import { QueryBuilderEmbeddedFromExecutionContextState } from './QueryBuilderExecutionContextState.js';
30
+ import { isTypedProjectionExpression, processTypedTDSProjectExpression, } from './fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js';
30
31
  const processGetAllExpression = (expression, queryBuilderState) => {
31
32
  const _class = expression.genericType?.value.rawType;
32
33
  assertType(_class, Class, `Can't process getAll() expression: getAll() return type is missing`);
@@ -312,7 +313,12 @@ export class QueryBuilderValueSpecificationProcessor {
312
313
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
313
314
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT,
314
315
  ])) {
315
- processTDSProjectExpression(valueSpecification, this.queryBuilderState, this.parentLambda);
316
+ if (isTypedProjectionExpression(valueSpecification)) {
317
+ processTypedTDSProjectExpression(valueSpecification, this.queryBuilderState, this.parentLambda);
318
+ }
319
+ else {
320
+ processTDSProjectExpression(valueSpecification, this.queryBuilderState, this.parentLambda);
321
+ }
316
322
  return;
317
323
  }
318
324
  else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE)) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderStateBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,0B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EC,EACK,EAAE;IACR,IAAI,cAAc,CAAC,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE;QACjD,iBAAiB,CACf,cAAc,CAAC,YAAY,CAAC,UAAU,EACtC,iBAAiB,EACjB,gBAAgB,CACjB,CAAC;KACH;IACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACnD,uCAAuC,CAAC,OAAO,CAC7C,UAAU,EACV,cAAc,EACd,iBAAiB,CAClB,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -15,7 +15,6 @@
15
15
  */
16
16
  import { type INTERNAL__UnknownValueSpecification, type LambdaFunction, AbstractPropertyExpression, SimpleFunctionExpression } from '@finos/legend-graph';
17
17
  import { type QueryBuilderState } from '../../../QueryBuilderState.js';
18
- export declare const processTypedTDSProjectExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
19
18
  export declare const processTDSProjectExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
20
19
  export declare const processTDSProjectionColumnPropertyExpression: (expression: AbstractPropertyExpression, columnName: string | undefined, queryBuilderState: QueryBuilderState) => void;
21
20
  export declare const processTDSProjectionDerivationExpression: (value: INTERNAL__UnknownValueSpecification, columnName: string | undefined, parentExpression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,EAMzB,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAevC,eAAO,MAAM,gCAAgC,eAC/B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAgDF,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAoFF,CAAC;AAEF,eAAO,MAAM,4CAA4C,eAC3C,0BAA0B,cAC1B,MAAM,GAAG,SAAS,qBACX,iBAAiB,KACnC,IAkEF,CAAC;AAEF,eAAO,MAAM,wCAAwC,UAC5C,mCAAmC,cAC9B,MAAM,GAAG,SAAS,oBACZ,wBAAwB,qBACvB,iBAAiB,KACnC,IA2BF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA4CF,CAAC;AAEF,eAAO,MAAM,4BAA4B,eAC3B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAwCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA8CF,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,wBAAwB,qBACV,iBAAiB,gBACtB,cAAc,KAC3B,IAwDF,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,wBAAwB,oBAClB,wBAAwB,GAAG,SAAS,qBACnC,iBAAiB,KACnC,IA+CF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,EAKzB,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAevE,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA2EF,CAAC;AAEF,eAAO,MAAM,4CAA4C,eAC3C,0BAA0B,cAC1B,MAAM,GAAG,SAAS,qBACX,iBAAiB,KACnC,IAkEF,CAAC;AAEF,eAAO,MAAM,wCAAwC,UAC5C,mCAAmC,cAC9B,MAAM,GAAG,SAAS,oBACZ,wBAAwB,qBACvB,iBAAiB,KACnC,IA2BF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA4CF,CAAC;AAEF,eAAO,MAAM,4BAA4B,eAC3B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAwCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA8CF,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,wBAAwB,qBACV,iBAAiB,gBACtB,cAAc,KAC3B,IAwDF,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,wBAAwB,oBAClB,wBAAwB,GAAG,SAAS,qBACnC,iBAAiB,KACnC,IA+CF,CAAC"}
@@ -13,42 +13,17 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { AbstractPropertyExpression, CollectionInstanceValue, DerivedProperty, matchFunctionName, RawLambda, SimpleFunctionExpression, V1_deserializeRawValueSpecification, V1_RawLambda, VariableExpression, PrimitiveInstanceValue, ColSpecArrayInstance, } from '@finos/legend-graph';
16
+ import { AbstractPropertyExpression, CollectionInstanceValue, DerivedProperty, matchFunctionName, RawLambda, SimpleFunctionExpression, V1_deserializeRawValueSpecification, V1_RawLambda, VariableExpression, PrimitiveInstanceValue, } from '@finos/legend-graph';
17
17
  import { assertNonNullable, assertTrue, assertType, guaranteeIsNumber, guaranteeNonNullable, guaranteeType, isNonNullable, returnUndefOnError, } from '@finos/legend-shared';
18
18
  import { COLUMN_SORT_TYPE, QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
19
- import { QUERY_BUILDER_LAMBDA_WRITER_MODE, } from '../../../QueryBuilderState.js';
19
+ import {} from '../../../QueryBuilderState.js';
20
20
  import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
21
21
  import { extractNullableNumberFromInstanceValue, extractNullableStringFromInstanceValue, validatePropertyExpressionChain, } from '../../../QueryBuilderValueSpecificationHelper.js';
22
22
  import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
23
23
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, } from './QueryBuilderProjectionColumnState.js';
24
24
  import { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
25
25
  import { SortColumnState } from '../QueryResultSetModifierState.js';
26
- export const processTypedTDSProjectExpression = (expression, queryBuilderState, parentLambda) => {
27
- // check parameters
28
- assertTrue(expression.parametersValues.length === 2, `Can't process project() expression: project() expects 2 arguments`);
29
- // update fetch-structure
30
- queryBuilderState.fetchStructureState.changeImplementation(FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE);
31
- // check preceding expression
32
- const precedingExpression = guaranteeType(expression.parametersValues[0], SimpleFunctionExpression, `Can't process project() expression: only support project() immediately following an expression`);
33
- assertTrue(matchFunctionName(precedingExpression.functionName, [
34
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
35
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
36
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
37
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
38
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK,
39
- ]), `Can't process project() expression: only support project() immediately following either getAll(), filter(), or forWatermark()`);
40
- QueryBuilderValueSpecificationProcessor.process(precedingExpression, parentLambda, queryBuilderState);
41
- // check columns
42
- const classInstance = expression.parametersValues[1];
43
- assertType(classInstance, ColSpecArrayInstance, `Can't process project() expression: project() expects argument #1 to be a ColSpecArrayInstance`);
44
- queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE);
45
- QueryBuilderValueSpecificationProcessor.processChild(classInstance, expression, parentLambda, queryBuilderState);
46
- };
47
26
  export const processTDSProjectExpression = (expression, queryBuilderState, parentLambda) => {
48
- if (expression.parametersValues.length === 2) {
49
- processTypedTDSProjectExpression(expression, queryBuilderState, parentLambda);
50
- return;
51
- }
52
27
  // update fetch-structure
53
28
  queryBuilderState.fetchStructureState.changeImplementation(FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE);
54
29
  // check parameters
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,mCAAmC,EACnC,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,gCAAgC,GAEjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uCAAuC,EAAE,M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G;gBACtB,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC;YAC1B,eAAe,CAAC,sBAAsB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;SACvE;KACF;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,mCAAmC,EACnC,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EACL,sCAAsC,EACtC,sCAAsC,EACtC,+BAA+B,GAChC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAC;AACxG,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,UAAoC,EACpC,iBAAoC,EACpC,YAA4B,EACtB,EAAE;IACR,yBAAyB;IACzB,iBAAiB,CAAC,mBAAmB,CAAC,o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Q,CAC3C,CACJ,EACD,iBAAiB,YAAY,+BAA+B,YAAY,oCAAoC,CAC7G,CAAC;IAEF,mBAAmB;IACnB,UAAU,CACR,UAAU,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EACxC,iBAAiB,YAAY,kBAAkB,YAAY,wBAAwB,CACpF,CAAC;IAEF,cAAc;IACd,IACE,iBAAiB,CAAC,mBAAmB,CAAC,cAAc;QACpD,oBAAoB,EACpB;QACA,MAAM,eAAe,GACnB,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAC3D,oBAAoB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACrD,CAAC;QACF,MAAM,iCAAiC,GAAG,eAAe,CAAC,UAAU,CAAC,IAAI,CACvE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,cAAc,CACvC,CAAC;QACF,IAAI,iCAAiC,EAAE;YACrC,MAAM,eAAe,GAAG,IAAI,eAAe,CACzC,iCAAiC,CAClC,CAAC;YACF,eAAe,CAAC,QAAQ,GAAG,iBAAiB,CAC1C,YAAY,EACZ,iCAAiC,CAAC,OAAO,CAC1C;gBACC,CAAC,CAAC,gBAAgB,CAAC,GAAG;gBACtB,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC;YAC1B,eAAe,CAAC,sBAAsB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;SACvE;KACF;AACH,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type LambdaFunction, SimpleFunctionExpression } from '@finos/legend-graph';
17
+ import { type QueryBuilderState } from '../../../QueryBuilderState.js';
18
+ export declare const processTypedTDSProjectExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
19
+ export declare const isTypedProjectionExpression: (expression: SimpleFunctionExpression) => boolean;
20
+ //# sourceMappingURL=QueryBuilderTypedProjectionStateBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTypedProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EACnB,wBAAwB,EAGzB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAOvC,eAAO,MAAM,gCAAgC,eAC/B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAgDF,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,KACnC,OAYF,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { SimpleFunctionExpression, matchFunctionName, ColSpecArrayInstance, } from '@finos/legend-graph';
17
+ import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
18
+ import { assertTrue, assertType, guaranteeType } from '@finos/legend-shared';
19
+ import { QUERY_BUILDER_LAMBDA_WRITER_MODE, } from '../../../QueryBuilderState.js';
20
+ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
21
+ import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
22
+ export const processTypedTDSProjectExpression = (expression, queryBuilderState, parentLambda) => {
23
+ // check parameters
24
+ assertTrue(expression.parametersValues.length === 2, `Can't process typed project() expression: typed project() expects 2 arguments`);
25
+ // update fetch-structure
26
+ queryBuilderState.fetchStructureState.changeImplementation(FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE);
27
+ // check preceding expression
28
+ const precedingExpression = guaranteeType(expression.parametersValues[0], SimpleFunctionExpression, `Can't process typed project() expression: only support typed project() immediately following an expression`);
29
+ assertTrue(matchFunctionName(precedingExpression.functionName, [
30
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
31
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
32
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
33
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
34
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK,
35
+ ]), `Can't process typed project() expression: only support typed project() immediately following either getAll(), filter(), or forWatermark()`);
36
+ QueryBuilderValueSpecificationProcessor.process(precedingExpression, parentLambda, queryBuilderState);
37
+ // check columns
38
+ const classInstance = expression.parametersValues[1];
39
+ assertType(classInstance, ColSpecArrayInstance, `Can't process typed project() expression: typed project() expects argument #1 to be a ColSpec Array Instance`);
40
+ queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE);
41
+ QueryBuilderValueSpecificationProcessor.processChild(classInstance, expression, parentLambda, queryBuilderState);
42
+ };
43
+ export const isTypedProjectionExpression = (expression) => {
44
+ if (matchFunctionName(expression.functionName, [
45
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
46
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT,
47
+ ])) {
48
+ if (expression.parametersValues.length === 2) {
49
+ return expression.parametersValues[1] instanceof ColSpecArrayInstance;
50
+ }
51
+ }
52
+ return false;
53
+ };
54
+ //# sourceMappingURL=QueryBuilderTypedProjectionStateBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTypedProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EACL,gCAAgC,GAEjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,UAAoC,EACpC,iBAAoC,EACpC,YAA4B,EACtB,EAAE;IACR,mBAAmB;IACnB,UAAU,CACR,UAAU,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EACxC,+EAA+E,CAChF,CAAC;IACF,yBAAyB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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.14.31",
3
+ "version": "4.14.32",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -65,7 +65,7 @@
65
65
  "sql-formatter": "13.0.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.1.3",
68
+ "@finos/legend-dev-utils": "2.1.4",
69
69
  "@jest/globals": "29.7.0",
70
70
  "cross-env": "7.0.3",
71
71
  "eslint": "8.52.0",
@@ -37,6 +37,7 @@ import {
37
37
  import { observer } from 'mobx-react-lite';
38
38
  import {
39
39
  generateValueSpecificationForParameter,
40
+ getPropertyChainName,
40
41
  type QueryBuilderDerivedPropertyExpressionState,
41
42
  type QueryBuilderPropertyExpressionState,
42
43
  } from '../stores/QueryBuilderPropertyEditorState.js';
@@ -382,15 +383,16 @@ export const QueryBuilderPropertyExpressionEditor = observer(
382
383
  export const QueryBuilderEditablePropertyName = observer(
383
384
  (props: {
384
385
  columnName: string;
385
- changeColumnName?:
386
- | ((event: ChangeEvent<HTMLInputElement>) => void)
387
- | undefined;
386
+ setColumnName?: ((columnName: string) => void) | undefined;
388
387
  error: string | undefined;
389
388
  title: string;
389
+ defaultColumnName: string;
390
390
  }) => {
391
- const { columnName, changeColumnName, error, title } = props;
391
+ const { columnName, setColumnName, error, title, defaultColumnName } =
392
+ props;
392
393
 
393
394
  const [isEditingColumnName, setIsEditingColumnName] = useState(false);
395
+ const [selectedColumnName, setSelectedColumnName] = useState(columnName);
394
396
  const columnNameInputRef = useRef<HTMLInputElement>(null);
395
397
 
396
398
  useEffect(() => {
@@ -399,26 +401,33 @@ export const QueryBuilderEditablePropertyName = observer(
399
401
  }
400
402
  }, [isEditingColumnName, columnNameInputRef]);
401
403
 
404
+ const handleFinishEditing = (): void => {
405
+ const trimmedSelectedColumnName = selectedColumnName.trim();
406
+ if (trimmedSelectedColumnName.length > 0) {
407
+ setColumnName?.(trimmedSelectedColumnName);
408
+ setSelectedColumnName(trimmedSelectedColumnName);
409
+ } else {
410
+ setColumnName?.(defaultColumnName);
411
+ setSelectedColumnName(defaultColumnName);
412
+ }
413
+ setIsEditingColumnName(false);
414
+ };
415
+
402
416
  return isEditingColumnName ? (
403
417
  <div className="query-builder__property__name__editor">
404
418
  <InputWithInlineValidation
405
419
  className="query-builder__property__name__editor__input input-group__input"
406
420
  spellCheck={false}
407
- value={columnName}
408
- onChange={changeColumnName}
421
+ value={selectedColumnName}
422
+ onChange={(event: ChangeEvent<HTMLInputElement>) =>
423
+ setSelectedColumnName(event.target.value)
424
+ }
409
425
  onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => {
410
426
  if (event.key === 'Enter') {
411
- if (columnName.length > 0) {
412
- setIsEditingColumnName(false);
413
- }
414
- }
415
- }}
416
- onBlur={() => {
417
- if (columnName.length > 0) {
418
- setIsEditingColumnName(false);
427
+ handleFinishEditing();
419
428
  }
420
429
  }}
421
- error={error}
430
+ onBlur={handleFinishEditing}
422
431
  ref={columnNameInputRef}
423
432
  draggable={true}
424
433
  onDragStart={(e: React.DragEvent<HTMLInputElement>) => {
@@ -434,10 +443,10 @@ export const QueryBuilderEditablePropertyName = observer(
434
443
  <span
435
444
  className={clsx('query-builder__property__name__display__content', {
436
445
  'query-builder__property__name__display__content--error': error,
437
- 'editable-value': changeColumnName,
446
+ 'editable-value': setColumnName,
438
447
  })}
439
448
  onClick={() => {
440
- if (changeColumnName) {
449
+ if (setColumnName) {
441
450
  setIsEditingColumnName(true);
442
451
  }
443
452
  }}
@@ -456,14 +465,14 @@ export const QueryBuilderPropertyExpressionBadge = observer(
456
465
  onPropertyExpressionChange: (
457
466
  node: QueryBuilderExplorerTreePropertyNodeData,
458
467
  ) => void;
459
- changeColumnName?: (event: ChangeEvent<HTMLInputElement>) => void;
468
+ setColumnName?: (columnName: string) => void;
460
469
  error?: string | undefined;
461
470
  }) => {
462
471
  const {
463
472
  columnName,
464
473
  propertyExpressionState,
465
474
  onPropertyExpressionChange,
466
- changeColumnName,
475
+ setColumnName,
467
476
  error,
468
477
  } = props;
469
478
  const type =
@@ -529,9 +538,14 @@ export const QueryBuilderPropertyExpressionBadge = observer(
529
538
  >
530
539
  <QueryBuilderEditablePropertyName
531
540
  columnName={columnName ?? propertyExpressionState.title}
532
- changeColumnName={changeColumnName}
541
+ setColumnName={setColumnName}
533
542
  error={error}
534
543
  title={`${propertyExpressionState.title} - ${propertyExpressionState.path}`}
544
+ defaultColumnName={getPropertyChainName(
545
+ propertyExpressionState.propertyExpression,
546
+ propertyExpressionState.queryBuilderState.explorerState
547
+ .humanizePropertyName,
548
+ )}
535
549
  />
536
550
  {hasDerivedPropertyInExpression && (
537
551
  <button
@@ -14,14 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import {
18
- useEffect,
19
- useRef,
20
- useCallback,
21
- useState,
22
- forwardRef,
23
- type ChangeEvent,
24
- } from 'react';
17
+ import { useEffect, useRef, useCallback, useState, forwardRef } from 'react';
25
18
  import { observer } from 'mobx-react-lite';
26
19
  import {
27
20
  clsx,
@@ -161,10 +154,10 @@ const QueryBuilderProjectionColumnContextMenu = observer(
161
154
  const QueryBuilderSimpleProjectionColumnEditor = observer(
162
155
  (props: {
163
156
  projectionColumnState: QueryBuilderSimpleProjectionColumnState;
164
- changeColumnName: (event: ChangeEvent<HTMLInputElement>) => void;
157
+ setColumnName: (columnName: string) => void;
165
158
  error?: string | undefined;
166
159
  }) => {
167
- const { projectionColumnState, changeColumnName, error } = props;
160
+ const { projectionColumnState, setColumnName, error } = props;
168
161
  const onPropertyExpressionChange = (
169
162
  node: QueryBuilderExplorerTreePropertyNodeData,
170
163
  ): void =>
@@ -179,7 +172,7 @@ const QueryBuilderSimpleProjectionColumnEditor = observer(
179
172
  columnName={projectionColumnState.columnName}
180
173
  propertyExpressionState={projectionColumnState.propertyExpressionState}
181
174
  onPropertyExpressionChange={onPropertyExpressionChange}
182
- changeColumnName={changeColumnName}
175
+ setColumnName={setColumnName}
183
176
  error={error}
184
177
  />
185
178
  );
@@ -391,9 +384,8 @@ const QueryBuilderProjectionColumnEditor = observer(
391
384
  tdsState.removeColumn(projectionColumnState);
392
385
 
393
386
  // name
394
- const changeColumnName: React.ChangeEventHandler<HTMLInputElement> = (
395
- event,
396
- ) => projectionColumnState.setColumnName(event.target.value);
387
+ const setColumnName = (columnName: string): void =>
388
+ projectionColumnState.setColumnName(columnName);
397
389
  const isDuplicatedColumnName =
398
390
  projectionColumnState.tdsState.isDuplicateColumn(projectionColumnState);
399
391
 
@@ -787,7 +779,7 @@ const QueryBuilderProjectionColumnEditor = observer(
787
779
  <div className="query-builder__projection__column__value">
788
780
  <QueryBuilderSimpleProjectionColumnEditor
789
781
  projectionColumnState={projectionColumnState}
790
- changeColumnName={changeColumnName}
782
+ setColumnName={setColumnName}
791
783
  error={
792
784
  isDuplicatedColumnName
793
785
  ? 'Duplicated column'
@@ -814,7 +806,7 @@ const QueryBuilderProjectionColumnEditor = observer(
814
806
  <div className="query-builder__projection__column__value">
815
807
  <QueryBuilderEditablePropertyName
816
808
  columnName={projectionColumnState.columnName}
817
- changeColumnName={changeColumnName}
809
+ setColumnName={setColumnName}
818
810
  error={
819
811
  isDuplicatedColumnName
820
812
  ? 'Duplicated column'
@@ -823,6 +815,7 @@ const QueryBuilderProjectionColumnEditor = observer(
823
815
  : undefined
824
816
  }
825
817
  title={projectionColumnState.columnName}
818
+ defaultColumnName="(derivation)"
826
819
  />
827
820
  <QueryBuilderDerivationProjectionColumnEditor
828
821
  projectionColumnState={projectionColumnState}
@@ -93,6 +93,10 @@ import {
93
93
  import { checkIfEquivalent } from './milestoning/QueryBuilderMilestoningHelper.js';
94
94
  import type { QueryBuilderParameterValue } from './QueryBuilderParametersState.js';
95
95
  import { QueryBuilderEmbeddedFromExecutionContextState } from './QueryBuilderExecutionContextState.js';
96
+ import {
97
+ isTypedProjectionExpression,
98
+ processTypedTDSProjectExpression,
99
+ } from './fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.js';
96
100
 
97
101
  const processGetAllExpression = (
98
102
  expression: SimpleFunctionExpression,
@@ -644,11 +648,20 @@ export class QueryBuilderValueSpecificationProcessor
644
648
  QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT,
645
649
  ])
646
650
  ) {
647
- processTDSProjectExpression(
648
- valueSpecification,
649
- this.queryBuilderState,
650
- this.parentLambda,
651
- );
651
+ if (isTypedProjectionExpression(valueSpecification)) {
652
+ processTypedTDSProjectExpression(
653
+ valueSpecification,
654
+ this.queryBuilderState,
655
+ this.parentLambda,
656
+ );
657
+ } else {
658
+ processTDSProjectExpression(
659
+ valueSpecification,
660
+ this.queryBuilderState,
661
+ this.parentLambda,
662
+ );
663
+ }
664
+
652
665
  return;
653
666
  } else if (
654
667
  matchFunctionName(
@@ -28,7 +28,6 @@ import {
28
28
  V1_RawLambda,
29
29
  VariableExpression,
30
30
  PrimitiveInstanceValue,
31
- ColSpecArrayInstance,
32
31
  } from '@finos/legend-graph';
33
32
  import {
34
33
  assertNonNullable,
@@ -45,10 +44,7 @@ import {
45
44
  QUERY_BUILDER_SUPPORTED_FUNCTIONS,
46
45
  QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS,
47
46
  } from '../../../../graph/QueryBuilderMetaModelConst.js';
48
- import {
49
- QUERY_BUILDER_LAMBDA_WRITER_MODE,
50
- type QueryBuilderState,
51
- } from '../../../QueryBuilderState.js';
47
+ import { type QueryBuilderState } from '../../../QueryBuilderState.js';
52
48
  import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
53
49
  import {
54
50
  extractNullableNumberFromInstanceValue,
@@ -63,74 +59,11 @@ import {
63
59
  import { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
64
60
  import { SortColumnState } from '../QueryResultSetModifierState.js';
65
61
 
66
- export const processTypedTDSProjectExpression = (
67
- expression: SimpleFunctionExpression,
68
- queryBuilderState: QueryBuilderState,
69
- parentLambda: LambdaFunction,
70
- ): void => {
71
- // check parameters
72
- assertTrue(
73
- expression.parametersValues.length === 2,
74
- `Can't process project() expression: project() expects 2 arguments`,
75
- );
76
- // update fetch-structure
77
- queryBuilderState.fetchStructureState.changeImplementation(
78
- FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE,
79
- );
80
-
81
- // check preceding expression
82
- const precedingExpression = guaranteeType(
83
- expression.parametersValues[0],
84
- SimpleFunctionExpression,
85
- `Can't process project() expression: only support project() immediately following an expression`,
86
- );
87
- assertTrue(
88
- matchFunctionName(precedingExpression.functionName, [
89
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
90
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
91
- QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
92
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
93
- QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK,
94
- ]),
95
- `Can't process project() expression: only support project() immediately following either getAll(), filter(), or forWatermark()`,
96
- );
97
- QueryBuilderValueSpecificationProcessor.process(
98
- precedingExpression,
99
- parentLambda,
100
- queryBuilderState,
101
- );
102
- // check columns
103
- const classInstance = expression.parametersValues[1];
104
- assertType(
105
- classInstance,
106
- ColSpecArrayInstance,
107
- `Can't process project() expression: project() expects argument #1 to be a ColSpecArrayInstance`,
108
- );
109
- queryBuilderState.setLambdaWriteMode(
110
- QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE,
111
- );
112
- QueryBuilderValueSpecificationProcessor.processChild(
113
- classInstance,
114
- expression,
115
- parentLambda,
116
- queryBuilderState,
117
- );
118
- };
119
-
120
62
  export const processTDSProjectExpression = (
121
63
  expression: SimpleFunctionExpression,
122
64
  queryBuilderState: QueryBuilderState,
123
65
  parentLambda: LambdaFunction,
124
66
  ): void => {
125
- if (expression.parametersValues.length === 2) {
126
- processTypedTDSProjectExpression(
127
- expression,
128
- queryBuilderState,
129
- parentLambda,
130
- );
131
-
132
- return;
133
- }
134
67
  // update fetch-structure
135
68
  queryBuilderState.fetchStructureState.changeImplementation(
136
69
  FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE,
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import {
18
+ type LambdaFunction,
19
+ SimpleFunctionExpression,
20
+ matchFunctionName,
21
+ ColSpecArrayInstance,
22
+ } from '@finos/legend-graph';
23
+ import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
24
+ import { assertTrue, assertType, guaranteeType } from '@finos/legend-shared';
25
+ import {
26
+ QUERY_BUILDER_LAMBDA_WRITER_MODE,
27
+ type QueryBuilderState,
28
+ } from '../../../QueryBuilderState.js';
29
+ import {
30
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS,
31
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS,
32
+ } from '../../../../graph/QueryBuilderMetaModelConst.js';
33
+ import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
34
+
35
+ export const processTypedTDSProjectExpression = (
36
+ expression: SimpleFunctionExpression,
37
+ queryBuilderState: QueryBuilderState,
38
+ parentLambda: LambdaFunction,
39
+ ): void => {
40
+ // check parameters
41
+ assertTrue(
42
+ expression.parametersValues.length === 2,
43
+ `Can't process typed project() expression: typed project() expects 2 arguments`,
44
+ );
45
+ // update fetch-structure
46
+ queryBuilderState.fetchStructureState.changeImplementation(
47
+ FETCH_STRUCTURE_IMPLEMENTATION.TABULAR_DATA_STRUCTURE,
48
+ );
49
+
50
+ // check preceding expression
51
+ const precedingExpression = guaranteeType(
52
+ expression.parametersValues[0],
53
+ SimpleFunctionExpression,
54
+ `Can't process typed project() expression: only support typed project() immediately following an expression`,
55
+ );
56
+ assertTrue(
57
+ matchFunctionName(precedingExpression.functionName, [
58
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
59
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
60
+ QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
61
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
62
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK,
63
+ ]),
64
+ `Can't process typed project() expression: only support typed project() immediately following either getAll(), filter(), or forWatermark()`,
65
+ );
66
+ QueryBuilderValueSpecificationProcessor.process(
67
+ precedingExpression,
68
+ parentLambda,
69
+ queryBuilderState,
70
+ );
71
+ // check columns
72
+ const classInstance = expression.parametersValues[1];
73
+ assertType(
74
+ classInstance,
75
+ ColSpecArrayInstance,
76
+ `Can't process typed project() expression: typed project() expects argument #1 to be a ColSpec Array Instance`,
77
+ );
78
+ queryBuilderState.setLambdaWriteMode(
79
+ QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE,
80
+ );
81
+ QueryBuilderValueSpecificationProcessor.processChild(
82
+ classInstance,
83
+ expression,
84
+ parentLambda,
85
+ queryBuilderState,
86
+ );
87
+ };
88
+
89
+ export const isTypedProjectionExpression = (
90
+ expression: SimpleFunctionExpression,
91
+ ): boolean => {
92
+ if (
93
+ matchFunctionName(expression.functionName, [
94
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
95
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT,
96
+ ])
97
+ ) {
98
+ if (expression.parametersValues.length === 2) {
99
+ return expression.parametersValues[1] instanceof ColSpecArrayInstance;
100
+ }
101
+ }
102
+ return false;
103
+ };
package/tsconfig.json CHANGED
@@ -136,6 +136,7 @@
136
136
  "./src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts",
137
137
  "./src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts",
138
138
  "./src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts",
139
+ "./src/stores/fetch-structure/tds/projection/QueryBuilderTypedProjectionStateBuilder.ts",
139
140
  "./src/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.ts",
140
141
  "./src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts",
141
142
  "./src/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.ts",