@finos/legend-application-query 13.5.56 → 13.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/lib/__lib__/LegendQueryNavigation.d.ts +1 -0
  2. package/lib/__lib__/LegendQueryNavigation.d.ts.map +1 -1
  3. package/lib/__lib__/LegendQueryNavigation.js +1 -0
  4. package/lib/__lib__/LegendQueryNavigation.js.map +1 -1
  5. package/lib/components/CloneQueryServiceSetup.d.ts.map +1 -1
  6. package/lib/components/CloneQueryServiceSetup.js +6 -2
  7. package/lib/components/CloneQueryServiceSetup.js.map +1 -1
  8. package/lib/components/Core_LegendQueryApplicationPlugin.js +4 -4
  9. package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
  10. package/lib/components/CreateMappingQuerySetup.d.ts.map +1 -1
  11. package/lib/components/CreateMappingQuerySetup.js +6 -2
  12. package/lib/components/CreateMappingQuerySetup.js.map +1 -1
  13. package/lib/components/LegendQueryWebApplication.d.ts.map +1 -1
  14. package/lib/components/LegendQueryWebApplication.js +5 -30
  15. package/lib/components/LegendQueryWebApplication.js.map +1 -1
  16. package/lib/components/QueryEditor.d.ts.map +1 -1
  17. package/lib/components/QueryEditor.js +8 -8
  18. package/lib/components/QueryEditor.js.map +1 -1
  19. package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.d.ts.map +1 -1
  20. package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js +1 -1
  21. package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js.map +1 -1
  22. package/lib/components/UpdateExistingServiceQuerySetup.js +1 -1
  23. package/lib/components/UpdateExistingServiceQuerySetup.js.map +1 -1
  24. package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts.map +1 -1
  25. package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js +3 -1
  26. package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js.map +1 -1
  27. package/lib/components/data-cube/ExistingQueryDataCubeViewer.d.ts +22 -0
  28. package/lib/components/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -0
  29. package/lib/components/data-cube/ExistingQueryDataCubeViewer.js +44 -0
  30. package/lib/components/data-cube/ExistingQueryDataCubeViewer.js.map +1 -0
  31. package/lib/components/data-cube/ExistingQueryEditorStoreProviderProvider.d.ts +23 -0
  32. package/lib/components/data-cube/ExistingQueryEditorStoreProviderProvider.d.ts.map +1 -0
  33. package/lib/components/data-cube/ExistingQueryEditorStoreProviderProvider.js +30 -0
  34. package/lib/components/data-cube/ExistingQueryEditorStoreProviderProvider.js.map +1 -0
  35. package/lib/components/data-space/DataSpaceQueryCreator.d.ts.map +1 -1
  36. package/lib/components/data-space/DataSpaceQueryCreator.js +3 -3
  37. package/lib/components/data-space/DataSpaceQueryCreator.js.map +1 -1
  38. package/lib/components/data-space/DataSpaceQuerySetup.js +1 -1
  39. package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
  40. package/lib/components/data-space/DataSpaceTemplateQueryCreator.d.ts.map +1 -1
  41. package/lib/components/data-space/DataSpaceTemplateQueryCreator.js +4 -3
  42. package/lib/components/data-space/DataSpaceTemplateQueryCreator.js.map +1 -1
  43. package/lib/index.css +1 -1
  44. package/lib/package.json +6 -5
  45. package/lib/stores/data-cube/ExistingQueryDataCubeViewer.d.ts +30 -0
  46. package/lib/stores/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -0
  47. package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js +59 -0
  48. package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js.map +1 -0
  49. package/package.json +17 -16
  50. package/src/__lib__/LegendQueryNavigation.ts +1 -0
  51. package/src/components/CloneQueryServiceSetup.tsx +10 -2
  52. package/src/components/Core_LegendQueryApplicationPlugin.tsx +4 -4
  53. package/src/components/CreateMappingQuerySetup.tsx +10 -2
  54. package/src/components/LegendQueryWebApplication.tsx +35 -80
  55. package/src/components/QueryEditor.tsx +24 -10
  56. package/src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx +1 -3
  57. package/src/components/UpdateExistingServiceQuerySetup.tsx +1 -1
  58. package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +14 -2
  59. package/src/components/data-cube/ExistingQueryDataCubeViewer.tsx +67 -0
  60. package/src/components/data-cube/ExistingQueryEditorStoreProviderProvider.tsx +56 -0
  61. package/src/components/data-space/DataSpaceQueryCreator.tsx +4 -6
  62. package/src/components/data-space/DataSpaceQuerySetup.tsx +1 -1
  63. package/src/components/data-space/DataSpaceTemplateQueryCreator.tsx +10 -6
  64. package/src/stores/data-cube/ExistingQueryDataCubeViewer.ts +98 -0
  65. package/tsconfig.json +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateExistingServiceQuerySetup.js","sourceRoot":"","sources":["../../src/components/UpdateExistingServiceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,GAEX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GAEzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,4CAA4C,GAE7C,CAAC,EAAE,QAAQ,EAAE,EAA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C,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC,YAAY,EACpD,aAAa,EAAE,kBAAkB,EACjC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,qBAAqB,EAC/B,WAAW,EAAC,uBAAuB,EACnC,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,EAExC,iBAAiB,EAAE,wBAAwB,GAC3C,IACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAa,GAAG,EAAE,CAAC,CAC7D,KAAC,4CAA4C,cAC3C,KAAC,cAAc,cACb,KAAC,sCAAsC,KAAG,GAC3B,GAC4B,CAChD,CAAC"}
