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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/lib/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.d.ts → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts} +5 -20
  2. package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts.map +1 -0
  3. package/lib/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.js → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js} +34 -2
  4. package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js.map +1 -0
  5. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +2 -2
  6. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  7. package/lib/components/index.d.ts +4 -4
  8. package/lib/components/index.d.ts.map +1 -1
  9. package/lib/components/index.js +4 -4
  10. package/lib/components/index.js.map +1 -1
  11. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.d.ts.map +1 -0
  12. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -0
  13. package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -0
  14. package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -0
  15. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -0
  16. package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.js +2 -2
  17. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -0
  18. package/lib/components/query-builder/QueryDataSpaceUtil.d.ts.map +1 -0
  19. package/lib/components/query-builder/QueryDataSpaceUtil.js.map +1 -0
  20. package/lib/components/{query → query-builder}/index.d.ts +3 -1
  21. package/lib/components/query-builder/index.d.ts.map +1 -0
  22. package/lib/components/{query → query-builder}/index.js +3 -1
  23. package/lib/components/query-builder/index.js.map +1 -0
  24. package/lib/graph-manager/index.d.ts +1 -0
  25. package/lib/graph-manager/index.d.ts.map +1 -1
  26. package/lib/graph-manager/index.js +1 -0
  27. package/lib/graph-manager/index.js.map +1 -1
  28. package/lib/index.css +1 -1
  29. package/lib/package.json +3 -5
  30. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  31. package/lib/stores/query/DataSpaceAdvancedSearchState.js +1 -2
  32. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  33. package/lib/stores/query-builder/DataSpaceQueryBuilderState.js +1 -1
  34. package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -1
  35. package/lib/{components/query/DataSpaceQueryCreator.d.ts → stores/shared/DataSpaceUtils.d.ts} +4 -4
  36. package/lib/stores/shared/DataSpaceUtils.d.ts.map +1 -0
  37. package/lib/stores/shared/DataSpaceUtils.js +32 -0
  38. package/lib/stores/shared/DataSpaceUtils.js.map +1 -0
  39. package/package.json +4 -6
  40. package/src/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.ts → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts} +47 -18
  41. package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +5 -5
  42. package/src/components/index.ts +11 -4
  43. package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +3 -3
  44. package/src/components/{query → query-builder}/index.ts +7 -1
  45. package/src/graph-manager/index.ts +1 -0
  46. package/src/stores/query/DataSpaceAdvancedSearchState.ts +4 -2
  47. package/src/stores/query-builder/DataSpaceQueryBuilderState.ts +1 -1
  48. package/src/stores/shared/DataSpaceUtils.ts +42 -0
  49. package/tsconfig.json +7 -13
  50. package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +0 -1
  51. package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js.map +0 -1
  52. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +0 -29
  53. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +0 -1
  54. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +0 -243
  55. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +0 -1
  56. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +0 -1
  57. package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +0 -1
  58. package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +0 -1
  59. package/lib/components/query/DataSpaceQueryBuilder.js.map +0 -1
  60. package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +0 -1
  61. package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +0 -1
  62. package/lib/components/query/DataSpaceQueryCreator.d.ts.map +0 -1
  63. package/lib/components/query/DataSpaceQueryCreator.js +0 -41
  64. package/lib/components/query/DataSpaceQueryCreator.js.map +0 -1
  65. package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -21
  66. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +0 -1
  67. package/lib/components/query/DataSpaceQuerySetup.js +0 -63
  68. package/lib/components/query/DataSpaceQuerySetup.js.map +0 -1
  69. package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts +0 -19
  70. package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts.map +0 -1
  71. package/lib/components/query/DataSpaceTemplateQueryCreator.js +0 -37
  72. package/lib/components/query/DataSpaceTemplateQueryCreator.js.map +0 -1
  73. package/lib/components/query/QueryDataSpaceUtil.d.ts.map +0 -1
  74. package/lib/components/query/QueryDataSpaceUtil.js.map +0 -1
  75. package/lib/components/query/index.d.ts.map +0 -1
  76. package/lib/components/query/index.js.map +0 -1
  77. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +0 -38
  78. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +0 -1
  79. package/lib/stores/query/DataSpaceQueryCreatorStore.js +0 -149
  80. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +0 -1
  81. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +0 -51
  82. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +0 -1
  83. package/lib/stores/query/DataSpaceQuerySetupStore.js +0 -107
  84. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +0 -1
  85. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts +0 -35
  86. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts.map +0 -1
  87. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js +0 -108
  88. package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js.map +0 -1
  89. package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +0 -445
  90. package/src/components/query/DataSpaceQueryCreator.tsx +0 -99
  91. package/src/components/query/DataSpaceQuerySetup.tsx +0 -165
  92. package/src/components/query/DataSpaceTemplateQueryCreator.tsx +0 -82
  93. package/src/stores/query/DataSpaceQueryCreatorStore.ts +0 -308
  94. package/src/stores/query/DataSpaceQuerySetupStore.ts +0 -208
  95. package/src/stores/query/DataSpaceTemplateQueryCreatorStore.ts +0 -207
  96. /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.d.ts +0 -0
  97. /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.js +0 -0
  98. /package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.d.ts +0 -0
  99. /package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.js +0 -0
  100. /package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts +0 -0
  101. /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.d.ts +0 -0
  102. /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.js +0 -0
  103. /package/src/components/{query → query-builder}/DataSpaceAdvancedSearchModal.tsx +0 -0
  104. /package/src/components/{query → query-builder}/DataSpaceQueryBuilder.tsx +0 -0
  105. /package/src/components/{query → query-builder}/QueryDataSpaceUtil.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAkC,MAAM,2FAA2F,CAAC;AAC3I,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAMjF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,KAAoB,EACH,EAAE,CAAC,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI;IAChC,KAAK;CACN,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,MAAuB,EACN,EAAE,CAAC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,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,6DAA6D,EAC5E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;6CAC5B,mCAAmC,EAExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;4CAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iDAC5B,mCAAmC;yCACzC,CAAC,GACF,IACE,CACP,IACG,IACF,EACN,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,iBAAiB,CAAC,aAAa,EAC9C,cAAc,EAAC,2DAA2D,GAC1E,IACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,sCAAsC,IACrC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAqM3G,eAAO,MAAM,oDAAoD,sBAC5C,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,E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ACM,GACV,GACY,CACrB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uCAAuC,GAAG,QAAQ,CACtD,CAAC,KAAwD,EAAE,EAAE;IAC3D,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,sBAAsB,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAC/D,MAAM,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CACrE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,2BAA2B,CACH,CAAC;IAE/C,MAAM,mBAAmB,GAAG,GAAS,EAAE;QACrC,iBAAiB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,OAAO,CACL,4BACG,eAAe,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,IAAI,CAChD,MAAC,WAAW,IAAC,SAAS,EAAC,2CAA2C,aAChE,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,UAAU,KAAG,GACV,EACN,kBACE,SAAS,EAAC,gDAAgD,EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,4BAEhB,eAAe,CAAC,MAAM,UAC3B,EACR,iBAAiB,CAAC,yBAAyB,IAAI,CAC9C,KAAC,4BAA4B,IAC3B,cAAc,EAAE,sBAAsB,CAAC,OAAO,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,IACW,CACf,GACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAClE,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,uCAAuC,IACtC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0DH,eAAO,MAAM,qBAAqB;;CA0BhC,CAAC"}
