@finos/legend-extension-dsl-data-space 10.3.46 → 10.3.47
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts +2 -2
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts.map +1 -1
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js +5 -3
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilder.js +22 -6
- package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js +2 -2
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +8 -8
- package/src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts +6 -4
- package/src/components/query-builder/DataSpaceQueryBuilder.tsx +49 -1
- package/src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +3 -9
@@ -16,10 +16,10 @@
|
|
16
16
|
export declare enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
17
17
|
GAV = "gav",
|
18
18
|
DATA_SPACE_PATH = "dataSpacePath",
|
19
|
-
EXECUTION_CONTEXT = "executionContext"
|
20
|
-
RUNTIME_PATH = "runtimePath"
|
19
|
+
EXECUTION_CONTEXT = "executionContext"
|
21
20
|
}
|
22
21
|
export declare enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
22
|
+
RUNTIME_PATH = "runtimePath",
|
23
23
|
CLASS_PATH = "class"
|
24
24
|
}
|
25
25
|
export declare enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts","sourceRoot":"","sources":["../../../src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,4CAA4C;IACtD,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts","sourceRoot":"","sources":["../../../src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,4CAA4C;IACtD,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;CACvC;AAED,oBAAY,0CAA0C;IACpD,YAAY,gBAAgB;IAC5B,UAAU,UAAU;CACrB;AAED,oBAAY,qDAAqD;IAC/D,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,QAAQ,aAAa;IACrB,iBAAiB,oBAAoB;CACtC;AAQD,eAAO,MAAM,gCAAgC,QAAO,MAIjD,CAAC;AAEJ,eAAO,MAAM,kCAAkC,YACpC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAqBA,CAAC;AAEJ,eAAO,MAAM,0CAA0C,YAC5C,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,mBACJ,MAAM,KACtB,MAaA,CAAC;AAuBJ,oBAAY,8BAA8B;IACxC,qBAAqB,iBAAiB;CACvC;AACD,eAAO,MAAM,gCAAgC,YAClC,MAAM,cACH,MAAM,aACP,MAAM,eACJ,MAAM,iBACJ,MAAM,GAAG,SAAS,KAChC,MAeA,CAAC"}
|
@@ -21,10 +21,10 @@ export var DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN;
|
|
21
21
|
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["GAV"] = "gav";
|
22
22
|
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
|
23
23
|
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["EXECUTION_CONTEXT"] = "executionContext";
|
24
|
-
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN["RUNTIME_PATH"] = "runtimePath";
|
25
24
|
})(DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN || (DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN = {}));
|
26
25
|
export var DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN;
|
27
26
|
(function (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN) {
|
27
|
+
DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN["RUNTIME_PATH"] = "runtimePath";
|
28
28
|
DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN["CLASS_PATH"] = "class";
|
29
29
|
})(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN || (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN = {}));
|
30
30
|
export var DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN;
|
@@ -36,7 +36,7 @@ export var DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN;
|
|
36
36
|
})(DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN || (DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN = {}));
|
37
37
|
const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
38
38
|
SETUP: `/dataspace`,
|
39
|
-
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}
|
39
|
+
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}?`,
|
40
40
|
TEMPLATE_QUERY: `/dataspace/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID}`,
|
41
41
|
});
|
42
42
|
export const generateDataSpaceQuerySetupRoute = () => generatePath(generateExtensionUrlPattern(DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP), {});
|
@@ -44,8 +44,10 @@ export const generateDataSpaceQueryCreatorRoute = (groupId, artifactId, versionI
|
|
44
44
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(groupId, artifactId, versionId),
|
45
45
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
46
46
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: executionContextKey,
|
47
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]: runtimePath,
|
48
47
|
}), stringifyQueryParams({
|
48
|
+
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.RUNTIME_PATH]: runtimePath
|
49
|
+
? encodeURIComponent(runtimePath)
|
50
|
+
: undefined,
|
49
51
|
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]: classPath
|
50
52
|
? encodeURIComponent(classPath)
|
51
53
|
: undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation_to_delete.js","sourceRoot":"","sources":["../../../src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation_to_delete.js","sourceRoot":"","sources":["../../../src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,2BAA2B,EAC3B,YAAY,GACb,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACtD,2DAAW,CAAA;IACX,iFAAiC,CAAA;IACjC,sFAAsC,CAAA;AACxC,CAAC,EAJW,4CAA4C,KAA5C,4CAA4C,QAIvD;AAED,MAAM,CAAN,IAAY,0CAGX;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AY,EAAE;IACxL,yBAAyB,EAAE,yBAAyB,gCAAgC,CAAC,GAAG,KAAK,gCAAgC,CAAC,YAAY,EAAE;IAC5I,mBAAmB,EAAE,UAAU,gCAAgC,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC;AAEH,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,wEAAsC,CAAA;AACxC,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AACD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,WAAmB,EACnB,YAAiC,EACzB,EAAE,CACV,uBAAuB,CACrB,YAAY,CAAC,0BAA0B,CAAC,yBAAyB,EAAE;IACjE,CAAC,gCAAgC,CAAC,GAAG,CAAC,EAAE,sBAAsB,CAC5D,OAAO,EACP,UAAU,EACV,SAAS,CACV;IACD,CAAC,gCAAgC,CAAC,YAAY,CAAC,EAAE,WAAW;CAC7D,CAAC,EACF,oBAAoB,CAAC;IACnB,CAAC,8BAA8B,CAAC,qBAAqB,CAAC,EAAE,YAAY;QAClE,CAAC,CAAC,kBAAkB,CAAC,YAAY,CAAC;QAClC,CAAC,CAAC,YAAY;CACjB,CAAC,CACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqBH,OAAO,EACL,KAAK,0BAA0B,EAGhC,MAAM,0DAA0D,CAAC;AAYlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAK1E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,2FAA2F,CAAC;AAI3I,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,oBAAoB,UACxB,aAAa,KACnB,eAGD,CAAC;AACH,eAAO,MAAM,0BAA0B,WAC7B,eAAe,KACtB,KAAK,CAAC,SAiBR,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,yBAAyB,KAC/B,sBAGD,CAAC;AAwUH,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,KAAK,CAAC,SAIR,CAAC"}
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { CustomSelectorInput, createFilter, ControlledDropdownMenu, MenuContentItem, MenuContent, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, SearchIcon, PanelHeaderActions, PanelHeader, MoreVerticalIcon, compareLabelFn, } from '@finos/legend-art';
|
17
|
+
import { CustomSelectorInput, createFilter, ControlledDropdownMenu, MenuContentItem, MenuContent, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, SearchIcon, PanelHeaderActions, PanelHeader, MoreVerticalIcon, compareLabelFn, PanelHeaderActionItem, AnchorLinkIcon, } from '@finos/legend-art';
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
19
|
import { useApplicationStore } from '@finos/legend-application';
|
20
20
|
import { resolveUsableDataSpaceClasses, DataSpacesDepotRepository, } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
@@ -22,10 +22,11 @@ import { buildRuntimeValueOption, getRuntimeOptionFormatter, QueryBuilderClassSe
|
|
22
22
|
import { getMappingCompatibleRuntimes, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
|
23
23
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
24
24
|
import { useEffect } from 'react';
|
25
|
-
import { guaranteeType } from '@finos/legend-shared';
|
25
|
+
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
26
26
|
import { flowResult } from 'mobx';
|
27
27
|
import {} from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
28
28
|
import { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
|
29
|
+
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
29
30
|
export const buildDataSpaceOption = (value) => ({
|
30
31
|
label: value.title ?? value.name,
|
31
32
|
value,
|
@@ -125,10 +126,25 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
|
|
125
126
|
useEffect(() => {
|
126
127
|
flowResult(queryBuilderState.dataSpaceRepo.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
|
127
128
|
}, [queryBuilderState, applicationStore]);
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
129
|
+
const copyDataSpaceLinkToClipboard = () => {
|
130
|
+
const nonNullableProject = guaranteeNonNullable(project, 'Unable to copy data space query set up link to clipboard because project is null');
|
131
|
+
const dataSpace = queryBuilderState.dataSpace;
|
132
|
+
const executionContext = queryBuilderState.executionContext;
|
133
|
+
const runtimePath = queryBuilderState.executionContextState.runtimeValue instanceof
|
134
|
+
RuntimePointer
|
135
|
+
? queryBuilderState.executionContextState.runtimeValue
|
136
|
+
.packageableRuntime.value.path
|
137
|
+
: undefined;
|
138
|
+
const route = applicationStore.navigationService.navigator.generateAddress(generateDataSpaceQueryCreatorRoute(nonNullableProject.groupId, nonNullableProject.artifactId, nonNullableProject.versionId, dataSpace.path, executionContext.name, runtimePath, queryBuilderState.class?.path));
|
139
|
+
navigator.clipboard
|
140
|
+
.writeText(route)
|
141
|
+
.catch(() => applicationStore.notificationService.notifyError('Error copying data space query set up link to clipboard'));
|
142
|
+
applicationStore.notificationService.notifySuccess('Copied data space query set up link to clipboard');
|
143
|
+
};
|
144
|
+
return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties", children: _jsxs(PanelHeaderActions, { children: [_jsx(PanelHeaderActionItem, { title: "copy data space query set up link to clipboard", onClick: copyDataSpaceLinkToClipboard, children: _jsx(AnchorLinkIcon, {}) }), _jsx(ControlledDropdownMenu, { className: "panel__header__action query-builder__setup__config-group__header__dropdown-trigger", title: "Show Settings...", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: () => queryBuilderState.setShowRuntimeSelector(!queryBuilderState.showRuntimeSelector), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showRuntimeSelector ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Runtime Selector" })] }) }), menuProps: {
|
145
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
146
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
147
|
+
}, children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) })] }) }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.dataSpaceRepo.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
|
132
148
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), depotRepo && (_jsxs(_Fragment, { children: [_jsx("button", { tabIndex: -1, className: "query-builder__setup__data-space-searcher__btn btn--dark", onClick: openDataSpaceAdvancedSearch, title: "Open advanced search for data space...", children: _jsx(SearchIcon, {}) }), depotRepo.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: depotRepo.advancedSearchState, onClose: () => depotRepo.hideAdvancedSearchPanel() }))] }))] }), Boolean(showExecutionContextOptions) && (_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", htmlFor: "query-builder__setup__context-selector", children: "Context" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__context-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length < 1 ||
|
133
149
|
(executionContextOptions.length === 1 &&
|
134
150
|
Boolean(selectedExecutionContextOption)), onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAkC,MAAM,2FAA2F,CAAC;AAC3I,OAAO,EAAE,4BAA4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EAAE,iBAAiB,CAAC,aAAa,EAC9C,cAAc,EAAC,4DAA4D,GAC3E,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,sCAAsC,IACrC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
|
package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAkM3G,eAAO,MAAM,oDAAoD,sBAC5C,0BAA0B,KAC5C,KAAK,CAAC,SAIR,CAAC"}
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { PanelHeader,
|
17
|
+
import { PanelHeader, BasePopover, ClickAwayListener, ShareIcon, TagIcon, } from '@finos/legend-art';
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
19
|
import { useRef } from 'react';
|
20
20
|
import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
|
@@ -89,7 +89,7 @@ const DataSpaceQueryBuilderTemplateQueryPanel = observer((props) => {
|
|
89
89
|
const showTemplateQueries = () => {
|
90
90
|
queryBuilderState.setTemplateQueryDialogOpen(true);
|
91
91
|
};
|
92
|
-
return (_jsx(_Fragment, { children: !templateQueries || templateQueries.length === 0 ? (
|
92
|
+
return (_jsx(_Fragment, { children: !templateQueries || templateQueries.length === 0 ? (_jsx(PanelHeader, { className: "query-builder__data-space__template-query", children: _jsx("button", { className: "query-builder__data-space__template-query__btn", ref: templateQueryButtonRef, onClick: showTemplateQueries, disabled: true, children: "Templates ( 0 )" }) })) : (_jsxs(PanelHeader, { className: "query-builder__data-space__template-query", children: [_jsxs("button", { className: "query-builder__data-space__template-query__btn", ref: templateQueryButtonRef, onClick: showTemplateQueries, children: ["Templates ( ", templateQueries.length, " )"] }), queryBuilderState.isTemplateQueryDialogOpen && (_jsx(DataSpaceTemplateQueryDialog, { triggerElement: templateQueryButtonRef.current, queryBuilderState: queryBuilderState, templateQueries: templateQueries }))] })) }));
|
93
93
|
});
|
94
94
|
export const renderDataSpaceQueryBuilderTemplateQueryPanelContent = (queryBuilderState) => (_jsx(DataSpaceQueryBuilderTemplateQueryPanel, { queryBuilderState: queryBuilderState }));
|
95
95
|
//# sourceMappingURL=DataSpaceQueryBuilderTemplateQueryPanelContent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO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I,CAAC,CAAC;IAC/D,MAAM,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,MAAM,CACrE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,2BAA2B,CAChD,CAAC;IAEF,MAAM,mBAAmB,GAAG,GAAS,EAAE;QACrC,iBAAiB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,OAAO,CACL,4BACG,CAAC,eAAe,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAClD,KAAC,WAAW,IAAC,SAAS,EAAC,2CAA2C,YAChE,iBACE,SAAS,EAAC,gDAAgD,EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,IAAI,gCAGP,GACG,CACf,CAAC,CAAC,CAAC,CACF,MAAC,WAAW,IAAC,SAAS,EAAC,2CAA2C,aAChE,kBACE,SAAS,EAAC,gDAAgD,EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,6BAEf,eAAe,CAAC,MAAM,UAC5B,EACR,iBAAiB,CAAC,yBAAyB,IAAI,CAC9C,KAAC,4BAA4B,IAC3B,cAAc,EAAE,sBAAsB,CAAC,OAAO,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,IACW,CACf,GACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAClE,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,uCAAuC,IACtC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
3
|
-
"version": "10.3.
|
3
|
+
"version": "10.3.47",
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,12 +43,12 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "15.1.
|
47
|
-
"@finos/legend-art": "7.1.
|
48
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
49
|
-
"@finos/legend-graph": "31.10.
|
50
|
-
"@finos/legend-lego": "1.2.
|
51
|
-
"@finos/legend-query-builder": "4.14.
|
46
|
+
"@finos/legend-application": "15.1.21",
|
47
|
+
"@finos/legend-art": "7.1.49",
|
48
|
+
"@finos/legend-extension-dsl-diagram": "8.0.203",
|
49
|
+
"@finos/legend-graph": "31.10.19",
|
50
|
+
"@finos/legend-lego": "1.2.55",
|
51
|
+
"@finos/legend-query-builder": "4.14.69",
|
52
52
|
"@finos/legend-server-depot": "6.0.55",
|
53
53
|
"@finos/legend-server-sdlc": "5.3.26",
|
54
54
|
"@finos/legend-shared": "10.0.50",
|
@@ -61,7 +61,7 @@
|
|
61
61
|
"serializr": "3.0.2"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@finos/legend-dev-utils": "2.1.
|
64
|
+
"@finos/legend-dev-utils": "2.1.17",
|
65
65
|
"@jest/globals": "29.7.0",
|
66
66
|
"cross-env": "7.0.3",
|
67
67
|
"eslint": "8.57.0",
|
@@ -28,10 +28,10 @@ export enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
28
28
|
GAV = 'gav',
|
29
29
|
DATA_SPACE_PATH = 'dataSpacePath',
|
30
30
|
EXECUTION_CONTEXT = 'executionContext',
|
31
|
-
RUNTIME_PATH = 'runtimePath',
|
32
31
|
}
|
33
32
|
|
34
33
|
export enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
34
|
+
RUNTIME_PATH = 'runtimePath',
|
35
35
|
CLASS_PATH = 'class',
|
36
36
|
}
|
37
37
|
|
@@ -44,7 +44,7 @@ export enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
44
44
|
|
45
45
|
const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
46
46
|
SETUP: `/dataspace`,
|
47
|
-
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}
|
47
|
+
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}?`,
|
48
48
|
TEMPLATE_QUERY: `/dataspace/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID}`,
|
49
49
|
});
|
50
50
|
|
@@ -73,11 +73,12 @@ export const generateDataSpaceQueryCreatorRoute = (
|
|
73
73
|
dataSpacePath,
|
74
74
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]:
|
75
75
|
executionContextKey,
|
76
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]:
|
77
|
-
runtimePath,
|
78
76
|
},
|
79
77
|
),
|
80
78
|
stringifyQueryParams({
|
79
|
+
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.RUNTIME_PATH]: runtimePath
|
80
|
+
? encodeURIComponent(runtimePath)
|
81
|
+
: undefined,
|
81
82
|
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]: classPath
|
82
83
|
? encodeURIComponent(classPath)
|
83
84
|
: undefined,
|
@@ -104,6 +105,7 @@ export const generateDataSpaceTemplateQueryCreatorRoute = (
|
|
104
105
|
templateQueryId,
|
105
106
|
},
|
106
107
|
);
|
108
|
+
|
107
109
|
enum LEGEND_QUERY_ROUTE_PATTERN_TOKEN {
|
108
110
|
GAV = 'gav',
|
109
111
|
QUERY_ID = 'queryId',
|
@@ -28,6 +28,8 @@ import {
|
|
28
28
|
PanelHeader,
|
29
29
|
MoreVerticalIcon,
|
30
30
|
compareLabelFn,
|
31
|
+
PanelHeaderActionItem,
|
32
|
+
AnchorLinkIcon,
|
31
33
|
} from '@finos/legend-art';
|
32
34
|
import { observer } from 'mobx-react-lite';
|
33
35
|
import { useApplicationStore } from '@finos/legend-application';
|
@@ -50,10 +52,11 @@ import {
|
|
50
52
|
import type { DataSpaceInfo } from '../../stores/shared/DataSpaceInfo.js';
|
51
53
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
52
54
|
import { useEffect } from 'react';
|
53
|
-
import { guaranteeType } from '@finos/legend-shared';
|
55
|
+
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
54
56
|
import { flowResult } from 'mobx';
|
55
57
|
import { type DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
56
58
|
import { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
|
59
|
+
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
57
60
|
|
58
61
|
export type DataSpaceOption = {
|
59
62
|
label: string;
|
@@ -225,10 +228,55 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
225
228
|
);
|
226
229
|
}, [queryBuilderState, applicationStore]);
|
227
230
|
|
231
|
+
const copyDataSpaceLinkToClipboard = (): void => {
|
232
|
+
const nonNullableProject = guaranteeNonNullable(
|
233
|
+
project,
|
234
|
+
'Unable to copy data space query set up link to clipboard because project is null',
|
235
|
+
);
|
236
|
+
const dataSpace = queryBuilderState.dataSpace;
|
237
|
+
const executionContext = queryBuilderState.executionContext;
|
238
|
+
const runtimePath =
|
239
|
+
queryBuilderState.executionContextState.runtimeValue instanceof
|
240
|
+
RuntimePointer
|
241
|
+
? queryBuilderState.executionContextState.runtimeValue
|
242
|
+
.packageableRuntime.value.path
|
243
|
+
: undefined;
|
244
|
+
const route =
|
245
|
+
applicationStore.navigationService.navigator.generateAddress(
|
246
|
+
generateDataSpaceQueryCreatorRoute(
|
247
|
+
nonNullableProject.groupId,
|
248
|
+
nonNullableProject.artifactId,
|
249
|
+
nonNullableProject.versionId,
|
250
|
+
dataSpace.path,
|
251
|
+
executionContext.name,
|
252
|
+
runtimePath,
|
253
|
+
queryBuilderState.class?.path,
|
254
|
+
),
|
255
|
+
);
|
256
|
+
|
257
|
+
navigator.clipboard
|
258
|
+
.writeText(route)
|
259
|
+
.catch(() =>
|
260
|
+
applicationStore.notificationService.notifyError(
|
261
|
+
'Error copying data space query set up link to clipboard',
|
262
|
+
),
|
263
|
+
);
|
264
|
+
|
265
|
+
applicationStore.notificationService.notifySuccess(
|
266
|
+
'Copied data space query set up link to clipboard',
|
267
|
+
);
|
268
|
+
};
|
269
|
+
|
228
270
|
return (
|
229
271
|
<div className="query-builder__setup__config-group">
|
230
272
|
<PanelHeader title="properties">
|
231
273
|
<PanelHeaderActions>
|
274
|
+
<PanelHeaderActionItem
|
275
|
+
title="copy data space query set up link to clipboard"
|
276
|
+
onClick={copyDataSpaceLinkToClipboard}
|
277
|
+
>
|
278
|
+
<AnchorLinkIcon />
|
279
|
+
</PanelHeaderActionItem>
|
232
280
|
<ControlledDropdownMenu
|
233
281
|
className="panel__header__action query-builder__setup__config-group__header__dropdown-trigger"
|
234
282
|
title="Show Settings..."
|
@@ -16,7 +16,6 @@
|
|
16
16
|
|
17
17
|
import {
|
18
18
|
PanelHeader,
|
19
|
-
FilterIcon,
|
20
19
|
BasePopover,
|
21
20
|
ClickAwayListener,
|
22
21
|
ShareIcon,
|
@@ -193,28 +192,23 @@ const DataSpaceQueryBuilderTemplateQueryPanel = observer(
|
|
193
192
|
<>
|
194
193
|
{!templateQueries || templateQueries.length === 0 ? (
|
195
194
|
<PanelHeader className="query-builder__data-space__template-query">
|
196
|
-
<div className="query-builder__data-space__template-query__title">
|
197
|
-
<FilterIcon />
|
198
|
-
</div>
|
199
195
|
<button
|
200
196
|
className="query-builder__data-space__template-query__btn"
|
201
197
|
ref={templateQueryButtonRef}
|
202
198
|
onClick={showTemplateQueries}
|
199
|
+
disabled={true}
|
203
200
|
>
|
204
|
-
|
201
|
+
Templates ( 0 )
|
205
202
|
</button>
|
206
203
|
</PanelHeader>
|
207
204
|
) : (
|
208
205
|
<PanelHeader className="query-builder__data-space__template-query">
|
209
|
-
<div className="query-builder__data-space__template-query__title">
|
210
|
-
<FilterIcon />
|
211
|
-
</div>
|
212
206
|
<button
|
213
207
|
className="query-builder__data-space__template-query__btn"
|
214
208
|
ref={templateQueryButtonRef}
|
215
209
|
onClick={showTemplateQueries}
|
216
210
|
>
|
217
|
-
|
211
|
+
Templates ( {templateQueries.length} )
|
218
212
|
</button>
|
219
213
|
{queryBuilderState.isTemplateQueryDialogOpen && (
|
220
214
|
<DataSpaceTemplateQueryDialog
|