1
+ {"version":3,"file":"UpdateExistingServiceQuerySetup.js","sourceRoot":"","sources":["../../src/components/UpdateExistingServiceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,GAEX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EACL,kBAAkB,EAClB,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UAAU,KAAG,GACV,EACN,KAAC,mBAAmB,IAClB,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC,YAAY,EACpD,aAAa,EAAE,kBAAkB,EACjC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,qBAAqB,EAC/B,WAAW,EAAC,uBAAuB,EACnC,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iCAC5B,mCAAmC,EAExC,iBAAiB,EAAE,wBAAwB,GAC3C,IACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAa,GAAG,EAAE,CAAC,CAC7D,KAAC,4CAA4C,cAC3C,KAAC,cAAc,cACb,KAAC,sCAAsC,KAAG,GAC3B,GAC4B,CAChD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditorComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAG5E,OAAO,EACL,KAAK,iBAAiB,EAGtB,SAAS,EAET,KAAK,qCAAqC,EAE3C,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AAMrC,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,eAAO,MAAM,mCAAmC,mBAAoB;IAClE,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C,KAAG,wBAwBH,CAAC;AAEF,eAAO,MAAM,sBAAsB,sBACd,wBAAwB,YACjC,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC,KAC5E,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAmGA,CAAC"}
1
+ {"version":3,"file":"QueryEditorComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAG5E,OAAO,EACL,KAAK,iBAAiB,EAGtB,SAAS,EAET,KAAK,qCAAqC,EAE3C,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AAWrC,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,eAAO,MAAM,mCAAmC,mBAAoB;IAClE,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C,KAAG,wBAwBH,CAAC;AAEF,eAAO,MAAM,sBAAsB,sBACd,wBAAwB,YACjC,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC,KAC5E,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CA0GA,CAAC"}
@@ -28,6 +28,8 @@ import { QUERY_BUILDER_TEST_ID, } from '@finos/legend-query-builder';
28
28
  import { LegendQueryFrameworkProvider } from '../LegendQueryFrameworkProvider.js';
29
29
  import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
30
30
  import { Core_LegendQueryApplicationPlugin } from '../Core_LegendQueryApplicationPlugin.js';
31
+ import { Route, Routes } from '@finos/legend-application/browser';
32
+ import { generateExistingQueryEditorRoute, LEGEND_QUERY_ROUTE_PATTERN, } from '../../__lib__/LegendQueryNavigation.js';
31
33
  const TEST_QUERY_ID = 'test-query-id';
32
34
  export const TEST_QUERY_NAME = 'MyTestQuery';
33
35
  export const TEST__provideMockedQueryEditorStore = (customization) => {
@@ -92,7 +94,7 @@ export const TEST__setUpQueryEditor = async (MOCK__editorStore, entities, lambda
92
94
  }
93
95
  MOCK__editorStore.buildGraph = createMock();
94
96
  graphManagerState.graphManager.initialize = createMock();
95
- const renderResult = render(_jsx(ApplicationStoreProvider, { store: MOCK__editorStore.applicationStore, children: _jsx(TEST__BrowserEnvironmentProvider, { children: _jsx(LegendQueryFrameworkProvider, { children: _jsx(ExistingQueryEditor, {}) }) }) }));
97
+ const renderResult = render(_jsx(ApplicationStoreProvider, { store: MOCK__editorStore.applicationStore, children: _jsx(TEST__BrowserEnvironmentProvider, { initialEntries: [generateExistingQueryEditorRoute(lightQuery.id)], children: _jsx(LegendQueryFrameworkProvider, { children: _jsx(Routes, { children: _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY, element: _jsx(ExistingQueryEditor, {}) }) }) }) }) }));
96
98
  await waitFor(() => renderResult.getByTestId(QUERY_BUILDER_TEST_ID.QUERY_BUILDER));
