@finos/legend-application-query 13.4.12 → 13.4.14
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/components/Core_LegendQueryApplicationPlugin.d.ts +5 -0
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +201 -4
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/QueryEditor.d.ts +8 -0
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +25 -140
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js +2 -0
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js +7 -6
- package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +4 -12
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js +1 -0
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +7 -1
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +18 -4
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/__test-utils__/LegendQueryApplicationTestUtils.js +1 -1
- package/lib/stores/__test-utils__/LegendQueryApplicationTestUtils.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +2 -2
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +2 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js +6 -3
- package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +2 -2
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -1
- package/package.json +6 -6
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +406 -1
- package/src/components/QueryEditor.tsx +111 -507
- package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +2 -0
- package/src/components/data-space/DataSpaceQuerySetup.tsx +52 -53
- package/src/index.ts +2 -2
- package/src/stores/{LegendQueryApplicationPlugin.ts → LegendQueryApplicationPlugin.tsx} +11 -18
- package/src/stores/QueryEditorStore.ts +23 -0
- package/src/stores/__test-utils__/LegendQueryApplicationTestUtils.ts +1 -1
- package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +2 -0
- package/src/stores/data-space/DataSpaceQuerySetupState.ts +8 -0
- package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +2 -0
- package/tsconfig.json +2 -4
- package/lib/__lib__/LegendQueryTesting.d.ts +0 -19
- package/lib/__lib__/LegendQueryTesting.d.ts.map +0 -1
- package/lib/__lib__/LegendQueryTesting.js +0 -20
- package/lib/__lib__/LegendQueryTesting.js.map +0 -1
- package/lib/application/LegendQueryDocumentation.d.ts +0 -19
- package/lib/application/LegendQueryDocumentation.d.ts.map +0 -1
- package/lib/application/LegendQueryDocumentation.js +0 -20
- package/lib/application/LegendQueryDocumentation.js.map +0 -1
- package/src/__lib__/LegendQueryTesting.ts +0 -19
- package/src/application/LegendQueryDocumentation.ts +0 -19
| @@ -15,11 +15,16 @@ | |
| 15 15 | 
             
             */
         | 
| 16 16 | 
             
            import { LegendQueryApplicationPlugin, type QuerySetupActionConfiguration } from '../stores/LegendQueryApplicationPlugin.js';
         | 
| 17 17 | 
             
            import { type ApplicationPageEntry, type LegendApplicationSetup } from '@finos/legend-application';
         | 
| 18 | 
            +
            import type { QueryBuilderHeaderActionConfiguration, QueryBuilderMenuActionConfiguration } from '@finos/legend-query-builder';
         | 
| 18 19 | 
             
            export declare class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
         | 
| 19 20 | 
             
                static NAME: string;
         | 
| 20 21 | 
             
                constructor();
         | 
| 21 22 | 
             
                getExtraApplicationSetups(): LegendApplicationSetup[];
         | 
| 22 23 | 
             
                getExtraApplicationPageEntries(): ApplicationPageEntry[];
         | 
| 23 24 | 
             
                getExtraQuerySetupActionConfigurations(): QuerySetupActionConfiguration[];
         | 
| 25 | 
            +
                getExtraQueryBuilderExportMenuActionConfigurations?(): QueryBuilderMenuActionConfiguration[];
         | 
| 26 | 
            +
                getExtraQueryBuilderHelpMenuActionConfigurations?(): QueryBuilderMenuActionConfiguration[];
         | 
| 27 | 
            +
                getExtraQueryBuilderHeaderActionConfigurations?(): QueryBuilderHeaderActionConfiguration[];
         | 
| 28 | 
            +
                getExtraQueryBuilderHeaderTitleConfigurations?(): QueryBuilderHeaderActionConfiguration;
         | 
| 24 29 | 
             
            }
         | 
| 25 30 | 
             
            //# sourceMappingURL=Core_LegendQueryApplicationPlugin.d.ts.map
         | 
| @@ -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; | 
| 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;AA+BnD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAanC,OAAO,KAAK,EACV,qCAAqC,EACrC,mCAAmC,EACpC,MAAM,6BAA6B,CAAC;AAmBrC,qBAAa,iCAAkC,SAAQ,4BAA4B;IACjF,MAAM,CAAC,IAAI,SAAiD;;IAMnD,yBAAyB,IAAI,sBAAsB,EAAE;IASrD,8BAA8B,IAAI,oBAAoB,EAAE;IA+BxD,sCAAsC,IAAI,6BAA6B,EAAE;IAwGlF,kDAAkD,CAAC,IAAI,mCAAmC,EAAE;IAuE5F,gDAAgD,CAAC,IAAI,mCAAmC,EAAE;IA0E1F,8CAA8C,CAAC,IAAI,qCAAqC,EAAE;IAoL1F,6CAA6C,CAAC,IAAI,qCAAqC;CA6CxF"}
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            import { jsx as _jsx } from "react/jsx-runtime";
         | 
| 1 | 
            +
            import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
         | 
| 2 2 | 
             
            /**
         | 
| 3 3 | 
             
             * Copyright (c) 2020-present, Goldman Sachs
         | 
| 4 4 | 
             
             *
         | 
| @@ -16,15 +16,24 @@ import { jsx as _jsx } from "react/jsx-runtime"; | |
| 16 16 | 
             
             */
         | 
| 17 17 | 
             
            import { LegendQueryApplicationPlugin, QuerySetupActionTag, } from '../stores/LegendQueryApplicationPlugin.js';
         | 
| 18 18 | 
             
            import packageJson from '../../package.json' assert { type: 'json' };
         | 
| 19 | 
            -
            import { ArrowCircleUpIcon, DroidIcon, ManageSearchIcon, PlusIcon, RobotIcon, SquareIcon, } from '@finos/legend-art';
         | 
| 20 | 
            -
            import { generateCloneServiceQuerySetupRoute, generateCreateMappingQuerySetupRoute, generateEditExistingQuerySetupRoute, generateLoadProjectServiceQuerySetup, generateQueryProductionizerSetupRoute, generateUpdateExistingServiceQuerySetup, LEGEND_QUERY_ROUTE_PATTERN, } from '../__lib__/LegendQueryNavigation.js';
         | 
| 19 | 
            +
            import { ArrowCircleUpIcon, Button, CaretDownIcon, DroidIcon, DropdownMenu, InfoCircleIcon, ManageSearchIcon, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, PlusIcon, RobotIcon, SaveAsIcon, SaveCurrIcon, SquareIcon, } from '@finos/legend-art';
         | 
| 20 | 
            +
            import { generateCloneServiceQuerySetupRoute, generateCreateMappingQuerySetupRoute, generateEditExistingQuerySetupRoute, generateLoadProjectServiceQuerySetup, generateMappingQueryCreatorRoute, generateQueryProductionizerSetupRoute, generateUpdateExistingServiceQuerySetup, LEGEND_QUERY_ROUTE_PATTERN, } from '../__lib__/LegendQueryNavigation.js';
         | 
| 21 21 | 
             
            import {} from '@finos/legend-application';
         | 
