@allurereport/web-components 3.0.0-beta.20 → 3.0.0-beta.22

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 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, ChartMode, PieChartValues, BarGroup, TreeMapNode } from '@allurereport/core-api';
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';
@@ -198,7 +199,7 @@ declare const Loadable: <T, K = T>(props: LoadableProps<T, K>) => JSX.Element |
198
199
 
199
200
  declare const PageLoader: () => preact.JSX.Element;
200
201
 
201
- type Props$3 = {
202
+ type Props$4 = {
202
203
  placeholder?: string;
203
204
  invalid?: string;
204
205
  error?: string;
@@ -206,7 +207,7 @@ type Props$3 = {
206
207
  onChange: (value: string) => void;
207
208
  changeDebounce?: number;
208
209
  };
209
- declare const SearchBox: (props: Props$3) => preact.JSX.Element;
210
+ declare const SearchBox: (props: Props$4) => preact.JSX.Element;
210
211
 
211
212
  declare const Menu: {
212
213
  (props: {
@@ -380,28 +381,28 @@ declare const CodeViewer: FunctionalComponent<{
380
381
  className?: string;
381
382
  }>;
382
383
 
383
- type Props$2 = {
384
+ type Props$3 = {
384
385
  size?: "s" | "m" | "l";
385
386
  count: number;
386
387
  truncateCount?: boolean;
387
388
  status?: TestStatus;
388
389
  };
389
- declare const Counter: (props: Props$2) => preact.JSX.Element;
390
+ declare const Counter: (props: Props$3) => preact.JSX.Element;
390
391
 
391
- type Props$1 = {
392
+ type Props$2 = {
392
393
  value: boolean;
393
394
  label: string;
394
395
  onChange: (value: boolean) => void;
395
396
  focusable?: boolean;
396
397
  };
397
- declare const Toggle: (props: Props$1) => preact.JSX.Element;
398
+ declare const Toggle: (props: Props$2) => preact.JSX.Element;
398
399
 
399
- type Props = {
400
+ type Props$1 = {
400
401
  href?: string;
401
402
  children: ComponentChildren;
402
403
  onClick?: (e: MouseEvent) => void;
403
404
  };
404
- declare const Link: (props: Props) => preact.JSX.Element;
405
+ declare const Link: (props: Props$1) => preact.JSX.Element;
405
406
 
406
407
  declare const Label: FunctionComponent;
407
408
 
@@ -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,46 @@ interface HeatMapWidgetProps extends HeatMapProps {
663
674
 
664
675
  declare const HeatMapWidget: FunctionalComponent<HeatMapWidgetProps>;
665
676
 
666
- 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, 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 };
667
- export type { BarChartProps, BarChartWidgetProps, ComingSoonChartWidgetProps, Datum, GridItemProps, GridProps, HeatMapProps, HeatMapWidgetProps, LanguagePickerProps, MeshTrendChartProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ParentLabelControlOptions, ResponsiveTreeChartProps, Serie, Slice, SlicesTrendChartProps, SymlogScaleOptions, TagProps, TagSkin, Theme, ThemeButtonProps, TreeMapChartNode, TreeMapChartProps, TreeMapChartWidgetProps, TrendChartKindConfig, TrendChartProps, TrendChartSliceClickHandler, TrendChartSliceTouchHandler };
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
+ type Props = {
705
+ data: {
706
+ layer: string;
707
+ testCount: number;
708
+ successRate: number;
709
+ percentage: number;
710
+ }[];
711
+ title: string;
712
+ translations: Record<string, string>;
713
+ width?: JSX.CSSProperties["width"];
714
+ height?: JSX.CSSProperties["height"];
715
+ };
716
+ declare const TestingPyramidWidget: (props: Props) => JSX.Element;
717
+
718
+ 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, TestingPyramidWidget, 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 };
719
+ 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 };