@finos/legend-query-builder 4.2.0 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +2 -2
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +9 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/package.json +3 -3
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +2 -2
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +11 -1
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -130,12 +130,12 @@ export const generateDefaultValueForPrimitiveType = (type) => {
|
|
130
130
|
return '';
|
131
131
|
case PRIMITIVE_TYPE.BOOLEAN:
|
132
132
|
return false;
|
133
|
+
case PRIMITIVE_TYPE.BYTE:
|
134
|
+
return btoa('');
|
133
135
|
case PRIMITIVE_TYPE.NUMBER:
|
134
136
|
case PRIMITIVE_TYPE.DECIMAL:
|
135
137
|
case PRIMITIVE_TYPE.FLOAT:
|
136
138
|
case PRIMITIVE_TYPE.INTEGER:
|
137
|
-
case PRIMITIVE_TYPE.BYTE:
|
138
|
-
case PRIMITIVE_TYPE.BINARY:
|
139
139
|
return 0;
|
140
140
|
case PRIMITIVE_TYPE.DATE:
|
141
141
|
case PRIMITIVE_TYPE.STRICTDATE:
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderValueSpecificationHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EAEjB,sBAAsB,EACtB,sBAAsB,E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M,CAAC,MAAM,6BAA6B,GAAG,CAC3C,IAAsB,EACtB,cAAoB,EACX,EAAE;IACX,MAAM,uBAAuB,GAAG;QAC9B,cAAc,CAAC,MAAM;QACrB,cAAc,CAAC,OAAO;QACtB,cAAc,CAAC,OAAO;QACtB,cAAc,CAAC,KAAK;KACT,CAAC;IACd,MAAM,oBAAoB,GAAG;QAC3B,cAAc,CAAC,IAAI;QACnB,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,UAAU;QACzB,cAAc,CAAC,UAAU;KACd,CAAC;IAEd,uFAAuF;IACvF,OAAO,CACL,IAAI,KAAK,SAAS;QAClB,yDAAyD;QACzD,iDAAiD;QACjD,CAAC,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3C,uBAAuB,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YACtD,uEAAuE;YACvE,yEAAyE;YACzE,uCAAuC;YACvC,qEAAqE;YACrE,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YACxC,IAAI,KAAK,cAAc;YACvB,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CACrC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,IAAoB,EACX,EAAE;IACX,QAAQ,IAAI,EAAE;QACZ,KAAK,cAAc,CAAC,MAAM;YACxB,OAAO,EAAE,CAAC;QACZ,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,KAAK,CAAC;QACf,KAAK,cAAc,CAAC,
|
1
|
+
{"version":3,"file":"QueryBuilderValueSpecificationHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAg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C;SACH;QACD,OAAO,GAAG,CAAC;KACZ;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
@@ -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,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,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AA2CF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAiDF,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,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,
|
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,EAOf,MAAM,qBAAqB,CAAC;AAgB7B,eAAO,MAAM,iCAAiC,sBACzB,MAAM,sBACL,IAAI,KACvB,wBAOF,CAAC;AACF,eAAO,MAAM,2BAA2B,UAC/B,SAAS,QACV,cAAc,SACb,OAAO,mBACG,eAAe,KAC/B,sBAQF,CAAC;AA2CF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,KACvB,MACyE,CAAC;AAE7E,eAAO,MAAM,yBAAyB,UAC7B,SAAS,QACV,IAAI,mBACO,eAAe,KAC/B,kBAiDF,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,YACtB;IACR,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C,KACA,kBAAkB,GAAG,SAyCvB,CAAC;AAEF,eAAO,MAAM,gCAAgC,uBACvB,kBAAkB,KACrC,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,kBAAkB,QACxB,kBAAkB,SAChB,SAAS,KACf,OAeF,CAAC"}
|
@@ -84,7 +84,15 @@ export const buildDefaultEmptyStringRawLambda = (graphState, observerContext) =>
|
|
84
84
|
export const generateVariableExpressionMockValue = (parameter, graph, observerContext, options) => {
|
85
85
|
const varType = parameter.genericType?.value.rawType;
|
86
86
|
const multiplicity = parameter.multiplicity;
|
87
|
-
|
87
|
+
/**
|
88
|
+
* Studio doesn't handle byte[*] as a CollectionInstanceValue but as a
|
89
|
+
* PrimitiveValueSpecification of type PrimitiveType.BYTE.
|
90
|
+
* Engine sends a Base64String transformed from byte[] by Jackson to Studio, then
|
91
|
+
* Studio stores this Base64String as the value of V1_CByteArray.
|
92
|
+
*/
|
93
|
+
if ((!multiplicity.upperBound || multiplicity.upperBound > 1) &&
|
94
|
+
varType &&
|
95
|
+
varType !== PrimitiveType.BYTE) {
|
88
96
|
return new CollectionInstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(varType)));
|
89
97
|
}
|
90
98
|
if (varType instanceof PrimitiveType) {
|
@@ -1 +1 @@
|
|
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,EAChC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,2CAA2C,CAAC;AAEnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,iBAAyB,EACzB,kBAAwB,EACE,EAAE;IAC5B,MAAM,cAAc,GAAG,IAAI,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;IACvE,iCAAiC,CAC/B,cAAc,EACd,4BAA4B,CAAC,MAAM,CAAC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,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAAuB,EACvB,KAAgB,EACP,EAAE;IACX,MAAM,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACxC,+BAA+B,CAAC,GAAG,CAAC,CACrC,CAAC;IACF,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACtC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAC5D,CAAC;IACF,MAAM,UAAU,GAAG,kBAAkB,CAAC,GAAG,EAAE,CACzC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAChD,CAAC;IACF,2HAA2H;IAC3H,6EAA6E;IAC7E,OAAO,OAAO,CACZ,SAAS,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,UAAU,CAAC,CAC5E,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.2.
|
3
|
+
"version": "4.2.2",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,8 +44,8 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "15.0.36",
|
46
46
|
"@finos/legend-art": "7.0.36",
|
47
|
-
"@finos/legend-graph": "31.0
|
48
|
-
"@finos/legend-lego": "1.1.
|
47
|
+
"@finos/legend-graph": "31.1.0",
|
48
|
+
"@finos/legend-lego": "1.1.16",
|
49
49
|
"@finos/legend-server-depot": "6.0.23",
|
50
50
|
"@finos/legend-shared": "10.0.22",
|
51
51
|
"@finos/legend-storage": "3.0.72",
|
@@ -211,12 +211,12 @@ export const generateDefaultValueForPrimitiveType = (
|
|
211
211
|
return '';
|
212
212
|
case PRIMITIVE_TYPE.BOOLEAN:
|
213
213
|
return false;
|
214
|
+
case PRIMITIVE_TYPE.BYTE:
|
215
|
+
return btoa('');
|
214
216
|
case PRIMITIVE_TYPE.NUMBER:
|
215
217
|
case PRIMITIVE_TYPE.DECIMAL:
|
216
218
|
case PRIMITIVE_TYPE.FLOAT:
|
217
219
|
case PRIMITIVE_TYPE.INTEGER:
|
218
|
-
case PRIMITIVE_TYPE.BYTE:
|
219
|
-
case PRIMITIVE_TYPE.BINARY:
|
220
220
|
return 0;
|
221
221
|
case PRIMITIVE_TYPE.DATE:
|
222
222
|
case PRIMITIVE_TYPE.STRICTDATE:
|
@@ -224,7 +224,17 @@ export const generateVariableExpressionMockValue = (
|
|
224
224
|
): ValueSpecification | undefined => {
|
225
225
|
const varType = parameter.genericType?.value.rawType;
|
226
226
|
const multiplicity = parameter.multiplicity;
|
227
|
-
|
227
|
+
/**
|
228
|
+
* Studio doesn't handle byte[*] as a CollectionInstanceValue but as a
|
229
|
+
* PrimitiveValueSpecification of type PrimitiveType.BYTE.
|
230
|
+
* Engine sends a Base64String transformed from byte[] by Jackson to Studio, then
|
231
|
+
* Studio stores this Base64String as the value of V1_CByteArray.
|
232
|
+
*/
|
233
|
+
if (
|
234
|
+
(!multiplicity.upperBound || multiplicity.upperBound > 1) &&
|
235
|
+
varType &&
|
236
|
+
varType !== PrimitiveType.BYTE
|
237
|
+
) {
|
228
238
|
return new CollectionInstanceValue(
|
229
239
|
multiplicity,
|
230
240
|
GenericTypeExplicitReference.create(new GenericType(varType)),
|