@finos/legend-query-builder 3.0.6 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts +0 -1
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js +0 -1
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.d.ts +18 -0
- package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.js +20 -0
- package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts +14 -0
- package/lib/__lib__/QueryBuilderTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTelemetryHelper.js +43 -1
- package/lib/__lib__/QueryBuilderTelemetryHelper.js.map +1 -1
- package/lib/components/QueryBuilder.d.ts +0 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +25 -34
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +0 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +11 -15
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +0 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +0 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +16 -20
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts +0 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +0 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +0 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +13 -3
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +2 -2
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +14 -3
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +0 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +0 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +2 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +0 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts +0 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/QueryBuilderState.d.ts +1 -2
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +7 -8
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +2 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts +2 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +18 -15
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/package.json +13 -13
- package/src/__lib__/QueryBuilderDocumentation.ts +0 -2
- package/src/__lib__/QueryBuilderEvent.ts +20 -0
- package/src/__lib__/QueryBuilderTelemetryHelper.ts +131 -1
- package/src/components/QueryBuilder.tsx +147 -188
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +7 -12
- package/src/components/QueryBuilderParametersPanel.tsx +6 -10
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +96 -60
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +1 -3
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +2 -4
- package/src/components/filter/QueryBuilderFilterPanel.tsx +102 -60
- package/src/components/shared/LambdaParameterValuesEditor.tsx +6 -5
- package/src/index.ts +2 -0
- package/src/stores/QueryBuilderState.ts +6 -11
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +1 -1
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +43 -25
@@ -14,7 +14,6 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
export declare enum QUERY_BUILDER_DOCUMENTATION_KEY {
|
17
|
-
TUTORIAL_QUERY_BUILDER = "tutorial.query.builder",
|
18
17
|
QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY = "question.how-to-add-parameters-to-query",
|
19
18
|
QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY = "question.how-to-add-constants-to-query"
|
20
19
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;
|
1
|
+
{"version":3,"file":"QueryBuilderDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,+BAA+B;IAEzC,uCAAuC,4CAA4C;IACnF,sCAAsC,2CAA2C;CAClF"}
|
@@ -15,7 +15,6 @@
|
|
15
15
|
*/
|
16
16
|
export var QUERY_BUILDER_DOCUMENTATION_KEY;
|
17
17
|
(function (QUERY_BUILDER_DOCUMENTATION_KEY) {
|
18
|
-
QUERY_BUILDER_DOCUMENTATION_KEY["TUTORIAL_QUERY_BUILDER"] = "tutorial.query.builder";
|
19
18
|
// questions
|
20
19
|
QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_PARAMETERS_TO_QUERY"] = "question.how-to-add-parameters-to-query";
|
21
20
|
QUERY_BUILDER_DOCUMENTATION_KEY["QUESTION_HOW_TO_ADD_CONSTANTS_TO_QUERY"] = "question.how-to-add-constants-to-query";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+
|
1
|
+
{"version":3,"file":"QueryBuilderDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACzC,YAAY;IACZ,sHAAmF,CAAA;IACnF,oHAAiF,CAAA;AACnF,CAAC,EAJW,+BAA+B,GAA/B,+BAA+B,KAA/B,+BAA+B,QAI1C"}
|
@@ -22,4 +22,22 @@ export declare enum QUERY_BUILDER_EVENT {
|
|
22
22
|
DEBUG_EXECUTION_PLAN__SUCCESS = "query-builder.debug-plan.success",
|
23
23
|
BUILD_EXECUTION_PLAN__SUCCESS = "query-builder.build-plan.success"
|
24
24
|
}
|
25
|
+
export declare enum QUERY_BUILDER_FILTER_EVENT {
|
26
|
+
FILTER__CREATE__CONDITION__LAUNCH = "query-builder.filter.create-condition.launch",
|
27
|
+
FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH = "query-builder.filter.create-group-from-condition.launch",
|
28
|
+
FILTER__CREATE__LOGICAL__GROUP__LAUNCH = "query-builder.filter.create-logical-group.launch",
|
29
|
+
FILTER__CLEANUP__TREE__LAUNCH = "query-builder.filter.cleanup-tree.launch",
|
30
|
+
FILTER__SIMPLIFY__TREE__LAUNCH = "query-builder.filter.simplify-tree.launch",
|
31
|
+
FILTER__COLLAPSE__TREE__LAUNCH = "query-builder.filter.collapse-tree.launch",
|
32
|
+
FILTER__EXPAND__TREE__LAUNCH = "query-builder.filter.expand-tree.launch"
|
33
|
+
}
|
34
|
+
export declare enum QUERY_BUILDER_POST_FILTER_EVENT {
|
35
|
+
FILTER__CREATE__CONDITION__LAUNCH = "query-builder.post-filter.create-condition.launch",
|
36
|
+
FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH = "query-builder.post-filter.create-group-from-condition.launch",
|
37
|
+
FILTER__CREATE__LOGICAL__GROUP__LAUNCH = "query-builder.post-filter.create-logical-group.launch",
|
38
|
+
FILTER__CLEANUP__TREE__LAUNCH = "query-builder.post-filter.cleanup-tree.launch",
|
39
|
+
FILTER__SIMPLIFY__TREE__LAUNCH = "query-builder.post-filter.simplify-tree.launch",
|
40
|
+
FILTER__COLLAPSE__TREE__LAUNCH = "query-builder.post-filter.collapse-tree.launch",
|
41
|
+
FILTER__EXPAND__TREE__LAUNCH = "query-builder.post-filter.expand-tree.launch"
|
42
|
+
}
|
25
43
|
//# sourceMappingURL=QueryBuilderEvent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAEhE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;CACnE"}
|
1
|
+
{"version":3,"file":"QueryBuilderEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,iBAAiB,mCAAmC;IACpD,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAEhE,kBAAkB,oCAAoC;IACtD,gCAAgC,wCAAwC;IACxE,6BAA6B,qCAAqC;IAClE,6BAA6B,qCAAqC;CACnE;AAED,oBAAY,0BAA0B;IACpC,iCAAiC,iDAAiD;IAClF,8CAA8C,4DAA4D;IAC1G,sCAAsC,qDAAqD;IAC3F,6BAA6B,6CAA6C;IAC1E,8BAA8B,8CAA8C;IAC5E,8BAA8B,8CAA8C;IAC5E,4BAA4B,4CAA4C;CACzE;AAED,oBAAY,+BAA+B;IACzC,iCAAiC,sDAAsD;IACvF,8CAA8C,iEAAiE;IAC/G,sCAAsC,0DAA0D;IAChG,6BAA6B,kDAAkD;IAC/E,8BAA8B,mDAAmD;IACjF,8BAA8B,mDAAmD;IACjF,4BAA4B,iDAAiD;CAC9E"}
|
@@ -23,4 +23,24 @@ export var QUERY_BUILDER_EVENT;
|
|
23
23
|
QUERY_BUILDER_EVENT["DEBUG_EXECUTION_PLAN__SUCCESS"] = "query-builder.debug-plan.success";
|
24
24
|
QUERY_BUILDER_EVENT["BUILD_EXECUTION_PLAN__SUCCESS"] = "query-builder.build-plan.success";
|
25
25
|
})(QUERY_BUILDER_EVENT = QUERY_BUILDER_EVENT || (QUERY_BUILDER_EVENT = {}));
|
26
|
+
export var QUERY_BUILDER_FILTER_EVENT;
|
27
|
+
(function (QUERY_BUILDER_FILTER_EVENT) {
|
28
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__CREATE__CONDITION__LAUNCH"] = "query-builder.filter.create-condition.launch";
|
29
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH"] = "query-builder.filter.create-group-from-condition.launch";
|
30
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__CREATE__LOGICAL__GROUP__LAUNCH"] = "query-builder.filter.create-logical-group.launch";
|
31
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__CLEANUP__TREE__LAUNCH"] = "query-builder.filter.cleanup-tree.launch";
|
32
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__SIMPLIFY__TREE__LAUNCH"] = "query-builder.filter.simplify-tree.launch";
|
33
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__COLLAPSE__TREE__LAUNCH"] = "query-builder.filter.collapse-tree.launch";
|
34
|
+
QUERY_BUILDER_FILTER_EVENT["FILTER__EXPAND__TREE__LAUNCH"] = "query-builder.filter.expand-tree.launch";
|
35
|
+
})(QUERY_BUILDER_FILTER_EVENT = QUERY_BUILDER_FILTER_EVENT || (QUERY_BUILDER_FILTER_EVENT = {}));
|
36
|
+
export var QUERY_BUILDER_POST_FILTER_EVENT;
|
37
|
+
(function (QUERY_BUILDER_POST_FILTER_EVENT) {
|
38
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__CREATE__CONDITION__LAUNCH"] = "query-builder.post-filter.create-condition.launch";
|
39
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH"] = "query-builder.post-filter.create-group-from-condition.launch";
|
40
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__CREATE__LOGICAL__GROUP__LAUNCH"] = "query-builder.post-filter.create-logical-group.launch";
|
41
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__CLEANUP__TREE__LAUNCH"] = "query-builder.post-filter.cleanup-tree.launch";
|
42
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__SIMPLIFY__TREE__LAUNCH"] = "query-builder.post-filter.simplify-tree.launch";
|
43
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__COLLAPSE__TREE__LAUNCH"] = "query-builder.post-filter.collapse-tree.launch";
|
44
|
+
QUERY_BUILDER_POST_FILTER_EVENT["FILTER__EXPAND__TREE__LAUNCH"] = "query-builder.post-filter.expand-tree.launch";
|
45
|
+
})(QUERY_BUILDER_POST_FILTER_EVENT = QUERY_BUILDER_POST_FILTER_EVENT || (QUERY_BUILDER_POST_FILTER_EVENT = {}));
|
26
46
|
//# sourceMappingURL=QueryBuilderEvent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAEhE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;AACpE,CAAC,EATW,mBAAmB,GAAnB,mBAAmB,KAAnB,mBAAmB,QAS9B"}
|
1
|
+
{"version":3,"file":"QueryBuilderEvent.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,2EAAoD,CAAA;IACpD,6FAAsE,CAAA;IACtE,uFAAgE,CAAA;IAEhE,6EAAsD,CAAA;IACtD,+FAAwE,CAAA;IACxE,yFAAkE,CAAA;IAClE,yFAAkE,CAAA;AACpE,CAAC,EATW,mBAAmB,GAAnB,mBAAmB,KAAnB,mBAAmB,QAS9B;AAED,MAAM,CAAN,IAAY,0BAQX;AARD,WAAY,0BAA0B;IACpC,gHAAkF,CAAA;IAClF,wIAA0G,CAAA;IAC1G,yHAA2F,CAAA;IAC3F,wGAA0E,CAAA;IAC1E,0GAA4E,CAAA;IAC5E,0GAA4E,CAAA;IAC5E,sGAAwE,CAAA;AAC1E,CAAC,EARW,0BAA0B,GAA1B,0BAA0B,KAA1B,0BAA0B,QAQrC;AAED,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,0HAAuF,CAAA;IACvF,kJAA+G,CAAA;IAC/G,mIAAgG,CAAA;IAChG,kHAA+E,CAAA;IAC/E,oHAAiF,CAAA;IACjF,oHAAiF,CAAA;IACjF,gHAA6E,CAAA;AAC/E,CAAC,EARW,+BAA+B,GAA/B,+BAA+B,KAA/B,+BAA+B,QAQ1C"}
|
@@ -25,6 +25,20 @@ export declare class QueryBuilderTelemetryHelper {
|
|
25
25
|
static logEvent_QueryRunSucceeded(telemetryService: TelemetryService, data: QueryExecution_TelemetryData): void;
|
26
26
|
static logEvent_ExecutionPlanGenerationSucceeded(telemetryService: TelemetryService, data: QueryExecution_TelemetryData): void;
|
27
27
|
static logEvent_ExecutionPlanDebugSucceeded(telemetryService: TelemetryService, data: QueryExecution_TelemetryData): void;
|
28
|
+
static logEvent_FilterCreateConditionLaunched(telemetryService: TelemetryService): void;
|
29
|
+
static logEvent_FilterCleanupTreeLaunched(telemetryService: TelemetryService): void;
|
30
|
+
static logEvent_FilterCollapseTreeLaunched(telemetryService: TelemetryService): void;
|
31
|
+
static logEvent_FilterCreateGroupFromConditionLaunched(telemetryService: TelemetryService): void;
|
32
|
+
static logEvent_FilterCreateLogicalGroupLaunched(telemetryService: TelemetryService): void;
|
33
|
+
static logEvent_FilterExpandTreeLaunched(telemetryService: TelemetryService): void;
|
34
|
+
static logEvent_FilterSimplifyTreeLaunched(telemetryService: TelemetryService): void;
|
35
|
+
static logEvent_PostFilterCreateConditionLaunched(telemetryService: TelemetryService): void;
|
36
|
+
static logEvent_PostFilterCleanupTreeLaunched(telemetryService: TelemetryService): void;
|
37
|
+
static logEvent_PostFilterCollapseTreeLaunched(telemetryService: TelemetryService): void;
|
38
|
+
static logEvent_PostFilterCreateGroupFromConditionLaunched(telemetryService: TelemetryService): void;
|
39
|
+
static logEvent_PostFilterCreateLogicalGroupLaunched(telemetryService: TelemetryService): void;
|
40
|
+
static logEvent_PostFilterExpandTreeLaunched(telemetryService: TelemetryService): void;
|
41
|
+
static logEvent_PostFilterSimplifyTreeLaunched(telemetryService: TelemetryService): void;
|
28
42
|
}
|
29
43
|
export {};
|
30
44
|
//# sourceMappingURL=QueryBuilderTelemetryHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTelemetryHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderTelemetryHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,M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P,MAAM,CAAC,uCAAuC,CAC5C,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;IAOP,MAAM,CAAC,mDAAmD,CACxD,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;IAOP,MAAM,CAAC,6CAA6C,CAClD,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;IAOP,MAAM,CAAC,qCAAqC,CAC1C,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;IAOP,MAAM,CAAC,uCAAuC,CAC5C,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;CAMR"}
|
@@ -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 { QUERY_BUILDER_EVENT } from './QueryBuilderEvent.js';
|
16
|
+
import { QUERY_BUILDER_EVENT, QUERY_BUILDER_FILTER_EVENT, QUERY_BUILDER_POST_FILTER_EVENT, } from './QueryBuilderEvent.js';
|
17
17
|
export class QueryBuilderTelemetryHelper {
|
18
18
|
static logEvent_QueryRunLaunched(telemetryService) {
|
19
19
|
telemetryService.logEvent(QUERY_BUILDER_EVENT.RUN_QUERY__LAUNCH, {});
|
@@ -33,5 +33,47 @@ export class QueryBuilderTelemetryHelper {
|
|
33
33
|
static logEvent_ExecutionPlanDebugSucceeded(telemetryService, data) {
|
34
34
|
telemetryService.logEvent(QUERY_BUILDER_EVENT.DEBUG_EXECUTION_PLAN__SUCCESS, data);
|
35
35
|
}
|
36
|
+
static logEvent_FilterCreateConditionLaunched(telemetryService) {
|
37
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__CONDITION__LAUNCH, {});
|
38
|
+
}
|
39
|
+
static logEvent_FilterCleanupTreeLaunched(telemetryService) {
|
40
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__CLEANUP__TREE__LAUNCH, {});
|
41
|
+
}
|
42
|
+
static logEvent_FilterCollapseTreeLaunched(telemetryService) {
|
43
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__COLLAPSE__TREE__LAUNCH, {});
|
44
|
+
}
|
45
|
+
static logEvent_FilterCreateGroupFromConditionLaunched(telemetryService) {
|
46
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH, {});
|
47
|
+
}
|
48
|
+
static logEvent_FilterCreateLogicalGroupLaunched(telemetryService) {
|
49
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__CREATE__LOGICAL__GROUP__LAUNCH, {});
|
50
|
+
}
|
51
|
+
static logEvent_FilterExpandTreeLaunched(telemetryService) {
|
52
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__EXPAND__TREE__LAUNCH, {});
|
53
|
+
}
|
54
|
+
static logEvent_FilterSimplifyTreeLaunched(telemetryService) {
|
55
|
+
telemetryService.logEvent(QUERY_BUILDER_FILTER_EVENT.FILTER__SIMPLIFY__TREE__LAUNCH, {});
|
56
|
+
}
|
57
|
+
static logEvent_PostFilterCreateConditionLaunched(telemetryService) {
|
58
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__CONDITION__LAUNCH, {});
|
59
|
+
}
|
60
|
+
static logEvent_PostFilterCleanupTreeLaunched(telemetryService) {
|
61
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CLEANUP__TREE__LAUNCH, {});
|
62
|
+
}
|
63
|
+
static logEvent_PostFilterCollapseTreeLaunched(telemetryService) {
|
64
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__COLLAPSE__TREE__LAUNCH, {});
|
65
|
+
}
|
66
|
+
static logEvent_PostFilterCreateGroupFromConditionLaunched(telemetryService) {
|
67
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__GROUP__FROM__CONDITION__LAUNCH, {});
|
68
|
+
}
|
69
|
+
static logEvent_PostFilterCreateLogicalGroupLaunched(telemetryService) {
|
70
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__CREATE__LOGICAL__GROUP__LAUNCH, {});
|
71
|
+
}
|
72
|
+
static logEvent_PostFilterExpandTreeLaunched(telemetryService) {
|
73
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__EXPAND__TREE__LAUNCH, {});
|
74
|
+
}
|
75
|
+
static logEvent_PostFilterSimplifyTreeLaunched(telemetryService) {
|
76
|
+
telemetryService.logEvent(QUERY_BUILDER_POST_FILTER_EVENT.FILTER__SIMPLIFY__TREE__LAUNCH, {});
|
77
|
+
}
|
36
78
|
}
|
37
79
|
//# sourceMappingURL=QueryBuilderTelemetryHelper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTelemetryHelper.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderTelemetryHelper.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTelemetryHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAMhC,MAAM,OAAO,2BAA2B;IACtC,MAAM,CAAC,yBAAyB,CAAC,gBAAkC;QACjE,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,wCAAwC,CAC7C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,mBAAmB,CAAC,+BAA+B,EACnD,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mCAAmC,CACxC,gBAAkC;QAElC,gBAA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CAAC,QAAQ,CACvB,0BAA0B,CAAC,4BAA4B,EACvD,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mCAAmC,CACxC,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,0BAA0B,CAAC,8BAA8B,EACzD,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,0CAA0C,CAC/C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,iCAAiC,EACjE,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,sCAAsC,CAC3C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,6BAA6B,EAC7D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,uCAAuC,CAC5C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,8BAA8B,EAC9D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mDAAmD,CACxD,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,8CAA8C,EAC9E,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,6CAA6C,CAClD,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,sCAAsC,EACtE,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,qCAAqC,CAC1C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,4BAA4B,EAC5D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,uCAAuC,CAC5C,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,+BAA+B,CAAC,8BAA8B,EAC9D,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
17
|
export declare const QueryBuilder: ((props: {
|
19
18
|
queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAiMxE,eAAO,MAAM,YAAY,WACf;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAqZjD,CAAC"}
|
@@ -39,7 +39,6 @@ import { QueryBuilderConstantExpressionPanel } from './QueryBuilderConstantExpre
|
|
39
39
|
import { QueryBuilder_LegendApplicationPlugin } from './QueryBuilder_LegendApplicationPlugin.js';
|
40
40
|
import { QUERY_BUILDER_SETTING_KEY } from '../__lib__/QueryBuilderSetting.js';
|
41
41
|
import { QUERY_BUILDER_COMPONENT_ELEMENT_ID } from './QueryBuilderComponentElement.js';
|
42
|
-
import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../__lib__/QueryBuilderDocumentation.js';
|
43
42
|
const QueryBuilderStatusBar = observer((props) => {
|
44
43
|
const { queryBuilderState } = props;
|
45
44
|
const applicationStore = useApplicationStore();
|
@@ -92,13 +91,6 @@ export const QueryBuilder = observer((props) => {
|
|
92
91
|
const isTDSState = fetchStructureState.implementation instanceof QueryBuilderTDSState;
|
93
92
|
const applicationStore = queryBuilderState.applicationStore;
|
94
93
|
const openLambdaEditor = (mode) => queryBuilderState.textEditorState.openModal(mode);
|
95
|
-
const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
|
96
|
-
const queryDocEntry = applicationStore.documentationService.getDocEntry(QUERY_BUILDER_DOCUMENTATION_KEY.TUTORIAL_QUERY_BUILDER);
|
97
|
-
const openQueryTutorial = () => {
|
98
|
-
if (queryDocEntry?.url) {
|
99
|
-
applicationStore.navigationService.navigator.visitAddress(queryDocEntry.url);
|
100
|
-
}
|
101
|
-
};
|
102
94
|
const toggleShowFunctionPanel = () => {
|
103
95
|
queryBuilderState.setShowFunctionsExplorerPanel(!queryBuilderState.showFunctionsExplorerPanel);
|
104
96
|
};
|
@@ -150,33 +142,32 @@ export const QueryBuilder = observer((props) => {
|
|
150
142
|
}
|
151
143
|
return null;
|
152
144
|
};
|
153
|
-
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className: "query-builder__body", children: [_jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__sub-header", children: [_jsxs("div", { className: "query-builder__sub-header__content__icons", children: [queryBuilderState.watermarkState.value && (_jsx(_Fragment, { children: _jsx("button", { className: "panel__header__action", onClick: openWatermark, tabIndex: -1, title: "Show Watermark", children: _jsx(WaterDropIcon, {}) }) })), queryBuilderState.watermarkState.isEditingWatermark && (_jsx(QueryBuilderWatermarkEditor, { queryBuilderState: queryBuilderState }))] }),
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
.implementation instanceof QueryBuilderTDSState &&
|
170
|
-
queryBuilderState.fetchStructureState.implementation
|
171
|
-
.showPostFilterPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Post-Filter" })] }), _jsxs(MenuContentItem, { onClick: openWatermark, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Watermark" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: openCheckEntitlmentsEditor, disabled: queryBuilderState.isQuerySupported &&
|
172
|
-
queryBuilderState.fetchStructureState
|
173
|
-
.implementation instanceof QueryBuilderTDSState &&
|
145
|
+
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER, className: "query-builder", children: [_jsx(BackdropContainer, { elementId: QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), _jsxs("div", { className: "query-builder__body", children: [_jsxs("div", { className: "query-builder__content", children: [_jsxs("div", { className: "query-builder__sub-header", children: [_jsxs("div", { className: "query-builder__sub-header__content__icons", children: [queryBuilderState.watermarkState.value && (_jsx(_Fragment, { children: _jsx("button", { className: "panel__header__action", onClick: openWatermark, tabIndex: -1, title: "Show Watermark", children: _jsx(WaterDropIcon, {}) }) })), queryBuilderState.watermarkState.isEditingWatermark && (_jsx(QueryBuilderWatermarkEditor, { queryBuilderState: queryBuilderState }))] }), _jsx("div", { className: "query-builder__sub-header__content__actions", children: _jsxs(DropdownMenu, { className: "query-builder__sub-header__custom-action", title: "Show Advanced Menu...", content: _jsxs(MenuContent, { children: [_jsxs(MenuContentItem, { onClick: toggleShowFunctionPanel, disabled: !queryBuilderState.isQuerySupported, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showFunctionsExplorerPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Function(s)" })] }), !queryBuilderState.isParameterSupportDisabled && (_jsxs(MenuContentItem, { onClick: toggleShowParameterPanel, disabled: !queryBuilderState.isQuerySupported ||
|
146
|
+
queryBuilderState.parametersState.parameterStates
|
147
|
+
.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showParametersPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Parameter(s)" })] })), _jsxs(MenuContentItem, { onClick: toggleConstantPanel, disabled: !queryBuilderState.isQuerySupported ||
|
148
|
+
queryBuilderState.constantState.constants.length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.constantState
|
149
|
+
.showConstantPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Constant(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
|
150
|
+
Array.from(queryBuilderState.filterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.filterState.showPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Filter" })] }), _jsxs(MenuContentItem, { onClick: toggleShowOLAPGroupByPanel, disabled: !queryBuilderState.isQuerySupported ||
|
151
|
+
!(queryBuilderState.fetchStructureState
|
152
|
+
.implementation instanceof QueryBuilderTDSState) ||
|
153
|
+
queryBuilderState.fetchStructureState.implementation
|
154
|
+
.windowState.windowColumns.length > 0, children: [_jsx(MenuContentItemIcon, { children: isTDSState &&
|
155
|
+
guaranteeType(queryBuilderState.fetchStructureState
|
156
|
+
.implementation, QueryBuilderTDSState).showWindowFuncPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Window Func(s)" })] }), _jsxs(MenuContentItem, { onClick: toggleShowPostFilterPanel, disabled: !queryBuilderState.isQuerySupported ||
|
157
|
+
!(queryBuilderState.fetchStructureState
|
158
|
+
.implementation instanceof QueryBuilderTDSState) ||
|
159
|
+
Array.from(queryBuilderState.fetchStructureState.implementation.postFilterState.nodes.values()).length > 0, children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.fetchStructureState
|
160
|
+
.implementation instanceof QueryBuilderTDSState &&
|
174
161
|
queryBuilderState.fetchStructureState.implementation
|
175
|
-
.
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
162
|
+
.showPostFilterPanel ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Post-Filter" })] }), _jsxs(MenuContentItem, { onClick: openWatermark, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Watermark" })] }), _jsx(MenuContentDivider, {}), _jsxs(MenuContentItem, { onClick: openCheckEntitlmentsEditor, disabled: queryBuilderState.isQuerySupported &&
|
163
|
+
queryBuilderState.fetchStructureState
|
164
|
+
.implementation instanceof QueryBuilderTDSState &&
|
165
|
+
queryBuilderState.fetchStructureState.implementation
|
166
|
+
.projectionColumns.length === 0, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Check Entitlements" })] }), _jsxs(MenuContentItem, { onClick: editQueryInPure, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Edit Query in Pure" })] }), _jsxs(MenuContentItem, { onClick: showQueryProtocol, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { className: "query-builder__sub-header__menu-content", children: "Show Query Protocol" })] })] }), menuProps: {
|
167
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
168
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
169
|
+
elevation: 7,
|
170
|
+
}, children: [_jsx("div", { className: "query-builder__sub-header__custom-action__label", children: "Advanced" }), _jsx(CaretDownIcon, { className: "query-builder__sub-header__custom-action__icon" })] }) })] }), _jsx("div", { className: "query-builder__main", children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 120, children: isQuerySupported ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 450, minSize: 300, children: _jsx(QueryBuilderSidebar, { queryBuilderState: queryBuilderState, children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 40, direction: 1, children: _jsx(QueryBuilderExplorerPanel, { queryBuilderState: queryBuilderState }) }), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanelSplitter, {})), queryBuilderState.showFunctionsExplorerPanel && (_jsx(ResizablePanel, { minSize: 40, direction: queryBuilderState.showParametersPanel
|
180
171
|
? [1, -1]
|
181
172
|
: -1, children: _jsx(QueryBuilderFunctionsExplorerPanel, { queryBuilderState: queryBuilderState }) })), queryBuilderState.showParametersPanel && (_jsx(ResizablePanelSplitter, {})), queryBuilderState.showParametersPanel && (_jsx(ResizablePanel, { minSize: 40, direction: -1, children: _jsx(QueryBuilderParametersPanel, { queryBuilderState: queryBuilderState }) })), queryBuilderState.constantState
|
182
173
|
.showConstantPanel && _jsx(ResizablePanelSplitter, {}), queryBuilderState.constantState
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,M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GACa,CAClB,IACmB,GAClB,IACF,EACL,iBAAiB,CAAC,eAAe,CAAC,IAAI,IAAI,CACzC,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,EACA,iBAAiB,CAAC,sBAAsB,CAAC,sBAAsB;wBAC9D,6BAA6B,CAC3B,iBAAiB,EACjB,gBAAgB,CAAC,aAAa;6BAC3B,qBAAqB,EAAE;6BACvB,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,YAAY,oCAAoC,CACf,CAC9C,IACC,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,M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iBAAiB,EAAE,iBAAiB,GACpC,GACa,CAClB,IACmB,GAClB,IACF,EACL,iBAAiB,CAAC,eAAe,CAAC,IAAI,IAAI,CACzC,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CACjE,EACA,iBAAiB,CAAC,sBAAsB,CAAC,sBAAsB;wBAC9D,6BAA6B,CAC3B,iBAAiB,EACjB,gBAAgB,CAAC,aAAa;6BAC3B,qBAAqB,EAAE;6BACvB,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,YAAY,oCAAoC,CACf,CAC9C,IACC,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
17
|
export declare const QueryBuilderConstantExpressionPanel: ((props: {
|
19
18
|
queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilderConstantExpressionPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAiKxE,eAAO,MAAM,mCAAmC,WACtC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsGjD,CAAC"}
|
@@ -50,19 +50,15 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
|
|
50
50
|
const typeOptions = queryBuilderState.graphManagerState.graph.primitiveTypes
|
51
51
|
.map(buildElementOption)
|
52
52
|
.concat(queryBuilderState.graphManagerState.graph.enumerations.map(buildElementOption));
|
53
|
-
const [
|
54
|
-
const getValidationMessage = (constantInput) =>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
: undefined;
|
63
|
-
setFailedValidation(possibleMessage !== undefined);
|
64
|
-
return possibleMessage;
|
65
|
-
};
|
53
|
+
const [isNameValid, setIsNameValid] = useState(true);
|
54
|
+
const getValidationMessage = (constantInput) => !constantInput
|
55
|
+
? `Constant name can't be empty`
|
56
|
+
: isValidIdentifier(constantInput) === false
|
57
|
+
? 'Constant name must be text with no spaces and not start with an uppercase letter or number'
|
58
|
+
: allVariableNames.filter((e) => e === constantInput).length >
|
59
|
+
(isCreating ? 0 : 1)
|
60
|
+
? 'Constant name already exists'
|
61
|
+
: undefined;
|
66
62
|
const close = () => {
|
67
63
|
variableState.setSelectedConstant(undefined);
|
68
64
|
};
|
@@ -82,7 +78,7 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
|
|
82
78
|
paper: 'editor-modal__content',
|
83
79
|
}, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Constant' : 'Update Constant'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormValidatedTextField, { name: "Constant Name", prompt: "Name of constant. Should be descriptive of its purpose.", update: (value) => {
|
84
80
|
variableExpression_setName(varExpression, value ?? '');
|
85
|
-
},
|
81
|
+
}, validate: getValidationMessage, onValidate: (issue) => setIsNameValid(!issue), value: variableName, isReadOnly: false }), _jsxs(PanelFormSection, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the constant." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
|
86
82
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
|
87
83
|
darkMode: !applicationStore.layoutService
|
88
84
|
.TEMPORARY__isLightColorThemeEnabled,
|
@@ -91,7 +87,7 @@ const QueryBuilderConstantExpressionEditor = observer((props) => {
|
|
91
87
|
}, graph: queryBuilderState.graphManagerState.graph, obseverContext: queryBuilderState.observerContext, typeCheckOption: {
|
92
88
|
expectedType: variableType,
|
93
89
|
match: variableType === PrimitiveType.DATETIME,
|
94
|
-
}, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create",
|
90
|
+
}, resetValue: resetConstantValue }) })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { text: "Close", onClick: close })] })] }) }));
|
95
91
|
});
|
96
92
|
export const QueryBuilderConstantExpressionPanel = observer((props) => {
|
97
93
|
const { queryBuilderState } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderConstantExpressionPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,EACN,cAAc,EACd,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBA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MAAM,CAAC;IACzE,MAAM,YAAY,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,CAAC,GAAmC,EAAQ,EAAE;QAC/D,IAAI,YAAY,KAAK,GAAG,CAAC,KAAK,EAAE;YAC9B,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC5C;IACH,CAAC,CAAC;IACF,MAAM,WAAW,GACf,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc;SACrD,GAAG,CAAC,kBAAkB,CAAC;SACvB,MAAM,CACL,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CACxD,kBAAkB,CACnB,CACF,CAAC;IAEN,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"QueryBuilderConstantExpressionPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderConstantExpressionPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,kBAAkB,EAClB,oCAAoC,GAErC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,EACN,cAAc,EACd,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,2BAA2B,EAC3B,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CA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,IAEb,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAC7B,aAAa,EAAE,UAAU,CAAC,KAAK,EAC/B,OAAO,EAAE;oCACP,YAAY,EAAE,GAAG,EAAE,CACjB,aAAa,CAAC,mBAAmB,CAAC,UAAU,CAAC;oCAC/C,cAAc,EAAE,GAAG,EAAE,CACnB,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC;iCAC3C,EACD,UAAU,EAAE,UAAU,IAVjB,UAAU,CAAC,IAAI,CAWpB,CACH,CAAC,EACH,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAClC,KAAC,qBAAqB,IACpB,IAAI,EAAC,gBAAgB,EACrB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,WAAW,EACpB,eAAe,EAAC,KAAK,EACrB,WAAW,EAAC,cAAc,EAC1B,WAAW,EAAC,6BAA6B,GACzC,CACH,IACA,GACC,EACL,aAAa,CAAC,gBAAgB,IAAI,CACjC,KAAC,oCAAoC,IACnC,aAAa,EAAE,aAAa,CAAC,gBAAgB,GAC7C,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
import { type QueryBuilderDiffViewState } from '../stores/QueryBuilderChangeDetectionState.js';
|
18
17
|
export declare const QueryBuilderDiffViewPanel: ((props: {
|
19
18
|
diffViewState: QueryBuilderDiffViewState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderDiffPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilderDiffPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderDiffPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,+CAA+C,CAAC;AAQvD,eAAO,MAAM,yBAAyB,WAC5B;IAAE,aAAa,EAAE,yBAAyB,CAAA;CAAE;;CAqGrD,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
18
17
|
export declare const QueryBuilderParametersPanel: ((props: {
|
19
18
|
queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilderParametersPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderParametersPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA8NxE,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA4GjD,CAAC"}
|
@@ -64,24 +64,20 @@ const VariableExpressionEditor = observer((props) => {
|
|
64
64
|
lambdaParameterState.changeMultiplicity(varState, val.value);
|
65
65
|
};
|
66
66
|
const parameterNameValue = varState.name;
|
67
|
-
const [
|
68
|
-
const getValidationMessage = (input) =>
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
67
|
+
const [isNameValid, setIsNameValid] = useState(true);
|
68
|
+
const getValidationMessage = (input) => !input
|
69
|
+
? `Parameter name can't be empty`
|
70
|
+
: allVariableNames.filter((e) => e === input).length >
|
71
|
+
(isCreating ? 0 : 1)
|
72
|
+
? 'Parameter name already exists'
|
73
|
+
: (isCreating &&
|
74
|
+
queryParametersState.parameterStates.find((p) => p.parameter.name === input)) ||
|
75
|
+
(!isCreating &&
|
76
|
+
queryParametersState.parameterStates.filter((p) => p.parameter.name === input).length > 1)
|
73
77
|
? 'Parameter name already exists'
|
74
|
-
: (
|
75
|
-
|
76
|
-
|
77
|
-
queryParametersState.parameterStates.filter((p) => p.parameter.name === input).length > 1)
|
78
|
-
? 'Parameter name already exists'
|
79
|
-
: isValidIdentifier(input, true) === false
|
80
|
-
? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
|
81
|
-
: undefined;
|
82
|
-
setFailedValidation(possibleMessage !== undefined);
|
83
|
-
return possibleMessage;
|
84
|
-
};
|
78
|
+
: isValidIdentifier(input, true) === false
|
79
|
+
? 'Parameter name must be text with no spaces and not start with an uppercase letter or number'
|
80
|
+
: undefined;
|
85
81
|
const close = () => {
|
86
82
|
queryParametersState.setSelectedParameter(undefined);
|
87
83
|
};
|
@@ -95,14 +91,14 @@ const VariableExpressionEditor = observer((props) => {
|
|
95
91
|
root: 'editor-modal__root-container',
|
96
92
|
container: 'editor-modal__container',
|
97
93
|
paper: 'editor-modal__content',
|
98
|
-
}, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Parameter' : 'Update Parameter'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormValidatedTextField, { name: "Parameter Name", prompt: "Name of the parameter. Should be descriptive of its purpose.", value: parameterNameValue,
|
94
|
+
}, children: _jsxs(Modal, { darkMode: true, className: "editor-modal query-builder__variables__modal", children: [_jsx(ModalHeader, { title: `${isCreating ? 'Create Parameter' : 'Update Parameter'}` }), _jsxs(ModalBody, { className: "query-builder__variables__modal__body", children: [_jsx(PanelFormValidatedTextField, { name: "Parameter Name", prompt: "Name of the parameter. Should be descriptive of its purpose.", value: parameterNameValue, update: (value) => {
|
99
95
|
variableExpression_setName(varState, value ?? '');
|
100
|
-
}, isReadOnly: false }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
|
96
|
+
}, validate: getValidationMessage, onValidate: (issue) => setIsNameValid(!issue), isReadOnly: false }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Data type of the parameter." }), _jsx(CustomSelectorInput, { placeholder: "Choose a type...", options: typeOptions, onChange: changeType, value: selectedType, darkMode: !applicationStore.layoutService
|
101
97
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: getPackageableElementOptionFormatter({
|
102
98
|
darkMode: !applicationStore.layoutService
|
103
99
|
.TEMPORARY__isLightColorThemeEnabled,
|
104
100
|
}) })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Multiplicity" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The multiplity determines how many values a parameter can have. Default is set to mandatory single vlue." }), _jsx(CustomSelectorInput, { placeholder: "Choose a multiplicity...", options: multilicityOptions, onChange: changeMultiplicity, value: selectedMultiplicity, hasError: !validParamMultiplicityList.includes(selectedMultiplicity.value), darkMode: !applicationStore.layoutService
|
105
|
-
.TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create",
|
101
|
+
.TEMPORARY__isLightColorThemeEnabled })] })] }), _jsxs(ModalFooter, { children: [isCreating && (_jsx(ModalFooterButton, { text: "Create", disabled: !isNameValid, onClick: onAction })), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
|
106
102
|
});
|
107
103
|
export const QueryBuilderParametersPanel = observer((props) => {
|
108
104
|
const { queryBuilderState } = props;
|