@finos/legend-application-query 13.8.0 → 13.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js +2 -2
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.d.ts.map +1 -1
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.js +4 -1
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.js.map +1 -1
- package/lib/components/data-product/QueryDataProductUtil.d.ts +20 -0
- package/lib/components/data-product/QueryDataProductUtil.d.ts.map +1 -0
- package/lib/components/data-product/QueryDataProductUtil.js +31 -0
- package/lib/components/data-product/QueryDataProductUtil.js.map +1 -0
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.d.ts +18 -0
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.d.ts.map +1 -0
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.js +139 -0
- package/lib/components/data-space/LegendQueryDataSpaceQueryBuilder.js.map +1 -0
- package/lib/components/shared/LegendQueryDataProductOptionLabel.d.ts +37 -0
- package/lib/components/shared/LegendQueryDataProductOptionLabel.d.ts.map +1 -0
- package/lib/components/shared/LegendQueryDataProductOptionLabel.js +49 -0
- package/lib/components/shared/LegendQueryDataProductOptionLabel.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/light-mode.css +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/QueryEditorStore.d.ts +2 -1
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +7 -18
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/data-product/query-builder/DataProductArtifactHelper.js +8 -7
- package/lib/stores/data-product/query-builder/DataProductArtifactHelper.js.map +1 -1
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts +5 -3
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js +13 -3
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js.map +1 -1
- package/lib/stores/data-space/DataProductQueryCreatorStore.d.ts +1 -1
- package/lib/stores/data-space/DataProductQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataProductQueryCreatorStore.js +17 -9
- package/lib/stores/data-space/DataProductQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.d.ts +3 -2
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.js +5 -15
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.js.map +1 -1
- package/package.json +8 -8
- package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +2 -0
- package/src/components/data-product/LegendQueryDataProductQueryBuilder.tsx +7 -0
- package/src/components/data-product/QueryDataProductUtil.ts +46 -0
- package/src/components/data-space/LegendQueryDataSpaceQueryBuilder.tsx +377 -0
- package/src/components/shared/LegendQueryDataProductOptionLabel.tsx +80 -0
- package/src/stores/QueryEditorStore.ts +11 -18
- package/src/stores/data-product/query-builder/DataProductArtifactHelper.ts +8 -8
- package/src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts +19 -4
- package/src/stores/data-space/DataProductQueryCreatorStore.ts +21 -12
- package/src/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.ts +6 -28
- package/tsconfig.json +3 -0
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
type Runtime,
|
|
49
49
|
} from '@finos/legend-graph';
|
|
50
50
|
import {
|
|
51
|
-
ExtraOptionsConfig,
|
|
52
51
|
type QueryBuilderActionConfig,
|
|
53
52
|
type QueryBuilderConfig,
|
|
54
53
|
type QueryBuilderWorkflowState,
|
|
55
54
|
} from '@finos/legend-query-builder';
|
|
55
|
+
import { renderLegendQueryDataSpaceQueryBuilderSetupPanelContent } from '../../../components/data-space/LegendQueryDataSpaceQueryBuilder.js';
|
|
56
56
|
import type { LegendQueryApplicationStore } from '../../LegendQueryBaseStore.js';
|
|
57
57
|
import {
|
|
58
58
|
createViewProjectHandler,
|
|
@@ -74,9 +74,12 @@ export class LegendQueryDataSpaceQueryBuilderState extends DataSpaceQueryBuilder
|
|
|
74
74
|
declare applicationStore: LegendQueryApplicationStore;
|
|
75
75
|
depotServerClient: DepotServerClient;
|
|
76
76
|
project: ProjectGAVCoordinates;
|
|
77
|
-
|
|
77
|
+
readonly onDataProductChange: (val: DepotEntityWithOrigin) => void;
|
|
78
78
|
productSelectorState: DataProductSelectorState;
|
|
79
79
|
|
|
80
|
+
override TEMPORARY__setupPanelContentRenderer = (): React.ReactNode =>
|
|
81
|
+
renderLegendQueryDataSpaceQueryBuilderSetupPanelContent(this);
|
|
82
|
+
|
|
80
83
|
constructor(
|
|
81
84
|
applicationStore: LegendQueryApplicationStore,
|
|
82
85
|
graphManagerState: GraphManagerState,
|
|
@@ -124,18 +127,7 @@ export class LegendQueryDataSpaceQueryBuilderState extends DataSpaceQueryBuilder
|
|
|
124
127
|
this.project = project;
|
|
125
128
|
this.depotServerClient = depotServerClient;
|
|
126
129
|
this.productSelectorState = productSelectorState;
|
|
127
|
-
this.
|
|
128
|
-
'DataProduct',
|
|
129
|
-
'DEPOT_ENTITY_WITH_ORIGIN',
|
|
130
|
-
productSelectorState.dataProducts?.map((e) => ({
|
|
131
|
-
label: e.name,
|
|
132
|
-
value: e,
|
|
133
|
-
})),
|
|
134
|
-
undefined,
|
|
135
|
-
onDataProductChange,
|
|
136
|
-
undefined,
|
|
137
|
-
undefined,
|
|
138
|
-
);
|
|
130
|
+
this.onDataProductChange = onDataProductChange;
|
|
139
131
|
}
|
|
140
132
|
|
|
141
133
|
override get isAdvancedDataSpaceSearchEnabled(): boolean {
|
|
@@ -165,12 +157,6 @@ export class LegendQueryDataSpaceQueryBuilderState extends DataSpaceQueryBuilder
|
|
|
165
157
|
this.entities = dataspaces;
|
|
166
158
|
if (products) {
|
|
167
159
|
this.productSelectorState.setDataProducts(products);
|
|
168
|
-
this.extraOptionsConfig.setOptions(
|
|
169
|
-
products.map((e) => ({
|
|
170
|
-
label: e.path,
|
|
171
|
-
value: e,
|
|
172
|
-
})),
|
|
173
|
-
);
|
|
174
160
|
}
|
|
175
161
|
return this;
|
|
176
162
|
}
|
|
@@ -234,14 +220,6 @@ export class LegendQueryDataSpaceQueryBuilderState extends DataSpaceQueryBuilder
|
|
|
234
220
|
yield flowResult(this.productSelectorState.loadProducts());
|
|
235
221
|
}
|
|
236
222
|
this.entities = this.productSelectorState.legacyDataProducts;
|
|
237
|
-
if (this.productSelectorState.dataProducts) {
|
|
238
|
-
this.extraOptionsConfig.setOptions(
|
|
239
|
-
this.productSelectorState.dataProducts.map((e) => ({
|
|
240
|
-
label: e.name,
|
|
241
|
-
value: e,
|
|
242
|
-
})),
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
223
|
this.loadEntitiesState.pass();
|
|
246
224
|
} catch {
|
|
247
225
|
this.loadEntitiesState.fail();
|
package/tsconfig.json
CHANGED
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"./src/application/Core_LegendQuery_LegendApplicationPlugin.ts",
|
|
65
65
|
"./src/application/LegendQueryApplicationConfig.ts",
|
|
66
66
|
"./src/application/LegendQueryPluginManager.ts",
|
|
67
|
+
"./src/components/data-product/QueryDataProductUtil.ts",
|
|
67
68
|
"./src/components/data-space/QueryDataSpaceUtil.ts",
|
|
68
69
|
"./src/stores/CloneServiceQuerySetupStore.ts",
|
|
69
70
|
"./src/stores/CreateMappingQuerySetupStore.ts",
|
|
@@ -108,6 +109,8 @@
|
|
|
108
109
|
"./src/components/data-space/DataSpaceInfo.tsx",
|
|
109
110
|
"./src/components/data-space/DataSpaceQuerySetup.tsx",
|
|
110
111
|
"./src/components/data-space/DataSpaceTemplateQueryCreator.tsx",
|
|
112
|
+
"./src/components/data-space/LegendQueryDataSpaceQueryBuilder.tsx",
|
|
113
|
+
"./src/components/shared/LegendQueryDataProductOptionLabel.tsx",
|
|
111
114
|
"./src/stores/LegendQueryApplicationPlugin.tsx"
|
|
112
115
|
],
|
|
113
116
|
"include": [
|