@finos/legend-application-query 13.2.15 → 13.2.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuyBH,eAAO,MAAM,WAAW;;CAoHtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAS9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAmB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC"}
1
+ {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwyBH,eAAO,MAAM,WAAW;;CA2HtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAS9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAmB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC"}
@@ -32,6 +32,7 @@ import { QUERY_EDITOR_TEST_ID } from '../__lib__/LegendQueryTesting.js';
32
32
  import { compareSemVerVersions, generateGAVCoordinates, } from '@finos/legend-storage';
33
33
  import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
34
34
  import { buildVersionOption } from './QuerySetup.js';
35
+ import { QueryEditorExistingQueryVersionRevertModal } from './QueryEdtiorExistingQueryVersionRevertModal.js';
35
36
  const CreateQueryDialog = observer(() => {
36
37
  const editorStore = useQueryEditorStore();
37
38
  const createQueryState = editorStore.queryCreatorState;
@@ -271,11 +272,13 @@ export const QueryEditor = observer(() => {
271
272
  anchorOrigin: { vertical: 'top', horizontal: 'right' },
272
273
  transformOrigin: { vertical: 'top', horizontal: 'left' },
273
274
  elevation: 7,
274
- }, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { onClick: goToQuerySetup, children: "Back to query setup" }), _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, {}) }) }), !isLoadingEditor && editorStore.queryBuilderState && (_jsx(QueryEditorHeaderContent, { queryBuilderState: editorStore.queryBuilderState }))] }), _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 || !editorStore.queryBuilderState) && (_jsx(BlankPanelContent, { children: editorStore.initState.message ??
275
+ }, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { onClick: goToQuerySetup, children: "Back to query setup" }), _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, {}) }) }), !isLoadingEditor && editorStore.queryBuilderState && (_jsx(QueryEditorHeaderContent, { queryBuilderState: editorStore.queryBuilderState }))] }), _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 ??
275
276
  editorStore.graphManagerState.systemBuildState.message ??
276
277
  editorStore.graphManagerState.dependenciesBuildState.message ??
277
278
  editorStore.graphManagerState.generationsBuildState.message ??
278
- editorStore.graphManagerState.graphBuildState.message }))] })] }));
279
+ editorStore.graphManagerState.graphBuildState.message })), !isLoadingEditor &&
280
+ !editorStore.queryBuilderState &&
281
+ editorStore instanceof ExistingQueryEditorStore && (_jsx(QueryEditorExistingQueryVersionRevertModal, { existingEditorStore: editorStore }))] })] }));
279
282
  });
