@statisticsfinland/pxvisualizer 1.3.2 → 1.4.0-d.1
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/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +29 -27
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/core/chartOptions/Utility/formatters.d.ts +7 -0
- package/dist/types/core/conversion/viewSorting.d.ts +1 -0
- package/dist/types/core/conversion/viewUtils.d.ts +8 -1
- package/dist/types/core/tables/htmlTable.d.ts +2 -1
- package/dist/types/core/types/view.d.ts +1 -0
- package/dist/types/react/components/chart/chart.d.ts +1 -0
- package/dist/types/react/components/chart/tableView.d.ts +2 -3
- package/package.json +1 -1
|
@@ -15,3 +15,10 @@ export declare function getLineChartToolTipFormatterFunction(view: View, locale:
|
|
|
15
15
|
export declare function getFormattedUnits(unitInfos: IUnitInfo[], locale: string): string;
|
|
16
16
|
export declare function getDataFormattedForChartType(view: View, point: Point, locale: string, precision: number): string;
|
|
17
17
|
export declare function parseScreenReaderFriendlyTimePeriods(value: string, locale: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Formats the last updated text based on the provided date string and locale.
|
|
20
|
+
* @param lastUpdated Date string representing the last updated date.
|
|
21
|
+
* @param locale Locale string for formatting the date.
|
|
22
|
+
* @returns Formatted last updated text or undefined if input is invalid.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getFormattedLastUpdatedText(lastUpdated: string | undefined, locale: string): string | undefined;
|
|
@@ -20,6 +20,7 @@ export declare function reverseViewOrder(view: View): {
|
|
|
20
20
|
subheaderValues: import("../types/queryVisualizationResponse").TMultiLanguageString[];
|
|
21
21
|
units: import("../types/view").IUnitInfo[];
|
|
22
22
|
sources: import("../types/queryVisualizationResponse").TMultiLanguageString[];
|
|
23
|
+
lastUpdated?: string;
|
|
23
24
|
colVarNames: import("../types/queryVisualizationResponse").TMultiLanguageString[];
|
|
24
25
|
rowVarNames: import("../types/queryVisualizationResponse").TMultiLanguageString[];
|
|
25
26
|
selectableVarNames: import("../types/queryVisualizationResponse").TMultiLanguageString[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IQueryVisualizationResponse } from "../types";
|
|
2
|
-
import { TMultiLanguageString } from "../types/queryVisualizationResponse";
|
|
2
|
+
import { IVariableMeta, TMultiLanguageString } from "../types/queryVisualizationResponse";
|
|
3
3
|
import { IDataSeries, View } from "../types/view";
|
|
4
4
|
import { TVariableSelections } from "../types/variableSelections";
|
|
5
5
|
export declare function convertPxGrafResponseToView(responseObj: IQueryVisualizationResponse, selectedValueCodes: TVariableSelections): View;
|
|
@@ -8,3 +8,10 @@ export declare function buildSeries(responseObj: IQueryVisualizationResponse, se
|
|
|
8
8
|
columnNameGroups: TMultiLanguageString[][];
|
|
9
9
|
series: IDataSeries[];
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Get the last updated date from the content variable values.
|
|
13
|
+
* @param contentVar Content variable metadata
|
|
14
|
+
* @param selectedValueCodes Selected selectable value codes if any
|
|
15
|
+
* @returns Last updated date as a string, or undefined if no valid dates are found
|
|
16
|
+
*/
|
|
17
|
+
export declare function getLastUpdated(contentVar: IVariableMeta, selectedValueCodes: TVariableSelections): string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { View } from "../types/view";
|
|
2
|
-
|
|
2
|
+
import { IChartOptions } from "../types/chartOptions";
|
|
3
|
+
export declare function renderHtmlTable(view: View, locale: string, options: IChartOptions, containerId: string, footnote?: string): void;
|
|
3
4
|
export declare function generateTable(view: View, locale: string): HTMLTableElement;
|
|
@@ -14,6 +14,7 @@ export interface View {
|
|
|
14
14
|
subheaderValues: TMultiLanguageString[];
|
|
15
15
|
units: IUnitInfo[];
|
|
16
16
|
sources: TMultiLanguageString[];
|
|
17
|
+
lastUpdated?: string;
|
|
17
18
|
columnNameGroups: TMultiLanguageString[][];
|
|
18
19
|
series: IDataSeries[];
|
|
19
20
|
colVarNames: TMultiLanguageString[];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View } from "../../../core/types/view";
|
|
3
|
+
import { IChartOptions } from "../../../core/types/chartOptions";
|
|
3
4
|
export interface ITableViewProps {
|
|
4
5
|
view: View;
|
|
5
6
|
locale: string;
|
|
6
|
-
|
|
7
|
-
showUnits?: boolean;
|
|
8
|
-
showSources?: boolean;
|
|
7
|
+
options: IChartOptions;
|
|
9
8
|
footnote?: string;
|
|
10
9
|
}
|
|
11
10
|
export declare const TableView: React.FC<ITableViewProps>;
|