@finos/legend-query-builder 4.14.21 → 4.14.22
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +132 -67
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +1 -0
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +1 -0
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/index.css +16 -0
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +2 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +11 -4
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.js +1 -1
- package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +6 -3
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +7 -2
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js +46 -29
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
- package/package.json +6 -6
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +2 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +1 -0
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +232 -140
- package/src/components/result/QueryBuilderResultPanel.tsx +1 -0
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +1 -0
- package/src/stores/QueryBuilderResultState.ts +13 -4
- package/src/stores/QueryBuilderStateHashUtils.ts +1 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +16 -3
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +70 -38
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts +1 -1
@@ -17,6 +17,7 @@ export declare enum QUERY_BUILDER_TEST_ID {
|
|
17
17
|
LAMBDA_EDITOR__EDITOR_INPUT = "lambda-editor__editor__input",
|
18
18
|
QUERY_BUILDER = "query__builder",
|
19
19
|
QUERY_BUILDER_SETUP = "query__builder__setup",
|
20
|
+
QUERY_BUILDER_FETCH_STRUCTURE = "query__builder__fetch__structure",
|
20
21
|
QUERY_BUILDER_TDS_PROJECTION = "query__builder__tds__projection",
|
21
22
|
QUERY_BUILDER_TDS = "query__builder__tds",
|
22
23
|
QUERY_BUILDER_TDS_PROJECTION_COLUMN = "QUERY_BUILDER_TDS_PROJECTION_COLUMN",
|
@@ -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,mBAAmB,0BAA0B;IAC7C,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IACrF,gDAAgD,0DAA0D;IAC1G,8CAA8C,qDAAqD;IAEnG,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;IACpD,0BAA0B,iCAAiC;IAE3D,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,wCAAwC,+CAA+C;IACvF,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IAEpE,mCAAmC,4CAA4C;IAC/E,mDAAmD,0DAA0D;CAC9G"}
|
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,mBAAmB,0BAA0B;IAC7C,6BAA6B,qCAAqC;IAClE,4BAA4B,oCAAoC;IAChE,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IACrF,gDAAgD,0DAA0D;IAC1G,8CAA8C,qDAAqD;IAEnG,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;IACpD,0BAA0B,iCAAiC;IAE3D,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,wCAAwC,+CAA+C;IACvF,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IAEpE,mCAAmC,4CAA4C;IAC/E,mDAAmD,0DAA0D;CAC9G"}
|
@@ -18,6 +18,7 @@ export var QUERY_BUILDER_TEST_ID;
|
|
18
18
|
QUERY_BUILDER_TEST_ID["LAMBDA_EDITOR__EDITOR_INPUT"] = "lambda-editor__editor__input";
|
19
19
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER"] = "query__builder";
|
20
20
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_SETUP"] = "query__builder__setup";
|
21
|
+
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FETCH_STRUCTURE"] = "query__builder__fetch__structure";
|
21
22
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS_PROJECTION"] = "query__builder__tds__projection";
|
22
23
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS"] = "query__builder__tds";
|
23
24
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_TDS_PROJECTION_COLUMN"] = "QUERY_BUILDER_TDS_PROJECTION_COLUMN";
|
@@ -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,qBAmCX;AAnCD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,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,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,4HAAmG,CAAA;IACnG,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;IACpD,oFAA2D,CAAA;IAC3D,eAAe;IACf,oFAA2D,CAAA;IAC3D,4FAAmE,CAAA;IACnE,gHAAuF,CAAA;IACvF,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,wBAAwB;IACxB,wGAA+E,CAAA;IAC/E,sIAA6G,CAAA;AAC/G,CAAC,EAnCW,qBAAqB,KAArB,qBAAqB,QAmChC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAyC3E,eAAO,MAAM,+BAA+B,WAClC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsDjD,CAAC"}
|
@@ -23,6 +23,7 @@ import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuil
|
|
23
23
|
import { QueryBuilderGraphFetchTreeState } from '../../stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js';
|
24
24
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
25
25
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js';
|
26
|
+
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
26
27
|
const QueryBuilderFetchStructureEditor = observer((props) => {
|
27
28
|
const { queryBuilderState } = props;
|
28
29
|
const fetchStructureState = queryBuilderState.fetchStructureState;
|
@@ -45,7 +46,7 @@ export const QueryBuilderFetchStructurePanel = observer((props) => {
|
|
45
46
|
});
|
46
47
|
}
|
47
48
|
};
|
48
|
-
return (_jsxs(Panel, { children: [_jsxs(PanelHeader, { children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "fetch structure" }), fetchStructureState.implementation.fetchStructureValidationIssues
|
49
|
+
return (_jsxs(Panel, { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FETCH_STRUCTURE, children: [_jsxs(PanelHeader, { children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "fetch structure" }), fetchStructureState.implementation.fetchStructureValidationIssues
|
49
50
|
.length !== 0 && (_jsx(QueryBuilderPanelIssueCountBadge, { issues: fetchStructureState.implementation
|
50
51
|
.fetchStructureValidationIssues }))] }), _jsx(PanelHeaderActions, { children: _jsx("div", { className: "query-builder__fetch__structure__modes", children: Object.values(FETCH_STRUCTURE_IMPLEMENTATION).map((type) => (_jsx("button", { onClick: onChangeFetchStructureImplementation(type), className: clsx('query-builder__fetch__structure__mode', {
|
51
52
|
'query-builder__fetch__structure__mode--selected': type === fetchStructureState.implementation.type,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6EAA6E,CAAC;AAC9H,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,+EAA+E,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderFetchStructurePanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,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sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwFH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AA24BrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAiT3C,CAAC"}
|
@@ -347,7 +347,7 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
|
|
347
347
|
}), children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__projection__column__aggregate__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsx("div", { className: "query-builder__projection__column__actions", children: _jsx("button", { className: "query-builder__projection__column__action", tabIndex: -1, onClick: removeColumn, disabled: isRemovalDisabled, title: isRemovalDisabled
|
348
348
|
? // TODO: We may want to provide a list of all places where column is in use
|
349
349
|
"This column is used and can't be removed"
|
350
|
-
: 'Remove', children: _jsx(TimesIcon, {}) }) })] }), isCalendarEnabled &&
|
350
|
+
: 'Remove', name: "Remove", children: _jsx(TimesIcon, {}) }) })] }), isCalendarEnabled &&
|
351
351
|
aggregateColumnState &&
|
352
352
|
aggregateCalendarFunctions.length > 0 && (_jsxs("div", { className: clsx('query-builder__projection__calendar__container', {
|
353
353
|
'query-builder__projection__calendar__container--hidden': aggregateColumnState.hideCalendarColumnState,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OA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AI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;4CAChC,CAAC,CAAC,WAAW;4CACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3D,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,EACpC,kCAAkC,EAChC,kCAAkC,EAEpC,4BAA4B,EAC1B,4BAA4B,EAE9B,qCAAqC,EACnC,qCAAqC,EAEvC,+BAA+B,EAC7B,+BAA+B,EAEjC,SAAS,EAAE,SAAS,IAff,qBAAqB,CAAC,IAAI,CAgB/B,CACH,CAAC,IACE,GACF,CACP,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,GAEX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,YAAY,EAC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,CAAC,CAAC,qBAAqB,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3D,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,EACpC,kCAAkC,EAChC,kCAAkC,EAEpC,4BAA4B,EAC1B,4BAA4B,EAE9B,qCAAqC,EACnC,qCAAqC,EAEvC,+BAA+B,EAC7B,+BAA+B,EAEjC,SAAS,EAAE,SAAS,IAff,qBAAqB,CAAC,IAAI,CAgB/B,CACH,CAAC,IACE,GACF,CACP,EACA,WAAW,IAAI,CAAC,OAAO,IAAI,CAC1B,cACE,GAAG,EAAE,gBAAgB,EACrB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,yBAAyB,YAE/B,mBAAK,GACyB,GAC5B,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSWindowPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"QueryBuilderTDSWindowPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA+CH,OAAO,EACL,KAAK,uBAAuB,EAQ7B,MAAM,oEAAoE,CAAC;AAkoC5E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,cAAc,EAAE,uBAAuB,CAAA;CAAE;;CAgHpD,CAAC"}
|
@@ -16,11 +16,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
16
16
|
*/
|
17
17
|
import { useApplicationStore } from '@finos/legend-application';
|
18
18
|
import { PlusIcon, PanelContent, PanelDropZone, BlankPanelPlaceholder, DropdownMenu, InputWithInlineValidation, MenuContent, MenuContentItem, SigmaIcon, CaretDownIcon, clsx, PanelEntryDropZonePlaceholder, ContextMenu, TimesIcon, useDragPreviewLayer, SortIcon, Dialog, CustomSelectorInput, WindowIcon, BasePopover, EditIcon, ModalHeader, Modal, ModalFooter, PanelFormSection, ModalFooterButton, PanelEntryDragHandle, PanelDnDEntry, PanelHeaderActionItem, PanelHeader, PanelHeaderActions, Panel, } from '@finos/legend-art';
|
19
|
-
import { assertErrorThrown, guaranteeNonNullable } from '@finos/legend-shared';
|
19
|
+
import { assertErrorThrown, clone, deleteEntry, guaranteeNonNullable, } from '@finos/legend-shared';
|
20
20
|
import { observer } from 'mobx-react-lite';
|
21
21
|
import { forwardRef, useCallback, useRef, useState } from 'react';
|
22
22
|
import { useDrag, useDrop } from 'react-dnd';
|
23
|
-
import { QueryBuilderWindowColumnState, QueryBuilderTDS_WindowRankOperatorState, QueryBuilderTDS_WindowAggreationOperatorState, QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE, } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
|
23
|
+
import { QueryBuilderWindowColumnState, QueryBuilderTDS_WindowRankOperatorState, QueryBuilderTDS_WindowAggreationOperatorState, QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE, WindowGroupByColumnSortByState, } from '../../stores/fetch-structure/tds/window/QueryBuilderWindowState.js';
|
24
24
|
import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
25
25
|
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
26
26
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
@@ -30,12 +30,19 @@ const createWindowColumnState = (columnState, tdsState) => {
|
|
30
30
|
const operator = tdsState.windowState.operators.filter((o) => o.isColumnAggregator() &&
|
31
31
|
o.isCompatibleWithType(columnState.getColumnType()))[0];
|
32
32
|
const nonColoperator = guaranteeNonNullable(tdsState.windowState.operators.filter((o) => !o.isColumnAggregator())[0]);
|
33
|
+
const columnName = operator
|
34
|
+
? operator.isColumnAggregator()
|
35
|
+
? `${operator.getLabel()} of ${columnState.columnName}`
|
36
|
+
: columnState.columnName
|
37
|
+
: nonColoperator.isColumnAggregator()
|
38
|
+
? `${nonColoperator.getLabel()} of ${columnState.columnName}`
|
39
|
+
: columnState.columnName;
|
33
40
|
if (operator) {
|
34
41
|
const opState = new QueryBuilderTDS_WindowAggreationOperatorState(tdsState.windowState, operator, columnState);
|
35
|
-
return new QueryBuilderWindowColumnState(tdsState.windowState, [], undefined, opState,
|
42
|
+
return new QueryBuilderWindowColumnState(tdsState.windowState, [], undefined, opState, columnName);
|
36
43
|
}
|
37
44
|
else {
|
38
|
-
return new QueryBuilderWindowColumnState(tdsState.windowState, [columnState], undefined, new QueryBuilderTDS_WindowRankOperatorState(tdsState.windowState, nonColoperator),
|
45
|
+
return new QueryBuilderWindowColumnState(tdsState.windowState, [columnState], undefined, new QueryBuilderTDS_WindowRankOperatorState(tdsState.windowState, nonColoperator), columnName);
|
39
46
|
}
|
40
47
|
};
|
41
48
|
const QueryBuilderWindowColumnContextMenu = observer(forwardRef(function QueryBuilderWindowGroupByColumnContextMenu(props, ref) {
|
@@ -64,67 +71,125 @@ const TDSColumnSelectorEditor = observer((props) => {
|
|
64
71
|
return (_jsxs("div", { className: "panel__content__form__section__list__item query-builder__projection__options__sort", children: [_jsx(CustomSelectorInput, { className: "query-builder__projection__options__sort__dropdown", options: options, disabled: options.length < 1, onChange: onChange, value: value, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled }), _jsx("button", { className: "query-builder__olap__tds__column__remove-btn btn--dark btn--caution", onClick: removeColumn, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) })] }));
|
65
72
|
});
|
66
73
|
const QueryBuilderWindowColumnModalEditor = observer((props) => {
|
74
|
+
// Read state
|
67
75
|
const { windowState, windowColumnState } = props;
|
68
|
-
const
|
76
|
+
const isNewWindowFunction = !windowState.windowColumns.includes(windowColumnState);
|
69
77
|
const tdsState = windowState.tdsState;
|
70
78
|
const applicationStore = useApplicationStore();
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
const isDuplicatedColumnName =
|
79
|
+
// Column name
|
80
|
+
const [selectedColumnName, setSelectedColumnName] = useState(windowColumnState.columnName);
|
81
|
+
const changeColumnName = (event) => setSelectedColumnName(event.target.value);
|
82
|
+
const isDuplicatedColumnName = isNewWindowFunction
|
75
83
|
? windowState.tdsState.tdsColumns
|
76
84
|
.map((c) => c.columnName)
|
77
|
-
.
|
78
|
-
: windowState.tdsState.
|
79
|
-
|
85
|
+
.filter((name) => name === selectedColumnName).length > 0
|
86
|
+
: windowState.tdsState.tdsColumns
|
87
|
+
.map((c) => c.columnName)
|
88
|
+
.filter((name) => name === selectedColumnName).length > 0 &&
|
89
|
+
selectedColumnName !== windowColumnState.columnName;
|
90
|
+
// Window operator
|
91
|
+
const operators = windowState.operators;
|
92
|
+
const operatorState = windowColumnState.operatorState;
|
93
|
+
const [selectedOperatorState, setSelectedOperatorState] = useState(() => {
|
94
|
+
if (operatorState instanceof QueryBuilderTDS_WindowAggreationOperatorState) {
|
95
|
+
return new QueryBuilderTDS_WindowAggreationOperatorState(operatorState.windowState, operatorState.operator, operatorState.columnState);
|
96
|
+
}
|
97
|
+
return new QueryBuilderTDS_WindowRankOperatorState(operatorState.windowState, operatorState.operator);
|
98
|
+
});
|
99
|
+
const windowOperatorColumn = selectedOperatorState instanceof
|
100
|
+
QueryBuilderTDS_WindowAggreationOperatorState
|
101
|
+
? selectedOperatorState.columnState
|
102
|
+
: undefined;
|
103
|
+
const changeWindowOperatorColumn = (val) => {
|
104
|
+
if (selectedOperatorState instanceof
|
105
|
+
QueryBuilderTDS_WindowAggreationOperatorState &&
|
106
|
+
val !== null) {
|
107
|
+
const newOpertorState = clone(selectedOperatorState);
|
108
|
+
const newColumnName = newOpertorState.operator.isColumnAggregator()
|
109
|
+
? `${newOpertorState.operator.getLabel()} of ${val.value.columnName}`
|
110
|
+
: val.value.columnName;
|
111
|
+
newOpertorState.setColumnState(val.value);
|
112
|
+
setSelectedOperatorState(newOpertorState);
|
113
|
+
setSelectedColumnName(newColumnName);
|
114
|
+
}
|
115
|
+
};
|
116
|
+
const changeOperator = (newOperator) => () => {
|
117
|
+
const stateAndName = windowColumnState.getChangeOperatorStateAndColumnName(selectedOperatorState.operator, windowOperatorColumn, newOperator);
|
118
|
+
if (stateAndName) {
|
119
|
+
setSelectedOperatorState(stateAndName.operatorState);
|
120
|
+
setSelectedColumnName(stateAndName.columnName);
|
121
|
+
}
|
122
|
+
};
|
123
|
+
const allColumns = isNewWindowFunction
|
80
124
|
? tdsState.tdsColumns
|
81
125
|
: windowColumnState.possibleReferencedColumns;
|
82
|
-
const
|
126
|
+
const allColumnsOptions = allColumns.map((w) => ({
|
83
127
|
label: w.columnName,
|
84
128
|
value: w,
|
85
129
|
}));
|
86
|
-
//
|
87
|
-
const
|
88
|
-
|
89
|
-
|
90
|
-
const
|
91
|
-
const
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
operationState.setColumnState(val.value);
|
98
|
-
}
|
130
|
+
// Window columns
|
131
|
+
const [selectedWindowColumns, setSelectedWindowColumns] = useState([
|
132
|
+
...windowColumnState.windowColumns,
|
133
|
+
]);
|
134
|
+
const availableColumns = allColumns.filter((e) => !selectedWindowColumns.includes(e));
|
135
|
+
const addWindowColumn = () => {
|
136
|
+
if (availableColumns.length > 0) {
|
137
|
+
setSelectedWindowColumns([
|
138
|
+
...selectedWindowColumns,
|
139
|
+
guaranteeNonNullable(availableColumns[0]),
|
140
|
+
]);
|
99
141
|
}
|
100
142
|
};
|
101
|
-
const
|
102
|
-
|
143
|
+
const updateWindowColumn = (idx, column) => {
|
144
|
+
const newWindowColumns = clone(selectedWindowColumns);
|
145
|
+
newWindowColumns[idx] = column;
|
146
|
+
setSelectedWindowColumns(newWindowColumns);
|
103
147
|
};
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
close();
|
148
|
+
const deleteWindowColumn = (column) => {
|
149
|
+
const newWindowColumns = clone(selectedWindowColumns);
|
150
|
+
deleteEntry(newWindowColumns, column);
|
151
|
+
setSelectedWindowColumns(newWindowColumns);
|
109
152
|
};
|
110
|
-
|
111
|
-
|
112
|
-
|
153
|
+
// Sort by
|
154
|
+
const [selectedSortBy, setSelectedSortBy] = useState(() => {
|
155
|
+
const sortBy = windowColumnState.sortByState;
|
156
|
+
if (sortBy) {
|
157
|
+
return new WindowGroupByColumnSortByState(sortBy.columnState, sortBy.sortType);
|
113
158
|
}
|
114
|
-
|
115
|
-
|
116
|
-
const sortByState = windowColumnState.sortByState;
|
159
|
+
return undefined;
|
160
|
+
});
|
117
161
|
const changeSortBy = (sortOp) => () => {
|
118
|
-
|
162
|
+
if (selectedSortBy?.sortType !== sortOp) {
|
163
|
+
if (sortOp) {
|
164
|
+
const newSortByState = new WindowGroupByColumnSortByState(selectedSortBy?.columnState
|
165
|
+
? selectedSortBy.columnState
|
166
|
+
: guaranteeNonNullable(windowColumnState.possibleReferencedColumns[0]), sortOp);
|
167
|
+
setSelectedSortBy(newSortByState);
|
168
|
+
}
|
169
|
+
else {
|
170
|
+
setSelectedSortBy(undefined);
|
171
|
+
}
|
172
|
+
}
|
119
173
|
};
|
120
174
|
const changeSortCol = (val) => {
|
121
|
-
if (
|
122
|
-
|
123
|
-
|
124
|
-
}
|
175
|
+
if (selectedSortBy && val !== null) {
|
176
|
+
const newSortByState = new WindowGroupByColumnSortByState(val.value, selectedSortBy.sortType);
|
177
|
+
setSelectedSortBy(newSortByState);
|
125
178
|
}
|
126
179
|
};
|
127
|
-
|
180
|
+
// Modal lifecycle actions
|
181
|
+
const handleCancel = () => {
|
182
|
+
windowState.setEditColumn(undefined);
|
183
|
+
};
|
184
|
+
const handleApply = () => {
|
185
|
+
windowColumnState.setColumnName(selectedColumnName);
|
186
|
+
windowColumnState.setOperatorState(selectedOperatorState);
|
187
|
+
windowColumnState.setWindows(selectedWindowColumns);
|
188
|
+
windowColumnState.setSortBy(selectedSortBy);
|
189
|
+
windowState.addWindowColumn(windowColumnState);
|
190
|
+
handleCancel();
|
191
|
+
};
|
192
|
+
return (_jsx(Dialog, { open: Boolean(windowState.editColumn), onClose: handleCancel, classes: {
|
128
193
|
root: 'editor-modal__root-container',
|
129
194
|
container: 'editor-modal__container',
|
130
195
|
paper: 'editor-modal__content',
|
@@ -134,15 +199,15 @@ const QueryBuilderWindowColumnModalEditor = observer((props) => {
|
|
134
199
|
'query-editor--light': applicationStore.layoutService
|
135
200
|
.TEMPORARY__isLightColorThemeEnabled,
|
136
201
|
},
|
137
|
-
]), children: [_jsx(ModalHeader, { title:
|
202
|
+
]), children: [_jsx(ModalHeader, { title: isNewWindowFunction
|
138
203
|
? 'Create Window Function Column'
|
139
|
-
: 'Update Window Function Column' }), _jsxs("div", { className: "query-builder__olap__modal__body", children: [_jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Window Operator" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Window aggregation function to apply and column if required by function" }), _jsx("div", { className: "panel__content__form__section__list", children: _jsx("div", { className: "panel__content__form__section__list__items", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [_jsx("div", { className:
|
140
|
-
|
141
|
-
|
142
|
-
value: windowOpColumn,
|
143
|
-
label: windowOpColumn.columnName,
|
204
|
+
: 'Update Window Function Column' }), _jsxs("div", { className: "query-builder__olap__modal__body", children: [_jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Window Operator" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Window aggregation function to apply and column if required by function" }), _jsx("div", { className: "panel__content__form__section__list", children: _jsx("div", { className: "panel__content__form__section__list__items", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [windowOperatorColumn && (_jsx("div", { className: "panel__content__form__section__list__item query-builder__olap__tds__column__options", children: _jsx(CustomSelectorInput, { className: "query-builder__olap__tds__column__dropdown", options: allColumnsOptions, disabled: allColumnsOptions.length < 1, onChange: changeWindowOperatorColumn, value: {
|
205
|
+
value: windowOperatorColumn,
|
206
|
+
label: windowOperatorColumn.columnName,
|
144
207
|
}, darkMode: !applicationStore.layoutService
|
145
|
-
.TEMPORARY__isLightColorThemeEnabled }) })),
|
208
|
+
.TEMPORARY__isLightColorThemeEnabled }) })), _jsx("div", { className: clsx('query-builder__olap__column__operation__operator__label', {
|
209
|
+
'query-builder__olap__column__operation__operator__label__agg': !windowOperatorColumn,
|
210
|
+
}), children: selectedOperatorState.operator.getLabel() }), _jsxs(DropdownMenu, { className: "query-builder__olap__column__operation__operator__dropdown", title: "Choose Window Function Operator...", disabled: !operators.length, content: _jsx(MenuContent, { children: operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder__olap__column__operation__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
|
146
211
|
anchorOrigin: {
|
147
212
|
vertical: 'bottom',
|
148
213
|
horizontal: 'left',
|
@@ -152,17 +217,17 @@ const QueryBuilderWindowColumnModalEditor = observer((props) => {
|
|
152
217
|
horizontal: 'left',
|
153
218
|
},
|
154
219
|
elevation: 7,
|
155
|
-
}, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge",
|
156
|
-
value:
|
157
|
-
label:
|
220
|
+
}, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge", children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__operation__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }) })] }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Window Columns" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Represents the window of columns that will partition the rows for which to apply the aggregate function" }), _jsxs("div", { className: "panel__content__form__section__list", children: [_jsx("div", { className: "panel__content__form__section__list__items", children: selectedWindowColumns.map((value, idx) => (_jsx(TDSColumnSelectorEditor, { colValue: value, setColumn: (v) => updateWindowColumn(idx, v), deleteColumn: (v) => deleteWindowColumn(v), tdsColOptions: availableColumns }, value.uuid))) }), _jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: !availableColumns.length, onClick: addWindowColumn, tabIndex: -1, children: "Add Value" }) })] })] }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Sort By" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Orders by the designated column" }), _jsx("div", { className: "panel__content__form__section__header__prompt" }), _jsx("div", { className: "panel__content__form__section__list", children: _jsxs("div", { className: "query-builder__olap__column__sortby__operator", children: [selectedSortBy && (_jsx("div", { className: "panel__content__form__section__list__item query-builder__olap__tds__column__options", children: _jsx(CustomSelectorInput, { className: "query-builder__olap__tds__column__dropdown", options: allColumnsOptions, disabled: allColumnsOptions.length < 1, onChange: changeSortCol, value: {
|
221
|
+
value: selectedSortBy.columnState,
|
222
|
+
label: selectedSortBy.columnState.columnName,
|
158
223
|
}, darkMode: !applicationStore.layoutService
|
159
|
-
.TEMPORARY__isLightColorThemeEnabled }) })), !
|
224
|
+
.TEMPORARY__isLightColorThemeEnabled }) })), !selectedSortBy && (_jsx("div", { className: "query-builder__olap__column__sortby__none", children: "(none)" })), selectedSortBy && (_jsx("div", { className: "query-builder__olap__column__sortby__operator__label", children: selectedSortBy.sortType.toLowerCase() })), _jsxs(DropdownMenu, { className: "query-builder__olap__column__sortby__operator__dropdown", title: "Choose Window Function SortBy Operator...", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(undefined), children: "(none)" }, "none"), Object.values(COLUMN_SORT_TYPE).map((op) => (_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(op), children: op.toLowerCase() }, op)))] }), menuProps: {
|
160
225
|
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
161
226
|
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
162
227
|
elevation: 7,
|
163
228
|
}, children: [_jsx("div", { className: clsx('query-builder__olap__column__sortby__operator__badge', {
|
164
|
-
'query-builder__olap__column__sortby__operator__badge--activated': Boolean(
|
165
|
-
}), tabIndex: -1,
|
229
|
+
'query-builder__olap__column__sortby__operator__badge--activated': Boolean(selectedSortBy),
|
230
|
+
}), tabIndex: -1, children: _jsx(SortIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__sortby__operator__dropdown__trigger", tabIndex: -1, children: _jsx(CaretDownIcon, {}) })] })] }) })] }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Window Function Column Name" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Name of Window Function Column that will be part of TDS Result" }), _jsx(InputWithInlineValidation, { className: "query-builder__olap__column__name__input input-group__input", spellCheck: false, value: selectedColumnName, onChange: changeColumnName, error: isDuplicatedColumnName ? 'Duplicated column' : undefined })] })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { text: isNewWindowFunction ? 'Create' : 'Apply', onClick: handleApply, disabled: isDuplicatedColumnName }), _jsx(ModalFooterButton, { text: "Cancel", onClick: handleCancel, type: "secondary" })] })] }) }));
|
166
231
|
});
|
167
232
|
const TDSColumnReferenceEditor = observer((props) => {
|
168
233
|
const { handleChange, tdsColumn, selectionEditor } = props;
|
@@ -247,7 +312,7 @@ const QueryBuilderWindowColumnEditor = observer((props) => {
|
|
247
312
|
}
|
248
313
|
};
|
249
314
|
// operator
|
250
|
-
const operationState = windowColumnState.
|
315
|
+
const operationState = windowColumnState.operatorState;
|
251
316
|
const aggregateColumn = operationState instanceof QueryBuilderTDS_WindowAggreationOperatorState
|
252
317
|
? operationState.columnState
|
253
318
|
: undefined;
|
@@ -343,29 +408,29 @@ const QueryBuilderWindowColumnEditor = observer((props) => {
|
|
343
408
|
}), [handleWindowDrop]);
|
344
409
|
return (_jsx(PanelDnDEntry, { ref: ref, className: "query-builder__olap__column", showPlaceholder: isBeingDragged, children: _jsxs(ContextMenu, { content: _jsx(QueryBuilderWindowColumnContextMenu, { columnState: windowColumnState }), className: clsx('query-builder__olap__column__context-menu', {
|
345
410
|
'query-builder__olap__column--selected-from-context-menu': isSelectedFromContextMenu,
|
346
|
-
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(PanelEntryDragHandle, { isDragging: isBeingDragged, className: "query-builder__olap__column__drag-handle__container", dragSourceConnector: handleRef }), _jsx("div", { className: "query-builder__olap__column__operation", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [_jsx(
|
347
|
-
'query-builder__olap__column__operation__operator__label__agg': !aggregateColumn,
|
348
|
-
}), children: operationState.operator.getLabel() }), aggregateColumn && (_jsx(TDSColumnReferenceEditor, { tdsColumn: aggregateColumn, handleChange: handleOpDrop, selectionEditor: {
|
411
|
+
}), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: [_jsx(PanelEntryDragHandle, { isDragging: isBeingDragged, className: "query-builder__olap__column__drag-handle__container", dragSourceConnector: handleRef }), _jsx("div", { className: "query-builder__olap__column__operation", children: _jsxs("div", { className: "query-builder__olap__column__operation__operator", children: [aggregateColumn && (_jsx(TDSColumnReferenceEditor, { tdsColumn: aggregateColumn, handleChange: handleOpDrop, selectionEditor: {
|
349
412
|
options: windowColumnState.possibleReferencedColumns,
|
350
|
-
} })),
|
413
|
+
} })), _jsx("div", { className: clsx('query-builder__olap__column__operation__operator__label', {
|
414
|
+
'query-builder__olap__column__operation__operator__label__agg': !aggregateColumn,
|
415
|
+
}), children: operationState.operator.getLabel() }), _jsxs(DropdownMenu, { className: "query-builder__olap__column__operation__operator__dropdown", disabled: !operators.length, title: "Choose Window Function Operator...", content: _jsx(MenuContent, { children: operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder__olap__column__operation__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel() }, op.uuid))) }), menuProps: {
|
351
416
|
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
352
417
|
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
353
418
|
elevation: 7,
|
354
|
-
}, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge",
|
419
|
+
}, children: [_jsx("div", { className: "query-builder__olap__column__operation__operator__badge", children: _jsx(SigmaIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__operation__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsxs("div", { className: "query-builder__olap__column__window", children: [_jsx("button", { ref: dropOpConnector, title: "Click to edit or drag and drop columns", onClick: openWindowPopover, className: "query-builder__olap__column__window__content", children: _jsxs(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Add", children: [_jsxs("div", { title: `${windowColumnState.windowColumns.length} columns partitioned`, className: "query-builder__olap__column__window__content__label", children: ["(", windowColumnState.windowColumns.length, ")"] }), _jsx("div", { className: clsx('query-builder__olap__column__window__operator__badge'), tabIndex: -1, title: "Edit window columns...", children: _jsx(WindowIcon, {}) })] }) }), _jsx(BasePopover, { open: Boolean(windowAnchor), anchorEl: windowAnchor, onClose: closeWindowPopover, anchorOrigin: {
|
355
420
|
vertical: 'bottom',
|
356
421
|
horizontal: 'center',
|
357
422
|
}, transformOrigin: {
|
358
423
|
vertical: 'top',
|
359
424
|
horizontal: 'center',
|
360
|
-
}, children: _jsx("div", { className: "query-builder__olap__column__window__popover", children: _jsxs("div", { className: "panel__content__form__section__list", children: [_jsx("div", { className: "panel__content__form__section__list__items", children: windowColumnState.windowColumns.map((value, idx) => (_jsx(TDSColumnSelectorEditor, { colValue: value, setColumn: (v) => windowColumnState.changeWindow(v, idx), deleteColumn: (v) => windowColumnState.deleteWindow(v), tdsColOptions:
|
425
|
+
}, children: _jsx("div", { className: "query-builder__olap__column__window__popover", children: _jsxs("div", { className: "panel__content__form__section__list", children: [_jsx("div", { className: "panel__content__form__section__list__items", children: windowColumnState.windowColumns.map((value, idx) => (_jsx(TDSColumnSelectorEditor, { colValue: value, setColumn: (v) => windowColumnState.changeWindow(v, idx), deleteColumn: (v) => windowColumnState.deleteWindow(v), tdsColOptions: addWindowOptions }, value.uuid))) }), _jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: !addWindowOptions.length, onClick: addWindowValue, tabIndex: -1, children: "Add Value" }) })] }) }) })] }), _jsx("div", { className: "query-builder__olap__column__sortby", children: _jsxs("div", { className: "query-builder__olap__column__sortby__operator", children: [sortByState && (_jsx(TDSColumnReferenceEditor, { tdsColumn: sortByState.columnState, handleChange: handleSortDrop, selectionEditor: {
|
361
426
|
options: windowColumnState.possibleReferencedColumns,
|
362
|
-
} })), !sortByState && (_jsx("div", { className: "query-builder__olap__column__sortby__none", children: "(none)" })), _jsxs(DropdownMenu, { className: "query-builder__olap__column__sortby__operator__dropdown", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(undefined), children: "(none)" }, "none"), Object.values(COLUMN_SORT_TYPE).map((op) => (_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(op), children: op.toLowerCase() }, op)))] }), menuProps: {
|
427
|
+
} })), !sortByState && (_jsx("div", { className: "query-builder__olap__column__sortby__none", children: "(none)" })), sortByState && (_jsx("div", { className: "query-builder__olap__column__sortby__operator__label", children: sortByState.sortType.toLowerCase() })), _jsxs(DropdownMenu, { className: "query-builder__olap__column__sortby__operator__dropdown", title: "Choose Window Function SortBy Operator...", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(undefined), children: "(none)" }, "none"), Object.values(COLUMN_SORT_TYPE).map((op) => (_jsx(MenuContentItem, { className: "query-builder__olap__column__sortby__operator__dropdown__option", onClick: changeSortBy(op), children: op.toLowerCase() }, op)))] }), menuProps: {
|
363
428
|
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
364
429
|
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
365
430
|
elevation: 7,
|
366
431
|
}, children: [_jsx("div", { className: clsx('query-builder__olap__column__sortby__operator__badge', {
|
367
432
|
'query-builder__olap__column__sortby__operator__badge--activated': Boolean(sortByState),
|
368
|
-
}),
|
433
|
+
}), children: _jsx(SortIcon, {}) }), _jsx("div", { className: "query-builder__olap__column__sortby__operator__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] })] }) }), _jsx("div", { className: "query-builder__olap__column__name", children: _jsx(InputWithInlineValidation, { className: "query-builder__olap__column__name__input input-group__input", spellCheck: false, value: windowColumnState.columnName, onChange: changeColumnName, error: isDuplicatedColumnName
|
369
434
|
? 'Duplicated column'
|
370
435
|
: isInvalidColumnName
|
371
436
|
? 'Invalid column order'
|