280
283
  export const ExistingQueryEditor = observer(() => {
281
284
  const params = useParams();
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,aAAa,EACb,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SA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ACL,KAAC,gCAAgC,IAC/B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,YAE1B,KAAC,WAAW,KAAG,GACkB,CACpC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC/C,MAAM,MAAM,GAAG,SAAS,EAAiC,CAAC;IAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAC1E,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAE1E,OAAO,CACL,KAAC,gCAAgC,IAC/B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,YAExB,KAAC,WAAW,KAAG,GACkB,CACpC,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,aAAa,EACb,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,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AM,WAAW,GAAG,UAAU,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAC9E,MAAM,YAAY,GAChB,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,gCAAgC,CAC3E,8BAA8B,CAAC,qBAAqB,CACrD,CAAC;IAEJ,OAAO,CACL,KAAC,gCAAgC,IAC/B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,YAE1B,KAAC,WAAW,KAAG,GACkB,CACpC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC/C,MAAM,MAAM,GAAG,SAAS,EAAiC,CAAC;IAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAC1E,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAE1E,OAAO,CACL,KAAC,gCAAgC,IAC/B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,YAExB,KAAC,WAAW,KAAG,GACkB,CACpC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ExistingQueryEditorStore } from '../stores/QueryEditorStore.js';
17
+ export declare const QueryEditorExistingQueryVersionRevertModal: ((props: {
18
+ existingEditorStore: ExistingQueryEditorStore;
19
+ }) => import("react/jsx-runtime").JSX.Element) & {
20
+ displayName: string;
21
+ };
22
+ //# sourceMappingURL=QueryEdtiorExistingQueryVersionRevertModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryEdtiorExistingQueryVersionRevertModal.d.ts","sourceRoot":"","sources":["../../src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,eAAO,MAAM,0CAA0C,WAC7C;IAAE,mBAAmB,EAAE,wBAAwB,CAAA;CAAE;;CAyG1D,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { BlankPanelContent, Modal, ModalBody, CustomSelectorInput, ModalFooter, ModalFooterButton, } from '@finos/legend-art';
18
+ import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
19
+ import { compareSemVerVersions } from '@finos/legend-storage';
20
+ import { flowResult } from 'mobx';
21
+ import { observer } from 'mobx-react-lite';
22
+ import { useState, useEffect } from 'react';
23
+ import { buildVersionOption } from './QuerySetup.js';
24
+ import { generateExistingQueryEditorRoute } from '../__lib__/LegendQueryNavigation.js';
25
+ export const QueryEditorExistingQueryVersionRevertModal = observer((props) => {
26
+ const { existingEditorStore } = props;
27
+ const updateState = existingEditorStore.updateState;
28
+ const applicationStore = existingEditorStore.applicationStore;
29
+ const [queryVersion, setQueryVersion] = useState(existingEditorStore.lightQuery.originalVersionId);
30
+ const versionOptions = [
31
+ LATEST_VERSION_ALIAS,
32
+ ...updateState.projectVersions,
33
+ ]
34
+ .slice()
35
+ .sort((v1, v2) => compareSemVerVersions(v2, v1))
36
+ .map(buildVersionOption);
37
+ const selectedVersionOption = queryVersion
38
+ ? buildVersionOption(queryVersion)
39
+ : null;
40
+ const onVersionOptionChange = async (option) => {
41
+ if (option?.value && option.value !== queryVersion) {
42
+ setQueryVersion(option.value);
43
+ }
44
+ };
45
+ const updateQueryVersionId = applicationStore.guardUnhandledError(async () => {
46
+ if (queryVersion) {
47
+ flowResult(updateState.updateQueryVersionId(existingEditorStore.lightQuery.id, queryVersion))
48
+ .then(() => updateState.editorStore.applicationStore.navigationService.navigator.goToLocation(generateExistingQueryEditorRoute(existingEditorStore.lightQuery.id)))
49
+ .catch(applicationStore.alertUnhandledError);
50
+ }
51
+ });
52
+ useEffect(() => {
53
+ flowResult(updateState.fetchProjectVersions(existingEditorStore.lightQuery.groupId, existingEditorStore.lightQuery.artifactId)).catch(applicationStore.alertUnhandledError);
54
+ }, [
55
+ applicationStore,
56
+ existingEditorStore.lightQuery.artifactId,
57
+ existingEditorStore.lightQuery.groupId,
58
+ updateState,
59
+ ]);
60
+ return (_jsx(BlankPanelContent, { children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "query-editor__blocking-alert", children: [_jsxs(ModalBody, { children: [_jsxs("div", { className: "query-editor__blocking-alert__summary-text", children: ["Query is incompatible with version `", existingEditorStore.lightQuery.versionId, "`.", existingEditorStore.lightQuery.originalVersionId && (_jsxs(_Fragment, { children: [' ', "It was initialized with version `", existingEditorStore.lightQuery.originalVersionId, "`."] })), _jsx("div", { className: "query-editor__blocking-alert__summary-text", children: "Choose one version from dropdown to update query version." })] }), _jsx(CustomSelectorInput, { className: "query-editor__version-selector", options: versionOptions, isLoading: updateState.fetchProjectVersionState.isInProgress, onChange: onVersionOptionChange, value: selectedVersionOption, placeholder: updateState.fetchProjectVersionState.isInProgress
61
+ ? 'Fetching project versions'
62
+ : 'Choose a version', darkMode: !applicationStore.layoutService
63
+ .TEMPORARY__isLightColorThemeEnabled })] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: updateQueryVersionId, text: "Update" }) })] }) }));
64
+ });
65
+ //# sourceMappingURL=QueryEdtiorExistingQueryVersionRevertModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryEdtiorExistingQueryVersionRevertModal.js","sourceRoot":"","sources":["../../src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAsB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AAGvF,MAAM,CAAC,MAAM,0CAA0C,GAAG,QAAQ,CAChE,CAAC,KAAwD,EAAE,EAAE;IAC3D,MAAM,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,WAAW,GAAG,m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
1
- /** @license @finos/legend-application-query v13.2.15
1
+ /** @license @finos/legend-application-query v13.2.18
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- .query-setup{display:flex;justify-content:center;width:100%;height:calc(100% - 2.2rem);padding:20rem;overflow:overlay}.query-setup__status-bar{display:flex;align-items:center;display:flex;justify-content:space-between;height:2.2rem;background:var(--color-blue-100);color:var(--color-light-grey-0);padding:0 .5rem 0 1rem}.query-setup__status-bar__left{height:100%;display:flex;align-items:center}.query-setup__status-bar__right{height:100%;display:flex;align-items:center}.query-setup__status-bar__action{display:flex;align-items:center;justify-content:center;cursor:pointer;background:none;height:100%;width:3rem}.query-setup__status-bar__action__toggler{color:var(--color-dark-shade-300)}.query-setup__status-bar__action__toggler--toggled{color:var(--color-light-grey-0)}.query-setup__landing-page{display:flex;flex-direction:column;width:62rem}.query-setup__landing-page__title{display:flex;align-items:center;justify-content:flex-start;color:var(--color-light-grey-400);font-family:"Roboto Mono",monospace;font-size:1.4rem;margin-bottom:1rem;cursor:default;user-select:none}.query-setup__landing-page__title__question-mark{margin-left:.7rem;color:var(--color-dark-grey-500);font-size:1.6rem}.query-setup__landing-page__title__question-mark:hover{color:var(--color-yellow-100);cursor:help}.query-setup__landing-page__action-group{display:flex;flex-direction:column;background:var(--color-dark-grey-80);border-radius:.2rem;position:relative}.query-setup__landing-page__action-group__tag{display:flex;align-items:center;height:1.6rem;background:var(--color-blue-200);color:var(--color-light-grey-0);font-size:1.1rem;padding:.5rem;border-radius:.2rem;margin-left:.5rem;position:absolute;top:-0.5rem;font-weight:700;font-family:"Roboto Mono",monospace;user-select:none;cursor:default}.query-setup__landing-page__action-group--studio .query-setup__landing-page__action-group__tag{background:var(--color-purple-200)}.query-setup__landing-page__action-group__header{display:flex;align-items:center;justify-content:flex-end;height:2.5rem}.query-setup__landing-page__action-group__config{display:flex;align-items:center;justify-content:center;height:2.5rem;width:2.5rem;cursor:pointer;color:var(--color-dark-grey-400);position:relative}.query-setup__landing-page__action-group__config:hover{color:var(--color-dark-grey-500)}.query-setup__landing-page__action-group__config__status{position:absolute;right:.4rem;bottom:.2rem}.query-setup__landing-page__action-group__config__status svg{font-size:.8rem;color:var(--color-blue-100)}.query-setup__landing-page__action-group__body{display:flex;justify-content:center}.query-setup__landing-page__action-group__body__column{display:flex;align-items:center;flex-direction:column;width:28rem}.query-setup__landing-page__action-group__body__column+.query-setup__landing-page__action-group__body__column{border-left:.2rem solid var(--color-dark-grey-50)}.query-setup__landing-page__action-group__footer{display:flex;align-items:center;justify-content:center;height:2.5rem}.query-setup__landing-page__action-group__footer__content{display:flex;align-items:flex-start;justify-content:flex-end;width:54rem;height:2.5rem}.query-setup__landing-page__action-group__footer__btn svg{font-size:2rem;color:var(--color-dark-grey-400)}.query-setup__landing-page__action-group__footer__btn:hover svg{color:var(--color-dark-grey-500)}.query-setup__landing-page__action-group+.query-setup__landing-page__action-group{margin-top:1rem}.query-setup__landing-page__action{display:flex;align-items:center;height:3.4rem;width:26rem;border-radius:.2rem;background:var(--color-light-grey-400);user-select:none}.query-setup__landing-page__action--existing-query:hover{background:var(--color-magenta-50)}.query-setup__landing-page__action--service-query:hover{background:var(--color-blue-50)}.query-setup__landing-page__action--productionize-query:hover{background:var(--color-orange-100)}.query-setup__landing-page__action--create-mapping-query:hover{background:var(--color-lime-75)}.query-setup__landing-page__action--studio{width:54rem}.query-setup__landing-page__action--studio:hover{background:var(--color-lime-75)}.query-setup__landing-page__action--advanced{background:var(--color-dark-grey-400)}.query-setup__landing-page__action__icon{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;height:3.4rem;width:3.4rem;border-right:.1rem solid var(--color-dark-shade-300)}.query-setup__landing-page__action__icon svg{color:var(--color-dark-shade-800)}.query-setup__landing-page__action__label{display:flex;align-items:center;padding:0 1.5rem;height:100%;width:100%;color:var(--color-dark-shade-800);font-size:1.2rem;font-weight:500}.query-setup__landing-page__action+.query-setup__landing-page__action{margin-top:.5rem}.query-setup__landing-page__icon--search{font-size:2rem}.query-setup__landing-page__footer{display:flex;justify-content:flex-end;padding:.5rem 1rem}.query-setup__landing-page__footer__more-btn svg{font-size:2.6rem;color:var(--color-dark-grey-250);animation:bouncedown .5s alternate ease infinite}.query-setup__landing-page__footer__more-btn:hover svg{color:var(--color-dark-grey-400)}@keyframes bouncedown{from{transform:translateY(0.2rem)}to{transform:translateY(-0.2rem)}}.query-setup__landing-page__config-menu .menu__item{font-size:1.2rem;height:2.2rem}.query-setup__landing-page__config-menu .menu__item__icon svg{font-size:1.2rem}.query-setup__landing-page__config-menu .menu__item__label{font-size:1.2rem;margin-left:.5rem}.query-setup__wizard{display:flex;flex-direction:column;width:60rem;background:var(--color-dark-grey-80);border-radius:.2rem}.query-setup__wizard__header{display:flex;align-items:center;height:3.4rem;border-radius:.2rem .2rem 0 0}.query-setup__wizard__header__btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;height:100%;width:5rem}.query-setup__wizard__header__btn svg{font-size:1.2rem;color:var(--color-dark-shade-250)}.query-setup__wizard__header__btn:not([disabled]):hover svg{color:var(--color-dark-shade-800)}.query-setup__wizard__header__btn--ready svg{color:var(--color-dark-shade-800);animation:nudge-horizontal .5s infinite ease}.query-setup__wizard__header__btn[disabled]{background:var(--color-dark-grey-80);cursor:not-allowed}.query-setup__wizard__header__btn[disabled] svg{color:var(--color-dark-grey-280)}.query-setup__wizard__header__title{display:flex;align-items:center;height:100%;width:calc(100% - 10rem);padding:0 2rem;color:var(--color-dark-shade-800);font-family:"Roboto Mono",monospace;font-size:1.3rem;border-left:.1rem solid var(--color-dark-shade-250);cursor:default}.query-setup__wizard__content{display:flex;align-items:center;flex-direction:column;height:calc(100% - 3.4rem)}.query-setup__wizard__group__title{display:flex;align-items:center;height:3.4rem;color:var(--color-light-grey-400);font-family:"Roboto Mono",monospace;font-size:1.3rem;user-select:none}.query-setup__wizard__group--inline{height:2.8rem;display:flex}.query-setup__wizard__group--inline .query-setup__wizard__group__title{margin-right:.5rem;justify-content:center;width:2.8rem;height:2.8rem}.query-setup__wizard__group+.query-setup__wizard__group{margin-top:1rem}.query-setup__wizard__selector{width:50rem}@keyframes nudge-horizontal{from{transform:translateX(0.1rem)}to{transform:translateX(-0.1rem)}}.query-setup__create-query{height:38.2rem}.query-setup__create-query__header{background:var(--color-lime-75)}.query-setup__create-query__project{display:flex;align-items:center;justify-content:center;flex-direction:column;height:16.9rem;padding:2.5rem 0 1rem}.query-setup__create-query__graph{display:flex;flex-direction:column;height:13.4rem;width:50rem}.query-setup__create-query__graph__loader{height:13.4rem;border:.1rem solid var(--color-dark-grey-200);margin-top:2rem}.query-setup__service-query{height:32.2rem}.query-setup__service-query__header{background:var(--color-blue-50)}.query-setup__service-query__project{display:flex;align-items:center;justify-content:center;flex-direction:column;height:16.9rem;padding:2.5rem 0 1rem}.query-setup__service-query__graph{display:flex;flex-direction:column;height:8.4rem;width:50rem}.query-setup__service-query__graph__loader{height:13.4rem;border:.1rem solid var(--color-dark-grey-200);margin-top:2rem}.query-setup__service-query .query-setup__wizard__group{width:100%}.query-setup__existing-service-query{width:calc(100% - 10rem);height:10.2rem}.query-setup__existing-service-query__header{background:var(--color-blue-50)}.query-setup__existing-service-query__search-bar{height:2.8rem;width:100%}.query-setup__existing-service-query .query-setup__wizard__selector{width:100%}.query-setup__existing-service-query .query-setup__wizard__content{display:flex;align-items:center;padding:2rem}.query-setup__existing-query{position:absolute;bottom:10vh;top:10vh}.query-setup__existing-query__header{background:var(--color-magenta-50)}.query-setup__existing-query__content{height:calc(100% - 3.4rem)}.query-setup__productionize-query{position:absolute;bottom:10vh;top:10vh}.query-setup__productionize-query__header{background:var(--color-magenta-50)}.query-setup__productionize-query__content{height:calc(100% - 3.4rem)}.query-editor{display:flex;flex-direction:column;width:100%;height:100%}.query-editor__header{display:flex;align-items:center;height:3.4rem;padding:.2rem;background:var(--color-dark-grey-80)}.query-editor__header__menu{height:3.4rem;width:5rem;border-right:.1rem solid var(--color-dark-grey-200)}.query-editor__header__menu-item{display:flex;align-items:center;justify-content:center;height:3.4rem;width:100%;color:var(--color-dark-grey-400)}.query-editor__header__menu-item svg{font-size:2.3rem}.query-editor__header__content{display:flex;align-items:center;display:flex;justify-content:space-between;height:100%;width:100%}.query-editor__header__content__title{color:var(--color-light-grey-180);flex:1;margin:0 1rem}.query-editor__header__content__title input{padding:0 .4rem}.query-editor__header__content__title__text{display:flex;align-items:center;padding:.6rem .5rem .5rem;margin:0 1rem;margin-right:10%;cursor:pointer}.query-editor__header__actions{display:flex;align-items:center;height:100%}.query-editor__header__action{display:flex;align-items:center;justify-content:center;height:2.8rem;min-width:2rem;padding:0 1rem;border-radius:.2rem;margin:0 .3rem}.query-editor__header__action svg{color:var(--color-light-grey-100)}.query-editor__header__action__label{margin-left:.5rem;font-size:1.2rem}.query-editor__header__action__theme-toggler{border:.1rem solid var(--color-dark-grey-280)}.query-editor__header__action__icon--load{font-size:2rem;margin-bottom:.1rem}.query-editor__header__action__icon--bulb--light{color:var(--color-yellow-100) !important}.query-editor__header__action__icon--bulb--light:hover,.query-editor__header__action__icon--bulb--dark:hover{color:var(--color-yellow-200) !important}.query-editor__header__action__icon--bulb--dark{color:var(--color-light-grey-50) !important}.query-editor__header__action__icon--service{font-size:1.2rem}.query-editor__header__action__icon--productionize{font-size:1.3rem}.query-editor__header__action__view-project{display:flex;align-items:center;width:4.4rem;padding:0}.query-editor__header__action__view-project__btn{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:.2rem 0 0 .2rem;padding:0 .5rem}.query-editor__header__action__view-project__dropdown-trigger{display:flex;align-items:center;height:2.8rem;width:1.6rem;border-radius:0 .2rem .2rem 0;border-left:.1rem solid var(--color-dark-shade-200);cursor:pointer}.query-editor__header__action__view-project__dropdown-trigger svg{font-size:1.2rem}.query-editor__header__action+.query-editor__header__action{margin-left:0}.query-editor__header__action__dropdown-trigger{margin-left:.5rem}.query-editor__content{height:calc(100% - 3.4rem);width:100%}.query-editor__rename__input{border-radius:.2rem;padding:.5rem;height:2.3rem}.query-export{width:50vw;padding:0;overflow:hidden}.query-export .input{width:100%}/*# sourceMappingURL=index.css.map */
17
+ .query-setup{display:flex;justify-content:center;width:100%;height:calc(100% - 2.2rem);padding:20rem;overflow:overlay}.query-setup__status-bar{display:flex;align-items:center;display:flex;justify-content:space-between;height:2.2rem;background:var(--color-blue-100);color:var(--color-light-grey-0);padding:0 .5rem 0 1rem}.query-setup__status-bar__left{height:100%;display:flex;align-items:center}.query-setup__status-bar__right{height:100%;display:flex;align-items:center}.query-setup__status-bar__action{display:flex;align-items:center;justify-content:center;cursor:pointer;background:none;height:100%;width:3rem}.query-setup__status-bar__action__toggler{color:var(--color-dark-shade-300)}.query-setup__status-bar__action__toggler--toggled{color:var(--color-light-grey-0)}.query-setup__landing-page{display:flex;flex-direction:column;width:62rem}.query-setup__landing-page__title{display:flex;align-items:center;justify-content:flex-start;color:var(--color-light-grey-400);font-family:"Roboto Mono",monospace;font-size:1.4rem;margin-bottom:1rem;cursor:default;user-select:none}.query-setup__landing-page__title__question-mark{margin-left:.7rem;color:var(--color-dark-grey-500);font-size:1.6rem}.query-setup__landing-page__title__question-mark:hover{color:var(--color-yellow-100);cursor:help}.query-setup__landing-page__action-group{display:flex;flex-direction:column;background:var(--color-dark-grey-80);border-radius:.2rem;position:relative}.query-setup__landing-page__action-group__tag{display:flex;align-items:center;height:1.6rem;background:var(--color-blue-200);color:var(--color-light-grey-0);font-size:1.1rem;padding:.5rem;border-radius:.2rem;margin-left:.5rem;position:absolute;top:-0.5rem;font-weight:700;font-family:"Roboto Mono",monospace;user-select:none;cursor:default}.query-setup__landing-page__action-group--studio .query-setup__landing-page__action-group__tag{background:var(--color-purple-200)}.query-setup__landing-page__action-group__header{display:flex;align-items:center;justify-content:flex-end;height:2.5rem}.query-setup__landing-page__action-group__config{display:flex;align-items:center;justify-content:center;height:2.5rem;width:2.5rem;cursor:pointer;color:var(--color-dark-grey-400);position:relative}.query-setup__landing-page__action-group__config:hover{color:var(--color-dark-grey-500)}.query-setup__landing-page__action-group__config__status{position:absolute;right:.4rem;bottom:.2rem}.query-setup__landing-page__action-group__config__status svg{font-size:.8rem;color:var(--color-blue-100)}.query-setup__landing-page__action-group__body{display:flex;justify-content:center}.query-setup__landing-page__action-group__body__column{display:flex;align-items:center;flex-direction:column;width:28rem}.query-setup__landing-page__action-group__body__column+.query-setup__landing-page__action-group__body__column{border-left:.2rem solid var(--color-dark-grey-50)}.query-setup__landing-page__action-group__footer{display:flex;align-items:center;justify-content:center;height:2.5rem}.query-setup__landing-page__action-group__footer__content{display:flex;align-items:flex-start;justify-content:flex-end;width:54rem;height:2.5rem}.query-setup__landing-page__action-group__footer__btn svg{font-size:2rem;color:var(--color-dark-grey-400)}.query-setup__landing-page__action-group__footer__btn:hover svg{color:var(--color-dark-grey-500)}.query-setup__landing-page__action-group+.query-setup__landing-page__action-group{margin-top:1rem}.query-setup__landing-page__action{display:flex;align-items:center;height:3.4rem;width:26rem;border-radius:.2rem;background:var(--color-light-grey-400);user-select:none}.query-setup__landing-page__action--existing-query:hover{background:var(--color-magenta-50)}.query-setup__landing-page__action--service-query:hover{background:var(--color-blue-50)}.query-setup__landing-page__action--productionize-query:hover{background:var(--color-orange-100)}.query-setup__landing-page__action--create-mapping-query:hover{background:var(--color-lime-75)}.query-setup__landing-page__action--studio{width:54rem}.query-setup__landing-page__action--studio:hover{background:var(--color-lime-75)}.query-setup__landing-page__action--advanced{background:var(--color-dark-grey-400)}.query-setup__landing-page__action__icon{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;height:3.4rem;width:3.4rem;border-right:.1rem solid var(--color-dark-shade-300)}.query-setup__landing-page__action__icon svg{color:var(--color-dark-shade-800)}.query-setup__landing-page__action__label{display:flex;align-items:center;padding:0 1.5rem;height:100%;width:100%;color:var(--color-dark-shade-800);font-size:1.2rem;font-weight:500}.query-setup__landing-page__action+.query-setup__landing-page__action{margin-top:.5rem}.query-setup__landing-page__icon--search{font-size:2rem}.query-setup__landing-page__footer{display:flex;justify-content:flex-end;padding:.5rem 1rem}.query-setup__landing-page__footer__more-btn svg{font-size:2.6rem;color:var(--color-dark-grey-250);animation:bouncedown .5s alternate ease infinite}.query-setup__landing-page__footer__more-btn:hover svg{color:var(--color-dark-grey-400)}@keyframes bouncedown{from{transform:translateY(0.2rem)}to{transform:translateY(-0.2rem)}}.query-setup__landing-page__config-menu .menu__item{font-size:1.2rem;height:2.2rem}.query-setup__landing-page__config-menu .menu__item__icon svg{font-size:1.2rem}.query-setup__landing-page__config-menu .menu__item__label{font-size:1.2rem;margin-left:.5rem}.query-setup__wizard{display:flex;flex-direction:column;width:60rem;background:var(--color-dark-grey-80);border-radius:.2rem}.query-setup__wizard__header{display:flex;align-items:center;height:3.4rem;border-radius:.2rem .2rem 0 0}.query-setup__wizard__header__btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;height:100%;width:5rem}.query-setup__wizard__header__btn svg{font-size:1.2rem;color:var(--color-dark-shade-250)}.query-setup__wizard__header__btn:not([disabled]):hover svg{color:var(--color-dark-shade-800)}.query-setup__wizard__header__btn--ready svg{color:var(--color-dark-shade-800);animation:nudge-horizontal .5s infinite ease}.query-setup__wizard__header__btn[disabled]{background:var(--color-dark-grey-80);cursor:not-allowed}.query-setup__wizard__header__btn[disabled] svg{color:var(--color-dark-grey-280)}.query-setup__wizard__header__title{display:flex;align-items:center;height:100%;width:calc(100% - 10rem);padding:0 2rem;color:var(--color-dark-shade-800);font-family:"Roboto Mono",monospace;font-size:1.3rem;border-left:.1rem solid var(--color-dark-shade-250);cursor:default}.query-setup__wizard__content{display:flex;align-items:center;flex-direction:column;height:calc(100% - 3.4rem)}.query-setup__wizard__group__title{display:flex;align-items:center;height:3.4rem;color:var(--color-light-grey-400);font-family:"Roboto Mono",monospace;font-size:1.3rem;user-select:none}.query-setup__wizard__group--inline{height:2.8rem;display:flex}.query-setup__wizard__group--inline .query-setup__wizard__group__title{margin-right:.5rem;justify-content:center;width:2.8rem;height:2.8rem}.query-setup__wizard__group+.query-setup__wizard__group{margin-top:1rem}.query-setup__wizard__selector{width:50rem}@keyframes nudge-horizontal{from{transform:translateX(0.1rem)}to{transform:translateX(-0.1rem)}}.query-setup__create-query{height:38.2rem}.query-setup__create-query__header{background:var(--color-lime-75)}.query-setup__create-query__project{display:flex;align-items:center;justify-content:center;flex-direction:column;height:16.9rem;padding:2.5rem 0 1rem}.query-setup__create-query__graph{display:flex;flex-direction:column;height:13.4rem;width:50rem}.query-setup__create-query__graph__loader{height:13.4rem;border:.1rem solid var(--color-dark-grey-200);margin-top:2rem}.query-setup__service-query{height:32.2rem}.query-setup__service-query__header{background:var(--color-blue-50)}.query-setup__service-query__project{display:flex;align-items:center;justify-content:center;flex-direction:column;height:16.9rem;padding:2.5rem 0 1rem}.query-setup__service-query__graph{display:flex;flex-direction:column;height:8.4rem;width:50rem}.query-setup__service-query__graph__loader{height:13.4rem;border:.1rem solid var(--color-dark-grey-200);margin-top:2rem}.query-setup__service-query .query-setup__wizard__group{width:100%}.query-setup__existing-service-query{width:calc(100% - 10rem);height:10.2rem}.query-setup__existing-service-query__header{background:var(--color-blue-50)}.query-setup__existing-service-query__search-bar{height:2.8rem;width:100%}.query-setup__existing-service-query .query-setup__wizard__selector{width:100%}.query-setup__existing-service-query .query-setup__wizard__content{display:flex;align-items:center;padding:2rem}.query-setup__existing-query{position:absolute;bottom:10vh;top:10vh}.query-setup__existing-query__header{background:var(--color-magenta-50)}.query-setup__existing-query__content{height:calc(100% - 3.4rem)}.query-setup__productionize-query{position:absolute;bottom:10vh;top:10vh}.query-setup__productionize-query__header{background:var(--color-magenta-50)}.query-setup__productionize-query__content{height:calc(100% - 3.4rem)}.query-editor{display:flex;flex-direction:column;width:100%;height:100%}.query-editor__header{display:flex;align-items:center;height:3.4rem;padding:.2rem;background:var(--color-dark-grey-80)}.query-editor__header__menu{height:3.4rem;width:5rem;border-right:.1rem solid var(--color-dark-grey-200)}.query-editor__header__menu-item{display:flex;align-items:center;justify-content:center;height:3.4rem;width:100%;color:var(--color-dark-grey-400)}.query-editor__header__menu-item svg{font-size:2.3rem}.query-editor__header__content{display:flex;align-items:center;display:flex;justify-content:space-between;height:100%;width:100%}.query-editor__header__content__title{color:var(--color-light-grey-180);flex:1;margin:0 1rem}.query-editor__header__content__title input{padding:0 .4rem}.query-editor__header__content__title__text{display:flex;align-items:center;padding:.6rem .5rem .5rem;margin:0 1rem;margin-right:10%;cursor:pointer}.query-editor__header__actions{display:flex;align-items:center;height:100%}.query-editor__header__action{display:flex;align-items:center;justify-content:center;height:2.8rem;min-width:2rem;padding:0 1rem;border-radius:.2rem;margin:0 .3rem}.query-editor__header__action svg{color:var(--color-light-grey-100)}.query-editor__header__action__label{margin-left:.5rem;font-size:1.2rem}.query-editor__header__action__theme-toggler{border:.1rem solid var(--color-dark-grey-280)}.query-editor__header__action__icon--load{font-size:2rem;margin-bottom:.1rem}.query-editor__header__action__icon--bulb--light{color:var(--color-yellow-100) !important}.query-editor__header__action__icon--bulb--light:hover,.query-editor__header__action__icon--bulb--dark:hover{color:var(--color-yellow-200) !important}.query-editor__header__action__icon--bulb--dark{color:var(--color-light-grey-50) !important}.query-editor__header__action__icon--service{font-size:1.2rem}.query-editor__header__action__icon--productionize{font-size:1.3rem}.query-editor__header__action__view-project{display:flex;align-items:center;width:4.4rem;padding:0}.query-editor__header__action__view-project__btn{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:.2rem 0 0 .2rem;padding:0 .5rem}.query-editor__header__action__view-project__dropdown-trigger{display:flex;align-items:center;height:2.8rem;width:1.6rem;border-radius:0 .2rem .2rem 0;border-left:.1rem solid var(--color-dark-shade-200);cursor:pointer}.query-editor__header__action__view-project__dropdown-trigger svg{font-size:1.2rem}.query-editor__header__action+.query-editor__header__action{margin-left:0}.query-editor__header__action__dropdown-trigger{margin-left:.5rem}.query-editor__content{height:calc(100% - 3.4rem);width:100%}.query-editor__blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500;margin-bottom:2rem;text-align:justify}.query-editor__blocking-alert_version-selector{width:60rem}.query-editor__rename__input{border-radius:.2rem;padding:.5rem;height:2.3rem}.query-export{width:50vw;padding:0;overflow:hidden}.query-export .input{width:100%}/*# sourceMappingURL=index.css.map */
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../style/_query-setup.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_query-editor.scss"],"names":[],"mappings":"AAkBA,aCiBE,aACA,uBDfA,WACA,2BACA,cACA,iBAGF,yBCGE,aACA,mBAiBA,aACA,8BDlBA,cACA,iCACA,gCACA,uBAEA,+BACE,YACA,aACA,mBAGF,gCACE,YACA,aACA,mBAGF,iCCxBA,aACA,mBACA,uBDyBE,eACA,gBACA,YACA,WAEA,0CACE,kCAEA,mDACE,gCAMR,2BACE,aACA,sBACA,YAEA,kCCzCA,aACA,mBD2CE,2BACA,kCACA,oCACA,iBACA,mBACA,eACA,iBAGF,iDACE,kBACA,iCACA,iBAEA,uDACE,8BACA,YAIJ,yCACE,aACA,sBACA,qCACA,oBACA,kBAEA,8CCvEF,aACA,mBDyEI,cACA,iCACA,gCACA,iBACA,cACA,oBACA,kBACA,kBACA,YACA,gBACA,oCACA,iBACA,eAGF,+FACE,mCAGF,iDC7FF,aACA,mBD+FI,yBACA,cAGF,iDC1GF,aACA,mBACA,uBD2GI,cACA,aACA,eACA,iCACA,kBAEA,uDACE,iCAGF,yDACE,kBACA,YACA,aAEA,6DACE,gBACA,4BAKN,+CCxHF,aACA,uBD2HE,uDCjIF,aACA,mBDmII,sBACA,YAEA,8GACE,kDAIJ,iDClJF,aACA,mBACA,uBDmJI,cAEA,0DACE,aACA,uBACA,yBACA,YACA,cAIA,0DACE,eACA,iCAGF,gEACE,iCAKN,kFACE,gBAIJ,mCC1KA,aACA,mBD4KE,cACA,YACA,oBACA,uCACA,iBAEA,yDACE,mCAGF,wDACE,gCAGF,8DACE,mCAGF,+DACE,gCAGF,2CACE,YAEA,iDACE,gCAIJ,6CACE,sCAGF,yCCrNF,aACA,mBACA,uBA2BA,YACA,cD2LI,cACA,aACA,qDAEA,6CACE,kCAIJ,0CC5NF,aACA,mBD8NI,iBACA,YACA,WACA,kCACA,iBACA,gBAGF,sEACE,iBAIJ,yCACE,eAGF,mCACE,aACA,yBACA,mBAGE,iDACE,iBACA,iCACA,iDAGF,uDACE,iCAIJ,sBACE,KACE,6BAGF,GACE,+BAMJ,oDACE,iBACA,cAGF,8DACE,iBAGF,2DACE,iBACA,kBAKN,qBACE,aACA,sBACA,YACA,qCACA,oBAEA,6BCpSA,aACA,mBDsSE,cACA,8BAEA,kCChTF,aACA,mBACA,uBA2BA,YACA,cDsRI,YACA,WAEA,sCACE,iBACA,kCAIA,4DACE,kCAIJ,6CACE,kCACA,6CAGF,4CACE,qCACA,mBAEA,gDACE,iCAKN,oCC3UF,aACA,mBD6UI,YACA,yBACA,eACA,kCACA,oCACA,iBACA,oDACA,eAIJ,8BCzVA,aACA,mBD2VE,sBACA,2BAIA,mCCjWF,aACA,mBDmWI,cACA,kCACA,oCACA,iBACA,iBAIJ,oCACE,cACA,aAGF,uEACE,mBACA,uBACA,aACA,cAGF,wDACE,gBAGF,+BACE,YAIJ,4BACE,KACE,6BAGF,GACE,+BAIJ,2BACE,eAEA,mCACE,gCAGF,oCCxZA,aACA,mBACA,uBDyZE,sBACA,eACA,sBAGF,kCACE,aACA,sBACA,eACA,YAEA,0CACE,eACA,8CACA,gBAKN,4BACE,eAEA,oCACE,gCAGF,qCCrbA,aACA,mBACA,uBDsbE,sBACA,eACA,sBAGF,mCACE,aACA,sBACA,cACA,YAEA,2CACE,eACA,8CACA,gBAIJ,wDACE,WAIJ,qCACE,yBACA,eAEA,6CACE,gCAGF,iDACE,cACA,WAGF,oEACE,WAGF,mEC1dA,aACA,mBD4dE,aAIJ,6BACE,kBACA,YACA,SAEA,qCACE,mCAGF,sCACE,2BAIJ,kCACE,kBACA,YACA,SAEA,0CACE,mCAGF,2CACE,2BErgBJ,cACE,aACA,sBACA,WACA,YAEA,sBDMA,aACA,mBCJE,cACA,cACA,qCAEA,4BACE,cACA,WACA,oDAGF,iCDbF,aACA,mBACA,uBCcI,cACA,WACA,iCAEA,qCACE,iBAIJ,+BDnBF,aACA,mBAiBA,aACA,8BCII,YACA,WAEA,sCACE,kCACA,OACA,cAEA,4CACE,gBAIJ,4CDpCJ,aACA,mBCsCM,0BACA,cACA,iBACA,eAIJ,+BD9CF,aACA,mBCgDI,YAGF,8BD1DF,aACA,mBACA,uBC2DI,cACA,eACA,eACA,oBACA,eAEA,kCACE,kCAGF,qCACE,kBACA,iBAGF,6CACE,8CAIA,0CACE,eACA,oBAGF,iDACE,yCAGF,6GAEE,yCAGF,gDACE,4CAGF,6CACE,iBAGF,mDACE,iBAIJ,4CDtGJ,aACA,mBCwGM,aACA,UAEA,iDDlHN,aACA,mBACA,uBCmHQ,cACA,aACA,8BACA,gBAGF,8DDrHN,aACA,mBCuHQ,cACA,aACA,8BACA,oDACA,eAEA,kEACE,iBAMR,4DACE,cAGF,gDACE,kBAIJ,uBACE,2BACA,WAIJ,6BACE,oBACA,cACA,cAGF,cACE,WACA,UACA,gBAEA,qBACE","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_query-setup.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_query-editor.scss"],"names":[],"mappings":"AAkBA,aCiBE,aACA,uBDfA,WACA,2BACA,cACA,iBAGF,yBCGE,aACA,mBAiBA,aACA,8BDlBA,cACA,iCACA,gCACA,uBAEA,+BACE,YACA,aACA,mBAGF,gCACE,YACA,aACA,mBAGF,iCCxBA,aACA,mBACA,uBDyBE,eACA,gBACA,YACA,WAEA,0CACE,kCAEA,mDACE,gCAMR,2BACE,aACA,sBACA,YAEA,kCCzCA,aACA,mBD2CE,2BACA,kCACA,oCACA,iBACA,mBACA,eACA,iBAGF,iDACE,kBACA,iCACA,iBAEA,uDACE,8BACA,YAIJ,yCACE,aACA,sBACA,qCACA,oBACA,kBAEA,8CCvEF,aACA,mBDyEI,cACA,iCACA,gCACA,iBACA,cACA,oBACA,kBACA,kBACA,YACA,gBACA,oCACA,iBACA,eAGF,+FACE,mCAGF,iDC7FF,aACA,mBD+FI,yBACA,cAGF,iDC1GF,aACA,mBACA,uBD2GI,cACA,aACA,eACA,iCACA,kBAEA,uDACE,iCAGF,yDACE,kBACA,YACA,aAEA,6DACE,gBACA,4BAKN,+CCxHF,aACA,uBD2HE,uDCjIF,aACA,mBDmII,sBACA,YAEA,8GACE,kDAIJ,iDClJF,aACA,mBACA,uBDmJI,cAEA,0DACE,aACA,uBACA,yBACA,YACA,cAIA,0DACE,eACA,iCAGF,gEACE,iCAKN,kFACE,gBAIJ,mCC1KA,aACA,mBD4KE,cACA,YACA,oBACA,uCACA,iBAEA,yDACE,mCAGF,wDACE,gCAGF,8DACE,mCAGF,+DACE,gCAGF,2CACE,YAEA,iDACE,gCAIJ,6CACE,sCAGF,yCCrNF,aACA,mBACA,uBA2BA,YACA,cD2LI,cACA,aACA,qDAEA,6CACE,kCAIJ,0CC5NF,aACA,mBD8NI,iBACA,YACA,WACA,kCACA,iBACA,gBAGF,sEACE,iBAIJ,yCACE,eAGF,mCACE,aACA,yBACA,mBAGE,iDACE,iBACA,iCACA,iDAGF,uDACE,iCAIJ,sBACE,KACE,6BAGF,GACE,+BAMJ,oDACE,iBACA,cAGF,8DACE,iBAGF,2DACE,iBACA,kBAKN,qBACE,aACA,sBACA,YACA,qCACA,oBAEA,6BCpSA,aACA,mBDsSE,cACA,8BAEA,kCChTF,aACA,mBACA,uBA2BA,YACA,cDsRI,YACA,WAEA,sCACE,iBACA,kCAIA,4DACE,kCAIJ,6CACE,kCACA,6CAGF,4CACE,qCACA,mBAEA,gDACE,iCAKN,oCC3UF,aACA,mBD6UI,YACA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cACA,aACA,8BACA,gBAGF,8DDrHN,aACA,mBCuHQ,cACA,aACA,8BACA,oDACA,eAEA,kEACE,iBAMR,4DACE,cAGF,gDACE,kBAIJ,uBACE,2BACA,WAIA,4CACE,kCACA,gBACA,mBACA,mBAGF,+CACE,YAKN,6BACE,oBACA,cACA,cAGF,cACE,WACA,UACA,gBAEA,qBACE","file":"index.css"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.2.15",
3
+ "version": "13.2.18",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -115,6 +115,7 @@ export declare class ExistingQueryUpdateState {
115
115
  closeSaveModal(): void;
116
116
  fetchProjectVersions(groupId: string, artifactId: string): GeneratorFn<void>;
117
117
  updateQuery(queryName: string | undefined, queryVersionId: string | undefined): GeneratorFn<void>;
118
+ updateQueryVersionId(queryId: string, queryVersionId: string): GeneratorFn<void>;
118
119
  }
