@allurereport/web-components 3.0.0-beta.20 → 3.0.0-beta.21
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/index.d.ts +41 -3
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
2
|
import { JSX, FunctionalComponent, VNode, ComponentChildren, FunctionComponent } from 'preact';
|
|
3
3
|
import { Signal } from '@preact/signals';
|
|
4
|
-
import { AttachmentTestStepResult, Statistic, TestStatus, TestStatusTransition,
|
|
4
|
+
import { AttachmentTestStepResult, Statistic, TestStatus, TestStatusTransition, PieChartValues, TreeMapNode } from '@allurereport/core-api';
|
|
5
5
|
import { RecursiveTree, Status } from 'global';
|
|
6
6
|
import * as preact_compat from 'preact/compat';
|
|
7
7
|
import { HTMLAttributes, CSSProperties } from 'preact/compat';
|
|
8
8
|
import { Options } from 'sortablejs';
|
|
9
9
|
import { LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
|
|
10
|
+
import { ChartMode, BarGroup } from '@allurereport/charts-api';
|
|
10
11
|
import { Serie as Serie$1 } from '@/components/Charts/TrendChart';
|
|
11
12
|
import { AxisProps } from '@nivo/axes';
|
|
12
13
|
import { Serie as Serie$2, Datum as Datum$1, LineSvgProps, Point } from '@nivo/line';
|
|
@@ -570,6 +571,13 @@ declare const defaultBarChartAxisLeftConfig: AxisProps;
|
|
|
570
571
|
declare const defaultBarChartLegendsConfig: BarLegendProps;
|
|
571
572
|
declare const defaultBarChartConfig: Partial<ResponsiveBarSvgProps<BarDatum>>;
|
|
572
573
|
|
|
574
|
+
type AxisConfig$1 = {
|
|
575
|
+
legend?: string;
|
|
576
|
+
enabled?: boolean;
|
|
577
|
+
format?: string;
|
|
578
|
+
tickValues?: number | number[];
|
|
579
|
+
domain?: number[];
|
|
580
|
+
};
|
|
573
581
|
interface BarChartWidgetProps {
|
|
574
582
|
title: string;
|
|
575
583
|
mode: ChartMode;
|
|
@@ -582,6 +590,9 @@ interface BarChartWidgetProps {
|
|
|
582
590
|
rootAriaLabel?: string;
|
|
583
591
|
colors: Record<string, string>;
|
|
584
592
|
translations: Record<string, string>;
|
|
593
|
+
yAxisConfig?: AxisConfig$1;
|
|
594
|
+
xAxisConfig?: AxisConfig$1;
|
|
595
|
+
layout?: "horizontal" | "vertical";
|
|
585
596
|
}
|
|
586
597
|
|
|
587
598
|
declare const BarChartWidget: FunctionalComponent<BarChartWidgetProps>;
|
|
@@ -663,5 +674,32 @@ interface HeatMapWidgetProps extends HeatMapProps {
|
|
|
663
674
|
|
|
664
675
|
declare const HeatMapWidget: FunctionalComponent<HeatMapWidgetProps>;
|
|
665
676
|
|
|
666
|
-
|
|
667
|
-
|
|
677
|
+
type AxisConfig = {
|
|
678
|
+
legend?: string;
|
|
679
|
+
enabled?: boolean;
|
|
680
|
+
format?: string;
|
|
681
|
+
tickValues?: number | number[];
|
|
682
|
+
domain?: number[];
|
|
683
|
+
};
|
|
684
|
+
interface StabilityRateDistributionWidgetProps {
|
|
685
|
+
title: string;
|
|
686
|
+
mode: ChartMode;
|
|
687
|
+
data: BarGroup<string, string>[];
|
|
688
|
+
keys: readonly string[];
|
|
689
|
+
indexBy: string;
|
|
690
|
+
groupMode: "grouped" | "stacked";
|
|
691
|
+
height?: CSSProperties["height"];
|
|
692
|
+
width?: CSSProperties["width"];
|
|
693
|
+
rootAriaLabel?: string;
|
|
694
|
+
colors: Record<string, string>;
|
|
695
|
+
translations: Record<string, string>;
|
|
696
|
+
yAxisConfig?: AxisConfig;
|
|
697
|
+
xAxisConfig?: AxisConfig;
|
|
698
|
+
layout?: "horizontal" | "vertical";
|
|
699
|
+
threshold?: number;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
declare const StabilityRateDistributionWidget: FunctionalComponent<StabilityRateDistributionWidgetProps>;
|
|
703
|
+
|
|
704
|
+
export { ArrowButton, Attachment, AttachmentCode, AttachmentEmpty, AttachmentImage, AttachmentVideo, BarChart, BarChartWidget, Button, Code, CodeViewer, ComingSoonChartWidget, Counter, DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL, DEFAULT_HEAT_MAP_EMPTY_COLOR, DEFAULT_HEAT_MAP_EMPTY_LABEL, DEFAULT_HEAT_MAP_FORCE_SQUARE, DEFAULT_HEAT_MAP_HEIGHT, DEFAULT_HEAT_MAP_VALUE_FORMAT, DEFAULT_HEAT_MAP_WIDTH, DEFAULT_HEAT_MAP_X_INNER_PADDING, DEFAULT_HEAT_MAP_Y_INNER_PADDING, DropdownButton, Grid, GridItem, Heading, HeatMap, HeatMapWidget, HtmlPreview, IconButton, Label, LanguagePicker, Link, Loadable, Menu, Modal, PageLoader, ReportLogo, ReportLogoFull, SearchBox, Spinner, StabilityRateDistributionWidget, StatusLabel, SuccessRatePieChart, SvgIcon, Tag, Text, ThemeButton, Toggle, TooltipWrapper, Tree, TreeHeader, TreeItem, TreeItemIcon, TreeMapChart, TreeMapChartWidget, TreeSection, TreeStatusBar, TrendChart, TrendChartKind, TrendChartWidget, Widget, allureIcons, defaultBarChartAxisBottomConfig, defaultBarChartAxisLeftConfig, defaultBarChartConfig, defaultBarChartLegendsConfig, defaultBarChartMarginConfig, defaultHeatMapAxisLeftConfig, defaultHeatMapAxisTopConfig, defaultHeatMapLegendConfig, defaultHeatMapMarginConfig, defaultTreeChartConfig, defaultTrendChartAxisBottomConfig, defaultTrendChartAxisLeftConfig, defaultTrendChartConfig, defaultTrendChartLegendConfig, defaultTrendChartMarginConfig, defaultTrendChartXScaleConfig, defaultTrendChartYScaleConfig, makeSymlogScale, makeSymlogScaleBySeries };
|
|
705
|
+
export type { BarChartProps, BarChartWidgetProps, ComingSoonChartWidgetProps, Datum, GridItemProps, GridProps, HeatMapProps, HeatMapWidgetProps, LanguagePickerProps, MeshTrendChartProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ParentLabelControlOptions, ResponsiveTreeChartProps, Serie, Slice, SlicesTrendChartProps, StabilityRateDistributionWidgetProps, SymlogScaleOptions, TagProps, TagSkin, Theme, ThemeButtonProps, TreeMapChartNode, TreeMapChartProps, TreeMapChartWidgetProps, TrendChartKindConfig, TrendChartProps, TrendChartSliceClickHandler, TrendChartSliceTouchHandler };
|