| 22 22 | 
             
            import { CloneQueryServiceSetup } from './CloneQueryServiceSetup.js';
         | 
| 23 23 | 
             
            import { QueryProductionizerSetup } from './QueryProductionizerSetup.js';
         | 
| 24 24 | 
             
            import { UpdateExistingServiceQuerySetup } from './UpdateExistingServiceQuerySetup.js';
         | 
| 25 25 | 
             
            import { LoadProjectServiceQuerySetup } from './LoadProjectServiceQuerySetup.js';
         | 
| 26 26 | 
             
            import { configureCodeEditorComponent, setupPureLanguageService, } from '@finos/legend-lego/code-editor';
         | 
| 27 | 
            -
            import { generateDataSpaceQuerySetupRoute } from '../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
         | 
| 27 | 
            +
            import { generateDataSpaceQueryCreatorRoute, generateDataSpaceQuerySetupRoute, } from '../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
         | 
| 28 | 
            +
            import { ExistingQueryEditorStore, QueryBuilderActionConfig_QueryApplication, createViewProjectHandler, createViewSDLCProjectHandler, } from '../stores/QueryEditorStore.js';
         | 
| 29 | 
            +
            import { DataSpaceQueryBuilderState, generateDataSpaceTemplateQueryPromotionRoute, } from '@finos/legend-extension-dsl-data-space/application';
         | 
| 30 | 
            +
            import { RuntimePointer } from '@finos/legend-graph';
         | 
| 31 | 
            +
            import { LegendQueryTelemetryHelper } from '../__lib__/LegendQueryTelemetryHelper.js';
         | 
| 32 | 
            +
            import { StoreProjectData } from '@finos/legend-server-depot';
         | 
| 33 | 
            +
            import { buildUrl } from '@finos/legend-shared';
         | 
| 34 | 
            +
            import { parseProjectIdentifier } from '@finos/legend-storage';
         | 
| 35 | 
            +
            import { QueryEditorExistingQueryHeader } from './QueryEditor.js';
         | 
| 36 | 
            +
            import { DataSpaceTemplateQueryCreatorStore } from '../stores/data-space/DataSpaceTemplateQueryCreatorStore.js';
         | 
| 28 37 | 
             
            export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
         | 
| 29 38 | 
             
                static NAME = packageJson.extensions.applicationQueryPlugin;
         | 
| 30 39 | 
             
                constructor() {
         | 
| @@ -154,5 +163,193 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu | |
| 154 163 | 
             
                        },
         | 
| 155 164 | 
             
                    ];
         | 
| 156 165 | 
             
                }
         | 
| 166 | 
            +
                getExtraQueryBuilderExportMenuActionConfigurations() {
         | 
| 167 | 
            +
                    return [
         | 
| 168 | 
            +
                        {
         | 
| 169 | 
            +
                            key: 'promote-as-template-query',
         | 
| 170 | 
            +
                            title: 'Promote Curated Template query...',
         | 
| 171 | 
            +
                            label: 'Curated Template Query',
         | 
| 172 | 
            +
                            onClick: (queryBuilderState) => {
         | 
| 173 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 174 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 175 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 176 | 
            +
                                    const proceedCuratedTemplateQueryPromotion = async () => {
         | 
| 177 | 
            +
                                        if (!(editorStore instanceof ExistingQueryEditorStore &&
         | 
| 178 | 
            +
                                            queryBuilderState instanceof DataSpaceQueryBuilderState)) {
         | 
| 179 | 
            +
                                            return;
         | 
| 180 | 
            +
                                        }
         | 
| 181 | 
            +
                                        // fetch project data
         | 
| 182 | 
            +
                                        const project = StoreProjectData.serialization.fromJson(await editorStore.depotServerClient.getProject(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId));
         | 
| 183 | 
            +
                                        // find the matching SDLC instance
         | 
| 184 | 
            +
                                        const projectIDPrefix = parseProjectIdentifier(project.projectId).prefix;
         | 
| 185 | 
            +
                                        const matchingSDLCEntry = editorStore.applicationStore.config.studioInstances.find((entry) => entry.sdlcProjectIDPrefix === projectIDPrefix);
         | 
| 186 | 
            +
                                        if (matchingSDLCEntry) {
         | 
| 187 | 
            +
                                            editorStore.applicationStore.navigationService.navigator.visitAddress(buildUrl([
         | 
| 188 | 
            +
                                                editorStore.applicationStore.config.studioApplicationUrl,
         | 
| 189 | 
            +
                                                generateDataSpaceTemplateQueryPromotionRoute(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId, editorStore.lightQuery.versionId, queryBuilderState.dataSpace.path, editorStore.lightQuery.id),
         | 
| 190 | 
            +
                                            ]));
         | 
| 191 | 
            +
                                        }
         | 
| 192 | 
            +
                                        else {
         | 
| 193 | 
            +
                                            editorStore.applicationStore.notificationService.notifyWarning(`Can't find the corresponding SDLC instance to productionize the query`);
         | 
| 194 | 
            +
                                        }
         | 
| 195 | 
            +
                                    };
         | 
| 196 | 
            +
                                    queryBuilderState.changeDetectionState.alertUnsavedChanges(() => {
         | 
| 197 | 
            +
                                        proceedCuratedTemplateQueryPromotion().catch(editorStore.applicationStore.alertUnhandledError);
         | 
| 198 | 
            +
                                    });
         | 
| 199 | 
            +
                                }
         | 
| 200 | 
            +
                            },
         | 
| 201 | 
            +
                            icon: _jsx(ArrowCircleUpIcon, {}),
         | 
| 202 | 
            +
                        },
         | 
| 203 | 
            +
                    ];
         | 
| 204 | 
            +
                }
         | 
| 205 | 
            +
                getExtraQueryBuilderHelpMenuActionConfigurations() {
         | 
| 206 | 
            +
                    return [
         | 
| 207 | 
            +
                        {
         | 
| 208 | 
            +
                            key: 'about-query-info',
         | 
| 209 | 
            +
                            title: 'Get Query Info',
         | 
| 210 | 
            +
                            label: 'About Query Info',
         | 
| 211 | 
            +
                            onClick: (queryBuilderState) => {
         | 
| 212 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 213 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 214 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 215 | 
            +
                                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 216 | 
            +
                                        editorStore.updateState.setShowQueryInfo(true);
         | 
| 217 | 
            +
                                    }
         | 
| 218 | 
            +
                                }
         | 
| 219 | 
            +
                            },
         | 
| 220 | 
            +
                            icon: _jsx(InfoCircleIcon, {}),
         | 
| 221 | 
            +
                        },
         | 
| 222 | 
            +
                        {
         | 
| 223 | 
            +
                            key: 'about-query-project',
         | 
| 224 | 
            +
                            title: 'Go to Project',
         | 
| 225 | 
            +
                            label: 'Go to Project',
         | 
| 226 | 
            +
                            onClick: (queryBuilderState) => {
         | 
| 227 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 228 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 229 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 230 | 
            +
                                    LegendQueryTelemetryHelper.logEvent_QueryViewProjectLaunched(editorStore.applicationStore.telemetryService);
         | 
| 231 | 
            +
                                    const { groupId, artifactId, versionId } = editorStore.getProjectInfo();
         | 
| 232 | 
            +
                                    createViewProjectHandler(editorStore.applicationStore)(groupId, artifactId, versionId, undefined);
         | 
| 233 | 
            +
                                }
         | 
| 234 | 
            +
                            },
         | 