119
120
  export declare class ExistingQueryEditorStore extends QueryEditorStore {
120
121
  private queryId;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditorStore.d.ts","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EACL,KAAK,WAAW,EAOhB,WAAW,EACX,SAAS,EAKV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,iBAAiB,EACjB,KAAK,EAeN,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAEL,KAAK,qBAAqB,EAG3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAE3F,OAAO,KAAK,EAAE,2BAA2B,EAA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I1B,cAAc,IAAI,qBAAqB;IAQxB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAM1C,2BAA2B,CAC/B,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,iBAAiB,CAAC;IA8G7B,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAkB7B"}
@@ -19,7 +19,7 @@ import { GraphManagerState, Query, PureExecution, PackageableElementExplicitRefe
19
19
  import { EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl, EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl, generateExistingQueryEditorRoute, generateMappingQueryCreatorRoute, generateServiceQueryCreatorRoute, } from '../__lib__/LegendQueryNavigation.js';
20
20
  import { LEGEND_QUERY_APP_EVENT } from '../__lib__/LegendQueryEvent.js';
21
21
  import { parseProjectIdentifier, } from '@finos/legend-storage';
22
- import { resolveVersion, StoreProjectData, } from '@finos/legend-server-depot';
22
+ import { resolveVersion, StoreProjectData, LATEST_VERSION_ALIAS, VersionedProjectData, } from '@finos/legend-server-depot';
23
23
  import { DEFAULT_TAB_SIZE, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
24
24
  import { LegendQueryEventHelper } from '../__lib__/LegendQueryEventHelper.js';
25
25
  import { ClassQueryBuilderState, MappingQueryBuilderState, ServiceQueryBuilderState, QueryLoaderState, } from '@finos/legend-query-builder';
@@ -82,6 +82,10 @@ export class QueryCreatorState {
82
82
  const query = (yield this.editorStore.buildQueryForPersistence(new Query(), rawLambda, queryBuilderState.getCurrentParameterValues(), config));
83
83
  query.name = this.queryName;
84
84
  query.id = uuid();
85
+ query.originalVersionId =
86
+ query.versionId === LATEST_VERSION_ALIAS
87
+ ? VersionedProjectData.serialization.fromJson((yield this.editorStore.depotServerClient.getLatestVersion(query.groupId, query.artifactId))).versionId
88
+ : query.versionId;
85
89
  if (this.originalQuery) {
86
90
  query.stereotypes =
87
91
  this.originalQuery.stereotypes?.map(cloneQueryStereotype);
@@ -451,6 +455,7 @@ export class ExistingQueryUpdateState {
451
455
  setQueryRenamer: action,
452
456
  updateQuery: flow,
453
457
  fetchProjectVersions: flow,
458
+ updateQueryVersionId: flow,
454
459
  });
455
460
  this.queryVersionId = this.editorStore.query?.versionId;
456
461
  }
@@ -526,6 +531,34 @@ export class ExistingQueryUpdateState {
526
531
  this.updateQueryState.complete();
527
532
  }
528
533
  }
534
+ *updateQueryVersionId(queryId, queryVersionId) {
535
+ try {
536
+ this.updateQueryState.inProgress();
537
+ const newQuery = new Query();
538
+ // since we only need to update version id, we just need to provide value for version id and keep others undefined/null
539
+ newQuery.id = queryId;
540
+ newQuery.versionId = queryVersionId;
541
+ const updatedQuery = (yield this.editorStore.graphManagerState.graphManager.patchQuery(newQuery, this.editorStore.graphManagerState.graph));
542
+ this.editorStore.applicationStore.notificationService.notifySuccess(`Successfully updated query!`);
543
+ LegendQueryTelemetryHelper.logEvent_UpdateQuerySucceeded(this.editorStore.applicationStore.telemetryService, {
544
+ query: {
545
+ id: updatedQuery.id,
546
+ name: updatedQuery.name,
547
+ groupId: updatedQuery.groupId,
548
+ artifactId: updatedQuery.artifactId,
549
+ versionId: updatedQuery.versionId,
550
+ },
551
+ });
552
+ }
553
+ catch (error) {
554
+ assertErrorThrown(error);
555
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE), error);
556
+ this.editorStore.applicationStore.notificationService.notifyError(error);
557
+ }
558
+ finally {
559
+ this.updateQueryState.complete();
560
+ }
561
+ }
529
562
  }
