@finos/legend-query-builder 2.1.5 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  2. package/lib/components/QueryBuilderResultPanel.js +12 -12
  3. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  4. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +12 -2
  5. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
  6. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +145 -20
  7. package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
  8. package/lib/index.css +1 -17
  9. package/lib/index.css.map +1 -1
  10. package/lib/package.json +1 -1
  11. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +3 -0
  12. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  13. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +19 -1
  14. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  15. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +11 -11
  16. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
  17. package/package.json +4 -4
  18. package/src/components/QueryBuilderResultPanel.tsx +17 -14
  19. package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +384 -63
  20. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +34 -0
  21. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAmBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAkZxE,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsSjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAmBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAqZxE,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsSjD,CAAC"}
@@ -20,7 +20,7 @@ import { flowResult } from 'mobx';
20
20
  import { InstanceValue, extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, EnumValueInstanceValue, EnumValueExplicitReference, } from '@finos/legend-graph';
21
21
  import { ActionAlertActionType, ActionAlertType, CODE_EDITOR_LANGUAGE, TAB_SIZE, useApplicationStore, } from '@finos/legend-application';
22
22
  import { assertErrorThrown, guaranteeNonNullable, isBoolean, prettyDuration, prettyCONSTName, } from '@finos/legend-shared';
23
- import { forwardRef, useState } from 'react';
23
+ import { forwardRef, useRef } from 'react';
24
24
  import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
25
25
  import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, } from '../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
26
26
  import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, } from '../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
@@ -41,9 +41,9 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
41
41
  const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
42
42
  const postFilterState = tdsState.postFilterState;
43
43
  const projectionColumnState = guaranteeNonNullable(tdsState.projectionColumns
44
- .filter((c) => c.columnName === event?.column.getColId())
44
+ .filter((c) => c.columnName === event.current?.column.getColId())
45
45
  .concat(tdsState.aggregationState.columns
46
- .filter((c) => c.columnName === event?.column.getColId())
46
+ .filter((c) => c.columnName === event.current?.column.getColId())
47
47
  .map((ag) => ag.projectionColumnState))[0]);
48
48
  const getExistingPostFilterNode = (operators) => Array.from(postFilterState.nodes.values())
49
49
  .filter((v) => v instanceof QueryBuilderPostFilterTreeConditionNodeData &&
@@ -55,11 +55,11 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
55
55
  .map((op) => op.getLabel())
56
56
  .includes(n.condition.operator.getLabel()))[0];
57
57
  const updateFilterConditionValue = (conditionValue) => {
58
- if (event?.value !== null) {
58
+ if (event.current?.value !== null) {
59
59
  instanceValue_setValue(conditionValue, conditionValue instanceof EnumValueInstanceValue
60
60
  ? EnumValueExplicitReference.create(guaranteeNonNullable((conditionValue.genericType?.ownerReference
61
- .value).values.filter((v) => v.name === event?.value)[0]))
62
- : event?.value, 0, tdsState.queryBuilderState.observerContext);
61
+ .value).values.filter((v) => v.name === event.current?.value)[0]))
62
+ : event.current?.value, 0, tdsState.queryBuilderState.observerContext);
63
63
  }
64
64
  };
65
65
  const generateNewPostFilterConditionNodeData = async (operator) => {
@@ -90,7 +90,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
90
90
  const doesValueAlreadyExist = conditionState.value instanceof InstanceValue &&
91
91
  (conditionState.value instanceof EnumValueInstanceValue
92
92
  ? conditionState.value.values.map((ef) => ef.value.name)
93
- : conditionState.value.values).includes(event?.value);
93
+ : conditionState.value.values).includes(event.current?.value);
94
94
  if (!doesValueAlreadyExist) {
95
95
  const currentValueSpecificaton = conditionState.value;
96
96
  const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
@@ -107,7 +107,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
107
107
  ? v.values.map((ef) => ef.value.name)
108
108
  : v.values)
109
109
  .flat()