| 235 | 
            +
                            icon: _jsx(InfoCircleIcon, {}),
         | 
| 236 | 
            +
                        },
         | 
| 237 | 
            +
                        {
         | 
| 238 | 
            +
                            key: 'about-query-sdlc-project',
         | 
| 239 | 
            +
                            title: 'Go to SDLC Project',
         | 
| 240 | 
            +
                            label: 'Go to SDLC Project',
         | 
| 241 | 
            +
                            onClick: (queryBuilderState) => {
         | 
| 242 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 243 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 244 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 245 | 
            +
                                    LegendQueryTelemetryHelper.logEvent_QueryViewSdlcProjectLaunched(editorStore.applicationStore.telemetryService);
         | 
| 246 | 
            +
                                    const { groupId, artifactId } = editorStore.getProjectInfo();
         | 
| 247 | 
            +
                                    createViewSDLCProjectHandler(editorStore.applicationStore, editorStore.depotServerClient)(groupId, artifactId, undefined).catch(editorStore.applicationStore.alertUnhandledError);
         | 
| 248 | 
            +
                                }
         | 
| 249 | 
            +
                            },
         | 
| 250 | 
            +
                            icon: _jsx(InfoCircleIcon, {}),
         | 
| 251 | 
            +
                        },
         | 
| 252 | 
            +
                    ];
         | 
| 253 | 
            +
                }
         | 
| 254 | 
            +
                getExtraQueryBuilderHeaderActionConfigurations() {
         | 
| 255 | 
            +
                    return [
         | 
| 256 | 
            +
                        {
         | 
| 257 | 
            +
                            key: 'load-query',
         | 
| 258 | 
            +
                            category: 0,
         | 
| 259 | 
            +
                            renderer: (queryBuilderState) => {
         | 
| 260 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 261 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 262 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 263 | 
            +
                                    const openQueryLoader = () => {
         | 
| 264 | 
            +
                                        editorStore.queryLoaderState.setQueryLoaderDialogOpen(true);
         | 
| 265 | 
            +
                                    };
         | 
| 266 | 
            +
                                    return (_jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: openQueryLoader, title: "Load query...", children: [_jsx(ManageSearchIcon, { className: "query-editor__header__action__icon--load" }), _jsx("div", { className: "query-editor__header__action__label", children: "Load Query" })] }));
         | 
| 267 | 
            +
                                }
         | 
| 268 | 
            +
                                return undefined;
         | 
| 269 | 
            +
                            },
         | 
| 270 | 
            +
                        },
         | 
| 271 | 
            +
                        {
         | 
| 272 | 
            +
                            key: 'new-query',
         | 
| 273 | 
            +
                            category: 0,
         | 
| 274 | 
            +
                            renderer: (queryBuilderState) => {
         | 
| 275 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 276 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 277 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 278 | 
            +
                                    const isExistingQuery = editorStore instanceof ExistingQueryEditorStore;
         | 
| 279 | 
            +
                                    const handleNewQuery = () => {
         | 
| 280 | 
            +
                                        if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 281 | 
            +
                                            const query = editorStore.query;
         | 
| 282 | 
            +
                                            if (query) {
         | 
| 283 | 
            +
                                                if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
         | 
| 284 | 
            +
                                                    editorStore.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, undefined, undefined));
         | 
| 285 | 
            +
                                                }
         | 
| 286 | 
            +
                                                else {
         | 
| 287 | 
            +
                                                    const mapping = editorStore.queryBuilderState?.executionContextState
         | 
| 288 | 
            +
                                                        .mapping;
         | 
| 289 | 
            +
                                                    const runtime = editorStore.queryBuilderState?.executionContextState
         | 
| 290 | 
            +
                                                        .runtimeValue;
         | 
| 291 | 
            +
                                                    if (mapping && runtime instanceof RuntimePointer) {
         | 
| 292 | 
            +
                                                        editorStore.applicationStore.navigationService.navigator.goToLocation(generateMappingQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, mapping.path, runtime.packageableRuntime.value.path));
         | 
| 293 | 
            +
                                                    }
         | 
| 294 | 
            +
                                                }
         | 
| 295 | 
            +
                                            }
         | 
| 296 | 
            +
                                        }
         | 
| 297 | 
            +
                                    };
         | 
