@finos/legend-query-builder 4.15.4 → 4.15.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +2 -1
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +2 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +1 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +4 -6
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.js +4 -6
- package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +7 -7
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +12 -21
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +39 -57
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
- package/package.json +17 -17
- package/src/__lib__/QueryBuilderTesting.ts +3 -0
- package/src/components/QueryBuilderSideBar.tsx +4 -1
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +4 -6
- package/src/components/data-cube/QueryBuilderDataCube.tsx +5 -17
- package/src/index.ts +0 -1
- package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +66 -86
- package/tsconfig.json +0 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +0 -36
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +0 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +0 -65
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +0 -1
- package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +0 -98
@@ -54,6 +54,7 @@ export declare enum QUERY_BUILDER_TEST_ID {
|
|
54
54
|
QUERY_BUILDER_RESULT_GRID_CUSTOM_HEADER = "query__builder__result__grid__custom-header",
|
55
55
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL = "query__builder__result__modifier__panel",
|
56
56
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN = "query__builder__projection__options__sort__remove-btn",
|
57
|
-
QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR = "query__builder__result__modifier__panel__watermark"
|
57
|
+
QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR = "query__builder__result__modifier__panel__watermark",
|
58
|
+
QUERY_BUILDER_TEMPLATE_QUERY_PANE = "query__builder__template__query__panel"
|
58
59
|
}
|
59
60
|
//# sourceMappingURL=QueryBuilderTesting.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,qBAAqB,4BAA4B;IACjD,mBAAmB,0BAA0B;IAC7C,6BAA6B,qCAAqC;IAClE,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,oCAAoC,6CAA6C;IACjF,uCAAuC,gDAAgD;IACvF,wCAAwC,iDAAiD;IACzF,sCAAsC,+CAA+C;IACr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4CAA4C,sDAAsD;IAClG,6CAA6C,uDAAuD;IACpG,2CAA2C,qDAAqD;IAEhG,4BAA4B,2BAA2B;IAEvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,8BAA8B,sCAAsC;IAEpE,gCAAgC,wCAAwC;IAExE,wBAAwB,8BAA8B;IAEtD,uBAAuB,6BAA6B;IAEpD,uBAAuB,6BAA6B;IAEpD,0BAA0B,iCAAiC;IAE3D,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,wCAAwC,+CAA+C;IACvF,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IACpE,uCAAuC,gDAAgD;IAEvF,mCAAmC,4CAA4C;IAC/E,mDAAmD,0DAA0D;IAC7G,8CAA8C,uDAAuD;IAGrG,iCAAiC,2CAA2C;CAC7E"}
|
@@ -67,5 +67,7 @@ export var QUERY_BUILDER_TEST_ID;
|
|
67
67
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_MODIFIER_PANEL"] = "query__builder__result__modifier__panel";
|
68
68
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN"] = "query__builder__projection__options__sort__remove-btn";
|
69
69
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR"] = "query__builder__result__modifier__panel__watermark";
|
70
|
+
// template query panel
|
71
|
+
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TEMPLATE_QUERY_PANE"] = "query__builder__template__query__panel";
|
70
72
|
})(QUERY_BUILDER_TEST_ID || (QUERY_BUILDER_TEST_ID = {}));
|
71
73
|
//# sourceMappingURL=QueryBuilderTesting.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAyDX;AAzDD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,0EAAiD,CAAA;IACjD,sEAA6C,CAAA;IAC7C,2FAAkE,CAAA;IAClE,yFAAgE,CAAA;IAChE,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,0GAAiF,CAAA;IACjF,gHAAuF,CAAA;IACvF,kHAAyF,CAAA;IACzF,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,8FAAqE,CAAA;IACrE,qHAA4F,CAAA;IAC5F,2HAAkG,CAAA;IAClG,6HAAoG,CAAA;IACpG,yHAAgG,CAAA;IAChG,wBAAwB;IACxB,gFAAuD,CAAA;IACvD,iBAAiB;IACjB,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,6FAAoE,CAAA;IACpE,oBAAoB;IACpB,iGAAwE,CAAA;IACxE,kBAAkB;IAClB,+EAAsD,CAAA;IACtD,iBAAiB;IACjB,6EAAoD,CAAA;IACpD,iBAAiB;IACjB,6EAAoD,CAAA;IACpD,QAAQ;IACR,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,gHAAuF,CAAA;IACvF,wBAAwB;IACxB,wGAA+E,CAAA;IAC/E,sIAA6G,CAAA;IAC7G,8HAAqG,CAAA;IAErG,uBAAuB;IACvB,qGAA4E,CAAA;AAC9E,CAAC,EAzDW,qBAAqB,KAArB,qBAAqB,QAyDhC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderSideBar.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderSideBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,OAAO,EACZ,KAAK,kBAAkB,EASxB,MAAM,qBAAqB,CAAC;AAS7B,eAAO,MAAM,iBAAiB,cACjB,kBAAkB,GAAG,SAAS,KACxC,MAAM,GAAG,SAiBX,CAAC;AAyBF,eAAO,MAAM,yBAAyB,WAC5B;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;;CAyEF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBACpB,OAAO,KACpB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAMhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,UAAW;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,KAAG,CAAC,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,KAAK,KAAK,CAAC,SAAS,CAkBjD,CAAC;AA0JJ,eAAO,MAAM,mBAAmB,WACtB;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;;
|
1
|
+
{"version":3,"file":"QueryBuilderSideBar.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderSideBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,OAAO,EACZ,KAAK,kBAAkB,EASxB,MAAM,qBAAqB,CAAC;AAS7B,eAAO,MAAM,iBAAiB,cACjB,kBAAkB,GAAG,SAAS,KACxC,MAAM,GAAG,SAiBX,CAAC;AAyBF,eAAO,MAAM,yBAAyB,WAC5B;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;;CAyEF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBACpB,OAAO,KACpB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAMhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,UAAW;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,KAAG,CAAC,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,KAAK,KAAK,CAAC,SAAS,CAkBjD,CAAC;AA0JJ,eAAO,MAAM,mBAAmB,WACtB;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;;CA8CF,CAAC"}
|
@@ -164,6 +164,6 @@ export const QueryBuilderSidebar = observer((props) => {
|
|
164
164
|
.getApplicationPlugins()
|
165
165
|
.flatMap((plugin) => plugin.getExtraTemplateQueryPanelContentRenderer?.() ?? []);
|
166
166
|
const templateQueryPanelContentTab = extraTemplateQueryPanelContentRenderer[0] ? (extraTemplateQueryPanelContentRenderer[0](queryBuilderState)) : (_jsx(_Fragment, {}));
|
167
|
-
return (_jsxs("div", { className: clsx('query-builder__side-bar', queryBuilderState.sideBarClassName), children: [_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_SETUP, className: "panel query-builder__setup", children: _jsx("div", { className: "panel__content query-builder__setup__content", children: queryBuilderState.TEMPORARY__setupPanelContentRenderer?.() ?? (_jsx(BasicQueryBuilderSetup, { queryBuilderState: queryBuilderState })) }) }), _jsx("div", { className: "query-builder__template-query", children: templateQueryPanelContentTab }), _jsx("div", { className: "query-builder__side-bar__content", children: children })] }));
|
167
|
+
return (_jsxs("div", { className: clsx('query-builder__side-bar', queryBuilderState.sideBarClassName), children: [_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_SETUP, className: "panel query-builder__setup", children: _jsx("div", { className: "panel__content query-builder__setup__content", children: queryBuilderState.TEMPORARY__setupPanelContentRenderer?.() ?? (_jsx(BasicQueryBuilderSetup, { queryBuilderState: queryBuilderState })) }) }), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TEMPLATE_QUERY_PANE, className: "query-builder__template-query", children: templateQueryPanelContentTab }), _jsx("div", { className: "query-builder__side-bar__content", children: children })] }));
|
168
168
|
});
|
169
169
|
//# sourceMappingURL=QueryBuilderSideBar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderSideBar.js","sourceRoot":"","sources":["../../src/components/QueryBuilderSideBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,WAAW,EACX,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAKL,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,mCAAmC,EACnC,cAAc,EACd,wBAAwB,EACxB,mBAAmB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yBAAyB,CAAC;oCAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC;iCACzC,CAAC,GACF,IACE,EACN,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,GAChB,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CACzC,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,sCAAsC,GAC1C,gBAAgB,CAAC,aAAa;SAC3B,qBAAqB,EAAE;SACvB,OAAO,CACN,CAAC,MAAM,EAAE,EAAE,CAEP,MACD,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,CACxD,CAAC;IACN,MAAM,4BAA4B,GAChC,sCAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1C,sCAAsC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAC7D,CAAC,CAAC,CAAC,CACF,mBAAK,CACN,CAAC;IAEJ,OAAO,CACL,eACE,SAAS,EAAE,IAAI,CACb,yBAAyB,EACzB,iBAAiB,CAAC,gBAAgB,CACnC,aAED,6BACe,qBAAqB,CAAC,mBAAmB,EACtD,SAAS,EAAC,4BAA4B,YAEtC,cAAK,SAAS,EAAC,8CAA8C,YAC1D,iBAAiB,CAAC,oCAAoC,EAAE,EAAE,IAAI,CAC7D,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,GACG,GACF,EACN,
|
1
|
+
{"version":3,"file":"QueryBuilderSideBar.js","sourceRoot":"","sources":["../../src/components/QueryBuilderSideBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OA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,SAAS,EAAC,4BAA4B,YAEtC,cAAK,SAAS,EAAC,8CAA8C,YAC1D,iBAAiB,CAAC,oCAAoC,EAAE,EAAE,IAAI,CAC7D,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,GACG,GACF,EACN,6BACe,qBAAqB,CAAC,iCAAiC,EACpE,SAAS,EAAC,+BAA+B,YAExC,4BAA4B,GACzB,EACN,cAAK,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAO,IAC9D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EASlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAkB3C,eAAO,MAAM,6BAA6B,sBACrB,WAAW,cAClB,MAAM,cACN,OAAO,KAClB,IA8CF,CAAC;AAEF,eAAO,MAAM,wCAAwC,sBAChC,WAAW,cAClB,OAAO,qBACA,OAAO,KACzB,IAaF,CAAC;AAEF,eAAO,MAAM,2BAA2B,sBACnB,WAAW,cAClB,OAAO,KAClB,MAAM,GAAG,IAWX,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,WAAW,QACb,WAAW,SACV,WAAW,sBACE,MAAM,KACzB,OAAO,CAAC,IAAI,CAUd,CAAC;AAEF,eAAO,MAAM,uBAAuB,0BACX,WAAW,SAC3B,MAAM,gBACC,YAAY,YAChB;IACR,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,KACA,OAAO,CAAC,IAAI,CAad,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC,KAC5E,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,YAAY,EASlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAkB3C,eAAO,MAAM,6BAA6B,sBACrB,WAAW,cAClB,MAAM,cACN,OAAO,KAClB,IA8CF,CAAC;AAEF,eAAO,MAAM,wCAAwC,sBAChC,WAAW,cAClB,OAAO,qBACA,OAAO,KACzB,IAaF,CAAC;AAEF,eAAO,MAAM,2BAA2B,sBACnB,WAAW,cAClB,OAAO,KAClB,MAAM,GAAG,IAWX,CAAC;AAEF,eAAO,MAAM,WAAW,WACd,WAAW,QACb,WAAW,SACV,WAAW,sBACE,MAAM,KACzB,OAAO,CAAC,IAAI,CAUd,CAAC;AAEF,eAAO,MAAM,uBAAuB,0BACX,WAAW,SAC3B,MAAM,gBACC,YAAY,YAChB;IACR,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,KACA,OAAO,CAAC,IAAI,CAad,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACxB,MAAM,EAAE,UACV,SAAS,eACJ,MAAM,eACN,MAAM,0CACqB,qCAAqC,KAC5E,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CA4EA,CAAC"}
|
@@ -106,11 +106,9 @@ export const setDerivedPropertyValue = async (derivedPropertyButton, value, rend
|
|
106
106
|
await waitFor(() => expect(renderResult.queryByRole('dialog')).toBeNull());
|
107
107
|
};
|
108
108
|
export const TEST__setUpQueryBuilder = async (entities, lambda, mappingPath, runtimePath, rawMappingModelCoverageAnalysisResult) => {
|
109
|
-
const
|
110
|
-
|
111
|
-
|
112
|
-
]).install();
|
113
|
-
const graphManagerState = new GraphManagerState(MOCK__pluginManager, new LogService());
|
109
|
+
const pluginManager = TEST__LegendApplicationPluginManager.create();
|
110
|
+
pluginManager.usePresets([new QueryBuilder_GraphManagerPreset()]).install();
|
111
|
+
const graphManagerState = new GraphManagerState(pluginManager, new LogService());
|
114
112
|
await graphManagerState.graphManager.initialize({
|
115
113
|
env: 'test',
|
116
114
|
tabSize: 2,
|
@@ -118,7 +116,7 @@ export const TEST__setUpQueryBuilder = async (entities, lambda, mappingPath, run
|
|
118
116
|
});
|
119
117
|
await graphManagerState.initializeSystem();
|
120
118
|
await graphManagerState.graphManager.buildGraph(graphManagerState.graph, entities, graphManagerState.graphBuildState);
|
121
|
-
const MOCK__applicationStore = new ApplicationStore(TEST__getGenericApplicationConfig(),
|
119
|
+
const MOCK__applicationStore = new ApplicationStore(TEST__getGenericApplicationConfig(), pluginManager);
|
122
120
|
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(MOCK__applicationStore, graphManagerState, QueryBuilderAdvancedWorkflowState.INSTANCE, undefined);
|
123
121
|
const mapping = graphManagerState.graph.getMapping(mappingPath);
|
124
122
|
queryBuilderState.executionContextState.setMapping(mapping);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAc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BAAmB,IAAI,EAAE,CAAC,EAC9D;QACE,MAAM,EAAE,EAAE,KAAK,EAAE;KAClB,CACF,CAAC;IACF,MAAM,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAChE,MAAM,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,QAAkB,EAClB,MAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,qCAA6E,EAI5E,EAAE;IACH,MAAM,
|
1
|
+
{"version":3,"file":"QueryBuilderComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAEL,gCAAgC,GACjC,MAA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;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,sBAAsB,YACrD,KAAC,gCAAgC,IAAC,cAAc,EAAE,CAAC,GAAG,CAAC,YACrD,KAAC,4BAA4B,cAC3B,KAAC,MAAM,cACL,KAAC,KAAK,IACJ,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,KAAC,YAAY,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GAC/D,GACK,GACoB,GACE,GACV,CAC5B,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCube.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderDataCube.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwB3E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAuCjD,CAAC"}
|
@@ -14,19 +14,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { DataCube
|
17
|
+
import { DataCube } from '@finos/legend-data-cube';
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
|
-
import { QueryBuilderDataCubeApplicationEngine } from '../../stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
|
20
19
|
import { clsx, Dialog, Modal, ModalFooter, ModalFooterButton, TimesIcon, } from '@finos/legend-art';
|
21
20
|
import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/QueryBuilderDataCubeEngineHelper.js';
|
22
21
|
const QueryBuilderDataCube = observer((props) => {
|
23
22
|
const { queryBuilderState } = props;
|
24
|
-
const
|
25
|
-
|
26
|
-
if (!queryBuilderEngine) {
|
23
|
+
const engine = createDataCubeEngineFromQueryBuilder(queryBuilderState);
|
24
|
+
if (!engine) {
|
27
25
|
return null;
|
28
26
|
}
|
29
|
-
return
|
27
|
+
return _jsx(DataCube, { engine: engine });
|
30
28
|
});
|
31
29
|
export const QueryBuilderDataCubeDialog = observer((props) => {
|
32
30
|
const { queryBuilderState } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCube.js","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"QueryBuilderDataCube.js","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4DAA4D,CAAC;AAElH,MAAM,oBAAoB,GAAG,QAAQ,CACnC,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,C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js';
|
|
74
74
|
export * from './stores/QueryBuilderValueSpecificationHelper.js';
|
75
75
|
export * from './stores/filter/QueryBuilderFilterState.js';
|
76
76
|
export * from './stores/filter/QueryBuilderFilterStateBuilder.js';
|
77
|
-
export * from './stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
|
78
77
|
export * from './stores/data-cube/QueryBuilderDataCubeEngine.js';
|
79
78
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,oCAAoC,GACrC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,+DAA+D,CAAC;AAC5F,OAAO,EACL,KAAK,4BAA4B,EACjC,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,KAAK,mBAAmB,IAAI,SAAS,EACrC,KAAK,qCAAqC,EAC1C,iBAAiB,EACjB,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACv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D,CAAC"}
|
package/lib/index.js
CHANGED
@@ -74,6 +74,5 @@ export * from './stores/filter/QueryBuilderFilterValueSpecificationBuilder.js';
|
|
74
74
|
export * from './stores/QueryBuilderValueSpecificationHelper.js';
|
75
75
|
export * from './stores/filter/QueryBuilderFilterState.js';
|
76
76
|
export * from './stores/filter/QueryBuilderFilterStateBuilder.js';
|
77
|
-
export * from './stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
|
78
77
|
export * from './stores/data-cube/QueryBuilderDataCubeEngine.js';
|
79
78
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc;AACd,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,oCAAoC,GACrC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,+DAA+D,CAAC;AAC5F,OAAO,EAEL,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAGL,iBAAiB,EACjB,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,s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AA+B,EAC/B,iCAAiC,GAClC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,uCAAuC,EACvC,+BAA+B,GAChC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAC;AAChG,4GAA4G;AAE5G,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAE9D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gEAAgE,CAAC;AAC/E,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC"}
|
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.15.
|
3
|
+
"version": "4.15.6",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -54,18 +54,18 @@
|
|
54
54
|
"@testing-library/dom": "10.4.0",
|
55
55
|
"@testing-library/react": "16.0.1",
|
56
56
|
"@types/react": "18.3.11",
|
57
|
-
"@types/react-dom": "18.3.
|
58
|
-
"chart.js": "4.4.
|
57
|
+
"@types/react-dom": "18.3.1",
|
58
|
+
"chart.js": "4.4.5",
|
59
59
|
"mathjs": "13.2.0",
|
60
|
-
"mobx": "6.13.
|
60
|
+
"mobx": "6.13.5",
|
61
61
|
"mobx-react-lite": "4.0.7",
|
62
62
|
"monaco-editor": "0.52.0",
|
63
63
|
"react": "18.3.1",
|
64
64
|
"react-chartjs-2": "5.2.0",
|
65
65
|
"react-dnd": "16.0.1",
|
66
66
|
"react-dom": "18.3.1",
|
67
|
-
"serializr": "3.0.
|
68
|
-
"sql-formatter": "15.4.
|
67
|
+
"serializr": "3.0.3",
|
68
|
+
"sql-formatter": "15.4.4"
|
69
69
|
},
|
70
70
|
"devDependencies": {
|
71
71
|
"@finos/legend-dev-utils": "workspace:*",
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"jest": "29.7.0",
|
76
76
|
"npm-run-all": "4.1.5",
|
77
77
|
"rimraf": "6.0.1",
|
78
|
-
"sass": "1.
|
78
|
+
"sass": "1.80.2",
|
79
79
|
"typescript": "5.6.3"
|
80
80
|
},
|
81
81
|
"peerDependencies": {
|
@@ -13,18 +13,9 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification, type ParameterValue } from '@finos/legend-graph';
|
17
|
-
import {
|
16
|
+
import { V1_AppliedFunction, V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification, type ParameterValue } from '@finos/legend-graph';
|
17
|
+
import { DataCubeEngine, DataCubeSource, type RelationType, type DataCubeInitialInput, type CompletionItem } from '@finos/legend-data-cube';
|
18
18
|
import { LogService } from '@finos/legend-shared';
|
19
|
-
export declare class _DataCubeQuery {
|
20
|
-
name: string;
|
21
|
-
query: string;
|
22
|
-
partialQuery: string;
|
23
|
-
source: DataCubeQuerySource;
|
24
|
-
constructor(name: string, query: string, partialQuery: string, source: DataCubeQuerySource);
|
25
|
-
}
|
26
|
-
export declare class QueryBuilderDataCubeQuerySource extends DataCubeQuerySource {
|
27
|
-
}
|
28
19
|
export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
29
20
|
readonly logService: LogService;
|
30
21
|
readonly graphState: GraphManagerState;
|
@@ -35,21 +26,21 @@ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
35
26
|
_parameters: object | undefined;
|
36
27
|
constructor(selectQuery: RawLambda, parameterValues: ParameterValue[] | undefined, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
|
37
28
|
get sourceLabel(): string;
|
38
|
-
|
39
|
-
buildBaseQuery(): Promise<
|
29
|
+
getInitialInput(): Promise<DataCubeInitialInput>;
|
30
|
+
buildBaseQuery(): Promise<DataCubeInitialInput>;
|
40
31
|
get graph(): PureModel;
|
41
32
|
private buildRawLambdaFromValueSpec;
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
getQueryRelationType(query:
|
47
|
-
|
48
|
-
|
49
|
-
executeQuery(query: V1_Lambda): Promise<{
|
33
|
+
getQueryTypeahead(code: string, baseQuery: V1_Lambda, source: DataCubeSource): Promise<CompletionItem[]>;
|
34
|
+
parseValueSpecification(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
|
35
|
+
getValueSpecificationCode(value: V1_ValueSpecification, pretty?: boolean | undefined): Promise<string>;
|
36
|
+
private getRelationalType;
|
37
|
+
getQueryRelationType(query: V1_Lambda, source: DataCubeSource): Promise<RelationType>;
|
38
|
+
getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification, source: DataCubeSource): Promise<RelationType>;
|
39
|
+
executeQuery(query: V1_Lambda, source: DataCubeSource): Promise<{
|
50
40
|
result: TDSExecutionResult;
|
51
41
|
executedQuery: string;
|
52
42
|
executedSQL: string;
|
53
43
|
}>;
|
44
|
+
buildExecutionContext(source: DataCubeSource): V1_AppliedFunction | undefined;
|
54
45
|
}
|
55
46
|
//# sourceMappingURL=QueryBuilderDataCubeEngine.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAClB,SAAS,EACT,SAAS,EAET,kBAAkB,EAKlB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,cAAc,EACd,cAAc,EACd,KAAK,YAAY,EAEjB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAGpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAgC,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOhF,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,QAAQ,CAAC,UAAU,aAAoB;IACvC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG9B,WAAW,EAAE,SAAS,EACtB,eAAe,EAAE,cAAc,EAAE,GAAG,SAAS,EAC7C,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,iBAAiB;IAUtC,IAAI,WAAW,IAAI,MAAM,CAExB;IAEQ,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAInD,cAAc,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAyCrD,IAAI,KAAK,IAAI,SAAS,CAErB;IAED,OAAO,CAAC,2BAA2B;IAa7B,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,cAAc;IAeT,uBAAuB,CACpC,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,OAAO;IAW1B,yBAAyB,CAChC,KAAK,EAAE,qBAAqB,EAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS;YAQhB,iBAAiB;IAStB,oBAAoB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;IAKvD,8BAA8B,CAC3C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,qBAAqB,EAChC,MAAM,EAAE,cAAc;IAYT,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;;;;;IAgC3D,qBAAqB,CAC5B,MAAM,EAAE,cAAc,GACrB,kBAAkB,GAAG,SAAS;CAYlC"}
|
@@ -14,21 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { SUPPORTED_FUNCTIONS, V1_AppliedFunction, V1_Lambda, RawLambda, RelationalExecutionActivities, TDSExecutionResult, V1_deserializeRawValueSpecification, V1_deserializeValueSpecification, V1_RawLambda, V1_serializeValueSpecification, } from '@finos/legend-graph';
|
17
|
-
import { _elementPtr, _functionName,
|
18
|
-
import { guaranteeType, LogService } from '@finos/legend-shared';
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
partialQuery;
|
23
|
-
source;
|
24
|
-
constructor(name, query, partialQuery, source) {
|
25
|
-
this.name = name;
|
26
|
-
this.query = query;
|
27
|
-
this.partialQuery = partialQuery;
|
28
|
-
this.source = source;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
export class QueryBuilderDataCubeQuerySource extends DataCubeQuerySource {
|
17
|
+
import { _elementPtr, _functionName, DataCubeEngine, DataCubeSource, DataCubeQuery, _function, DataCubeFunction, } from '@finos/legend-data-cube';
|
18
|
+
import { guaranteeType, isNonNullable, LogService } from '@finos/legend-shared';
|
19
|
+
class QueryBuilderDataCubeSource extends DataCubeSource {
|
20
|
+
mapping;
|
21
|
+
runtime;
|
32
22
|
}
|
33
23
|
export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
34
24
|
logService = new LogService();
|
@@ -49,11 +39,10 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
49
39
|
get sourceLabel() {
|
50
40
|
return `Query Builder Report`;
|
51
41
|
}
|
52
|
-
|
42
|
+
getInitialInput() {
|
53
43
|
return this.buildBaseQuery();
|
54
44
|
}
|
55
45
|
async buildBaseQuery() {
|
56
|
-
const timestamp = Date.now();
|
57
46
|
let srcFuncExp = V1_deserializeValueSpecification(this.graphState.graphManager.serializeRawValueSpecification(this.selectInitialQuery), []);
|
58
47
|
// We could do a further check here to ensure the experssion is an applied funciton
|
59
48
|
// this is because data cube expects an expression to be able to built further upon the queery
|
@@ -72,71 +61,55 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
72
61
|
if (this.runtimePath) {
|
73
62
|
fromFuncExp.parameters.push(_elementPtr(this.runtimePath));
|
74
63
|
}
|
75
|
-
const
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
const source = new QueryBuilderDataCubeQuerySource();
|
82
|
-
source.columns = columns;
|
64
|
+
const columns = (await this.getRelationalType(this.selectInitialQuery))
|
65
|
+
.columns;
|
66
|
+
const query = new DataCubeQuery();
|
67
|
+
query.query = `~[${columns.map((e) => `'${e.name}'`)}]->select()`;
|
68
|
+
const source = new QueryBuilderDataCubeSource();
|
69
|
+
source.sourceColumns = columns;
|
83
70
|
source.mapping = this.mappingPath;
|
84
71
|
source.runtime = this.runtimePath;
|
85
|
-
source.query =
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
const baseQueryResult = new DataCubeGetBaseQueryResult();
|
91
|
-
baseQueryResult.timestamp = timestamp;
|
92
|
-
baseQueryResult.query = result;
|
93
|
-
baseQueryResult.partialQuery = await this.parseQuery(partialQuery);
|
94
|
-
baseQueryResult.sourceQuery = srcFuncExp;
|
95
|
-
return baseQueryResult;
|
72
|
+
source.query = srcFuncExp;
|
73
|
+
return {
|
74
|
+
query,
|
75
|
+
source,
|
76
|
+
};
|
96
77
|
}
|
97
78
|
get graph() {
|
98
79
|
return this.graphState.graph;
|
99
80
|
}
|
100
81
|
buildRawLambdaFromValueSpec(query) {
|
101
|
-
const json = guaranteeType(V1_deserializeRawValueSpecification(V1_serializeValueSpecification(query, [])), V1_RawLambda);
|
82
|
+
const json = guaranteeType(V1_deserializeRawValueSpecification(V1_serializeValueSpecification(query.body[0], [])), V1_RawLambda);
|
102
83
|
return new RawLambda(json.parameters, json.body);
|
103
84
|
}
|
104
|
-
|
105
|
-
|
106
|
-
return Promise.resolve({
|
107
|
-
gridClientLicense: undefined,
|
108
|
-
simpleSampleDataTableName: '',
|
109
|
-
complexSampleDataTableName: '',
|
110
|
-
});
|
111
|
-
}
|
112
|
-
async getQueryTypeahead(code, query) {
|
113
|
-
const lambda = this.buildRawLambdaFromValueSpec(query);
|
85
|
+
async getQueryTypeahead(code, baseQuery, source) {
|
86
|
+
const lambda = this.buildRawLambdaFromValueSpec(baseQuery);
|
114
87
|
const queryString = await this.graphState.graphManager.lambdaToPureCode(lambda);
|
115
88
|
const offset = queryString.length;
|
116
89
|
const codeBlock = queryString + code;
|
117
90
|
const result = await this.graphState.graphManager.getCodeComplete(codeBlock, this.graph, offset);
|
118
91
|
return result.completions;
|
119
92
|
}
|
120
|
-
async
|
93
|
+
async parseValueSpecification(code, returnSourceInformation) {
|
121
94
|
return V1_deserializeValueSpecification(await this.graphState.graphManager.pureCodeToValueSpecification(code, returnSourceInformation), []);
|
122
95
|
}
|
123
|
-
|
124
|
-
return this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(
|
96
|
+
getValueSpecificationCode(value, pretty) {
|
97
|
+
return this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(value, []), pretty);
|
125
98
|
}
|
126
|
-
|
99
|
+
async getRelationalType(query) {
|
100
|
+
const relationType = await this.graphState.graphManager.getLambdaRelationType(query, this.graph);
|
101
|
+
return relationType;
|
102
|
+
}
|
103
|
+
getQueryRelationType(query, source) {
|
127
104
|
const lambda = this.buildRawLambdaFromValueSpec(query);
|
128
105
|
return this.getRelationalType(lambda);
|
129
106
|
}
|
130
|
-
async
|
131
|
-
const realtion_type = await this.graphState.graphManager.getLambdaRelationType(query, this.graph);
|
132
|
-
return realtion_type;
|
133
|
-
}
|
134
|
-
async getQueryCodeRelationReturnType(code, baseQuery) {
|
107
|
+
async getQueryCodeRelationReturnType(code, baseQuery, source) {
|
135
108
|
const queryString = await this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(baseQuery, []));
|
136
109
|
const fullQuery = code + queryString;
|
137
110
|
return this.getRelationalType(await this.graphState.graphManager.pureCodeToLambda(fullQuery));
|
138
111
|
}
|
139
|
-
async executeQuery(query) {
|
112
|
+
async executeQuery(query, source) {
|
140
113
|
const lambda = this.buildRawLambdaFromValueSpec(query);
|
141
114
|
lambda.parameters = this._parameters;
|
142
115
|
const [executionWithMetadata, queryString] = await Promise.all([
|
@@ -157,5 +130,14 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
157
130
|
executedSQL: sqlString,
|
158
131
|
};
|
159
132
|
}
|
133
|
+
buildExecutionContext(source) {
|
134
|
+
if (source instanceof QueryBuilderDataCubeSource) {
|
135
|
+
return _function(DataCubeFunction.FROM, [
|
136
|
+
source.mapping ? _elementPtr(source.mapping) : undefined,
|
137
|
+
_elementPtr(source.runtime),
|
138
|
+
].filter(isNonNullable));
|
139
|
+
}
|
140
|
+
return undefined;
|
141
|
+
}
|
160
142
|
}
|
161
143
|
//# sourceMappingURL=QueryBuilderDataCubeEngine.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAK/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,
|
1
|
+
{"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAK/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,EAEd,aAAa,EAGb,SAAS,EACT,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,0BAA2B,SAAQ,cAAc;IACrD,OAAO,CAAsB;IAC7B,OAAO,CAAU;CAClB;AAED,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IACnD,UAAU,GAAG,IAAI,UAAU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CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;IAEQ,qBAAqB,CAC5B,MAAsB;QAEtB,IAAI,MAAM,YAAY,0BAA0B,EAAE,CAAC;YACjD,OAAO,SAAS,CACd,gBAAgB,CAAC,IAAI,EACrB;gBACE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;gBACxD,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;aAC5B,CAAC,MAAM,CAAC,aAAa,CAAC,CACxB,CAAC;QACJ,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.15.
|
3
|
+
"version": "4.15.6",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,40 +42,40 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "16.0.
|
46
|
-
"@finos/legend-art": "7.1.
|
47
|
-
"@finos/legend-code-editor": "2.0.
|
48
|
-
"@finos/legend-data-cube": "0.0.
|
49
|
-
"@finos/legend-graph": "31.10.
|
50
|
-
"@finos/legend-lego": "2.0.
|
51
|
-
"@finos/legend-server-depot": "6.0.
|
52
|
-
"@finos/legend-shared": "10.0.
|
53
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "16.0.5",
|
46
|
+
"@finos/legend-art": "7.1.64",
|
47
|
+
"@finos/legend-code-editor": "2.0.7",
|
48
|
+
"@finos/legend-data-cube": "0.0.12",
|
49
|
+
"@finos/legend-graph": "31.10.41",
|
50
|
+
"@finos/legend-lego": "2.0.9",
|
51
|
+
"@finos/legend-server-depot": "6.0.64",
|
52
|
+
"@finos/legend-shared": "10.0.58",
|
53
|
+
"@finos/legend-storage": "3.0.108",
|
54
54
|
"@testing-library/dom": "10.4.0",
|
55
55
|
"@testing-library/react": "16.0.1",
|
56
56
|
"@types/react": "18.3.11",
|
57
|
-
"@types/react-dom": "18.3.
|
58
|
-
"chart.js": "4.4.
|
57
|
+
"@types/react-dom": "18.3.1",
|
58
|
+
"chart.js": "4.4.5",
|
59
59
|
"mathjs": "13.2.0",
|
60
|
-
"mobx": "6.13.
|
60
|
+
"mobx": "6.13.5",
|
61
61
|
"mobx-react-lite": "4.0.7",
|
62
62
|
"monaco-editor": "0.52.0",
|
63
63
|
"react": "18.3.1",
|
64
64
|
"react-chartjs-2": "5.2.0",
|
65
65
|
"react-dnd": "16.0.1",
|
66
66
|
"react-dom": "18.3.1",
|
67
|
-
"serializr": "3.0.
|
68
|
-
"sql-formatter": "15.4.
|
67
|
+
"serializr": "3.0.3",
|
68
|
+
"sql-formatter": "15.4.4"
|
69
69
|
},
|
70
70
|
"devDependencies": {
|
71
|
-
"@finos/legend-dev-utils": "2.1.
|
71
|
+
"@finos/legend-dev-utils": "2.1.26",
|
72
72
|
"@jest/globals": "29.7.0",
|
73
73
|
"cross-env": "7.0.3",
|
74
74
|
"eslint": "9.12.0",
|
75
75
|
"jest": "29.7.0",
|
76
76
|
"npm-run-all": "4.1.5",
|
77
77
|
"rimraf": "6.0.1",
|
78
|
-
"sass": "1.
|
78
|
+
"sass": "1.80.2",
|
79
79
|
"typescript": "5.6.3"
|
80
80
|
},
|
81
81
|
"peerDependencies": {
|
@@ -68,4 +68,7 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
68
68
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL = 'query__builder__result__modifier__panel',
|
69
69
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN = 'query__builder__projection__options__sort__remove-btn',
|
70
70
|
QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR = 'query__builder__result__modifier__panel__watermark',
|
71
|
+
|
72
|
+
// template query panel
|
73
|
+
QUERY_BUILDER_TEMPLATE_QUERY_PANE = 'query__builder__template__query__panel',
|
71
74
|
}
|
@@ -396,7 +396,10 @@ export const QueryBuilderSidebar = observer(
|
|
396
396
|
)}
|
397
397
|
</div>
|
398
398
|
</div>
|
399
|
-
<div
|
399
|
+
<div
|
400
|
+
data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TEMPLATE_QUERY_PANE}
|
401
|
+
className="query-builder__template-query"
|
402
|
+
>
|
400
403
|
{templateQueryPanelContentTab}
|
401
404
|
</div>
|
402
405
|
<div className="query-builder__side-bar__content">{children}</div>
|
@@ -199,12 +199,10 @@ export const TEST__setUpQueryBuilder = async (
|
|
199
199
|
renderResult: RenderResult;
|
200
200
|
queryBuilderState: QueryBuilderState;
|
201
201
|
}> => {
|
202
|
-
const
|
203
|
-
|
204
|
-
new QueryBuilder_GraphManagerPreset(),
|
205
|
-
]).install();
|
202
|
+
const pluginManager = TEST__LegendApplicationPluginManager.create();
|
203
|
+
pluginManager.usePresets([new QueryBuilder_GraphManagerPreset()]).install();
|
206
204
|
const graphManagerState = new GraphManagerState(
|
207
|
-
|
205
|
+
pluginManager,
|
208
206
|
new LogService(),
|
209
207
|
);
|
210
208
|
|
@@ -222,7 +220,7 @@ export const TEST__setUpQueryBuilder = async (
|
|
222
220
|
|
223
221
|
const MOCK__applicationStore = new ApplicationStore(
|
224
222
|
TEST__getGenericApplicationConfig(),
|
225
|
-
|
223
|
+
pluginManager,
|
226
224
|
);
|
227
225
|
|
228
226
|
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
|
@@ -14,10 +14,9 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import { DataCube
|
17
|
+
import { DataCube } from '@finos/legend-data-cube';
|
18
18
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
19
19
|
import { observer } from 'mobx-react-lite';
|
20
|
-
import { QueryBuilderDataCubeApplicationEngine } from '../../stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
|
21
20
|
import {
|
22
21
|
clsx,
|
23
22
|
Dialog,
|
@@ -31,23 +30,12 @@ import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/Que
|
|
31
30
|
const QueryBuilderDataCube = observer(
|
32
31
|
(props: { queryBuilderState: QueryBuilderState }) => {
|
33
32
|
const { queryBuilderState } = props;
|
34
|
-
const
|
35
|
-
|
36
|
-
)
|
37
|
-
const queryBuilderEngine =
|
38
|
-
createDataCubeEngineFromQueryBuilder(queryBuilderState);
|
39
|
-
if (!queryBuilderEngine) {
|
33
|
+
const engine = createDataCubeEngineFromQueryBuilder(queryBuilderState);
|
34
|
+
|
35
|
+
if (!engine) {
|
40
36
|
return null;
|
41
37
|
}
|
42
|
-
|
43
|
-
return (
|
44
|
-
<DataCubeProvider
|
45
|
-
application={applicationStore}
|
46
|
-
engine={queryBuilderEngine}
|
47
|
-
>
|
48
|
-
<DataCube />
|
49
|
-
</DataCubeProvider>
|
50
|
-
);
|
38
|
+
return <DataCube engine={engine} />;
|
51
39
|
},
|
52
40
|
);
|
53
41
|
|
package/src/index.ts
CHANGED
@@ -127,5 +127,4 @@ export * from './stores/filter/QueryBuilderFilterValueSpecificationBuilder.js';
|
|
127
127
|
export * from './stores/QueryBuilderValueSpecificationHelper.js';
|
128
128
|
export * from './stores/filter/QueryBuilderFilterState.js';
|
129
129
|
export * from './stores/filter/QueryBuilderFilterStateBuilder.js';
|
130
|
-
export * from './stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
|
131
130
|
export * from './stores/data-cube/QueryBuilderDataCubeEngine.js';
|
@@ -33,36 +33,22 @@ import {
|
|
33
33
|
import {
|
34
34
|
_elementPtr,
|
35
35
|
_functionName,
|
36
|
-
DataCubeGetBaseQueryResult,
|
37
36
|
DataCubeEngine,
|
38
|
-
|
39
|
-
DataCubeQuerySource,
|
40
|
-
type DataCubeInfrastructureInfo,
|
37
|
+
DataCubeSource,
|
41
38
|
type RelationType,
|
42
39
|
DataCubeQuery,
|
40
|
+
type DataCubeInitialInput,
|
41
|
+
type CompletionItem,
|
42
|
+
_function,
|
43
|
+
DataCubeFunction,
|
43
44
|
} from '@finos/legend-data-cube';
|
44
|
-
import { guaranteeType, LogService } from '@finos/legend-shared';
|
45
|
+
import { guaranteeType, isNonNullable, LogService } from '@finos/legend-shared';
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
partialQuery: string;
|
50
|
-
source: DataCubeQuerySource;
|
51
|
-
|
52
|
-
constructor(
|
53
|
-
name: string,
|
54
|
-
query: string,
|
55
|
-
partialQuery: string,
|
56
|
-
source: DataCubeQuerySource,
|
57
|
-
) {
|
58
|
-
this.name = name;
|
59
|
-
this.query = query;
|
60
|
-
this.partialQuery = partialQuery;
|
61
|
-
this.source = source;
|
62
|
-
}
|
47
|
+
class QueryBuilderDataCubeSource extends DataCubeSource {
|
48
|
+
mapping?: string | undefined;
|
49
|
+
runtime!: string;
|
63
50
|
}
|
64
51
|
|
65
|
-
export class QueryBuilderDataCubeQuerySource extends DataCubeQuerySource {}
|
66
52
|
export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
67
53
|
readonly logService = new LogService();
|
68
54
|
readonly graphState: GraphManagerState;
|
@@ -90,12 +76,12 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
90
76
|
get sourceLabel(): string {
|
91
77
|
return `Query Builder Report`;
|
92
78
|
}
|
93
|
-
|
79
|
+
|
80
|
+
override getInitialInput(): Promise<DataCubeInitialInput> {
|
94
81
|
return this.buildBaseQuery();
|
95
82
|
}
|
96
83
|
|
97
|
-
async buildBaseQuery(): Promise<
|
98
|
-
const timestamp = Date.now();
|
84
|
+
async buildBaseQuery(): Promise<DataCubeInitialInput> {
|
99
85
|
let srcFuncExp = V1_deserializeValueSpecification(
|
100
86
|
this.graphState.graphManager.serializeRawValueSpecification(
|
101
87
|
this.selectInitialQuery,
|
@@ -121,60 +107,44 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
121
107
|
if (this.runtimePath) {
|
122
108
|
fromFuncExp.parameters.push(_elementPtr(this.runtimePath));
|
123
109
|
}
|
124
|
-
const
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
V1_serializeValueSpecification(fromFuncExp, []),
|
131
|
-
),
|
132
|
-
]);
|
133
|
-
const columns = relationType.columns;
|
134
|
-
const source = new QueryBuilderDataCubeQuerySource();
|
135
|
-
source.columns = columns;
|
110
|
+
const columns = (await this.getRelationalType(this.selectInitialQuery))
|
111
|
+
.columns;
|
112
|
+
const query = new DataCubeQuery();
|
113
|
+
query.query = `~[${columns.map((e) => `'${e.name}'`)}]->select()`;
|
114
|
+
const source = new QueryBuilderDataCubeSource();
|
115
|
+
source.sourceColumns = columns;
|
136
116
|
source.mapping = this.mappingPath;
|
137
117
|
source.runtime = this.runtimePath;
|
138
|
-
source.query =
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
const baseQueryResult = new DataCubeGetBaseQueryResult();
|
144
|
-
baseQueryResult.timestamp = timestamp;
|
145
|
-
baseQueryResult.query = result;
|
146
|
-
baseQueryResult.partialQuery = await this.parseQuery(partialQuery);
|
147
|
-
baseQueryResult.sourceQuery = srcFuncExp;
|
148
|
-
return baseQueryResult;
|
118
|
+
source.query = srcFuncExp;
|
119
|
+
return {
|
120
|
+
query,
|
121
|
+
source,
|
122
|
+
};
|
149
123
|
}
|
150
124
|
|
151
125
|
get graph(): PureModel {
|
152
126
|
return this.graphState.graph;
|
153
127
|
}
|
154
128
|
|
155
|
-
private buildRawLambdaFromValueSpec(query:
|
129
|
+
private buildRawLambdaFromValueSpec(query: V1_Lambda): RawLambda {
|
156
130
|
const json = guaranteeType(
|
157
131
|
V1_deserializeRawValueSpecification(
|
158
|
-
V1_serializeValueSpecification(
|
132
|
+
V1_serializeValueSpecification(
|
133
|
+
query.body[0] as V1_ValueSpecification,
|
134
|
+
[],
|
135
|
+
),
|
159
136
|
),
|
160
137
|
V1_RawLambda,
|
161
138
|
);
|
162
139
|
return new RawLambda(json.parameters, json.body);
|
163
140
|
}
|
164
141
|
|
165
|
-
|
166
|
-
// we return undefined as we assume the grid license is set at the application level where query builder is built
|
167
|
-
return Promise.resolve({
|
168
|
-
gridClientLicense: undefined,
|
169
|
-
simpleSampleDataTableName: '',
|
170
|
-
complexSampleDataTableName: '',
|
171
|
-
});
|
172
|
-
}
|
173
|
-
override async getQueryTypeahead(
|
142
|
+
async getQueryTypeahead(
|
174
143
|
code: string,
|
175
|
-
|
176
|
-
|
177
|
-
|
144
|
+
baseQuery: V1_Lambda,
|
145
|
+
source: DataCubeSource,
|
146
|
+
) {
|
147
|
+
const lambda = this.buildRawLambdaFromValueSpec(baseQuery);
|
178
148
|
const queryString =
|
179
149
|
await this.graphState.graphManager.lambdaToPureCode(lambda);
|
180
150
|
const offset = queryString.length;
|
@@ -184,13 +154,13 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
184
154
|
this.graph,
|
185
155
|
offset,
|
186
156
|
);
|
187
|
-
return result.completions;
|
157
|
+
return result.completions as CompletionItem[];
|
188
158
|
}
|
189
159
|
|
190
|
-
override async
|
160
|
+
override async parseValueSpecification(
|
191
161
|
code: string,
|
192
162
|
returnSourceInformation?: boolean,
|
193
|
-
)
|
163
|
+
) {
|
194
164
|
return V1_deserializeValueSpecification(
|
195
165
|
await this.graphState.graphManager.pureCodeToValueSpecification(
|
196
166
|
code,
|
@@ -200,36 +170,35 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
200
170
|
);
|
201
171
|
}
|
202
172
|
|
203
|
-
override
|
204
|
-
|
173
|
+
override getValueSpecificationCode(
|
174
|
+
value: V1_ValueSpecification,
|
205
175
|
pretty?: boolean | undefined,
|
206
|
-
)
|
176
|
+
) {
|
207
177
|
return this.graphState.graphManager.valueSpecificationToPureCode(
|
208
|
-
V1_serializeValueSpecification(
|
178
|
+
V1_serializeValueSpecification(value, []),
|
209
179
|
pretty,
|
210
180
|
);
|
211
181
|
}
|
212
182
|
|
213
|
-
|
214
|
-
|
215
|
-
): Promise<RelationType> {
|
216
|
-
const lambda = this.buildRawLambdaFromValueSpec(query);
|
217
|
-
return this.getRelationalType(lambda);
|
218
|
-
}
|
219
|
-
|
220
|
-
async getRelationalType(query: RawLambda): Promise<RelationType> {
|
221
|
-
const realtion_type =
|
183
|
+
private async getRelationalType(query: RawLambda): Promise<RelationType> {
|
184
|
+
const relationType =
|
222
185
|
await this.graphState.graphManager.getLambdaRelationType(
|
223
186
|
query,
|
224
187
|
this.graph,
|
225
188
|
);
|
226
|
-
return
|
189
|
+
return relationType;
|
190
|
+
}
|
191
|
+
|
192
|
+
override getQueryRelationType(query: V1_Lambda, source: DataCubeSource) {
|
193
|
+
const lambda = this.buildRawLambdaFromValueSpec(query);
|
194
|
+
return this.getRelationalType(lambda);
|
227
195
|
}
|
228
196
|
|
229
197
|
override async getQueryCodeRelationReturnType(
|
230
198
|
code: string,
|
231
199
|
baseQuery: V1_ValueSpecification,
|
232
|
-
|
200
|
+
source: DataCubeSource,
|
201
|
+
) {
|
233
202
|
const queryString =
|
234
203
|
await this.graphState.graphManager.valueSpecificationToPureCode(
|
235
204
|
V1_serializeValueSpecification(baseQuery, []),
|
@@ -240,11 +209,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
240
209
|
);
|
241
210
|
}
|
242
211
|
|
243
|
-
override async executeQuery(query: V1_Lambda
|
244
|
-
result: TDSExecutionResult;
|
245
|
-
executedQuery: string;
|
246
|
-
executedSQL: string;
|
247
|
-
}> {
|
212
|
+
override async executeQuery(query: V1_Lambda, source: DataCubeSource) {
|
248
213
|
const lambda = this.buildRawLambdaFromValueSpec(query);
|
249
214
|
lambda.parameters = this._parameters;
|
250
215
|
const [executionWithMetadata, queryString] = await Promise.all([
|
@@ -275,4 +240,19 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
|
|
275
240
|
executedSQL: sqlString,
|
276
241
|
};
|
277
242
|
}
|
243
|
+
|
244
|
+
override buildExecutionContext(
|
245
|
+
source: DataCubeSource,
|
246
|
+
): V1_AppliedFunction | undefined {
|
247
|
+
if (source instanceof QueryBuilderDataCubeSource) {
|
248
|
+
return _function(
|
249
|
+
DataCubeFunction.FROM,
|
250
|
+
[
|
251
|
+
source.mapping ? _elementPtr(source.mapping) : undefined,
|
252
|
+
_elementPtr(source.runtime),
|
253
|
+
].filter(isNonNullable),
|
254
|
+
);
|
255
|
+
}
|
256
|
+
return undefined;
|
257
|
+
}
|
278
258
|
}
|
package/tsconfig.json
CHANGED
@@ -99,7 +99,6 @@
|
|
99
99
|
"./src/stores/ServiceInfo.ts",
|
100
100
|
"./src/stores/__test-utils__/QueryBuilderStateTestUtils.ts",
|
101
101
|
"./src/stores/data-access/DataAccessState.ts",
|
102
|
-
"./src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts",
|
103
102
|
"./src/stores/data-cube/QueryBuilderDataCubeEngine.ts",
|
104
103
|
"./src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts",
|
105
104
|
"./src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts",
|
@@ -1,36 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
17
|
-
import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
|
18
|
-
import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
|
19
|
-
export declare class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
|
20
|
-
private readonly application;
|
21
|
-
constructor(application: GenericLegendApplicationStore);
|
22
|
-
get documentationUrl(): string | undefined;
|
23
|
-
getDocumentationEntry(key: string): DocumentationEntry | undefined;
|
24
|
-
openDocumentationEntry(entry: DocumentationEntry): void;
|
25
|
-
shouldDisplayDocumentationEntry(entry: DocumentationEntry): boolean;
|
26
|
-
openLink(url: string): void;
|
27
|
-
setWindowTitle(title: string): void;
|
28
|
-
logDebug(message: string, ...data: unknown[]): void;
|
29
|
-
debugProcess(processName: string, ...data: unknown[]): void;
|
30
|
-
logInfo(event: LogEvent, ...data: unknown[]): void;
|
31
|
-
logWarning(event: LogEvent, ...data: unknown[]): void;
|
32
|
-
logError(event: LogEvent, ...data: unknown[]): void;
|
33
|
-
logUnhandledError(error: Error): void;
|
34
|
-
logIllegalStateError(message: string, error?: Error): void;
|
35
|
-
}
|
36
|
-
//# sourceMappingURL=QueryBuilderDataCubeApplicationEngine.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCubeApplicationEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,qBAAa,qCAAsC,SAAQ,yBAAyB;IAClF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;gBAEhD,WAAW,EAAE,6BAA6B;IAMtD,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIjC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB;IAIhD,+BAA+B,CAAC,KAAK,EAAE,kBAAkB;IAIzD,QAAQ,CAAC,GAAG,EAAE,MAAM;IAIpB,cAAc,CAAC,KAAK,EAAE,MAAM;IAI5B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAQ5C,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IASpD,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI3C,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI9C,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI5C,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAI9B,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAOpD"}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
import { APPLICATION_EVENT, shouldDisplayVirtualAssistantDocumentationEntry, } from '@finos/legend-application';
|
17
|
-
import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
|
18
|
-
import { LogEvent } from '@finos/legend-shared';
|
19
|
-
export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
|
20
|
-
application;
|
21
|
-
constructor(application) {
|
22
|
-
super();
|
23
|
-
this.application = application;
|
24
|
-
}
|
25
|
-
get documentationUrl() {
|
26
|
-
return this.application.documentationService.url;
|
27
|
-
}
|
28
|
-
getDocumentationEntry(key) {
|
29
|
-
return this.application.documentationService.getDocEntry(key);
|
30
|
-
}
|
31
|
-
openDocumentationEntry(entry) {
|
32
|
-
this.currentDocumentationEntry = entry;
|
33
|
-
}
|
34
|
-
shouldDisplayDocumentationEntry(entry) {
|
35
|
-
return shouldDisplayVirtualAssistantDocumentationEntry(entry);
|
36
|
-
}
|
37
|
-
openLink(url) {
|
38
|
-
this.application.navigationService.navigator.visitAddress(url);
|
39
|
-
}
|
40
|
-
setWindowTitle(title) {
|
41
|
-
this.application.layoutService.setWindowTitle(title);
|
42
|
-
}
|
43
|
-
logDebug(message, ...data) {
|
44
|
-
this.application.logService.debug(LogEvent.create(APPLICATION_EVENT.DEBUG), message, ...data);
|
45
|
-
}
|
46
|
-
debugProcess(processName, ...data) {
|
47
|
-
this.application.logService.debug(LogEvent.create(APPLICATION_EVENT.DEBUG), `\n------ START DEBUG PROCESS: ${processName} ------\n`, ...data, `\n------- END DEBUG PROCESS: ${processName} -------\n`);
|
48
|
-
}
|
49
|
-
logInfo(event, ...data) {
|
50
|
-
this.application.logService.info(event, ...data);
|
51
|
-
}
|
52
|
-
logWarning(event, ...data) {
|
53
|
-
this.application.logService.warn(event, ...data);
|
54
|
-
}
|
55
|
-
logError(event, ...data) {
|
56
|
-
this.application.logService.error(event, ...data);
|
57
|
-
}
|
58
|
-
logUnhandledError(error) {
|
59
|
-
this.application.logUnhandledError(error);
|
60
|
-
}
|
61
|
-
logIllegalStateError(message, error) {
|
62
|
-
this.logError(LogEvent.create(APPLICATION_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED), message, error);
|
63
|
-
}
|
64
|
-
}
|
65
|
-
//# sourceMappingURL=QueryBuilderDataCubeApplicationEngine.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDataCubeApplicationEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,+CAA+C,GAEhD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAA2B,MAAM,sBAAsB,CAAC;AAEzE,MAAM,OAAO,qCAAsC,SAAQ,yBAAyB;IACjE,WAAW,CAAgC;IAE5D,YAAY,WAA0C;QACpD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC;IACnD,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAChE,CAAC;IAED,sBAAsB,CAAC,KAAyB;QAC9C,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;IACzC,CAAC;IAED,+BAA+B,CAAC,KAAyB;QACvD,OAAO,+CAA+C,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACjE,CAAC;IAED,cAAc,CAAC,KAAa;QAC1B,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC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/**
|
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
|
-
|
17
|
-
import {
|
18
|
-
APPLICATION_EVENT,
|
19
|
-
shouldDisplayVirtualAssistantDocumentationEntry,
|
20
|
-
type GenericLegendApplicationStore,
|
21
|
-
} from '@finos/legend-application';
|
22
|
-
import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
|
23
|
-
import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
|
24
|
-
|
25
|
-
export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
|
26
|
-
private readonly application: GenericLegendApplicationStore;
|
27
|
-
|
28
|
-
constructor(application: GenericLegendApplicationStore) {
|
29
|
-
super();
|
30
|
-
|
31
|
-
this.application = application;
|
32
|
-
}
|
33
|
-
|
34
|
-
get documentationUrl(): string | undefined {
|
35
|
-
return this.application.documentationService.url;
|
36
|
-
}
|
37
|
-
|
38
|
-
getDocumentationEntry(key: string) {
|
39
|
-
return this.application.documentationService.getDocEntry(key);
|
40
|
-
}
|
41
|
-
|
42
|
-
openDocumentationEntry(entry: DocumentationEntry) {
|
43
|
-
this.currentDocumentationEntry = entry;
|
44
|
-
}
|
45
|
-
|
46
|
-
shouldDisplayDocumentationEntry(entry: DocumentationEntry) {
|
47
|
-
return shouldDisplayVirtualAssistantDocumentationEntry(entry);
|
48
|
-
}
|
49
|
-
|
50
|
-
openLink(url: string) {
|
51
|
-
this.application.navigationService.navigator.visitAddress(url);
|
52
|
-
}
|
53
|
-
|
54
|
-
setWindowTitle(title: string) {
|
55
|
-
this.application.layoutService.setWindowTitle(title);
|
56
|
-
}
|
57
|
-
|
58
|
-
logDebug(message: string, ...data: unknown[]) {
|
59
|
-
this.application.logService.debug(
|
60
|
-
LogEvent.create(APPLICATION_EVENT.DEBUG),
|
61
|
-
message,
|
62
|
-
...data,
|
63
|
-
);
|
64
|
-
}
|
65
|
-
|
66
|
-
debugProcess(processName: string, ...data: unknown[]) {
|
67
|
-
this.application.logService.debug(
|
68
|
-
LogEvent.create(APPLICATION_EVENT.DEBUG),
|
69
|
-
`\n------ START DEBUG PROCESS: ${processName} ------\n`,
|
70
|
-
...data,
|
71
|
-
`\n------- END DEBUG PROCESS: ${processName} -------\n`,
|
72
|
-
);
|
73
|
-
}
|
74
|
-
|
75
|
-
logInfo(event: LogEvent, ...data: unknown[]) {
|
76
|
-
this.application.logService.info(event, ...data);
|
77
|
-
}
|
78
|
-
|
79
|
-
logWarning(event: LogEvent, ...data: unknown[]) {
|
80
|
-
this.application.logService.warn(event, ...data);
|
81
|
-
}
|
82
|
-
|
83
|
-
logError(event: LogEvent, ...data: unknown[]) {
|
84
|
-
this.application.logService.error(event, ...data);
|
85
|
-
}
|
86
|
-
|
87
|
-
logUnhandledError(error: Error) {
|
88
|
-
this.application.logUnhandledError(error);
|
89
|
-
}
|
90
|
-
|
91
|
-
logIllegalStateError(message: string, error?: Error) {
|
92
|
-
this.logError(
|
93
|
-
LogEvent.create(APPLICATION_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED),
|
94
|
-
message,
|
95
|
-
error,
|
96
|
-
);
|
97
|
-
}
|
98
|
-
}
|