110
- .includes(event?.value);
110
+ .includes(event.current?.value);
111
111
  if (!doesValueAlreadyExist) {
112
112
  const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
113
113
  updateFilterConditionValue(newValueSpecification);
@@ -127,8 +127,8 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
127
127
  ? generateNewPostFilterConditionNodeData(isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).catch(applicationStore.alertUnhandledError)
128
128
  : updateExistingPostFilterConditionNodeData(existingPostFilterNode, isFilterBy);
129
129
  };
130
- const handleCopyCellValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(event?.value));
131
- const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(Object.values(event?.data).toString()));
130
+ const handleCopyCellValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(event.current?.value));
131
+ const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(Object.values(event.current?.data).toString()));
132
132
  return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { onClick: () => {
133
133
  filterByOrOut(true);
134
134
  }, children: "Filter By" }), _jsx(MenuContentItem, { onClick: () => {
@@ -138,7 +138,7 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
138
138
  const QueryBuilderGridResult = observer((props) => {
139
139
  const { executionResult, queryBuilderState } = props;
140
140
  const fetchStructureImplementation = queryBuilderState.fetchStructureState.implementation;
141
- const [cellDoubleClickedEvent, setCellDoubleClickedEvent] = useState(null);
141
+ const cellDoubleClickedEvent = useRef(null);
142
142
  const columns = executionResult.result.columns;
143
143
  const rowData = executionResult.result.rows.map((_row, rowIdx) => {
144
144
  const row = {};
@@ -169,7 +169,7 @@ const QueryBuilderGridResult = observer((props) => {
169
169
  // in. hence why we set the cell every time we mouse over
170
170
  // rather than making user click multiple times.
171
171
  onCellMouseOver: (event) => {
172
- setCellDoubleClickedEvent(event);
172
+ cellDoubleClickedEvent.current = event;
173
173
  }, suppressFieldDotNotation: true, columnDefs: columns.map((colName) => ({
174
174
  minWidth: 50,
175
175
  sortable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,QAAQ,EACR,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EAET,cAAc,EACd,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EACL,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,+EAA+E,CAAC;AACvF,OAAO,EAEL,wBAAwB,EACxB,2CAA2C,GAC5C,MAAM,0EAA0E,CAAC;AAClF,OAAO,EACL,oCAAoC,E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EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,IACX,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,QAAQ,EACR,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KAAC,WAAW,cACT,MAAM,CAAC,MAAM,CACZ,4BAA4B,CAAC,uBAAuB,CACrD,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAChB,KAAC,eAAe,IAEd,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAE,GAAS,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,YAEzC,eAAe,CAAC,MAAM,CAAC,IAJnB,MAAM,CAKK,CACnB,CAAC,GACU,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,IACX,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -15,10 +15,20 @@
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
17
  import { type QueryBuilderGraphFetchTreeData } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
18
- import { GraphFetchPureSerializationState, type QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
18
+ import { type GraphFetchSerializationState, GraphFetchExternalFormatSerializationState, type QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
19
+ import { Binding } from '@finos/legend-graph';
20
+ export declare const QueryBuilderGraphFetchExternalConfig: ((props: {
21
+ graphFetchState: QueryBuilderGraphFetchTreeState;
22
+ serializationState: GraphFetchExternalFormatSerializationState;
23
+ serializationTreeData: QueryBuilderGraphFetchTreeData;
24
+ bindings: Binding[];
25
+ isReadOnly: boolean;
26
+ }) => JSX.Element) & {
27
+ displayName: string;
28
+ };
19
29
  export declare const QueryBuilderGraphFetchTreeExplorer: ((props: {
20
30
  graphFetchState: QueryBuilderGraphFetchTreeState;
21
- pureSerializationState: GraphFetchPureSerializationState;
31
+ serializationState: GraphFetchSerializationState;
22
32
  treeData: QueryBuilderGraphFetchTreeData;
23
33
  updateTreeData: (data: QueryBuilderGraphFetchTreeData) => void;
24
34
  isReadOnly: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgCH,OAAO,EACL,KAAK,8BAA8B,EAIpC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,gCAAgC,EAEhC,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAqOrF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;4BACxB,gCAAgC;cAC9C,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CAsGtB,CAAC;AA2EF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAqCjE,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA4CH,OAAO,EACL,KAAK,8BAA8B,EAIpC,MAAM,4EAA4E,CAAC;AAKpF,OAAO,EACL,KAAK,4BAA4B,EACjC,0CAA0C,EAI1C,KAAK,+BAA+B,EACrC,MAAM,6EAA6E,CAAC;AAGrF,OAAO,EAEL,OAAO,EAGR,MAAM,qBAAqB,CAAC;AAiQ7B,eAAO,MAAM,oCAAoC,WACvC;IACN,eAAe,EAAE,+BAA+B,CAAC;IACjD,kBAAkB,EAAE,0CAA0C,CAAC;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoFF,CAAC;AAEF,eAAO,MAAM,kCAAkC;qBAE1B,+BAA+B;wBAC5B,4BAA4B;cACtC,8BAA8B;2BACjB,8BAA8B,KAAK,IAAI;gBAClD,OAAO;;;CA2QtB,CAAC;AAoFF,eAAO,MAAM,2BAA2B,WAC9B;IAAE,mBAAmB,EAAE,+BAA+B,CAAA;CAAE;;CAwCjE,CAAC"}
@@ -17,14 +17,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  import { useCallback } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { useDrop } from 'react-dnd';
20
- import { clsx, TreeView, BlankPanelPlaceholder, ChevronDownIcon, ChevronRightIcon, TimesIcon, CheckSquareIcon, SquareIcon, InfoCircleIcon, PanelDropZone, BlankPanelContent, Dialog, ModalHeader, Modal, ModalBody, Panel, PanelForm, PanelFormTextField, PanelFormBooleanField, ModalFooterButton, ModalFooter, SerializeIcon, } from '@finos/legend-art';
20
+ import { clsx, TreeView, BlankPanelPlaceholder, ChevronDownIcon, ChevronRightIcon, TimesIcon, CheckSquareIcon, SquareIcon, InfoCircleIcon, PanelDropZone, BlankPanelContent, Dialog, ModalHeader, Modal, ModalBody, Panel, PanelForm, PanelFormTextField, PanelFormBooleanField, ModalFooterButton, ModalFooter, SerializeIcon, ResizablePanel, ResizablePanelSplitter, ResizablePanelGroup, BufferIcon, CustomSelectorInput, FolderIcon, } from '@finos/legend-art';
21
21
  import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
22
- import { isNonNullable } from '@finos/legend-shared';
22
+ import { deepClone, filterByType, guaranteeNonNullable, isNonNullable, prettyCONSTName, } from '@finos/legend-shared';
23
23
  import { removeNodeRecursively, isGraphFetchTreeDataEmpty, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js';
24
24
  import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, } from '../../stores/explorer/QueryBuilderExplorerState.js';
25
- import { GraphFetchPureSerializationState, PureSerializationConfig, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
25
+ import { GraphFetchExternalFormatSerializationState, GraphFetchPureSerializationState, PureSerializationConfig, SERIALIZATION_TYPE, } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
26
26
  import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
27
27
  import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
28
+ import { Binding, Package, getDescendantsOfPackage, } from '@finos/legend-graph';
29
+ import { ActionAlertActionType, ActionAlertType, buildElementOption, } from '@finos/legend-application';
30
+ const getBindingFormatter = (props) => function BindingLabel(option) {
31
+ const className = props.darkMode
32
+ ? 'packageable-element-option-label--dark'
33
+ : 'packageable-element-option-label';
34
+ return (_jsxs("div", { className: className, children: [_jsx("div", { className: `${className}__name`, children: option.label }), option.value.package && (_jsx("div", { className: `${className}__tag`, children: option.value.path })), _jsx("div", { className: `${className}__tag`, children: option.value.contentType })] }));
35
+ };
28
36
  const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
29
37
  const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
30
38
  const { removeNode } = innerProps;
@@ -65,8 +73,59 @@ const PureSerializationConfigModal = observer((props) => {
65
73
  ? `Type key name can't be empty`
66
74
  : undefined }), _jsx(PanelFormBooleanField, { name: "Include Type", value: config.includeType, isReadOnly: false, update: (value) => config.setIncludeType(Boolean(value)) }), _jsx(PanelFormBooleanField, { name: "Include Enum Type", value: config.includeEnumType, isReadOnly: false, update: (value) => config.setInclueEnumType(Boolean(value)) }), _jsx(PanelFormBooleanField, { name: "Remove Properties With Null Values", value: config.removePropertiesWithNullValues, isReadOnly: false, update: (value) => config.setRemovePropertiesWithNullValues(Boolean(value)) }), _jsx(PanelFormBooleanField, { name: "Remove properties with empty sets", value: config.removePropertiesWithEmptySets, isReadOnly: false, update: (value) => config.setRemovePropertiesWithEmptySets(Boolean(value)) }), _jsx(PanelFormBooleanField, { name: "Use Fully Qualified Type Path", value: config.fullyQualifiedTypePath, isReadOnly: false, update: (value) => config.setFullyQualifiedTypePath(Boolean(value)) }), _jsx(PanelFormBooleanField, { name: "Include Object Reference", value: config.includeObjectReference, isReadOnly: false, update: (value) => config.setIncludeObjectReference(Boolean(value)) })] }) }) }), _jsxs(ModalFooter, { children: [!toAdd && (_jsx(ModalFooterButton, { className: "btn--caution", text: "Remove Config", onClick: removeConfig })), _jsx("button", { className: "btn modal__footer__close-btn btn--dark", onClick: handleAction, children: toAdd ? 'Add Config' : 'Close' })] })] }) }));
67
75
  });
76
+ export const QueryBuilderGraphFetchExternalConfig = observer((props) => {
77
+ const { graphFetchState, serializationState, serializationTreeData, bindings, isReadOnly, } = props;
78
+ const bindingOptions = bindings.map((result) => buildElementOption(result));
79
+ const selectedBinding = {
80
+ value: serializationState.targetBinding,
81
+ label: serializationState.targetBinding.name,
82
+ };
83
+ const onBindingChange = (val) => {
84
+ if (val !== null) {
85
+ serializationState.setBinding(val.value);
86
+ serializationState.setGraphFetchTree(serializationTreeData);
87
+ }
88
+ };
89
+ const onNodeSelect = (node) => {
90
+ if (node.childrenIds.length) {
91
+ node.isOpen = !node.isOpen;
92
+ }
93
+ };
94
+ const getChildNodes = (node) => node.childrenIds
95
+ .map((id) => serializationTreeData.nodes.get(id))
96
+ .filter(isNonNullable);
97
+ const removeNode = (node) => {
98
+ if (serializationTreeData.nodes.size === 1) {
99
+ graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning('externalize serialization tree can not be empty');
100
+ }
101
+ else {
102
+ removeNodeRecursively(serializationTreeData, node);
103
+ serializationState.setGraphFetchTree({ ...serializationTreeData });
104
+ }
105
+ };
106
+ return (_jsx("div", { className: "query-builder-graph-fetch-external-format", children: _jsxs("div", { className: "service-execution-editor__configuration__items", children: [_jsxs("div", { className: "service-execution-editor__configuration__item", children: [_jsx("div", { className: "btn--sm service-execution-editor__configuration__item__label", children: _jsx(BufferIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown service-execution-editor__configuration__item__dropdown", disabled: isReadOnly, options: bindingOptions, onChange: onBindingChange, value: selectedBinding, formatOptionLabel: getBindingFormatter({
107
+ darkMode: true,
108
+ }), darkMode: true })] }), _jsxs("div", { className: "service-execution-editor__configuration__item", children: [_jsx("div", { className: "btn--sm service-execution-editor__configuration__item__label", children: _jsx(FolderIcon, {}) }), _jsx(TreeView, { components: {
109
+ TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
110
+ }, className: "query-builder-graph-fetch-tree__container__tree", treeData: serializationTreeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
111
+ isReadOnly,
112
+ removeNode,
113
+ } })] })] }) }));
114
+ });
68
115
  export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
69
- const { graphFetchState, pureSerializationState, treeData, updateTreeData, isReadOnly, } = props;
116
+ const { graphFetchState, serializationState, treeData, updateTreeData, isReadOnly, } = props;
117
+ // Retrieve all bindings whose packageableElementIncludes contain the root class of main graph fetch tree
118
+ const compatibleBindings = graphFetchState.queryBuilderState.graphManagerState.usableStores
119
+ .filter(filterByType(Binding))
120
+ .filter((b) => {
121
+ const elements = b.modelUnit.packageableElementIncludes.map((p) => p.value);
122
+ return elements
123
+ .filter(filterByType(Package))
124
+ .map((p) => Array.from(getDescendantsOfPackage(p)))
125
+ .flat()
126
+ .concat(elements.filter((e) => !(e instanceof Package)))
127
+ .includes(treeData.tree.class.value);
128
+ });
70
129
  const onNodeSelect = (node) => {
71
130
  if (node.childrenIds.length) {
72
131
  node.isOpen = !node.isOpen;
@@ -78,25 +137,82 @@ export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
78
137
  .filter(isNonNullable);
79
138
  const removeNode = (node) => {
80
139
  removeNodeRecursively(treeData, node);
140
+ if (treeData.nodes.size === 0) {
141
+ graphFetchState.setSerializationState(new GraphFetchPureSerializationState(graphFetchState));
142
+ }
143
+ // Remove node from external format serialization tree as well
144
+ if (serializationState instanceof
145
+ GraphFetchExternalFormatSerializationState &&
146
+ serializationState.treeData &&
147
+ serializationState.treeData.nodes.get(node.id)) {
148
+ removeNodeRecursively(serializationState.treeData, guaranteeNonNullable(serializationState.treeData.nodes.get(node.id)));
149
+ updateTreeData({ ...serializationState.treeData });
150
+ }
81
151
  updateTreeData({ ...treeData });
82
152
  };
83
153
  const toggleChecked = () => graphFetchState.setChecked(!graphFetchState.isChecked);
84
154
  const openConfigModal = () => {
85
- pureSerializationState.setConfigModal(true);
155
+ if (serializationState instanceof GraphFetchPureSerializationState) {
156
+ serializationState.setConfigModal(true);
157
+ }
86
158
  };
87
- return (_jsxs("div", { className: "query-builder-graph-fetch-tree", children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__toolbar", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__actions", children: _jsxs("button", { className: "query-builder-graph-fetch-tree__actions__action-btn__label", onClick: openConfigModal, title: `${pureSerializationState.config
88
- ? 'Edit pure serialization config'
89
- : 'Add pure serialization config'}`, tabIndex: -1, children: [_jsx(SerializeIcon, { className: "query-builder-graph-fetch-tree__actions__action-btn__label__icon" }), _jsx("div", { className: "query-builder-graph-fetch-tree__actions__action-btn__label__title", children: pureSerializationState.config ? 'Edit Config' : 'Add Config' })] }) }), _jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleChecked, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
90
- 'panel__content__form__section__toggler__btn--toggled': graphFetchState.isChecked,
91
- }), children: graphFetchState.isChecked ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Check graph fetch" }), _jsx("div", { className: "query-builder-graph-fetch-tree__toolbar__hint-icon", children: _jsx(InfoCircleIcon, { title: "With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" }) })] })] }), _jsxs("div", { className: "query-builder-graph-fetch-tree__container", children: [pureSerializationState.configModal && (_jsx(PureSerializationConfigModal, { pureSerializationState: pureSerializationState, graphFetchState: graphFetchState, config: pureSerializationState.config ?? new PureSerializationConfig() })), _jsx(TreeView, { components: {
92
- TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
93
- }, treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
94
- isReadOnly,
95
- removeNode,
96
- } })] })] }));
159
+ const onChangeSerializationType = (implementationType) => () => {
160
+ if (implementationType !== serializationState.getLabel()) {
161
+ graphFetchState.queryBuilderState.applicationStore.alertService.setActionAlertInfo({
162
+ message: 'Current graph-fetch will be lost when switching to a different serialization mode. Do you still want to proceed?',
163
+ type: ActionAlertType.CAUTION,
164
+ actions: [
165
+ {
166
+ label: 'Proceed',
167
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
168
+ handler: graphFetchState.queryBuilderState.applicationStore.guardUnhandledError(async () => {
169
+ switch (implementationType) {
170
+ case SERIALIZATION_TYPE.EXTERNAL_FORMAT:
171
+ if (compatibleBindings.length > 0 &&
172
+ compatibleBindings[0]) {
173
+ const externalizeState = new GraphFetchExternalFormatSerializationState(graphFetchState, compatibleBindings[0], undefined);
174
+ graphFetchState.setGraphFetchTree(treeData);
175
+ externalizeState.setGraphFetchTree(deepClone(treeData));
176
+ graphFetchState.setSerializationState(externalizeState);
177
+ }
178
+ else {
179
+ graphFetchState.queryBuilderState.applicationStore.notificationService.notifyWarning(`Can't switch to external format serialization: No compatible bindings found`);
180
+ }
181
+ break;
182
+ case SERIALIZATION_TYPE.PURE:
183
+ default:
184
+ graphFetchState.setSerializationState(new GraphFetchPureSerializationState(graphFetchState));
185
+ break;
186
+ }
187
+ }),
188
+ },
189
+ {
190
+ label: 'Cancel',
191
+ type: ActionAlertActionType.PROCEED,
192
+ default: true,
193
+ },
194
+ ],
195
+ });
196
+ }
197
+ };
198
+ return (_jsxs("div", { className: "query-builder-graph-fetch-tree", children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__toolbar", children: [_jsx("div", { className: "query-builder__fetch__structure__modes", children: Object.values(SERIALIZATION_TYPE).map((type) => (_jsx("button", { onClick: onChangeSerializationType(type), className: clsx('query-builder__fetch__structure__mode', {
199
+ 'query-builder__fetch__structure__mode--selected': type === serializationState.getLabel(),
200
+ }), children: prettyCONSTName(type) }, type))) }), _jsxs("div", { className: "query-builder-graph-fetch-tree__actions", children: [serializationState instanceof GraphFetchPureSerializationState && (_jsx("div", { className: "query-builder-graph-fetch-tree__actions__action", children: _jsxs("button", { className: "query-builder-graph-fetch-tree__actions__action-btn__label", onClick: openConfigModal, title: `${serializationState.config
201
+ ? 'Edit pure serialization config'
202
+ : 'Add pure serialization config'}`, tabIndex: -1, children: [_jsx(SerializeIcon, { className: "query-builder-graph-fetch-tree__actions__action-btn__label__icon" }), _jsx("div", { className: "query-builder-graph-fetch-tree__actions__action-btn__label__title", children: serializationState.config ? 'Edit Config' : 'Add Config' })] }) })), _jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleChecked, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
203
+ 'panel__content__form__section__toggler__btn--toggled': graphFetchState.isChecked,
204
+ }), children: graphFetchState.isChecked ? (_jsx(CheckSquareIcon, {})) : (_jsx(SquareIcon, {})) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Check graph fetch" }), _jsx("div", { className: "query-builder-graph-fetch-tree__toolbar__hint-icon", children: _jsx(InfoCircleIcon, { title: "With this enabled, while executing, violations of constraints will reported as part of the result, rather than causing a failure" }) })] })] })] }), _jsxs("div", { className: "query-builder-graph-fetch-tree__container", children: [serializationState instanceof GraphFetchPureSerializationState &&
205
+ serializationState.configModal && (_jsx(PureSerializationConfigModal, { pureSerializationState: serializationState, graphFetchState: graphFetchState, config: serializationState.config ?? new PureSerializationConfig() })), _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { children: _jsxs("div", { className: "query-builder-graph-fetch-external-format__config-group", children: [_jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__header", children: _jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__header__title", children: "Graph Fetch Tree" }) }), _jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__content", children: _jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__item", children: _jsx(TreeView, { components: {
206
+ TreeNodeContainer: QueryBuilderGraphFetchTreeNodeContainer,
207
+ }, className: "query-builder-graph-fetch-tree__container__tree", treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
208
+ isReadOnly,
209
+ removeNode,
210
+ } }) }) })] }) }), _jsx(ResizablePanelSplitter, {}), serializationState instanceof
211
+ GraphFetchExternalFormatSerializationState &&
212
+ serializationState.treeData && (_jsx(ResizablePanel, { children: _jsxs("div", { className: "query-builder-graph-fetch-external-format__config-group", children: [_jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__header", children: _jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__header__title", children: "Externalize" }) }), _jsx("div", { className: "query-builder-graph-fetch-external-format__config-group__content", children: _jsx("div", { className: "query-builder-graph-fetch-external-format_config-group__item", children: _jsx(QueryBuilderGraphFetchExternalConfig, { graphFetchState: graphFetchState, serializationState: serializationState, serializationTreeData: serializationState.treeData, bindings: compatibleBindings, isReadOnly: false }) }) })] }) }))] })] })] }));
97
213
  });
98
214
  const QueryBuilderGraphFetchTreePanel = observer((props) => {
99
- const { graphFetchTreeState, pureSerializationState } = props;
215
+ const { graphFetchTreeState, serializationState } = props;
100
216
  const treeData = graphFetchTreeState.treeData;
101
217
  // Deep/Graph Fetch Tree
102
218
  const updateTreeData = (data) => {
@@ -105,7 +221,15 @@ const QueryBuilderGraphFetchTreePanel = observer((props) => {
105
221
  // Drag and Drop
106
222
  const handleDrop = useCallback((item) => {
107
223
  graphFetchTreeState.addProperty(item.node, { refreshTreeData: true });
108
- }, [graphFetchTreeState]);
224
+ // If serializationState is GraphFetchExternalFormatSerializationState, we should add this node to
225
+ // the external format serialization tree as well
226
+ if (serializationState instanceof
227
+ GraphFetchExternalFormatSerializationState) {
228
+ serializationState.addProperty(deepClone(item.node), {
229
+ refreshTreeData: true,
230
+ });
231
+ }
232
+ }, [graphFetchTreeState, serializationState]);
109
233
  const [{ isDragOver }, dropTargetConnector] = useDrop(() => ({
110
234
  accept: [
111
235
  QUERY_BUILDER_EXPLORER_TREE_DND_TYPE.ENUM_PROPERTY,
@@ -120,14 +244,15 @@ const QueryBuilderGraphFetchTreePanel = observer((props) => {
120
244
  isDragOver: monitor.isOver({ shallow: true }),
121
245
  }),
122
246
  }), [handleDrop]);
123
- return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, className: "panel__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, children: [(!treeData || isGraphFetchTreeDataEmpty(treeData)) && (_jsx(BlankPanelPlaceholder, { text: "Add a graph fetch property", tooltipText: "Drag and drop properties here" })), treeData && !isGraphFetchTreeDataEmpty(treeData) && (_jsx(QueryBuilderGraphFetchTreeExplorer, { graphFetchState: graphFetchTreeState, pureSerializationState: pureSerializationState, treeData: treeData, isReadOnly: false, updateTreeData: updateTreeData }))] }) }));
247
+ return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, className: "panel__content", children: _jsxs(PanelDropZone, { isDragOver: isDragOver, dropTargetConnector: dropTargetConnector, children: [(!treeData || isGraphFetchTreeDataEmpty(treeData)) && (_jsx(BlankPanelPlaceholder, { text: "Add a graph fetch property", tooltipText: "Drag and drop properties here" })), treeData && !isGraphFetchTreeDataEmpty(treeData) && (_jsx(QueryBuilderGraphFetchTreeExplorer, { graphFetchState: graphFetchTreeState, serializationState: serializationState, treeData: treeData, isReadOnly: false, updateTreeData: updateTreeData }))] }) }));
124
248
  });