97
99
  return {
98
100
  renderResult,
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAEL,KAAK,EACL,UAAU,EACV,SAAS,EACT,mCAAmC,EAEnC,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAEL,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAE5F,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAE7C,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,aAKnD,EAA4B,EAAE;IAC7B,MAAM,aAAa,GACjB,aAAa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,CACrC,iBAAiB,CAAC,iBAAiB,EACnC,kDAAkD,CACnD;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAEL,KAAK,EACL,UAAU,EACV,SAAS,EACT,mCAAmC,EAEnC,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAEL,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EACL,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,MAAM,CAA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,MAAM,cACL,KAAC,KAAK,IACJ,IAAI,EAAE,0BAA0B,CAAC,mBAAmB,EACpD,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,GACK,GACoB,GACE,GACV,CAC5B,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB,EAAE,oBAAoB,CACrC,iBAAiB,CAAC,iBAAiB,EACnC,kDAAkD,CACnD;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const DataCubeWrapper: (() => import("react/jsx-runtime").JSX.Element | null) & {
17
+ displayName: string;
18
+ };
19
+ export declare const ExistingQueryDataCubeViewer: (() => import("react/jsx-runtime").JSX.Element) & {
20
+ displayName: string;
21
+ };
22
+ //# sourceMappingURL=ExistingQueryDataCubeViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryDataCubeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,eAAO,MAAM,eAAe;;CAoB1B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;CAWtC,CAAC"}
@@ -0,0 +1,44 @@
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 { useApplicationStore } from '@finos/legend-application';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { LEGEND_QUERY_ROUTE_PATTERN_TOKEN, } from '../../__lib__/LegendQueryNavigation.js';
20
+ import { useParams } from '@finos/legend-application/browser';
21
+ import { ExistingQueryDataCubeEditorStoreProvider, useExistingQueryDataCubeEditorStore, } from './ExistingQueryEditorStoreProviderProvider.js';
22
+ import { useEffect } from 'react';
23
+ import { flowResult } from 'mobx';
24
+ import { DataCube, DataCubeProvider } from '@finos/legend-data-cube';
25
+ import { QueryBuilderDataCubeApplicationEngine } from '@finos/legend-query-builder';
26
+ import { guaranteeNonNullable } from '@finos/legend-shared';
27
+ export const DataCubeWrapper = observer(() => {
28
+ const applicationStore = useApplicationStore();
29
+ const store = useExistingQueryDataCubeEditorStore();
30
+ useEffect(() => {
31
+ flowResult(store.initialize()).catch(applicationStore.alertUnhandledError);
32
+ }, [applicationStore, store]);
33
+ if (!store.engine) {
34
+ return null;
35
+ }
36
+ const _appEngine = new QueryBuilderDataCubeApplicationEngine(applicationStore);
37
+ return (_jsx(DataCubeProvider, { application: _appEngine, engine: store.engine, children: _jsx(DataCube, {}) }));
38
+ });
39
+ export const ExistingQueryDataCubeViewer = observer(() => {
40
+ const params = useParams();
41
+ const queryId = guaranteeNonNullable(params[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID]);
42
+ return (_jsx(ExistingQueryDataCubeEditorStoreProvider, { queryId: queryId, children: _jsx(DataCubeWrapper, {}) }));
43
+ });
44
+ //# sourceMappingURL=ExistingQueryDataCubeViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryDataCubeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,gCAAgC,GAEjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,wCAAwC,EACxC,mCAAmC,GACpC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC3C,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,mCAAmC,EAAE,CAAC;IAEpD,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC7E,CAAC,EAAE,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,qCAAqC,CAC1D,gBAAgB,CACjB,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,IAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,YAC7D,KAAC,QAAQ,KAAG,GACK,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACvD,MAAM,MAAM,GAAG,SAAS,EAAiC,CAAC;IAC1D,MAAM,OAAO,GAAG,oBAAoB,CAClC,MAAM,CAAC,gCAAgC,CAAC,QAAQ,CAAC,CAClD,CAAC;IAEF,OAAO,CACL,KAAC,wCAAwC,IAAC,OAAO,EAAE,OAAO,YACxD,KAAC,eAAe,KAAG,GACsB,CAC5C,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,23 @@
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 { ExistingQueryDataCubeEditorStore } from '../../stores/data-cube/ExistingQueryDataCubeViewer.js';
17
+ export declare const ExistingQueryDataCubeEditorStoreContext: import("react").Context<ExistingQueryDataCubeEditorStore | undefined>;
18
+ export declare const ExistingQueryDataCubeEditorStoreProvider: React.FC<{
19
+ children: React.ReactNode;
20
+ queryId: string;
21
+ }>;
22
+ export declare const useExistingQueryDataCubeEditorStore: () => ExistingQueryDataCubeEditorStore;
23
+ //# sourceMappingURL=ExistingQueryEditorStoreProviderProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryEditorStoreProviderProvider.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryEditorStoreProviderProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AAOzG,eAAO,MAAM,uCAAuC,uEAExC,CAAC;AAEb,eAAO,MAAM,wCAAwC,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CAgBA,CAAC;AAEF,eAAO,MAAM,mCAAmC,QAC1C,gCAID,CAAC"}
@@ -0,0 +1,30 @@
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 { createContext, useContext } from 'react';
18
+ import { useLocalObservable } from 'mobx-react-lite';
19
+ import { ExistingQueryDataCubeEditorStore } from '../../stores/data-cube/ExistingQueryDataCubeViewer.js';
20
+ import { useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '../LegendQueryFrameworkProvider.js';
21
+ import { guaranteeNonNullable } from '@finos/legend-shared';
22
+ export const ExistingQueryDataCubeEditorStoreContext = createContext(undefined);
23
+ export const ExistingQueryDataCubeEditorStoreProvider = ({ children, queryId }) => {
24
+ const applicationStore = useLegendQueryApplicationStore();
25
+ const baseStore = useLegendQueryBaseStore();
26
+ const store = useLocalObservable(() => new ExistingQueryDataCubeEditorStore(applicationStore, baseStore.depotServerClient, queryId));
27
+ return (_jsx(ExistingQueryDataCubeEditorStoreContext.Provider, { value: store, children: children }));
28
+ };
29
+ export const useExistingQueryDataCubeEditorStore = () => guaranteeNonNullable(useContext(ExistingQueryDataCubeEditorStoreContext), `Can't find query editor store in context`);
30
+ //# sourceMappingURL=ExistingQueryEditorStoreProviderProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryEditorStoreProviderProvider.js","sourceRoot":"","sources":["../../../src/components/data-cube/ExistingQueryEditorStoreProviderProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uDAAuD,CAAC;AACzG,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,CAAC,MAAM,uCAAuC,GAAG,aAAa,CAElE,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wCAAwC,GAGhD,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7B,MAAM,gBAAgB,GAAG,8BAA8B,EAAE,CAAC;IAC1D,MAAM,SAAS,GAAG,uBAAuB,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,gCAAgC,CAClC,gBAAgB,EAChB,SAAS,CAAC,iBAAiB,EAC3B,OAAO,CACR,CACJ,CAAC;IACF,OAAO,CACL,KAAC,uCAAuC,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC3D,QAAQ,GACwC,CACpD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAC9C,GAAqC,EAAE,CACrC,oBAAoB,CAClB,UAAU,CAAC,uCAAuC,CAAC,EACnD,0CAA0C,CAC3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0EH,eAAO,MAAM,qBAAqB;;CA8BhC,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0EH,eAAO,MAAM,qBAAqB;;CA4BhC,CAAC"}
@@ -50,9 +50,9 @@ const DataSpaceQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, exec
50
50
  export const DataSpaceQueryCreator = observer(() => {
51
51
  const applicationStore = useApplicationStore();
52
52
  const parameters = useParams();
53
- const gav = parameters?.[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
54
- const dataSpacePath = parameters?.[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
55
- const executionContext = parameters?.[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT];
53
+ const gav = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
54
+ const dataSpacePath = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
55
+ const executionContext = parameters[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT];
56
56
  const runtimePath = applicationStore.navigationService.navigator.getCurrentLocationParameterValue(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.RUNTIME_PATH);
57
57
  const classPath = applicationStore.navigationService.navigator.getCurrentLocationParameterValue(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH);
58
58
  return (_jsx(DataSpaceQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, executionContext: executionContext, runtimePath: runtimePath, classPath: classPath, children: _jsx(QueryEditor, {}) }));
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/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,YAAY,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0BAA0B,GAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,0CAA0C,EAC1C,4CAA4C,GAE7C,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,kCAAkC,GAOnC,CAAC,EACJ,QAAQ,EACR,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,SAAS,GACV,EAAE,EAAE;IACH,IAAI,kBAAkB,GAAmC,SAAS,CAAC;IACnE,IAAI,GAAG,IAAI,aAAa,IAAI,gBAAgB,EAAE,CAAC;QAC7C,MAAM,EAAE,OAAO,EAAE,UA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IACJ,MAAM,SAAS,GACb,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,gCAAgC,CAC3E,0CAA0C,CAAC,UAAU,CACtD,CAAC;IAEJ,OAAO,CACL,KAAC,kCAAkC,IACjC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,YAEpB,KAAC,WAAW,KAAG,GACoB,CACtC,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/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,YAAY,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0BAA0B,GAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,0CAA0C,EAC1C,4CAA4C,GAE7C,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,kCAAkC,GAOnC,CAAC,EACJ,QAAQ,EACR,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,SAAS,GACV,EAAE,EAAE;IACH,IAAI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WAAW,GACf,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,gCAAgC,CAC3E,0CAA0C,CAAC,YAAY,CACxD,CAAC;IACJ,MAAM,SAAS,GACb,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,gCAAgC,CAC3E,0CAA0C,CAAC,UAAU,CACtD,CAAC;IAEJ,OAAO,CACL,KAAC,kCAAkC,IACjC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,YAEpB,KAAC,WAAW,KAAG,GACoB,CACtC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -48,7 +48,7 @@ const DataSpaceQuerySetupSetupPanelContent = observer((props) => {
48
48
  flowResult(queryBuilderState.initializeDataSpaceSetup()).catch(applicationStore.alertUnhandledError);
49
49
  }, [queryBuilderState, applicationStore]);
50
50
  useEffect(() => dataSpaceSearchRef.current?.focus());
51
- return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", 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
51
+ return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties" }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", inputRef: 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
52
52
  .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("div", { className: "query-builder__setup__config-group__item", children: _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: [], noMatchMessage: "No compatible entity found" }) })] })] }));