530
563
  export class ExistingQueryEditorStore extends QueryEditorStore {
531
564
  queryId;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditorStore.js","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;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CAAC,UAAU,CAAC,SAAS,CAAC;YAC9C,CAAC;YACD,aAAa,EAAE,CAAC,KAAY,EAAQ,EAAE;gBACpC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"QueryEditorStore.js","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAGL,QAAQ,EACR,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAOL,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,mCAAmC,EACnC,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,OAAO,EACP,wBAAwB,EACxB,UAAU,EACV,wBAAwB,EACxB,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,6DAA6D,EAC7D,iEAAiE,EACjE,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAIL,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gBAAg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;gBACtB,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,SAAS,EAAE,KAAK,CAAC,SAAS;aAC3B;SACF,CACF,CAAC;QACF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,uBAAuB,CACrB,MAAiB,EACjB,OAA0C;QAE1C,OAAO;YACL,WAAW,EAAE,OAAO,EAAE,MAAM;gBAC1B,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;gBAC3B,CAAC,CAAC,WAAW,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACrC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB;YAC/C,SAAS,EAAE,CAAC,KAAY,EAAQ,EAAE;gBAChC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC9B,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gBACxC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;gBAC9C,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC9C,CAAC;YACD,aAAa,EAAE,CAAC,KAAY,EAAQ,EAAE;gBACpC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.2.15",
3
+ "version": "13.2.18",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,14 +43,14 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "15.0.71",
47
- "@finos/legend-art": "7.1.23",
48
- "@finos/legend-graph": "31.9.2",
49
- "@finos/legend-lego": "1.2.15",
50
- "@finos/legend-query-builder": "4.14.15",
51
- "@finos/legend-server-depot": "6.0.36",
52
- "@finos/legend-shared": "10.0.32",
53
- "@finos/legend-storage": "3.0.82",
46
+ "@finos/legend-application": "15.0.72",
47
+ "@finos/legend-art": "7.1.24",
48
+ "@finos/legend-graph": "31.9.5",
49
+ "@finos/legend-lego": "1.2.18",
50
+ "@finos/legend-query-builder": "4.14.18",
51
+ "@finos/legend-server-depot": "6.0.37",
52
+ "@finos/legend-shared": "10.0.33",
53
+ "@finos/legend-storage": "3.0.83",
54
54
  "@testing-library/react": "14.0.0",
55
55
  "@types/react": "18.2.31",
56
56
  "@types/react-dom": "18.2.14",
@@ -95,6 +95,7 @@ import {
95
95
  import type { Query } from '@finos/legend-graph';
96
96
  import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
97
97
  import { buildVersionOption, type VersionOption } from './QuerySetup.js';
98
+ import { QueryEditorExistingQueryVersionRevertModal } from './QueryEdtiorExistingQueryVersionRevertModal.js';
98
99
 
99
100
  const CreateQueryDialog = observer(() => {
100
101
  const editorStore = useQueryEditorStore();
@@ -923,7 +924,7 @@ export const QueryEditor = observer(() => {
923
924
  <QueryBuilder queryBuilderState={editorStore.queryBuilderState} />
924
925
  </>
925
926
  )}
926
- {(isLoadingEditor || !editorStore.queryBuilderState) && (
927
+ {isLoadingEditor && (
927
928
  <BlankPanelContent>
928
929
  {editorStore.initState.message ??
929
930
  editorStore.graphManagerState.systemBuildState.message ??
@@ -932,6 +933,13 @@ export const QueryEditor = observer(() => {
932
933
  editorStore.graphManagerState.graphBuildState.message}
933
934
  </BlankPanelContent>
934
935
  )}
936
+ {!isLoadingEditor &&
937
+ !editorStore.queryBuilderState &&
938
+ editorStore instanceof ExistingQueryEditorStore && (
939
+ <QueryEditorExistingQueryVersionRevertModal
940
+ existingEditorStore={editorStore}
941
+ />
942
+ )}
935
943
  </div>
936
944
  </div>
937
945
  );
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import {
18
+ BlankPanelContent,
19
+ Modal,
20
+ ModalBody,
21
+ CustomSelectorInput,
22
+ ModalFooter,
23
+ ModalFooterButton,
24
+ } from '@finos/legend-art';
25
+ import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
26
+ import { compareSemVerVersions } from '@finos/legend-storage';
27
+ import { flowResult } from 'mobx';
28
+ import { observer } from 'mobx-react-lite';
29
+ import { useState, useEffect } from 'react';
30
+ import { buildVersionOption, type VersionOption } from './QuerySetup.js';
31
+ import { generateExistingQueryEditorRoute } from '../__lib__/LegendQueryNavigation.js';
32
+ import type { ExistingQueryEditorStore } from '../stores/QueryEditorStore.js';
33
+
34
+ export const QueryEditorExistingQueryVersionRevertModal = observer(
35
+ (props: { existingEditorStore: ExistingQueryEditorStore }) => {
36
+ const { existingEditorStore } = props;
37
+ const updateState = existingEditorStore.updateState;
38
+ const applicationStore = existingEditorStore.applicationStore;
39
+ const [queryVersion, setQueryVersion] = useState<string | undefined>(
40
+ existingEditorStore.lightQuery.originalVersionId,
41
+ );
42
+ const versionOptions = [
43
+ LATEST_VERSION_ALIAS,
44
+ ...updateState.projectVersions,
45
+ ]
46
+ .slice()
47
+ .sort((v1, v2) => compareSemVerVersions(v2, v1))
48
+ .map(buildVersionOption);
49
+ const selectedVersionOption = queryVersion
50
+ ? buildVersionOption(queryVersion)
51
+ : null;
52
+ const onVersionOptionChange = async (
53
+ option: VersionOption | null,
54
+ ): Promise<void> => {
55
+ if (option?.value && option.value !== queryVersion) {
56
+ setQueryVersion(option.value);
57
+ }
58
+ };
59
+ const updateQueryVersionId = applicationStore.guardUnhandledError(
60
+ async (): Promise<void> => {
61
+ if (queryVersion) {
62
+ flowResult(
63
+ updateState.updateQueryVersionId(
64
+ existingEditorStore.lightQuery.id,
65
+ queryVersion,
66
+ ),
67
+ )
68
+ .then(() =>
69
+ updateState.editorStore.applicationStore.navigationService.navigator.goToLocation(
70
+ generateExistingQueryEditorRoute(
71
+ existingEditorStore.lightQuery.id,
72
+ ),
73
+ ),
74
+ )
75
+ .catch(applicationStore.alertUnhandledError);
76
+ }
77
+ },
78
+ );
79
+ useEffect(() => {
80
+ flowResult(
81
+ updateState.fetchProjectVersions(
82
+ existingEditorStore.lightQuery.groupId,
83
+ existingEditorStore.lightQuery.artifactId,
84
+ ),
85
+ ).catch(applicationStore.alertUnhandledError);
86
+ }, [
87
+ applicationStore,
88
+ existingEditorStore.lightQuery.artifactId,
89
+ existingEditorStore.lightQuery.groupId,
90
+ updateState,
91
+ ]);
92
+
93
+ return (
94
+ <BlankPanelContent>
95
+ <Modal
96
+ darkMode={
97
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
98
+ }
99
+ className="query-editor__blocking-alert"
100
+ >
101
+ <ModalBody>
102
+ <div className="query-editor__blocking-alert__summary-text">
103
+ Query is incompatible with version `
104
+ {existingEditorStore.lightQuery.versionId}`.
105
+ {existingEditorStore.lightQuery.originalVersionId && (
106
+ <>
107
+ {' '}
108
+ It was initialized with version `
109
+ {existingEditorStore.lightQuery.originalVersionId}`.
110
+ </>
111
+ )}
112
+ <div className="query-editor__blocking-alert__summary-text">
113
+ Choose one version from dropdown to update query version.
114
+ </div>
115
+ </div>
116
+ <CustomSelectorInput
117
+ className="query-editor__version-selector"
118
+ options={versionOptions}
119
+ isLoading={updateState.fetchProjectVersionState.isInProgress}
120
+ onChange={onVersionOptionChange}
121
+ value={selectedVersionOption}
122
+ placeholder={
123
+ updateState.fetchProjectVersionState.isInProgress
124
+ ? 'Fetching project versions'
125
+ : 'Choose a version'
126
+ }
127
+ darkMode={
128
+ !applicationStore.layoutService
129
+ .TEMPORARY__isLightColorThemeEnabled
130
+ }
131
+ />
132
+ </ModalBody>
133
+ <ModalFooter>
134
+ <ModalFooterButton onClick={updateQueryVersionId} text="Update" />
135
+ </ModalFooter>
136
+ </Modal>
137
+ </BlankPanelContent>
138
+ );
139
+ },
140
+ );
@@ -80,6 +80,8 @@ import {
80
80
  type DepotServerClient,
81
81
  resolveVersion,
82
82
  StoreProjectData,
83
+ LATEST_VERSION_ALIAS,
84
+ VersionedProjectData,
83
85
  } from '@finos/legend-server-depot';
84
86
  import {
85
87
  DEFAULT_TAB_SIZE,
@@ -215,6 +217,15 @@ export class QueryCreatorState {
215
217
  )) as Query;
216
218
  query.name = this.queryName;
217
219
  query.id = uuid();
220
+ query.originalVersionId =
221
+ query.versionId === LATEST_VERSION_ALIAS
222
+ ? VersionedProjectData.serialization.fromJson(
223
+ (yield this.editorStore.depotServerClient.getLatestVersion(
224
+ query.groupId,
225
+ query.artifactId,
226
+ )) as PlainObject<VersionedProjectData>,
227
+ ).versionId
228
+ : query.versionId;
218
229
  if (this.originalQuery) {
219
230
  query.stereotypes =
220
231
  this.originalQuery.stereotypes?.map(cloneQueryStereotype);
@@ -862,6 +873,7 @@ export class ExistingQueryUpdateState {
862
873
  setQueryRenamer: action,
863
874
  updateQuery: flow,
864
875
  fetchProjectVersions: flow,
876
+ updateQueryVersionId: flow,
865
877
  });
866
878
  this.queryVersionId = this.editorStore.query?.versionId;
867
879
  }
@@ -973,6 +985,48 @@ export class ExistingQueryUpdateState {
973
985
  this.updateQueryState.complete();
974
986
  }
975
987
  }
988
+
989
+ *updateQueryVersionId(
990
+ queryId: string,
991
+ queryVersionId: string,
992
+ ): GeneratorFn<void> {
993
+ try {
994
+ this.updateQueryState.inProgress();
995
+ const newQuery = new Query();
996
+ // since we only need to update version id, we just need to provide value for version id and keep others undefined/null
997
+ newQuery.id = queryId;
998
+ newQuery.versionId = queryVersionId;
999
+ const updatedQuery =
1000
+ (yield this.editorStore.graphManagerState.graphManager.patchQuery(
1001
+ newQuery,
1002
+ this.editorStore.graphManagerState.graph,
1003
+ )) as Query;
1004
+ this.editorStore.applicationStore.notificationService.notifySuccess(
1005
+ `Successfully updated query!`,
1006
+ );
1007
+ LegendQueryTelemetryHelper.logEvent_UpdateQuerySucceeded(
1008
+ this.editorStore.applicationStore.telemetryService,
1009
+ {
1010
+ query: {
1011
+ id: updatedQuery.id,
1012
+ name: updatedQuery.name,
1013
+ groupId: updatedQuery.groupId,
1014
+ artifactId: updatedQuery.artifactId,
1015
+ versionId: updatedQuery.versionId,
1016
+ },
1017
+ },
1018
+ );
1019
+ } catch (error) {
1020
+ assertErrorThrown(error);
1021
+ this.editorStore.applicationStore.logService.error(
1022
+ LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
1023
+ error,
1024
+ );
1025
+ this.editorStore.applicationStore.notificationService.notifyError(error);
1026
+ } finally {
1027
+ this.updateQueryState.complete();
1028
+ }
1029
+ }
976
1030
  }
977
1031
 
978
1032
  export class ExistingQueryEditorStore extends QueryEditorStore {
package/tsconfig.json CHANGED
@@ -64,6 +64,7 @@
64
64
  "./src/components/LoadProjectServiceQuerySetup.tsx",
65
65
  "./src/components/QueryEditor.tsx",
66
66
  "./src/components/QueryEditorStoreProvider.tsx",
67
+ "./src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx",
67
68
  "./src/components/QueryProductionizerSetup.tsx",
68
69
  "./src/components/QuerySetup.tsx",
69
70
  "./src/components/UpdateExistingServiceQuerySetup.tsx",