@finos/legend-extension-dsl-data-space 10.2.4 → 10.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/lib/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.d.ts +1 -1
  2. package/lib/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +1 -0
  3. package/lib/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.js +4 -4
  4. package/lib/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js.map +1 -0
  5. package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.d.ts +15 -0
  6. package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.d.ts.map +1 -0
  7. package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.js +32 -0
  8. package/lib/__lib__/shared/DSL_DataSpace_LegendNavigation.js.map +1 -0
  9. package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts +38 -0
  10. package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts.map +1 -0
  11. package/lib/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.js → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js} +33 -13
  12. package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js.map +1 -0
  13. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +3 -3
  14. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  15. package/lib/components/index.d.ts +6 -4
  16. package/lib/components/index.d.ts.map +1 -1
  17. package/lib/components/index.js +6 -4
  18. package/lib/components/index.js.map +1 -1
  19. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.d.ts.map +1 -0
  20. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -0
  21. package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.d.ts +2 -5
  22. package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -0
  23. package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.js +5 -24
  24. package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -0
  25. package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts +1 -1
  26. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -0
  27. package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.js +4 -4
  28. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -0
  29. package/lib/components/query-builder/QueryDataSpaceUtil.d.ts.map +1 -0
  30. package/lib/components/query-builder/QueryDataSpaceUtil.js.map +1 -0
  31. package/lib/components/{query → query-builder}/index.d.ts +3 -1
  32. package/lib/components/query-builder/index.d.ts.map +1 -0
  33. package/lib/components/{query → query-builder}/index.js +3 -1
  34. package/lib/components/query-builder/index.js.map +1 -0
  35. package/lib/components/shared/DSL_DataSpace_Icon.d.ts.map +1 -0
  36. package/lib/components/shared/DSL_DataSpace_Icon.js.map +1 -0
  37. package/lib/graph-manager/index.d.ts +4 -0
  38. package/lib/graph-manager/index.d.ts.map +1 -1
  39. package/lib/graph-manager/index.js +5 -0
  40. package/lib/graph-manager/index.js.map +1 -1
  41. package/lib/index.css +2 -2
  42. package/lib/index.css.map +1 -1
  43. package/lib/package.json +3 -8
  44. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts +1 -1
  45. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  46. package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -3
  47. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  48. package/lib/stores/{query → query-builder}/DataSpaceQueryBuilderState.d.ts +2 -2
  49. package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts.map +1 -0
  50. package/lib/stores/{query → query-builder}/DataSpaceQueryBuilderState.js +3 -3
  51. package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -0
  52. package/lib/stores/shared/DataSpaceInfo.d.ts.map +1 -0
  53. package/lib/stores/shared/DataSpaceInfo.js.map +1 -0
  54. package/lib/{__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts → stores/shared/DataSpaceUtils.d.ts} +4 -5
  55. package/lib/stores/shared/DataSpaceUtils.d.ts.map +1 -0
  56. package/lib/stores/shared/DataSpaceUtils.js +32 -0
  57. package/lib/stores/shared/DataSpaceUtils.js.map +1 -0
  58. package/package.json +4 -9
  59. package/src/{components → __lib__}/query/DSL_DataSpace_LegendQueryDocumentation.ts +1 -1
  60. package/src/__lib__/shared/DSL_DataSpace_LegendNavigation.ts +57 -0
  61. package/src/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.ts → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts} +41 -46
  62. package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +6 -6
  63. package/src/components/index.ts +15 -4
  64. package/src/components/{query → query-builder}/DataSpaceAdvancedSearchModal.tsx +1 -1
  65. package/src/components/{query → query-builder}/DataSpaceQueryBuilder.tsx +7 -68
  66. package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +5 -5
  67. package/src/components/{studio → query-builder}/index.ts +7 -1
  68. package/src/graph-manager/index.ts +6 -0
  69. package/src/stores/query/DataSpaceAdvancedSearchState.ts +8 -3
  70. package/src/stores/{query → query-builder}/DataSpaceQueryBuilderState.ts +6 -3
  71. package/src/stores/shared/DataSpaceUtils.ts +42 -0
  72. package/tsconfig.json +12 -26
  73. package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts +0 -65
  74. package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +0 -1
  75. package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js.map +0 -1
  76. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts +0 -17
  77. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.d.ts.map +0 -1
  78. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.js +0 -54
  79. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.js.map +0 -1
  80. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.d.ts.map +0 -1
  81. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.js +0 -21
  82. package/lib/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.js.map +0 -1
  83. package/lib/components/DSL_DataSpace_Icon.d.ts.map +0 -1
  84. package/lib/components/DSL_DataSpace_Icon.js.map +0 -1
  85. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +0 -29
  86. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +0 -1
  87. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +0 -242
  88. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +0 -1
  89. package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +0 -1
  90. package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.js.map +0 -1
  91. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +0 -1
  92. package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +0 -1
  93. package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +0 -1
  94. package/lib/components/query/DataSpaceQueryBuilder.js.map +0 -1
  95. package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +0 -1
  96. package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +0 -1
  97. package/lib/components/query/DataSpaceQueryCreator.d.ts +0 -19
  98. package/lib/components/query/DataSpaceQueryCreator.d.ts.map +0 -1
  99. package/lib/components/query/DataSpaceQueryCreator.js +0 -41
  100. package/lib/components/query/DataSpaceQueryCreator.js.map +0 -1
  101. package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -21
  102. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +0 -1
  103. package/lib/components/query/DataSpaceQuerySetup.js +0 -63
  104. package/lib/components/query/DataSpaceQuerySetup.js.map +0 -1
  105. package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts +0 -19
  106. package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts.map +0 -1
  107. package/lib/components/query/DataSpaceTemplateQueryCreator.js +0 -37
  108. package/lib/components/query/DataSpaceTemplateQueryCreator.js.map +0 -1
  109. package/lib/components/query/QueryDataSpaceUtil.d.ts.map +0 -1
  110. package/lib/components/query/QueryDataSpaceUtil.js.map +0 -1
  111. package/lib/components/query/index.d.ts.map +0 -1
  112. package/lib/components/query/index.js.map +0 -1
  113. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +0 -39
  114. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +0 -1
  115. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js +0 -207
  116. package/lib/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +0 -1
  117. package/lib/components/studio/DataSpacePreviewAction.d.ts +0 -25
  118. package/lib/components/studio/DataSpacePreviewAction.d.ts.map +0 -1
  119. package/lib/components/studio/DataSpacePreviewAction.js +0 -53
  120. package/lib/components/studio/DataSpacePreviewAction.js.map +0 -1
  121. package/lib/components/studio/DataSpaceQueryAction.d.ts +0 -22
  122. package/lib/components/studio/DataSpaceQueryAction.d.ts.map +0 -1
  123. package/lib/components/studio/DataSpaceQueryAction.js +0 -29
  124. package/lib/components/studio/DataSpaceQueryAction.js.map +0 -1
  125. package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.d.ts +0 -19
  126. package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.d.ts.map +0 -1
  127. package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js +0 -81
  128. package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js.map +0 -1
  129. package/lib/components/studio/index.d.ts +0 -17
  130. package/lib/components/studio/index.d.ts.map +0 -1
  131. package/lib/components/studio/index.js +0 -17
  132. package/lib/components/studio/index.js.map +0 -1
  133. package/lib/stores/query/DataSpaceInfo.d.ts.map +0 -1
  134. package/lib/stores/query/DataSpaceInfo.js.map +0 -1
  135. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +0 -1
  136. package/lib/stores/query/DataSpaceQueryBuilderState.js.map +0 -1
  137. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +0 -38
  138. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +0 -1
  139. package/lib/stores/query/DataSpaceQueryCreatorStore.js +0 -149
  140. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +0 -1
  141. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +0 -51
  142. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +0 -1
  143. package/lib/stores/query/DataSpaceQuerySetupStore.js +0 -107
  144. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +0 -1
  145. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts +0 -35
  146. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts.map +0 -1
  147. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js +0 -108
  148. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js.map +0 -1
  149. package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.d.ts +0 -61
  150. package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.d.ts.map +0 -1
  151. package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.js +0 -407
  152. package/lib/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.js.map +0 -1
  153. package/lib/stores/studio/DataSpacePreviewState.d.ts +0 -33
  154. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +0 -1
  155. package/lib/stores/studio/DataSpacePreviewState.js +0 -117
  156. package/lib/stores/studio/DataSpacePreviewState.js.map +0 -1
  157. package/src/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts +0 -54
  158. package/src/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.ts +0 -20
  159. package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +0 -445
  160. package/src/components/query/DataSpaceQueryCreator.tsx +0 -99
  161. package/src/components/query/DataSpaceQuerySetup.tsx +0 -165
  162. package/src/components/query/DataSpaceTemplateQueryCreator.tsx +0 -82
  163. package/src/components/query/index.ts +0 -17
  164. package/src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +0 -297
  165. package/src/components/studio/DataSpacePreviewAction.tsx +0 -136
  166. package/src/components/studio/DataSpaceQueryAction.tsx +0 -34
  167. package/src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx +0 -292
  168. package/src/stores/query/DataSpaceQueryCreatorStore.ts +0 -308
  169. package/src/stores/query/DataSpaceQuerySetupStore.ts +0 -205
  170. package/src/stores/query/DataSpaceTemplateQueryCreatorStore.ts +0 -207
  171. package/src/stores/query/DataSpaceTemplateQueryPromotionReviewerStore.ts +0 -636
  172. package/src/stores/studio/DataSpacePreviewState.ts +0 -195
  173. /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.d.ts +0 -0
  174. /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.js +0 -0
  175. /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.d.ts +0 -0
  176. /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.js +0 -0
  177. /package/lib/components/{DSL_DataSpace_Icon.d.ts → shared/DSL_DataSpace_Icon.d.ts} +0 -0
  178. /package/lib/components/{DSL_DataSpace_Icon.js → shared/DSL_DataSpace_Icon.js} +0 -0
  179. /package/lib/stores/{query → shared}/DataSpaceInfo.d.ts +0 -0
  180. /package/lib/stores/{query → shared}/DataSpaceInfo.js +0 -0
  181. /package/src/components/{query → query-builder}/QueryDataSpaceUtil.ts +0 -0
  182. /package/src/components/{DSL_DataSpace_Icon.tsx → shared/DSL_DataSpace_Icon.tsx} +0 -0
  183. /package/src/stores/{query → shared}/DataSpaceInfo.ts +0 -0