53
53
  });
54
54
  export const renderDataSpaceQuerySetupSetupPanelContent = (queryBuilderState) => (_jsx(DataSpaceQuerySetupSetupPanelContent, { queryBuilderState: queryBuilderState }));
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,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,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,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,4BAA4B,GAC3C,GACE,IACF,IACF,CACP,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 +1 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6CH,eAAO,MAAM,6BAA6B;;CAsBxC,CAAC"}
1
+ {"version":3,"file":"DataSpaceTemplateQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceTemplateQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8CH,eAAO,MAAM,6BAA6B;;CAyBxC,CAAC"}
@@ -22,6 +22,7 @@ import { DataSpaceTemplateQueryCreatorStore } from '../../stores/data-space/Data
22
22
  import { QueryEditorStoreContext } from '../QueryEditorStoreProvider.js';
23
23
  import { DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN, } from '../../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
24
24
  import { QueryEditor } from '../QueryEditor.js';
25
+ import { guaranteeNonNullable } from '@finos/legend-shared';
25
26
  const DataSpaceTemplateQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, templateQueryId }) => {
26
27
  const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
27
28
  const applicationStore = useLegendQueryApplicationStore();
@@ -31,9 +32,9 @@ const DataSpaceTemplateQueryCreatorStoreProvider = ({ children, gav, dataSpacePa
31
32
  };
32
33
  export const DataSpaceTemplateQueryCreator = observer(() => {
33
34
  const parameters = useParams();
34
- const gav = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
35
- const dataSpacePath = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH];
36
- const templateQueryId = parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID];
35
+ const gav = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]);
36
+ const dataSpacePath = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]);
37
+ const templateQueryId = guaranteeNonNullable(parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID]);
37
38
  return (_jsx(DataSpaceTemplateQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, templateQueryId: templateQueryId, children: _jsx(QueryEditor, {}) }));
