@finos/legend-application-query 13.6.0 → 13.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/CloneQueryServiceSetup.d.ts.map +1 -1
- package/lib/components/CloneQueryServiceSetup.js +6 -2
- package/lib/components/CloneQueryServiceSetup.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +4 -4
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/CreateMappingQuerySetup.d.ts.map +1 -1
- package/lib/components/CreateMappingQuerySetup.js +6 -2
- package/lib/components/CreateMappingQuerySetup.js.map +1 -1
- package/lib/components/LegendQueryWebApplication.d.ts.map +1 -1
- package/lib/components/LegendQueryWebApplication.js +4 -32
- package/lib/components/LegendQueryWebApplication.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +8 -8
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.d.ts.map +1 -1
- package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js +1 -1
- package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js.map +1 -1
- package/lib/components/UpdateExistingServiceQuerySetup.js +1 -1
- package/lib/components/UpdateExistingServiceQuerySetup.js.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js +3 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -1
- package/lib/components/data-cube/ExistingQueryDataCubeViewer.js +2 -1
- package/lib/components/data-cube/ExistingQueryDataCubeViewer.js.map +1 -1
- package/lib/components/data-space/DataSpaceQueryCreator.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceQueryCreator.js +3 -3
- package/lib/components/data-space/DataSpaceQueryCreator.js.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/data-space/DataSpaceTemplateQueryCreator.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceTemplateQueryCreator.js +4 -3
- package/lib/components/data-space/DataSpaceTemplateQueryCreator.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js +7 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js.map +1 -1
- package/package.json +17 -17
- package/src/components/CloneQueryServiceSetup.tsx +10 -2
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +4 -4
- package/src/components/CreateMappingQuerySetup.tsx +10 -2
- package/src/components/LegendQueryWebApplication.tsx +31 -85
- package/src/components/QueryEditor.tsx +24 -10
- package/src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx +1 -3
- package/src/components/UpdateExistingServiceQuerySetup.tsx +1 -1
- package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +14 -2
- package/src/components/data-cube/ExistingQueryDataCubeViewer.tsx +6 -1
- package/src/components/data-space/DataSpaceQueryCreator.tsx +4 -6
- package/src/components/data-space/DataSpaceQuerySetup.tsx +1 -1
- package/src/components/data-space/DataSpaceTemplateQueryCreator.tsx +10 -6
- package/src/stores/data-cube/ExistingQueryDataCubeViewer.ts +7 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAEL,KAAK,EACL,UAAU,EACV,SAAS,EACT,mCAAmC,EAEnC,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAEL,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;
|
1
|
+
{"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAEL,KAAK,EACL,UAAU,EACV,SAAS,EACT,mCAAmC,EAEnC,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;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,CACrE,KAAK,CACN,CAAC;IACF,IAAI,qCAAqC,EAAE,CAAC;QAC1C,SAAS,CACP,iBAAiB,CAAC,YAAY,EAC9B,6BAA6B,CAC9B,CAAC,iBAAiB,CACjB,iBAAiB,CAAC,YAAY,CAAC,uCAAuC,CACpE,qCAAqC,EACrC,QAAQ,CACT,CACF,CAAC;IACJ,CAAC;IAED,iBAAiB,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC;IAC5C,iBAAiB,CAAC,YAAY,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC;IAEzD,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,YACjE,KAAC,gCAAgC,IAC/B,cAAc,EAAE,CAAC,gCAAgC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,YAEjE,KAAC,4BAA4B,cAC3B,KAAC,MAAM,cACL,KAAC,KAAK,IACJ,IAAI,EAAE,0BAA0B,CAAC,mBAAmB,EACpD,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,GACK,GACoB,GACE,GACV,CAC5B,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB,EAAE,oBAAoB,CACrC,iBAAiB,CAAC,iBAAiB,EACnC,kDAAkD,CACnD;KACF,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryDataCubeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryDataCubeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,eAAO,MAAM,eAAe;;CAoB1B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;CAWtC,CAAC"}
|
@@ -23,6 +23,7 @@ import { useEffect } from 'react';
|
|
23
23
|
import { flowResult } from 'mobx';
|
24
24
|
import { DataCube, DataCubeProvider } from '@finos/legend-data-cube';
|
25
25
|
import { QueryBuilderDataCubeApplicationEngine } from '@finos/legend-query-builder';
|
26
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
26
27
|
export const DataCubeWrapper = observer(() => {
|
27
28
|
const applicationStore = useApplicationStore();
|
28
29
|
const store = useExistingQueryDataCubeEditorStore();
|
@@ -37,7 +38,7 @@ export const DataCubeWrapper = observer(() => {
|
|
37
38
|
});
|
38
39
|
export const ExistingQueryDataCubeViewer = observer(() => {
|
39
40
|
const params = useParams();
|
40
|
-
const queryId = params[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID];
|
41
|
+
const queryId = guaranteeNonNullable(params[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID]);
|
41
42
|
return (_jsx(ExistingQueryDataCubeEditorStoreProvider, { queryId: queryId, children: _jsx(DataCubeWrapper, {}) }));
|
42
43
|
});
|
43
44
|
//# sourceMappingURL=ExistingQueryDataCubeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryDataCubeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,gCAAgC,GAEjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,wCAAwC,EACxC,mCAAmC,GACpC,MAAM,+CAA+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AAE,KAAK,CAAC,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,qCAAqC,CAC1D,gBAAgB,CACjB,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,IAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,YAC7D,KAAC,QAAQ,KAAG,GACK,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACvD,MAAM,MAAM,GAAG,SAAS,EAAiC,CAAC;IAC1D,MAAM,OAAO,GAAG,oBAAoB,CAClC,MAAM,CAAC,gCAAgC,CAAC,QAAQ,CAAC,CAClD,CAAC;IAEF,OAAO,CACL,KAAC,wCAAwC,IAAC,OAAO,EAAE,OAAO,YACxD,KAAC,eAAe,KAAG,GACsB,CAC5C,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0EH,eAAO,MAAM,qBAAqB;;
|
1
|
+
{"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0EH,eAAO,MAAM,qBAAqB;;CA4BhC,CAAC"}
|
@@ -50,9 +50,9 @@ const DataSpaceQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, exec
|
|
50
50
|
export const DataSpaceQueryCreator = observer(() => {
|
51
51
|
const applicationStore = useApplicationStore();
|
52
52
|
const parameters = useParams();
|
53
|
-
const gav = parameters
|
54
|
-
const dataSpacePath = parameters
|
55
|
-
const executionContext = parameters
|
53
|
+
const gav = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
|
54
|
+
const dataSpacePath = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
|
55
|
+
const executionContext = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT];
|
56
56
|
const runtimePath = applicationStore.navigationService.navigator.getCurrentLocationParameterValue(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.RUNTIME_PATH);
|
57
57
|
const classPath = applicationStore.navigationService.navigator.getCurrentLocationParameterValue(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH);
|
58
58
|
return (_jsx(DataSpaceQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, executionContext: executionContext, runtimePath: runtimePath, classPath: classPath, children: _jsx(QueryEditor, {}) }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0BAA0B,GAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,0CAA0C,EAC1C,4CAA4C,GAE7C,MAAM,sDAA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AG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,UAAU,GAAG,SAAS,
|
1
|
+
{"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0BAA0B,GAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,0CAA0C,EAC1C,4CAA4C,GAE7C,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,kCAAkC,GAOnC,CAAC,EACJ,QAAQ,EACR,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,SAAS,GACV,EAAE,EAAE;IACH,IAAI,kBAAkB,GAAmC,SAAS,CAAC;IACnE,IAAI,GAAG,IAAI,aAAa,IAAI,gBAAgB,EAAE,CAAC;QAC7C,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACpE,kBAAkB,GAAG;YACnB,OAAO;YACP,UAAU;YACV,SAAS;YACT,aAAa;YACb,gBAAgB;YAChB,WAAW;YACX,SAA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,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,YAEpB,KAAC,WAAW,KAAG,GACoB,CACtC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -48,7 +48,7 @@ const DataSpaceQuerySetupSetupPanelContent = observer((props) => {
|
|
48
48
|
flowResult(queryBuilderState.initializeDataSpaceSetup()).catch(applicationStore.alertUnhandledError);
|
49
49
|
}, [queryBuilderState, applicationStore]);
|
50
50
|
useEffect(() => dataSpaceSearchRef.current?.focus());
|
51
|
-
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector",
|
51
|
+
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", inputRef: dataSpaceSearchRef, className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
|
52
52
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), _jsx("button", { tabIndex: -1, className: "query-builder__setup__data-space-searcher__btn btn--dark", onClick: openDataSpaceAdvancedSearch, title: "Open advanced search for data space...", children: _jsx(SearchIcon, {}) }), queryBuilderState.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: queryBuilderState.advancedSearchState, onClose: () => queryBuilderState.hideAdvancedSearchPanel() }))] }), _jsx("div", { className: "query-builder__setup__config-group__item", children: _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: [], noMatchMessage: "No compatible entity found" }) })] })] }));
|
53
53
|
});
|
54
54
|
export const renderDataSpaceQuerySetupSetupPanelContent = (queryBuilderState) => (_jsx(DataSpaceQuerySetupSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,UAAU,EACV,cAAc,GAEf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAiC,MAAM,qDAAqD,CAAC;AACpG,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,0DAA0D,CAAC;AAElE;;;;;;;;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;IAC/C,MAAM,kBAAkB,GAAG,MAAM,CAA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AG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceTemplateQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8CH,eAAO,MAAM,6BAA6B;;CAyBxC,CAAC"}
|
@@ -22,6 +22,7 @@ import { DataSpaceTemplateQueryCreatorStore } from '../../stores/data-space/Data
|
|
22
22
|
import { QueryEditorStoreContext } from '../QueryEditorStoreProvider.js';
|
23
23
|
import { DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN, } from '../../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
|
24
24
|
import { QueryEditor } from '../QueryEditor.js';
|
25
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
25
26
|
const DataSpaceTemplateQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, templateQueryId }) => {
|
26
27
|
const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
|
27
28
|
const applicationStore = useLegendQueryApplicationStore();
|
@@ -31,9 +32,9 @@ const DataSpaceTemplateQueryCreatorStoreProvider = ({ children, gav, dataSpacePa
|
|
31
32
|
};
|
32
33
|
export const DataSpaceTemplateQueryCreator = observer(() => {
|
33
34
|
const parameters = useParams();
|
34
|
-
const gav = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
|
35
|
-
const dataSpacePath = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
|
36
|
-
const templateQueryId = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID];
|
35
|
+
const gav = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]);
|
36
|
+
const dataSpacePath = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]);
|
37
|
+
const templateQueryId = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID]);
|
37
38
|
return (_jsx(DataSpaceTemplateQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, templateQueryId: templateQueryId, children: _jsx(QueryEditor, {}) }));
|
38
39
|
});
|
39
40
|
//# sourceMappingURL=DataSpaceTemplateQueryCreator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceTemplateQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,qDAAqD,GAEtD,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,qDAAqD,GAEtD,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,0CAA0C,GAK3C,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,EAAE;IACzD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACpE,MAAM,gBAAgB,GAAG,8BAA8B,EAAE,CAAC;IAC1D,MAAM,SAAS,GAAG,uBAAuB,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,kCAAkC,CACpC,gBAAgB,EAChB,SAAS,CAAC,iBAAiB,EAC3B,OAAO,EACP,UAAU,EACV,SAAS,EACT,aAAa,EACb,eAAe,CAChB,CACJ,CAAC;IACF,OAAO,CACL,KAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC3C,QAAQ,GACwB,CACpC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACzD,MAAM,UAAU,GAAG,SAAS,EAA2C,CAAC;IACxE,MAAM,GAAG,GAAG,oBAAoB,CAC9B,UAAU,CAAC,qDAAqD,CAAC,GAAG,CAAC,CACtE,CAAC;IACF,MAAM,aAAa,GAAG,oBAAoB,CACxC,UAAU,CACR,qDAAqD,CAAC,eAAe,CACtE,CACF,CAAC;IACF,MAAM,eAAe,GAAG,oBAAoB,CAC1C,UAAU,CACR,qDAAqD,CAAC,iBAAiB,CACxE,CACF,CAAC;IAEF,OAAO,CACL,KAAC,0CAA0C,IACzC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,YAEhC,KAAC,WAAW,KAAG,GAC4B,CAC9C,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-query",
|
3
|
-
"version": "13.6.
|
3
|
+
"version": "13.6.2",
|
4
4
|
"description": "Legend Query application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"@finos/legend-storage": "workspace:*",
|
57
57
|
"@testing-library/dom": "10.4.0",
|
58
58
|
"@testing-library/react": "16.0.1",
|
59
|
-
"@types/react": "18.3.
|
59
|
+
"@types/react": "18.3.11",
|
60
60
|
"@types/react-dom": "18.3.0",
|
61
61
|
"mobx": "6.13.3",
|
62
62
|
"mobx-react-lite": "4.0.7",
|
@@ -68,12 +68,12 @@
|
|
68
68
|
"@finos/legend-dev-utils": "workspace:*",
|
69
69
|
"@jest/globals": "29.7.0",
|
70
70
|
"cross-env": "7.0.3",
|
71
|
-
"eslint": "
|
71
|
+
"eslint": "9.12.0",
|
72
72
|
"jest": "29.7.0",
|
73
73
|
"npm-run-all": "4.1.5",
|
74
74
|
"rimraf": "6.0.1",
|
75
|
-
"sass": "1.79.
|
76
|
-
"typescript": "5.6.
|
75
|
+
"sass": "1.79.4",
|
76
|
+
"typescript": "5.6.3"
|
77
77
|
},
|
78
78
|
"peerDependencies": {
|
79
79
|
"react": "^18.0.0"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAGzE,qBAAa,gCAAgC;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IACvD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,0BAA0B,GAAG,SAAS,CAAC;gBAG7C,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM;IAehB,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAmDjC"}
|
@@ -17,6 +17,7 @@ import { GraphManagerState, } from '@finos/legend-graph';
|
|
17
17
|
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
18
18
|
import { assertErrorThrown } from '@finos/legend-shared';
|
19
19
|
import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
|
20
|
+
import { flow, makeObservable, observable } from 'mobx';
|
20
21
|
export class ExistingQueryDataCubeEditorStore {
|
21
22
|
applicationStore;
|
22
23
|
depotServerClient;
|
@@ -24,6 +25,10 @@ export class ExistingQueryDataCubeEditorStore {
|
|
24
25
|
queryId;
|
25
26
|
engine;
|
26
27
|
constructor(applicationStore, depotServerClient, queryId) {
|
28
|
+
makeObservable(this, {
|
29
|
+
initialize: flow,
|
30
|
+
engine: observable,
|
31
|
+
});
|
27
32
|
this.applicationStore = applicationStore;
|
28
33
|
this.depotServerClient = depotServerClient;
|
29
34
|
this.graphManagerState = new GraphManagerState(applicationStore.pluginManager, applicationStore.logService);
|
@@ -47,7 +52,8 @@ export class ExistingQueryDataCubeEditorStore {
|
|
47
52
|
const content = queryInfo.content;
|
48
53
|
const execConext = (yield this.graphManagerState.graphManager.resolveQueryInfoExecutionContext(queryInfo, () => this.depotServerClient.getVersionEntities(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId)));
|
49
54
|
const lambda = (yield this.graphManagerState.graphManager.pureCodeToLambda(content));
|
50
|
-
|
55
|
+
// TODO: we should be able to call engine and convert lambda to relation if not one.
|
56
|
+
const engine = new QueryBuilderDataCubeEngine(lambda, undefined, execConext.mapping, execConext.runtime, this.graphManagerState);
|
51
57
|
this.engine = engine;
|
52
58
|
}
|
53
59
|
catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAExD,MAAM,OAAO,gCAAgC;IAClC,gBAAgB,CAA8B;IAC9C,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,OAAO,CAAS;IACzB,MAAM,CAAyC;IAE/C,YACE,gBAA6C,EAC7C,iBAAoC,EACpC,OAAe;QAEf,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,IAAI,iBAAiB,CAC5C,gBAA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B,IAAI,CAAC,iBAAiB,CACvB,CAAC;YACF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACnD,wCAAwC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CACzE,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-query",
|
3
|
-
"version": "13.6.
|
3
|
+
"version": "13.6.2",
|
4
4
|
"description": "Legend Query application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,20 +43,20 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "16.0.
|
47
|
-
"@finos/legend-art": "7.1.
|
48
|
-
"@finos/legend-code-editor": "2.0.
|
49
|
-
"@finos/legend-data-cube": "0.0.
|
50
|
-
"@finos/legend-extension-dsl-data-space": "10.3.
|
51
|
-
"@finos/legend-graph": "31.10.
|
52
|
-
"@finos/legend-lego": "2.0.
|
53
|
-
"@finos/legend-query-builder": "4.15.
|
54
|
-
"@finos/legend-server-depot": "6.0.
|
55
|
-
"@finos/legend-shared": "10.0.
|
56
|
-
"@finos/legend-storage": "3.0.
|
46
|
+
"@finos/legend-application": "16.0.3",
|
47
|
+
"@finos/legend-art": "7.1.62",
|
48
|
+
"@finos/legend-code-editor": "2.0.3",
|
49
|
+
"@finos/legend-data-cube": "0.0.8",
|
50
|
+
"@finos/legend-extension-dsl-data-space": "10.3.80",
|
51
|
+
"@finos/legend-graph": "31.10.37",
|
52
|
+
"@finos/legend-lego": "2.0.5",
|
53
|
+
"@finos/legend-query-builder": "4.15.2",
|
54
|
+
"@finos/legend-server-depot": "6.0.62",
|
55
|
+
"@finos/legend-shared": "10.0.57",
|
56
|
+
"@finos/legend-storage": "3.0.107",
|
57
57
|
"@testing-library/dom": "10.4.0",
|
58
58
|
"@testing-library/react": "16.0.1",
|
59
|
-
"@types/react": "18.3.
|
59
|
+
"@types/react": "18.3.11",
|
60
60
|
"@types/react-dom": "18.3.0",
|
61
61
|
"mobx": "6.13.3",
|
62
62
|
"mobx-react-lite": "4.0.7",
|
@@ -65,15 +65,15 @@
|
|
65
65
|
"serializr": "3.0.2"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
|
-
"@finos/legend-dev-utils": "2.1.
|
68
|
+
"@finos/legend-dev-utils": "2.1.25",
|
69
69
|
"@jest/globals": "29.7.0",
|
70
70
|
"cross-env": "7.0.3",
|
71
|
-
"eslint": "
|
71
|
+
"eslint": "9.12.0",
|
72
72
|
"jest": "29.7.0",
|
73
73
|
"npm-run-all": "4.1.5",
|
74
74
|
"rimraf": "6.0.1",
|
75
|
-
"sass": "1.79.
|
76
|
-
"typescript": "5.6.
|
75
|
+
"sass": "1.79.4",
|
76
|
+
"typescript": "5.6.3"
|
77
77
|
},
|
78
78
|
"peerDependencies": {
|
79
79
|
"react": "^18.0.0"
|
@@ -260,7 +260,11 @@ const CloneQueryServiceSetupContent = observer(() => {
|
|
260
260
|
!projectOptions.length
|
261
261
|
}
|
262
262
|
isLoading={querySetupState.loadProjectsState.isInProgress}
|
263
|
-
onChange={
|
263
|
+
onChange={(option: ProjectOption | null) => {
|
264
|
+
onProjectOptionChange(option).catch(
|
265
|
+
applicationStore.alertUnhandledError,
|
266
|
+
);
|
267
|
+
}}
|
264
268
|
value={selectedProjectOption}
|
265
269
|
placeholder={projectSelectorPlaceholder}
|
266
270
|
isClearable={true}
|
@@ -278,7 +282,11 @@ const CloneQueryServiceSetupContent = observer(() => {
|
|
278
282
|
options={versionOptions}
|
279
283
|
disabled={!querySetupState.currentProject}
|
280
284
|
isLoading={fetchSelectedProjectVersionsStatus.isInProgress}
|
281
|
-
onChange={
|
285
|
+
onChange={(option: VersionOption | null) => {
|
286
|
+
onVersionOptionChange(option).catch(
|
287
|
+
applicationStore.alertUnhandledError,
|
288
|
+
);
|
289
|
+
}}
|
282
290
|
value={selectedVersionOption}
|
283
291
|
placeholder={
|
284
292
|
fetchSelectedProjectVersionsStatus.isInProgress
|
@@ -109,28 +109,28 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
109
109
|
{
|
110
110
|
key: 'clone-service-query-setup-application-page',
|
111
111
|
addressPatterns: [LEGEND_QUERY_ROUTE_PATTERN.CLONE_SERVICE_QUERY_SETUP],
|
112
|
-
renderer: CloneQueryServiceSetup
|
112
|
+
renderer: () => <CloneQueryServiceSetup />,
|
113
113
|
},
|
114
114
|
{
|
115
115
|
key: 'query-productionizer-setup-application-page',
|
116
116
|
addressPatterns: [
|
117
117
|
LEGEND_QUERY_ROUTE_PATTERN.QUERY_PRODUCTIONIZER_SETUP,
|
118
118
|
],
|
119
|
-
renderer: QueryProductionizerSetup
|
119
|
+
renderer: () => <QueryProductionizerSetup />,
|
120
120
|
},
|
121
121
|
{
|
122
122
|
key: 'update-existing-service-query-setup-application-page',
|
123
123
|
addressPatterns: [
|
124
124
|
LEGEND_QUERY_ROUTE_PATTERN.UPDATE_EXISTING_SERVICE_QUERY_SETUP,
|
125
125
|
],
|
126
|
-
renderer: UpdateExistingServiceQuerySetup
|
126
|
+
renderer: () => <UpdateExistingServiceQuerySetup />,
|
127
127
|
},
|
128
128
|
{
|
129
129
|
key: 'load-project-service-query-setup-application-page',
|
130
130
|
addressPatterns: [
|
131
131
|
LEGEND_QUERY_ROUTE_PATTERN.LOAD_PROJECT_SERVICE_QUERY_SETUP,
|
132
132
|
],
|
133
|
-
renderer: LoadProjectServiceQuerySetup
|
133
|
+
renderer: () => <LoadProjectServiceQuerySetup />,
|
134
134
|
},
|
135
135
|
];
|
136
136
|
}
|
@@ -279,7 +279,11 @@ const CreateMappingQuerySetupContent = observer(() => {
|
|
279
279
|
!projectOptions.length
|
280
280
|
}
|
281
281
|
isLoading={setupStore.loadProjectsState.isInProgress}
|
282
|
-
onChange={
|
282
|
+
onChange={(option: ProjectOption | null) => {
|
283
|
+
onProjectOptionChange(option).catch(
|
284
|
+
applicationStore.alertUnhandledError,
|
285
|
+
);
|
286
|
+
}}
|
283
287
|
value={selectedProjectOption}
|
284
288
|
placeholder={projectSelectorPlaceholder}
|
285
289
|
isClearable={true}
|
@@ -297,7 +301,11 @@ const CreateMappingQuerySetupContent = observer(() => {
|
|
297
301
|
options={versionOptions}
|
298
302
|
disabled={!setupStore.currentProject}
|
299
303
|
isLoading={fetchSelectedProjectVersionsStatus.isInProgress}
|
300
|
-
onChange={
|
304
|
+
onChange={(option: VersionOption | null) => {
|
305
|
+
onVersionOptionChange(option).catch(
|
306
|
+
applicationStore.alertUnhandledError,
|
307
|
+
);
|
308
|
+
}}
|
301
309
|
value={selectedVersionOption}
|
302
310
|
placeholder={
|
303
311
|
fetchSelectedProjectVersionsStatus.isInProgress
|
@@ -25,9 +25,8 @@ import {
|
|
25
25
|
import {
|
26
26
|
BrowserEnvironmentProvider,
|
27
27
|
Route,
|
28
|
-
|
28
|
+
Routes,
|
29
29
|
generateExtensionUrlPattern,
|
30
|
-
type TEMPORARY__ReactRouterComponentType,
|
31
30
|
} from '@finos/legend-application/browser';
|
32
31
|
import {
|
33
32
|
LegendQueryFrameworkProvider,
|
@@ -59,125 +58,72 @@ const LegendQueryWebApplicationRouter = observer(() => {
|
|
59
58
|
return (
|
60
59
|
<div className="app">
|
61
60
|
{baseStore.initState.hasCompleted && (
|
62
|
-
<
|
61
|
+
<Routes>
|
63
62
|
<Route
|
64
|
-
exact={true}
|
65
63
|
path={LEGEND_QUERY_ROUTE_PATTERN.DEFAULT}
|
66
|
-
|
67
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
68
|
-
DataSpaceQueryCreator as TEMPORARY__ReactRouterComponentType
|
69
|
-
}
|
64
|
+
element={<DataSpaceQueryCreator />}
|
70
65
|
/>
|
71
66
|
<Route
|
72
|
-
exact={true}
|
73
67
|
path={LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY_SETUP}
|
74
|
-
|
75
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
76
|
-
EditExistingQuerySetup as TEMPORARY__ReactRouterComponentType
|
77
|
-
}
|
68
|
+
element={<EditExistingQuerySetup />}
|
78
69
|
/>
|
79
70
|
|
80
71
|
<Route
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
),
|
86
|
-
]}
|
87
|
-
component={
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
89
|
-
DataSpaceTemplateQueryCreator as TEMPORARY__ReactRouterComponentType
|
90
|
-
}
|
72
|
+
path={generateExtensionUrlPattern(
|
73
|
+
LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY,
|
74
|
+
)}
|
75
|
+
element={<DataSpaceTemplateQueryCreator />}
|
91
76
|
/>
|
92
77
|
|
93
78
|
<Route
|
94
|
-
exact={true}
|
95
79
|
path={LEGEND_QUERY_ROUTE_PATTERN.SETUP}
|
96
|
-
|
97
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
98
|
-
QuerySetupLandingPage as TEMPORARY__ReactRouterComponentType
|
99
|
-
}
|
80
|
+
element={<QuerySetupLandingPage />}
|
100
81
|
/>
|
101
82
|
|
102
83
|
<Route
|
103
|
-
exact={true}
|
104
84
|
path={LEGEND_QUERY_ROUTE_PATTERN.CREATE_MAPPING_QUERY_SETUP}
|
105
|
-
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
107
|
-
CreateMappingQuerySetup as TEMPORARY__ReactRouterComponentType
|
108
|
-
}
|
85
|
+
element={<CreateMappingQuerySetup />}
|
109
86
|
/>
|
110
87
|
<Route
|
111
|
-
exact={true}
|
112
88
|
path={LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY}
|
113
|
-
|
114
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
115
|
-
ExistingQueryEditor as TEMPORARY__ReactRouterComponentType
|
116
|
-
}
|
89
|
+
element={<ExistingQueryEditor />}
|
117
90
|
/>
|
118
91
|
<Route
|
119
|
-
exact={true}
|
120
92
|
path={LEGEND_QUERY_ROUTE_PATTERN.DATA_CUBE_EXISTING_QUERY}
|
121
|
-
|
122
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
123
|
-
ExistingQueryDataCubeViewer as TEMPORARY__ReactRouterComponentType
|
124
|
-
}
|
93
|
+
element={<ExistingQueryDataCubeViewer />}
|
125
94
|
/>
|
126
95
|
<Route
|
127
|
-
exact={true}
|
128
96
|
path={LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_SERVICE_QUERY}
|
129
|
-
|
130
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
131
|
-
ServiceQueryCreator as TEMPORARY__ReactRouterComponentType
|
132
|
-
}
|
97
|
+
element={<ServiceQueryCreator />}
|
133
98
|
/>
|
134
99
|
<Route
|
135
|
-
exact={true}
|
136
100
|
path={LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_MAPPING_QUERY}
|
137
|
-
|
138
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
139
|
-
MappingQueryCreator as TEMPORARY__ReactRouterComponentType
|
140
|
-
}
|
101
|
+
element={<MappingQueryCreator />}
|
141
102
|
/>
|
103
|
+
|
142
104
|
{/* LEGACY DATA SPACE */}
|
143
105
|
<Route
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
),
|
149
|
-
]}
|
150
|
-
component={
|
151
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
152
|
-
DataSpaceQueryCreator as TEMPORARY__ReactRouterComponentType
|
153
|
-
}
|
106
|
+
path={generateExtensionUrlPattern(
|
107
|
+
LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP,
|
108
|
+
)}
|
109
|
+
element={<DataSpaceQueryCreator />}
|
154
110
|
/>
|
155
111
|
|
156
112
|
<Route
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
),
|
162
|
-
]}
|
163
|
-
component={
|
164
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
165
|
-
DataSpaceQueryCreator as TEMPORARY__ReactRouterComponentType
|
166
|
-
}
|
113
|
+
path={generateExtensionUrlPattern(
|
114
|
+
LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE,
|
115
|
+
)}
|
116
|
+
element={<DataSpaceQueryCreator />}
|
167
117
|
/>
|
168
118
|
|
169
|
-
{extraApplicationPageEntries.
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
}
|
178
|
-
/>
|
179
|
-
))}
|
180
|
-
</Switch>
|
119
|
+
{extraApplicationPageEntries.flatMap((entry) =>
|
120
|
+
entry.addressPatterns
|
121
|
+
.map(generateExtensionUrlPattern)
|
122
|
+
.map((path) => (
|
123
|
+
<Route key={entry.key} path={path} element={entry.renderer()} />
|
124
|
+
)),
|
125
|
+
)}
|
126
|
+
</Routes>
|
181
127
|
)}
|
182
128
|
</div>
|
183
129
|
);
|