@finos/legend-query-builder 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts +20 -20
  2. package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTelemetryHelper.js +40 -40
  4. package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -1
  5. package/lib/components/QueryLoader.d.ts +30 -0
  6. package/lib/components/QueryLoader.d.ts.map +1 -0
  7. package/lib/components/QueryLoader.js +160 -0
  8. package/lib/components/QueryLoader.js.map +1 -0
  9. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -1
  10. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +2 -1
  11. package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -1
  12. package/lib/index.css +2 -2
  13. package/lib/index.css.map +1 -1
  14. package/lib/index.d.ts +3 -0
  15. package/lib/index.d.ts.map +1 -1
  16. package/lib/index.js +3 -0
  17. package/lib/index.js.map +1 -1
  18. package/lib/package.json +1 -1
  19. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +30 -0
  20. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -0
  21. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js +17 -0
  22. package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.js.map +1 -0
  23. package/lib/stores/QueryLoaderState.d.ts +67 -0
  24. package/lib/stores/QueryLoaderState.d.ts.map +1 -0
  25. package/lib/stores/QueryLoaderState.js +205 -0
  26. package/lib/stores/QueryLoaderState.js.map +1 -0
  27. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +3 -1
  28. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  29. package/lib/stores/shared/ValueSpecificationEditorHelper.js +7 -1
  30. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  31. package/package.json +8 -8
  32. package/src/__lib__/QueryBuilderTelemetryHelper.ts +40 -59
  33. package/src/components/QueryLoader.tsx +501 -0
  34. package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +2 -1
  35. package/src/index.ts +3 -0
  36. package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +36 -0
  37. package/src/stores/QueryLoaderState.ts +298 -0
  38. package/src/stores/shared/ValueSpecificationEditorHelper.ts +39 -2
  39. package/tsconfig.json +3 -0
