@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,63 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { observer, useLocalObservable } from 'mobx-react-lite';
18
- import { useApplicationStore } from '@finos/legend-application';
19
- import { QueryEditor, QueryEditorStoreContext, useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '@finos/legend-application-query';
20
- import { useEffect, useRef } from 'react';
21
- import { flowResult } from 'mobx';
22
- import { QueryBuilderClassSelector } from '@finos/legend-query-builder';
23
- import { CustomSelectorInput, SearchIcon, } from '@finos/legend-art';
24
- import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
25
- import { DataSpaceQuerySetupStore, } from '../../stores/query/DataSpaceQuerySetupStore.js';
26
- import { buildDataSpaceOption, formatDataSpaceOptionLabel, } from './DataSpaceQueryBuilder.js';
27
- import { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
28
- const DataSpaceQuerySetupStoreProvider = ({ children }) => {
29
- const applicationStore = useLegendQueryApplicationStore();
30
- const baseStore = useLegendQueryBaseStore();
31
- const store = useLocalObservable(() => new DataSpaceQuerySetupStore(applicationStore, baseStore.depotServerClient));
32
- return (_jsx(QueryEditorStoreContext.Provider, { value: store, children: children }));
33
- };
34
- export const DataSpaceQuerySetup = observer(() => (_jsx(DataSpaceQuerySetupStoreProvider, { children: _jsx(QueryEditor, {}) })));
35
- /**
36
- * This setup panel supports cascading in order: Data-space -> Execution context (-> Runtime) -> Class
37
- *
38
- * In other words, we will only show:
39
- * - For runtime selector: the list of compatible runtimes with the selected execution context mapping
40
- * - For class selector: the list of compatible class with the selected execution context mapping
41
- *
42
- * See details on propagation/cascading in {@link DataSpaceQuerySetupState}
43
- */
44
- const DataSpaceQuerySetupSetupPanelContent = observer((props) => {
45
- const { queryBuilderState } = props;
46
- const applicationStore = useApplicationStore();
47
- const dataSpaceSearchRef = useRef(null);
48
- // data space
49
- const dataSpaceOptions = queryBuilderState.dataSpaces.map(buildDataSpaceOption);
50
- const selectedDataSpaceOption = null;
51
- const onDataSpaceOptionChange = (option) => {
52
- queryBuilderState.onDataSpaceChange(option.value);
53
- };
54
- const openDataSpaceAdvancedSearch = () => queryBuilderState.showAdvancedSearchPanel();
55
- useEffect(() => {
56
- flowResult(queryBuilderState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
57
- }, [queryBuilderState, applicationStore]);
58
- useEffect(() => dataSpaceSearchRef.current?.focus());
59
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx("div", { className: "query-builder__setup__config-group__header", children: _jsx("div", { className: "query-builder__setup__config-group__header__title", children: "data space execution context" }) }), _jsx("div", { className: "query-builder__setup__config-group__content", children: _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
60
- .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), _jsx("button", { tabIndex: -1, className: "query-builder__setup__data-space-searcher__btn btn--dark", onClick: openDataSpaceAdvancedSearch, title: "Open advanced search for data space...", children: _jsx(SearchIcon, {}) }), queryBuilderState.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: queryBuilderState.advancedSearchState, onClose: () => queryBuilderState.hideAdvancedSearchPanel() }))] }) })] }), _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: [], noMatchMessage: "No compatible class found" })] }));
61
- });
62
- export const renderDataSpaceQuerySetupSetupPanelContent = (queryBuilderState) => (_jsx(DataSpaceQuerySetupSetupPanelContent, { queryBuilderState: queryBuilderState }));
63
- //# sourceMappingURL=DataSpaceQuerySetup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,mBAAmB,EACnB,UAAU,GAEX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAEL,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mC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AAO,EAAE,EAAE,EACX,cAAc,EAAC,2BAA2B,GAC1C,IACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
@@ -1,19 +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 declare const DataSpaceTemplateQueryCreator: (() => import("react/jsx-runtime").JSX.Element) & {
17
- displayName: string;
18
- };
19
- //# sourceMappingURL=DataSpaceTemplateQueryCreator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6CH,eAAO,MAAM,6BAA6B;;CAsBxC,CAAC"}
@@ -1,37 +0,0 @@
1
- import { 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 { observer, useLocalObservable } from 'mobx-react-lite';
18
- import { useParams } from '@finos/legend-application/browser';
19
- import { QueryEditor, QueryEditorStoreContext, useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '@finos/legend-application-query';
20
- import { DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
21
- import { parseGAVCoordinates } from '@finos/legend-storage';
22
- import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
23
- const DataSpaceTemplateQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, templateQueryId }) => {
24
- const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
25
- const applicationStore = useLegendQueryApplicationStore();
26
- const baseStore = useLegendQueryBaseStore();
27
- const store = useLocalObservable(() => new DataSpaceTemplateQueryCreatorStore(applicationStore, baseStore.depotServerClient, groupId, artifactId, versionId, dataSpacePath, templateQueryId));
28
- return (_jsx(QueryEditorStoreContext.Provider, { value: store, children: children }));
29
- };
30
- export const DataSpaceTemplateQueryCreator = observer(() => {
31
- const parameters = useParams();
32
- const gav = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
33
- const dataSpacePath = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
34
- const templateQueryId = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID];
35
- return (_jsx(DataSpaceTemplateQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, templateQueryId: templateQueryId, children: _jsx(QueryEditor, {}) }));
36
- });
37
- //# sourceMappingURL=DataSpaceTemplateQueryCreator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryCreator.js","s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IACxE,MAAM,aAAa,GACjB,UAAU,CACR,qDAAqD,CAAC,eAAe,CACtE,CAAC;IACJ,MAAM,eAAe,GACnB,UAAU,CACR,qDAAqD,CAAC,iBAAiB,CACxE,CAAC;IAEJ,OAAO,CACL,KAAC,0CAA0C,IACzC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,YAEhC,KAAC,WAAW,KAAG,GAC4B,CAC9C,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryDataSpaceUtil.d.ts","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAMlE,eAAO,MAAM,qBAAqB,UAAW,KAAK,KAAG,MAAM,GAAG,SAQ7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,KAAK,KAAG,OACT,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryDataSpaceUtil.js","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAc,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAsB,EAAE;IACxE,MAAM,oBAAoB,GAAG,KAAK,CAAC,YAAY,EAAE,IAAI,CACnD,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,OAAO,KAAK,kBAAkB;QAC1C,WAAW,CAAC,GAAG,KAAK,4BAA4B;QAChD,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CACrC,CAAC;IACF,OAAO,oBAAoB,EAAE,KAAK,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAY,EAAW,EAAE,CACxD,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/query/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/query/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC"}
@@ -1,39 +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 { type NewElementFromStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorStateCreator, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter, LegendStudioApplicationPlugin, type ExplorerContextMenuItemRendererConfiguration, type EditorExtensionStateBuilder, type EditorExtensionComponentRendererConfiguration } from '@finos/legend-application-studio';
17
- import type { ApplicationPageEntry } from '@finos/legend-application';
18
- export declare class DSL_DataSpace_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
19
- constructor();
20
- getExtraRequiredDocumentationKeys(): string[];
21
- getExtraApplicationPageEntries(): ApplicationPageEntry[];
22
- getExtraExplorerContextMenuItemRendererConfigurations(): ExplorerContextMenuItemRendererConfiguration[];
23
- getExtraEditorExtensionStateBuilders(): EditorExtensionStateBuilder[];
24
- getExtraEditorExtensionComponentRendererConfigurations(): EditorExtensionComponentRendererConfiguration[];
25
- getExtraPureGrammarKeywords(): string[];
26
- getExtraSupportedElementTypes(): string[];
27
- getExtraSupportedElementTypesWithCategory?(): Map<string, string[]>;
28
- getExtraElementClassifiers(): ElementClassifier[];
29
- getExtraElementIconGetters(): ElementIconGetter[];
30
- getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
31
- getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
32
- getExtraDragElementClassifiers(): DragElementClassifier[];
33
- getExtraPureGrammarTextEditorDragElementTypes(): string[];
34
- getExtraPureGrammarParserElementDocumentationGetters(): PureGrammarParserElementDocumentationGetter[];
35
- getExtraPureGrammarParserDocumentationGetters(): PureGrammarParserDocumentationGetter[];
36
- getExtraPureGrammarParserKeywordSuggestionGetters(): PureGrammarParserKeywordSuggestionGetter[];
37
- getExtraPureGrammarParserElementSnippetSuggestionsGetters(): PureGrammarParserElementSnippetSuggestionsGetter[];
38
- }
39
- //# sourceMappingURL=DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC7B,KAAK,4CAA4C,EACjD,KAAK,2BAA2B,EAChC,KAAK,6CAA6C,EAEnD,MAAM,kCAAkC,CAAC;AAa1C,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAmBnC,qBAAa,2CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAO7C,8BAA8B,IAAI,oBAAoB,EAAE;IAYxD,qDAAqD,IAAI,4CAA4C,EAAE;IAuBvG,oCAAoC,IAAI,2BAA2B,EAAE;IAIrE,sDAAsD,IAAI,6CAA6C,EAAE;IASlH,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,yCAAyC,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASnE,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
@@ -1,207 +0,0 @@
1
- import { 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 packageJson from '../../../package.json' assert { type: 'json' };
18
- import { UnsupportedElementEditorState, LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
19
- import { PackageableElementExplicitReference, stub_Mapping, stub_PackageableRuntime, } from '@finos/legend-graph';
20
- import { DataSpace, DataSpaceExecutionContext, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
21
- import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.js';
22
- import { SIMPLE_DATA_SPACE_SNIPPET } from '../../__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.js';
23
- import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
24
- import { DataSpacePreviewState } from '../../stores/studio/DataSpacePreviewState.js';
25
- import { DataSpacePreviewDialog, DataSpacePreviewAction, } from './DataSpacePreviewAction.js';
26
- import { DataSpaceQueryAction } from './DataSpaceQueryAction.js';
27
- import { DataSpaceTemplateQueryPromotionReviewer } from './DataSpaceTemplateQueryPromoteReview.js';
28
- import { DATA_SPACE_QUERY_ROUTE_PATTERN } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
29
- const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
30
- const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DATA_SPACE';
31
- const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
32
- const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
33
- export class DSL_DataSpace_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin {
34
- constructor() {
35
- super(packageJson.extensions.applicationStudioPlugin, packageJson.version);
36
- }
37
- getExtraRequiredDocumentationKeys() {
38
- return [
39
- DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.CONCEPT_ELEMENT_DATA_SPACE,
40
- DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER,
41
- ];
42
- }
43
- getExtraApplicationPageEntries() {
44
- return [
45
- {
46
- key: 'promote-as-curated-template-query-page',
47
- addressPatterns: [
48
- DATA_SPACE_QUERY_ROUTE_PATTERN.PROMOTE_TEMPLATE_QUERY,
49
- ],
50
- renderer: DataSpaceTemplateQueryPromotionReviewer,
51
- },
52
- ];
53
- }
54
- getExtraExplorerContextMenuItemRendererConfigurations() {
55
- return [
56
- {
57
- key: 'data-space-query',
58
- renderer: (editorStore, element) => {
59
- if (element instanceof DataSpace) {
60
- return _jsx(DataSpaceQueryAction, { dataSpace: element });
61
- }
62
- return undefined;
63
- },
64
- },
65
- {
66
- key: 'data-space-preview',
67
- renderer: (editorStore, element) => {
68
- if (element instanceof DataSpace) {
69
- return _jsx(DataSpacePreviewAction, { dataSpace: element });
70
- }
71
- return undefined;
72
- },
73
- },
74
- ];
75
- }
76
- getExtraEditorExtensionStateBuilders() {
77
- return [(editorStore) => new DataSpacePreviewState(editorStore)];
78
- }
79
- getExtraEditorExtensionComponentRendererConfigurations() {
80
- return [
81
- {
82
- key: 'data-space-preview',
83
- renderer: (editorStore) => _jsx(DataSpacePreviewDialog, {}),
84
- },
85
- ];
86
- }
87
- getExtraPureGrammarKeywords() {
88
- return [PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL];
89
- }
90
- getExtraSupportedElementTypes() {
91
- return [DATA_SPACE_ELEMENT_TYPE];
92
- }
93
- getExtraSupportedElementTypesWithCategory() {
94
- const elementTypesWithCategoryMap = new Map();
95
- elementTypesWithCategoryMap.set(PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.QUERY, [DATA_SPACE_ELEMENT_TYPE]);
96
- return elementTypesWithCategoryMap;
97
- }
98
- getExtraElementClassifiers() {
99
- return [
100
- (element) => {
101
- if (element instanceof DataSpace) {
102
- return DATA_SPACE_ELEMENT_TYPE;
103
- }
104
- return undefined;
105
- },
106
- ];
107
- }
108
- getExtraElementIconGetters() {
109
- return [
110
- (type) => {
111
- if (type === DATA_SPACE_ELEMENT_TYPE) {
112
- return _jsx(DataSpaceIcon, {});
113
- }
114
- return undefined;
115
- },
116
- ];
117
- }
118
- getExtraNewElementFromStateCreators() {
119
- return [
120
- (type, name, state) => {
121
- if (type === DATA_SPACE_ELEMENT_TYPE) {
122
- const dataSpace = new DataSpace(name);
123
- const dataSpaceExecutionContext = new DataSpaceExecutionContext();
124
- dataSpaceExecutionContext.name = 'dummyContext';
125
- dataSpaceExecutionContext.mapping =
126
- PackageableElementExplicitReference.create(stub_Mapping());
127
- dataSpaceExecutionContext.defaultRuntime =
128
- PackageableElementExplicitReference.create(stub_PackageableRuntime());
129
- dataSpace.executionContexts = [dataSpaceExecutionContext];
130
- dataSpace.defaultExecutionContext = dataSpaceExecutionContext;
131
- return dataSpace;
132
- }
133
- return undefined;
134
- },
135
- ];
136
- }
137
- getExtraElementEditorStateCreators() {
138
- return [
139
- (editorStore, element) => {
140
- if (element instanceof DataSpace) {
141
- return new UnsupportedElementEditorState(editorStore, element);
142
- }
143
- return undefined;
144
- },
145
- ];
146
- }
147
- getExtraDragElementClassifiers() {
148
- return [
149
- (element) => {
150
- if (element instanceof DataSpace) {
151
- return DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE;
152
- }
153
- return undefined;
154
- },
155
- ];
156
- }
157
- getExtraPureGrammarTextEditorDragElementTypes() {
158
- return [DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE];
159
- }
160
- getExtraPureGrammarParserElementDocumentationGetters() {
161
- return [
162
- (editorStore, parserKeyword, elementKeyword) => {
163
- if (parserKeyword === PURE_GRAMMAR_DATA_SPACE_PARSER_NAME) {
164
- if (elementKeyword === PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL) {
165
- return editorStore.applicationStore.documentationService.getDocEntry(DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.CONCEPT_ELEMENT_DATA_SPACE);
166
- }
167
- }
168
- return undefined;
169
- },
170
- ];
171
- }
172
- getExtraPureGrammarParserDocumentationGetters() {
173
- return [
174
- (editorStore, parserKeyword) => {
175
- if (parserKeyword === PURE_GRAMMAR_DATA_SPACE_PARSER_NAME) {
176
- return editorStore.applicationStore.documentationService.getDocEntry(DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER);
177
- }
178
- return undefined;
179
- },
180
- ];
181
- }
182
- getExtraPureGrammarParserKeywordSuggestionGetters() {
183
- return [
184
- (editorStore) => [
185
- {
186
- text: PURE_GRAMMAR_DATA_SPACE_PARSER_NAME,
187
- description: `(dsl)`,
188
- documentation: editorStore.applicationStore.documentationService.getDocEntry(DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER),
189
- insertText: PURE_GRAMMAR_DATA_SPACE_PARSER_NAME,
190
- },
191
- ],
192
- ];
193
- }
194
- getExtraPureGrammarParserElementSnippetSuggestionsGetters() {
195
- return [
196
- (editorStore, parserKeyword) => parserKeyword === PURE_GRAMMAR_DATA_SPACE_PARSER_NAME
197
- ? [
198
- {
199
- text: PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL,
200
- insertText: SIMPLE_DATA_SPACE_SNIPPET,
201
- },
202
- ]
203
- : undefined,
204
- ];
205
- }
206
- }
207
- //# sourceMappingURL=DSL_DataSpace_LegendStudioApplicationPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAA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AAmC;gBACnD,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,0CAA0C;wBAChD,UAAU,EAAE,yBAAyB;qBACtC;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
@@ -1,25 +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 type { DataSpace } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
17
- export declare const DataSpacePreviewAction: ((props: {
18
- dataSpace: DataSpace;
19
- }) => import("react/jsx-runtime").JSX.Element | null) & {
20
- displayName: string;
21
- };
22
- export declare const DataSpacePreviewDialog: (() => import("react/jsx-runtime").JSX.Element | null) & {
23
- displayName: string;
24
- };
25
- //# sourceMappingURL=DataSpacePreviewAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpacePreviewAction.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DataSpacePreviewAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2FAA2F,CAAC;AAI3H,eAAO,MAAM,sBAAsB,WACzB;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE;;CAoBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CA4EjC,CAAC"}
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { useApplicationStore } from '@finos/legend-application';
18
- import { MenuContentItem, BlankPanelContent, TimesCircleIcon, PanelLoadingIndicator, Dialog, TimesIcon, Modal, ModalHeader, ModalTitle, ModalHeaderActions, } from '@finos/legend-art';
19
- import { flowResult } from 'mobx';
20
- import { observer } from 'mobx-react-lite';
21
- import { DataSpaceViewer } from '../DataSpaceViewer.js';
22
- import { useEditorStore } from '@finos/legend-application-studio';
23
- import { DataSpacePreviewState } from '../../stores/studio/DataSpacePreviewState.js';
24
- export const DataSpacePreviewAction = observer((props) => {
25
- const { dataSpace } = props;
26
- const editorStore = useEditorStore();
27
- const applicationStore = useApplicationStore();
28
- const dataSpacePreviewState = DataSpacePreviewState.retrieveNullableState(editorStore);
29
- if (!dataSpacePreviewState) {
30
- return null;
31
- }
32
- const previewDataSpace = () => {
33
- flowResult(dataSpacePreviewState.previewDataSpace(dataSpace)).catch(applicationStore.alertUnhandledError);
34
- };
35
- return (_jsx(MenuContentItem, { onClick: previewDataSpace, children: "Preview" }));
36
- });
37
- export const DataSpacePreviewDialog = observer(() => {
38
- const editorStore = useEditorStore();
39
- const applicationStore = editorStore.applicationStore;
40
- const dataSpacePreviewState = DataSpacePreviewState.retrieveNullableState(editorStore);
41
- if (!dataSpacePreviewState) {
42
- return null;
43
- }
44
- const onClose = () => {
45
- dataSpacePreviewState.setDataSpace(undefined);
46
- };
47
- return (_jsx(Dialog, { open: Boolean(dataSpacePreviewState.dataSpace), onClose: onClose, classes: {
48
- root: 'editor-modal__root-container',
49
- container: 'editor-modal__container',
50
- paper: 'editor-modal__content data-space-preview__dialog__container__content',
51
- }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal data-space-preview__dialog", children: [_jsxs(ModalHeader, { className: "data-space-preview__dialog__header", children: [_jsx(ModalTitle, { title: "Preview Data Space" }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", title: "Close", onClick: onClose, children: _jsx(TimesIcon, {}) }) })] }), _jsxs("div", { className: "data-space-preview__dialog__content", children: [_jsx(PanelLoadingIndicator, { isLoading: dataSpacePreviewState.loadDataSpaceState.isInProgress }), dataSpacePreviewState.dataSpaceViewerState && (_jsx(DataSpaceViewer, { dataSpaceViewerState: dataSpacePreviewState.dataSpaceViewerState })), !dataSpacePreviewState.dataSpaceViewerState && (_jsxs(_Fragment, { children: [dataSpacePreviewState.loadDataSpaceState.isInProgress && (_jsx(BlankPanelContent, { children: dataSpacePreviewState.loadDataSpaceState.message })), dataSpacePreviewState.loadDataSpaceState.hasFailed && (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "data-space-preview__dialog__content--failed", children: [_jsx("div", { className: "data-space-preview__dialog__content--failed__icon", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { className: "data-space-preview__dialog__content--failed__text", children: `Can't load data space` })] }) }))] }))] })] }) }));
52
- });
53
- //# sourceMappingURL=DataSpacePreviewAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpacePreviewAction.js","sourceRoot":"","sources":["../../../src/components/studio/DataSpacePreviewAction.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,KAAK,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,O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V,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,22 +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 type { DataSpace } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
17
- export declare const DataSpaceQueryAction: ((props: {
18
- dataSpace: DataSpace;
19
- }) => import("react/jsx-runtime").JSX.Element) & {
20
- displayName: string;
21
- };
22
- //# sourceMappingURL=DataSpaceQueryAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryAction.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceQueryAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2FAA2F,CAAC;AAI3H,eAAO,MAAM,oBAAoB,WACvB;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE;;CAUjC,CAAC"}
@@ -1,29 +0,0 @@
1
- import { 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 { MenuContentItem } from '@finos/legend-art';
18
- import { observer } from 'mobx-react-lite';
19
- import { useEditorStore } from '@finos/legend-application-studio';
20
- import { queryDataSpace } from '../query/DataSpaceQueryBuilder.js';
21
- export const DataSpaceQueryAction = observer((props) => {
22
- const { dataSpace } = props;
23
- const editorStore = useEditorStore();
24
- const buildQuery = editorStore.applicationStore.guardUnhandledError(async () => {
25
- await queryDataSpace(dataSpace, editorStore);
26
- });
27
- return _jsx(MenuContentItem, { onClick: buildQuery, children: "Query..." });
28
- });
29
- //# sourceMappingURL=DataSpaceQueryAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryAction.js","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceQueryAction.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,CAAC,KAA+B,EAAE,EAAE;IAClC,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CACjE,KAAK,IAAI,EAAE;QACT,MAAM,cAAc,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC/C,CAAC,CACF,CAAC;IACF,OAAO,KAAC,eAAe,IAAC,OAAO,EAAE,UAAU,yBAA4B,CAAC;AAC1E,CAAC,CACF,CAAC"}
@@ -1,19 +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 declare const DataSpaceTemplateQueryPromotionReviewer: (() => import("react/jsx-runtime").JSX.Element) & {
17
- displayName: string;
18
- };
19
- //# sourceMappingURL=DataSpaceTemplateQueryPromoteReview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryPromoteReview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiQH,eAAO,MAAM,uCAAuC;;CAoBlD,CAAC"}