@finos/legend-query-builder 4.14.8 → 4.14.10
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderEvent.d.ts +2 -1
- package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.js +1 -0
- package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +45 -27
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +2 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +6 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +12 -9
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +6 -5
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +19 -5
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +3 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +3 -3
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderChangeHistoryState.d.ts +35 -0
- package/lib/stores/QueryBuilderChangeHistoryState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderChangeHistoryState.js +106 -0
- package/lib/stores/QueryBuilderChangeHistoryState.js.map +1 -0
- package/lib/stores/QueryBuilderState.d.ts +2 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +6 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +5 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +32 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/package.json +5 -5
- package/src/__lib__/QueryBuilderEvent.ts +2 -0
- package/src/components/QueryBuilder.tsx +41 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +16 -2
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +18 -8
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +8 -5
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +65 -24
- package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +29 -2
- package/src/stores/QueryBuilderChangeHistoryState.ts +129 -0
- package/src/stores/QueryBuilderState.ts +6 -0
- package/src/stores/explorer/QueryBuilderExplorerState.ts +35 -0
- package/tsconfig.json +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,iBAAiB,EAEjB,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAML,0BAA0B,EAC1B,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB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CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACvE,oCAAoC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,KAAK,CAAC,OAAO,EAAE,CACnF,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SACjD;gBAAS;YACR,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;SACzD;IACH,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"QueryBuilderExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,iBAAiB,EAEjB,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAML,0BAA0B,EAC1B,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,WAAW,EACX,cAAc,EACd,kBAAkB,EAElB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAE7B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAA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,CAAC;gBACzB,KAAK,cAAc,CAAC,UAAU,CAAC;gBAC/B,KAAK,cAAc,CAAC,QAAQ,CAAC,CAAC;oBAC5B,MAAM,aAAa,GACjB,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,QAAQ,CACnE,+BAA+B,CAC7B,IAAI,CAAC,iBAAiB,EACtB,kBAAkB,CACnB,EACD,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EACpD,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C,CAAoB,CAAC;oBACxB,UAAU,CACR,aAAa,EACb,kBAAkB,EAClB,gCAAgC,CACjC,CAAC;oBACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAClC,aAAa,CAAC,MAAiC,CAChD,CAAC;oBACF,MAAM;iBACP;gBACD;oBACE,MAAM,IAAI,yBAAyB,CACjC,4CAA4C,YAAY,CAAC,IAAI,GAAG,CACjE,CAAC;aACL;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACvE,oCAAoC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,KAAK,CAAC,OAAO,EAAE,CACnF,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SACjD;gBAAS;YACR,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;SACzD;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.10",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,10 +42,10 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.0.
|
46
|
-
"@finos/legend-art": "7.1.
|
47
|
-
"@finos/legend-graph": "31.8.
|
48
|
-
"@finos/legend-lego": "1.2.
|
45
|
+
"@finos/legend-application": "15.0.69",
|
46
|
+
"@finos/legend-art": "7.1.21",
|
47
|
+
"@finos/legend-graph": "31.8.5",
|
48
|
+
"@finos/legend-lego": "1.2.10",
|
49
49
|
"@finos/legend-server-depot": "6.0.36",
|
50
50
|
"@finos/legend-shared": "10.0.32",
|
51
51
|
"@finos/legend-storage": "3.0.82",
|
@@ -29,6 +29,8 @@ export enum QUERY_BUILDER_EVENT {
|
|
29
29
|
MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH = 'query-builder.mapping-model-coverage-analysis.launch',
|
30
30
|
MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS = 'query-builder.mapping-model-coverage-analysis.success',
|
31
31
|
UNSUPPORTED_QUERY_LAUNCH = 'query-builder.unsupported-query.lanuch',
|
32
|
+
|
33
|
+
CHANGE_HISTORY_ERROR = 'query-builder.change-history.error',
|
32
34
|
}
|
33
35
|
|
34
36
|
export enum QUERY_BUILDER_FILTER_EVENT {
|
@@ -75,6 +75,8 @@ import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
|
|
75
75
|
import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
|
76
76
|
import { DataAccessOverview } from './data-access/DataAccessOverview.js';
|
77
77
|
import { QueryChat } from './QueryChat.js';
|
78
|
+
import { useEffect, useRef } from 'react';
|
79
|
+
import { RedoButton, UndoButton } from '@finos/legend-lego/application';
|
78
80
|
|
79
81
|
const QueryBuilderStatusBar = observer(
|
80
82
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
@@ -226,6 +228,7 @@ const QueryBuilderPostGraphFetchPanel = observer(
|
|
226
228
|
export const QueryBuilder = observer(
|
227
229
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
228
230
|
const { queryBuilderState } = props;
|
231
|
+
const queryBuilderRef = useRef<HTMLDivElement>(null);
|
229
232
|
const isQuerySupported = queryBuilderState.isQuerySupported;
|
230
233
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
231
234
|
const isTDSState =
|
@@ -368,10 +371,30 @@ export const QueryBuilder = observer(
|
|
368
371
|
}
|
369
372
|
return null;
|
370
373
|
};
|
374
|
+
|
375
|
+
const undo = (): void => {
|
376
|
+
queryBuilderState.changeHistoryState.undo();
|
377
|
+
};
|
378
|
+
|
379
|
+
const redo = (): void => {
|
380
|
+
queryBuilderState.changeHistoryState.redo();
|
381
|
+
};
|
382
|
+
|
383
|
+
useEffect(() => {
|
384
|
+
// this condition is for passing all exisitng tests because when we initialize a queryBuilderState for a test,
|
385
|
+
// we use an empty RawLambda with an empty class and this useEffect is called earlier than initializeWithQuery()
|
386
|
+
if (queryBuilderState.isQuerySupported && queryBuilderState.class) {
|
387
|
+
queryBuilderState.changeHistoryState.cacheNewQuery(
|
388
|
+
queryBuilderState.buildQuery(),
|
389
|
+
);
|
390
|
+
}
|
391
|
+
}, [queryBuilderState, queryBuilderState.hashCode]);
|
392
|
+
|
371
393
|
return (
|
372
394
|
<div
|
373
395
|
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER}
|
374
396
|
className="query-builder"
|
397
|
+
ref={queryBuilderRef}
|
375
398
|
>
|
376
399
|
<BackdropContainer
|
377
400
|
elementId={QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER}
|
@@ -408,6 +431,24 @@ export const QueryBuilder = observer(
|
|
408
431
|
)}
|
409
432
|
</div>
|
410
433
|
<div className="query-builder__header__actions">
|
434
|
+
<div className="query-builder__header__actions__undo-redo">
|
435
|
+
<UndoButton
|
436
|
+
parent={queryBuilderRef}
|
437
|
+
canUndo={
|
438
|
+
queryBuilderState.changeHistoryState.canUndo &&
|
439
|
+
queryBuilderState.isQuerySupported
|
440
|
+
}
|
441
|
+
undo={undo}
|
442
|
+
/>
|
443
|
+
<RedoButton
|
444
|
+
parent={queryBuilderRef}
|
445
|
+
canRedo={
|
446
|
+
queryBuilderState.changeHistoryState.canRedo &&
|
447
|
+
queryBuilderState.isQuerySupported
|
448
|
+
}
|
449
|
+
redo={redo}
|
450
|
+
/>
|
451
|
+
</div>
|
411
452
|
<DropdownMenu
|
412
453
|
className="query-builder__header__advanced-dropdown"
|
413
454
|
title="Show Advanced Menu..."
|
@@ -372,12 +372,21 @@ export const QueryBuilderPropertyExpressionEditor = observer(
|
|
372
372
|
|
373
373
|
export const QueryBuilderPropertyExpressionBadge = observer(
|
374
374
|
(props: {
|
375
|
+
columnName?: string;
|
375
376
|
propertyExpressionState: QueryBuilderPropertyExpressionState;
|
376
377
|
onPropertyExpressionChange: (
|
377
378
|
node: QueryBuilderExplorerTreePropertyNodeData,
|
378
379
|
) => void;
|
380
|
+
setIsEditingColumnName?: (isEditing: boolean) => void;
|
379
381
|
}) => {
|
380
|
-
const {
|
382
|
+
const {
|
383
|
+
columnName,
|
384
|
+
propertyExpressionState,
|
385
|
+
onPropertyExpressionChange,
|
386
|
+
setIsEditingColumnName,
|
387
|
+
} = props;
|
388
|
+
const explorerState =
|
389
|
+
propertyExpressionState.queryBuilderState.explorerState;
|
381
390
|
const type =
|
382
391
|
propertyExpressionState.propertyExpression.func.value.genericType.value
|
383
392
|
.rawType;
|
@@ -442,8 +451,11 @@ export const QueryBuilderPropertyExpressionBadge = observer(
|
|
442
451
|
<div
|
443
452
|
className="query-builder-property-expression-badge__property"
|
444
453
|
title={`${propertyExpressionState.title} - ${propertyExpressionState.path}`}
|
454
|
+
onClick={() => {
|
455
|
+
setIsEditingColumnName?.(true);
|
456
|
+
}}
|
445
457
|
>
|
446
|
-
{propertyExpressionState.title}
|
458
|
+
{columnName ?? propertyExpressionState.title}
|
447
459
|
</div>
|
448
460
|
{hasDerivedPropertyInExpression && (
|
449
461
|
<button
|
@@ -465,10 +477,12 @@ export const QueryBuilderPropertyExpressionBadge = observer(
|
|
465
477
|
propertyExpressionState={propertyExpressionState}
|
466
478
|
/>
|
467
479
|
<QueryBuilderPropertyInfoTooltip
|
480
|
+
title={propertyExpressionState.title}
|
468
481
|
property={propertyExpressionState.propertyExpression.func.value}
|
469
482
|
path={getPropertyPath(propertyExpressionState.propertyExpression)}
|
470
483
|
isMapped={true}
|
471
484
|
placement="bottom-end"
|
485
|
+
explorerState={explorerState}
|
472
486
|
>
|
473
487
|
<div className="query-builder-property-expression-badge__property__info">
|
474
488
|
<InfoCircleIcon />
|
@@ -459,6 +459,13 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
459
459
|
) : (
|
460
460
|
<div />
|
461
461
|
);
|
462
|
+
const propertyName = explorerState.humanizePropertyName
|
463
|
+
? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
464
|
+
? TYPE_CAST_TOKEN + prettyCONSTName(node.label)
|
465
|
+
: prettyCONSTName(node.label)
|
466
|
+
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
467
|
+
? TYPE_CAST_TOKEN + node.label
|
468
|
+
: node.label;
|
462
469
|
const selectNode = (): void => onNodeSelect?.(node);
|
463
470
|
const openNode = (): void => {
|
464
471
|
if (!node.isOpen) {
|
@@ -567,7 +574,10 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
567
574
|
{(node instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
568
575
|
node instanceof QueryBuilderExplorerTreeSubTypeNodeData) && (
|
569
576
|
<>
|
570
|
-
<div
|
577
|
+
<div
|
578
|
+
className="tree-view__node__icon query-builder-explorer-tree__node__icon"
|
579
|
+
ref={node.elementRef}
|
580
|
+
>
|
571
581
|
<div className="query-builder-explorer-tree__expand-icon">
|
572
582
|
{nodeExpandIcon}
|
573
583
|
</div>
|
@@ -582,7 +592,12 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
582
592
|
'query-builder-explorer-tree__node__label--with-preview':
|
583
593
|
allowPreview,
|
584
594
|
},
|
595
|
+
{
|
596
|
+
'query-builder-explorer-tree__node__label--highlight':
|
597
|
+
node.isHighlighting,
|
598
|
+
},
|
585
599
|
)}
|
600
|
+
onAnimationEnd={() => node.setIsHighlighting(false)}
|
586
601
|
>
|
587
602
|
<div
|
588
603
|
className={clsx(
|
@@ -598,13 +613,7 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
598
613
|
},
|
599
614
|
)}
|
600
615
|
>
|
601
|
-
{
|
602
|
-
? node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
603
|
-
? TYPE_CAST_TOKEN + prettyCONSTName(node.label)
|
604
|
-
: prettyCONSTName(node.label)
|
605
|
-
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
606
|
-
? TYPE_CAST_TOKEN + node.label
|
607
|
-
: node.label}
|
616
|
+
{propertyName}
|
608
617
|
</div>
|
609
618
|
{isDerivedProperty && (
|
610
619
|
<div
|
@@ -639,6 +648,7 @@ const QueryBuilderExplorerTreeNodeContainer = observer(
|
|
639
648
|
)}
|
640
649
|
{node instanceof QueryBuilderExplorerTreePropertyNodeData && (
|
641
650
|
<QueryBuilderPropertyInfoTooltip
|
651
|
+
title={propertyName}
|
642
652
|
property={node.property}
|
643
653
|
path={node.id}
|
644
654
|
isMapped={node.mappingData.mapped}
|
@@ -182,6 +182,12 @@ const QueryBuilderTreeNodeViewer = observer(
|
|
182
182
|
node instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
183
183
|
node.parentId === pn.id,
|
184
184
|
);
|
185
|
+
const propertyName =
|
186
|
+
parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
187
|
+
? prettyPropertyNameForSubType(node.id)
|
188
|
+
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
189
|
+
? prettyPropertyNameForSubTypeClass(node.id)
|
190
|
+
: prettyPropertyNameFromNodeId(node.id);
|
185
191
|
|
186
192
|
return (
|
187
193
|
<div>
|
@@ -205,15 +211,12 @@ const QueryBuilderTreeNodeViewer = observer(
|
|
205
211
|
</div>
|
206
212
|
</div>
|
207
213
|
<div className="tree-view__node__label query-builder-property-search-panel__node__label query-builder-property-search-panel__node__label--with-action">
|
208
|
-
{
|
209
|
-
? prettyPropertyNameForSubType(node.id)
|
210
|
-
: node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
211
|
-
? prettyPropertyNameForSubTypeClass(node.id)
|
212
|
-
: prettyPropertyNameFromNodeId(node.id)}
|
214
|
+
{propertyName}
|
213
215
|
</div>
|
214
216
|
<div className="query-builder-property-search-panel__node__actions">
|
215
217
|
{node instanceof QueryBuilderExplorerTreePropertyNodeData && (
|
216
218
|
<QueryBuilderPropertyInfoTooltip
|
219
|
+
title={propertyName}
|
217
220
|
property={node.property}
|
218
221
|
path={node.id}
|
219
222
|
isMapped={node.mappingData.mapped}
|
@@ -144,8 +144,9 @@ const QueryBuilderProjectionColumnContextMenu = observer(
|
|
144
144
|
const QueryBuilderSimpleProjectionColumnEditor = observer(
|
145
145
|
(props: {
|
146
146
|
projectionColumnState: QueryBuilderSimpleProjectionColumnState;
|
147
|
+
setIsEditingColumnName: (isEditing: boolean) => void;
|
147
148
|
}) => {
|
148
|
-
const { projectionColumnState } = props;
|
149
|
+
const { projectionColumnState, setIsEditingColumnName } = props;
|
149
150
|
const onPropertyExpressionChange = (
|
150
151
|
node: QueryBuilderExplorerTreePropertyNodeData,
|
151
152
|
): void =>
|
@@ -158,10 +159,12 @@ const QueryBuilderSimpleProjectionColumnEditor = observer(
|
|
158
159
|
return (
|
159
160
|
<div className="query-builder__projection__column__value__property">
|
160
161
|
<QueryBuilderPropertyExpressionBadge
|
162
|
+
columnName={projectionColumnState.columnName}
|
161
163
|
propertyExpressionState={
|
162
164
|
projectionColumnState.propertyExpressionState
|
163
165
|
}
|
164
166
|
onPropertyExpressionChange={onPropertyExpressionChange}
|
167
|
+
setIsEditingColumnName={setIsEditingColumnName}
|
165
168
|
/>
|
166
169
|
</div>
|
167
170
|
);
|
@@ -378,6 +381,13 @@ const QueryBuilderProjectionColumnEditor = observer(
|
|
378
381
|
) => projectionColumnState.setColumnName(event.target.value);
|
379
382
|
const isDuplicatedColumnName =
|
380
383
|
projectionColumnState.tdsState.isDuplicateColumn(projectionColumnState);
|
384
|
+
const [isEditingColumnName, setIsEditingColumnName] = useState(false);
|
385
|
+
const columnNameInputRef = useRef<HTMLInputElement>(null);
|
386
|
+
useEffect(() => {
|
387
|
+
if (isEditingColumnName) {
|
388
|
+
columnNameInputRef.current?.focus();
|
389
|
+
}
|
390
|
+
}, [isEditingColumnName, columnNameInputRef]);
|
381
391
|
|
382
392
|
// aggregation
|
383
393
|
const aggregateColumnState = tdsState.aggregationState.columns.find(
|
@@ -742,29 +752,60 @@ const QueryBuilderProjectionColumnEditor = observer(
|
|
742
752
|
dragSourceConnector={dragHandleRef}
|
743
753
|
className="query-builder__projection__column__drag-handle__container"
|
744
754
|
/>
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
755
|
+
{projectionColumnState instanceof
|
756
|
+
QueryBuilderSimpleProjectionColumnState &&
|
757
|
+
(isEditingColumnName ? (
|
758
|
+
<div className="query-builder__projection__column__name">
|
759
|
+
<InputWithInlineValidation
|
760
|
+
className="query-builder__projection__column__name__input input-group__input"
|
761
|
+
spellCheck={false}
|
762
|
+
value={projectionColumnState.columnName}
|
763
|
+
onChange={changeColumnName}
|
764
|
+
onKeyDown={(
|
765
|
+
event: React.KeyboardEvent<HTMLInputElement>,
|
766
|
+
) => {
|
767
|
+
if (event.key === 'Enter') {
|
768
|
+
setIsEditingColumnName(false);
|
769
|
+
}
|
770
|
+
}}
|
771
|
+
onBlur={() => {
|
772
|
+
setIsEditingColumnName(false);
|
773
|
+
}}
|
774
|
+
error={
|
775
|
+
isDuplicatedColumnName ? 'Duplicated column' : undefined
|
776
|
+
}
|
777
|
+
ref={columnNameInputRef}
|
778
|
+
/>
|
779
|
+
</div>
|
780
|
+
) : (
|
781
|
+
<div className="query-builder__projection__column__value">
|
782
|
+
<QueryBuilderSimpleProjectionColumnEditor
|
783
|
+
projectionColumnState={projectionColumnState}
|
784
|
+
setIsEditingColumnName={setIsEditingColumnName}
|
785
|
+
/>
|
786
|
+
</div>
|
787
|
+
))}
|
788
|
+
{projectionColumnState instanceof
|
789
|
+
QueryBuilderDerivationProjectionColumnState && (
|
790
|
+
<>
|
791
|
+
<div className="query-builder__projection__column__name query-builder__projection__column__name__derivation">
|
792
|
+
<InputWithInlineValidation
|
793
|
+
className="query-builder__projection__column__name__input input-group__input"
|
794
|
+
spellCheck={false}
|
795
|
+
value={projectionColumnState.columnName}
|
796
|
+
onChange={changeColumnName}
|
797
|
+
error={
|
798
|
+
isDuplicatedColumnName ? 'Duplicated column' : undefined
|
799
|
+
}
|
800
|
+
/>
|
801
|
+
</div>
|
802
|
+
<div className="query-builder__projection__column__value">
|
803
|
+
<QueryBuilderDerivationProjectionColumnEditor
|
804
|
+
projectionColumnState={projectionColumnState}
|
805
|
+
/>
|
806
|
+
</div>
|
807
|
+
</>
|
808
|
+
)}
|
768
809
|
<div className="query-builder__projection__column__aggregate">
|
769
810
|
<div className="query-builder__projection__column__aggregate__operator">
|
770
811
|
{aggregateColumnState && (
|
@@ -14,7 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
17
|
+
import {
|
18
|
+
ShareBoxIcon,
|
19
|
+
type TooltipPlacement,
|
20
|
+
Tooltip,
|
21
|
+
} from '@finos/legend-art';
|
18
22
|
import {
|
19
23
|
type AbstractProperty,
|
20
24
|
type Type,
|
@@ -25,6 +29,7 @@ import {
|
|
25
29
|
PURE_DOC_TAG,
|
26
30
|
} from '@finos/legend-graph';
|
27
31
|
import { useState } from 'react';
|
32
|
+
import type { QueryBuilderExplorerState } from '../../stores/explorer/QueryBuilderExplorerState.js';
|
28
33
|
|
29
34
|
export const QueryBuilderTaggedValueInfoTooltip: React.FC<{
|
30
35
|
taggedValues: TaggedValue[];
|
@@ -112,14 +117,25 @@ export const QueryBuilderTaggedValueInfoTooltip: React.FC<{
|
|
112
117
|
};
|
113
118
|
|
114
119
|
export const QueryBuilderPropertyInfoTooltip: React.FC<{
|
120
|
+
title: string;
|
115
121
|
property: AbstractProperty;
|
116
122
|
path: string;
|
117
123
|
isMapped: boolean;
|
118
124
|
children: React.ReactElement;
|
119
125
|
placement?: TooltipPlacement | undefined;
|
120
126
|
type?: Type | undefined;
|
127
|
+
explorerState?: QueryBuilderExplorerState | undefined;
|
121
128
|
}> = (props) => {
|
122
|
-
const {
|
129
|
+
const {
|
130
|
+
title,
|
131
|
+
property,
|
132
|
+
path,
|
133
|
+
isMapped,
|
134
|
+
children,
|
135
|
+
placement,
|
136
|
+
type,
|
137
|
+
explorerState,
|
138
|
+
} = props;
|
123
139
|
|
124
140
|
return (
|
125
141
|
<Tooltip
|
@@ -138,6 +154,7 @@ export const QueryBuilderPropertyInfoTooltip: React.FC<{
|
|
138
154
|
}}
|
139
155
|
title={
|
140
156
|
<div className="query-builder__tooltip__content">
|
157
|
+
<div className="query-builder__tooltip__header">{title}</div>
|
141
158
|
<div className="query-builder__tooltip__item">
|
142
159
|
<div className="query-builder__tooltip__item__label">Type</div>
|
143
160
|
<div className="query-builder__tooltip__item__value">
|
@@ -147,6 +164,16 @@ export const QueryBuilderPropertyInfoTooltip: React.FC<{
|
|
147
164
|
<div className="query-builder__tooltip__item">
|
148
165
|
<div className="query-builder__tooltip__item__label">Path</div>
|
149
166
|
<div className="query-builder__tooltip__item__value">{path}</div>
|
167
|
+
{explorerState && (
|
168
|
+
<div className="query-builder__tooltip__item__action">
|
169
|
+
<button
|
170
|
+
onClick={() => explorerState.highlightTreeNode(path)}
|
171
|
+
title="Show in tree"
|
172
|
+
>
|
173
|
+
<ShareBoxIcon color="white" />
|
174
|
+
</button>
|
175
|
+
</div>
|
176
|
+
)}
|
150
177
|
</div>
|
151
178
|
<div className="query-builder__tooltip__item">
|
152
179
|
<div className="query-builder__tooltip__item__label">
|
@@ -0,0 +1,129 @@
|
|
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 { type RawLambda } from '@finos/legend-graph';
|
18
|
+
import {
|
19
|
+
ActionState,
|
20
|
+
LogEvent,
|
21
|
+
assertErrorThrown,
|
22
|
+
guaranteeNonNullable,
|
23
|
+
} from '@finos/legend-shared';
|
24
|
+
import { makeObservable, observable, computed, action } from 'mobx';
|
25
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
26
|
+
import { QUERY_BUILDER_EVENT } from '../__lib__/QueryBuilderEvent.js';
|
27
|
+
|
28
|
+
export class QueryBuilderChangeHistoryState {
|
29
|
+
readonly queryBuilderState: QueryBuilderState;
|
30
|
+
readonly initState = ActionState.create();
|
31
|
+
|
32
|
+
querySnapshotBuffer: RawLambda[] = [];
|
33
|
+
currentQuery: RawLambda | undefined;
|
34
|
+
pointer = -1;
|
35
|
+
bufferSize = 10;
|
36
|
+
|
37
|
+
constructor(queryBuilderState: QueryBuilderState) {
|
38
|
+
makeObservable(this, {
|
39
|
+
currentQuery: observable,
|
40
|
+
pointer: observable,
|
41
|
+
querySnapshotBuffer: observable,
|
42
|
+
initialize: action,
|
43
|
+
undo: action,
|
44
|
+
redo: action,
|
45
|
+
setCurrentQuery: action,
|
46
|
+
cacheNewQuery: action,
|
47
|
+
canRedo: computed,
|
48
|
+
canUndo: computed,
|
49
|
+
});
|
50
|
+
|
51
|
+
this.queryBuilderState = queryBuilderState;
|
52
|
+
}
|
53
|
+
|
54
|
+
get canRedo(): boolean {
|
55
|
+
return this.pointer < this.querySnapshotBuffer.length - 1;
|
56
|
+
}
|
57
|
+
|
58
|
+
get canUndo(): boolean {
|
59
|
+
return this.pointer > 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
redo(): void {
|
63
|
+
if (this.canRedo) {
|
64
|
+
this.pointer = this.pointer + 1;
|
65
|
+
const query = this.querySnapshotBuffer[this.pointer];
|
66
|
+
this.setCurrentQuery(query);
|
67
|
+
this.queryBuilderState.rebuildWithQuery(guaranteeNonNullable(query), {
|
68
|
+
preserveParameterValues: true,
|
69
|
+
preserveResult: true,
|
70
|
+
});
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
undo(): void {
|
75
|
+
if (this.canUndo) {
|
76
|
+
this.pointer = this.pointer - 1;
|
77
|
+
const query = this.querySnapshotBuffer[this.pointer];
|
78
|
+
this.setCurrentQuery(query);
|
79
|
+
this.queryBuilderState.rebuildWithQuery(guaranteeNonNullable(query), {
|
80
|
+
preserveParameterValues: true,
|
81
|
+
preserveResult: true,
|
82
|
+
});
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
setCurrentQuery(query: RawLambda | undefined): void {
|
87
|
+
this.currentQuery = query;
|
88
|
+
}
|
89
|
+
|
90
|
+
initialize(initialQuery: RawLambda): void {
|
91
|
+
if (this.queryBuilderState.isQuerySupported) {
|
92
|
+
this.initState.inProgress();
|
93
|
+
this.currentQuery = initialQuery;
|
94
|
+
this.querySnapshotBuffer.push(initialQuery);
|
95
|
+
this.pointer = this.pointer + 1;
|
96
|
+
this.initState.complete();
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
cacheNewQuery(query: RawLambda): void {
|
101
|
+
try {
|
102
|
+
if (this.queryBuilderState.isQuerySupported) {
|
103
|
+
if (query.hashCode !== this.currentQuery?.hashCode) {
|
104
|
+
if (
|
105
|
+
this.querySnapshotBuffer.length === this.bufferSize &&
|
106
|
+
this.pointer === this.querySnapshotBuffer.length - 1
|
107
|
+
) {
|
108
|
+
// only record 10 query snapshots
|
109
|
+
this.querySnapshotBuffer = this.querySnapshotBuffer.slice(1);
|
110
|
+
} else {
|
111
|
+
this.querySnapshotBuffer = this.querySnapshotBuffer.slice(
|
112
|
+
0,
|
113
|
+
this.pointer + 1,
|
114
|
+
);
|
115
|
+
}
|
116
|
+
this.querySnapshotBuffer.push(query);
|
117
|
+
this.pointer = this.querySnapshotBuffer.length - 1;
|
118
|
+
this.setCurrentQuery(query);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
} catch (error) {
|
122
|
+
assertErrorThrown(error);
|
123
|
+
this.queryBuilderState.applicationStore.logService.error(
|
124
|
+
LogEvent.create(QUERY_BUILDER_EVENT.CHANGE_HISTORY_ERROR),
|
125
|
+
`Can't cache query in query builder change history buffer: ${error.message}`,
|
126
|
+
);
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|