@gooddata/sdk-ui-charts 9.10.0-alpha.1 → 9.10.0-alpha.11

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 (43) hide show
  1. package/NOTICE +40082 -57922
  2. package/esm/charts/index.d.ts +3 -0
  3. package/esm/charts/index.d.ts.map +1 -1
  4. package/esm/charts/index.js +4 -1
  5. package/esm/charts/index.js.map +1 -1
  6. package/esm/charts/repeater/CoreRepeater.d.ts +16 -0
  7. package/esm/charts/repeater/CoreRepeater.d.ts.map +1 -0
  8. package/esm/charts/repeater/CoreRepeater.js +50 -0
  9. package/esm/charts/repeater/CoreRepeater.js.map +1 -0
  10. package/esm/charts/repeater/Repeater.d.ts +40 -0
  11. package/esm/charts/repeater/Repeater.d.ts.map +1 -0
  12. package/esm/charts/repeater/Repeater.js +48 -0
  13. package/esm/charts/repeater/Repeater.js.map +1 -0
  14. package/esm/charts/repeater/internal/RepeaterChart.d.ts +9 -0
  15. package/esm/charts/repeater/internal/RepeaterChart.d.ts.map +1 -0
  16. package/esm/charts/repeater/internal/RepeaterChart.js +70 -0
  17. package/esm/charts/repeater/internal/RepeaterChart.js.map +1 -0
  18. package/esm/charts/repeater/internal/dataViewToRepeaterData.d.ts +22 -0
  19. package/esm/charts/repeater/internal/dataViewToRepeaterData.d.ts.map +1 -0
  20. package/esm/charts/repeater/internal/dataViewToRepeaterData.js +62 -0
  21. package/esm/charts/repeater/internal/dataViewToRepeaterData.js.map +1 -0
  22. package/esm/charts/repeater/internal/repeaterAgGridDataSource.d.ts +15 -0
  23. package/esm/charts/repeater/internal/repeaterAgGridDataSource.d.ts.map +1 -0
  24. package/esm/charts/repeater/internal/repeaterAgGridDataSource.js +35 -0
  25. package/esm/charts/repeater/internal/repeaterAgGridDataSource.js.map +1 -0
  26. package/esm/charts/repeater/internal/repeaterExecution.d.ts +14 -0
  27. package/esm/charts/repeater/internal/repeaterExecution.d.ts.map +1 -0
  28. package/esm/charts/repeater/internal/repeaterExecution.js +40 -0
  29. package/esm/charts/repeater/internal/repeaterExecution.js.map +1 -0
  30. package/esm/charts/repeater/internal/types.d.ts +3 -0
  31. package/esm/charts/repeater/internal/types.d.ts.map +1 -0
  32. package/esm/charts/repeater/internal/types.js +3 -0
  33. package/esm/charts/repeater/internal/types.js.map +1 -0
  34. package/esm/highcharts/ChartTransformation.d.ts +1 -1
  35. package/esm/highcharts/ChartTransformation.d.ts.map +1 -1
  36. package/esm/sdk-ui-charts.d.ts +66 -0
  37. package/package.json +14 -11
  38. package/styles/css/main.css +7935 -0
  39. package/styles/css/main.css.map +1 -1
  40. package/styles/css/repeater.css +7941 -0
  41. package/styles/css/repeater.css.map +1 -0
  42. package/styles/scss/main.scss +1 -0
  43. package/styles/scss/repeater.scss +682 -0
@@ -21,6 +21,7 @@ import { ExplicitDrill } from '@gooddata/sdk-ui';
21
21
  import { FiltersOrPlaceholders } from '@gooddata/sdk-ui';
22
22
  import { getColorMappingPredicate } from '@gooddata/sdk-ui-vis-commons';
23
23
  import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
24
+ import { IAttribute } from '@gooddata/sdk-model';
24
25
  import { IAttributeOrMeasure } from '@gooddata/sdk-model';
25
26
  import { IBucket } from '@gooddata/sdk-model';
26
27
  import { IColor } from '@gooddata/sdk-model';
