@finos/legend-application-data-cube 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/LegendDataCubeNavigation.d.ts +2 -0
- package/lib/__lib__/LegendDataCubeNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendDataCubeNavigation.js +2 -0
- package/lib/__lib__/LegendDataCubeNavigation.js.map +1 -1
- package/lib/application/LegendDataCubeApplicationConfig.d.ts +4 -0
- package/lib/application/LegendDataCubeApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendDataCubeApplicationConfig.js +5 -0
- package/lib/application/LegendDataCubeApplicationConfig.js.map +1 -1
- package/lib/application/__test-utils__/LegendDataCubeApplicationTestUtils.d.ts +18 -0
- package/lib/application/__test-utils__/LegendDataCubeApplicationTestUtils.d.ts.map +1 -0
- package/lib/application/__test-utils__/LegendDataCubeApplicationTestUtils.js +48 -0
- package/lib/application/__test-utils__/LegendDataCubeApplicationTestUtils.js.map +1 -0
- package/lib/components/LegendDataCubeBlockingWindow.d.ts +2 -1
- package/lib/components/LegendDataCubeBlockingWindow.d.ts.map +1 -1
- package/lib/components/LegendDataCubeBlockingWindow.js +8 -3
- package/lib/components/LegendDataCubeBlockingWindow.js.map +1 -1
- package/lib/components/__test-utils__/LegendDataCubeStoreTestUtils.d.ts +42 -0
- package/lib/components/__test-utils__/LegendDataCubeStoreTestUtils.d.ts.map +1 -0
- package/lib/components/__test-utils__/LegendDataCubeStoreTestUtils.js +104 -0
- package/lib/components/__test-utils__/LegendDataCubeStoreTestUtils.js.map +1 -0
- package/lib/components/builder/LegendDataCubeBuilder.d.ts +5 -0
- package/lib/components/builder/LegendDataCubeBuilder.d.ts.map +1 -1
- package/lib/components/builder/LegendDataCubeBuilder.js +26 -5
- package/lib/components/builder/LegendDataCubeBuilder.js.map +1 -1
- package/lib/components/builder/LegendDataCubeBuilderStoreProvider.d.ts.map +1 -1
- package/lib/components/builder/LegendDataCubeBuilderStoreProvider.js +1 -1
- package/lib/components/builder/LegendDataCubeBuilderStoreProvider.js.map +1 -1
- package/lib/components/builder/LegendDataCubePartialSourceLoader.d.ts +19 -0
- package/lib/components/builder/LegendDataCubePartialSourceLoader.d.ts.map +1 -0
- package/lib/components/builder/LegendDataCubePartialSourceLoader.js +50 -0
- package/lib/components/builder/LegendDataCubePartialSourceLoader.js.map +1 -0
- package/lib/components/builder/LegendDataCubeSourceViewer.d.ts.map +1 -1
- package/lib/components/builder/LegendDataCubeSourceViewer.js +61 -1
- package/lib/components/builder/LegendDataCubeSourceViewer.js.map +1 -1
- package/lib/components/builder/source/LocalFileDataCubeSourceBuilder.d.ts.map +1 -1
- package/lib/components/builder/source/LocalFileDataCubeSourceBuilder.js +1 -2
- package/lib/components/builder/source/LocalFileDataCubeSourceBuilder.js.map +1 -1
- package/lib/components/builder/source/loader/LocalFileDataCubePartialSourceLoader.d.ts +22 -0
- package/lib/components/builder/source/loader/LocalFileDataCubePartialSourceLoader.d.ts.map +1 -0
- package/lib/components/builder/source/loader/LocalFileDataCubePartialSourceLoader.js +28 -0
- package/lib/components/builder/source/loader/LocalFileDataCubePartialSourceLoader.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -1
- package/lib/stores/LegendDataCubeBaseStore.d.ts +2 -1
- package/lib/stores/LegendDataCubeBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendDataCubeBaseStore.js +6 -3
- package/lib/stores/LegendDataCubeBaseStore.js.map +1 -1
- package/lib/stores/LegendDataCubeDataCubeEngine.d.ts +6 -3
- package/lib/stores/LegendDataCubeDataCubeEngine.d.ts.map +1 -1
- package/lib/stores/LegendDataCubeDataCubeEngine.js +127 -106
- package/lib/stores/LegendDataCubeDataCubeEngine.js.map +1 -1
- package/lib/stores/LegendDataCubeDuckDBEngine.d.ts +11 -4
- package/lib/stores/LegendDataCubeDuckDBEngine.d.ts.map +1 -1
- package/lib/stores/LegendDataCubeDuckDBEngine.js +83 -16
- package/lib/stores/LegendDataCubeDuckDBEngine.js.map +1 -1
- package/lib/stores/builder/LegendDataCubeBuilderStore.d.ts +4 -0
- package/lib/stores/builder/LegendDataCubeBuilderStore.d.ts.map +1 -1
- package/lib/stores/builder/LegendDataCubeBuilderStore.js +58 -17
- package/lib/stores/builder/LegendDataCubeBuilderStore.js.map +1 -1
- package/lib/stores/builder/LegendDataCubeLoaderState.d.ts +11 -2
- package/lib/stores/builder/LegendDataCubeLoaderState.d.ts.map +1 -1
- package/lib/stores/builder/LegendDataCubeLoaderState.js +28 -1
- package/lib/stores/builder/LegendDataCubeLoaderState.js.map +1 -1
- package/lib/stores/builder/LegendDataCubeSourceLoaderState.d.ts +44 -0
- package/lib/stores/builder/LegendDataCubeSourceLoaderState.d.ts.map +1 -0
- package/lib/stores/builder/LegendDataCubeSourceLoaderState.js +101 -0
- package/lib/stores/builder/LegendDataCubeSourceLoaderState.js.map +1 -0
- package/lib/stores/builder/source/LocalFileDataCubeSourceBuilderState.d.ts +3 -2
- package/lib/stores/builder/source/LocalFileDataCubeSourceBuilderState.d.ts.map +1 -1
- package/lib/stores/builder/source/LocalFileDataCubeSourceBuilderState.js +7 -10
- package/lib/stores/builder/source/LocalFileDataCubeSourceBuilderState.js.map +1 -1
- package/lib/stores/builder/source/loader/LegendDataCubePartialSourceLoaderState.d.ts +29 -0
- package/lib/stores/builder/source/loader/LegendDataCubePartialSourceLoaderState.d.ts.map +1 -0
- package/lib/stores/builder/source/loader/LegendDataCubePartialSourceLoaderState.js +25 -0
- package/lib/stores/builder/source/loader/LegendDataCubePartialSourceLoaderState.js.map +1 -0
- package/lib/stores/builder/source/loader/LocalFileDataCubePartialSourceLoaderState.d.ts +43 -0
- package/lib/stores/builder/source/loader/LocalFileDataCubePartialSourceLoaderState.d.ts.map +1 -0
- package/lib/stores/builder/source/loader/LocalFileDataCubePartialSourceLoaderState.js +142 -0
- package/lib/stores/builder/source/loader/LocalFileDataCubePartialSourceLoaderState.js.map +1 -0
- package/lib/stores/model/LegendQueryDataCubeSource.d.ts +2 -1
- package/lib/stores/model/LegendQueryDataCubeSource.d.ts.map +1 -1
- package/lib/stores/model/LegendQueryDataCubeSource.js +1 -0
- package/lib/stores/model/LegendQueryDataCubeSource.js.map +1 -1
- package/lib/stores/model/LocalFileDataCubeSource.d.ts +3 -8
- package/lib/stores/model/LocalFileDataCubeSource.d.ts.map +1 -1
- package/lib/stores/model/LocalFileDataCubeSource.js +5 -15
- package/lib/stores/model/LocalFileDataCubeSource.js.map +1 -1
- package/package.json +13 -11
- package/src/__lib__/LegendDataCubeNavigation.ts +21 -0
- package/src/application/LegendDataCubeApplicationConfig.ts +10 -0
- package/src/application/__test-utils__/LegendDataCubeApplicationTestUtils.ts +52 -0
- package/src/components/LegendDataCubeBlockingWindow.tsx +8 -2
- package/src/components/__test-utils__/LegendDataCubeStoreTestUtils.tsx +231 -0
- package/src/components/builder/LegendDataCubeBuilder.tsx +51 -6
- package/src/components/builder/LegendDataCubeBuilderStoreProvider.tsx +3 -0
- package/src/components/builder/LegendDataCubePartialSourceLoader.tsx +108 -0
- package/src/components/builder/LegendDataCubeSourceViewer.tsx +171 -1
- package/src/components/builder/source/LocalFileDataCubeSourceBuilder.tsx +1 -2
- package/src/components/builder/source/loader/LocalFileDataCubePartialSourceLoader.tsx +60 -0
- package/src/stores/LegendDataCubeBaseStore.ts +13 -6
- package/src/stores/LegendDataCubeDataCubeEngine.ts +161 -120
- package/src/stores/LegendDataCubeDuckDBEngine.ts +101 -17
- package/src/stores/builder/LegendDataCubeBuilderStore.tsx +96 -24
- package/src/stores/builder/LegendDataCubeLoaderState.tsx +44 -1
- package/src/stores/builder/LegendDataCubeSourceLoaderState.tsx +145 -0
- package/src/stores/builder/source/LocalFileDataCubeSourceBuilderState.ts +9 -14
- package/src/stores/builder/source/loader/LegendDataCubePartialSourceLoaderState.ts +41 -0
- package/src/stores/builder/source/loader/LocalFileDataCubePartialSourceLoaderState.ts +217 -0
- package/src/stores/model/LegendQueryDataCubeSource.ts +2 -0
- package/src/stores/model/LocalFileDataCubeSource.ts +6 -15
- package/tsconfig.json +8 -1
|
@@ -28,4 +28,6 @@ export declare const generateBuilderRoute: (dataCubeId: string | null) => string
|
|
|
28
28
|
* @external_application_navigation This depends on Legend Query routing and is hardcoded so it's potentially brittle
|
|
29
29
|
*/
|
|
30
30
|
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateQueryViewUrl: (queryApplicationUrl: string, queryId: string) => string;
|
|
31
|
+
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCViewUrl: (studioApplicationUrl: string, projectId: string, versionId: string, element: string | undefined) => string;
|
|
32
|
+
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateStudioViewUrl: (studioApplicationUrl: string, groupId: string, artifactId: string, versionId: string, element: string | undefined) => string;
|
|
31
33
|
//# sourceMappingURL=LegendDataCubeNavigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendDataCubeNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,oBAAY,oCAAoC;IAC9C,YAAY,eAAe;IAC3B,WAAW,eAAe;CAC3B;AAED,eAAO,MAAM,8BAA8B;;EAEzC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAAgB,MAAM,GAAG,IAAI,KAAG,MAIhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qDAAqD,wBAC3C,MAAM,WAClB,MAAM,WAC4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"LegendDataCubeNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendDataCubeNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,oBAAY,oCAAoC;IAC9C,YAAY,eAAe;IAC3B,WAAW,eAAe;CAC3B;AAED,eAAO,MAAM,8BAA8B;;EAEzC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAAgB,MAAM,GAAG,IAAI,KAAG,MAIhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qDAAqD,wBAC3C,MAAM,WAClB,MAAM,WAC4B,CAAC;AAE9C,eAAO,MAAM,0DAA0D,yBAC/C,MAAM,aACjB,MAAM,aACN,MAAM,WACR,MAAM,GAAG,SAAS,WAIzB,CAAC;AAEL,eAAO,MAAM,sDAAsD,yBAC3C,MAAM,WACnB,MAAM,cACH,MAAM,aACP,MAAM,WACR,MAAM,GAAG,SAAS,WAIzB,CAAC"}
|
|
@@ -31,4 +31,6 @@ export const generateBuilderRoute = (dataCubeId) => {
|
|
|
31
31
|
* @external_application_navigation This depends on Legend Query routing and is hardcoded so it's potentially brittle
|
|
32
32
|
*/
|
|
33
33
|
export const EXTERNAL_APPLICATION_NAVIGATION__generateQueryViewUrl = (queryApplicationUrl, queryId) => `${queryApplicationUrl}/edit/${queryId}`;
|
|
34
|
+
export const EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCViewUrl = (studioApplicationUrl, projectId, versionId, element) => `${studioApplicationUrl}/view/${projectId}/version/${versionId}${element ? `/entity/${element}` : ''}`;
|
|
35
|
+
export const EXTERNAL_APPLICATION_NAVIGATION__generateStudioViewUrl = (studioApplicationUrl, groupId, artifactId, versionId, element) => `${studioApplicationUrl}/view/archive/${groupId}:${artifactId}:${versionId}${element ? `/entity/${element}` : ''}`;
|
|
34
36
|
//# sourceMappingURL=LegendDataCubeNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendDataCubeNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,MAAM,CAAN,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC9C,mEAA2B,CAAA;IAC3B,kEAA0B,CAAA;AAC5B,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,QAG/C;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,KAAK,oCAAoC,CAAC,YAAY,GAAG;CACnE,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,UAAyB,EAAU,EAAE;IACxE,OAAO,YAAY,CAAC,8BAA8B,CAAC,OAAO,EAAE;QAC1D,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE,UAAU;KAChE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qDAAqD,GAAG,CACnE,mBAA2B,EAC3B,OAAe,EACf,EAAE,CAAC,GAAG,mBAAmB,SAAS,OAAO,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"LegendDataCubeNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendDataCubeNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,MAAM,CAAN,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC9C,mEAA2B,CAAA;IAC3B,kEAA0B,CAAA;AAC5B,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,QAG/C;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,KAAK,oCAAoC,CAAC,YAAY,GAAG;CACnE,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,UAAyB,EAAU,EAAE;IACxE,OAAO,YAAY,CAAC,8BAA8B,CAAC,OAAO,EAAE;QAC1D,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE,UAAU;KAChE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qDAAqD,GAAG,CACnE,mBAA2B,EAC3B,OAAe,EACf,EAAE,CAAC,GAAG,mBAAmB,SAAS,OAAO,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,0DAA0D,GAAG,CACxE,oBAA4B,EAC5B,SAAiB,EACjB,SAAiB,EACjB,OAA2B,EAC3B,EAAE,CACF,GAAG,oBAAoB,SAAS,SAAS,YAAY,SAAS,GAC5D,OAAO,CAAC,CAAC,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC,CAAC,EACnC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,sDAAsD,GAAG,CACpE,oBAA4B,EAC5B,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,OAA2B,EAC3B,EAAE,CACF,GAAG,oBAAoB,iBAAiB,OAAO,IAAI,UAAU,IAAI,SAAS,GACxE,OAAO,CAAC,CAAC,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC,CAAC,EACnC,EAAE,CAAC"}
|
|
@@ -25,12 +25,16 @@ export interface LegendDataCubeApplicationConfigurationData extends LegendApplic
|
|
|
25
25
|
query?: {
|
|
26
26
|
url: string;
|
|
27
27
|
};
|
|
28
|
+
studio?: {
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
28
31
|
}
|
|
29
32
|
export declare class LegendDataCubeApplicationConfig extends LegendApplicationConfig {
|
|
30
33
|
readonly engineServerUrl: string;
|
|
31
34
|
readonly depotServerUrl: string;
|
|
32
35
|
readonly engineQueryServerUrl?: string | undefined;
|
|
33
36
|
readonly queryApplicationUrl?: string | undefined;
|
|
37
|
+
readonly studioApplicationUrl?: string | undefined;
|
|
34
38
|
constructor(input: LegendApplicationConfigurationInput<LegendDataCubeApplicationConfigurationData>);
|
|
35
39
|
getDefaultApplicationStorageKey(): string;
|
|
36
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendDataCubeApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACzC,MAAM,2BAA2B,CAAC;AAMnC,MAAM,WAAW,0CACf,SAAQ,kCAAkC;IAC1C,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,qBAAa,+BAAgC,SAAQ,uBAAuB;IAC1E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendDataCubeApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendDataCubeApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACzC,MAAM,2BAA2B,CAAC;AAMnC,MAAM,WAAW,0CACf,SAAQ,kCAAkC;IAC1C,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,CAAC,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,qBAAa,+BAAgC,SAAQ,uBAAuB;IAC1E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGjD,KAAK,EAAE,mCAAmC,CAAC,0CAA0C,CAAC;IA8CxF,+BAA+B,IAAI,MAAM;CAG1C"}
|
|
@@ -20,6 +20,7 @@ export class LegendDataCubeApplicationConfig extends LegendApplicationConfig {
|
|
|
20
20
|
depotServerUrl;
|
|
21
21
|
engineQueryServerUrl;
|
|
22
22
|
queryApplicationUrl;
|
|
23
|
+
studioApplicationUrl;
|
|
23
24
|
constructor(input) {
|
|
24
25
|
super(input);
|
|
25
26
|
// engine
|
|
@@ -35,6 +36,10 @@ export class LegendDataCubeApplicationConfig extends LegendApplicationConfig {
|
|
|
35
36
|
if (input.configData.query?.url) {
|
|
36
37
|
this.queryApplicationUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.query.url);
|
|
37
38
|
}
|
|
39
|
+
// stduio
|
|
40
|
+
if (input.configData.studio?.url) {
|
|
41
|
+
this.studioApplicationUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.studio.url);
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
getDefaultApplicationStorageKey() {
|
|
40
45
|
return 'legend-data-cube';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendDataCubeApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendDataCubeApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendDataCubeApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAgB9B,MAAM,OAAO,+BAAgC,SAAQ,uBAAuB;IACjE,eAAe,CAAS;IACxB,cAAc,CAAS;IACvB,oBAAoB,CAAsB;IAC1C,mBAAmB,CAAsB;IACzC,oBAAoB,CAAsB;IAEnD,YACE,KAAsF;QAEtF,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,SAAS;QACT,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,MAAM,EACvB,wDAAwD,CACzD,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,uBAAuB,CAAC,kBAAkB,CAC/D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAC3B,qEAAqE,CACtE,CACF,CAAC;QACF,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ;YAC1D,CAAC,CAAC,uBAAuB,CAAC,kBAAkB,CACxC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CACjC;YACH,CAAC,CAAC,SAAS,CAAC;QAEd,QAAQ;QACR,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,KAAK,EACtB,uDAAuD,CACxD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,uBAAuB,CAAC,kBAAkB,CAC9D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAC1B,oEAAoE,CACrE,CACF,CAAC;QAEF,QAAQ;QACR,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;YAChC,IAAI,CAAC,mBAAmB,GAAG,uBAAuB,CAAC,kBAAkB,CACnE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAC3B,CAAC;QACJ,CAAC;QACD,SAAS;QACT,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;YACjC,IAAI,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,kBAAkB,CACpE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAC5B,CAAC;QACJ,CAAC;IACH,CAAC;IACD,+BAA+B;QAC7B,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { LegendDataCubeApplicationConfig } from '../LegendDataCubeApplicationConfig.js';
|
|
17
|
+
export declare const TEST__getTestLegendDataCubeApplicationConfig: (extraConfigData?: {}) => LegendDataCubeApplicationConfig;
|
|
18
|
+
//# sourceMappingURL=LegendDataCubeApplicationTestUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendDataCubeApplicationTestUtils.d.ts","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendDataCubeApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAsBxF,eAAO,MAAM,4CAA4C,4BAEtD,+BAUF,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { TEST__getApplicationVersionData } from '@finos/legend-application/test';
|
|
17
|
+
import { LegendDataCubeApplicationConfig } from '../LegendDataCubeApplicationConfig.js';
|
|
18
|
+
const TEST_DATA__appConfig = {
|
|
19
|
+
appName: 'datacube',
|
|
20
|
+
env: 'test-env',
|
|
21
|
+
engine: {
|
|
22
|
+
url: 'https://testEngineUrl',
|
|
23
|
+
queryUrl: 'https://testEngineQueryUrl',
|
|
24
|
+
},
|
|
25
|
+
depot: {
|
|
26
|
+
url: 'https://testMetadataUrl',
|
|
27
|
+
},
|
|
28
|
+
studio: {
|
|
29
|
+
url: 'https://testStudioUrl',
|
|
30
|
+
instances: [],
|
|
31
|
+
},
|
|
32
|
+
query: {
|
|
33
|
+
url: 'https://testStudioUrl',
|
|
34
|
+
instances: [],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const TEST__getTestLegendDataCubeApplicationConfig = (extraConfigData = {}) => {
|
|
38
|
+
const config = new LegendDataCubeApplicationConfig({
|
|
39
|
+
configData: {
|
|
40
|
+
...TEST_DATA__appConfig,
|
|
41
|
+
...extraConfigData,
|
|
42
|
+
},
|
|
43
|
+
versionData: TEST__getApplicationVersionData(),
|
|
44
|
+
baseAddress: '/datacube/',
|
|
45
|
+
});
|
|
46
|
+
return config;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=LegendDataCubeApplicationTestUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendDataCubeApplicationTestUtils.js","sourceRoot":"","sources":["../../../src/application/__test-utils__/LegendDataCubeApplicationTestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAExF,MAAM,oBAAoB,GAAG;IAC3B,OAAO,EAAE,UAAU;IACnB,GAAG,EAAE,UAAU;IACf,MAAM,EAAE;QACN,GAAG,EAAE,uBAAuB;QAC5B,QAAQ,EAAE,4BAA4B;KACvC;IACD,KAAK,EAAE;QACL,GAAG,EAAE,yBAAyB;KAC/B;IACD,MAAM,EAAE;QACN,GAAG,EAAE,uBAAuB;QAC5B,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,GAAG,EAAE,uBAAuB;QAC5B,SAAS,EAAE,EAAE;KACd;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,eAAe,GAAG,EAAE,EACa,EAAE;IACnC,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC;QACjD,UAAU,EAAE;YACV,GAAG,oBAAoB;YACvB,GAAG,eAAe;SACnB;QACD,WAAW,EAAE,+BAA+B,EAAE;QAC9C,WAAW,EAAE,YAAY;KAC1B,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -22,7 +22,8 @@ export declare const LegendDataCubeBlockingWindow: ((props: {
|
|
|
22
22
|
export declare class LegendDataCubeBlockingWindowState {
|
|
23
23
|
isOpen: boolean;
|
|
24
24
|
readonly configuration: LayoutConfiguration;
|
|
25
|
-
|
|
25
|
+
readonly onClose: (() => void) | undefined;
|
|
26
|
+
constructor(title: string, contentRenderer: (config: LayoutConfiguration) => React.ReactNode, windowConfiguration?: WindowConfiguration | undefined, closeModal?: (() => void) | undefined);
|
|
26
27
|
open(): void;
|
|
27
28
|
close(): void;
|
|
28
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBlockingWindow.d.ts","sourceRoot":"","sources":["../../src/components/LegendDataCubeBlockingWindow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,mBAAmB,EACnB,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AAKjC,eAAO,MAAM,4BAA4B,WAC/B;IAAE,WAAW,EAAE,iCAAiC,CAAA;CAAE;;
|
|
1
|
+
{"version":3,"file":"LegendDataCubeBlockingWindow.d.ts","sourceRoot":"","sources":["../../src/components/LegendDataCubeBlockingWindow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,mBAAmB,EACnB,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AAKjC,eAAO,MAAM,4BAA4B,WAC/B;IAAE,WAAW,EAAE,iCAAiC,CAAA;CAAE;;CAgE3D,CAAC;AAEF,qBAAa,iCAAiC;IAC5C,MAAM,UAAS;IACf,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;gBAGzC,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS,EACjE,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,SAAS,EACrD,UAAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;IAgBvC,IAAI;IAIJ,KAAK;CAGN"}
|
|
@@ -21,6 +21,9 @@ import { observer } from 'mobx-react-lite';
|
|
|
21
21
|
import { useRef } from 'react';
|
|
22
22
|
export const LegendDataCubeBlockingWindow = observer((props) => {
|
|
23
23
|
const { windowState } = props;
|
|
24
|
+
const closeModal = !windowState.onClose
|
|
25
|
+
? () => windowState.close()
|
|
26
|
+
: windowState.onClose;
|
|
24
27
|
const ref = useRef(null);
|
|
25
28
|
// set the width and height of the dialog to make sure content overflow works properly
|
|
26
29
|
const handleEnter = () => {
|
|
@@ -33,7 +36,7 @@ export const LegendDataCubeBlockingWindow = observer((props) => {
|
|
|
33
36
|
if (!windowState.isOpen) {
|
|
34
37
|
return null;
|
|
35
38
|
}
|
|
36
|
-
return (_jsx(Dialog, { open: windowState.isOpen, onClose:
|
|
39
|
+
return (_jsx(Dialog, { open: windowState.isOpen, onClose: closeModal, slotProps: {
|
|
37
40
|
transition: {
|
|
38
41
|
onEnter: handleEnter,
|
|
39
42
|
},
|
|
@@ -48,12 +51,13 @@ export const LegendDataCubeBlockingWindow = observer((props) => {
|
|
|
48
51
|
}, classes: {
|
|
49
52
|
root: 'data-cube h-full w-full flex items-center justify-center',
|
|
50
53
|
paper: 'min-h-10 min-w-40 rounded-none shadow-md',
|
|
51
|
-
}, children: _jsxs("div", { className: "border border-neutral-400 bg-neutral-200 shadow-xl", ref: ref, children: [_jsxs("div", { className: "flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white", children: [_jsx("div", { className: "px-2", children: windowState.configuration.title }), _jsx("button", { className: "flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white", onClick:
|
|
54
|
+
}, children: _jsxs("div", { className: "border border-neutral-400 bg-neutral-200 shadow-xl", ref: ref, children: [_jsxs("div", { className: "flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white", children: [_jsx("div", { className: "px-2", children: windowState.configuration.title }), _jsx("button", { className: "flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white", onClick: closeModal, children: _jsx(DataCubeIcon.X, {}) })] }), _jsx("div", { className: "h-[calc(100%_-_24px)] w-full overflow-auto", children: windowState.configuration.contentRenderer(windowState.configuration) })] }) }));
|
|
52
55
|
});
|
|
53
56
|
export class LegendDataCubeBlockingWindowState {
|
|
54
57
|
isOpen = false;
|
|
55
58
|
configuration;
|
|
56
|
-
|
|
59
|
+
onClose;
|
|
60
|
+
constructor(title, contentRenderer, windowConfiguration, closeModal) {
|
|
57
61
|
makeObservable(this, {
|
|
58
62
|
isOpen: observable,
|
|
59
63
|
open: action,
|
|
@@ -64,6 +68,7 @@ export class LegendDataCubeBlockingWindowState {
|
|
|
64
68
|
if (windowConfiguration) {
|
|
65
69
|
this.configuration.window = windowConfiguration;
|
|
66
70
|
}
|
|
71
|
+
this.onClose = closeModal;
|
|
67
72
|
}
|
|
68
73
|
open() {
|
|
69
74
|
this.isOpen = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBlockingWindow.js","sourceRoot":"","sources":["../../src/components/LegendDataCubeBlockingWindow.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GAEpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,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-0,0 +1,42 @@
|
|
|
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 RenderResult } from '@testing-library/react';
|
|
17
|
+
import { type AbstractPlugin, type AbstractPreset, type PlainObject } from '@finos/legend-shared';
|
|
18
|
+
import { LegendDataCubePluginManager } from '../../application/LegendDataCubePluginManager.js';
|
|
19
|
+
import { type LegendDataCubeBuilderState, LegendDataCubeBuilderStore } from '../../stores/builder/LegendDataCubeBuilderStore.js';
|
|
20
|
+
import { type LegendDataCubeApplicationStore, LegendDataCubeBaseStore } from '../../stores/LegendDataCubeBaseStore.js';
|
|
21
|
+
import { type PersistentDataCube, type V1_Query } from '@finos/legend-graph';
|
|
22
|
+
import type { Entity } from '@finos/legend-storage';
|
|
23
|
+
export declare const TEST__provideMockedLegendDataCubeBaseStore: (customization?: {
|
|
24
|
+
mock?: LegendDataCubeBaseStore | undefined;
|
|
25
|
+
applicationStore?: LegendDataCubeApplicationStore | undefined;
|
|
26
|
+
pluginManager?: LegendDataCubePluginManager | undefined;
|
|
27
|
+
extraPlugins?: AbstractPlugin[] | undefined;
|
|
28
|
+
extraPresets?: AbstractPreset[] | undefined;
|
|
29
|
+
}) => Promise<LegendDataCubeBaseStore>;
|
|
30
|
+
export declare const TEST__provideMockedLegendDataCubeBuilderStore: (customization?: {
|
|
31
|
+
mock?: LegendDataCubeBuilderStore;
|
|
32
|
+
mockBaseStore?: LegendDataCubeBaseStore;
|
|
33
|
+
applicationStore?: LegendDataCubeApplicationStore;
|
|
34
|
+
pluginManager?: LegendDataCubePluginManager;
|
|
35
|
+
extraPlugins?: AbstractPlugin[];
|
|
36
|
+
extraPresets?: AbstractPreset[];
|
|
37
|
+
}) => Promise<LegendDataCubeBuilderStore>;
|
|
38
|
+
export declare const TEST__setUpDataCubeBuilder: (MOCK__builderStore: LegendDataCubeBuilderStore, mockDataCube?: PersistentDataCube, mockQuery?: V1_Query, mockEntities?: PlainObject<Entity>[]) => Promise<{
|
|
39
|
+
renderResult: RenderResult;
|
|
40
|
+
legendDataCubeBuilderState: LegendDataCubeBuilderState | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
//# sourceMappingURL=LegendDataCubeStoreTestUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendDataCubeStoreTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendDataCubeStoreTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAG/F,OAAO,EACL,KAAK,0BAA0B,EAC/B,0BAA0B,EAC3B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,KAAK,8BAA8B,EACnC,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AAQjD,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,QAAQ,EAOd,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,0CAA0C,mBAC9B;IACrB,IAAI,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAC3C,gBAAgB,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC9D,aAAa,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACxD,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;IAC5C,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;CAC7C,KAAG,OAAO,CAAC,uBAAuB,CA8BlC,CAAC;AAEJ,eAAO,MAAM,6CAA6C,mBACjC;IACrB,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,gBAAgB,CAAC,EAAE,8BAA8B,CAAC;IAClD,aAAa,CAAC,EAAE,2BAA2B,CAAC;IAC5C,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;CACjC,KAAG,OAAO,CAAC,0BAA0B,CAmBrC,CAAC;AAEJ,eAAO,MAAM,0BAA0B,uBACjB,0BAA0B,iBAC/B,kBAAkB,cACrB,QAAQ,iBACL,WAAW,CAAC,MAAM,CAAC,EAAE,KACnC,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,0BAA0B,EAAE,0BAA0B,GAAG,SAAS,CAAC;CACpE,CAwFA,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { render, waitFor } from '@testing-library/react';
|
|
18
|
+
import {} from '@finos/legend-shared';
|
|
19
|
+
import { createMock, createSpy } from '@finos/legend-shared/test';
|
|
20
|
+
import { ApplicationStore, ApplicationStoreProvider, } from '@finos/legend-application';
|
|
21
|
+
import { LegendDataCubePluginManager } from '../../application/LegendDataCubePluginManager.js';
|
|
22
|
+
import { Core_LegendDataCubeApplicationPlugin } from '../../application/Core_LegendDataCubeApplicationPlugin.js';
|
|
23
|
+
import { TEST__getTestLegendDataCubeApplicationConfig } from '../../application/__test-utils__/LegendDataCubeApplicationTestUtils.js';
|
|
24
|
+
import { LegendDataCubeBuilderStore, } from '../../stores/builder/LegendDataCubeBuilderStore.js';
|
|
25
|
+
import { LegendDataCubeBaseStore, } from '../../stores/LegendDataCubeBaseStore.js';
|
|
26
|
+
import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
|
|
27
|
+
import { LegendDataCubeFrameworkProvider } from '../LegendDataCubeFrameworkProvider.js';
|
|
28
|
+
import { Route, Routes } from '@finos/legend-application/browser';
|
|
29
|
+
import { LEGEND_DATA_CUBE_ROUTE_PATTERN } from '../../__lib__/LegendDataCubeNavigation.js';
|
|
30
|
+
import { LegendDataCubeBuilder } from '../builder/LegendDataCubeBuilder.js';
|
|
31
|
+
import { LEGEND_DATACUBE_TEST_ID } from '@finos/legend-data-cube';
|
|
32
|
+
import { Core_LegendDataCube_LegendApplicationPlugin } from '../../application/Core_LegendDataCube_LegendApplicationPlugin.js';
|
|
33
|
+
import { V1_entitiesToPureModelContextData, V1_ExecuteInput, V1_PureModelContextData, V1_serializePureModelContext, } from '@finos/legend-graph';
|
|
34
|
+
import { DSL_DataSpace_GraphManagerPreset } from '@finos/legend-extension-dsl-data-space/graph';
|
|
35
|
+
import { ENGINE_TEST_SUPPORT__execute, ENGINE_TEST_SUPPORT__getLambdaRelationType, ENGINE_TEST_SUPPORT__grammarToJSON_lambda, ENGINE_TEST_SUPPORT__grammarToJSON_valueSpecification, ENGINE_TEST_SUPPORT__JSONToGrammar_valueSpecification, } from '@finos/legend-graph/test';
|
|
36
|
+
export const TEST__provideMockedLegendDataCubeBaseStore = async (customization) => {
|
|
37
|
+
const pluginManager = customization?.pluginManager ?? LegendDataCubePluginManager.create();
|
|
38
|
+
pluginManager
|
|
39
|
+
.usePlugins([
|
|
40
|
+
new Core_LegendDataCube_LegendApplicationPlugin(),
|
|
41
|
+
new Core_LegendDataCubeApplicationPlugin(),
|
|
42
|
+
...(customization?.extraPlugins ?? []),
|
|
43
|
+
])
|
|
44
|
+
.usePresets([
|
|
45
|
+
new DSL_DataSpace_GraphManagerPreset(),
|
|
46
|
+
...(customization?.extraPresets ?? []),
|
|
47
|
+
])
|
|
48
|
+
.install();
|
|
49
|
+
const applicationStore = customization?.applicationStore ??
|
|
50
|
+
new ApplicationStore(TEST__getTestLegendDataCubeApplicationConfig(), pluginManager);
|
|
51
|
+
const value = customization?.mock ?? new LegendDataCubeBaseStore(applicationStore);
|
|
52
|
+
await value.initialize();
|
|
53
|
+
const MOCK__LegendDataCubeBaseStoreProvider = require('../LegendDataCubeFrameworkProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-require-imports
|
|
54
|
+
MOCK__LegendDataCubeBaseStoreProvider.useLegendDataCubeBaseStore =
|
|
55
|
+
createMock();
|
|
56
|
+
MOCK__LegendDataCubeBaseStoreProvider.useLegendDataCubeBaseStore.mockReturnValue(value);
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
export const TEST__provideMockedLegendDataCubeBuilderStore = async (customization) => {
|
|
60
|
+
const value = customization?.mock ??
|
|
61
|
+
new LegendDataCubeBuilderStore(await TEST__provideMockedLegendDataCubeBaseStore({
|
|
62
|
+
mock: customization?.mockBaseStore,
|
|
63
|
+
applicationStore: customization?.applicationStore,
|
|
64
|
+
pluginManager: customization?.pluginManager,
|
|
65
|
+
extraPlugins: customization?.extraPlugins,
|
|
66
|
+
extraPresets: customization?.extraPresets,
|
|
67
|
+
}));
|
|
68
|
+
const MOCK__LegendDataCubeBuilderStoreProvider = require('../builder/LegendDataCubeBuilderStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-require-imports
|
|
69
|
+
MOCK__LegendDataCubeBuilderStoreProvider.useLegendDataCubeBuilderStore =
|
|
70
|
+
createMock();
|
|
71
|
+
MOCK__LegendDataCubeBuilderStoreProvider.useLegendDataCubeBuilderStore.mockReturnValue(value);
|
|
72
|
+
return value;
|
|
73
|
+
};
|
|
74
|
+
export const TEST__setUpDataCubeBuilder = async (MOCK__builderStore, mockDataCube, mockQuery, mockEntities) => {
|
|
75
|
+
if (mockDataCube) {
|
|
76
|
+
createSpy(MOCK__builderStore.graphManager, 'getDataCube').mockResolvedValue(mockDataCube);
|
|
77
|
+
}
|
|
78
|
+
if (mockQuery) {
|
|
79
|
+
createSpy(MOCK__builderStore.graphManager.engine, 'getQuery').mockResolvedValue(mockQuery);
|
|
80
|
+
}
|
|
81
|
+
if (mockEntities) {
|
|
82
|
+
const pmcd = new V1_PureModelContextData();
|
|
83
|
+
await V1_entitiesToPureModelContextData(mockEntities, pmcd, MOCK__builderStore.application.pluginManager.getPureProtocolProcessorPlugins(), undefined, undefined);
|
|
84
|
+
createSpy(MOCK__builderStore.depotServerClient, 'getVersionEntities').mockResolvedValue(mockEntities);
|
|
85
|
+
createSpy(MOCK__builderStore.engineServerClient, 'lambdaRelationType').mockImplementation(async (input) => {
|
|
86
|
+
return ENGINE_TEST_SUPPORT__getLambdaRelationType(input.lambda, V1_serializePureModelContext(pmcd));
|
|
87
|
+
});
|
|
88
|
+
createSpy(MOCK__builderStore.engineServerClient, 'runQuery').mockImplementation(async (input) => {
|
|
89
|
+
const executeInput = V1_ExecuteInput.serialization.fromJson(input);
|
|
90
|
+
executeInput.model = pmcd;
|
|
91
|
+
return ENGINE_TEST_SUPPORT__execute(executeInput);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
createSpy(MOCK__builderStore.engineServerClient, 'grammarToJSON_lambda').mockImplementation(async (input) => ENGINE_TEST_SUPPORT__grammarToJSON_lambda(input));
|
|
95
|
+
createSpy(MOCK__builderStore.engineServerClient, 'grammarToJSON_valueSpecification').mockImplementation(async (input) => ENGINE_TEST_SUPPORT__grammarToJSON_valueSpecification(input));
|
|
96
|
+
createSpy(MOCK__builderStore.engineServerClient, 'JSONToGrammar_valueSpecification').mockImplementation(async (input) => ENGINE_TEST_SUPPORT__JSONToGrammar_valueSpecification(input));
|
|
97
|
+
const renderResult = render(_jsx(ApplicationStoreProvider, { store: MOCK__builderStore.application, children: _jsx(TEST__BrowserEnvironmentProvider, { initialEntries: [mockDataCube?.id ? `/${mockDataCube.id}` : '/'], children: _jsx(LegendDataCubeFrameworkProvider, { children: _jsx(Routes, { children: _jsx(Route, { path: LEGEND_DATA_CUBE_ROUTE_PATTERN.BUILDER, element: _jsx(LegendDataCubeBuilder, {}) }) }) }) }) }));
|
|
98
|
+
await waitFor(() => renderResult.getByTestId(LEGEND_DATACUBE_TEST_ID.PLACEHOLDER));
|
|
99
|
+
return {
|
|
100
|
+
renderResult,
|
|
101
|
+
legendDataCubeBuilderState: MOCK__builderStore.builder,
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=LegendDataCubeStoreTestUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendDataCubeStoreTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendDataCubeStoreTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CA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11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export declare const LegendDataCubeReleaseLogManager: ((props: {
|
|
17
|
+
showOnlyLatestNotes: boolean;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
16
21
|
export declare const LegendDataCubeAbout: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
22
|
displayName: string;
|
|
18
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"LegendDataCubeBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuDH,eAAO,MAAM,+BAA+B,WAClC;IAAE,mBAAmB,EAAE,OAAO,CAAA;CAAE;;CAyBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAyE9B,CAAC;AAkFH,eAAO,MAAM,qBAAqB,+CAgIjC,CAAC"}
|
|
@@ -22,17 +22,27 @@ import { useParams } from '@finos/legend-application/browser';
|
|
|
22
22
|
import { LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN, } from '../../__lib__/LegendDataCubeNavigation.js';
|
|
23
23
|
import { useEffect } from 'react';
|
|
24
24
|
import { LegendDataCubeSettingStorageKey } from '../../__lib__/LegendDataCubeSetting.js';
|
|
25
|
-
import {
|
|
25
|
+
import { ReleaseViewer } from '@finos/legend-application';
|
|
26
26
|
const LegendDataCubeBuilderHeader = observer(() => {
|
|
27
27
|
const store = useLegendDataCubeBuilderStore();
|
|
28
|
-
return (_jsxs("div", { className: "flex h-full items-center", children: [_jsx(FormButton, { compact: true, onClick: () => store.loader.display.open(), children: "Load DataCube" }), _jsx(FormButton, { compact: true, className: "ml-1.5", onClick: () => store.creator.display.open(), children: "New DataCube" }), _jsx(FormButton, { compact: true, className: "ml-1.5", disabled: !store.builder?.dataCube
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
return (_jsxs("div", { className: "flex h-full items-center", children: [_jsx(FormButton, { compact: true, onClick: () => store.loader.display.open(), children: "Load DataCube" }), _jsx(FormButton, { compact: true, className: "ml-1.5", onClick: () => store.creator.display.open(), children: "New DataCube" }), _jsx(FormButton, { compact: true, className: "ml-1.5", disabled: !store.builder?.dataCube, onClick: () => store.saverDisplay.open(), children: "Save DataCube" })] }));
|
|
29
|
+
});
|
|
30
|
+
export const LegendDataCubeReleaseLogManager = observer((props) => {
|
|
31
|
+
const { showOnlyLatestNotes } = props;
|
|
32
|
+
const store = useLegendDataCubeBuilderStore();
|
|
33
|
+
const applicationStore = store.application;
|
|
34
|
+
const releaseService = applicationStore.releaseNotesService;
|
|
35
|
+
const releaseNotes = (showOnlyLatestNotes
|
|
36
|
+
? releaseService.showableVersions()
|
|
37
|
+
: releaseService.releaseNotes) ?? [];
|
|
38
|
+
applicationStore.releaseNotesService.updateViewedVersion();
|
|
39
|
+
return (_jsxs("div", { className: "legend-datacube-release-notes h-full items-center p-3", children: [_jsx("div", { className: "my-0.5 flex font-mono", children: "New features, enhancements and bug fixes that were released" }), _jsx("div", { className: "p-2", children: releaseNotes.map((e) => (_jsx(ReleaseViewer, { releaseNotes: e }, e.version))) })] }));
|
|
31
40
|
});
|
|
32
41
|
export const LegendDataCubeAbout = observer(() => {
|
|
33
42
|
const store = useLegendDataCubeBuilderStore();
|
|
43
|
+
const releaseService = store.application.releaseNotesService;
|
|
34
44
|
const config = store.application.config;
|
|
35
|
-
return (_jsxs("div", { className: "h-full items-center p-4", children: [_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Environment:" }), _jsx("div", { className: "ml-1 font-bold", children: config.env })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Version:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersion })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Revision:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersionCommitId })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Build Time:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersionBuildTime })] }), _jsxs("div", { className: "mt-3 rounded-sm bg-white px-4 py-2", children: [_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Engine Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.engineServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineServerUrl }) })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Depot Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.depotServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.depotServerUrl }) })] }), config.engineQueryServerUrl !== undefined && (_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "DataCube Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.engineQueryServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineQueryServerUrl }) })] }))] })] }));
|
|
45
|
+
return (_jsxs("div", { className: "h-full items-center p-4", children: [_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Environment:" }), _jsx("div", { className: "ml-1 font-bold", children: config.env })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Version:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersion })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Revision:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersionCommitId })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Build Time:" }), _jsx("div", { className: "ml-1 font-bold", children: config.appVersionBuildTime })] }), releaseService.isConfigured && (_jsx("div", { onClick: () => store.releaseLogDisplay.open(), className: "my-0.5 flex cursor-pointer font-bold text-sky-500 underline", children: _jsx("div", { children: "Details of Released Versions" }) })), _jsxs("div", { className: "mt-3 rounded-sm bg-white px-4 py-2", children: [_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Engine Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.engineServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineServerUrl }) })] }), _jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "Depot Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.depotServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.depotServerUrl }) })] }), config.engineQueryServerUrl !== undefined && (_jsxs("div", { className: "my-0.5 flex font-mono", children: [_jsx("div", { children: "DataCube Server:" }), _jsx("div", { className: "ml-1 font-bold text-sky-500 underline", children: _jsx("a", { href: config.engineQueryServerUrl, target: "_blank", rel: "noopener noreferrer", children: config.engineQueryServerUrl }) })] }))] })] }));
|
|
36
46
|
});
|
|
37
47
|
function generateMenuItems(store) {
|
|
38
48
|
const application = store.application;
|
|
@@ -134,6 +144,17 @@ export const LegendDataCubeBuilder = withLegendDataCubeBuilderStore(observer(()
|
|
|
134
144
|
.loadDataCube(dataCubeId)
|
|
135
145
|
.catch((error) => store.alertService.alertUnhandledError(error));
|
|
136
146
|
}, [store, dataCubeId]);
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
const releaseService = application.releaseNotesService;
|
|
149
|
+
const releaseNotes = releaseService.showableVersions();
|
|
150
|
+
const isOpen = releaseService.showCurrentReleaseModal;
|
|
151
|
+
if (releaseService.isConfigured && isOpen && releaseNotes?.length) {
|
|
152
|
+
store.releaseNotesDisplay.open();
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
releaseService.updateViewedVersion();
|
|
156
|
+
}
|
|
157
|
+
}, [application, store.releaseNotesDisplay]);
|
|
137
158
|
if (!store.initializeState.hasSucceeded) {
|
|
138
159
|
return (_jsxs(DataCubePlaceholder, { title: "[ Legend DataCube ]", layoutManager: store.layoutService.manager, taskManager: store.taskService.manager, headerContent: _jsx(LegendDataCubeBuilderHeader, {}), menuItems: generateMenuItems(store), children: [store.initializeState.isInProgress && (_jsx("div", { className: "h-full w-full p-2", children: _jsx("div", { children: "Initializing..." }) })), store.initializeState.hasFailed && (_jsx(DataCubePlaceholderErrorDisplay, { message: "Initialization Failure", prompt: "Resolve the issue and reload." }))] }));
|
|
139
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBuilder.js","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,QAAQ,EACR,UAAU,EAEV,mBAAmB,EACnB,sBAAsB,EACtB,+BAA+B,EAE/B,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnC,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,oCAAoC,GAErC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AAEzF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LegendDataCubeBuilder.js","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;A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OAAO,CAAC,oBAAoB,EAC3C,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,EAC9B,OAAO,EAAE;YACP,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO;YAC1C,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO;YACtC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB;YACpD,aAAa,CAAC,KAAK;gBACjB,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACjC,CAAC;YACD,iBAAiB,CAAC,KAAK;gBACrB,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAClC,CAAC;YACD,mBAAmB,EAAE,GAAG,EAAE,CAAC,KAAC,2BAA2B,KAAG;YAC1D,kBAAkB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC;YAClD,YAAY,EAAE;gBACZ,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ;gBACxC,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,cAAc,CAC/C,+BAA+B,CAAC,SAAS,CACL;aACvC;YACD,iBAAiB,CAAC,KAAK;gBACrB,WAAW,CAAC,cAAc,CAAC,YAAY,CACrC,+BAA+B,CAAC,SAAS,EACzC,KAAK,CAAC,MAAM,CACb,CAAC;YACJ,CAAC;YACD,WAAW,EAAE,IAAI;SAClB,IA5BI,OAAO,CAAC,IAAI,CA6BjB,CACH,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBuilderStoreProvider.d.ts","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilderStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendDataCubeBuilderStoreProvider.d.ts","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilderStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AA6BhG,eAAO,MAAM,6BAA6B,kCAIvC,CAAC;AAEJ,eAAO,MAAM,8BAA8B,qBAAsB,KAAK,CAAC,EAAE,kDAOtE,CAAC"}
|
|
@@ -25,7 +25,7 @@ const LegendDataCubeBuilderStoreProvider = (props) => {
|
|
|
25
25
|
const { children } = props;
|
|
26
26
|
const baseStore = useLegendDataCubeBaseStore();
|
|
27
27
|
const store = useLocalObservable(() => new LegendDataCubeBuilderStore(baseStore));
|
|
28
|
-
return (_jsxs(LegendDataCubeBuilderStoreContext.Provider, { value: store, children: [children, _jsx(LegendDataCubeBlockingWindow, { windowState: store.saverDisplay }), _jsx(LegendDataCubeBlockingWindow, { windowState: store.deleteConfirmationDisplay })] }));
|
|
28
|
+
return (_jsxs(LegendDataCubeBuilderStoreContext.Provider, { value: store, children: [children, _jsx(LegendDataCubeBlockingWindow, { windowState: store.saverDisplay }), _jsx(LegendDataCubeBlockingWindow, { windowState: store.deleteConfirmationDisplay }), _jsx(LegendDataCubeBlockingWindow, { windowState: store.loader.sourceLoader.display })] }));
|
|
29
29
|
};
|
|
30
30
|
export const useLegendDataCubeBuilderStore = () => guaranteeNonNullable(useContext(LegendDataCubeBuilderStoreContext), `Can't find builder store in context`);
|
|
31
31
|
export const withLegendDataCubeBuilderStore = (WrappedComponent) => function WithLegendDataCubeBuilderStore() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendDataCubeBuilderStoreProvider.js","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilderStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,MAAM,iCAAiC,GAAG,aAAa,CAErD,SAAS,CAAC,CAAC;AACb,MAAM,kCAAkC,GAAG,CAAC,KAE3C,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CAAC,IAAI,0BAA0B,CAAC,SAAS,CAAC,CAChD,CAAC;IACF,OAAO,CACL,MAAC,iCAAiC,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,aACrD,QAAQ,EACT,KAAC,4BAA4B,IAAC,WAAW,EAAE,KAAK,CAAC,YAAY,GAAI,EACjE,KAAC,4BAA4B,IAC3B,WAAW,EAAE,KAAK,CAAC,yBAAyB,GAC5C,IACyC,CAC9C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAChD,oBAAoB,CAClB,UAAU,CAAC,iCAAiC,CAAC,EAC7C,qCAAqC,CACtC,CAAC;AAEJ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,gBAA0B,EAAE,EAAE,CAC3E,SAAS,8BAA8B;IACrC,OAAO,CACL,KAAC,kCAAkC,cACjC,KAAC,gBAAgB,KAAG,GACe,CACtC,CAAC;AACJ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"LegendDataCubeBuilderStoreProvider.js","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubeBuilderStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;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AAC,gBAAgB,KAAG,GACe,CACtC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 LegendDataCubePartialSourceLoader: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=LegendDataCubePartialSourceLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendDataCubePartialSourceLoader.d.ts","sourceRoot":"","sources":["../../../src/components/builder/LegendDataCubePartialSourceLoader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,eAAO,MAAM,iCAAiC;;CAkF5C,CAAC"}
|