@gooddata/sdk-code-convertors 11.43.0-alpha.4 → 11.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/esm/configs/areaChart.d.ts +2 -0
  2. package/esm/configs/areaChart.d.ts.map +1 -1
  3. package/esm/configs/areaChart.js +5 -0
  4. package/esm/configs/barChart.d.ts +2 -0
  5. package/esm/configs/barChart.d.ts.map +1 -1
  6. package/esm/configs/barChart.js +5 -0
  7. package/esm/configs/bubbleChart.d.ts +2 -0
  8. package/esm/configs/bubbleChart.d.ts.map +1 -1
  9. package/esm/configs/bubbleChart.js +5 -0
  10. package/esm/configs/bulletChart.d.ts +2 -0
  11. package/esm/configs/bulletChart.d.ts.map +1 -1
  12. package/esm/configs/bulletChart.js +5 -0
  13. package/esm/configs/columnChart.d.ts +2 -0
  14. package/esm/configs/columnChart.d.ts.map +1 -1
  15. package/esm/configs/columnChart.js +5 -0
  16. package/esm/configs/comboChart.d.ts +2 -0
  17. package/esm/configs/comboChart.d.ts.map +1 -1
  18. package/esm/configs/comboChart.js +5 -0
  19. package/esm/configs/dependencyWheelChart.d.ts +2 -0
  20. package/esm/configs/dependencyWheelChart.d.ts.map +1 -1
  21. package/esm/configs/dependencyWheelChart.js +5 -0
  22. package/esm/configs/donutChart.d.ts +2 -0
  23. package/esm/configs/donutChart.d.ts.map +1 -1
  24. package/esm/configs/donutChart.js +5 -0
  25. package/esm/configs/funnelChart.d.ts +2 -0
  26. package/esm/configs/funnelChart.d.ts.map +1 -1
  27. package/esm/configs/funnelChart.js +5 -0
  28. package/esm/configs/heatmapChart.d.ts +2 -0
  29. package/esm/configs/heatmapChart.d.ts.map +1 -1
  30. package/esm/configs/heatmapChart.js +5 -0
  31. package/esm/configs/lineChart.d.ts +2 -0
  32. package/esm/configs/lineChart.d.ts.map +1 -1
  33. package/esm/configs/lineChart.js +5 -0
  34. package/esm/configs/pieChart.d.ts +2 -0
  35. package/esm/configs/pieChart.d.ts.map +1 -1
  36. package/esm/configs/pieChart.js +5 -0
  37. package/esm/configs/pyramidChart.d.ts +2 -0
  38. package/esm/configs/pyramidChart.d.ts.map +1 -1
  39. package/esm/configs/pyramidChart.js +5 -0
  40. package/esm/configs/sankeyChart.d.ts +2 -0
  41. package/esm/configs/sankeyChart.d.ts.map +1 -1
  42. package/esm/configs/sankeyChart.js +5 -0
  43. package/esm/configs/scatterChart.d.ts +2 -0
  44. package/esm/configs/scatterChart.d.ts.map +1 -1
  45. package/esm/configs/scatterChart.js +5 -0
  46. package/esm/configs/table.d.ts.map +1 -1
  47. package/esm/configs/table.js +11 -8
  48. package/esm/configs/treemapChart.d.ts +2 -0
  49. package/esm/configs/treemapChart.d.ts.map +1 -1
  50. package/esm/configs/treemapChart.js +5 -0
  51. package/esm/configs/waterfallChart.d.ts +2 -0
  52. package/esm/configs/waterfallChart.d.ts.map +1 -1
  53. package/esm/configs/waterfallChart.js +5 -0
  54. package/esm/sdk-code-convertors.d.ts +35 -1
  55. package/esm/to/yamlVisualisationToDeclarative.d.ts +1 -1
  56. package/esm/to/yamlVisualisationToDeclarative.d.ts.map +1 -1
  57. package/esm/to/yamlVisualisationToDeclarative.js +22 -10
  58. package/package.json +6 -6
@@ -192,6 +192,7 @@ export declare type AreaChartConfigProperties = {
192
192
  enabled: boolean;
193
193
  };