| 298 | 
            +
                                    return (_jsx(_Fragment, { children: isExistingQuery && (_jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleNewQuery, title: "New query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "New Query" })] })) }));
         | 
| 299 | 
            +
                                }
         | 
| 300 | 
            +
                                return undefined;
         | 
| 301 | 
            +
                            },
         | 
| 302 | 
            +
                        },
         | 
| 303 | 
            +
                        {
         | 
| 304 | 
            +
                            key: 'save-combo',
         | 
| 305 | 
            +
                            category: 0,
         | 
| 306 | 
            +
                            renderer: (queryBuilderState) => {
         | 
| 307 | 
            +
                                if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 308 | 
            +
                                    QueryBuilderActionConfig_QueryApplication) {
         | 
| 309 | 
            +
                                    const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 310 | 
            +
                                    const isExistingQuery = editorStore instanceof ExistingQueryEditorStore;
         | 
| 311 | 
            +
                                    const openSaveQueryModal = () => {
         | 
| 312 | 
            +
                                        if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 313 | 
            +
                                            editorStore.updateState.showSaveModal();
         | 
| 314 | 
            +
                                        }
         | 
| 315 | 
            +
                                    };
         | 
| 316 | 
            +
                                    const handleQuerySaveAs = () => {
         | 
| 317 | 
            +
                                        editorStore.queryCreatorState.open(editorStore instanceof ExistingQueryEditorStore
         | 
| 318 | 
            +
                                            ? editorStore.query
         | 
| 319 | 
            +
                                            : undefined);
         | 
| 320 | 
            +
                                    };
         | 
| 321 | 
            +
                                    return (_jsxs("div", { className: "query-editor__header__action-combo btn__dropdown-combo", children: [_jsxs(Button, { className: "query-editor__header__action query-editor__header__action-combo__main-btn btn--dak", disabled: !isExistingQuery ||
         | 
| 322 | 
            +
                                                    editorStore.isPerformingBlockingAction ||
         | 
| 323 | 
            +
                                                    !queryBuilderState.canBuildQuery, onClick: openSaveQueryModal, title: "Save query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save" })] }), _jsx(DropdownMenu, { className: "query-editor__header__action-combo__dropdown-btn", disabled: editorStore.isViewProjectActionDisabled, title: "query__editor__save-dropdown", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: handleQuerySaveAs, title: "query__editor__save-dropdown__save-as", disabled: editorStore.isPerformingBlockingAction ||
         | 
| 324 | 
            +
                                                            !queryBuilderState.canBuildQuery, children: [_jsx(MenuContentItemIcon, { children: _jsx(SaveAsIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Save As New Query" })] }) }), children: _jsx(CaretDownIcon, {}) })] }));
         | 
| 325 | 
            +
                                }
         | 
| 326 | 
            +
                                return undefined;
         | 
| 327 | 
            +
                            },
         | 
| 328 | 
            +
                        },
         | 
| 329 | 
            +
                    ];
         | 
| 330 | 
            +
                }
         | 
| 331 | 
            +
                getExtraQueryBuilderHeaderTitleConfigurations() {
         | 
| 332 | 
            +
                    return {
         | 
| 333 | 
            +
                        key: 'query-title',
         | 
| 334 | 
            +
                        category: 0,
         | 
| 335 | 
            +
                        renderer: (queryBuilderState) => {
         | 
| 336 | 
            +
                            if (queryBuilderState.workflowState.actionConfig instanceof
         | 
| 337 | 
            +
                                QueryBuilderActionConfig_QueryApplication) {
         | 
| 338 | 
            +
                                const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
         | 
| 339 | 
            +
                                const renderQueryTitle = () => {
         | 
| 340 | 
            +
                                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 341 | 
            +
                                        return (_jsx(QueryEditorExistingQueryHeader, { queryBuilderState: queryBuilderState, existingEditorStore: editorStore }));
         | 
| 342 | 
            +
                                    }
         | 
| 343 | 
            +
                                    else if (editorStore instanceof DataSpaceTemplateQueryCreatorStore) {
         | 
| 344 | 
            +
                                        return (_jsxs("div", { className: "query-editor__dataspace__header", children: [_jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title__text query-editor__dataspace__header__title__text", children: editorStore.templateQueryTitle }), _jsx("div", { className: "query-editor__dataspace__header__title__tag", children: "template" })] }));
         | 
| 345 | 
            +
                                    }
         | 
| 346 | 
            +
                                    return undefined;
         | 
| 347 | 
            +
                                };
         | 
| 348 | 
            +
                                return (_jsx("div", { className: "query-editor__header__content", children: renderQueryTitle() }));
         | 
| 349 | 
            +
                            }
         | 
| 350 | 
            +
                            return undefined;
         | 
| 351 | 
            +
                        },
         | 
| 352 | 
            +
                    };
         | 
| 353 | 
            +
                }
         | 
| 157 354 | 
             
            }
         | 
| 158 355 | 
             
            //# sourceMappingURL=Core_LegendQueryApplicationPlugin.js.map
         | 
| @@ -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,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAErE,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,uCA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jB,cAAc,EAAE,IAAI;gBACpB,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;oBAC3B,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAClE,gCAAgC,EAAE,CACnC,CAAC;gBACJ,CAAC;gBACD,KAAK,EAAE,8BAA8B;gBACrC,SAAS,EAAE,+CAA+C;gBAC1D,IAAI,EAAE,CACJ,KAAC,UAAU,IAAC,SAAS,EAAC,6CAA6C,GAAG,CACvE;aACF;SACF,CAAC;IACJ,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,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAErE,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,SAAS,EACT,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGN,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,EAA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AAS,EAAC,iCAAiC,aAC9C,cAAK,SAAS,EAAC,6HAA6H,YACzI,WAAW,CAAC,kBAAkB,GAC3B,EACN,cAAK,SAAS,EAAC,6CAA6C,yBAEtD,IACF,CACP,CAAC;wBACJ,CAAC;wBACD,OAAO,SAAS,CAAC;oBACnB,CAAC,CAAC;oBACF,OAAO,CACL,cAAK,SAAS,EAAC,+BAA+B,YAC3C,gBAAgB,EAAE,GACf,CACP,CAAC;gBACJ,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC"}
         | 
| @@ -13,6 +13,14 @@ | |
| 13 13 | 
             
             * See the License for the specific language governing permissions and
         | 
| 14 14 | 
             
             * limitations under the License.
         | 
| 15 15 | 
             
             */
         | 
| 16 | 
            +
            import { ExistingQueryEditorStore } from '../stores/QueryEditorStore.js';
         | 
| 17 | 
            +
            import { type QueryBuilderState } from '@finos/legend-query-builder';
         | 
| 18 | 
            +
            export declare const QueryEditorExistingQueryHeader: ((props: {
         | 
| 19 | 
            +
                queryBuilderState: QueryBuilderState;
         | 
| 20 | 
            +
                existingEditorStore: ExistingQueryEditorStore;
         | 
| 21 | 
            +
            }) => import("react/jsx-runtime").JSX.Element) & {
         | 
| 22 | 
            +
                displayName: string;
         | 
| 23 | 
            +
            };
         | 
| 16 24 | 
             
            export declare const QueryEditor: (() => import("react/jsx-runtime").JSX.Element) & {
         | 
| 17 25 | 
             
                displayName: string;
         | 
| 18 26 | 
             
            };
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG; | 
| 1 | 
            +
            {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2CH,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAazE,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAC;AAuLrC,eAAO,MAAM,8BAA8B,WACjC;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,wBAAwB,CAAC;CAC/C;;CAmHF,CAAC;AAsLF,eAAO,MAAM,WAAW;;CA0KtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAS9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAmB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC"}
         | 
| @@ -14,29 +14,22 @@ 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 { Dialog, PanelLoadingIndicator, BlankPanelContent, DropdownMenu, MenuContent, MenuContentItem,  | 
| 17 | 
            +
            import { Dialog, PanelLoadingIndicator, BlankPanelContent, DropdownMenu, MenuContent, MenuContentItem, MenuIcon, MenuContentDivider, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, Modal, ModalHeader, ModalBody, ModalFooter, ModalTitle, ModalFooterButton, ExclamationTriangleIcon, PanelListItem, clsx, ModalHeaderActions, TimesIcon, Panel, PanelFullContent, CustomSelectorInput, PencilIcon, MoonIcon, SunIcon, } from '@finos/legend-art';
         | 
| 18 18 | 
             
            import { observer } from 'mobx-react-lite';
         | 
| 19 19 | 
             
            import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
         | 
| 20 | 
            -
            import { LEGEND_QUERY_QUERY_PARAM_TOKEN, LEGEND_QUERY_ROUTE_PATTERN_TOKEN, generateQuerySetupRoute, generateExistingQueryEditorRoute,  | 
| 21 | 
            -
            import {  | 
| 20 | 
            +
            import { LEGEND_QUERY_QUERY_PARAM_TOKEN, LEGEND_QUERY_ROUTE_PATTERN_TOKEN, generateQuerySetupRoute, generateExistingQueryEditorRoute, } from '../__lib__/LegendQueryNavigation.js';
         | 
| 21 | 
            +
            import { ExistingQueryEditorStore } from '../stores/QueryEditorStore.js';
         | 
| 22 22 | 
             
            import { LEGEND_APPLICATION_COLOR_THEME, useApplicationStore, } from '@finos/legend-application';
         | 
| 23 23 | 
             
            import { useParams } from '@finos/legend-application/browser';
         | 
| 24 24 | 
             
            import { MappingQueryCreatorStoreProvider, ExistingQueryEditorStoreProvider, ServiceQueryCreatorStoreProvider, useQueryEditorStore, } from './QueryEditorStoreProvider.js';
         | 
| 25 25 | 
             
            import { flowResult } from 'mobx';
         | 
| 26 | 
            -
            import { useLegendQueryApplicationStore } from './LegendQueryFrameworkProvider.js';
         | 
| 27 26 | 
             
            import { QueryBuilder, QueryBuilderNavigationBlocker, QueryLoaderDialog, QueryBuilderDiffViewPanel, } from '@finos/legend-query-builder';
         | 
| 28 | 
            -
            import {  | 
| 29 | 
            -
            import {  | 
| 30 | 
            -
            import {  | 
| 31 | 
            -
            import { QUERY_EDITOR_TEST_ID } from '../__lib__/LegendQueryTesting.js';
         | 
| 32 | 
            -
            import { compareSemVerVersions, generateGAVCoordinates, parseProjectIdentifier, } from '@finos/legend-storage';
         | 
| 33 | 
            -
            import { QueryDataSpaceExecutionContext, QueryExplicitExecutionContext, RuntimePointer, } from '@finos/legend-graph';
         | 
| 34 | 
            -
            import { LATEST_VERSION_ALIAS, StoreProjectData, } from '@finos/legend-server-depot';
         | 
| 27 | 
            +
            import { compareSemVerVersions, generateGAVCoordinates, } from '@finos/legend-storage';
         | 
| 28 | 
            +
            import { QueryDataSpaceExecutionContext, QueryExplicitExecutionContext, } from '@finos/legend-graph';
         | 
| 29 | 
            +
            import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
         | 
| 35 30 | 
             
            import { buildVersionOption } from './QuerySetup.js';
         | 
| 36 31 | 
             
            import { QueryEditorExistingQueryVersionRevertModal } from './QueryEdtiorExistingQueryVersionRevertModal.js';
         | 
| 37 | 
            -
            import {  | 
| 38 | 
            -
            import { generateDataSpaceQueryCreatorRoute } from '../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
         | 
| 39 | 
            -
            import { DataSpaceTemplateQueryCreatorStore } from '../stores/data-space/DataSpaceTemplateQueryCreatorStore.js';
         | 
| 32 | 
            +
            import { debounce } from '@finos/legend-shared';
         | 
| 40 33 | 
             
            const CreateQueryDialog = observer(() => {
         | 
| 41 34 | 
             
                const editorStore = useQueryEditorStore();
         | 
| 42 35 | 
             
                const createQueryState = editorStore.queryCreatorState;
         | 
| @@ -89,7 +82,7 @@ const SaveQueryDialog = observer((props) => { | |
| 89 82 | 
             
                        paper: 'editor-modal__content',
         | 
| 90 83 | 
             
                    }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: clsx('editor-modal query-builder-text-mode__modal'), children: [_jsxs(ModalHeader, { children: [_jsx(ModalTitle, { title: "Save Existing Query" }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", tabIndex: -1, onClick: close, children: _jsx(TimesIcon, {}) }) })] }), _jsxs(ModalBody, { children: [_jsx(PanelLoadingIndicator, { isLoading: updateState.updateQueryState.isInProgress }), updateState.updateDiffState && (_jsx(QueryBuilderDiffViewPanel, { diffViewState: updateState.updateDiffState }))] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { text: "Save", title: "Save (Will Overwrite Existing Query)", disabled: Boolean(existingEditorStore.isPerformingBlockingAction), onClick: saveQuery }), _jsx(ModalFooterButton, { text: "Close", onClick: close, type: "secondary" })] })] }) }));
         | 
| 91 84 | 
             
            });
         | 
| 92 | 
            -
            const QueryEditorExistingQueryHeader = observer((props) => {
         | 
| 85 | 
            +
            export const QueryEditorExistingQueryHeader = observer((props) => {
         | 
| 93 86 | 
             
                const { existingEditorStore } = props;
         | 
| 94 87 | 
             
                const updateState = existingEditorStore.updateState;
         | 
| 95 88 | 
             
                const isRenaming = updateState.queryRenamer;
         | 
| @@ -138,7 +131,7 @@ const QueryEditorExistingQueryHeader = observer((props) => { | |
| 138 131 | 
             
                                                    updateState.setQueryRenamer(false);
         | 
| 139 132 | 
             
                                                    existingEditorStore.setExistingQueryName(undefined);
         | 
| 140 133 | 
             
                                                }
         | 
| 141 | 
            -
                                            }, value: queryRenameName }), isExistingQueryName && (_jsx("div", { className: "input--with-validation__caution", title: `Query with name '${queryRenameName}' already exists`, children: _jsx(ExclamationTriangleIcon, { className: "input--with-validation__caution__indicator" }) }))] }) }) })) : ( | 
| 134 | 
            +
                                            }, value: queryRenameName }), isExistingQueryName && (_jsx("div", { className: "input--with-validation__caution", title: `Query with name '${queryRenameName}' already exists`, children: _jsx(ExclamationTriangleIcon, { className: "input--with-validation__caution__indicator" }) }))] }) }) })) : (_jsxs("div", { onDoubleClick: enableRename, className: "query-editor__header__content__main query-editor__header__content__title query-editor__header__content__title__text", title: "Double-click to rename query", children: [existingEditorStore.lightQuery.name, _jsx("button", { className: "panel__content__form__section__list__item__edit-btn", onClick: enableRename, children: _jsx(PencilIcon, {}) })] })), existingEditorStore.updateState.saveModal && (_jsx(SaveQueryDialog, { existingEditorStore: existingEditorStore }))] }));
         | 
