@qrvey/utils 1.11.0 → 1.12.0-0-chart-v2-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/dist/charts/adapters/chartBuilderAdapter.d.ts +35 -0
- package/dist/charts/adapters/chartBuilderAdapter.js +647 -0
- package/dist/charts/adapters/chartBuilderDefinitions.d.ts +568 -0
- package/dist/charts/adapters/chartBuilderDefinitions.js +31 -0
- package/dist/charts/adapters/chartBuilderParse.d.ts +9 -0
- package/dist/charts/adapters/chartBuilderParse.js +416 -0
- package/dist/charts/adapters/index.d.ts +1 -0
- package/dist/charts/adapters/index.js +1 -0
- package/dist/charts/helpers/chartBuilder.d.ts +53 -0
- package/dist/charts/helpers/chartBuilder.js +190 -0
- package/dist/cjs/charts/adapters/chartBuilderAdapter.d.ts +35 -0
- package/dist/cjs/charts/adapters/chartBuilderAdapter.js +654 -0
- package/dist/cjs/charts/adapters/chartBuilderDefinitions.d.ts +568 -0
- package/dist/cjs/charts/adapters/chartBuilderDefinitions.js +34 -0
- package/dist/cjs/charts/adapters/chartBuilderParse.d.ts +9 -0
- package/dist/cjs/charts/adapters/chartBuilderParse.js +421 -0
- package/dist/cjs/charts/adapters/index.d.ts +1 -0
- package/dist/cjs/charts/adapters/index.js +1 -0
- package/dist/cjs/charts/helpers/chartBuilder.d.ts +53 -0
- package/dist/cjs/charts/helpers/chartBuilder.js +212 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/common/II18nRelativeDates.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/common/II18nRelativeDates.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nUnits.d.ts +6 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +4 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +2 -10
- package/dist/cjs/globalization/labels/common/I18N_RELATIVE_DATES.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_RELATIVE_DATES.js +11 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +4 -0
- package/dist/globalization/interfaces/common/II18nRelativeDates.d.ts +8 -0
- package/dist/globalization/interfaces/common/II18nRelativeDates.js +1 -0
- package/dist/globalization/interfaces/common/II18nUnits.d.ts +6 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +4 -0
- package/dist/globalization/labels/common/I18N_COMMON.js +2 -10
- package/dist/globalization/labels/common/I18N_RELATIVE_DATES.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_RELATIVE_DATES.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The function `buildChartBodyV1` checks if the input body is already in version 2 format, and if not,
|
|
3
|
+
* converts it from version 2 to version 1.
|
|
4
|
+
* @param {any} body - The `body` parameter is of type `any`, which means it can be any data type.
|
|
5
|
+
* @returns either the original `body` if it has a property `v2`, or the result of calling the
|
|
6
|
+
* `fromV2ToV1` function with `body` as the argument and `false` as the second argument.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildChartBodyV1(body: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* The function `fromV2ToV1` converts a V2 chart object to a V1 chart object in TypeScript.
|
|
11
|
+
* @param {any} opts - The `opts` parameter is an object that contains various settings and
|
|
12
|
+
* configurations for a chart. It is optional and has a default value of an empty object `{}`.
|
|
13
|
+
* @param [inPreviewMode=true] - The `inPreviewMode` parameter is a boolean value that indicates
|
|
14
|
+
* whether the function is being called in preview mode or not. It is set to `true` by default.
|
|
15
|
+
* @returns the variable `data`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function fromV2ToV1(opts?: any, inPreviewMode?: boolean): any;
|
|
18
|
+
export declare function getPanelConfig(config?: any, opts?: any): any;
|
|
19
|
+
export declare function getTrendsChartsConfig(trendInfo: any): {
|
|
20
|
+
fields: any;
|
|
21
|
+
isGrouped?: undefined;
|
|
22
|
+
conditions?: undefined;
|
|
23
|
+
visualization?: undefined;
|
|
24
|
+
totals?: undefined;
|
|
25
|
+
isMultipleSorted?: undefined;
|
|
26
|
+
trendsChart?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
fields: any;
|
|
29
|
+
isGrouped: boolean;
|
|
30
|
+
conditions: any;
|
|
31
|
+
visualization: any;
|
|
32
|
+
totals: any;
|
|
33
|
+
isMultipleSorted: any;
|
|
34
|
+
trendsChart: any;
|
|
35
|
+
};
|