@finos/legend-query-builder 4.14.68 → 4.14.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +1 -0
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +1 -0
  6. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  7. package/lib/components/explorer/QueryBuilderExplorerPanel.js +95 -53
  8. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  9. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +4 -0
  10. package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
  11. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +172 -108
  12. package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
  13. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
  14. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +2 -1
  15. package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
  16. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  17. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +29 -18
  18. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  19. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  20. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +13 -4
  21. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  22. package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
  23. package/lib/components/filter/QueryBuilderFilterPanel.js +4 -3
  24. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  25. package/lib/components/result/QueryBuilderResultPanel.d.ts +12 -0
  26. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  27. package/lib/components/result/QueryBuilderResultPanel.js +60 -8
  28. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  29. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  30. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +47 -28
  31. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  32. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +1 -0
  33. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts.map +1 -1
  34. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +34 -1
  35. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
  36. package/lib/components/shared/QueryBuilderFilterHelper.d.ts.map +1 -1
  37. package/lib/components/shared/QueryBuilderFilterHelper.js +3 -0
  38. package/lib/components/shared/QueryBuilderFilterHelper.js.map +1 -1
  39. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +11 -0
  40. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -1
  41. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +6 -3
  42. package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -1
  43. package/lib/graph-manager/QueryBuilderConfig.d.ts +4 -0
  44. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
  45. package/lib/graph-manager/QueryBuilderConfig.js +5 -0
  46. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
  47. package/lib/index.css +2 -2
  48. package/lib/index.css.map +1 -1
  49. package/lib/package.json +1 -1
  50. package/lib/stores/QueryBuilderResultState.d.ts +11 -3
  51. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  52. package/lib/stores/QueryBuilderResultState.js +47 -4
  53. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  54. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +4 -0
  55. package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
  56. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +5 -1
  57. package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
  58. package/lib/stores/explorer/QueryBuilderExplorerState.js +80 -10
  59. package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
  60. package/lib/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.d.ts +24 -0
  61. package/lib/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.d.ts.map +1 -0
  62. package/lib/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.js +39 -0
  63. package/lib/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.js.map +1 -0
  64. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +8 -4
  65. package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
  66. package/lib/stores/explorer/QueryBuilderPropertySearchState.js +204 -114
  67. package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
  68. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
  69. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +8 -1
  70. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
  71. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  72. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +12 -1
  73. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  74. package/lib/stores/filter/QueryBuilderFilterState.d.ts +8 -1
  75. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  76. package/lib/stores/filter/QueryBuilderFilterState.js +27 -10
  77. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  78. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -0
  79. package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
  80. package/lib/stores/shared/ValueSpecificationEditorHelper.js +6 -2
  81. package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
  82. package/package.json +9 -9
  83. package/src/__lib__/QueryBuilderTesting.ts +1 -0
  84. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +228 -115
  85. package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +618 -388
  86. package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +5 -2
  87. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +78 -44
  88. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +63 -10
  89. package/src/components/filter/QueryBuilderFilterPanel.tsx +4 -2
  90. package/src/components/result/QueryBuilderResultPanel.tsx +207 -20
  91. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +57 -38
  92. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +43 -0
  93. package/src/components/shared/QueryBuilderFilterHelper.ts +8 -0
  94. package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +13 -3
  95. package/src/graph-manager/QueryBuilderConfig.ts +6 -0
  96. package/src/stores/QueryBuilderResultState.ts +64 -10
  97. package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +5 -0
  98. package/src/stores/explorer/QueryBuilderExplorerState.ts +112 -8
  99. package/src/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.ts +46 -0
  100. package/src/stores/explorer/QueryBuilderPropertySearchState.ts +280 -142
  101. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +8 -1
  102. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +15 -2
  103. package/src/stores/filter/QueryBuilderFilterState.ts +34 -11
  104. package/src/stores/shared/ValueSpecificationEditorHelper.ts +9 -1
  105. package/tsconfig.json +1 -0
@@ -335,6 +335,7 @@ export const getValueSpecificationStringValue = (
335
335
  >,
336
336
  options?: {
337
337
  omitEnumOwnerName?: boolean;
338
+ wrapStringInDoubleQuotes?: boolean;
338
339
  },
339
340
  ): string | undefined => {
340
341
  if (valueSpecification instanceof PrimitiveInstanceValue) {
@@ -346,6 +347,12 @@ export const getValueSpecificationStringValue = (
346
347
  ) {
347
348
  return buildDatePickerOption(valueSpecification, applicationStore).label;
348
349
  }
350
+ if (
351
+ valueSpecification.genericType.value.rawType === PrimitiveType.STRING &&
352
+ options?.wrapStringInDoubleQuotes
353
+ ) {
354
+ return `"${valueSpecification.values[0]?.toString()}"`;
355
+ }
349
356
  return valueSpecification.values[0]?.toString();
350
357
  } else if (valueSpecification instanceof EnumValueInstanceValue) {
351
358
  const _enum = valueSpecification.values[0];
@@ -359,6 +366,7 @@ export const getValueSpecificationStringValue = (
359
366
  return getValueSpecificationStringValue(
360
367
  valueSpecification.getValue(),
361
368
  applicationStore,
369
+ options,
362
370
  );
363
371
  } else if (valueSpecification instanceof SimpleFunctionExpression) {
364
372
  if (
@@ -374,7 +382,7 @@ export const getValueSpecificationStringValue = (
374
382
  } else if (valueSpecification instanceof CollectionInstanceValue) {
375
383
  return valueSpecification.values
376
384
  .map((valueSpec) =>
377
- getValueSpecificationStringValue(valueSpec, applicationStore),
385
+ getValueSpecificationStringValue(valueSpec, applicationStore, options),
378
386
  )
379
387
  .join(',');
380
388
  }
package/tsconfig.json CHANGED
@@ -101,6 +101,7 @@
101
101
  "./src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts",
102
102
  "./src/stores/execution-plan/ExecutionPlanState.ts",
103
103
  "./src/stores/explorer/QueryBuilderExplorerState.ts",
104
+ "./src/stores/explorer/QueryBuilderFuzzySearchAdvancedConfigState.ts",
104
105
  "./src/stores/explorer/QueryBuilderPropertySearchState.ts",
105
106
  "./src/stores/explorer/QueryFunctionsExplorerState.ts",
106
107
  "./src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts",