@finos/legend-query-builder 4.2.4 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +3 -1
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +16 -0
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +85 -7
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryChat.d.ts.map +1 -1
- package/lib/components/QueryChat.js +1 -1
- package/lib/components/QueryChat.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -2
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +5 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +13 -9
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +13 -11
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +3 -2
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderExecutionContextState.d.ts +34 -0
- package/lib/stores/QueryBuilderExecutionContextState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderExecutionContextState.js +59 -0
- package/lib/stores/QueryBuilderExecutionContextState.js.map +1 -0
- package/lib/stores/QueryBuilderInternalizeState.d.ts +24 -0
- package/lib/stores/QueryBuilderInternalizeState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderInternalizeState.js +26 -0
- package/lib/stores/QueryBuilderInternalizeState.js.map +1 -0
- package/lib/stores/QueryBuilderResultState.js +5 -5
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +7 -5
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +19 -17
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +27 -2
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +28 -2
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.d.ts.map +1 -1
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js +2 -2
- package/lib/stores/__test-utils__/QueryBuilderStateTestUtils.js.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +6 -4
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +9 -9
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +2 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +25 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +3 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +2 -1
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ClassQueryBuilderState.js +2 -1
- package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -1
- package/lib/stores/workflows/FunctionQueryBuilderState.d.ts +23 -0
- package/lib/stores/workflows/FunctionQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/FunctionQueryBuilderState.js +27 -0
- package/lib/stores/workflows/FunctionQueryBuilderState.js.map +1 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/workflows/ServiceQueryBuilderState.js +7 -7
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -1
- package/package.json +4 -4
- package/src/components/QueryBuilder.tsx +5 -1
- package/src/components/QueryBuilderSideBar.tsx +211 -7
- package/src/components/QueryChat.tsx +2 -1
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +2 -2
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +5 -1
- package/src/components/workflows/ClassQueryBuilder.tsx +17 -9
- package/src/components/workflows/MappingQueryBuilder.tsx +15 -11
- package/src/components/workflows/ServiceQueryBuilder.tsx +3 -2
- package/src/index.ts +1 -0
- package/src/stores/QueryBuilderExecutionContextState.ts +69 -0
- package/src/stores/QueryBuilderInternalizeState.ts +34 -0
- package/src/stores/QueryBuilderResultState.ts +6 -6
- package/src/stores/QueryBuilderState.ts +28 -21
- package/src/stores/QueryBuilderStateBuilder.ts +79 -1
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +50 -1
- package/src/stores/__test-utils__/QueryBuilderStateTestUtils.ts +4 -2
- package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +6 -4
- package/src/stores/explorer/QueryBuilderExplorerState.ts +9 -9
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +64 -2
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +4 -2
- package/src/stores/filter/QueryBuilderFilterState.ts +5 -2
- package/src/stores/workflows/ClassQueryBuilderState.ts +2 -1
- package/src/stores/workflows/FunctionQueryBuilderState.ts +38 -0
- package/src/stores/workflows/ServiceQueryBuilderState.ts +7 -11
- package/tsconfig.json +3 -0
@@ -35,11 +35,12 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
35
35
|
const applicationStore = useApplicationStore();
|
36
36
|
// mapping
|
37
37
|
const mappingOptions = queryBuilderState.graphManagerState.usableMappings.map(buildElementOption);
|
38
|
-
const selectedMappingOption = queryBuilderState.
|
39
|
-
|
38
|
+
const selectedMappingOption = queryBuilderState.executionContextState
|
39
|
+
.mapping
|
40
|
+
? buildElementOption(queryBuilderState.executionContextState.mapping)
|
40
41
|
: null;
|
41
42
|
const changeMapping = (val) => {
|
42
|
-
if (val.value === queryBuilderState.mapping) {
|
43
|
+
if (val.value === queryBuilderState.executionContextState.mapping) {
|
43
44
|
return;
|
44
45
|
}
|
45
46
|
queryBuilderState.changeMapping(val.value);
|
@@ -52,16 +53,17 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
52
53
|
stringify: (option) => option.value.path,
|
53
54
|
});
|
54
55
|
// runtime
|
55
|
-
const runtimeOptions = (queryBuilderState.mapping
|
56
|
-
? getMappingCompatibleRuntimes(queryBuilderState.mapping, queryBuilderState.graphManagerState.usableRuntimes)
|
56
|
+
const runtimeOptions = (queryBuilderState.executionContextState.mapping
|
57
|
+
? getMappingCompatibleRuntimes(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableRuntimes)
|
57
58
|
: [])
|
58
59
|
.map((rt) => new RuntimePointer(PackageableElementExplicitReference.create(rt)))
|
59
60
|
.map(buildRuntimeValueOption);
|
60
|
-
const selectedRuntimeOption = queryBuilderState.
|
61
|
-
|
61
|
+
const selectedRuntimeOption = queryBuilderState.executionContextState
|
62
|
+
.runtimeValue
|
63
|
+
? buildRuntimeValueOption(queryBuilderState.executionContextState.runtimeValue)
|
62
64
|
: null;
|
63
65
|
const changeRuntime = (val) => {
|
64
|
-
if (val.value === queryBuilderState.runtimeValue) {
|
66
|
+
if (val.value === queryBuilderState.executionContextState.runtimeValue) {
|
65
67
|
return;
|
66
68
|
}
|
67
69
|
queryBuilderState.changeRuntime(val.value);
|
@@ -74,8 +76,8 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
74
76
|
.path,
|
75
77
|
});
|
76
78
|
// class
|
77
|
-
const classes = queryBuilderState.mapping
|
78
|
-
? getMappingCompatibleClasses(queryBuilderState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
79
|
+
const classes = queryBuilderState.executionContextState.mapping
|
80
|
+
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
79
81
|
: [];
|
80
82
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx("div", { className: "query-builder__setup__config-group__header", children: _jsx("div", { className: "query-builder__setup__config-group__header__title", children: "execution context" }) }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "mapping", children: _jsx(PURE_MappingIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: mappingOptions.length
|
81
83
|
? 'Choose a mapping...'
|
@@ -83,7 +85,7 @@ const MappingQueryBuilderSetupPanelContent = observer((props) => {
|
|
83
85
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: mappingFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
84
86
|
darkMode: !applicationStore.layoutService
|
85
87
|
.TEMPORARY__isLightColorThemeEnabled,
|
86
|
-
}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified mapping", disabled: !queryBuilderState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
|
88
|
+
}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified mapping", disabled: !queryBuilderState.executionContextState.mapping, options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
|
87
89
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
88
90
|
darkMode: !applicationStore.layoutService
|
89
91
|
.TEMPORARY__isLightColorThemeEnabled,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/MappingQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,mCAAmC,EACnC,cAAc,EACd,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,oCAAoC,GAAG,QAAQ,CACnD,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAE/C,UAAU;IACV,MAAM,cAAc,GAClB,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,CACpD,kBAAkB,CACnB,CAAC;IACJ,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO;
|
1
|
+
{"version":3,"file":"MappingQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/MappingQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,mCAAmC,EACnC,cAAc,EACd,4BAA4B,EAC5B,2BAA2B,GAC5B,MA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AExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;4CAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iDAC5B,mCAAmC;yCACzC,CAAC,GACF,IACE,IACF,IACF,EACN,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAC,iDAAiD,GAChE,IACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/workflows/ServiceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,oDAAoD,CAAC;
|
1
|
+
{"version":3,"file":"ServiceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/workflows/ServiceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,oDAAoD,CAAC;AAmJ5D,eAAO,MAAM,0CAA0C,sBAClC,wBAAwB,KAC1C,MAAM,SAER,CAAC"}
|
@@ -32,6 +32,7 @@ const buildExecutionContextOption = (value) => ({
|
|
32
32
|
*
|
33
33
|
* See details on propagation/cascading in {@link ServiceQueryBuilderState}
|
34
34
|
*/
|
35
|
+
// TODO: add mapping/runtime for `from` queries
|
35
36
|
const ServiceQueryBuilderSetupPanelContent = observer((props) => {
|
36
37
|
const { queryBuilderState } = props;
|
37
38
|
const applicationStore = useApplicationStore();
|
@@ -58,8 +59,8 @@ const ServiceQueryBuilderSetupPanelContent = observer((props) => {
|
|
58
59
|
queryBuilderState.onExecutionContextChange?.(option.value);
|
59
60
|
};
|
60
61
|
// class
|
61
|
-
const classes = queryBuilderState.mapping
|
62
|
-
? getMappingCompatibleClasses(queryBuilderState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
62
|
+
const classes = queryBuilderState.executionContextState.mapping
|
63
|
+
? getMappingCompatibleClasses(queryBuilderState.executionContextState.mapping, queryBuilderState.graphManagerState.usableClasses)
|
63
64
|
: [];
|
64
65
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx("div", { className: "query-builder__setup__config-group__header", children: _jsx("div", { className: "query-builder__setup__config-group__header__title", children: "service execution context" }) }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "service", children: _jsx(RobotIcon, { className: "query-builder__setup__service__icon__service" }) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a service...", options: serviceOptions, disabled: serviceOptions.length < 1 ||
|
65
66
|
(serviceOptions.length === 1 &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ServiceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/workflows/ServiceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAgB,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,OAAO,EACL,kBAAkB,GAEnB,MAAM,iCAAiC,CAAC;AAMzC,MAAM,2B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/lib/index.css
CHANGED
package/lib/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ export { QueryBuilderState } from './stores/QueryBuilderState.js';
|
|
25
25
|
export { QueryBuilderPropertySearchState } from './stores/explorer/QueryBuilderPropertySearchState.js';
|
26
26
|
export { QueryBuilderClassSelector, buildRuntimeValueOption, getRuntimeOptionFormatter, } from './components/QueryBuilderSideBar.js';
|
27
27
|
export { ClassQueryBuilderState } from './stores/workflows/ClassQueryBuilderState.js';
|
28
|
+
export { FunctionQueryBuilderState } from './stores/workflows/FunctionQueryBuilderState.js';
|
28
29
|
export { MappingQueryBuilderState } from './stores/workflows/MappingQueryBuilderState.js';
|
29
30
|
export { type ServiceExecutionContext, ServiceQueryBuilderState, } from './stores/workflows/ServiceQueryBuilderState.js';
|
30
31
|
export { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from './graph/QueryBuilderMetaModelConst.js';
|
package/lib/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,yBAAyB,EACzB,uBAAuB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B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6FAA6F,CAAC;AACnJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,8CAA8C,CAAC;AAItD,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAE9D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC"}
|
package/lib/index.js
CHANGED
@@ -26,6 +26,7 @@ export { QueryBuilderState } from './stores/QueryBuilderState.js';
|
|
26
26
|
export { QueryBuilderPropertySearchState } from './stores/explorer/QueryBuilderPropertySearchState.js';
|
27
27
|
export { QueryBuilderClassSelector, buildRuntimeValueOption, getRuntimeOptionFormatter, } from './components/QueryBuilderSideBar.js';
|
28
28
|
export { ClassQueryBuilderState } from './stores/workflows/ClassQueryBuilderState.js';
|
29
|
+
export { FunctionQueryBuilderState } from './stores/workflows/FunctionQueryBuilderState.js';
|
29
30
|
export { MappingQueryBuilderState } from './stores/workflows/MappingQueryBuilderState.js';
|
30
31
|
export { ServiceQueryBuilderState, } from './stores/workflows/ServiceQueryBuilderState.js';
|
31
32
|
export { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from './graph/QueryBuilderMetaModelConst.js';
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":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AAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAEL,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,iCAAiC,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EAAE,oCAAoC,EAAE,MAAM,yEAAyE,CAAC;AAG/H,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6FAA6F,CAAC;AACnJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,8CAA8C,CAAC;AAEtD,4GAA4G;AAE5G,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAE9D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC"}
|
package/lib/package.json
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { Mapping, Runtime } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
|
+
export declare abstract class QueryBuilderExecutionContextState {
|
19
|
+
readonly queryBuilderState: QueryBuilderState;
|
20
|
+
mapping: Mapping | undefined;
|
21
|
+
runtimeValue: Runtime | undefined;
|
22
|
+
constructor(queryBuilderState: QueryBuilderState);
|
23
|
+
setMapping(val: Mapping | undefined): void;
|
24
|
+
setRuntimeValue(val: Runtime | undefined): void;
|
25
|
+
get specifiedInQuery(): boolean;
|
26
|
+
}
|
27
|
+
export declare class QueryBuilderEmbeddedFromExecutionContextState extends QueryBuilderExecutionContextState {
|
28
|
+
constructor(queryBuilderState: QueryBuilderState);
|
29
|
+
}
|
30
|
+
export declare class QueryBuilderExternalExecutionContextState extends QueryBuilderExecutionContextState {
|
31
|
+
constructor(queryBuilderState: QueryBuilderState);
|
32
|
+
get specifiedInQuery(): boolean;
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=QueryBuilderExecutionContextState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderExecutionContextState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,8BAAsB,iCAAiC;IACrD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;gBAEtB,iBAAiB,EAAE,iBAAiB;IAIhD,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAI1C,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAI/C,IAAI,gBAAgB,IAAI,OAAO,CAE9B;CACF;AAED,qBAAa,6CAA8C,SAAQ,iCAAiC;gBACtF,iBAAiB,EAAE,iBAAiB;CASjD;AAED,qBAAa,yCAA0C,SAAQ,iCAAiC;gBAClF,iBAAiB,EAAE,iBAAiB;IAUhD,IAAa,gBAAgB,IAAI,OAAO,CAEvC;CACF"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { action, makeObservable, observable } from 'mobx';
|
17
|
+
export class QueryBuilderExecutionContextState {
|
18
|
+
queryBuilderState;
|
19
|
+
mapping;
|
20
|
+
runtimeValue;
|
21
|
+
constructor(queryBuilderState) {
|
22
|
+
this.queryBuilderState = queryBuilderState;
|
23
|
+
}
|
24
|
+
setMapping(val) {
|
25
|
+
this.mapping = val;
|
26
|
+
}
|
27
|
+
setRuntimeValue(val) {
|
28
|
+
this.runtimeValue = val;
|
29
|
+
}
|
30
|
+
get specifiedInQuery() {
|
31
|
+
return true;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
export class QueryBuilderEmbeddedFromExecutionContextState extends QueryBuilderExecutionContextState {
|
35
|
+
constructor(queryBuilderState) {
|
36
|
+
super(queryBuilderState);
|
37
|
+
makeObservable(this, {
|
38
|
+
mapping: observable,
|
39
|
+
runtimeValue: observable,
|
40
|
+
setMapping: action,
|
41
|
+
setRuntimeValue: action,
|
42
|
+
});
|
43
|
+
}
|
44
|
+
}
|
45
|
+
export class QueryBuilderExternalExecutionContextState extends QueryBuilderExecutionContextState {
|
46
|
+
constructor(queryBuilderState) {
|
47
|
+
super(queryBuilderState);
|
48
|
+
makeObservable(this, {
|
49
|
+
mapping: observable,
|
50
|
+
runtimeValue: observable,
|
51
|
+
setMapping: action,
|
52
|
+
setRuntimeValue: action,
|
53
|
+
});
|
54
|
+
}
|
55
|
+
get specifiedInQuery() {
|
56
|
+
return false;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
//# sourceMappingURL=QueryBuilderExecutionContextState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderExecutionContextState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAgB,iCAAiC;IAC5C,iBAAiB,CAAoB;IAC9C,OAAO,CAAsB;IAC7B,YAAY,CAAsB;IAElC,YAAY,iBAAoC;QAC9C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,UAAU,CAAC,GAAwB;QACjC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;IACrB,CAAC;IAED,eAAe,CAAC,GAAwB;QACtC,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;IAC1B,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,MAAM,OAAO,6CAA8C,SAAQ,iCAAiC;IAClG,YAAY,iBAAoC;QAC9C,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,MAAM;YAClB,eAAe,EAAE,MAAM;SACxB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yCAA0C,SAAQ,iCAAiC;IAC9F,YAAY,iBAAoC;QAC9C,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,cAAc,CAAC,IAAI,EAAE;YACnB,OAAO,EAAE,UAAU;YACnB,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,MAAM;YAClB,eAAe,EAAE,MAAM;SACxB,CAAC,CAAC;IACL,CAAC;IAED,IAAa,gBAAgB;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
17
|
+
import type { Binding, VariableExpression } from '@finos/legend-graph';
|
18
|
+
export declare class QueryBuilderInternalizeState {
|
19
|
+
readonly queryBuilderState: QueryBuilderState;
|
20
|
+
binding: Binding;
|
21
|
+
inputData: VariableExpression;
|
22
|
+
constructor(binding: Binding, inputData: VariableExpression, queryBuilderState: QueryBuilderState);
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=QueryBuilderInternalizeState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderInternalizeState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderInternalizeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEvE,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,kBAAkB,CAAC;gBAG5B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kBAAkB,EAC7B,iBAAiB,EAAE,iBAAiB;CAMvC"}
|
@@ -0,0 +1,26 @@
|
|
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
|
+
export class QueryBuilderInternalizeState {
|
17
|
+
queryBuilderState;
|
18
|
+
binding;
|
19
|
+
inputData;
|
20
|
+
constructor(binding, inputData, queryBuilderState) {
|
21
|
+
this.queryBuilderState = queryBuilderState;
|
22
|
+
this.binding = binding;
|
23
|
+
this.inputData = inputData;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=QueryBuilderInternalizeState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderInternalizeState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderInternalizeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,OAAO,4BAA4B;IAC9B,iBAAiB,CAAoB;IAC9C,OAAO,CAAU;IACjB,SAAS,CAAqB;IAE9B,YACE,OAAgB,EAChB,SAA6B,EAC7B,iBAAoC;QAEpC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
@@ -134,7 +134,7 @@ export class QueryBuilderResultState {
|
|
134
134
|
const query = this.buildExecutionRawLambda({
|
135
135
|
isExportingResult: true,
|
136
136
|
});
|
137
|
-
const result = (yield this.queryBuilderState.graphManagerState.graphManager.runQuery(query, this.queryBuilderState.mapping, this.queryBuilderState.runtimeValue, this.queryBuilderState.graphManagerState.graph, {
|
137
|
+
const result = (yield this.queryBuilderState.graphManagerState.graphManager.runQuery(query, this.queryBuilderState.executionContextState.mapping, this.queryBuilderState.executionContextState.runtimeValue, this.queryBuilderState.graphManagerState.graph, {
|
138
138
|
serializationFormat,
|
139
139
|
parameterValues: buildExecutionParameterValues(this.queryBuilderState.parametersState.parameterStates, this.queryBuilderState.graphManagerState),
|
140
140
|
}));
|
@@ -161,8 +161,8 @@ export class QueryBuilderResultState {
|
|
161
161
|
try {
|
162
162
|
this.setIsRunningQuery(true);
|
163
163
|
const currentHashCode = this.queryBuilderState.hashCode;
|
164
|
-
const mapping = guaranteeNonNullable(this.queryBuilderState.mapping, 'Mapping is required to execute query');
|
165
|
-
const runtime = guaranteeNonNullable(this.queryBuilderState.runtimeValue, `Runtime is required to execute query`);
|
164
|
+
const mapping = guaranteeNonNullable(this.queryBuilderState.executionContextState.mapping, 'Mapping is required to execute query');
|
165
|
+
const runtime = guaranteeNonNullable(this.queryBuilderState.executionContextState.runtimeValue, `Runtime is required to execute query`);
|
166
166
|
const query = this.buildExecutionRawLambda();
|
167
167
|
const parameterValues = buildExecutionParameterValues(this.queryBuilderState.parametersState.parameterStates, this.queryBuilderState.graphManagerState);
|
168
168
|
QueryBuilderTelemetryHelper.logEvent_QueryRunLaunched(this.queryBuilderState.applicationStore.telemetryService);
|
@@ -212,8 +212,8 @@ export class QueryBuilderResultState {
|
|
212
212
|
*generatePlan(debug) {
|
213
213
|
try {
|
214
214
|
this.isGeneratingPlan = true;
|
215
|
-
const mapping = guaranteeNonNullable(this.queryBuilderState.mapping, 'Mapping is required to execute query');
|
216
|
-
const runtime = guaranteeNonNullable(this.queryBuilderState.runtimeValue, `Runtime is required to execute query`);
|
215
|
+
const mapping = guaranteeNonNullable(this.queryBuilderState.executionContextState.mapping, 'Mapping is required to execute query');
|
216
|
+
const runtime = guaranteeNonNullable(this.queryBuilderState.executionContextState.runtimeValue, `Runtime is required to execute query`);
|
217
217
|
const query = this.queryBuilderState.buildQuery();
|
218
218
|
let rawPlan;
|
219
219
|
const stopWatch = new StopWatch();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EAEpB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,mBAAmB,EACnB,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACp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CACnC,KAAK,EACL,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACtD,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACzC,CAAC;aACH;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,CAAC,UAAU,CAAC,MAAc;QACxB,IAAI;YACF,MAAM,UAAU,GACd,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC,iBAAiB,CACzE,MAAM,CACP,CAAC;YACJ,MAAM,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;YAC3C,MAAM,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;YAC3D,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;YAClC,MAAM,KAAK,GAAG,IAAI,CAAC,uBAAuB,CAAC;gBACzC,iBAAiB,EAAE,IAAI;aACxB,CAAC,CAAC;YACH,MAAM,MAAM,GACV,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,YAAY,CAAC,QAAQ,CACnE,KAAK,EACL,IAAI,CAAC,iBAAiB,CAAC,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EAEpB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,mBAAmB,EACnB,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE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AAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,qBAAqB,CACvE,SAAS,EACT,MAAM,CAAC,OAAO,CACf,CAAC;YACJ,IAAI,KAAK,EAAE;gBACT,2BAA2B,CAAC,oCAAoC,CAC9D,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,gBAAgB,EACxD,MAAM,CACP,CAAC;aACH;iBAAM;gBACL,2BAA2B,CAAC,yCAAyC,CACnE,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,gBAAgB,EACxD,MAAM,CACP,CAAC;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACtD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACrE,KAAK,CACN,CAAC;SACH;gBAAS;YACR,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAC/B;IACH,CAAC;CACF"}
|
@@ -21,7 +21,7 @@ import { QueryBuilderTextEditorState } from './QueryBuilderTextEditorState.js';
|
|
21
21
|
import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.js';
|
22
22
|
import { QueryBuilderResultState } from './QueryBuilderResultState.js';
|
23
23
|
import { QueryBuilderUnsupportedQueryState } from './QueryBuilderUnsupportedQueryState.js';
|
24
|
-
import { type Class, type Mapping, type Runtime, type GraphManagerState,
|
24
|
+
import { type Class, type Mapping, type Runtime, type GraphManagerState, type ValueSpecification, type Type, RawLambda, VariableExpression, ObserverContext } from '@finos/legend-graph';
|
25
25
|
import type { CommandRegistrar, GenericLegendApplicationStore } from '@finos/legend-application';
|
26
26
|
import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
|
27
27
|
import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
|
@@ -31,6 +31,8 @@ import { QueryBuilderMilestoningState } from './milestoning/QueryBuilderMileston
|
|
31
31
|
import { QueryBuilderWatermarkState } from './watermark/QueryBuilderWatermarkState.js';
|
32
32
|
import { QueryBuilderConstantsState } from './QueryBuilderConstantsState.js';
|
33
33
|
import { QueryBuilderCheckEntitlementsState } from './entitlements/QueryBuilderCheckEntitlementsState.js';
|
34
|
+
import type { QueryBuilderInternalizeState } from './QueryBuilderInternalizeState.js';
|
35
|
+
import { type QueryBuilderExecutionContextState } from './QueryBuilderExecutionContextState.js';
|
34
36
|
export declare abstract class QueryBuilderState implements CommandRegistrar {
|
35
37
|
readonly applicationStore: GenericLegendApplicationStore;
|
36
38
|
readonly graphManagerState: GraphManagerState;
|
@@ -57,8 +59,8 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
|
|
57
59
|
isCalendarEnabled: boolean;
|
58
60
|
isQueryChatOpened: boolean;
|
59
61
|
class?: Class | undefined;
|
60
|
-
|
61
|
-
|
62
|
+
executionContextState: QueryBuilderExecutionContextState;
|
63
|
+
internalizeState?: QueryBuilderInternalizeState | undefined;
|
62
64
|
TEMPORARY__setupPanelContentRenderer?: (() => React.ReactNode) | undefined;
|
63
65
|
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState);
|
64
66
|
get isMappingReadOnly(): boolean;
|
@@ -74,14 +76,14 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
|
|
74
76
|
get allVariables(): VariableExpression[];
|
75
77
|
get allVariableNames(): string[];
|
76
78
|
setIsQueryChatOpened(val: boolean): void;
|
79
|
+
setInternalize(val: QueryBuilderInternalizeState | undefined): void;
|
77
80
|
setShowFunctionsExplorerPanel(val: boolean): void;
|
78
81
|
setShowParametersPanel(val: boolean): void;
|
79
82
|
setIsEditingWatermark(val: boolean): void;
|
80
83
|
setIsCheckingEntitlments(val: boolean): void;
|
81
84
|
setIsCalendarEnabled(val: boolean): void;
|
82
85
|
setClass(val: Class | undefined): void;
|
83
|
-
|
84
|
-
setRuntimeValue(val: Runtime | undefined): void;
|
86
|
+
setExecutionContextState(val: QueryBuilderExecutionContextState): void;
|
85
87
|
get isQuerySupported(): boolean;
|
86
88
|
registerCommands(): void;
|
87
89
|
isVariableUsed(variable: VariableExpression): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAEL,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,
|
1
|
+
{"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAEL,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;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D,IAAI;IAQP;;OAEG;IACH,gBAAgB,CACd,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE;QACR,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9C,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC,sBAAsB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,CAAC;KACtE,GACA,IAAI;IAyEN,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC;IAwFlC,IAAI,mBAAmB,IAAI,MAAM,EAAE,CAElC;IAED;;;;OAIG;IACH,kCAAkC,IAAI,iBAAiB;IAcvD,IAAI,QAAQ,IAAI,MAAM,CAWrB;CACF;AAED;;;;;;;;;GASG;AACH,qBAAa,gCAAiC,SAAQ,iBAAiB;CAAG"}
|
@@ -36,6 +36,7 @@ import { QueryBuilderConstantsState } from './QueryBuilderConstantsState.js';
|
|
36
36
|
import { QueryBuilderCheckEntitlementsState } from './entitlements/QueryBuilderCheckEntitlementsState.js';
|
37
37
|
import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
|
38
38
|
import { QUERY_BUILDER_PURE_PATH } from '../graph/QueryBuilderMetaModelConst.js';
|
39
|
+
import { QueryBuilderExternalExecutionContextState, } from './QueryBuilderExecutionContextState.js';
|
39
40
|
export class QueryBuilderState {
|
40
41
|
applicationStore;
|
41
42
|
graphManagerState;
|
@@ -62,8 +63,8 @@ export class QueryBuilderState {
|
|
62
63
|
isCalendarEnabled = false;
|
63
64
|
isQueryChatOpened = false;
|
64
65
|
class;
|
65
|
-
|
66
|
-
|
66
|
+
executionContextState;
|
67
|
+
internalizeState;
|
67
68
|
// NOTE: this makes it so that we need to import components in stores code,
|
68
69
|
// we probably want to refactor to an extension mechanism
|
69
70
|
TEMPORARY__setupPanelContentRenderer;
|
@@ -86,9 +87,8 @@ export class QueryBuilderState {
|
|
86
87
|
isCheckingEntitlments: observable,
|
87
88
|
isCalendarEnabled: observable,
|
88
89
|
changeDetectionState: observable,
|
90
|
+
executionContextState: observable,
|
89
91
|
class: observable,
|
90
|
-
mapping: observable,
|
91
|
-
runtimeValue: observable,
|
92
92
|
isQueryChatOpened: observable,
|
93
93
|
sideBarClassName: computed,
|
94
94
|
isQuerySupported: computed,
|
@@ -99,19 +99,19 @@ export class QueryBuilderState {
|
|
99
99
|
setIsCalendarEnabled: action,
|
100
100
|
setIsCheckingEntitlments: action,
|
101
101
|
setClass: action,
|
102
|
-
setMapping: action,
|
103
|
-
setRuntimeValue: action,
|
104
102
|
setIsQueryChatOpened: action,
|
105
103
|
resetQueryResult: action,
|
106
104
|
resetQueryContent: action,
|
107
105
|
changeClass: action,
|
108
106
|
changeMapping: action,
|
107
|
+
setExecutionContextState: action,
|
109
108
|
rebuildWithQuery: action,
|
110
109
|
compileQuery: flow,
|
111
110
|
hashCode: computed,
|
112
111
|
});
|
113
112
|
this.applicationStore = applicationStore;
|
114
113
|
this.graphManagerState = graphManagerState;
|
114
|
+
this.executionContextState = new QueryBuilderExternalExecutionContextState(this);
|
115
115
|
this.milestoningState = new QueryBuilderMilestoningState(this);
|
116
116
|
this.explorerState = new QueryBuilderExplorerState(this);
|
117
117
|
this.parametersState = new QueryBuilderParametersState(this);
|
@@ -160,6 +160,9 @@ export class QueryBuilderState {
|
|
160
160
|
setIsQueryChatOpened(val) {
|
161
161
|
this.isQueryChatOpened = val;
|
162
162
|
}
|
163
|
+
setInternalize(val) {
|
164
|
+
this.internalizeState = val;
|
165
|
+
}
|
163
166
|
setShowFunctionsExplorerPanel(val) {
|
164
167
|
this.showFunctionsExplorerPanel = val;
|
165
168
|
}
|
@@ -178,11 +181,8 @@ export class QueryBuilderState {
|
|
178
181
|
setClass(val) {
|
179
182
|
this.class = val;
|
180
183
|
}
|
181
|
-
|
182
|
-
this.
|
183
|
-
}
|
184
|
-
setRuntimeValue(val) {
|
185
|
-
this.runtimeValue = val;
|
184
|
+
setExecutionContextState(val) {
|
185
|
+
this.executionContextState = val;
|
186
186
|
}
|
187
187
|
get isQuerySupported() {
|
188
188
|
return !this.unsupportedQueryState.rawLambda;
|
@@ -255,11 +255,11 @@ export class QueryBuilderState {
|
|
255
255
|
this.resetQueryContent();
|
256
256
|
this.milestoningState.updateMilestoningConfiguration();
|
257
257
|
}
|
258
|
-
this.setMapping(val);
|
258
|
+
this.executionContextState.setMapping(val);
|
259
259
|
}
|
260
260
|
changeRuntime(val) {
|
261
261
|
this.resetQueryResult();
|
262
|
-
this.setRuntimeValue(val);
|
262
|
+
this.executionContextState.setRuntimeValue(val);
|
263
263
|
}
|
264
264
|
getCurrentParameterValues() {
|
265
265
|
if (this.parametersState.parameterStates.length) {
|
@@ -286,8 +286,8 @@ export class QueryBuilderState {
|
|
286
286
|
}
|
287
287
|
buildFromQuery() {
|
288
288
|
assertTrue(this.isQuerySupported, 'Query must be supported to build from function');
|
289
|
-
const mapping = guaranteeNonNullable(this.mapping, 'Mapping required to build from() function');
|
290
|
-
const runtime = guaranteeNonNullable(this.runtimeValue, 'Runtime required to build from query');
|
289
|
+
const mapping = guaranteeNonNullable(this.executionContextState.mapping, 'Mapping required to build from() function');
|
290
|
+
const runtime = guaranteeNonNullable(this.executionContextState.runtimeValue, 'Runtime required to build from query');
|
291
291
|
const runtimePointer = guaranteeType(runtime, RuntimePointer).packageableRuntime;
|
292
292
|
const lambdaFunc = buildLambdaFunction(this);
|
293
293
|
const currentExpression = guaranteeNonNullable(lambdaFunc.expressionSequence[0]);
|
@@ -450,8 +450,10 @@ export class QueryBuilderState {
|
|
450
450
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
451
451
|
const basicState = new INTERNAL__BasicQueryBuilderState(this.applicationStore, this.graphManagerState);
|
452
452
|
basicState.class = this.class;
|
453
|
-
basicState.mapping =
|
454
|
-
|
453
|
+
basicState.executionContextState.mapping =
|
454
|
+
this.executionContextState.mapping;
|
455
|
+
basicState.executionContextState.runtimeValue =
|
456
|
+
this.executionContextState.runtimeValue;
|
455
457
|
return basicState;
|
456
458
|
}
|
457
459
|
get hashCode() {
|