@@ -1,41 +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 { useApplicationStore } from '@finos/legend-application';
19
- import { useParams } from '@finos/legend-application/browser';
20
- import { QueryEditor, QueryEditorStoreContext, useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '@finos/legend-application-query';
21
- import { DataSpaceQueryCreatorStore } from '../../stores/query/DataSpaceQueryCreatorStore.js';
22
- import { DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN, DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
23
- import { parseGAVCoordinates } from '@finos/legend-storage';
24
- const DataSpaceQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, executionContext, runtimePath, classPath, }) => {
25
- const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
26
- const applicationStore = useLegendQueryApplicationStore();
27
- const baseStore = useLegendQueryBaseStore();
28
- const store = useLocalObservable(() => new DataSpaceQueryCreatorStore(applicationStore, baseStore.depotServerClient, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, classPath));
29
- return (_jsx(QueryEditorStoreContext.Provider, { value: store, children: children }));
30
- };
31
- export const DataSpaceQueryCreator = observer(() => {
32
- const applicationStore = useApplicationStore();
33
- const parameters = useParams();
34
- const gav = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
35
- const dataSpacePath = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
36
- const executionContext = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT];
37
- const runtimePath = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH];
38
- const classPath = applicationStore.navigationService.navigator.getCurrentLocationParameterValue(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH);
39
- return (_jsx(DataSpaceQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, executionContext: executionContext, runtimePath: runtimePath, classPath: classPath, children: _jsx(QueryEditor, {}) }));
40
- });
41
- //# sourceMappingURL=DataSpaceQueryCreator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.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,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,EAEL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,kCAAkC,GAOnC,CAAC,EACJ,QAAQ,EACR,GAAG,E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B,EAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,YAEpB,KAAC,WAAW,KAAG,GACoB,CACtC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,21 +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 DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupStore.js';
17
- export declare const DataSpaceQuerySetup: (() => import("react/jsx-runtime").JSX.Element) & {
18
- displayName: string;
19
- };
20
- export declare const renderDataSpaceQuerySetupSetupPanelContent: (queryBuilderState: DataSpaceQuerySetupState) => React.ReactNode;
21
- //# sourceMappingURL=DataSpaceQuerySetup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,gDAAgD,CAAC;AA2BxD,eAAO,MAAM,mBAAmB;;CAI9B,CAAC;AA6FH,eAAO,MAAM,0CAA0C,sBAClC,wBAAwB,KAC1C,MAAM,SAER,CAAC"}
@@ -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 '../shared/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,iCAAiC,CAAC;AAChE,OAAO,EAEL,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,gCAAgC,GAEjC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,8BAA8B,EAAE,CAAC;IAC1D,MAAM,SAAS,GAAG,uBAAuB,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,wBAAwB,CAC1B,gBAAgB,EAChB,SAAS,CAAC,iBAA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ldman 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","sourceRoot":"","sources":["../../../src/components/query/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,GACx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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,38 +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 { 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,EAKhB,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,EAGvB,MAAM,4BAA4B,CAAC;AAmBpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAInE,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,KACpB,gBAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAC3B,MAAM,KAChB,gBAMF,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,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,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGrC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS;IAalC,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA+J/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,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 '../query-builder/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/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAIpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGhB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAIhH,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAE/G,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,aAAqB,EACH,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC;IACzC,WAAW,CAAC,GAAG,GAAG,4BAA4B,CAA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IAAI,CAAC,UAAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE;oBACjC,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;wBACnD,2BAA2B,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC;qBAC/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 '../shared/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;AACp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