@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
@@ -27,176 +27,157 @@ type QueryExecution_TelemetryData = GraphManagerOperationReport & {
27
27
  };
28
28
 
29
29
  export class QueryBuilderTelemetryHelper {
30
- static logEvent_QueryRunLaunched(telemetryService: TelemetryService): void {
31
- telemetryService.logEvent(QUERY_BUILDER_EVENT.RUN_QUERY__LAUNCH, {});
30
+ static logEvent_QueryRunLaunched(service: TelemetryService): void {
31
+ service.logEvent(QUERY_BUILDER_EVENT.RUN_QUERY__LAUNCH, {});
32
32
  }
33
33
 
34
34
  static logEvent_ExecutionPlanGenerationLaunched(
35
- telemetryService: TelemetryService,
35
+ service: TelemetryService,
36
36
  ): void {
37
- telemetryService.logEvent(
38
- QUERY_BUILDER_EVENT.GENERATE_EXECUTION_PLAN__LAUNCH,
39
- {},
40
- );
37
+ service.logEvent(QUERY_BUILDER_EVENT.GENERATE_EXECUTION_PLAN__LAUNCH, {});
41
38
  }
42
39
 
43
- static logEvent_ExecutionPlanDebugLaunched(
44
- telemetryService: TelemetryService,
45
- ): void {
46
- telemetryService.logEvent(
47
- QUERY_BUILDER_EVENT.DEBUG_EXECUTION_PLAN__LAUNCH,
48
- {},
49
- );
40
+ static logEvent_ExecutionPlanDebugLaunched(service: TelemetryService): void {
41
+ service.logEvent(QUERY_BUILDER_EVENT.DEBUG_EXECUTION_PLAN__LAUNCH, {});
50
42
  }
51
43
 
52
44
  static logEvent_QueryRunSucceeded(
53
- telemetryService: TelemetryService,
45
+ service: TelemetryService,
54
46
  data: QueryExecution_TelemetryData,
55
47
  ): void {
56
- telemetryService.logEvent(QUERY_BUILDER_EVENT.RUN_QUERY__SUCCESS, data);
48
+ service.logEvent(QUERY_BUILDER_EVENT.RUN_QUERY__SUCCESS, data);
57
49
  }
58
50
 
59
51
  static logEvent_ExecutionPlanGenerationSucceeded(
60
- telemetryService: TelemetryService,
52
+ service: TelemetryService,
61
53
  data: QueryExecution_TelemetryData,
62
54
  ): void {
63
- telemetryService.logEvent(
55
+ service.logEvent(
64
56
  QUERY_BUILDER_EVENT.GENERATE_EXECUTION_PLAN__SUCCESS,
65
57
  data,
66
58
  );
67
59
  }
68
60
 
69
61
  static logEvent_ExecutionPlanDebugSucceeded(
70
- telemetryService: TelemetryService,
62
+ service: TelemetryService,
71
63
  data: QueryExecution_TelemetryData,
72
64
  ): void {
73
- telemetryService.logEvent(
74
- QUERY_BUILDER_EVENT.DEBUG_EXECUTION_PLAN__SUCCESS,
75
- data,
76
- );
65
+ service.logEvent(QUERY_BUILDER_EVENT.DEBUG_EXECUTION_PLAN__SUCCESS, data);
77
66
  }
78
67
 
79
68
  static logEvent_FilterCreateConditionLaunched(
80
- telemetryService: TelemetryService,
69
+ service: TelemetryService,
81
70
  ): void {
82
- telemetryService.logEvent(
71
+ service.logEvent(
83
72
  QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__CONDITION__LAUNCH,
84
73
  {},
85
74
  );
86
75
  }
87
76
 
88
- static logEvent_FilterCleanupTreeLaunched(
89
- telemetryService: TelemetryService,
90
- ): void {
91
- telemetryService.logEvent(
77
+ static logEvent_FilterCleanupTreeLaunched(service: TelemetryService): void {
78
+ service.logEvent(
92
79
  QUERY_BUILDER_FILTER_EVENT.FILTER__CLEANUP__TREE__LAUNCH,
93
80
  {},
94
81
  );
95
82
  }
96
83
 
97
- static logEvent_FilterCollapseTreeLaunched(
98
- telemetryService: TelemetryService,
99
- ): void {
100
- telemetryService.logEvent(
84
+ static logEvent_FilterCollapseTreeLaunched(service: TelemetryService): void {
85
+ service.logEvent(
101
86
  QUERY_BUILDER_FILTER_EVENT.FILTER__COLLAPSE__TREE__LAUNCH,
102
87
  {},
103
88
  );
104
89
  }
105
90
 
106
91
  static logEvent_FilterCreateGroupFromConditionLaunched(
107
- telemetryService: TelemetryService,
92
+ service: TelemetryService,
108
93
  ): void {
109
- telemetryService.logEvent(
94
+ service.logEvent(
110
95
  QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH,
111
96
  {},
112
97
  );
113
98
  }
114
99
 
115
100
  static logEvent_FilterCreateLogicalGroupLaunched(
116
- telemetryService: TelemetryService,
101
+ service: TelemetryService,
117
102
  ): void {
118
- telemetryService.logEvent(
103
+ service.logEvent(
119
104
  QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__LOGICAL__GROUP__LAUNCH,
120
105
  {},
121
106
  );
122
107
  }
123
108
 
124
- static logEvent_FilterExpandTreeLaunched(
125
- telemetryService: TelemetryService,
126
- ): void {
127
- telemetryService.logEvent(
109
+ static logEvent_FilterExpandTreeLaunched(service: TelemetryService): void {
110
+ service.logEvent(
128
111
  QUERY_BUILDER_FILTER_EVENT.FILTER__EXPAND__TREE__LAUNCH,
129
112
  {},
130
113
  );
131
114
  }
132
115
 
133
- static logEvent_FilterSimplifyTreeLaunched(
134
- telemetryService: TelemetryService,
135
- ): void {
136
- telemetryService.logEvent(
116
+ static logEvent_FilterSimplifyTreeLaunched(service: TelemetryService): void {
117
+ service.logEvent(
137
118
  QUERY_BUILDER_FILTER_EVENT.FILTER__SIMPLIFY__TREE__LAUNCH,
138
119
  {},
139
120
  );
140
121
  }
141
122
 
142
123
  static logEvent_PostFilterCreateConditionLaunched(
143
- telemetryService: TelemetryService,
124
+ service: TelemetryService,
144
125
  ): void {
145
- telemetryService.logEvent(
126
+ service.logEvent(
146
127
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__CONDITION__LAUNCH,
147
128
  {},
148
129
  );
149
130
  }
150
131
 
151
132
  static logEvent_PostFilterCleanupTreeLaunched(
152
- telemetryService: TelemetryService,
133
+ service: TelemetryService,
153
134
  ): void {
154
- telemetryService.logEvent(
135
+ service.logEvent(
155
136
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CLEANUP__TREE__LAUNCH,
156
137
  {},
157
138
  );
158
139
  }
159
140
 
160
141
  static logEvent_PostFilterCollapseTreeLaunched(
161
- telemetryService: TelemetryService,
142
+ service: TelemetryService,
162
143
  ): void {
163
- telemetryService.logEvent(
144
+ service.logEvent(
164
145
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__COLLAPSE__TREE__LAUNCH,
165
146
  {},
166
147
  );
167
148
  }
168
149
 
169
150
  static logEvent_PostFilterCreateGroupFromConditionLaunched(
170
- telemetryService: TelemetryService,
151
+ service: TelemetryService,
171
152
  ): void {
172
- telemetryService.logEvent(
153
+ service.logEvent(
173
154
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH,
174
155
  {},
175
156
  );
176
157
  }
177
158
 
178
159
  static logEvent_PostFilterCreateLogicalGroupLaunched(
179
- telemetryService: TelemetryService,
160
+ service: TelemetryService,
180
161
  ): void {
181
- telemetryService.logEvent(
162
+ service.logEvent(
182
163
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__LOGICAL__GROUP__LAUNCH,
183
164
  {},
184
165
  );
185
166
  }
186
167
 
187
168
  static logEvent_PostFilterExpandTreeLaunched(
188
- telemetryService: TelemetryService,
169
+ service: TelemetryService,
189
170
  ): void {
190
- telemetryService.logEvent(
171
+ service.logEvent(
191
172
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__EXPAND__TREE__LAUNCH,
192
173
  {},
193
174
  );
194
175
  }
195
176
 
196
177
  static logEvent_PostFilterSimplifyTreeLaunched(
197
- telemetryService: TelemetryService,
178
+ service: TelemetryService,
198
179
  ): void {
199
- telemetryService.logEvent(
180
+ service.logEvent(
200
181
  QUERY_BUILDER_POST_FILTER_EVENT.FILTER__SIMPLIFY__TREE__LAUNCH,
201
182
  {},
202
183
  );