125
249
  export const QueryBuilderGraphFetchPanel = observer((props) => {
126
250
  const { graphFetchTreeState } = props;
127
251
  const serializationState = graphFetchTreeState.serializationState;
128
252
  const handleTextModeClick = () => graphFetchTreeState.queryBuilderState.textEditorState.openModal(QueryBuilderTextEditorMode.TEXT);
129
- if (serializationState instanceof GraphFetchPureSerializationState) {
130
- return (_jsx(QueryBuilderGraphFetchTreePanel, { graphFetchTreeState: graphFetchTreeState, pureSerializationState: serializationState }));
253
+ if (serializationState instanceof GraphFetchPureSerializationState ||
254
+ serializationState instanceof GraphFetchExternalFormatSerializationState) {
255
+ return (_jsx(QueryBuilderGraphFetchTreePanel, { graphFetchTreeState: graphFetchTreeState, serializationState: serializationState }));
131
256
  }
132
257
  return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_GRAPH_FETCH, className: "panel__content", children: _jsx(BlankPanelContent, { children: _jsxs("div", { className: "unsupported-element-editor__main", children: [_jsx("div", { className: "unsupported-element-editor__summary", children: "Unsupported Graph Fetch Serialization Type" }), _jsx("button", { className: "btn--dark unsupported-element-editor__to-text-mode__btn", onClick: handleTextModeClick, children: "Edit in text mode" })] }) }) }));
