@object-ui/plugin-charts 16.0.0 → 17.1.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.
- package/CHANGELOG.md +446 -1
- package/dist/AdvancedChartImpl.d.ts +65 -11
- package/dist/ChartContainerImpl.d.ts +8 -1
- package/dist/ChartRenderer.d.ts +46 -0
- package/dist/ObjectChart.d.ts +17 -1
- package/dist/index.js +1173 -741
- package/dist/index.umd.cjs +2 -2
- package/dist/normalizeChartSchema.d.ts +207 -0
- package/package.json +11 -10
package/dist/ObjectChart.d.ts
CHANGED
|
@@ -4,13 +4,29 @@ import { default as React } from 'react';
|
|
|
4
4
|
* Local implementation to avoid a dependency on @object-ui/fields.
|
|
5
5
|
*/
|
|
6
6
|
export declare function humanizeLabel(value: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* The result column an object-bound `aggregate` projects its value under
|
|
9
|
+
* (framework#3701, `chartAggregateValueKey` in `@objectstack/spec/ui`).
|
|
10
|
+
*
|
|
11
|
+
* The raw `field` name — an object-bound aggregate does NOT decorate it the way
|
|
12
|
+
* a dataset measure is named (`sum_amount`). Only `count` may omit `field`, and
|
|
13
|
+
* it then lands under the literal `'count'`, which is the alias the engine
|
|
14
|
+
* projects `COUNT(*)` under. Exported so every path that builds these rows
|
|
15
|
+
* agrees on one key instead of each re-deriving it.
|
|
16
|
+
*/
|
|
17
|
+
export declare function aggregateValueKey(aggregate: {
|
|
18
|
+
field?: string;
|
|
19
|
+
function?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
/** Suffix the previous-window value carries under a compareTo overlay. */
|
|
22
|
+
export declare const COMPARISON_SUFFIX = "__comparison";
|
|
7
23
|
/**
|
|
8
24
|
* Client-side aggregation for fetched records.
|
|
9
25
|
* Groups records by `groupBy` field and applies the aggregation function
|
|
10
26
|
* to the `field` values in each group.
|
|
11
27
|
*/
|
|
12
28
|
export declare function aggregateRecords(records: any[], aggregate: {
|
|
13
|
-
field
|
|
29
|
+
field?: string;
|
|
14
30
|
function: string;
|
|
15
31
|
groupBy: string;
|
|
16
32
|
}): any[];
|