194
194
  disableDrillDown: boolean;
195
+ disableDrillIntoURL: boolean;
195
196
  disableAlerts: boolean;
196
197
  disableScheduledExports: boolean;
197
198
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -249,6 +250,7 @@ export declare function areaChartSave(_fields: Visualisation["query"]["fields"]
249
250
  enabled: boolean | undefined;
250
251
  } | undefined;
251
252
  disableDrillDown: boolean | undefined;
253
+ disableDrillIntoURL: boolean | undefined;
252
254
  disableAlerts: boolean | undefined;
253
255
  disableScheduledExports: boolean | undefined;
254
256
  disableKeyDriveAnalysisOn: {
@@ -356,6 +358,7 @@ export declare type BarChartConfigProperties = {
356
358
  enabled: boolean;
357
359
  };
358
360
  disableDrillDown: boolean;
361
+ disableDrillIntoURL: boolean;
359
362
  disableAlerts: boolean;
360
363
  disableScheduledExports: boolean;
361
364
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -407,6 +410,7 @@ export declare function barChartSave(_fields: Visualisation["query"]["fields"] |
407
410
  enabled: boolean | undefined;
408
411
  } | undefined;
409
412
  disableDrillDown: boolean | undefined;
413
+ disableDrillIntoURL: boolean | undefined;
410
414
  disableAlerts: boolean | undefined;
411
415
  disableScheduledExports: boolean | undefined;
412
416
  disableKeyDriveAnalysisOn: {
@@ -504,6 +508,7 @@ export declare type BubbleChartConfigProperties = {
504
508
  enabled: boolean;
505
509
  };
506
510
  disableDrillDown: boolean;
511
+ disableDrillIntoURL: boolean;
507
512
  disableAlerts: boolean;
508
513
  disableScheduledExports: boolean;
509
514
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -551,6 +556,7 @@ export declare function bubbleChartSave(_fields: Visualisation["query"]["fields"
551
556
  enabled: boolean | undefined;
552
557
  } | undefined;
553
558
  disableDrillDown: boolean | undefined;
559
+ disableDrillIntoURL: boolean | undefined;
554
560
  disableAlerts: boolean | undefined;
555
561
  disableScheduledExports: boolean | undefined;
556
562
  disableKeyDriveAnalysisOn: {
@@ -691,6 +697,7 @@ export declare type BulletChartConfigProperties = {
691
697
  enabled: boolean;
692
698
  };
693
699
  disableDrillDown: boolean;
700
+ disableDrillIntoURL: boolean;
694
701
  disableAlerts: boolean;
695
702
  disableScheduledExports: boolean;
696
703
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -735,6 +742,7 @@ export declare function bulletChartSave(_fields: Visualisation["query"]["fields"
735
742
  enabled: boolean | undefined;
736
743
  } | undefined;
737
744
  disableDrillDown: boolean | undefined;
745
+ disableDrillIntoURL: boolean | undefined;
738
746
  disableAlerts: boolean | undefined;
739
747
  disableScheduledExports: boolean | undefined;
740
748
  disableKeyDriveAnalysisOn: {
@@ -861,6 +869,7 @@ export declare type ColumnChartConfigProperties = {
861
869
  enabled: boolean;
862
870
  };
863
871
  disableDrillDown: boolean;
872
+ disableDrillIntoURL: boolean;
864
873
  disableAlerts: boolean;
865
874
  disableScheduledExports: boolean;
866
875
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -912,6 +921,7 @@ export declare function columnChartSave(_fields: Visualisation["query"]["fields"
912
921
  enabled: boolean | undefined;
913
922
  } | undefined;
914
923
  disableDrillDown: boolean | undefined;
924
+ disableDrillIntoURL: boolean | undefined;
915
925
  disableAlerts: boolean | undefined;
916
926
  disableScheduledExports: boolean | undefined;
917
927
  disableKeyDriveAnalysisOn: {
@@ -1047,6 +1057,7 @@ export declare type ComboChartConfigProperties = {
1047
1057
  enabled: boolean;
1048
1058
  };
1049
1059
  disableDrillDown: boolean;
1060
+ disableDrillIntoURL: boolean;
1050
1061
  disableAlerts: boolean;
1051
1062
  disableScheduledExports: boolean;
1052
1063
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -1125,6 +1136,7 @@ export declare function comboChartSave(_fields: Visualisation["query"]["fields"]
1125
1136
  enabled: boolean | undefined;
1126
1137
  } | undefined;
1127
1138
  disableDrillDown: boolean | undefined;
1139
+ disableDrillIntoURL: boolean | undefined;
1128
1140
  disableAlerts: boolean | undefined;
1129
1141
  disableScheduledExports: boolean | undefined;
1130
1142
  disableKeyDriveAnalysisOn: {
@@ -1400,6 +1412,7 @@ export declare type DependencyWheelChartConfigProperties = {
1400
1412
  position: "top" | "bottom" | "left" | "right" | "auto";
1401
1413
  };
1402
1414
  disableDrillDown: boolean;
1415
+ disableDrillIntoURL: boolean;
1403
1416
  disableAlerts: boolean;
1404
1417
  disableScheduledExports: boolean;
1405
1418
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -1419,6 +1432,7 @@ export declare function dependencyWheelChartSave(_fields: Visualisation["query"]
1419
1432
  position: string | undefined;
1420
1433
  } | undefined;
1421
1434
  disableDrillDown: boolean | undefined;
1435
+ disableDrillIntoURL: boolean | undefined;
1422
1436
  disableAlerts: boolean | undefined;
1423
1437
  disableScheduledExports: boolean | undefined;
1424
1438
  disableKeyDriveAnalysisOn: {
@@ -1493,6 +1507,7 @@ export declare type DonutChartConfigProperties = {
1493
1507
  position: "top" | "bottom" | "left" | "right" | "auto";
1494
1508
  };
1495
1509
  disableDrillDown: boolean;
1510
+ disableDrillIntoURL: boolean;
1496
1511
  disableAlerts: boolean;
1497
1512
  disableScheduledExports: boolean;
1498
1513
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -1517,6 +1532,7 @@ export declare function donutChartSave(_fields: Visualisation["query"]["fields"]
1517
1532
  position: string | undefined;
1518
1533
  } | undefined;
1519
1534
  disableDrillDown: boolean | undefined;
1535
+ disableDrillIntoURL: boolean | undefined;
1520
1536
  disableAlerts: boolean | undefined;
1521
1537
  disableScheduledExports: boolean | undefined;
1522
1538
  disableKeyDriveAnalysisOn: {
@@ -1640,6 +1656,7 @@ export declare type FunnelChartConfigProperties = {
1640
1656
  position: "top" | "bottom" | "left" | "right" | "auto";
1641
1657
  };
1642
1658
  disableDrillDown: boolean;
1659
+ disableDrillIntoURL: boolean;
1643
1660
  disableAlerts: boolean;
1644
1661
  disableScheduledExports: boolean;
1645
1662
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -1664,6 +1681,7 @@ export declare function funnelChartSave(_fields: Visualisation["query"]["fields"
1664
1681
  position: string | undefined;
1665
1682
  } | undefined;
1666
1683
  disableDrillDown: boolean | undefined;
1684
+ disableDrillIntoURL: boolean | undefined;
1667
1685
  disableAlerts: boolean | undefined;
1668
1686
  disableScheduledExports: boolean | undefined;
1669
1687
  disableKeyDriveAnalysisOn: {
@@ -2118,6 +2136,7 @@ export declare type HeatmapChartConfigProperties = {
2118
2136
  visible: boolean;
2119
2137
  };
2120
2138
  disableDrillDown: boolean;
2139
+ disableDrillIntoURL: boolean;
2121
2140
  disableAlerts: boolean;
2122
2141
  disableScheduledExports: boolean;
2123
2142
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -2156,6 +2175,7 @@ export declare function heatmapChartSave(_fields: Visualisation["query"]["fields
2156
2175
  labelsEnabled: boolean | undefined;
2157
2176
  } | undefined;
2158
2177
  disableDrillDown: boolean | undefined;
2178
+ disableDrillIntoURL: boolean | undefined;
2159
2179
  disableAlerts: boolean | undefined;
2160
2180
  disableScheduledExports: boolean | undefined;
2161
2181
  disableKeyDriveAnalysisOn: {
@@ -2624,6 +2644,7 @@ export declare type LineChartConfigProperties = {
2624
2644
  color: string | number;
2625
2645
  };
2626
2646
  disableDrillDown: boolean;
2647
+ disableDrillIntoURL: boolean;
2627
2648
  disableAlerts: boolean;
2628
2649
  disableScheduledExports: boolean;
2629
2650
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -2692,6 +2713,7 @@ export declare function lineChartSave(_fields: Visualisation["query"]["fields"]
2692
2713
  color: string | number | undefined;
2693
2714
  } | undefined;
2694
2715
  disableDrillDown: boolean | undefined;
2716
+ disableDrillIntoURL: boolean | undefined;
2695
2717
  disableAlerts: boolean | undefined;
2696
2718
  disableScheduledExports: boolean | undefined;
2697
2719
  disableKeyDriveAnalysisOn: {
@@ -2797,6 +2819,7 @@ export declare type PieChartConfigProperties = {
2797
2819
  position: "top" | "bottom" | "left" | "right" | "auto";
2798
2820
  };
2799
2821
  disableDrillDown: boolean;
2822
+ disableDrillIntoURL: boolean;
2800
2823
  disableAlerts: boolean;
2801
2824
  disableScheduledExports: boolean;
2802
2825
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -2821,6 +2844,7 @@ export declare function pieChartSave(_fields: Visualisation["query"]["fields"] |
2821
2844
  position: string | undefined;
2822
2845
  } | undefined;
2823
2846
  disableDrillDown: boolean | undefined;
2847
+ disableDrillIntoURL: boolean | undefined;
2824
2848
  disableAlerts: boolean | undefined;
2825
2849
  disableScheduledExports: boolean | undefined;
2826
2850
  disableKeyDriveAnalysisOn: {
@@ -2909,6 +2933,7 @@ export declare type PyramidChartConfigProperties = {
2909
2933
  position: "top" | "bottom" | "left" | "right" | "auto";
2910
2934
  };
2911
2935
  disableDrillDown: boolean;
2936
+ disableDrillIntoURL: boolean;
2912
2937
  disableAlerts: boolean;
2913
2938
  disableScheduledExports: boolean;
2914
2939
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -2933,6 +2958,7 @@ export declare function pyramidChartSave(_fields: Visualisation["query"]["fields
2933
2958
  position: string | undefined;
2934
2959
  } | undefined;
2935
2960
  disableDrillDown: boolean | undefined;
2961
+ disableDrillIntoURL: boolean | undefined;
2936
2962
  disableAlerts: boolean | undefined;
2937
2963
  disableScheduledExports: boolean | undefined;
2938
2964
  disableKeyDriveAnalysisOn: {
@@ -3088,6 +3114,7 @@ export declare type SankeyChartConfigProperties = {
3088
3114
  position: "top" | "bottom" | "left" | "right" | "auto";
3089
3115
  };
3090
3116
  disableDrillDown: boolean;
3117
+ disableDrillIntoURL: boolean;
3091
3118
  disableAlerts: boolean;
3092
3119
  disableScheduledExports: boolean;
3093
3120
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -3108,6 +3135,7 @@ export declare function sankeyChartSave(_fields: Visualisation["query"]["fields"
3108
3135
  position: string | undefined;
3109
3136
  } | undefined;
3110
3137
  disableDrillDown: boolean | undefined;
3138
+ disableDrillIntoURL: boolean | undefined;
3111
3139
  disableAlerts: boolean | undefined;
3112
3140
  disableScheduledExports: boolean | undefined;
3113
3141
  disableKeyDriveAnalysisOn: {
@@ -3215,6 +3243,7 @@ export declare type ScatterChartConfigProperties = {
3215
3243
  threshold: number;
3216
3244
  };
3217
3245
  disableDrillDown: boolean;
3246
+ disableDrillIntoURL: boolean;
3218
3247
  disableAlerts: boolean;
3219
3248
  disableScheduledExports: boolean;
3220
3249
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -3263,6 +3292,7 @@ export declare function scatterChartSave(_fields: Visualisation["query"]["fields
3263
3292
  threshold: number | undefined;
3264
3293
  } | undefined;
3265
3294
  disableDrillDown: boolean | undefined;
3295
+ disableDrillIntoURL: boolean | undefined;
3266
3296
  disableAlerts: boolean | undefined;
3267
3297
  disableScheduledExports: boolean | undefined;
3268
3298
  disableKeyDriveAnalysisOn: {
@@ -3531,6 +3561,7 @@ export declare type TreemapChartConfigProperties = {
3531
3561
  position: "top" | "bottom" | "left" | "right" | "auto";
3532
3562
  };
3533
3563
  disableDrillDown: boolean;
3564
+ disableDrillIntoURL: boolean;
3534
3565
  disableAlerts: boolean;
3535
3566
  disableScheduledExports: boolean;
3536
3567
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -3555,6 +3586,7 @@ export declare function treemapChartSave(_fields: Visualisation["query"]["fields
3555
3586
  position: string | undefined;
3556
3587
  } | undefined;
3557
3588
  disableDrillDown: boolean | undefined;
3589
+ disableDrillIntoURL: boolean | undefined;
3558
3590
  disableAlerts: boolean | undefined;
3559
3591
  disableScheduledExports: boolean | undefined;
3560
3592
  disableKeyDriveAnalysisOn: {
@@ -3676,6 +3708,7 @@ export declare type WaterfallChartConfigProperties = {
3676
3708
  enabled: boolean;
3677
3709
  };
3678
3710
  disableDrillDown: boolean;
3711
+ disableDrillIntoURL: boolean;
3679
3712
  disableAlerts: boolean;
3680
3713
  disableScheduledExports: boolean;
3681
3714
  disableKeyDriveAnalysisOn: Record<string, boolean>;
@@ -3731,6 +3764,7 @@ export declare function waterfallChartSave(_fields: Visualisation["query"]["fiel
3731
3764
  enabled: boolean | undefined;
3732
3765
  } | undefined;
3733
3766
  disableDrillDown: boolean | undefined;
3767
+ disableDrillIntoURL: boolean | undefined;
3734
3768
  disableAlerts: boolean | undefined;
3735
3769
  disableScheduledExports: boolean | undefined;
3736
3770
  disableKeyDriveAnalysisOn: {
@@ -3864,7 +3898,7 @@ export declare type YamlFilters = {
3864
3898
  };
3865
3899
 
3866
3900
  /** @internal */
3867
- export declare function yamlFiltersToDeclarative(entities: ExportEntities, filters_by: QueryFilters | Filter[] | undefined, attributeFilterConfigs?: IAttributeFilterConfigs): {
3901
+ export declare function yamlFiltersToDeclarative(entities: ExportEntities, filters_by: QueryFilters | Filter[] | undefined, attributeFilterConfigs?: IAttributeFilterConfigs, assignFilterLocalId?: boolean): {
3868
3902
  filters: IFilter[];
3869
3903
  attributeFilterConfigs: IAttributeFilterConfigs | undefined;
3870
3904
  };
@@ -24,7 +24,7 @@ export declare function yamlReportToDeclarative(entities: ExportEntities, input:
24
24
  /** @internal */
25
25
  export declare function yamlSortsToDeclarative(sort_by: Sorts | undefined, fields: Visualisation["query"]["fields"]): ISortItem[];
26
26
  /** @internal */
27
- export declare function yamlFiltersToDeclarative(entities: ExportEntities, filters_by: QueryFilters | Filter[] | undefined, attributeFilterConfigs?: IAttributeFilterConfigs): {
27
+ export declare function yamlFiltersToDeclarative(entities: ExportEntities, filters_by: QueryFilters | Filter[] | undefined, attributeFilterConfigs?: IAttributeFilterConfigs, assignFilterLocalId?: boolean): {
28
28
  filters: IFilter[];
29
29
  attributeFilterConfigs: IAttributeFilterConfigs | undefined;
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"yamlVisualisationToDeclarative.d.ts","sourceRoot":"","sources":["../../src/to/yamlVisualisationToDeclarative.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EACrC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAUR,MAAM,EAMN,YAAY,EAIZ,KAAK,EAEL,KAAK,EACL,aAAa,EAEhB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEH,KAAK,uBAAuB,EAE5B,KAAK,OAAO,EACZ,KAAK,QAAQ,EAIb,KAAK,SAAS,EACd,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAwB7B,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAiC/D,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,QAAQ,CAAC,SAAS,CAAC,EACnB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AE,uBAAuB,CAAC;CAC7C,CAuDA"}
@@ -204,7 +204,7 @@ export function yamlReportToDeclarative(entities, input) {
204
204
  const { buckets, positions, attrFilterConfig } = yamlBucketsToDeclarative(entities, input);
205
205
  const query = input.query;
206
206
  const sorts = yamlSortsToDeclarative(query.sort_by, query.fields || {});
207
- const { filters, attributeFilterConfigs } = yamlFiltersToDeclarative(entities, query.filter_by, attrFilterConfig);
207
+ const { filters, attributeFilterConfigs } = yamlFiltersToDeclarative(entities, query.filter_by, attrFilterConfig, true);
208
208
  return {
209
209
  buckets,
210
210
  sorts,
@@ -637,11 +637,14 @@ function yamlRelativeDateFilterToDeclarative(entities, filter) {
637
637
  result = mergeDeclarativeResults(result, dateFilterWithFieldToDeclarative(entities, filter));
638
638
  return result;
639
639
  }
640
- function yamlPositiveAttributeFilterToDeclarative(entities, key, filter) {
640
+ function yamlPositiveAttributeFilterToDeclarative(entities, key, filter, assignFilterLocalId = false) {
641
641
  return {
642
642
  filters: [
643
643
  {
644
644
  positiveAttributeFilter: {
645
+ // Filter must carry the same localIdentifier the attributeFilterConfig is keyed by,
646
+ // otherwise the displayAsLabel can't be correlated with the filter and is dropped.
647
+ ...(assignFilterLocalId && filter.display_as ? { localIdentifier: key } : {}),
645
648
  displayForm: createIdentifier(filter.using),
646
649
  in: {
647
650
  values: parseDateValues(entities, filter.using, filter.state?.include ?? []),
@@ -662,11 +665,14 @@ function yamlPositiveAttributeFilterToDeclarative(entities, key, filter) {
662
665
  : {}),
663
666
  };
664
667
  }
665
- function yamlNegativeAttributeFilterToDeclarative(entities, key, filter) {
668
+ function yamlNegativeAttributeFilterToDeclarative(entities, key, filter, assignFilterLocalId = false) {
666
669
  return {
667
670
  filters: [
668
671
  {
669
672
  negativeAttributeFilter: {
673
+ // Filter must carry the same localIdentifier the attributeFilterConfig is keyed by,
674
+ // otherwise the displayAsLabel can't be correlated with the filter and is dropped.
675
+ ...(assignFilterLocalId && filter.display_as ? { localIdentifier: key } : {}),
670
676
  displayForm: createIdentifier(filter.using),
671
677
  notIn: {
672
678
  values: parseDateValues(entities, filter.using, filter.state?.exclude ?? []),
@@ -808,7 +814,10 @@ function yamlRankingFilterToDeclarative(filter) {
808
814
  ],
809
815
  };
810
816
  }
811
- function yamlFilterToDeclarative(entities, key, filter) {
817
+ function yamlFilterToDeclarative(entities, key, filter,
818
+ // Only view-level (report/layer) filters need a localIdentifier so their displayAsLabel can be
819
+ // correlated via attributeFilterConfigs. Measure-scoped filters must NOT carry one.
820
+ assignFilterLocalId = false) {
812
821
  if (isAbsoluteDateFilter(filter)) {
813
822
  return yamlAbsoluteDateFilterToDeclarative(entities, filter);
814
823
  }
@@ -816,10 +825,10 @@ function yamlFilterToDeclarative(entities, key, filter) {
816
825
  return yamlRelativeDateFilterToDeclarative(entities, filter);
817
826
  }
818
827
  if (isPositiveAttributeFilter(filter)) {
819
- return yamlPositiveAttributeFilterToDeclarative(entities, key, filter);
828
+ return yamlPositiveAttributeFilterToDeclarative(entities, key, filter, assignFilterLocalId);
820
829
  }
821
830
  if (isNegativeAttributeFilter(filter)) {
822
- return yamlNegativeAttributeFilterToDeclarative(entities, key, filter);
831
+ return yamlNegativeAttributeFilterToDeclarative(entities, key, filter, assignFilterLocalId);
823
832
  }
824
833
  if (isArbitraryTextFilter(filter)) {
825
834
  return yamlTextFilterToDeclarative(key, filter);
@@ -851,12 +860,15 @@ function mergeDeclarativeResults(...results) {
851
860
  };
852
861
  }
853
862
  /** @internal */
854
- export function yamlFiltersToDeclarative(entities, filters_by, attributeFilterConfigs = {}) {
863
+ export function yamlFiltersToDeclarative(entities, filters_by, attributeFilterConfigs = {},
864
+ // View-level (report/layer) filters set this so their displayAsLabel correlates via localIdentifier;
865
+ // measure-scoped filters leave it false.
866
+ assignFilterLocalId = false) {
855
867
  const isArray = Array.isArray(filters_by);
856
868
  const { filters, attributeFilterConfig } = mergeDeclarativeResults({ filters: [], attributeFilterConfig: attributeFilterConfigs }, ...(filters_by && !isArray
857
- ? Object.entries(filters_by).map(([key, filter]) => yamlFilterToDeclarative(entities, key, filter))
869
+ ? Object.entries(filters_by).map(([key, filter]) => yamlFilterToDeclarative(entities, key, filter, assignFilterLocalId))
858
870
  : []), ...(filters_by && isArray
859
- ? filters_by.map((filter, i) => yamlFilterToDeclarative(entities, i.toString(), filter))
871
+ ? filters_by.map((filter, i) => yamlFilterToDeclarative(entities, i.toString(), filter, assignFilterLocalId))
860
872
  : []));
861
873
  return {
862
874
  filters,
@@ -1109,7 +1121,7 @@ function yamlLayersToDeclarative(entities, input, _positions) {
1109
1121
  };
1110
1122
  })
1111
1123
  .filter(Boolean);
1112
- const { filters: layerFilters, attributeFilterConfigs } = yamlFiltersToDeclarative(entities, baseQuery?.filter_by, attrFilterConfig);
1124
+ const { filters: layerFilters, attributeFilterConfigs } = yamlFiltersToDeclarative(entities, baseQuery?.filter_by, attrFilterConfig, true);
1113
1125
  const layerProperties = layer.config || (layer.type === "pushpin" && positions.length > 0)
1114
1126
  ? yamlConfigToDeclarative({
1115
1127
  ...input,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-code-convertors",
3
- "version": "11.43.0-alpha.4",
3
+ "version": "11.43.0",
4
4
  "description": "GoodData AAC declarative converters",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -26,9 +26,9 @@
26
26
  "dependencies": {
27
27
  "uuid": "11.1.1",
28
28
  "yaml": "2.8.3",
29
- "@gooddata/api-client-tiger": "11.43.0-alpha.4",
30
- "@gooddata/sdk-code-schemas": "11.43.0-alpha.4",
31
- "@gooddata/sdk-model": "11.43.0-alpha.4"
29
+ "@gooddata/api-client-tiger": "11.43.0",
30
+ "@gooddata/sdk-code-schemas": "11.43.0",
31
+ "@gooddata/sdk-model": "11.43.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-extractor": "^7.55.2",
@@ -50,8 +50,8 @@
50
50
  "oxlint-tsgolint": "0.15.0",
51
51
  "typescript": "5.9.3",
52
52
  "vitest": "4.1.8",
53
- "@gooddata/eslint-config": "11.43.0-alpha.4",
54
- "@gooddata/oxlint-config": "11.43.0-alpha.4"
53
+ "@gooddata/eslint-config": "11.43.0",
54
+ "@gooddata/oxlint-config": "11.43.0"
55
55
  },
56
56
  "scripts": {
57
57
  "_phase:build": "npm run build",