@finos/legend-query-builder 4.1.5 → 4.1.6

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.1.5
1
+ /** @license @finos/legend-query-builder v4.1.6
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import type { TreeNodeData, TreeData } from '@finos/legend-art';
17
17
  import { ActionState, type GeneratorFn } from '@finos/legend-shared';
18
- import { type AbstractProperty, type Type, type MappingModelCoverageAnalysisResult, type MappedEntity, AbstractPropertyExpression, Class, Multiplicity } from '@finos/legend-graph';
18
+ import { type AbstractProperty, type Type, type MappingModelCoverageAnalysisResult, type MappedEntity, AbstractPropertyExpression, Class, Multiplicity, EntityMappedProperty } from '@finos/legend-graph';
19
19
  import type { QueryBuilderState } from '../QueryBuilderState.js';
20
20
  import { type QueryBuilderPreviewData } from '../QueryBuilderPreviewDataHelper.js';
21
21
  import { QueryBuilderPropertySearchState } from './QueryBuilderPropertySearchState.js';
@@ -46,6 +46,7 @@ export declare abstract class QueryBuilderExplorerTreeNodeData implements TreeNo
46
46
  export type QueryBuilderExplorerTreeNodeMappingData = {
47
47
  mapped: boolean;
48
48
  mappedEntity?: MappedEntity | undefined;
49
+ entityMappedProperty?: EntityMappedProperty | undefined;
49
50
  };
50
51
  export declare class QueryBuilderExplorerTreeRootNodeData extends QueryBuilderExplorerTreeNodeData {
51
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderExplorerState.d.ts","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;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BAAiB,EAAE,iBAAiB;IAuBhD,IAAI,mBAAmB,IAAI,QAAQ,CAAC,gCAAgC,CAAC,CAKpE;IAED,WAAW,CACT,GAAG,EAAE,QAAQ,CAAC,gCAAgC,CAAC,GAAG,SAAS,GAC1D,IAAI;IAIP,WAAW,IAAI,IAAI;IAMnB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI3C,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI7C,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,eAAe,IAAI,IAAI;IAatB,2BAA2B,IAAI,WAAW,CAAC,IAAI,CAAC;IA8ChD,WAAW,CACV,IAAI,EAAE,wCAAwC,GAC7C,WAAW,CAAC,IAAI,CAAC;CA0GrB"}
@@ -146,6 +146,7 @@ export const generatePropertyNodeMappingData = (property, parentMappingData, mod
146
146
  mappedEntity: modelCoverageAnalysisResult.__ENTITIES_INDEX.get(mappedProp instanceof EntityMappedProperty
147
147
  ? mappedProp.entityPath
148
148
  : mappedProp.enumPath),
149
+ entityMappedProperty: mappedProp instanceof EntityMappedProperty ? mappedProp : undefined,
149
150
  };
150
151
  }
151
152
  }
@@ -162,6 +163,7 @@ export const generateSubtypeNodeMappingData = (subclass, parentMappingData, mode
162
163
  const allCompatibleTypePaths = getAllSubclasses(subclass)
163
164
  .concat(subclass)
164
165
  .map((_class) => _class.path);
166
+ const subtype = parentMappingData.entityMappedProperty?.subType;
165
167
  // If the subtype node's parent node does not have a mapped entity,
166
168
  // it means the superclass is not mapped, i.e. this subtype is not mapped
167
169
  if (parentMappingData.mappedEntity) {
@@ -177,7 +179,9 @@ export const generateSubtypeNodeMappingData = (subclass, parentMappingData, mode
177
179
  mappedEntity: modelCoverageAnalysisResult.__ENTITIES_INDEX.get(mappedSubtype.entityPath),
178
180
  };
179
181
  }
180
- else if (allCompatibleTypePaths.includes(parentMappingData.mappedEntity.path)) {
182
+ else if (allCompatibleTypePaths.includes(parentMappingData.mappedEntity.path) ||
183
+ // hanlde cases where multi class mappings for same subtype
184
+ (subtype && allCompatibleTypePaths.includes(subtype))) {
181
185
  // This is to handle the case where the property mapping is pointing
182
186
  // directly at the class mapping of a subtype of the type of that property
183
187
  //
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,iBAAiB,EAEjB,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAML,0BAA0B,EAC1B,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,WAAW,EACX,cAAc,EACd,kBAAkB,EAElB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAE7B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,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B,CAAC,aAAa,CACvE,oCAAoC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,KAAK,CAAC,OAAO,EAAE,CACnF,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SACjD;gBAAS;YACR,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;SACzD;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryBuilderExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,iBAAiB,EAEjB,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAML,0BAA0B,EAC1B,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,QAAQ,EACR,WAAW,EACX,cAAc,EACd,kBAAkB,EAElB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAE7B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2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kBAAkB,EAClB,gCAAgC,CACjC,CAAC;oBACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAClC,aAAa,CAAC,MAAiC,CAChD,CAAC;oBACF,MAAM;iBACP;gBACD;oBACE,MAAM,IAAI,yBAAyB,CACjC,4CAA4C,YAAY,CAAC,IAAI,GAAG,CACjE,CAAC;aACL;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACvE,oCAAoC,IAAI,CAAC,QAAQ,CAAC,IAAI,aAAa,KAAK,CAAC,OAAO,EAAE,CACnF,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;SACjD;gBAAS;YACR,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;SACzD;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -134,6 +134,8 @@ export abstract class QueryBuilderExplorerTreeNodeData implements TreeNodeData {
134
134
  export type QueryBuilderExplorerTreeNodeMappingData = {
135
135
  mapped: boolean;
136
136
  mappedEntity?: MappedEntity | undefined;
137
+ // used to describe the mapped property
138
+ entityMappedProperty?: EntityMappedProperty | undefined;
137
139
  };
138
140
 
139
141
  export class QueryBuilderExplorerTreeRootNodeData extends QueryBuilderExplorerTreeNodeData {}
@@ -292,6 +294,7 @@ export const generatePropertyNodeMappingData = (
292
294
  ): QueryBuilderExplorerTreeNodeMappingData => {
293
295
  // If the property node's parent node does not have a mapped entity,
294
296
  // it means the owner class is not mapped, i.e. this property is not mapped.
297
+
295
298
  if (parentMappingData.mappedEntity) {
296
299
  const mappedProp = parentMappingData.mappedEntity.__PROPERTIES_INDEX.get(
297
300
  property.name,
@@ -308,6 +311,8 @@ export const generatePropertyNodeMappingData = (
308
311
  ? mappedProp.entityPath
309
312
  : (mappedProp as EnumMappedProperty).enumPath,
310
313
  ),
314
+ entityMappedProperty:
315
+ mappedProp instanceof EntityMappedProperty ? mappedProp : undefined,
311
316
  };
312
317
  }
313
318
  }
@@ -329,6 +334,7 @@ export const generateSubtypeNodeMappingData = (
329
334
  const allCompatibleTypePaths = getAllSubclasses(subclass)
330
335
  .concat(subclass)
331
336
  .map((_class) => _class.path);
337
+ const subtype = parentMappingData.entityMappedProperty?.subType;
332
338
  // If the subtype node's parent node does not have a mapped entity,
333
339
  // it means the superclass is not mapped, i.e. this subtype is not mapped
334
340
  if (parentMappingData.mappedEntity) {
@@ -350,7 +356,9 @@ export const generateSubtypeNodeMappingData = (
350
356
  ),
351
357
  };
352
358
  } else if (
353
- allCompatibleTypePaths.includes(parentMappingData.mappedEntity.path)
359
+ allCompatibleTypePaths.includes(parentMappingData.mappedEntity.path) ||
360
+ // hanlde cases where multi class mappings for same subtype
361
+ (subtype && allCompatibleTypePaths.includes(subtype))
354
362
  ) {
355
363
  // This is to handle the case where the property mapping is pointing
356
364
  // directly at the class mapping of a subtype of the type of that property