@@ -28,6 +29,7 @@ import { IColorMapping } from '@gooddata/sdk-ui-vis-commons';
28
29
  import { IColorPalette } from '@gooddata/sdk-model';
29
30
  import { IDataView } from '@gooddata/sdk-backend-spi';
30
31
  import { Identifier } from '@gooddata/sdk-model';
32
+ import { IDimension } from '@gooddata/sdk-model';
31
33
  import { IDrillEventCallback } from '@gooddata/sdk-ui';
32
34
  import { IDrillEventIntersectionElement } from '@gooddata/sdk-ui';
33
35
  import { IExecutionConfig } from '@gooddata/sdk-model';
@@ -48,6 +50,7 @@ import { NullableFiltersOrPlaceholders } from '@gooddata/sdk-ui';
48
50
  import { default as React_2 } from 'react';
49
51
  import { SortsOrPlaceholders } from '@gooddata/sdk-ui';
50
52
  import { VisType } from '@gooddata/sdk-ui';
53
+ import { WrappedComponentProps } from 'react-intl';
51
54
 
52
55
  /**
53
56
  * Area chart shows data as an area under a line intersecting dots.
@@ -246,11 +249,30 @@ export declare type ComparisonPosition = "top" | "left" | "right" | "auto";
246
249
  */
247
250
  export declare const ComparisonPositionValues: Record<Uppercase<ComparisonPosition>, ComparisonPosition>;
248
251
 
252
+ /**
253
+ * Constructs repeater buckets from the provided attributes and measures.
254
+ *
255
+ * @internal
256
+ */
257
+ export declare function constructRepeaterBuckets(rowAttribute: IAttribute, columns: IAttributeOrMeasure[], sliceVisualizationBy?: IAttribute): IBucket[];
258
+
259
+ /**
260
+ * Constructs repeater execution dimensions from the provided buckets.
261
+ *
262
+ * @internal
263
+ */
264
+ export declare function constructRepeaterDimensions(buckets: IBucket[]): IDimension[];
265
+
249
266
  /**
250
267
  * @internal
251
268
  */
252
269
  export declare const CoreHeadline: React_2.ComponentClass<ICoreChartProps & ICoreHeadlineExtendedProps, any>;
253
270
 
271
+ /**
272
+ * @internal
273
+ */
274
+ export declare const CoreRepeater: React_2.FC<ICoreRepeterChartProps>;
275
+
254
276
  /**
255
277
  * NOTE: exported to satisfy sdk-ui-ext; is internal, must not be used outside of SDK; will disapppear.
256
278
  *
@@ -1214,6 +1236,13 @@ export declare interface ICoreHeadlineExtendedProps {
1214
1236
  headlineTransformation: React_2.ComponentType<IHeadlineTransformationProps>;
1215
1237
  }
1216
1238
 
1239
+ /**
1240
+ * @internal
1241
+ */
1242
+ export declare interface ICoreRepeterChartProps extends ICoreChartProps, WrappedComponentProps {
1243
+ theme?: ITheme;
1244
+ }
1245
+
1217
1246
  /**
1218
1247
  * @internal
1219
1248
  */
