@finos/legend-application-query 11.0.11 → 11.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendQuery.d.ts +0 -1
- package/lib/application/LegendQuery.d.ts.map +1 -1
- package/lib/application/LegendQuery.js +2 -9
- package/lib/application/LegendQuery.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts +2 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +8 -0
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/EditExistingQuerySetup.js +3 -2
- package/lib/components/EditExistingQuerySetup.js.map +1 -1
- package/lib/components/QueryProductionizerSetup.js +3 -2
- package/lib/components/QueryProductionizerSetup.js.map +1 -1
- package/lib/components/QuerySetup.js +2 -2
- package/lib/index.css +1 -1
- package/lib/package.json +7 -10
- package/package.json +15 -18
- package/src/application/LegendQuery.tsx +0 -11
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +13 -1
- package/src/components/EditExistingQuerySetup.tsx +4 -4
- package/src/components/QueryProductionizerSetup.tsx +4 -4
- package/src/components/QuerySetup.tsx +2 -2
@@ -16,7 +16,6 @@
|
|
16
16
|
import { type LegendApplicationConfig, LegendApplication, type LegendApplicationConfigurationInput } from '@finos/legend-application';
|
17
17
|
import { LegendQueryPluginManager } from './LegendQueryPluginManager.js';
|
18
18
|
import { type LegendQueryApplicationConfigurationData, LegendQueryApplicationConfig } from './LegendQueryApplicationConfig.js';
|
19
|
-
export declare const setupLegendQueryUILibrary: () => Promise<void>;
|
20
19
|
export declare class LegendQuery extends LegendApplication {
|
21
20
|
config: LegendQueryApplicationConfig;
|
22
21
|
pluginManager: LegendQueryPluginManager;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQuery.d.ts","sourceRoot":"","sources":["../../src/application/LegendQuery.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAE5B,iBAAiB,
|
1
|
+
{"version":3,"file":"LegendQuery.d.ts","sourceRoot":"","sources":["../../src/application/LegendQuery.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,uBAAuB,EAE5B,iBAAiB,EACjB,KAAK,mCAAmC,EAIzC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EACL,KAAK,uCAAuC,EAC5C,4BAA4B,EAC7B,MAAM,mCAAmC,CAAC;AAO3C,qBAAa,WAAY,SAAQ,iBAAiB;IACxC,MAAM,EAAE,4BAA4B,CAAC;IACrC,aAAa,EAAE,wBAAwB,CAAC;IAEhD,MAAM,CAAC,MAAM,IAAI,WAAW;IActB,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,uCAAuC,CAAC,GAClF,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAevC"}
|
@@ -15,17 +15,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { createRoot } from 'react-dom/client';
|
18
|
-
import { ApplicationStoreProvider, LegendApplication,
|
18
|
+
import { ApplicationStoreProvider, LegendApplication, BrowserRouter, WebApplicationNavigatorProvider, Core_LegendApplicationPlugin, } from '@finos/legend-application';
|
19
19
|
import { LegendQueryApplication } from '../components/LegendQueryApplication.js';
|
20
20
|
import { LegendQueryPluginManager } from './LegendQueryPluginManager.js';
|
21
21
|
import { getRootElement } from '@finos/legend-art';
|
22
22
|
import { Core_GraphManagerPreset } from '@finos/legend-graph';
|
23
23
|
import { LegendQueryApplicationConfig, } from './LegendQueryApplicationConfig.js';
|
24
|
-
import { QueryBuilder_GraphManagerPreset, QueryBuilder_LegendApplicationPlugin,
|
24
|
+
import { QueryBuilder_GraphManagerPreset, QueryBuilder_LegendApplicationPlugin, } from '@finos/legend-query-builder';
|
25
25
|
import { Core_LegendQueryApplicationPlugin } from '../components/Core_LegendQueryApplicationPlugin.js';
|
26
|
-
export const setupLegendQueryUILibrary = async () => {
|
27
|
-
await setupQueryBuilderUILibrary();
|
28
|
-
};
|
29
26
|
export class LegendQuery extends LegendApplication {
|
30
27
|
static create() {
|
31
28
|
const application = new LegendQuery(LegendQueryPluginManager.create());
|
@@ -44,10 +41,6 @@ export class LegendQuery extends LegendApplication {
|
|
44
41
|
return new LegendQueryApplicationConfig(input);
|
45
42
|
}
|
46
43
|
async loadApplication() {
|
47
|
-
// Setup React application libraries
|
48
|
-
await setupLegendApplicationUILibrary(this.pluginManager, this.logger);
|
49
|
-
await setupLegendQueryUILibrary();
|
50
|
-
// Render React application
|
51
44
|
const rootElement = createRoot(getRootElement());
|
52
45
|
rootElement.render(_jsx(BrowserRouter, { basename: this.baseUrl, children: _jsx(WebApplicationNavigatorProvider, { children: _jsx(ApplicationStoreProvider, { config: this.config, pluginManager: this.pluginManager, children: _jsx(LegendQueryApplication, { config: this.config }) }) }) }));
|
53
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQuery.js","sourceRoot":"","sources":["../../src/application/LegendQuery.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,
|
1
|
+
{"version":3,"file":"LegendQuery.js","sourceRoot":"","sources":["../../src/application/LegendQuery.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAEL,wBAAwB,EACxB,iBAAiB,EAEjB,aAAa,EACb,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;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AM,GAAI,GACtB,GACK,GACpB,CACjB,CAAC;IACJ,CAAC;CACF"}
|
@@ -14,10 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { LegendQueryApplicationPlugin, type QuerySetupActionConfiguration } from '../stores/LegendQueryApplicationPlugin.js';
|
17
|
-
import type
|
17
|
+
import { type ApplicationPageEntry, type LegendApplicationSetup } from '@finos/legend-application';
|
18
18
|
export declare class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
19
19
|
static NAME: string;
|
20
20
|
constructor();
|
21
|
+
getExtraApplicationSetups(): LegendApplicationSetup[];
|
21
22
|
getExtraApplicationPageEntries(): ApplicationPageEntry[];
|
22
23
|
getExtraQuerySetupActionConfigurations(): QuerySetupActionConfiguration[];
|
23
24
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAE5B,KAAK,6BAA6B,EACnC,MAAM,2CAA2C,CAAC;AAoBnD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAE5B,KAAK,6BAA6B,EACnC,MAAM,2CAA2C,CAAC;AAoBnD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAMnC,qBAAa,iCAAkC,SAAQ,4BAA4B;IACjF,MAAM,CAAC,IAAI,SAAiD;;IAMnD,yBAAyB,IAAI,sBAAsB,EAAE;IAQrD,8BAA8B,IAAI,oBAAoB,EAAE;IA6BxD,sCAAsC,IAAI,6BAA6B,EAAE;CAqGnF"}
|
@@ -18,6 +18,7 @@ import { LegendQueryApplicationPlugin, QuerySetupActionTag, } from '../stores/Le
|
|
18
18
|
import packageJson from '../../package.json';
|
19
19
|
import { ArrowCircleUpIcon, BrainIcon, DroidIcon, ManageSearchIcon, PlusIcon, RobotIcon, } from '@finos/legend-art';
|
20
20
|
import { generateCloneServiceQuerySetupRoute, generateCreateMappingQuerySetupRoute, generateEditExistingQuerySetupRoute, generateLoadProjectServiceQuerySetup, generateQueryProductionizerSetupRoute, generateUpdateExistingServiceQuerySetup, LEGEND_QUERY_ROUTE_PATTERN, } from '../application/LegendQueryNavigation.js';
|
21
|
+
import { setupPureLanguageService, } from '@finos/legend-application';
|
21
22
|
import { CloneQueryServiceSetup } from './CloneQueryServiceSetup.js';
|
22
23
|
import { QueryProductionizerSetup } from './QueryProductionizerSetup.js';
|
23
24
|
import { UpdateExistingServiceQuerySetup } from './UpdateExistingServiceQuerySetup.js';
|
@@ -27,6 +28,13 @@ class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
|
27
28
|
constructor() {
|
28
29
|
super(Core_LegendQueryApplicationPlugin.NAME, packageJson.version);
|
29
30
|
}
|
31
|
+
getExtraApplicationSetups() {
|
32
|
+
return [
|
33
|
+
async (applicationStore) => {
|
34
|
+
setupPureLanguageService([], []);
|
35
|
+
},
|
36
|
+
];
|
37
|
+
}
|
30
38
|
getExtraApplicationPageEntries() {
|
31
39
|
return [
|
32
40
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Core_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GAEpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;
|
1
|
+
{"version":3,"file":"Core_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GAEpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,wBAAwB,GAGzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAa,iCAAkC,SAAQ,4BAA4B;IACjF,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAE5D;QACE,KAAK,CAAC,iCAAiC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAEQ,yBAAyB;QAChC,OAAO;YACL,KAAK,EAAE,gBAAgB,EAAE,EAAE;gBACzB,wBAAw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AAC,SAAS,KAAG;aACpB;YACD;gBACE,GAAG,EAAE,4BAA4B;gBACjC,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,KAAK;gBACrB,GAAG,EAAE,mBAAmB,CAAC,iBAAiB;gBAC1C,MAAM,EAAE,KAAK,EAAE,UAAsC,EAAE,EAAE;oBACvD,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAClE,oCAAoC,EAAE,CACvC,CAAC;gBACJ,CAAC;gBACD,KAAK,EAAE,mCAAmC;gBAC1C,SAAS,EAAE,kDAAkD;gBAC7D,IAAI,EAAE,KAAC,SAAS,KAAG;aACpB;YACD;gBACE,GAAG,EAAE,qBAAqB;gBAC1B,UAAU,EAAE,KAAK;gBACjB,cAAc,EAAE,IAAI;gBACpB,GAAG,EAAE,mBAAmB,CAAC,iBAAiB;gBAC1C,MAAM,EAAE,KAAK,EAAE,UAAsC,EAAE,EAAE;oBACvD,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAClE,qCAAqC,EAAE,CACxC,CAAC;gBACJ,CAAC;gBACD,KAAK,EAAE,iCAAiC;gBACxC,SAAS,EAAE,wDAAwD;gBACnE,IAAI,EAAE,KAAC,iBAAiB,KAAG;aAC5B;SACF,CAAC;IACJ,CAAC;;SAhJU,iCAAiC"}
|
@@ -21,11 +21,12 @@ import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
21
21
|
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
22
22
|
import { generateExistingQueryEditorRoute, generateQuerySetupRoute, } from '../application/LegendQueryNavigation.js';
|
23
23
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
24
|
-
import { useApplicationStore,
|
24
|
+
import { useApplicationStore, CODE_EDITOR_LANGUAGE, } from '@finos/legend-application';
|
25
25
|
import { buildQueryOption, } from '@finos/legend-query-builder';
|
26
26
|
import { useLegendQueryApplicationStore } from './LegendQueryBaseStoreProvider.js';
|
27
27
|
import { EditExistingQuerySetupStore } from '../stores/EditExistingQuerySetupStore.js';
|
28
28
|
import { BaseQuerySetup, BaseQuerySetupStoreContext } from './QuerySetup.js';
|
29
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
29
30
|
const EditExistingQuerySetupStoreProvider = ({ children }) => {
|
30
31
|
const applicationStore = useLegendQueryApplicationStore();
|
31
32
|
const depotServerClient = useDepotServerClient();
|
@@ -102,7 +103,7 @@ const EditExistingQuerySetupContent = observer(() => {
|
|
102
103
|
'query-setup__wizard__header__btn--ready': canProceed,
|
103
104
|
}), onClick: next, disabled: !canProceed, title: "Edit query", children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "query-setup__wizard__content", children: [_jsxs("div", { className: "query-setup__wizard__group query-setup__wizard__group--inline", children: [_jsx("div", { className: "query-setup__wizard__group__title", children: _jsx(SearchIcon, {}) }), _jsxs("div", { className: "query-setup__existing-query__input", children: [_jsx(CustomSelectorInput, { ref: querySearchRef, className: "query-setup__wizard__selector", options: queryOptions, isLoading: setupStore.loadQueriesState.isInProgress, onInputChange: onSearchTextChange, inputValue: searchText, onChange: onQueryOptionChange, value: selectedQueryOption, placeholder: "Search for query by name...", isClearable: true, escapeClearsValue: true, darkMode: true, formatOptionLabel: formatQueryOptionLabel }), _jsx("button", { className: clsx('query-setup__existing-query__btn', {
|
104
105
|
'query-setup__existing-query__btn--active': setupStore.showCurrentUserQueriesOnly,
|
105
|
-
}), tabIndex: -1, title: `[${setupStore.showCurrentUserQueriesOnly ? 'on' : 'off'}] Toggle show only queries of current user`, onClick: toggleShowCurrentUserQueriesOnly, children: _jsx(UserIcon, {}) })] })] }), _jsxs("div", { className: "query-setup__existing-query__preview", children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.loadQueryState.isInProgress }), setupStore.currentQuery && (_jsxs(_Fragment, { children: [!setupStore.currentQueryInfo && (_jsx(BlankPanelContent, { children: `Can't preview query` })), setupStore.currentQueryInfo && (_jsx(
|
106
|
+
}), tabIndex: -1, title: `[${setupStore.showCurrentUserQueriesOnly ? 'on' : 'off'}] Toggle show only queries of current user`, onClick: toggleShowCurrentUserQueriesOnly, children: _jsx(UserIcon, {}) })] })] }), _jsxs("div", { className: "query-setup__existing-query__preview", children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.loadQueryState.isInProgress }), setupStore.currentQuery && (_jsxs(_Fragment, { children: [!setupStore.currentQueryInfo && (_jsx(BlankPanelContent, { children: `Can't preview query` })), setupStore.currentQueryInfo && (_jsx(CodeEditor, { inputValue: setupStore.currentQueryInfo.content, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.PURE, showMiniMap: false, hideGutter: true }))] })), !setupStore.currentQuery && (_jsx(BlankPanelContent, { children: "No query to preview" }))] })] })] }));
|
106
107
|
});
|
107
108
|
export const EditExistingQuerySetup = () => (_jsx(EditExistingQuerySetupStoreProvider, { children: _jsx(BaseQuerySetup, { children: _jsx(EditExistingQuerySetupContent, {}) }) }));
|
108
109
|
//# sourceMappingURL=EditExistingQuerySetup.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditExistingQuerySetup.js","sourceRoot":"","sources":["../../src/components/EditExistingQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACL,mBAAmB,EACnB,
|
1
|
+
{"version":3,"file":"EditExistingQuerySetup.js","sourceRoot":"","sources":["../../src/components/EditExistingQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,MAAM,mCAAmC,GAEpC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,8BAA8B,E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,0BAA0B;yCACxC,CAAC,EACF,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,IACL,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KACjD,4CAA4C,EAC5C,OAAO,EAAE,gCAAgC,YAEzC,KAAC,QAAQ,KAAG,GACL,IACL,IACF,EACN,eAAK,SAAS,EAAC,sCAAsC,aACnD,KAAC,qBAAqB,IACpB,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,YAAY,GACjD,EACD,UAAU,CAAC,YAAY,IAAI,CAC1B,8BACG,CAAC,UAAU,CAAC,gBAAgB,IAAI,CAC/B,KAAC,iBAAiB,cAAE,qBAAqB,GAAqB,CAC/D,EACA,UAAU,CAAC,gBAAgB,IAAI,CAC9B,KAAC,UAAU,IACT,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAC/C,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EACnC,WAAW,EAAE,KAAK,EAClB,UAAU,EAAE,IAAI,GAChB,CACH,IACA,CACJ,EACA,CAAC,UAAU,CAAC,YAAY,IAAI,CAC3B,KAAC,iBAAiB,sCAAwC,CAC3D,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAa,GAAG,EAAE,CAAC,CACpD,KAAC,mCAAmC,cAClC,KAAC,cAAc,cACb,KAAC,6BAA6B,KAAG,GAClB,GACmB,CACvC,CAAC"}
|
@@ -20,12 +20,13 @@ import { flowResult } from 'mobx';
|
|
20
20
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
21
21
|
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
22
22
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
23
|
-
import {
|
23
|
+
import { CODE_EDITOR_LANGUAGE, useApplicationStore, } from '@finos/legend-application';
|
24
24
|
import { useLegendQueryApplicationStore } from './LegendQueryBaseStoreProvider.js';
|
25
25
|
import { QueryProductionizerSetupStore } from '../stores/QueryProductionizerSetupStore.js';
|
26
26
|
import { BaseQuerySetup, BaseQuerySetupStoreContext } from './QuerySetup.js';
|
27
27
|
import { buildQueryOption, } from '@finos/legend-query-builder';
|
28
28
|
import { generateQuerySetupRoute } from '../application/LegendQueryNavigation.js';
|
29
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
29
30
|
const QueryProductionizerSetupStoreProvider = ({ children }) => {
|
30
31
|
const applicationStore = useLegendQueryApplicationStore();
|
31
32
|
const depotServerClient = useDepotServerClient();
|
@@ -79,7 +80,7 @@ const QueryProductionizerSetupContent = observer(() => {
|
|
79
80
|
}, []);
|
80
81
|
return (_jsxs("div", { className: "query-setup__wizard query-setup__productionize-query", children: [_jsxs("div", { className: "query-setup__wizard__header query-setup__productionize-query__header", children: [_jsx("button", { className: "query-setup__wizard__header__btn", onClick: back, title: "Back to Main Menu", children: _jsx(ArrowLeftIcon, {}) }), _jsx("div", { className: "query-setup__wizard__header__title", children: "Productionizing an existing query..." }), _jsx("button", { className: clsx('query-setup__wizard__header__btn', {
|
81
82
|
'query-setup__wizard__header__btn--ready': canProceed,
|
82
|
-
}), onClick: next, disabled: !canProceed, title: "Productionize query", children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "query-setup__wizard__content", children: [_jsxs("div", { className: "query-setup__wizard__group query-setup__wizard__group--inline", children: [_jsx("div", { className: "query-setup__wizard__group__title", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: querySearchRef, className: "query-setup__wizard__selector", options: queryOptions, isLoading: setupStore.loadQueriesState.isInProgress, onInputChange: onSearchTextChange, inputValue: searchText, onChange: onQueryOptionChange, value: selectedQueryOption, placeholder: "Search for query by name...", isClearable: true, escapeClearsValue: true, darkMode: true })] }), _jsxs("div", { className: "query-setup__productionize-query__preview", children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.loadQueryState.isInProgress }), setupStore.currentQuery && (_jsxs(_Fragment, { children: [!setupStore.currentQueryInfo && (_jsx(BlankPanelContent, { children: `Can't preview query` })), setupStore.currentQueryInfo && (_jsx(
|
83
|
+
}), onClick: next, disabled: !canProceed, title: "Productionize query", children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "query-setup__wizard__content", children: [_jsxs("div", { className: "query-setup__wizard__group query-setup__wizard__group--inline", children: [_jsx("div", { className: "query-setup__wizard__group__title", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: querySearchRef, className: "query-setup__wizard__selector", options: queryOptions, isLoading: setupStore.loadQueriesState.isInProgress, onInputChange: onSearchTextChange, inputValue: searchText, onChange: onQueryOptionChange, value: selectedQueryOption, placeholder: "Search for query by name...", isClearable: true, escapeClearsValue: true, darkMode: true })] }), _jsxs("div", { className: "query-setup__productionize-query__preview", children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.loadQueryState.isInProgress }), setupStore.currentQuery && (_jsxs(_Fragment, { children: [!setupStore.currentQueryInfo && (_jsx(BlankPanelContent, { children: `Can't preview query` })), setupStore.currentQueryInfo && (_jsx(CodeEditor, { inputValue: setupStore.currentQueryInfo.content, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.PURE, showMiniMap: false, hideGutter: true }))] })), !setupStore.currentQuery && (_jsx(BlankPanelContent, { children: "No query to preview" }))] })] })] }));
|
83
84
|
});
|
84
85
|
export const QueryProductionizerSetup = () => (_jsx(QueryProductionizerSetupStoreProvider, { children: _jsx(BaseQuerySetup, { children: _jsx(QueryProductionizerSetupContent, {}) }) }));
|
85
86
|
//# sourceMappingURL=QueryProductionizerSetup.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryProductionizerSetup.js","sourceRoot":"","sources":["../../src/components/QueryProductionizerSetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,mB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,CAAC,UAAU,CAAC,gBAAgB,IAAI,CAC/B,KAAC,iBAAiB,cAAE,qBAAqB,GAAqB,CAC/D,EACA,UAAU,CAAC,gBAAgB,IAAI,CAC9B,KAAC,UAAU,IACT,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAC/C,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,oBAAoB,CAAC,IAAI,EACnC,WAAW,EAAE,KAAK,EAClB,UAAU,EAAE,IAAI,GAChB,CACH,IACA,CACJ,EACA,CAAC,UAAU,CAAC,YAAY,IAAI,CAC3B,KAAC,iBAAiB,sCAAwC,CAC3D,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAa,GAAG,EAAE,CAAC,CACtD,KAAC,qCAAqC,cACpC,KAAC,cAAc,cACb,KAAC,+BAA+B,KAAG,GACpB,GACqB,CACzC,CAAC"}
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { clsx, PanelLoadingIndicator, QuestionCircleIcon, CogIcon, MoreHorizontalIcon, DropdownMenu, PencilIcon,
|
17
|
+
import { clsx, PanelLoadingIndicator, QuestionCircleIcon, CogIcon, MoreHorizontalIcon, DropdownMenu, PencilIcon, ThinChevronDownIcon, CircleIcon, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, CheckIcon, MenuContentDivider, AssistantIcon, } from '@finos/legend-art';
|
18
18
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
19
19
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
20
20
|
import React, { createContext, useContext, useEffect } from 'react';
|
@@ -91,7 +91,7 @@ export const QuerySetupLandingPage = withQuerySetupLandingPageStore(observer(()
|
|
91
91
|
useEffect(() => {
|
92
92
|
setupStore.initialize(showAdvancedActions, showAllGroups, tagToFocus);
|
93
93
|
}, [setupStore, showAdvancedActions, showAllGroups, tagToFocus]);
|
94
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-setup", children: _jsx("div", { className: "query-setup__landing-page", children: setupStore.initState.hasCompleted && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-setup__landing-page__title", children: ["What do you want to do today", _jsx(QuestionCircleIcon, { className: "query-setup__landing-page__title__question-mark", title: "Choose one of the option below to start" })] }), _jsxs("div", { className: "query-setup__landing-page__actions", children: [setupStore.tagToFocus && (_jsx(QuerySetupActionGroup, { tag: setupStore.tagToFocus })), !setupStore.tagToFocus && (_jsxs(_Fragment, { children: [_jsx(QuerySetupActionGroup, {}), setupStore.showAllGroups && (_jsxs(_Fragment, { children: [setupStore.tags.map((tag) => (_jsx(QuerySetupActionGroup, { tag: tag }, tag))), _jsxs("div", { className: "query-setup__landing-page__action-group query-setup__landing-page__action-group--studio", children: [_jsx("div", { className: "query-setup__landing-page__action-group__tag", children: "Developer Workstation" }), _jsx("div", { className: "query-setup__landing-page__action-group__header" }), _jsx("div", { className: "query-setup__landing-page__action-group__body", children: _jsxs("button", { className: "query-setup__landing-page__action query-setup__landing-page__action--studio", onClick: goToStudio, tabIndex: -1, children: [_jsx("div", { className: "query-setup__landing-page__action__icon", children: _jsx(PencilIcon, {}) }), _jsx("div", { className: "query-setup__landing-page__action__label", children: "Open Legend Studio" })] }) }), _jsx("div", { className: "query-setup__landing-page__action-group__footer" })] })] })), !setupStore.showAllGroups && (_jsx("div", { className: "query-setup__landing-page__footer", children: _jsx("button", { className: "query-setup__landing-page__footer__more-btn", onClick: showAllActionGroup, tabIndex: -1, title: "Show all action groups", children: _jsx(
|
94
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-setup", children: _jsx("div", { className: "query-setup__landing-page", children: setupStore.initState.hasCompleted && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-setup__landing-page__title", children: ["What do you want to do today", _jsx(QuestionCircleIcon, { className: "query-setup__landing-page__title__question-mark", title: "Choose one of the option below to start" })] }), _jsxs("div", { className: "query-setup__landing-page__actions", children: [setupStore.tagToFocus && (_jsx(QuerySetupActionGroup, { tag: setupStore.tagToFocus })), !setupStore.tagToFocus && (_jsxs(_Fragment, { children: [_jsx(QuerySetupActionGroup, {}), setupStore.showAllGroups && (_jsxs(_Fragment, { children: [setupStore.tags.map((tag) => (_jsx(QuerySetupActionGroup, { tag: tag }, tag))), _jsxs("div", { className: "query-setup__landing-page__action-group query-setup__landing-page__action-group--studio", children: [_jsx("div", { className: "query-setup__landing-page__action-group__tag", children: "Developer Workstation" }), _jsx("div", { className: "query-setup__landing-page__action-group__header" }), _jsx("div", { className: "query-setup__landing-page__action-group__body", children: _jsxs("button", { className: "query-setup__landing-page__action query-setup__landing-page__action--studio", onClick: goToStudio, tabIndex: -1, children: [_jsx("div", { className: "query-setup__landing-page__action__icon", children: _jsx(PencilIcon, {}) }), _jsx("div", { className: "query-setup__landing-page__action__label", children: "Open Legend Studio" })] }) }), _jsx("div", { className: "query-setup__landing-page__action-group__footer" })] })] })), !setupStore.showAllGroups && (_jsx("div", { className: "query-setup__landing-page__footer", children: _jsx("button", { className: "query-setup__landing-page__footer__more-btn", onClick: showAllActionGroup, tabIndex: -1, title: "Show all action groups", children: _jsx(ThinChevronDownIcon, {}) }) }))] }))] })] })) }) }), _jsxs("div", { className: "query-setup__status-bar", children: [_jsx("div", { className: "query-setup__status-bar__left" }), _jsx("div", { className: "query-setup__status-bar__right", children: _jsx("button", { className: clsx('query-setup__status-bar__action query-setup__status-bar__action__toggler', {
|
95
95
|
'query-setup__status-bar__action__toggler--active': !applicationStore.assistantService.isHidden,
|
96
96
|
}), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) }) })] })] }));
|
97
97
|
}));
|
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": "11.0.
|
3
|
+
"version": "11.0.12",
|
4
4
|
"description": "Legend Query application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -46,12 +46,13 @@
|
|
46
46
|
"@finos/legend-application": "workspace:*",
|
47
47
|
"@finos/legend-art": "workspace:*",
|
48
48
|
"@finos/legend-graph": "workspace:*",
|
49
|
+
"@finos/legend-lego": "workspace:*",
|
49
50
|
"@finos/legend-query-builder": "workspace:*",
|
50
51
|
"@finos/legend-server-depot": "workspace:*",
|
51
52
|
"@finos/legend-shared": "workspace:*",
|
52
53
|
"@finos/legend-storage": "workspace:*",
|
53
54
|
"@testing-library/react": "14.0.0",
|
54
|
-
"@types/react": "18.0.
|
55
|
+
"@types/react": "18.0.34",
|
55
56
|
"@types/react-dom": "18.0.11",
|
56
57
|
"mobx": "6.9.0",
|
57
58
|
"mobx-react-lite": "3.4.3",
|
@@ -63,12 +64,12 @@
|
|
63
64
|
"@finos/legend-dev-utils": "workspace:*",
|
64
65
|
"@jest/globals": "29.5.0",
|
65
66
|
"cross-env": "7.0.3",
|
66
|
-
"eslint": "8.
|
67
|
+
"eslint": "8.38.0",
|
67
68
|
"jest": "29.5.0",
|
68
69
|
"npm-run-all": "4.1.5",
|
69
|
-
"rimraf": "
|
70
|
-
"sass": "1.
|
71
|
-
"typescript": "5.0.
|
70
|
+
"rimraf": "5.0.0",
|
71
|
+
"sass": "1.62.0",
|
72
|
+
"typescript": "5.0.4"
|
72
73
|
},
|
73
74
|
"peerDependencies": {
|
74
75
|
"react": "^18.0.0"
|
@@ -78,9 +79,5 @@
|
|
78
79
|
},
|
79
80
|
"extensions": {
|
80
81
|
"applicationQueryPlugin": "@finos/legend-application-query-plugin-core"
|
81
|
-
},
|
82
|
-
"typedoc": {
|
83
|
-
"entryPoint": "./src/index.ts",
|
84
|
-
"readmeFile": "./README.md"
|
85
82
|
}
|
86
83
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-query",
|
3
|
-
"version": "11.0.
|
3
|
+
"version": "11.0.12",
|
4
4
|
"description": "Legend Query application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,15 +43,16 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "
|
47
|
-
"@finos/legend-art": "
|
48
|
-
"@finos/legend-graph": "26.0.
|
49
|
-
"@finos/legend-
|
50
|
-
"@finos/legend-
|
51
|
-
"@finos/legend-
|
52
|
-
"@finos/legend-
|
46
|
+
"@finos/legend-application": "14.0.0",
|
47
|
+
"@finos/legend-art": "6.0.0",
|
48
|
+
"@finos/legend-graph": "26.0.5",
|
49
|
+
"@finos/legend-lego": "0.1.0",
|
50
|
+
"@finos/legend-query-builder": "2.1.3",
|
51
|
+
"@finos/legend-server-depot": "4.4.13",
|
52
|
+
"@finos/legend-shared": "8.1.0",
|
53
|
+
"@finos/legend-storage": "3.0.47",
|
53
54
|
"@testing-library/react": "14.0.0",
|
54
|
-
"@types/react": "18.0.
|
55
|
+
"@types/react": "18.0.34",
|
55
56
|
"@types/react-dom": "18.0.11",
|
56
57
|
"mobx": "6.9.0",
|
57
58
|
"mobx-react-lite": "3.4.3",
|
@@ -60,15 +61,15 @@
|
|
60
61
|
"serializr": "3.0.2"
|
61
62
|
},
|
62
63
|
"devDependencies": {
|
63
|
-
"@finos/legend-dev-utils": "2.0.
|
64
|
+
"@finos/legend-dev-utils": "2.0.52",
|
64
65
|
"@jest/globals": "29.5.0",
|
65
66
|
"cross-env": "7.0.3",
|
66
|
-
"eslint": "8.
|
67
|
+
"eslint": "8.38.0",
|
67
68
|
"jest": "29.5.0",
|
68
69
|
"npm-run-all": "4.1.5",
|
69
|
-
"rimraf": "
|
70
|
-
"sass": "1.
|
71
|
-
"typescript": "5.0.
|
70
|
+
"rimraf": "5.0.0",
|
71
|
+
"sass": "1.62.0",
|
72
|
+
"typescript": "5.0.4"
|
72
73
|
},
|
73
74
|
"peerDependencies": {
|
74
75
|
"react": "^18.0.0"
|
@@ -78,9 +79,5 @@
|
|
78
79
|
},
|
79
80
|
"extensions": {
|
80
81
|
"applicationQueryPlugin": "@finos/legend-application-query-plugin-core"
|
81
|
-
},
|
82
|
-
"typedoc": {
|
83
|
-
"entryPoint": "./src/index.ts",
|
84
|
-
"readmeFile": "./README.md"
|
85
82
|
}
|
86
83
|
}
|
@@ -19,7 +19,6 @@ import {
|
|
19
19
|
type LegendApplicationConfig,
|
20
20
|
ApplicationStoreProvider,
|
21
21
|
LegendApplication,
|
22
|
-
setupLegendApplicationUILibrary,
|
23
22
|
type LegendApplicationConfigurationInput,
|
24
23
|
BrowserRouter,
|
25
24
|
WebApplicationNavigatorProvider,
|
@@ -36,14 +35,9 @@ import {
|
|
36
35
|
import {
|
37
36
|
QueryBuilder_GraphManagerPreset,
|
38
37
|
QueryBuilder_LegendApplicationPlugin,
|
39
|
-
setupQueryBuilderUILibrary,
|
40
38
|
} from '@finos/legend-query-builder';
|
41
39
|
import { Core_LegendQueryApplicationPlugin } from '../components/Core_LegendQueryApplicationPlugin.js';
|
42
40
|
|
43
|
-
export const setupLegendQueryUILibrary = async (): Promise<void> => {
|
44
|
-
await setupQueryBuilderUILibrary();
|
45
|
-
};
|
46
|
-
|
47
41
|
export class LegendQuery extends LegendApplication {
|
48
42
|
declare config: LegendQueryApplicationConfig;
|
49
43
|
declare pluginManager: LegendQueryPluginManager;
|
@@ -69,11 +63,6 @@ export class LegendQuery extends LegendApplication {
|
|
69
63
|
}
|
70
64
|
|
71
65
|
async loadApplication(): Promise<void> {
|
72
|
-
// Setup React application libraries
|
73
|
-
await setupLegendApplicationUILibrary(this.pluginManager, this.logger);
|
74
|
-
await setupLegendQueryUILibrary();
|
75
|
-
|
76
|
-
// Render React application
|
77
66
|
const rootElement = createRoot(getRootElement());
|
78
67
|
rootElement.render(
|
79
68
|
<BrowserRouter basename={this.baseUrl}>
|
@@ -38,7 +38,11 @@ import {
|
|
38
38
|
generateUpdateExistingServiceQuerySetup,
|
39
39
|
LEGEND_QUERY_ROUTE_PATTERN,
|
40
40
|
} from '../application/LegendQueryNavigation.js';
|
41
|
-
import
|
41
|
+
import {
|
42
|
+
setupPureLanguageService,
|
43
|
+
type ApplicationPageEntry,
|
44
|
+
type LegendApplicationSetup,
|
45
|
+
} from '@finos/legend-application';
|
42
46
|
import { CloneQueryServiceSetup } from './CloneQueryServiceSetup.js';
|
43
47
|
import { QueryProductionizerSetup } from './QueryProductionizerSetup.js';
|
44
48
|
import { UpdateExistingServiceQuerySetup } from './UpdateExistingServiceQuerySetup.js';
|
@@ -51,6 +55,14 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
51
55
|
super(Core_LegendQueryApplicationPlugin.NAME, packageJson.version);
|
52
56
|
}
|
53
57
|
|
58
|
+
override getExtraApplicationSetups(): LegendApplicationSetup[] {
|
59
|
+
return [
|
60
|
+
async (applicationStore) => {
|
61
|
+
setupPureLanguageService([], []);
|
62
|
+
},
|
63
|
+
];
|
64
|
+
}
|
65
|
+
|
54
66
|
override getExtraApplicationPageEntries(): ApplicationPageEntry[] {
|
55
67
|
return [
|
56
68
|
{
|
@@ -36,8 +36,7 @@ import {
|
|
36
36
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
37
37
|
import {
|
38
38
|
useApplicationStore,
|
39
|
-
|
40
|
-
TextInputEditor,
|
39
|
+
CODE_EDITOR_LANGUAGE,
|
41
40
|
} from '@finos/legend-application';
|
42
41
|
import {
|
43
42
|
type QueryOption,
|
@@ -46,6 +45,7 @@ import {
|
|
46
45
|
import { useLegendQueryApplicationStore } from './LegendQueryBaseStoreProvider.js';
|
47
46
|
import { EditExistingQuerySetupStore } from '../stores/EditExistingQuerySetupStore.js';
|
48
47
|
import { BaseQuerySetup, BaseQuerySetupStoreContext } from './QuerySetup.js';
|
48
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
49
49
|
|
50
50
|
const EditExistingQuerySetupStoreProvider: React.FC<{
|
51
51
|
children: React.ReactNode;
|
@@ -258,10 +258,10 @@ const EditExistingQuerySetupContent = observer(() => {
|
|
258
258
|
<BlankPanelContent>{`Can't preview query`}</BlankPanelContent>
|
259
259
|
)}
|
260
260
|
{setupStore.currentQueryInfo && (
|
261
|
-
<
|
261
|
+
<CodeEditor
|
262
262
|
inputValue={setupStore.currentQueryInfo.content}
|
263
263
|
isReadOnly={true}
|
264
|
-
language={
|
264
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
265
265
|
showMiniMap={false}
|
266
266
|
hideGutter={true}
|
267
267
|
/>
|
@@ -30,8 +30,7 @@ import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
30
30
|
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
31
31
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
32
32
|
import {
|
33
|
-
|
34
|
-
TextInputEditor,
|
33
|
+
CODE_EDITOR_LANGUAGE,
|
35
34
|
useApplicationStore,
|
36
35
|
} from '@finos/legend-application';
|
37
36
|
import { useLegendQueryApplicationStore } from './LegendQueryBaseStoreProvider.js';
|
@@ -42,6 +41,7 @@ import {
|
|
42
41
|
type QueryOption,
|
43
42
|
} from '@finos/legend-query-builder';
|
44
43
|
import { generateQuerySetupRoute } from '../application/LegendQueryNavigation.js';
|
44
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
45
45
|
|
46
46
|
const QueryProductionizerSetupStoreProvider: React.FC<{
|
47
47
|
children: React.ReactNode;
|
@@ -180,10 +180,10 @@ const QueryProductionizerSetupContent = observer(() => {
|
|
180
180
|
<BlankPanelContent>{`Can't preview query`}</BlankPanelContent>
|
181
181
|
)}
|
182
182
|
{setupStore.currentQueryInfo && (
|
183
|
-
<
|
183
|
+
<CodeEditor
|
184
184
|
inputValue={setupStore.currentQueryInfo.content}
|
185
185
|
isReadOnly={true}
|
186
|
-
language={
|
186
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
187
187
|
showMiniMap={false}
|
188
188
|
hideGutter={true}
|
189
189
|
/>
|
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
MoreHorizontalIcon,
|
23
23
|
DropdownMenu,
|
24
24
|
PencilIcon,
|
25
|
-
|
25
|
+
ThinChevronDownIcon,
|
26
26
|
CircleIcon,
|
27
27
|
MenuContent,
|
28
28
|
MenuContentItem,
|
@@ -332,7 +332,7 @@ export const QuerySetupLandingPage = withQuerySetupLandingPageStore(
|
|
332
332
|
tabIndex={-1}
|
333
333
|
title="Show all action groups"
|
334
334
|
>
|
335
|
-
<
|
335
|
+
<ThinChevronDownIcon />
|
336
336
|
</button>
|
337
337
|
</div>
|
338
338
|
)}
|