38
39
  });
39
40
  //# sourceMappingURL=DataSpaceTemplateQueryCreator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceTemplateQueryCreator.js","sourceRoot":"","sources":["../../../src/components/data-space/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,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL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AAE;IACzD,MAAM,UAAU,GAAG,SAAS,EAA2C,CAAC;IACxE,MAAM,GAAG,GAAG,oBAAoB,CAC9B,UAAU,CAAC,qDAAqD,CAAC,GAAG,CAAC,CACtE,CAAC;IACF,MAAM,aAAa,GAAG,oBAAoB,CACxC,UAAU,CACR,qDAAqD,CAAC,eAAe,CACtE,CACF,CAAC;IACF,MAAM,eAAe,GAAG,oBAAoB,CAC1C,UAAU,CACR,qDAAqD,CAAC,iBAAiB,CACxE,CACF,CAAC;IAEF,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"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.5.56
1
+ /** @license @finos/legend-application-query v13.6.1
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.5.56",
3
+ "version": "13.6.1",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -46,6 +46,7 @@
46
46
  "@finos/legend-application": "workspace:*",
47
47
  "@finos/legend-art": "workspace:*",
48
48
  "@finos/legend-code-editor": "workspace:*",
49
+ "@finos/legend-data-cube": "workspace:*",
49
50
  "@finos/legend-extension-dsl-data-space": "workspace:*",
50
51
  "@finos/legend-graph": "workspace:*",
51
52
  "@finos/legend-lego": "workspace:*",
@@ -55,7 +56,7 @@
55
56
  "@finos/legend-storage": "workspace:*",
56
57
  "@testing-library/dom": "10.4.0",
57
58
  "@testing-library/react": "16.0.1",
58
- "@types/react": "18.3.9",
59
+ "@types/react": "18.3.11",
59
60
  "@types/react-dom": "18.3.0",
60
61
  "mobx": "6.13.3",
61
62
  "mobx-react-lite": "4.0.7",
@@ -67,12 +68,12 @@
67
68
  "@finos/legend-dev-utils": "workspace:*",
68
69
  "@jest/globals": "29.7.0",
69
70
  "cross-env": "7.0.3",
70
- "eslint": "8.57.1",
71
+ "eslint": "9.12.0",
71
72
  "jest": "29.7.0",
72
73
  "npm-run-all": "4.1.5",
73
74
  "rimraf": "6.0.1",
74
- "sass": "1.79.3",
75
- "typescript": "5.6.2"
75
+ "sass": "1.79.4",
76
+ "typescript": "5.6.3"
76
77
  },
77
78
  "peerDependencies": {
78
79
  "react": "^18.0.0"
@@ -0,0 +1,30 @@
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 { DepotServerClient } from '@finos/legend-server-depot';
17
+ import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
18
+ import { GraphManagerState } from '@finos/legend-graph';
19
+ import { type GeneratorFn } from '@finos/legend-shared';
20
+ import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
21
+ export declare class ExistingQueryDataCubeEditorStore {
22
+ readonly applicationStore: LegendQueryApplicationStore;
23
+ readonly depotServerClient: DepotServerClient;
24
+ readonly graphManagerState: GraphManagerState;
25
+ readonly queryId: string;
26
+ engine: QueryBuilderDataCubeEngine | undefined;
27
+ constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, queryId: string);
28
+ initialize(): GeneratorFn<void>;
29
+ }
30
+ //# sourceMappingURL=ExistingQueryDataCubeViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,qBAAa,gCAAgC;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IACvD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,0BAA0B,GAAG,SAAS,CAAC;gBAG7C,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM;IAWhB,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAiDjC"}
@@ -0,0 +1,59 @@
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 { GraphManagerState, } from '@finos/legend-graph';
17
+ import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
18
+ import { assertErrorThrown } from '@finos/legend-shared';
19
+ import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
20
+ export class ExistingQueryDataCubeEditorStore {
21
+ applicationStore;
22
+ depotServerClient;
23
+ graphManagerState;
24
+ queryId;
25
+ engine;
26
+ constructor(applicationStore, depotServerClient, queryId) {
27
+ this.applicationStore = applicationStore;
28
+ this.depotServerClient = depotServerClient;
29
+ this.graphManagerState = new GraphManagerState(applicationStore.pluginManager, applicationStore.logService);
30
+ this.queryId = queryId;
31
+ }
32
+ *initialize() {
33
+ try {
34
+ // initialize the graph manager
35
+ yield this.graphManagerState.graphManager.initialize({
36
+ env: this.applicationStore.config.env,
37
+ tabSize: DEFAULT_TAB_SIZE,
38
+ clientConfig: {
39
+ baseUrl: this.applicationStore.config.engineServerUrl,
40
+ queryBaseUrl: this.applicationStore.config.engineQueryServerUrl,
41
+ enableCompression: true,
42
+ },
43
+ }, {
44
+ tracerService: this.applicationStore.tracerService,
45
+ });
46
+ const queryInfo = (yield this.graphManagerState.graphManager.getQueryInfo(this.queryId));
47
+ const content = queryInfo.content;
48
+ const execConext = (yield this.graphManagerState.graphManager.resolveQueryInfoExecutionContext(queryInfo, () => this.depotServerClient.getVersionEntities(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId)));
49
+ const lambda = (yield this.graphManagerState.graphManager.pureCodeToLambda(content));
50
+ const engine = new QueryBuilderDataCubeEngine(lambda, execConext.mapping, execConext.runtime, this.graphManagerState);
51
+ this.engine = engine;
52
+ }
53
+ catch (error) {
54
+ assertErrorThrown(error);
55
+ this.applicationStore.notificationService.notifyError(`Unable to initialize cube with query ${this.queryId}: ${error.message}`);
56
+ }
57
+ }
58
+ }
59
+ //# sourceMappingURL=ExistingQueryDataCubeViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryD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,CAAC,YAAY,CAAC,YAAY,CACvE,IAAI,CAAC,OAAO,CACb,CAAyB,CAAC;YAC3B,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;YAClC,MAAM,UAAU,GACd,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,gCAAgC,CACzE,SAAS,EACT,GAAG,EAAE,CACH,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CACvC,SAAS,CAAC,OAAO,EACjB,SAAS,CAAC,UAAU,EACpB,SAAS,CAAC,SAAS,CACpB,CACJ,CAAqD,CAAC;YACzD,MAAM,MAAM,GACV,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,CACzD,OAAO,CACR,CAAyB,CAAC;YAC7B,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAC3C,MAAM,EACN,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,OAAO,EAClB,IAAI,CAAC,iBAAiB,CACvB,CAAC;YACF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACnD,wCAAwC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CACzE,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.5.56",
3
+ "version": "13.6.1",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,19 +43,20 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "16.0.0",
47
- "@finos/legend-art": "7.1.59",
48
- "@finos/legend-code-editor": "2.0.1",
49
- "@finos/legend-extension-dsl-data-space": "10.3.77",
50
- "@finos/legend-graph": "31.10.35",
51
- "@finos/legend-lego": "2.0.2",
52
- "@finos/legend-query-builder": "4.14.96",
53
- "@finos/legend-server-depot": "6.0.61",
54
- "@finos/legend-shared": "10.0.56",
55
- "@finos/legend-storage": "3.0.106",
46
+ "@finos/legend-application": "16.0.2",
47
+ "@finos/legend-art": "7.1.61",
48
+ "@finos/legend-code-editor": "2.0.3",
49
+ "@finos/legend-data-cube": "0.0.7",
50
+ "@finos/legend-extension-dsl-data-space": "10.3.79",
51
+ "@finos/legend-graph": "31.10.37",
52
+ "@finos/legend-lego": "2.0.4",
53
+ "@finos/legend-query-builder": "4.15.1",
54
+ "@finos/legend-server-depot": "6.0.62",
55
+ "@finos/legend-shared": "10.0.57",
56
+ "@finos/legend-storage": "3.0.107",
56
57
  "@testing-library/dom": "10.4.0",
57
58
  "@testing-library/react": "16.0.1",
58
- "@types/react": "18.3.9",
59
+ "@types/react": "18.3.11",
59
60
  "@types/react-dom": "18.3.0",
60
61
  "mobx": "6.13.3",
61
62
  "mobx-react-lite": "4.0.7",
@@ -64,15 +65,15 @@
64
65
  "serializr": "3.0.2"
65
66
  },
66
67
  "devDependencies": {
67
- "@finos/legend-dev-utils": "2.1.23",
68
+ "@finos/legend-dev-utils": "2.1.24",
68
69
  "@jest/globals": "29.7.0",
69
70
  "cross-env": "7.0.3",
70
- "eslint": "8.57.1",
71
+ "eslint": "9.12.0",
71
72
  "jest": "29.7.0",
72
73
  "npm-run-all": "4.1.5",
73
74
  "rimraf": "6.0.1",
74
- "sass": "1.79.3",
75
- "typescript": "5.6.2"
75
+ "sass": "1.79.4",
76
+ "typescript": "5.6.3"
76
77
  },
77
78
  "peerDependencies": {
78
79
  "react": "^18.0.0"
@@ -44,6 +44,7 @@ export const LEGEND_QUERY_ROUTE_PATTERN = Object.freeze({
44
44
  CREATE_FROM_MAPPING_QUERY: `/create/manual/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.MAPPING_PATH}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}`,
45
45
  CREATE_FROM_SERVICE_QUERY: `/create-from-service/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.SERVICE_PATH}`,
46
46
  EDIT_EXISTING_QUERY: `/edit/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID}`,
47
+ DATA_CUBE_EXISTING_QUERY: `/edit/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID}/cube`,
47
48
  });
48
49
 
49
50
  export enum LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN {
@@ -260,7 +260,11 @@ const CloneQueryServiceSetupContent = observer(() => {
260
260
  !projectOptions.length
261
261
  }
262
262
  isLoading={querySetupState.loadProjectsState.isInProgress}
263
- onChange={onProjectOptionChange}
263
+ onChange={(option: ProjectOption | null) => {
264
+ onProjectOptionChange(option).catch(
265
+ applicationStore.alertUnhandledError,
266
+ );
267
+ }}
264
268
  value={selectedProjectOption}
265
269
  placeholder={projectSelectorPlaceholder}
266
270
  isClearable={true}
@@ -278,7 +282,11 @@ const CloneQueryServiceSetupContent = observer(() => {
278
282
  options={versionOptions}
279
283
  disabled={!querySetupState.currentProject}
280
284
  isLoading={fetchSelectedProjectVersionsStatus.isInProgress}
281
- onChange={onVersionOptionChange}
285
+ onChange={(option: VersionOption | null) => {
286
+ onVersionOptionChange(option).catch(
287
+ applicationStore.alertUnhandledError,
288
+ );
289
+ }}
282
290
  value={selectedVersionOption}
283
291
  placeholder={
284
292
  fetchSelectedProjectVersionsStatus.isInProgress
@@ -109,28 +109,28 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
109
109
  {
110
110
  key: 'clone-service-query-setup-application-page',
111
111
  addressPatterns: [LEGEND_QUERY_ROUTE_PATTERN.CLONE_SERVICE_QUERY_SETUP],
112
- renderer: CloneQueryServiceSetup,
112
+ renderer: () => <CloneQueryServiceSetup />,
113
113
  },
114
114
  {
115
115
  key: 'query-productionizer-setup-application-page',
116
116
  addressPatterns: [
117
117
  LEGEND_QUERY_ROUTE_PATTERN.QUERY_PRODUCTIONIZER_SETUP,
118
118
  ],
119
- renderer: QueryProductionizerSetup,
119
+ renderer: () => <QueryProductionizerSetup />,
120
120
  },
121
121
  {
122
122
  key: 'update-existing-service-query-setup-application-page',
123
123
  addressPatterns: [
124
124
  LEGEND_QUERY_ROUTE_PATTERN.UPDATE_EXISTING_SERVICE_QUERY_SETUP,
125
125
  ],
126
- renderer: UpdateExistingServiceQuerySetup,
126
+ renderer: () => <UpdateExistingServiceQuerySetup />,
127
127
  },
128
128
  {
129
129
  key: 'load-project-service-query-setup-application-page',
130
130
  addressPatterns: [
131
131
  LEGEND_QUERY_ROUTE_PATTERN.LOAD_PROJECT_SERVICE_QUERY_SETUP,
132
132
  ],
133
- renderer: LoadProjectServiceQuerySetup,
133
+ renderer: () => <LoadProjectServiceQuerySetup />,
134
134
  },
135
135
  ];
136
136
  }