@vizzly/dashboard 0.8.2 → 0.8.3-dev-ae9d98d6383bd8bbde38fec5c2a360640ab0f89a
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/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +3 -0
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +3 -2
- package/dist/shared-logic/src/DataTable/shared.contants.d.ts +1 -0
- package/dist/shared-logic/src/Translations/translation.types.d.ts +7 -0
- package/dist/shared-ui/src/library/DataPanel/sections/PaginationSection.d.ts +2 -1
- package/dist/shared-ui/src/predictInitialComponent.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,9 @@ declare type SubSectionDef = {
|
|
|
20
20
|
xAxis?: SubSection<'metrics'>;
|
|
21
21
|
yAxis?: SubSection<'metrics'>;
|
|
22
22
|
};
|
|
23
|
+
export declare type Pagination = {
|
|
24
|
+
options: number[];
|
|
25
|
+
};
|
|
23
26
|
export interface DataPanelNamespaces {
|
|
24
27
|
data_set: Section<'dataSet'>;
|
|
25
28
|
views: Section<'views'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataSet, FieldFilterOptions } from '../DataSet/types';
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
-
import { Section as ConstSection } from '../ComponentInterface/types/namespaces.types';
|
|
3
|
+
import { Section as ConstSection, Pagination } from '../ComponentInterface/types/namespaces.types';
|
|
4
4
|
export declare type Section<Type> = ConstSection<Type> & {
|
|
5
5
|
testId?: string;
|
|
6
6
|
namespace?: string;
|
|
@@ -38,6 +38,7 @@ export interface ProgressGoalSection<T> extends Omit<Section<T>, 'type'> {
|
|
|
38
38
|
}[];
|
|
39
39
|
}
|
|
40
40
|
export declare type ProgressGoalsSection = Section<'progressGoals'> & ProgressGoalSection<'progressGoals'>;
|
|
41
|
-
export declare type
|
|
41
|
+
export declare type PaginationSection = Section<'pagination'> & Pagination;
|
|
42
|
+
export declare type DataPanelSection = Section<'dataSet'> | MetricsSection | FieldCollectorSection | LabelledMetricSection | Section<'customMetrics'> | DimensionSection | Section<'drilldown'> | Section<'comparison'> | Section<'comboChartDimension'> | Section<'timeDimension'> | Section<'xAxis'> | Section<'views'> | Section<'sort'> | Section<'filter'> | Section<'limit'> | PaginationSection | Section<'fields'> | Section<'country'> | ProgressGoalsSection;
|
|
42
43
|
export declare type DataPanelConfig = Array<DataPanelSection>;
|
|
43
44
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ROW_NUMBER_OPTIONS: number[];
|
|
@@ -1326,6 +1326,13 @@ export declare type VizzlyTranslations = {
|
|
|
1326
1326
|
* String containing the translation.
|
|
1327
1327
|
*/
|
|
1328
1328
|
limit: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* @default 'Rows per page'
|
|
1331
|
+
*
|
|
1332
|
+
* @returns
|
|
1333
|
+
* String containing the translation.
|
|
1334
|
+
*/
|
|
1335
|
+
rows_per_page: string;
|
|
1329
1336
|
/**
|
|
1330
1337
|
* @default 'Data'
|
|
1331
1338
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VizzlyComponents } from '../../../types';
|
|
3
|
-
|
|
3
|
+
import { PaginationSection as PaginationSectionType } from '../../../../../shared-logic/src/DataPanelConfig/types';
|
|
4
|
+
declare type Props = VizzlyComponents.ComponentOverrides.Props.SectionProps<PaginationSectionType>;
|
|
4
5
|
export declare const PaginationSection: (props: Props) => JSX.Element | null;
|
|
5
6
|
export {};
|
|
@@ -9,5 +9,5 @@ export declare const ACCEPTABLE_PROPERTY_SWAPS: Array<keyof Attributes>;
|
|
|
9
9
|
interface Attributes {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export declare function extractProperties(attributes: Attributes, autoGeneratedAttributes: Attributes): Partial<Attributes>;
|
|
12
|
+
export declare function extractProperties(attributes: Attributes, autoGeneratedAttributes: Attributes, dataSet: DataSetType, queryEngineConfig: QueryEngineConfig): Partial<Attributes>;
|
|
13
13
|
export {};
|
package/package.json
CHANGED