| 142 135 | 
             
            });
         | 
| 143 136 | 
             
            const QueryEditorExistingQueryInfoModal = observer((props) => {
         | 
| 144 137 | 
             
                const { existingEditorStore, query } = props;
         | 
| @@ -179,128 +172,11 @@ const QueryEditorExistingQueryInfoModal = observer((props) => { | |
| 179 172 | 
             
                                            updateState.queryVersionId !== query.versionId && (_jsxs(_Fragment, { children: [_jsx("div", { className: "query-preview__field__warning__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-preview__field__warning__label", children: "Update action will reload query" })] })) }), _jsxs("div", { className: "search-modal__actions", children: [_jsx(ModalFooterButton, { text: "Update", disabled: !updateState.queryVersionId ||
         | 
| 180 173 | 
             
                                                    updateState.queryVersionId === query.versionId, onClick: updateQueryVersionId }), _jsx(ModalFooterButton, { text: "Close", onClick: closeModal, type: "secondary" })] })] })] }) }));
         | 
| 181 174 | 
             
            });
         | 
| 182 | 
            -
            const QueryEditorHeaderContent = observer((props) => {
         | 
| 183 | 
            -
                const { queryBuilderState } = props;
         | 
| 184 | 
            -
                const editorStore = useQueryEditorStore();
         | 
| 185 | 
            -
                const applicationStore = useLegendQueryApplicationStore();
         | 
| 186 | 
            -
                const isExistingQuery = editorStore instanceof ExistingQueryEditorStore;
         | 
| 187 | 
            -
                const renameQuery = () => {
         | 
| 188 | 
            -
                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 189 | 
            -
                        editorStore.updateState.setQueryRenamer(true);
         | 
| 190 | 
            -
                    }
         | 
| 191 | 
            -
                };
         | 
| 192 | 
            -
                const showQueryInfo = () => {
         | 
| 193 | 
            -
                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 194 | 
            -
                        editorStore.updateState.setShowQueryInfo(true);
         | 
| 195 | 
            -
                    }
         | 
| 196 | 
            -
                };
         | 