@@ -0,0 +1,30 @@
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 { LegendApplicationPlugin } from '@finos/legend-application';
17
+ import type { QueryBuilderState } from './QueryBuilderState.js';
18
+ import type { QuerySearchSpecification } from '@finos/legend-graph';
19
+ export type LoadQueryFilterOption = {
20
+ key: string;
21
+ label: (queryBuilderState: QueryBuilderState) => string | undefined;
22
+ filterFunction: (searchSpecification: QuerySearchSpecification, queryBuilderState: QueryBuilderState) => QuerySearchSpecification;
23
+ };
24
+ export interface QueryBuilder_LegendApplicationPlugin_Extension extends LegendApplicationPlugin {
25
+ /**
26
+ * Get the list of filter options for query loader.
27
+ */
28
+ getExtraLoadQueryFilterOptions?(): LoadQueryFilterOption[];
29
+ }
30
+ //# sourceMappingURL=QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilder_LegendApplicationPlugin_Extension.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,cAAc,EAAE,CACd,mBAAmB,EAAE,wBAAwB,EAC7C,iBAAiB,EAAE,iBAAiB,KACjC,wBAAwB,CAAC;CAC/B,CAAC;AAEF,MAAM,WAAW,8CACf,SAAQ,uBAAuB;IAC/B;;OAEG;IACH,8BAA8B,CAAC,IAAI,qBAAqB,EAAE,CAAC;CAC5D"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=QueryBuilder_LegendApplicationPlugin_Extension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilder_LegendApplicationPlugin_Extension.js","sourceRoot":"","sources":["../../src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,67 @@
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 { type LightQuery, QuerySearchSpecification, type QueryInfo, type BasicGraphManagerState } from '@finos/legend-graph';
18
+ import { ActionState, type GeneratorFn } from '@finos/legend-shared';
19
+ import type { QueryBuilderState } from './QueryBuilderState.js';
20
+ import type { LoadQueryFilterOption } from './QueryBuilder_LegendApplicationPlugin_Extension.js';
21
+ export declare const QUERY_LOADER_TYPEAHEAD_SEARCH_LIMIT = 20;
22
+ export declare class QueryLoaderState {
23
+ readonly applicationStore: GenericLegendApplicationStore;
24
+ readonly graphManagerState: BasicGraphManagerState;
25
+ readonly searchQueriesState: ActionState;
26
+ readonly renameQueryState: ActionState;
27
+ readonly deleteQueryState: ActionState;
28
+ readonly previewQueryState: ActionState;
29
+ readonly decorateSearchSpecification?: ((val: QuerySearchSpecification) => QuerySearchSpecification) | undefined;
30
+ readonly loadQuery: (query: LightQuery) => void;
31
+ readonly fetchDefaultQueries?: (() => Promise<LightQuery[]>) | undefined;
32
+ readonly generateDefaultQueriesSummaryText?: ((queries: LightQuery[]) => string) | undefined;
33
+ readonly isReadOnly?: boolean | undefined;
34
+ readonly onQueryRenamed?: ((query: LightQuery) => void) | undefined;
35
+ readonly onQueryDeleted?: ((query: LightQuery) => void) | undefined;
36
+ queryBuilderState?: QueryBuilderState | undefined;
37
+ searchText: string;
38
+ showCurrentUserQueriesOnly: boolean;
39
+ extraFilters: Map<string, boolean>;
40
+ extraFilterOptions: LoadQueryFilterOption[];
41
+ queries: LightQuery[];
42
+ isQueryLoaderDialogOpen: boolean;
43
+ showingDefaultQueries: boolean;
44
+ showPreviewViewer: boolean;
45
+ queryPreviewContent?: QueryInfo;
46
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, options: {
47
+ decorateSearchSpecification?: ((val: QuerySearchSpecification) => QuerySearchSpecification) | undefined;
48
+ loadQuery: (query: LightQuery) => void;
49
+ fetchDefaultQueries?: (() => Promise<LightQuery[]>) | undefined;
50
+ generateDefaultQueriesSummaryText?: ((queries: LightQuery[]) => string) | undefined;
51
+ isReadOnly?: boolean | undefined;
52
+ onQueryRenamed?: ((query: LightQuery) => void) | undefined;
53
+ onQueryDeleted?: ((query: LightQuery) => void) | undefined;
54
+ });
55
+ setSearchText(val: string): void;
56
+ setQueryLoaderDialogOpen(val: boolean): void;
57
+ setQueries(val: LightQuery[]): void;
58
+ setShowPreviewViewer(val: boolean): void;
59
+ setShowCurrentUserQueriesOnly(val: boolean): void;
60
+ reset(): void;
61
+ initialize(queryBuilderState: QueryBuilderState): GeneratorFn<void>;
62
+ searchQueries(searchText: string): GeneratorFn<void>;
63
+ renameQuery(queryId: string, name: string): GeneratorFn<void>;
64
+ deleteQuery(queryId: string): GeneratorFn<void>;
65
+ getPreviewQueryContent(queryId: string): GeneratorFn<void>;
66
+ }
67
+ //# sourceMappingURL=QueryLoaderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryLoaderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryLoaderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,UAAU,EACf,wBAAwB,EACxB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAE5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,KAAK,WAAW,EAGjB,MAAM,s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AAG,WAAW,CAAC,IAAI,CAAC;IAoEpD,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IAoB7D,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IAmB/C,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;CAkB5D"}
@@ -0,0 +1,205 @@
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 { DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
17
+ import { QuerySearchSpecification, } from '@finos/legend-graph';
18
+ import { ActionState, assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared';
19
+ import { makeObservable, observable, action, flow } from 'mobx';
20
+ export const QUERY_LOADER_TYPEAHEAD_SEARCH_LIMIT = 20;
21
+ export class QueryLoaderState {
22
+ applicationStore;
23
+ graphManagerState;
24
+ searchQueriesState = ActionState.create();
25
+ renameQueryState = ActionState.create();
26
+ deleteQueryState = ActionState.create();
27
+ previewQueryState = ActionState.create();
28
+ decorateSearchSpecification;
29
+ loadQuery;
30
+ fetchDefaultQueries;
31
+ generateDefaultQueriesSummaryText;
32
+ isReadOnly;
33
+ onQueryRenamed;
34
+ onQueryDeleted;
35
+ queryBuilderState;
36
+ searchText = '';
37
+ showCurrentUserQueriesOnly = false; // TODO: if we start having more native filters, we should make them part of `extraFilters`
38
+ extraFilters = new Map();
39
+ extraFilterOptions = [];
40
+ queries = [];
41
+ isQueryLoaderDialogOpen = false;
42
+ showingDefaultQueries = true;
43
+ showPreviewViewer = false;
44
+ queryPreviewContent;
45
+ constructor(applicationStore, graphManagerState, options) {
46
+ makeObservable(this, {
47
+ isQueryLoaderDialogOpen: observable,
48
+ queryPreviewContent: observable,
49
+ showingDefaultQueries: observable,
50
+ queries: observable,
51
+ showCurrentUserQueriesOnly: observable,
52
+ showPreviewViewer: observable,
53
+ searchText: observable,
54
+ setSearchText: action,
55
+ setQueryLoaderDialogOpen: action,
56
+ setQueries: action,
57
+ setShowCurrentUserQueriesOnly: action,
58
+ setShowPreviewViewer: action,
59
+ searchQueries: flow,
60
+ getPreviewQueryContent: flow,
61
+ deleteQuery: flow,
62
+ renameQuery: flow,
63
+ initialize: flow,
64
+ });
65
+ this.applicationStore = applicationStore;
66
+ this.graphManagerState = graphManagerState;
67
+ this.loadQuery = options.loadQuery;
68
+ this.fetchDefaultQueries = options.fetchDefaultQueries;
69
+ this.generateDefaultQueriesSummaryText =
70
+ options.generateDefaultQueriesSummaryText;
71
+ this.decorateSearchSpecification = options.decorateSearchSpecification;
72
+ this.isReadOnly = options.isReadOnly;
73
+ this.onQueryRenamed = options.onQueryRenamed;
74
+ this.onQueryDeleted = options.onQueryDeleted;
75
+ }
76
+ setSearchText(val) {
77
+ this.searchText = val;
78
+ }
79
+ setQueryLoaderDialogOpen(val) {
80
+ this.isQueryLoaderDialogOpen = val;
81
+ }
82
+ setQueries(val) {
83
+ this.queries = val;
84
+ }
85
+ setShowPreviewViewer(val) {
86
+ this.showPreviewViewer = val;
87
+ }
88
+ setShowCurrentUserQueriesOnly(val) {
89
+ this.showCurrentUserQueriesOnly = val;
90
+ }
91
+ reset() {
92
+ this.setShowCurrentUserQueriesOnly(false);
93
+ }
94
+ *initialize(queryBuilderState) {
95
+ this.queryBuilderState = queryBuilderState;
96
+ this.extraFilterOptions = this.applicationStore.pluginManager
97
+ .getApplicationPlugins()
98
+ .flatMap((plugin) => plugin.getExtraLoadQueryFilterOptions?.() ?? []);
99
+ const extraFilters = this.extraFilterOptions.map((filterOption) => filterOption.label(guaranteeNonNullable(this.queryBuilderState)));
100
+ extraFilters.forEach((filter) => filter && this.extraFilters.set(filter, false));
101
+ }
102
+ *searchQueries(searchText) {
103
+ if (searchText.length < DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH &&
104
+ !this.showCurrentUserQueriesOnly &&
105
+ Array.from(this.extraFilters.values()).every((value) => value === false)) {
106
+ // if no search text is specified, use fetch the default queries
107
+ if (!searchText) {
108
+ this.showingDefaultQueries = true;
109
+ this.searchQueriesState.inProgress();
110
+ this.queries = [];
111
+ try {
112
+ if (!this.fetchDefaultQueries) {
113
+ return;
114
+ }
115
+ this.queries = (yield this.fetchDefaultQueries());
116
+ this.searchQueriesState.pass();
117
+ }
118
+ catch (error) {
119
+ this.searchQueriesState.fail();
120
+ assertErrorThrown(error);
121
+ this.applicationStore.notificationService.notifyError(error);
122
+ }
123
+ }
124
+ // skip otherwise
125
+ return;
126
+ }
127
+ // search using the search term
128
+ this.showingDefaultQueries = false;
129
+ this.searchQueriesState.inProgress();
130
+ try {
131
+ let searchSpecification = new QuerySearchSpecification();
132
+ searchSpecification.searchTerm = searchText;
133
+ searchSpecification.limit = QUERY_LOADER_TYPEAHEAD_SEARCH_LIMIT + 1;
134
+ searchSpecification.showCurrentUserQueriesOnly =
135
+ this.showCurrentUserQueriesOnly;
136
+ if (this.queryBuilderState) {
137
+ Array.from(this.extraFilters.entries()).forEach(([key, value]) => {
138
+ if (value) {
139
+ const filterOption = this.extraFilterOptions.find((option) => option.label(guaranteeNonNullable(this.queryBuilderState)) ===
140
+ key);
141
+ if (filterOption) {
142
+ searchSpecification = filterOption.filterFunction(searchSpecification, guaranteeNonNullable(this.queryBuilderState));
143
+ }
144
+ }
145
+ });
146
+ }
147
+ searchSpecification =
148
+ this.decorateSearchSpecification?.(searchSpecification) ??
149
+ searchSpecification;
150
+ this.queries = (yield this.graphManagerState.graphManager.searchQueries(searchSpecification));
151
+ this.searchQueriesState.pass();
152
+ }
153
+ catch (error) {
154
+ assertErrorThrown(error);
155
+ this.applicationStore.notificationService.notifyError(error);
156
+ this.searchQueriesState.fail();
157
+ }
158
+ }
159
+ *renameQuery(queryId, name) {
160
+ this.renameQueryState.inProgress();
161
+ try {
162
+ const query = (yield this.graphManagerState.graphManager.renameQuery(queryId, name));
163
+ this.onQueryRenamed?.(query);
164
+ this.applicationStore.notificationService.notify('Renamed query successfully');
165
+ this.renameQueryState.pass();
166
+ this.searchQueries(this.searchText); // trigger a search to refresh the query list
167
+ }
168
+ catch (error) {
169
+ assertErrorThrown(error);
170
+ this.applicationStore.notificationService.notifyError(error);
171
+ this.renameQueryState.fail();
172
+ }
173
+ }
174
+ *deleteQuery(queryId) {
175
+ this.deleteQueryState.inProgress();
176
+ try {
177
+ const query = (yield this.graphManagerState.graphManager.deleteQuery(queryId));
178
+ this.onQueryDeleted?.(query);
179
+ this.applicationStore.notificationService.notify('Deleted query successfully');
180
+ this.deleteQueryState.pass();
181
+ this.searchQueries(this.searchText); // trigger a search to refresh the query list
182
+ }
183
+ catch (error) {
184
+ assertErrorThrown(error);
185
+ this.applicationStore.notificationService.notifyError(error);
186
+ this.deleteQueryState.fail();
187
+ }
188
+ }
189
+ *getPreviewQueryContent(queryId) {
190
+ this.previewQueryState.inProgress();
191
+ try {
192
+ const queryInfo = (yield this.graphManagerState.graphManager.getQueryInfo(queryId));
193
+ this.queryPreviewContent = queryInfo;
194
+ this.queryPreviewContent.content =
195
+ (yield this.graphManagerState.graphManager.prettyLambdaContent(queryInfo.content));
196
+ this.previewQueryState.pass();
197
+ }
198
+ catch (error) {
199
+ assertErrorThrown(error);
200
+ this.applicationStore.notificationService.notifyError(error);
201
+ this.previewQueryState.fail();
202
+ }
203
+ }
204
+ }
205
+ //# sourceMappingURL=QueryLoaderState.js.map
@@ -0,0 +1 @@
1
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AAI,EAAE,CAAC;SAC/B;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC7D,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;SAC/B;IACH,CAAC;CACF"}
@@ -13,11 +13,13 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type PureModel, VariableExpression, type ValueSpecification, type Type, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, type ObserverContext } from '@finos/legend-graph';
16
+ import { type PureModel, type GraphManagerState, type ValueSpecification, type Type, type ObserverContext, type RawLambda, VariableExpression, Enumeration, PrimitiveInstanceValue, PRIMITIVE_TYPE, SimpleFunctionExpression, LambdaFunction } from '@finos/legend-graph';
17
17
  export declare const createSupportedFunctionExpression: (supportedFuncName: string, expectedReturnType: Type) => SimpleFunctionExpression;
18
18
  export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
19
19
  export declare const buildPrimitiveInstanceValue: (graph: PureModel, type: PRIMITIVE_TYPE, value: unknown, observerContext: ObserverContext) => PrimitiveInstanceValue;
20
20
  export declare const buildDefaultInstanceValue: (graph: PureModel, type: Type, observerContext: ObserverContext) => ValueSpecification;
21
+ export declare const buildDefaultEmptyStringLambda: (graph: PureModel, observerContext: ObserverContext) => LambdaFunction;
22
+ export declare const buildDefaultEmptyStringRawLambda: (graphState: GraphManagerState, observerContext: ObserverContext) => RawLambda;
21
23
  export declare const generateVariableExpressionMockValue: (parameter: VariableExpression, graph: PureModel, observerContext: ObserverContext) => ValueSpecification | undefined;
22
24
  export declare const getValueSpecificationStringValue: (valueSpecification: ValueSpecification) => string | undefined;
23
25
  //# sourceMappingURL=ValueSpecificationEditorHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAGT,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEd,wBAAwB,EACxB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAW7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AAiDF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAgDF,CAAC;AAEF,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,KAC/B,kBAAkB,GAAG,SA8BvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EAET,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,kBAAkB,EAElB,WAAW,EAMX,sBAAsB,EAEtB,cAAc,EAEd,wBAAwB,EACxB,cAAc,EAMf,MAAM,qBAAqB,CAAC;AAW7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AAiDF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAgDF,CAAC;AAEF,eAAO,MAAM,6BAA6B,UACjC,SAAS,mBACC,eAAe,KAC/B,cAeF,CAAC;AAEF,eAAO,MAAM,gCAAgC,eAC/B,iBAAiB,mBACZ,eAAe,KAC/B,SAIA,CAAC;AAEJ,eAAO,MAAM,mCAAmC,cACnC,kBAAkB,SACtB,SAAS,mBACC,eAAe,KAC/B,kBAAkB,GAAG,SA8BvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { VariableExpression, CollectionInstanceValue, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, INTERNAL__PropagatedValue, SimpleFunctionExpression, } from '@finos/legend-graph';
16
+ import { VariableExpression, CollectionInstanceValue, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, GenericType, GenericTypeExplicitReference, getEnumValue, PrimitiveInstanceValue, PrimitiveType, PRIMITIVE_TYPE, INTERNAL__PropagatedValue, SimpleFunctionExpression, LambdaFunction, FunctionType, PackageableElementExplicitReference, Multiplicity, CORE_PURE_PATH, buildRawLambdaFromLambdaFunction, } from '@finos/legend-graph';
17
17
  import { Randomizer, UnsupportedOperationError } from '@finos/legend-shared';
18
18
  import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationHelper.js';
19
19
  import { instanceValue_setValues, valueSpecification_setGenericType, } from './ValueSpecificationModifierHelper.js';
@@ -92,6 +92,12 @@ export const buildDefaultInstanceValue = (graph, type, observerContext) => {
92
92
  throw new UnsupportedOperationError(`Can't get default value for type'${path}'`);
93
93
  }
94
94
  };
