@finos/legend-query-builder 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/QueryBuilderEvent.d.ts +7 -7
- package/lib/application/QueryBuilderEvent.d.ts.map +1 -1
- package/lib/application/QueryBuilderEvent.js +7 -7
- package/lib/application/QueryBuilderEvent.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +2 -2
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +3 -2
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +53 -13
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
- package/lib/index.css +17 -1
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/QueryBuilderStateBuilder.d.ts +2 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +8 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +3 -2
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +49 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +126 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +85 -4
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts +3 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +96 -14
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/package.json +13 -13
- package/src/application/QueryBuilderEvent.ts +7 -7
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +2 -2
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +240 -5
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +1 -0
- package/src/stores/QueryBuilderStateBuilder.ts +20 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +2 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +3 -2
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +158 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +258 -4
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +166 -24
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +7 -0
@@ -14,12 +14,12 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
export declare enum QUERY_BUILDER_EVENT {
|
17
|
-
RUN_QUERY__LAUNCH = "
|
18
|
-
GENERATE_EXECUTION_PLAN__LAUNCH = "
|
19
|
-
DEBUG_EXECUTION_PLAN__LAUNCH = "
|
20
|
-
RUN_QUERY__SUCCESS = "
|
21
|
-
GENERATE_EXECUTION_PLAN__SUCCESS = "
|
22
|
-
DEBUG_EXECUTION_PLAN__SUCCESS = "
|
23
|
-
BUILD_EXECUTION_PLAN__SUCCESS = "
|
17
|
+
RUN_QUERY__LAUNCH = "query-builder.run-query.launch",
|
18
|
+
GENERATE_EXECUTION_PLAN__LAUNCH = "query-builder.generate-plan.launch",
|
19
|
+
DEBUG_EXECUTION_PLAN__LAUNCH = "query-builder.debug-plan.launch",
|
20
|
+
RUN_QUERY__SUCCESS = "query-builder.run-query.success",
|
21
|
+
GENERATE_EXECUTION_PLAN__SUCCESS = "query-builder.generate-plan.success",
|
22
|
+
DEBUG_EXECUTION_PLAN__SUCCESS = "query-builder.debug-plan.success",
|
23
|
+
BUILD_EXECUTION_PLAN__SUCCESS = "query-builder.build-plan.success"
|
24
24
|
}
|
25
25
|
//# sourceMappingURL=QueryBuilderEvent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/application/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,
|
1
|
+
{"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/application/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAEhE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;CACnE"}
|
@@ -15,12 +15,12 @@
|
|
15
15
|
*/
|
16
16
|
export var QUERY_BUILDER_EVENT;
|
17
17
|
(function (QUERY_BUILDER_EVENT) {
|
18
|
-
QUERY_BUILDER_EVENT["RUN_QUERY__LAUNCH"] = "
|
19
|
-
QUERY_BUILDER_EVENT["GENERATE_EXECUTION_PLAN__LAUNCH"] = "
|
20
|
-
QUERY_BUILDER_EVENT["DEBUG_EXECUTION_PLAN__LAUNCH"] = "
|
21
|
-
QUERY_BUILDER_EVENT["RUN_QUERY__SUCCESS"] = "
|
22
|
-
QUERY_BUILDER_EVENT["GENERATE_EXECUTION_PLAN__SUCCESS"] = "
|
23
|
-
QUERY_BUILDER_EVENT["DEBUG_EXECUTION_PLAN__SUCCESS"] = "
|
24
|
-
QUERY_BUILDER_EVENT["BUILD_EXECUTION_PLAN__SUCCESS"] = "
|
18
|
+
QUERY_BUILDER_EVENT["RUN_QUERY__LAUNCH"] = "query-builder.run-query.launch";
|
19
|
+
QUERY_BUILDER_EVENT["GENERATE_EXECUTION_PLAN__LAUNCH"] = "query-builder.generate-plan.launch";
|
20
|
+
QUERY_BUILDER_EVENT["DEBUG_EXECUTION_PLAN__LAUNCH"] = "query-builder.debug-plan.launch";
|
21
|
+
QUERY_BUILDER_EVENT["RUN_QUERY__SUCCESS"] = "query-builder.run-query.success";
|
22
|
+
QUERY_BUILDER_EVENT["GENERATE_EXECUTION_PLAN__SUCCESS"] = "query-builder.generate-plan.success";
|
23
|
+
QUERY_BUILDER_EVENT["DEBUG_EXECUTION_PLAN__SUCCESS"] = "query-builder.debug-plan.success";
|
24
|
+
QUERY_BUILDER_EVENT["BUILD_EXECUTION_PLAN__SUCCESS"] = "query-builder.build-plan.success";
|
25
25
|
})(QUERY_BUILDER_EVENT = QUERY_BUILDER_EVENT || (QUERY_BUILDER_EVENT = {}));
|
26
26
|
//# sourceMappingURL=QueryBuilderEvent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/application/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,
|
1
|
+
{"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/application/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAEhE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;AACpE,CAAC,EATW,mBAAmB,GAAnB,mBAAmB,KAAnB,mBAAmB,QAS9B"}
|
@@ -18,7 +18,7 @@ import { observer } from 'mobx-react-lite';
|
|
18
18
|
import { clsx, BlankPanelContent, Panel, PanelContent, } from '@finos/legend-art';
|
19
19
|
import { prettyCONSTName } from '@finos/legend-shared';
|
20
20
|
import { QueryBuilderTDSPanel } from './QueryBuilderTDSPanel.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderGraphFetchPanel } from './QueryBuilderGraphFetchTreePanel.js';
|
22
22
|
import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
23
23
|
import { QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
24
24
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
@@ -31,7 +31,7 @@ const QueryBuilderFetchStructureEditor = observer((props) => {
|
|
31
31
|
return _jsx(QueryBuilderTDSPanel, { tdsState: fetchStructureImplementation });
|
32
32
|
}
|
33
33
|
else if (fetchStructureImplementation instanceof QueryBuilderGraphFetchTreeState) {
|
34
|
-
return (_jsx(
|
34
|
+
return (_jsx(QueryBuilderGraphFetchPanel, { graphFetchTreeState: fetchStructureImplementation }));
|
35
35
|
}
|
36
36
|
return (_jsx(PanelContent, { children: _jsx(BlankPanelContent, { children: _jsx("div", { className: "query-builder__unsupported-view__main", children: _jsx("div", { className: "query-builder__unsupported-view__summary", children: "Unsupported fetch structure" }) }) }) }));
|
37
37
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,KAAK,EACL,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,KAAK,EACL,YAAY,G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C,CAAC,kBAAkD,EAAgB,EAAE,CACrE,GAAS,EAAE;QACT,IAAI,mBAAmB,CAAC,cAAc,CAAC,IAAI,KAAK,kBAAkB,EAAE;YAClE,mBAAmB,CAAC,cAAc,CAAC,iCAAiC,CAClE,GAAG,EAAE;gBACH,mBAAmB,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;YAC/D,CAAC,CACF,CAAC;SACH;IACH,CAAC,CAAC;IAEJ,OAAO,CACL,MAAC,KAAK,eACJ,eAAK,SAAS,EAAC,eAAe,aAC5B,eAAK,SAAS,EAAC,sBAAsB,aACnC,cAAK,SAAS,EAAC,6BAA6B,gCAAsB,EAClE,KAAC,gCAAgC,IAC/B,MAAM,EAAE,mBAAmB,CAAC,cAAc,CAAC,gBAAgB,GAC3D,IACE,EACN,cAAK,SAAS,EAAC,wBAAwB,YACrC,cAAK,SAAS,EAAC,wCAAwC,YACpD,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC3D,iBACE,OAAO,EAAE,oCAAoC,CAAC,IAAI,CAAC,EACnD,SAAS,EAAE,IAAI,CAAC,uCAAuC,EAAE;oCACvD,iDAAiD,EAC/C,IAAI,KAAK,mBAAmB,CAAC,cAAc,CAAC,IAAI;iCACnD,CAAC,YAGD,eAAe,CAAC,IAAI,CAAC,IAFjB,IAAI,CAGF,CACV,CAAC,GACE,GACF,IACF,EACN,KAAC,gCAAgC,IAC/B,iBAAiB,EAAE,iBAAiB,GACpC,IACI,CACT,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -15,16 +15,17 @@
|
|
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 type
|
18
|
+
import { GraphFetchPureSerializationState, type QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
19
19
|
export declare const QueryBuilderGraphFetchTreeExplorer: ((props: {
|
20
20
|
graphFetchState: QueryBuilderGraphFetchTreeState;
|
21
|
+
pureSerializationState: GraphFetchPureSerializationState;
|
21
22
|
treeData: QueryBuilderGraphFetchTreeData;
|
22
23
|
updateTreeData: (data: QueryBuilderGraphFetchTreeData) => void;
|
23
24
|
isReadOnly: boolean;
|
24
25
|
}) => JSX.Element) & {
|
25
26
|
displayName: string;
|
26
27
|
};
|
27
|
-
export declare const
|
28
|
+
export declare const QueryBuilderGraphFetchPanel: ((props: {
|
28
29
|
graphFetchTreeState: QueryBuilderGraphFetchTreeState;
|
29
30
|
}) => JSX.Element) & {
|
30
31
|
displayName: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderGraphFetchTreePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
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"}
|
@@ -17,12 +17,14 @@ 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, } 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, } from '@finos/legend-art';
|
21
21
|
import { QUERY_BUILDER_TEST_ID } from '../../application/QueryBuilderTesting.js';
|
22
22
|
import { isNonNullable } 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
26
|
import { getClassPropertyIcon } from '../shared/ElementIconUtils.js';
|
27
|
+
import { QueryBuilderTextEditorMode } from '../../stores/QueryBuilderTextEditorState.js';
|
26
28
|
const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
|
27
29
|
const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
|
28
30
|
const { removeNode } = innerProps;
|
@@ -39,8 +41,32 @@ const QueryBuilderGraphFetchTreeNodeContainer = (props) => {
|
|
39
41
|
display: 'flex',
|
40
42
|
}, children: [_jsxs("div", { className: "query-builder-graph-fetch-tree__node__content", children: [_jsxs("div", { className: "tree-view__node__icon query-builder-graph-fetch-tree__node__icon", children: [_jsx("div", { className: "query-builder-graph-fetch-tree__expand-icon", onClick: toggleExpandNode, children: nodeExpandIcon }), _jsx("div", { className: "query-builder-graph-fetch-tree__type-icon", onClick: toggleExpandNode, children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label query-builder-graph-fetch-tree__node__label", onClick: toggleExpandNode, children: [node.label, subType && (_jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__sub-type__label", children: subType.name }) })), _jsx("div", { className: "query-builder-graph-fetch-tree__node__type", children: _jsx("div", { className: "query-builder-graph-fetch-tree__node__type__label", children: type.name }) })] })] }), _jsx("div", { className: "query-builder-graph-fetch-tree__node__actions", children: _jsx("button", { className: "query-builder-graph-fetch-tree__node__action", title: "Remove", tabIndex: -1, onClick: deleteNode, children: _jsx(TimesIcon, {}) }) })] }));
|
41
43
|
};
|
44
|
+
const PureSerializationConfigModal = observer((props) => {
|
45
|
+
const { pureSerializationState, graphFetchState, config } = props;
|
46
|
+
const applicationStore = graphFetchState.queryBuilderState.applicationStore;
|
47
|
+
const toAdd = !pureSerializationState.config;
|
48
|
+
const handleAction = () => {
|
49
|
+
if (toAdd) {
|
50
|
+
pureSerializationState.setConfig(config);
|
51
|
+
}
|
52
|
+
pureSerializationState.setConfigModal(false);
|
53
|
+
};
|
54
|
+
const removeConfig = () => {
|
55
|
+
pureSerializationState.setConfig(undefined);
|
56
|
+
pureSerializationState.setConfigModal(false);
|
57
|
+
graphFetchState.queryBuilderState.applicationStore.notificationService.notifySuccess('Serialization config removed');
|
58
|
+
};
|
59
|
+
const close = () => pureSerializationState.setConfigModal(false);
|
60
|
+
return (_jsx(Dialog, { open: pureSerializationState.configModal, onClose: close, classes: {
|
61
|
+
root: 'editor-modal__root-container',
|
62
|
+
container: 'editor-modal__container',
|
63
|
+
paper: 'editor-modal__content',
|
64
|
+
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "query-builder-graph-fetch-config", children: [_jsx(ModalHeader, { title: `${toAdd ? 'Add Serialization Config' : 'Edit Serialization Config'}` }), _jsx(ModalBody, { className: "query-builder-graph-fetch-config__content", children: _jsx(Panel, { children: _jsxs(PanelForm, { children: [_jsx(PanelFormTextField, { name: "Type Key Name", value: config.typeKeyName, isReadOnly: false, update: (value) => config.setTypeName(value ?? ''), errorMessage: config.typeKeyName === ''
|
65
|
+
? `Type key name can't be empty`
|
66
|
+
: 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
|
+
});
|
42
68
|
export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
|
43
|
-
const { graphFetchState, treeData, updateTreeData, isReadOnly } = props;
|
69
|
+
const { graphFetchState, pureSerializationState, treeData, updateTreeData, isReadOnly, } = props;
|
44
70
|
const onNodeSelect = (node) => {
|
45
71
|
if (node.childrenIds.length) {
|
46
72
|
node.isOpen = !node.isOpen;
|
@@ -55,17 +81,22 @@ export const QueryBuilderGraphFetchTreeExplorer = observer((props) => {
|
|
55
81
|
updateTreeData({ ...treeData });
|
56
82
|
};
|
57
83
|
const toggleChecked = () => graphFetchState.setChecked(!graphFetchState.isChecked);
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
84
|
+
const openConfigModal = () => {
|
85
|
+
pureSerializationState.setConfigModal(true);
|
86
|
+
};
|
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
|
+
} })] })] }));
|
66
97
|
});
|
67
|
-
|
68
|
-
const { graphFetchTreeState } = props;
|
98
|
+
const QueryBuilderGraphFetchTreePanel = observer((props) => {
|
99
|
+
const { graphFetchTreeState, pureSerializationState } = props;
|
69
100
|
const treeData = graphFetchTreeState.treeData;
|
70
101
|
// Deep/Graph Fetch Tree
|
71
102
|
const updateTreeData = (data) => {
|
@@ -89,6 +120,15 @@ export const QueryBuilderGraphFetchTreePanel = observer((props) => {
|
|
89
120
|
isDragOver: monitor.isOver({ shallow: true }),
|
90
121
|
}),
|
91
122
|
}), [handleDrop]);
|
92
|
-
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, treeData: treeData, isReadOnly: false, updateTreeData: updateTreeData }))] }) }));
|
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 }))] }) }));
|
124
|
+
});
|
125
|
+
export const QueryBuilderGraphFetchPanel = observer((props) => {
|
126
|
+
const { graphFetchTreeState } = props;
|
127
|
+
const serializationState = graphFetchTreeState.serializationState;
|
128
|
+
const handleTextModeClick = () => graphFetchTreeState.queryBuilderState.textEditorState.openModal(QueryBuilderTextEditorMode.TEXT);
|
129
|
+
if (serializationState instanceof GraphFetchPureSerializationState) {
|
130
|
+
return (_jsx(QueryBuilderGraphFetchTreePanel, { graphFetchTreeState: graphFetchTreeState, pureSerializationState: serializationState }));
|
131
|
+
}
|
132
|
+
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" })] }) }) }));
|
93
133
|
});
|
94
134
|
//# sourceMappingURL=QueryBuilderGraphFetchTreePanel.js.map
|
@@ -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,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;
|
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,O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AqC,2DAE9C,EAEN,iBACE,SAAS,EAAC,yDAAyD,EACnE,OAAO,EAAE,mBAAmB,kCAGrB,IACL,GACY,GAChB,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -27,6 +27,7 @@ export declare enum QUERY_BUILDER_SUPPORTED_FUNCTIONS {
|
|
27
27
|
GRAPH_FETCH = "meta::pure::graphFetch::execution::graphFetch",
|
28
28
|
GRAPH_FETCH_CHECKED = "meta::pure::graphFetch::execution::graphFetchChecked",
|
29
29
|
SERIALIZE = "meta::pure::graphFetch::execution::serialize",
|
30
|
+
EXTERNALIZE = "meta::external::shared::format::functions::externalize",
|
30
31
|
TDS_FILTER = "meta::pure::tds::filter",
|
31
32
|
TDS_ASC = "meta::pure::tds::asc",
|
32
33
|
TDS_DESC = "meta::pure::tds::desc",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderSupportedFunctions.d.ts","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iCAAiC;IAC3C,GAAG,wCAAwC;IAC3C,MAAM,8CAA8C;IACpD,MAAM,8CAA8C;IACpD,OAAO,8CAA8C;IACrD,gBAAgB,sDAAsD;IACtE,GAAG,wCAAwC;IAC3C,EAAE,uCAAuC;IACzC,IAAI,4CAA4C;IAChD,OAAO,yCAAyC;IAChD,KAAK,uCAAuC;IAG5C,WAAW,kDAAkD;IAC7D,mBAAmB,yDAAyD;IAC5E,SAAS,iDAAiD;
|
1
|
+
{"version":3,"file":"QueryBuilderSupportedFunctions.d.ts","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iCAAiC;IAC3C,GAAG,wCAAwC;IAC3C,MAAM,8CAA8C;IACpD,MAAM,8CAA8C;IACpD,OAAO,8CAA8C;IACrD,gBAAgB,sDAAsD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"meta::pure::graphFetch::execution::graphFetchChecked";
|
31
31
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["SERIALIZE"] = "meta::pure::graphFetch::execution::serialize";
|
32
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS["EXTERNALIZE"] = "meta::external::shared::format::functions::externalize";
|
32
33
|
// TDS
|
33
34
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["TDS_FILTER"] = "meta::pure::tds::filter";
|
34
35
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS["TDS_ASC"] = "meta::pure::tds::asc";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderSupportedFunctions.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderSupportedFunctions.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iCAiEX;AAjED,WAAY,iCAAiC;IAC3C,gFAA2C,CAAA;IAC3C,yFAAoD,CAAA;IACpD,yFAAoD,CAAA;IACpD,0FAAqD,CAAA;IACrD,2GAAsE,CAAA;IACtE,gFAA2C,CAAA;IAC3C,8EAAyC,CAAA;IACzC,qFAAgD,CAAA;IAChD,qFAAgD,CAAA;IAChD,iFAA4C,CAAA;IAE5C,cAAc;IACd,kGAA6D,CAAA;IAC7D,iHAA4E,CAAA;IAC5E,+FAA0D,CAAA;IAC1D,2GAAsE,CAAA;IAEtE,MAAM;IACN,2EAAsC,CAAA;IACtC,qEAAgC,CAAA;IAChC,uEAAkC,CAAA;IAClC,qEAAgC,CAAA;IAChC,+EAA0C,CAAA;IAC1C,6EAAwC,CAAA;IACxC,8EAAyC,CAAA;IACzC,uEAAkC,CAAA;IAClC,uEAAkC,CAAA;IAClC,uE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