| 197 | 
            -
                // actions
         | 
| 198 | 
            -
                const openQueryLoader = () => {
         | 
| 199 | 
            -
                    editorStore.queryLoaderState.setQueryLoaderDialogOpen(true);
         | 
| 200 | 
            -
                };
         | 
| 201 | 
            -
                const viewProject = () => {
         | 
| 202 | 
            -
                    LegendQueryTelemetryHelper.logEvent_QueryViewProjectLaunched(editorStore.applicationStore.telemetryService);
         | 
| 203 | 
            -
                    const { groupId, artifactId, versionId } = editorStore.getProjectInfo();
         | 
| 204 | 
            -
                    createViewProjectHandler(applicationStore)(groupId, artifactId, versionId, undefined);
         | 
| 205 | 
            -
                };
         | 
| 206 | 
            -
                const viewSDLCProject = () => {
         | 
| 207 | 
            -
                    LegendQueryTelemetryHelper.logEvent_QueryViewSdlcProjectLaunched(editorStore.applicationStore.telemetryService);
         | 
| 208 | 
            -
                    const { groupId, artifactId } = editorStore.getProjectInfo();
         | 
| 209 | 
            -
                    createViewSDLCProjectHandler(applicationStore, editorStore.depotServerClient)(groupId, artifactId, undefined).catch(applicationStore.alertUnhandledError);
         | 
| 210 | 
            -
                };
         | 
| 211 | 
            -
                const TEMPORARY__toggleLightDarkMode = () => {
         | 
| 212 | 
            -
                    applicationStore.layoutService.setColorTheme(applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
         | 
| 213 | 
            -
                        ? LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK
         | 
| 214 | 
            -
                        : LEGEND_APPLICATION_COLOR_THEME.LEGACY_LIGHT, { persist: true });
         | 
| 215 | 
            -
                };
         | 
| 216 | 
            -
                const openSaveQueryModal = () => {
         | 
| 217 | 
            -
                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 218 | 
            -
                        editorStore.updateState.showSaveModal();
         | 
| 219 | 
            -
                    }
         | 
| 220 | 
            -
                };
         | 
| 221 | 
            -
                const handleNewQuery = () => {
         | 
| 222 | 
            -
                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 223 | 
            -
                        const query = editorStore.query;
         | 
| 224 | 
            -
                        if (query) {
         | 
| 225 | 
            -
                            if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
         | 
| 226 | 
            -
                                editorStore.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, undefined, undefined));
         | 
| 227 | 
            -
                            }
         | 
| 228 | 
            -
                            else {
         | 
| 229 | 
            -
                                const mapping = editorStore.queryBuilderState?.executionContextState.mapping;
         | 
| 230 | 
            -
                                const runtime = editorStore.queryBuilderState?.executionContextState.runtimeValue;
         | 
| 231 | 
            -
                                if (mapping && runtime instanceof RuntimePointer) {
         | 
| 232 | 
            -
                                    editorStore.applicationStore.navigationService.navigator.goToLocation(generateMappingQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, mapping.path, runtime.packageableRuntime.value.path));
         | 
| 233 | 
            -
                                }
         | 
| 234 | 
            -
                            }
         | 
| 235 | 
            -
                        }
         | 
| 236 | 
            -
                    }
         | 
| 237 | 
            -
                };
         | 
| 238 | 
            -
                const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
         | 
| 239 | 
            -
                const queryDocEntry = applicationStore.documentationService.getDocEntry(QUERY_DOCUMENTATION_KEY.TUTORIAL_QUERY_BUILDER);
         | 
| 240 | 
            -
                const openQueryTutorial = () => {
         | 
| 241 | 
            -
                    if (queryDocEntry?.url) {
         | 
| 242 | 
            -
                        applicationStore.navigationService.navigator.visitAddress(queryDocEntry.url);
         | 
| 243 | 
            -
                    }
         | 
| 244 | 
            -
                };
         | 
| 245 | 
            -
                const handleQuerySaveAs = () => {
         | 
| 246 | 
            -
                    editorStore.queryCreatorState.open(editorStore instanceof ExistingQueryEditorStore
         | 
| 247 | 
            -
                        ? editorStore.query
         | 
| 248 | 
            -
                        : undefined);
         | 
| 249 | 
            -
                };
         | 