@@ -1,81 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } 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, GitBranchIcon, clsx } from '@finos/legend-art';
18
- import { observer, useLocalObservable } from 'mobx-react-lite';
19
- import { useApplicationStore } from '@finos/legend-application';
20
- import { DataSpaceTemplateQueryPromotionReviewerStore } from '../../stores/query/DataSpaceTemplateQueryPromotionReviewerStore.js';
21
- import { DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
22
- import { useParams } from '@finos/legend-application/browser';
23
- import { ActivityBarMenu, LEGEND_STUDIO_TEST_ID, useLegendStudioApplicationStore, useLegendStudioBaseStore, } from '@finos/legend-application-studio';
24
- import { createContext, useContext } from 'react';
25
- import { guaranteeNonNullable } from '@finos/legend-shared';
26
- import { flowResult } from 'mobx';
27
- import { DocumentationLink } from '@finos/legend-lego/application';
28
- import { DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../query/DSL_DataSpace_LegendQueryDocumentation.js';
29
- const TemplateQueryPromotionReviewerStoreContext = createContext(undefined);
30
- const DataSpaceTemplateQueryPromotionReviewerStoreProvider = ({ children, dataSpacePath, queryId }) => {
31
- const applicationStore = useLegendStudioApplicationStore();
32
- const baseStore = useLegendStudioBaseStore();
33
- const store = useLocalObservable(() => new DataSpaceTemplateQueryPromotionReviewerStore(applicationStore, baseStore.sdlcServerClient, baseStore.depotServerClient));
34
- store.initialize(queryId, dataSpacePath);
35
- return (_jsx(TemplateQueryPromotionReviewerStoreContext.Provider, { value: store, children: children }));
36
- };
37
- const useTemplateQueryPromotionReviewerStore = () => guaranteeNonNullable(useContext(TemplateQueryPromotionReviewerStoreContext), `Can't find query productionizer store in context`);
38
- const TemplateQueryPromotionReviewerContent = observer(() => {
39
- const applicationStore = useApplicationStore();
40
- const queryPromotionReviewerStore = useTemplateQueryPromotionReviewerStore();
41
- const isLoadingEditor = !queryPromotionReviewerStore.initState.hasCompleted;
42
- // workspace name
43
- const changeWorkspaceName = (event) => queryPromotionReviewerStore.setWorkspaceName(event.target.value);
44
- // template query
45
- const onChangeTemplateQueryId = (event) => queryPromotionReviewerStore.setTemplateQueryId(event.target.value);
46
- const onChangeTemplateQueryTitle = (event) => queryPromotionReviewerStore.setTemplateQueryTitle(event.target.value);
47
- const onChangeTemplateQueryDescription = (event) => queryPromotionReviewerStore.setTemplateQueryDescription(event.target.value);
48
- // actions
49
- const promoteTemplateQuery = () => {
50
- flowResult(queryPromotionReviewerStore.promoteAsTemplateQuery()).catch(applicationStore.alertUnhandledError);
51
- };
52
- return (_jsxs("div", { className: "app__page", children: [isLoadingEditor && (_jsx(BlankPanelContent, { children: queryPromotionReviewerStore.initState.message ??
53
- queryPromotionReviewerStore.graphManagerState.systemBuildState
54
- .message ??
55
- queryPromotionReviewerStore.graphManagerState.dependenciesBuildState
56
- .message ??
57
- queryPromotionReviewerStore.graphManagerState.generationsBuildState
58
- .message ??
59
- queryPromotionReviewerStore.graphManagerState.graphBuildState
60
- .message })), _jsxs("div", { className: "template-query-promotor", children: [_jsxs("div", { className: "template-query-promotor__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "template-query-promotor__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "template-query-promotor__content__main", children: [_jsxs("div", { className: "template-query-promotor__title", children: ["Promote as Curated Template Query", _jsx(DocumentationLink, { documentationKey: DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY })] }), _jsx("div", { className: "template-query-promotor__title__prompt", children: "We will promote this query as a curated template query in dataspace. This automated process will generate a code review and workspace. Please get the generated code review reviewed and approved." }), _jsxs("div", { className: "template-query-promotor__group template-query-promotor__group--workspace", children: [_jsx("div", { className: "template-query-promotor__group__header", children: "workspace" }), _jsx("div", { className: "template-query-promotor__group__content", children: _jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__icon", title: "workspace", children: _jsx(GitBranchIcon, { className: "template-query-promotor__input__icon--workspce" }) }), _jsxs("div", { className: "input-group template-query-promotor__input__input", children: [_jsx("input", { className: clsx('input input--dark input-group__input', {
61
- 'input-group__input--error': !queryPromotionReviewerStore.isWorkspaceNameValid,
62
- }), spellCheck: false, value: queryPromotionReviewerStore.workspaceName, placeholder: "Enter a name for your workspace", onChange: changeWorkspaceName }), !queryPromotionReviewerStore.isWorkspaceNameValid && (_jsx("div", { className: "input-group__error-message", children: "Workspace already existed" }))] })] }) })] }), _jsxs("div", { className: "template-query-promotor__group template-query-promotor__group--template", children: [_jsx("div", { className: "template-query-promotor__group__header", children: "template query" }), _jsxs("div", { className: "template-query-promotor__group__content", children: [_jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__label", children: "id" }), _jsxs("div", { className: "input-group template-query-promotor__input__input", children: [_jsx("input", { className: clsx('input input--dark input-group__input', {
63
- 'input-group__input--error': !queryPromotionReviewerStore.isTemplateQueryIdValid,
64
- }), spellCheck: false, placeholder: "Create an id for your template query", value: queryPromotionReviewerStore.templateQueryId, onChange: onChangeTemplateQueryId }), !queryPromotionReviewerStore.isTemplateQueryIdValid && (_jsx("div", { className: "input-group__error-message", children: "Invalid template query id" }))] })] }), _jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__label", children: "title" }), _jsx("div", { className: "input-group template-query-promotor__input__input", children: _jsx("input", { className: "input input--dark input-group__input", spellCheck: false, placeholder: "Create a title for your template query", value: queryPromotionReviewerStore.templateQueryTitle, onChange: onChangeTemplateQueryTitle }) })] }), _jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__label", children: "description" }), _jsx("div", { className: "input-group template-query-promotor__input__input", children: _jsx("input", { className: "input input--dark input-group__input", spellCheck: false, placeholder: "Add some descriptions for your template query", value: queryPromotionReviewerStore.templateQueryDescription, onChange: onChangeTemplateQueryDescription }) })] })] })] }), _jsx("div", { className: "template-query-promotor__actions", children: _jsx("button", { className: "template-query-promotor__next-btn btn--dark", onClick: promoteTemplateQuery, disabled: queryPromotionReviewerStore.promoteState.isInProgress ||
65
- !queryPromotionReviewerStore.currentQuery ||
66
- !queryPromotionReviewerStore.currentQueryInfo ||
67
- !queryPromotionReviewerStore.currentProject ||
68
- !queryPromotionReviewerStore
69
- .currentProjectConfigurationStatus?.isConfigured ||
70
- !queryPromotionReviewerStore.workspaceName ||
71
- !queryPromotionReviewerStore.templateQueryTitle ||
72
- !queryPromotionReviewerStore.isWorkspaceNameValid ||
73
- !queryPromotionReviewerStore.isTemplateQueryIdValid, children: "Promote Query" }) })] }) })] }), _jsx("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar" })] })] }));
74
- });
75
- export const DataSpaceTemplateQueryPromotionReviewer = observer(() => {
76
- const parameters = useParams();
77
- const dataSpacePath = parameters[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
78
- const queryId = parameters[DATA_SPACE_TEMPLATE_QUERY_PROMOTION_ROUTE_PATTERN_TOKEN.QUERY_ID];
79
- return (_jsx(DataSpaceTemplateQueryPromotionReviewerStoreProvider, { dataSpacePath: dataSpacePath, queryId: queryId, children: _jsx(TemplateQueryPromotionReviewerContent, {}) }));
80
- });
81
- //# sourceMappingURL=DataSpaceTemplateQueryPromoteReview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryPromoteReview.js","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,oEAAoE,CAAC;AAClI,OAAO,EACL,uDAAuD,GAExD,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,4CAA4C,EAAE,MAAM,oDAAoD,CAAC;AAElH,MAAM,0CAA0C,GAAG,aAAa,CAE9D,SAAS,CAAC,CAAC;AAEb,MAAM,oDAAoD,GAIrD,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,gBAAgB,GAAG,+BAA+B,EAAE,CAAC;IAC3D,MAAM,SAAS,GAAG,wBAAwB,EAAE,CAAC;I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AK,EACjB,WAAW,EAAC,+CAA+C,EAC3D,KAAK,EACH,2BAA2B,CAAC,wBAAwB,EAEtD,QAAQ,EAAE,gCAAgC,GAC1C,GACE,IACF,IACF,IACF,EACN,cAAK,SAAS,EAAC,kCAAkC,YAC/C,iBACE,SAAS,EAAC,6CAA6C,EACvD,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EACN,2BAA2B,CAAC,YAAY,CAAC,YAAY;oDACrD,CAAC,2BAA2B,CAAC,YAAY;oDACzC,CAAC,2BAA2B,CAAC,gBAAgB;oDAC7C,CAAC,2BAA2B,CAAC,cAAc;oDAC3C,CAAC,2BAA2B;yDACzB,iCAAiC,EAAE,YAAY;oDAClD,CAAC,2BAA2B,CAAC,aAAa;oDAC1C,CAAC,2BAA2B,CAAC,kBAAkB;oDAC/C,CAAC,2BAA2B,CAAC,oBAAoB;oDACjD,CAAC,2BAA2B,CAAC,sBAAsB,8BAI9C,GACL,IACF,GACF,IACF,EACN,6BACe,qBAAqB,CAAC,UAAU,EAC7C,SAAS,EAAC,oBAAoB,GAC9B,IACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG,QAAQ,CAAC,GAAG,EAAE;IACnE,MAAM,UAAU,GACd,SAAS,EAAqD,CAAC;IACjE,MAAM,aAAa,GACjB,UAAU,CACR,uDAAuD,CAAC,eAAe,CACxE,CAAC;IACJ,MAAM,OAAO,GACX,UAAU,CACR,uDAAuD,CAAC,QAAQ,CACjE,CAAC;IAEJ,OAAO,CACL,KAAC,oDAAoD,IACnD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,YAEhB,KAAC,qCAAqC,KAAG,GACY,CACxD,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export { DSL_DataSpace_LegendStudioApplicationPlugin } from './DSL_DataSpace_LegendStudioApplicationPlugin.js';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/studio/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export { DSL_DataSpace_LegendStudioApplicationPlugin } from './DSL_DataSpace_LegendStudioApplicationPlugin.js';
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/studio/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceInfo.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH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
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 { QueryTaggedValue, type RawLambda } from '@finos/legend-graph';
17
- import { QueryEditorStore, type QueryPersistConfiguration, type LegendQueryApplicationStore } from '@finos/legend-application-query';
18
- import { type DepotServerClient } from '@finos/legend-server-depot';
19
- import type { QueryBuilderState } from '@finos/legend-query-builder';
20
- import type { ProjectGAVCoordinates } from '@finos/legend-storage';
21
- export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string) => QueryTaggedValue;
22
- export declare const createQueryClassTaggedValue: (classPath: string) => QueryTaggedValue;
23
- export declare class DataSpaceQueryCreatorStore extends QueryEditorStore {
24
- readonly groupId: string;
25
- readonly artifactId: string;
26
- readonly versionId: string;
27
- readonly dataSpacePath: string;
28
- readonly executionContext: string;
29
- readonly runtimePath: string | undefined;
30
- readonly classPath: string | undefined;
31
- constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContext: string, runtimePath: string | undefined, executionKey: string | undefined);
32
- getProjectInfo(): ProjectGAVCoordinates;
33
- initializeQueryBuilderState(): Promise<QueryBuilderState>;
34
- getPersistConfiguration(lambda: RawLambda, options?: {
35
- update?: boolean | undefined;
36
- }): QueryPersistConfiguration;
37
- }
38
- //# sourceMappingURL=DataSpaceQueryCreatorStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAK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,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}
@@ -1,149 +0,0 @@
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 { extractElementNameFromPath, QueryTaggedValue, RuntimePointer, PackageableElementExplicitReference, } from '@finos/legend-graph';
17
- import { QueryEditorStore, createViewProjectHandler, createViewSDLCProjectHandler, } from '@finos/legend-application-query';
18
- import { StoreProjectData, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
19
- import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
20
- import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_CLASS, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
21
- import { getDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
22
- import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from './DataSpaceQueryBuilderState.js';
23
- import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
24
- import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
25
- import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
26
- export const createQueryDataSpaceTaggedValue = (dataSpacePath) => {
27
- const taggedValue = new QueryTaggedValue();
28
- taggedValue.profile = QUERY_PROFILE_PATH;
29
- taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
30
- taggedValue.value = dataSpacePath;
31
- return taggedValue;
32
- };
33
- export const createQueryClassTaggedValue = (classPath) => {
34
- const taggedValue = new QueryTaggedValue();
35
- taggedValue.profile = QUERY_PROFILE_PATH;
36
- taggedValue.tag = QUERY_PROFILE_TAG_CLASS;
37
- taggedValue.value = classPath;
38
- return taggedValue;
39
- };
40
- export class DataSpaceQueryCreatorStore extends QueryEditorStore {
41
- groupId;
42
- artifactId;
43
- versionId;
44
- dataSpacePath;
45
- executionContext;
46
- runtimePath;
47
- classPath;
48
- constructor(applicationStore, depotServerClient, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, executionKey) {
49
- super(applicationStore, depotServerClient);
50
- this.groupId = groupId;
51
- this.artifactId = artifactId;
52
- this.versionId = versionId;
53
- this.dataSpacePath = dataSpacePath;
54
- this.executionContext = executionContext;
55
- this.runtimePath = runtimePath;
56
- this.classPath = executionKey;
57
- }
58
- getProjectInfo() {
59
- return {
60
- groupId: this.groupId,
61
- artifactId: this.artifactId,
62
- versionId: this.versionId,
63
- };
64
- }
65
- async initializeQueryBuilderState() {
66
- const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
67
- const executionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name === this.executionContext), `Can't find execution context '${this.executionContext}'`);
68
- let dataSpaceAnalysisResult;
69
- try {
70
- const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(this.groupId, this.artifactId));
71
- dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, this.versionId, dataSpace.path, this.depotServerClient));
72
- }
73
- catch {
74
- // do nothing
75
- }
76
- const projectInfo = new DataSpaceProjectInfo(this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
77
- const sourceInfo = {
78
- groupId: projectInfo.groupId,
79
- artifactId: projectInfo.artifactId,
80
- versionId: projectInfo.versionId,
81
- dataSpace: dataSpace.path,
82
- };
83
- const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, (dataSpaceInfo) => {
84
- if (dataSpaceInfo.defaultExecutionContext) {
85
- this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
86
- dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
87
- }
88
- else {
89
- this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
90
- }
91
- }, true, dataSpaceAnalysisResult, (ec) => {
92
- // runtime should already be set
93
- const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
94
- this.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, ec.name, runtimePointer.packageableRuntime.value ===
95
- queryBuilderState.executionContext.defaultRuntime.value
96
- ? undefined
97
- : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
98
- }, (runtimeValue) => {
99
- const runtimePointer = guaranteeType(runtimeValue, RuntimePointer);
100
- queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
101
- queryBuilderState.executionContext.defaultRuntime.value
102
- ? undefined
103
- : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
104
- }, (_class) => {
105
- // runtime should already be set
106
- const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
107
- queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
108
- queryBuilderState.executionContext.defaultRuntime.value
109
- ? undefined
110
- : runtimePointer.packageableRuntime.value.path, _class.path));
111
- }, projectInfo, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
112
- queryBuilderState.setExecutionContext(executionContext);
113
- queryBuilderState.propagateExecutionContextChange(executionContext);
114
- // set runtime if already chosen
115
- if (this.runtimePath) {
116
- queryBuilderState.changeRuntime(new RuntimePointer(PackageableElementExplicitReference.create(this.graphManagerState.graph.getRuntime(this.runtimePath))));
117
- }
118
- // set class if already chosen
119
- if (this.classPath) {
120
- queryBuilderState.changeClass(this.graphManagerState.graph.getClass(this.classPath));
121
- }
122
- return queryBuilderState;
123
- }
124
- getPersistConfiguration(lambda, options) {
125
- return {
126
- defaultName: options?.update
127
- ? `${extractElementNameFromPath(this.dataSpacePath)}`
128
- : `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.executionContext}]`,
129
- decorator: (query) => {
130
- query.id = uuid();
131
- query.groupId = this.groupId;
132
- query.artifactId = this.artifactId;
133
- query.versionId = this.versionId;
134
- if (this.queryBuilderState?.class) {
135
- query.taggedValues = [
136
- createQueryDataSpaceTaggedValue(this.dataSpacePath),
137
- createQueryClassTaggedValue(this.queryBuilderState.class.path),
138
- ];
139
- }
140
- else {
141
- query.taggedValues = [
142
- createQueryDataSpaceTaggedValue(this.dataSpacePath),
143
- ];
144
- }
145
- },
146
- };
147
- }
148
- }
149
- //# sourceMappingURL=DataSpaceQueryCreatorStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataS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/D,CAAC;iBACH;qBAAM;oBACL,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;qBACpD,CAAC;iBACH;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -1,51 +0,0 @@
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 { QueryEditorStore, type QueryPersistConfiguration } from '@finos/legend-application-query';
17
- import { type DepotServerClient } from '@finos/legend-server-depot';
18
- import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
19
- import { type GenericLegendApplicationStore } from '@finos/legend-application';
20
- import { type QueryBuilderConfig, QueryBuilderState } from '@finos/legend-query-builder';
21
- import type { ProjectGAVCoordinates } from '@finos/legend-storage';
22
- import { ActionState, type GeneratorFn } from '@finos/legend-shared';
23
- import { type DataSpaceInfo } from './DataSpaceInfo.js';
24
- import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
25
- export declare class DataSpaceQuerySetupState extends QueryBuilderState {
26
- readonly depotServerClient: DepotServerClient;
27
- readonly loadDataSpacesState: ActionState;
28
- readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
29
- readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
30
- readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
31
- TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
32
- dataSpaces: DataSpaceInfo[];
33
- showRuntimeSelector: boolean;
34
- advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
35
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, onDataSpaceChange: (val: DataSpaceInfo) => void, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>, config: QueryBuilderConfig | undefined);
36
- get isResultPanelHidden(): boolean;
37
- get sideBarClassName(): string | undefined;
38
- showAdvancedSearchPanel(): void;
39
- hideAdvancedSearchPanel(): void;
40
- loadDataSpaces(): GeneratorFn<void>;
41
- }
42
- export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
43
- get isViewProjectActionDisabled(): boolean;
44
- getProjectInfo(): ProjectGAVCoordinates;
45
- getPersistConfiguration(lambda: RawLambda, options?: {
46
- update?: boolean | undefined;
47
- }): QueryPersistConfiguration;
48
- initializeQueryBuilderState(): Promise<QueryBuilderState>;
49
- buildGraph(): GeneratorFn<void>;
50
- }
51
- //# sourceMappingURL=DataSpaceQuerySetupStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQuerySetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAChB,KAAK,yBAAyB,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE/E,OAAO,EACL,KAAK,kBAAkB,EACvB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,WAAW,EAIX,KA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M,EAAE,kBAAkB,GAAG,SAAS;IAkBxC,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;CAkBrC;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,IAAa,2BAA2B,IAAI,OAAO,CAElD;IAED,cAAc,IAAI,qBAAqB;IAIvC,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;IAItB,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAmCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
@@ -1,107 +0,0 @@
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 { createViewProjectHandler, createViewSDLCProjectHandler, QueryEditorStore, } from '@finos/legend-application-query';
17
- import { DepotScope, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
18
- import {} from '@finos/legend-application';
19
- import { action, flow, makeObservable, observable } from 'mobx';
20
- import { QueryBuilderState, } from '@finos/legend-query-builder';
21
- import { ActionState, assertErrorThrown, guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
22
- import { extractDataSpaceInfo } from './DataSpaceInfo.js';
23
- import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
24
- import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
25
- import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/query/DataSpaceQuerySetup.js';
26
- import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
27
- export class DataSpaceQuerySetupState extends QueryBuilderState {
28
- depotServerClient;
29
- loadDataSpacesState = ActionState.create();
30
- onDataSpaceChange;
31
- viewProject;
32
- viewSDLCProject;
33
- TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQuerySetupSetupPanelContent(this);
34
- dataSpaces = [];
35
- showRuntimeSelector = false;
36
- advancedSearchState;
37
- constructor(applicationStore, graphManagerState, depotServerClient, onDataSpaceChange, viewProject, viewSDLCProject, config) {
38
- super(applicationStore, graphManagerState, config);
39
- makeObservable(this, {
40
- dataSpaces: observable,
41
- advancedSearchState: observable,
42
- showAdvancedSearchPanel: action,
43
- hideAdvancedSearchPanel: action,
44
- loadDataSpaces: flow,
45
- });
46
- this.depotServerClient = depotServerClient;
47
- this.onDataSpaceChange = onDataSpaceChange;
48
- this.viewProject = viewProject;
49
- this.viewSDLCProject = viewSDLCProject;
50
- }
51
- get isResultPanelHidden() {
52
- return true;
53
- }
54
- get sideBarClassName() {
55
- return 'query-builder__setup__data-space-setup';
56
- }
57
- showAdvancedSearchPanel() {
58
- this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
59
- viewProject: this.viewProject,
60
- viewSDLCProject: this.viewSDLCProject,
61
- });
62
- }
63
- hideAdvancedSearchPanel() {
64
- this.advancedSearchState = undefined;
65
- }
66
- *loadDataSpaces() {
67
- this.loadDataSpacesState.inProgress();
68
- try {
69
- this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
70
- scope: DepotScope.RELEASES,
71
- })).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
72
- this.loadDataSpacesState.pass();
73
- }
74
- catch (error) {
75
- assertErrorThrown(error);
76
- this.loadDataSpacesState.fail();
77
- this.applicationStore.notificationService.notifyError(error);
78
- }
79
- }
80
- }
81
- export class DataSpaceQuerySetupStore extends QueryEditorStore {
82
- get isViewProjectActionDisabled() {
83
- return true;
84
- }
85
- getProjectInfo() {
86
- throw new UnsupportedOperationError();
87
- }
88
- getPersistConfiguration(lambda, options) {
89
- throw new UnsupportedOperationError();
90
- }
91
- async initializeQueryBuilderState() {
92
- const queryBuilderState = new DataSpaceQuerySetupState(this.applicationStore, this.graphManagerState, this.depotServerClient, (dataSpaceInfo) => {
93
- if (dataSpaceInfo.defaultExecutionContext) {
94
- this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
95
- dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
96
- }
97
- else {
98
- this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
99
- }
100
- }, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient), this.applicationStore.config.options.queryBuilderConfig);
101
- return queryBuilderState;
102
- }
103
- *buildGraph() {
104
- // do nothing
105
- }
106
- }
107
- //# sourceMappingURL=DataSpaceQuerySetupStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQuerySetupStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,UAAU,EACV,oBAAoB,GAGrB,MAAM,4B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.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 RawLambda } from '@finos/legend-graph';
17
- import { QueryEditorStore, type QueryPersistConfiguration, type LegendQueryApplicationStore } from '@finos/legend-application-query';
18
- import { type DepotServerClient } from '@finos/legend-server-depot';
19
- import type { QueryBuilderState } from '@finos/legend-query-builder';
20
- import type { ProjectGAVCoordinates } from '@finos/legend-storage';
21
- export declare class DataSpaceTemplateQueryCreatorStore extends QueryEditorStore {
22
- readonly groupId: string;
23
- readonly artifactId: string;
24
- readonly versionId: string;
25
- readonly dataSpacePath: string;
26
- readonly templateQueryId: string;
27
- templateQueryTitle?: string;
28
- constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, templateQueryId: string);
29
- getProjectInfo(): ProjectGAVCoordinates;
30
- initializeQueryBuilderState(): Promise<QueryBuilderState>;
31
- getPersistConfiguration(lambda: RawLambda, options?: {
32
- update?: boolean | undefined;
33
- }): QueryPersistConfiguration;
34
- }
35
- //# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceTemplateQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAQnE,qBAAa,kCAAmC,SAAQ,gBAAgB;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;gBAG1B,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM;IAWzB,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA0F/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}