@@ -1739,6 +1768,38 @@ export declare interface IPyramidChartBucketProps {
1739
1768
  export declare interface IPyramidChartProps extends IBucketChartProps, IPyramidChartBucketProps {
1740
1769
  }
1741
1770
 
1771
+ /**
1772
+ * @beta
1773
+ */
1774
+ export declare interface IRepeaterBucketProps {
1775
+ /**
1776
+ * Main attribute that sets repeating frequency used for the computation.
1777
+ */
1778
+ attribute: AttributeOrPlaceholder;
1779
+ /**
1780
+ * Definition of columns which are sliced by the main attribute.
1781
+ */
1782
+ columns?: AttributesMeasuresOrPlaceholders;
1783
+ /**
1784
+ * Slicing attribute to be used for visualization measures.
1785
+ */
1786
+ sliceVisualizationBy?: AttributeOrPlaceholder;
1787
+ /**
1788
+ * Specify filters to apply on the data to compute with.
1789
+ */
1790
+ filters?: NullableFiltersOrPlaceholders;
1791
+ /**
1792
+ * Resolution context for composed placeholders.
1793
+ */
1794
+ placeholdersResolutionContext?: any;
1795
+ }
1796
+
1797
+ /**
1798
+ * @beta
1799
+ */
1800
+ export declare interface IRepeaterProps extends IBucketChartProps, IRepeaterBucketProps {
1801
+ }
1802
+
1742
1803
  /**
1743
1804
  * @public
1744
1805
  */
@@ -2109,6 +2170,11 @@ export declare type PositionType = "left" | "right" | "top" | "bottom" | "auto";
2109
2170
  */
2110
2171
  export declare const PyramidChart: (props: IPyramidChartProps) => React_2.JSX.Element;
2111
2172
 
2173
+ /**
2174
+ * @beta
2175
+ */
2176
+ export declare const Repeater: (props: IRepeaterProps) => JSX.Element;
2177
+
2112
2178
  /**
2113
2179
  * A Sankey diagram is a type of flow diagram,
2114
2180
  * in which the width of the link between two nodes is shown proportionally to the flow quantity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-charts",
3
- "version": "9.10.0-alpha.1",
3
+ "version": "9.10.0-alpha.11",
4
4
  "description": "GoodData.UI SDK - Charts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,6 +47,9 @@
47
47
  "NOTICE"
48
48
  ],
49
49
  "dependencies": {
50
+ "@ag-grid-community/all-modules": "27.3.0",
51
+ "@ag-grid-community/core": "27.3.0",
52
+ "@ag-grid-community/react": "27.3.0",
50
53
  "@gooddata/number-formatter": "^1.0.5",
51
54
  "classnames": "^2.3.1",
52
55
  "date-fns": "^2.22.1",
@@ -57,16 +60,16 @@
57
60
  "polished": "^3.6.7",
58
61
  "react-intl": "^6.4.1",
59
62
  "react-measure": "^2.5.2",
60
- "ts-invariant": "^0.7.3",
63
+ "ts-invariant": "^0.7.5",
61
64
  "tslib": "^2.5.0",
62
65
  "uuid": "^8.3.2",
63
- "@gooddata/sdk-ui": "9.10.0-alpha.1",
64
- "@gooddata/sdk-model": "9.10.0-alpha.1",
65
- "@gooddata/sdk-ui-theme-provider": "9.10.0-alpha.1",
66
- "@gooddata/sdk-ui-kit": "9.10.0-alpha.1",
67
- "@gooddata/sdk-ui-vis-commons": "9.10.0-alpha.1",
68
- "@gooddata/sdk-backend-spi": "9.10.0-alpha.1",
69
- "@gooddata/util": "9.10.0-alpha.1"
66
+ "@gooddata/sdk-model": "9.10.0-alpha.11",
67
+ "@gooddata/sdk-ui-kit": "9.10.0-alpha.11",
68
+ "@gooddata/sdk-ui-theme-provider": "9.10.0-alpha.11",
69
+ "@gooddata/sdk-ui-vis-commons": "9.10.0-alpha.11",
70
+ "@gooddata/sdk-ui": "9.10.0-alpha.11",
71
+ "@gooddata/util": "9.10.0-alpha.11",
72
+ "@gooddata/sdk-backend-spi": "9.10.0-alpha.11"
70
73
  },
71
74
  "peerDependencies": {
72
75
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -115,8 +118,8 @@
115
118
  "typescript": "5.3.3",
116
119
  "vitest": "1.0.4",
117
120
  "vitest-dom": "0.1.1",
118
- "@gooddata/reference-workspace": "9.10.0-alpha.1",
119
- "@gooddata/sdk-backend-mockingbird": "9.10.0-alpha.1"
121
+ "@gooddata/reference-workspace": "9.10.0-alpha.11",
122
+ "@gooddata/sdk-backend-mockingbird": "9.10.0-alpha.11"
120
123
  },
121
124
  "scripts": {
122
125
  "clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",