95
+ export const buildDefaultEmptyStringLambda = (graph, observerContext) => {
96
+ const lambdaFunction = new LambdaFunction(new FunctionType(PackageableElementExplicitReference.create(graph.getType(CORE_PURE_PATH.ANY)), Multiplicity.ONE));
97
+ lambdaFunction.expressionSequence[0] = buildDefaultInstanceValue(graph, PrimitiveType.STRING, observerContext);
98
+ return lambdaFunction;
99
+ };
100
+ export const buildDefaultEmptyStringRawLambda = (graphState, observerContext) => buildRawLambdaFromLambdaFunction(buildDefaultEmptyStringLambda(graphState.graph, observerContext), graphState);
95
101
  export const generateVariableExpressionMockValue = (parameter, graph, observerContext) => {
96
102
  const varType = parameter.genericType?.value.rawType;
97
103
  const multiplicity = parameter.multiplicity;
@@ -1 +1 @@
1
- {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAIlB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GAEzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAE9F,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAyB,EACzB,kBAAwB,EACE,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I,kBAAkB,YAAY,kBAAkB,EAAE;QAC3D,OAAO,kBAAkB,CAAC,IAAI,CAAC;KAChC;SAAM,IAAI,kBAAkB,YAAY,yBAAyB,EAAE;QAClE,OAAO,gCAAgC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;KACxE;SAAM,IAAI,kBAAkB,YAAY,wBAAwB,EAAE;QACjE,OAAO,kBAAkB,CAAC,YAAY,CAAC;KACxC;SAAM,IAAI,kBAAkB,YAAY,uBAAuB,EAAE;QAChE,OAAO,kBAAkB,CAAC,MAAM;aAC7B,GAAG,CAAC,gCAAgC,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"ValueSpecificationEditorHelper.js","sourceRoot":"","sources":["../../../src/stores/shared/ValueSpecificationEditorHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACX,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,mCAAmC,EACnC,YAAY,EACZ,cAAc,EACd,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAE9F,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAyB,EACzB,kBAAwB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0B,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAChE,eAAe,CAChB,CAAC;SACH;QACD,OAAO,iBAAiB,CAAC;KAC1B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,kBAAsC,EAClB,EAAE;IACtB,IAAI,kBAAkB,YAAY,sBAAsB,EAAE;QACxD,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;KACjD;SAAM,IAAI,kBAAkB,YAAY,sBAAsB,EAAE;QAC/D,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3C,OAAO,GAAG,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;KACnE;SAAM,IAAI,kBAAkB,YAAY,kBAAkB,EAAE;QAC3D,OAAO,kBAAkB,CAAC,IAAI,CAAC;KAChC;SAAM,IAAI,kBAAkB,YAAY,yBAAyB,EAAE;QAClE,OAAO,gCAAgC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;KACxE;SAAM,IAAI,kBAAkB,YAAY,wBAAwB,EAAE;QACjE,OAAO,kBAAkB,CAAC,YAAY,CAAC;KACxC;SAAM,IAAI,kBAAkB,YAAY,uBAAuB,EAAE;QAChE,OAAO,kBAAkB,CAAC,MAAM;aAC7B,GAAG,CAAC,gCAAgC,CAAC;aACrC,IAAI,CAAC,GAAG,CAAC,CAAC;KACd;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,13 +42,13 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.6",
46
- "@finos/legend-art": "7.0.7",
47
- "@finos/legend-graph": "28.1.3",
48
- "@finos/legend-lego": "0.1.12",
49
- "@finos/legend-server-depot": "6.0.3",
50
- "@finos/legend-shared": "10.0.2",
51
- "@finos/legend-storage": "3.0.52",
45
+ "@finos/legend-application": "15.0.7",
46
+ "@finos/legend-art": "7.0.8",
47
+ "@finos/legend-graph": "28.1.4",
48
+ "@finos/legend-lego": "0.1.13",
49
+ "@finos/legend-server-depot": "6.0.4",
50
+ "@finos/legend-shared": "10.0.3",
51
+ "@finos/legend-storage": "3.0.53",
52
52
  "@testing-library/react": "14.0.0",
53
53
  "@types/react": "18.2.0",
54
54
  "@types/react-dom": "18.2.1",