| 250 | 
            -
                const renderQueryTitle = () => {
         | 
| 251 | 
            -
                    if (editorStore instanceof ExistingQueryEditorStore) {
         | 
| 252 | 
            -
                        return (_jsx(QueryEditorExistingQueryHeader, { queryBuilderState: queryBuilderState, existingEditorStore: editorStore }));
         | 
| 253 | 
            -
                    }
         | 
| 254 | 
            -
                    else if (editorStore instanceof DataSpaceTemplateQueryCreatorStore) {
         | 
| 255 | 
            -
                        return (_jsxs("div", { className: "query-editor__dataspace__header", children: [_jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title__text query-editor__dataspace__header__title__text", children: editorStore.templateQueryTitle }), _jsx("div", { className: "query-editor__dataspace__header__title__tag", children: "template" })] }));
         | 
| 256 | 
            -
                    }
         | 
| 257 | 
            -
                    return (_jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title" }));
         | 
| 258 | 
            -
                };
         | 
| 259 | 
            -
                const extraHelpMenuContentItems = applicationStore.pluginManager
         | 
| 260 | 
            -
                    .getApplicationPlugins()
         | 
| 261 | 
            -
                    .flatMap((plugin) => plugin.getExtraQueryEditorHelpMenuActionConfigurations?.() ?? [])
         | 
| 262 | 
            -
                    .map((item) => (_jsxs(MenuContentItem, { title: item.title ?? '', onClick: () => item.onClick(editorStore), children: [item.icon && _jsx(MenuContentItemIcon, { children: item.icon }), _jsx(MenuContentItemLabel, { children: item.label })] }, item.key)));
         | 
| 263 | 
            -
                const proceedCuratedTemplateQueryPromotion = async () => {
         | 
| 264 | 
            -
                    if (!(editorStore instanceof ExistingQueryEditorStore &&
         | 
| 265 | 
            -
                        queryBuilderState instanceof DataSpaceQueryBuilderState)) {
         | 
| 266 | 
            -
                        return;
         | 
| 267 | 
            -
                    }
         | 
| 268 | 
            -
                    // fetch project data
         | 
| 269 | 
            -
                    const project = StoreProjectData.serialization.fromJson(await editorStore.depotServerClient.getProject(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId));
         | 
| 270 | 
            -
                    // find the matching SDLC instance
         | 
| 271 | 
            -
                    const projectIDPrefix = parseProjectIdentifier(project.projectId).prefix;
         | 
| 272 | 
            -
                    const matchingSDLCEntry = editorStore.applicationStore.config.studioInstances.find((entry) => entry.sdlcProjectIDPrefix === projectIDPrefix);
         | 
| 273 | 
            -
                    if (matchingSDLCEntry) {
         | 
| 274 | 
            -
                        editorStore.applicationStore.navigationService.navigator.visitAddress(buildUrl([
         | 
| 275 | 
            -
                            editorStore.applicationStore.config.studioApplicationUrl,
         | 
| 276 | 
            -
                            generateDataSpaceTemplateQueryPromotionRoute(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId, editorStore.lightQuery.versionId, queryBuilderState.dataSpace.path, editorStore.lightQuery.id),
         | 
| 277 | 
            -
                        ]));
         | 
| 278 | 
            -
                    }
         | 
| 279 | 
            -
                    else {
         | 
| 280 | 
            -
                        editorStore.applicationStore.notificationService.notifyWarning(`Can't find the corresponding SDLC instance to productionize the query`);
         | 
| 281 | 
            -
                    }
         | 
| 282 | 
            -
                };
         | 
| 283 | 
            -
                const proceedTemplate = () => {
         | 
| 284 | 
            -
                    queryBuilderState.changeDetectionState.alertUnsavedChanges(() => {
         | 
| 285 | 
            -
                        proceedCuratedTemplateQueryPromotion().catch(editorStore.applicationStore.alertUnhandledError);
         | 
| 286 | 
            -
                    });
         | 
| 287 | 
            -
                };
         | 
| 288 | 
            -
                return (_jsxs("div", { className: "query-editor__header__content", "data-testid": QUERY_EDITOR_TEST_ID.QUERY_EDITOR_ACTIONS, children: [renderQueryTitle(), _jsxs("div", { className: "query-editor__header__actions", children: [applicationStore.pluginManager
         | 
| 289 | 
            -
                                    .getApplicationPlugins()
         | 
| 290 | 
            -
                                    .flatMap((plugin) => plugin.getExtraQueryEditorActionConfigurations?.(editorStore) ??
         | 
| 291 | 
            -
                                    [])
         | 
| 292 | 
            -
                                    .map((actionConfig) => (_jsx(Fragment, { children: actionConfig.renderer(editorStore, queryBuilderState) }, actionConfig.key))), _jsx(_Fragment, { children: editorStore instanceof ExistingQueryEditorStore &&
         | 
| 293 | 
            -
                                        queryBuilderState instanceof DataSpaceQueryBuilderState && (_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: proceedTemplate, title: !(editorStore instanceof ExistingQueryEditorStore)
         | 
| 294 | 
            -
                                            ? 'Please save your query first before promoting'
         | 
| 295 | 
            -
                                            : 'Promote Curated Template query...', children: [_jsx(ArrowCircleUpIcon, { className: "query-editor__header__action__icon--productionize" }), _jsx("div", { className: "query-editor__header__action__label", children: "Promote as Template Query" })] })) }), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: openQueryLoader, title: "Load query...", children: [_jsx(ManageSearchIcon, { className: "query-editor__header__action__icon--load" }), _jsx("div", { className: "query-editor__header__action__label", children: "Load Query" })] }), isExistingQuery && (_jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleNewQuery, title: "New query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "New Query" })] })), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: !isExistingQuery || editorStore.isPerformingBlockingAction, onClick: openSaveQueryModal, title: "Save query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save" })] }), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleQuerySaveAs, title: "Save as new query", children: [_jsx(SaveAsIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save As..." })] }), _jsxs(DropdownMenu, { className: "query-editor__header__action btn--dark", disabled: editorStore.isViewProjectActionDisabled, content: _jsxs(MenuContent, { children: [extraHelpMenuContentItems, queryDocEntry && (_jsxs(MenuContentItem, { onClick: openQueryTutorial, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { children: "Open Documentation" })] })), _jsxs(MenuContentItem, { onClick: toggleAssistant, children: [_jsx(MenuContentItemIcon, { children: !applicationStore.assistantService.isHidden ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Virtual Assistant" })] })] }), children: [_jsx("div", { className: "query-editor__header__action__label", title: "See more options", children: "Help..." }), _jsx(CaretDownIcon, { className: "query-editor__header__action__dropdown-trigger" })] }), editorStore.queryLoaderState.isQueryLoaderDialogOpen && (_jsx(QueryLoaderDialog, { queryLoaderState: editorStore.queryLoaderState, title: "Load query" })), _jsx("button", { title: "Toggle light/dark mode", onClick: TEMPORARY__toggleLightDarkMode, className: "query-editor__header__action query-editor__header__action__theme-toggler", children: applicationStore.layoutService
         | 
| 296 | 
            -
                                        .TEMPORARY__isLightColorThemeEnabled ? (_jsx(_Fragment, { children: _jsx(LightBulbIcon, { className: "query-editor__header__action__icon--bulb--light" }) })) : (_jsx(_Fragment, { children: _jsx(EmptyLightBulbIcon, { className: "query-editor__header__action__icon--bulb--dark" }) })) }), _jsxs(DropdownMenu, { className: "query-editor__header__action btn--medium", disabled: editorStore.isViewProjectActionDisabled, content: _jsxs(MenuContent, { children: [isExistingQuery && (_jsx(MenuContentItem, { className: "query-editor__header__action__options", onClick: renameQuery, disabled: !isExistingQuery, children: "Rename Query" })), isExistingQuery && (_jsx(MenuContentItem, { className: "query-editor__header__action__options", onClick: showQueryInfo, disabled: !isExistingQuery, children: "Get Query Info" })), _jsx(MenuContentItem, { className: "query-editor__header__action__options", disabled: editorStore.isViewProjectActionDisabled, onClick: viewProject, children: "Go to Project" }), _jsx(MenuContentItem, { className: "query-editor__header__action__options", disabled: editorStore.isViewProjectActionDisabled, onClick: viewSDLCProject, children: "Go to SDLC project" })] }), children: [_jsx("div", { className: "query-editor__header__action__label", title: "See more options", children: "More Actions..." }), _jsx(CaretDownIcon, { className: "query-editor__header__action__dropdown-trigger" })] }), editorStore.queryCreatorState.showCreateModal && (_jsx(CreateQueryDialog, {})), isExistingQuery &&
         | 
| 297 | 
            -
                                    editorStore.updateState.showQueryInfo &&
         | 
| 298 | 
            -
                                    editorStore.query && (_jsx(QueryEditorExistingQueryInfoModal, { existingEditorStore: editorStore, query: editorStore.query }))] })] }));
         | 
| 299 | 
            -
            });
         | 
| 300 175 | 
             
            export const QueryEditor = observer(() => {
         | 
| 301 176 | 
             
                const applicationStore = useApplicationStore();
         | 
| 302 177 | 
             
                const editorStore = useQueryEditorStore();
         | 
| 303 178 | 
             
                const isLoadingEditor = !editorStore.initState.hasCompleted;
         | 
| 179 | 
            +
                const isExistingQuery = editorStore instanceof ExistingQueryEditorStore;
         | 
| 304 180 | 
             
                // documentation
         | 
| 305 181 | 
             
                const appDocUrl = applicationStore.documentationService.url;
         | 
| 306 182 | 
             
                const docLinks = applicationStore.documentationService.links;
         | 
| @@ -314,24 +190,33 @@ export const QueryEditor = observer(() => { | |
| 314 190 | 
             
                };
         | 
| 315 191 | 
             
                // go to setup page
         | 
| 316 192 | 
             
                const goToQuerySetup = () => applicationStore.navigationService.navigator.visitAddress(applicationStore.navigationService.navigator.generateAddress(generateQuerySetupRoute()));
         | 
| 193 | 
            +
                const goToReleaseLog = () => applicationStore.releaseNotesService.setReleaseLog(true);
         | 
| 317 194 | 
             
                // settings
         | 
| 318 195 | 
             
                // NOTE: this is temporary until we find a better home for these settings in query builder
         | 
| 319 196 | 
             
                const engineConfig = editorStore.graphManagerState.graphManager.TEMPORARY__getEngineConfig();
         | 
| 320 197 | 
             
                const toggleEngineClientRequestPayloadCompression = () => engineConfig.setUseClientRequestPayloadCompression(!engineConfig.useClientRequestPayloadCompression);
         | 
| 198 | 
            +
                const TEMPORARY__toggleLightDarkMode = () => {
         | 
| 199 | 
            +
                    applicationStore.layoutService.setColorTheme(applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
         | 
| 200 | 
            +
                        ? LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK
         | 
| 201 | 
            +
                        : LEGEND_APPLICATION_COLOR_THEME.LEGACY_LIGHT, { persist: true });
         | 
| 202 | 
            +
                };
         | 
| 321 203 | 
             
                useEffect(() => {
         | 
| 322 204 | 
             
                    flowResult(editorStore.initialize()).catch(applicationStore.alertUnhandledError);
         | 
| 323 205 | 
             
                }, [editorStore, applicationStore]);
         | 
| 324 | 
            -
                return (_jsxs("div", { className: "query-editor", children: [_jsxs("div", { className: "query- | 
| 325 | 
            -
             | 
| 326 | 
            -
             | 
| 327 | 
            -
             | 
| 328 | 
            -
             | 
| 206 | 
            +
                return (_jsxs("div", { className: "query-editor", children: [_jsxs("div", { className: "query-editor__logo-header", children: [_jsxs("div", { className: "query-editor__logo-header__combo", children: [_jsx("div", { className: "query-editor__logo-header__combo__menu", children: _jsx(DropdownMenu, { className: "query-editor__logo-header__combo__menu-item", menuProps: {
         | 
| 207 | 
            +
                                                    anchorOrigin: { vertical: 'top', horizontal: 'right' },
         | 
| 208 | 
            +
                                                    transformOrigin: { vertical: 'top', horizontal: 'left' },
         | 
| 209 | 
            +
                                                    elevation: 7,
         | 
| 210 | 
            +
                                                }, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { onClick: goToQuerySetup, children: "Back to query setup" }), _jsx(MenuContentItem, { onClick: goToReleaseLog, children: "Legend Query Release Log" }), _jsx(MenuContentItem, { disabled: !appDocUrl, onClick: goToDocumentation, children: "Documentation" }), docLinks?.map((entry) => (_jsx(MenuContentItem, { onClick: () => goToDocLink(entry.url), children: entry.label }, entry.key))), _jsx(MenuContentDivider, {}), _jsx(MenuContentItem, { disabled: true, children: "Settings" }), _jsxs(MenuContentItem, { onClick: toggleEngineClientRequestPayloadCompression, children: [_jsx(MenuContentItemIcon, { children: engineConfig.useClientRequestPayloadCompression ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Compress request payload" })] })] }), children: _jsx(MenuIcon, {}) }) }), _jsx("div", { className: "query-editor__logo-header__combo__name", children: "Legend Query" })] }), _jsx("button", { title: "Toggle light/dark mode", onClick: TEMPORARY__toggleLightDarkMode, className: "query-editor__header__action query-editor__header__action__theme-toggler", children: applicationStore.layoutService
         | 
| 211 | 
            +
                                        .TEMPORARY__isLightColorThemeEnabled ? (_jsx(_Fragment, { children: _jsx(SunIcon, { className: "query-editor__header__action__icon--bulb--light" }) })) : (_jsx(_Fragment, { children: _jsx(MoonIcon, { className: "query-editor__header__action__icon--bulb--dark" }) })) })] }), _jsxs("div", { className: "query-editor__content", children: [_jsx(PanelLoadingIndicator, { isLoading: isLoadingEditor }), !isLoadingEditor && editorStore.queryBuilderState && (_jsxs(_Fragment, { children: [_jsx(QueryBuilderNavigationBlocker, { queryBuilderState: editorStore.queryBuilderState }), _jsx(QueryBuilder, { queryBuilderState: editorStore.queryBuilderState })] })), isLoadingEditor && (_jsx(BlankPanelContent, { children: editorStore.initState.message ??
         | 
| 329 212 | 
             
                                        editorStore.graphManagerState.systemBuildState.message ??
         | 
| 330 213 | 
             
                                        editorStore.graphManagerState.dependenciesBuildState.message ??
         | 
| 331 214 | 
             
                                        editorStore.graphManagerState.generationsBuildState.message ??
         | 
| 332 215 | 
             
                                        editorStore.graphManagerState.graphBuildState.message })), !isLoadingEditor &&
         | 
| 333 216 | 
             
                                    !editorStore.queryBuilderState &&
         | 
| 334 | 
            -
                                    editorStore instanceof ExistingQueryEditorStore && (_jsx(QueryEditorExistingQueryVersionRevertModal, { existingEditorStore: editorStore }))] }) | 
| 217 | 
            +
                                    editorStore instanceof ExistingQueryEditorStore && (_jsx(QueryEditorExistingQueryVersionRevertModal, { existingEditorStore: editorStore }))] }), editorStore.queryLoaderState.isQueryLoaderDialogOpen && (_jsx(QueryLoaderDialog, { queryLoaderState: editorStore.queryLoaderState, title: "Load query" })), editorStore.queryCreatorState.showCreateModal && _jsx(CreateQueryDialog, {}), isExistingQuery &&
         | 
| 218 | 
            +
                            editorStore.updateState.showQueryInfo &&
         | 
| 219 | 
            +
                            editorStore.query && (_jsx(QueryEditorExistingQueryInfoModal, { existingEditorStore: editorStore, query: editorStore.query }))] }));
         | 
| 335 220 | 
             
            });
         | 
| 336 221 | 
             
            export const ExistingQueryEditor = observer(() => {
         | 
| 337 222 | 
             
                const params = useParams();
         |