133
258
  });
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderGraphFetchTreePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAEL,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAGL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAEL,oCAAoC,GACrC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,gCAAgC,EAChC,uBAAuB,GAExB,MAAM,6EAA6E,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,uCAAuC,GAQzC,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC1E,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,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AAQ,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,IAAI,CACnD,KAAC,kCAAkC,IACjC,eAAe,EAAE,mBAAmB,EACpC,sBAAsB,EAAE,sBAAsB,EAC9C,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,cAAc,GAC9B,CACH,IACa,GACZ,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CACjD,CAAC,KAA+D,EAAE,EAAE;IAClE,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;IAClE,MAAM,mBAAmB,GAAG,GAAS,EAAE,CACrC,mBAAmB,CAAC,iBAAiB,CAAC,eAAe,CAAC,SAAS,CAC7D,0BAA0B,CAAC,IAAI,CAChC,CAAC;IACJ,IAAI,kBAAkB,YAAY,gCAAgC,EAAE;QAClE,OAAO,CACL,KAAC,+BAA+B,IAC9B,mBAAmB,EAAE,mBAAmB,EACxC,sBAAsB,EAAE,kBAAkB,GAC1C,CACH,CAAC;KACH;IACD,OAAO,CACL,6BACe,qBAAqB,CAAC,yBAAyB,EAC5D,SAAS,EAAC,gBAAgB,YAE1B,KAAC,iBAAiB,cAChB,eAAK,SAAS,EAAC,kCAAkC,aAC/C,cAAK,SAAS,EAAC,qCAAqC,2DAE9C,EAEN,iBACE,SAAS,EAAC,yDAAyD,EACnE,OAAO,EAAE,mBAAmB,kCAGrB,IACL,GACY,GAChB,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderGraphFetchTreePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ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