@allurereport/web-components 3.15.0 → 3.16.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/index.d.ts +117 -119
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
|
-
import { SVGAttributes, ComponentChild, Ref, FunctionalComponent,
|
|
3
|
-
import { TextProps as TextProps$1 } from '@/components/Typography';
|
|
2
|
+
import { SVGAttributes, JSX, ComponentChild, Ref, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
|
|
4
3
|
import { Placement } from '@floating-ui/dom';
|
|
5
4
|
import * as preact_compat from 'preact/compat';
|
|
6
5
|
import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
|
|
7
6
|
import { Signal } from '@preact/signals';
|
|
8
7
|
import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, Statistic, TestStatusTransition, SeverityLevel, TestResult } from '@allurereport/core-api';
|
|
9
|
-
import { Status as Status$1 } from 'global';
|
|
10
8
|
import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
|
|
11
9
|
import { Options } from 'sortablejs';
|
|
12
10
|
import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, StatusAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
|
|
13
|
-
import { Serie as Serie$1 } from '@/components/Charts/TrendChart';
|
|
14
11
|
import { AxisProps } from '@nivo/axes';
|
|
15
|
-
import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$
|
|
12
|
+
import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$1 } from '@nivo/line';
|
|
16
13
|
import { ScaleSymlogSpec, ScaleSpec } from '@nivo/scales';
|
|
17
14
|
import { Margin } from '@nivo/core';
|
|
18
15
|
import { LegendProps, AnchoredContinuousColorsLegendProps } from '@nivo/legends';
|
|
@@ -20,96 +17,97 @@ import { DefaultTreeMapDatum, TreeMapSvgProps } from '@nivo/treemap';
|
|
|
20
17
|
import { HeatMapDatum, DefaultHeatMapDatum, HeatMapSvgProps } from '@nivo/heatmap';
|
|
21
18
|
|
|
22
19
|
declare const allureIcons: {
|
|
23
|
-
amazon:
|
|
24
|
-
arrowsChevronDown:
|
|
25
|
-
azure:
|
|
26
|
-
bitbucket:
|
|
27
|
-
circleci:
|
|
28
|
-
draggable:
|
|
29
|
-
drone:
|
|
30
|
-
environment:
|
|
31
|
-
github:
|
|
32
|
-
gitlab:
|
|
33
|
-
jenkins:
|
|
34
|
-
lineAlertsAlertCircle:
|
|
35
|
-
lineAlertsFixed:
|
|
36
|
-
lineAlertsMalfunctioned:
|
|
37
|
-
lineAlertsNew:
|
|
38
|
-
lineAlertsNotificationBox:
|
|
39
|
-
lineAlertsRegressed:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
lineArrowsChevronRight:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
lineArrowsCornerDownRight:
|
|
46
|
-
lineArrowsExpand3:
|
|
47
|
-
lineArrowsRefreshCcw1:
|
|
48
|
-
lineArrowsSortLineAsc:
|
|
49
|
-
lineArrowsSortLineDesc:
|
|
50
|
-
lineArrowsSwitchVertical1:
|
|
51
|
-
lineChartsBarChartSquare:
|
|
52
|
-
lineChartsTimeline:
|
|
53
|
-
lineDevBug2:
|
|
54
|
-
lineDevCodeSquare:
|
|
55
|
-
lineDevDataflow3:
|
|
56
|
-
lineFilesClipboardCheck:
|
|
57
|
-
lineFilesFile2:
|
|
58
|
-
lineFilesFileAttachment2:
|
|
59
|
-
lineFilesFolder:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
lineGeneralChecklist3:
|
|
63
|
-
lineGeneralCopy3:
|
|
64
|
-
lineGeneralDownloadCloud:
|
|
65
|
-
lineGeneralEqual:
|
|
66
|
-
lineGeneralEye:
|
|
67
|
-
lineGeneralHelpCircle:
|
|
68
|
-
lineGeneralHomeLine:
|
|
69
|
-
lineGeneralInfoCircle:
|
|
70
|
-
lineGeneralLink1:
|
|
71
|
-
lineGeneralLinkExternal:
|
|
72
|
-
lineGeneralMinusCircle:
|
|
73
|
-
lineGeneralSearchMd:
|
|
74
|
-
lineGeneralSettings1:
|
|
75
|
-
lineGeneralXCircle:
|
|
76
|
-
lineGeneralXClose:
|
|
77
|
-
lineGeneralZap:
|
|
78
|
-
lineHelpersFlag:
|
|
79
|
-
lineHelpersPlayCircle:
|
|
80
|
-
lineIconBomb2:
|
|
81
|
-
lineImagesImage:
|
|
82
|
-
lineLayoutsColumn2:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
viewOff:
|
|
104
|
-
|
|
105
|
-
|
|
20
|
+
readonly amazon: "amazon";
|
|
21
|
+
readonly arrowsChevronDown: "arrows-chevron-down";
|
|
22
|
+
readonly azure: "azure";
|
|
23
|
+
readonly bitbucket: "bitbucket";
|
|
24
|
+
readonly circleci: "circleci";
|
|
25
|
+
readonly draggable: "draggable";
|
|
26
|
+
readonly drone: "drone";
|
|
27
|
+
readonly environment: "environment";
|
|
28
|
+
readonly github: "github";
|
|
29
|
+
readonly gitlab: "gitlab";
|
|
30
|
+
readonly jenkins: "jenkins";
|
|
31
|
+
readonly lineAlertsAlertCircle: "line-alerts-alert-circle";
|
|
32
|
+
readonly lineAlertsFixed: "line-alerts-fixed";
|
|
33
|
+
readonly lineAlertsMalfunctioned: "line-alerts-malfunctioned";
|
|
34
|
+
readonly lineAlertsNew: "line-alerts-new";
|
|
35
|
+
readonly lineAlertsNotificationBox: "line-alerts-notification-box";
|
|
36
|
+
readonly lineAlertsRegressed: "line-alerts-regressed";
|
|
37
|
+
readonly lineArrowsChevronDownDouble: "line-arrows-chevron-down-double";
|
|
38
|
+
readonly lineArrowsChevronDown: "line-arrows-chevron-down";
|
|
39
|
+
readonly lineArrowsChevronRight: "line-arrows-chevron-right";
|
|
40
|
+
readonly lineArrowsChevronUpDouble: "line-arrows-chevron-up-double";
|
|
41
|
+
readonly lineArrowsChevronUp: "line-arrows-chevron-up";
|
|
42
|
+
readonly lineArrowsCornerDownRight: "line-arrows-corner-down-right";
|
|
43
|
+
readonly lineArrowsExpand3: "line-arrows-expand-3";
|
|
44
|
+
readonly lineArrowsRefreshCcw1: "line-arrows-refresh-ccw-1";
|
|
45
|
+
readonly lineArrowsSortLineAsc: "line-arrows-sort-line-asc";
|
|
46
|
+
readonly lineArrowsSortLineDesc: "line-arrows-sort-line-desc";
|
|
47
|
+
readonly lineArrowsSwitchVertical1: "line-arrows-switch-vertical-1";
|
|
48
|
+
readonly lineChartsBarChartSquare: "line-charts-bar-chart-square";
|
|
49
|
+
readonly lineChartsTimeline: "line-charts-timeline";
|
|
50
|
+
readonly lineDevBug2: "line-dev-bug-2";
|
|
51
|
+
readonly lineDevCodeSquare: "line-dev-code-square";
|
|
52
|
+
readonly lineDevDataflow3: "line-dev-dataflow-3";
|
|
53
|
+
readonly lineFilesClipboardCheck: "line-files-clipboard-check";
|
|
54
|
+
readonly lineFilesFile2: "line-files-file-2";
|
|
55
|
+
readonly lineFilesFileAttachment2: "line-files-file-attachment-2";
|
|
56
|
+
readonly lineFilesFolder: "line-files-folder";
|
|
57
|
+
readonly lineGeneralCheckCircle: "line-general-check-circle";
|
|
58
|
+
readonly lineGeneralCheck: "line-general-check";
|
|
59
|
+
readonly lineGeneralChecklist3: "line-general-checklist3";
|
|
60
|
+
readonly lineGeneralCopy3: "line-general-copy-3";
|
|
61
|
+
readonly lineGeneralDownloadCloud: "line-general-download-cloud";
|
|
62
|
+
readonly lineGeneralEqual: "line-general-equal";
|
|
63
|
+
readonly lineGeneralEye: "line-general-eye";
|
|
64
|
+
readonly lineGeneralHelpCircle: "line-general-help-circle";
|
|
65
|
+
readonly lineGeneralHomeLine: "line-general-home-line";
|
|
66
|
+
readonly lineGeneralInfoCircle: "line-general-info-circle";
|
|
67
|
+
readonly lineGeneralLink1: "line-general-link-1";
|
|
68
|
+
readonly lineGeneralLinkExternal: "line-general-link-external";
|
|
69
|
+
readonly lineGeneralMinusCircle: "line-general-minus-circle";
|
|
70
|
+
readonly lineGeneralSearchMd: "line-general-search-md";
|
|
71
|
+
readonly lineGeneralSettings1: "line-general-settings-1";
|
|
72
|
+
readonly lineGeneralXCircle: "line-general-x-circle";
|
|
73
|
+
readonly lineGeneralXClose: "line-general-x-close";
|
|
74
|
+
readonly lineGeneralZap: "line-general-zap";
|
|
75
|
+
readonly lineHelpersFlag: "line-helpers-flag";
|
|
76
|
+
readonly lineHelpersPlayCircle: "line-helpers-play-circle";
|
|
77
|
+
readonly lineIconBomb2: "line-icon-bomb-2";
|
|
78
|
+
readonly lineImagesImage: "line-images-image";
|
|
79
|
+
readonly lineLayoutsColumn2: "line-layouts-columns-2";
|
|
80
|
+
readonly lineLayoutsColumns2: "line-layouts-columns-2";
|
|
81
|
+
readonly lineLayoutsLayoutTop: "line-layouts-layout-top";
|
|
82
|
+
readonly lineLayoutsMaximize2: "line-layouts-maximize-2";
|
|
83
|
+
readonly lineLayoutsMinimize2: "line-layouts-minimize-2";
|
|
84
|
+
readonly lineSecurityKey: "line-security-key";
|
|
85
|
+
readonly lineShapesDotCircle: "line-shapes-dot-circle";
|
|
86
|
+
readonly lineShapesMoon: "line-shapes-moon";
|
|
87
|
+
readonly lineShapesSun: "line-shapes-sun";
|
|
88
|
+
readonly lineShapesThemeAuto: "line-shapes-theme-auto";
|
|
89
|
+
readonly lineTimeClockStopwatch: "line-time-clock-stopwatch";
|
|
90
|
+
readonly playwrightLogo: "playwright-logo";
|
|
91
|
+
readonly reportLogo: "report-logo";
|
|
92
|
+
readonly solidAlertCircle: "solid-alert-circle";
|
|
93
|
+
readonly solidCheckCircle: "solid-check-circle";
|
|
94
|
+
readonly solidHelpCircle: "solid-help-circle";
|
|
95
|
+
readonly solidMinusCircle: "solid-minus-circle";
|
|
96
|
+
readonly solidPlusCircle: "solid-plus-circle";
|
|
97
|
+
readonly solidXCircle: "solid-x-circle";
|
|
98
|
+
readonly spinner: "spinner";
|
|
99
|
+
readonly testNew: "test-new";
|
|
100
|
+
readonly viewOff: "view-off";
|
|
101
|
+
readonly view: "view";
|
|
102
|
+
};
|
|
103
|
+
type SvgIconProps = Omit<SVGAttributes<SVGSVGElement>, "className" | "id" | "size" | "inline"> & {
|
|
106
104
|
"size"?: "xs" | "s" | "m" | "l" | "xl";
|
|
107
105
|
"className"?: string;
|
|
108
106
|
"id": string;
|
|
109
107
|
"inline"?: boolean;
|
|
110
108
|
"data-testid"?: string;
|
|
111
109
|
};
|
|
112
|
-
declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) =>
|
|
110
|
+
declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => JSX.Element | null;
|
|
113
111
|
|
|
114
112
|
type BaseBtnProps = {
|
|
115
113
|
text?: string;
|
|
@@ -183,7 +181,7 @@ type HeadingProps = {
|
|
|
183
181
|
} & Omit<HTMLAttributes, "size" | "className" | "tag">;
|
|
184
182
|
declare const Heading: FunctionalComponent<HeadingProps>;
|
|
185
183
|
|
|
186
|
-
type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps
|
|
184
|
+
type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps<Tag>, "children"> & {
|
|
187
185
|
text: string;
|
|
188
186
|
};
|
|
189
187
|
declare const LinkifiedText: <Tag extends keyof preact.JSX.IntrinsicElements = "span">({ text, ...textProps }: LinkifiedTextProps<Tag>) => preact.JSX.Element;
|
|
@@ -394,7 +392,7 @@ interface TreeStatusBarProps {
|
|
|
394
392
|
maxWidth?: number;
|
|
395
393
|
minWidth?: number;
|
|
396
394
|
offset?: number;
|
|
397
|
-
statusFilter?: Status
|
|
395
|
+
statusFilter?: Status;
|
|
398
396
|
}
|
|
399
397
|
declare const TreeStatusBar: FunctionalComponent<TreeStatusBarProps>;
|
|
400
398
|
|
|
@@ -560,38 +558,11 @@ type Props$b = {
|
|
|
560
558
|
};
|
|
561
559
|
declare const IconLabel: FunctionalComponent<Props$b>;
|
|
562
560
|
|
|
563
|
-
interface TrendChartWidgetPropsTranslations {
|
|
564
|
-
"no-results": string;
|
|
565
|
-
}
|
|
566
|
-
interface TrendChartWidgetProps<TSlice = {
|
|
567
|
-
metadata: {
|
|
568
|
-
executionId: string;
|
|
569
|
-
};
|
|
570
|
-
}> {
|
|
571
|
-
title: string;
|
|
572
|
-
mode: ChartMode;
|
|
573
|
-
items: readonly Serie$1[];
|
|
574
|
-
slices: readonly TSlice[];
|
|
575
|
-
min: number;
|
|
576
|
-
max: number;
|
|
577
|
-
height?: CSSProperties["height"];
|
|
578
|
-
width?: CSSProperties["width"];
|
|
579
|
-
rootAriaLabel?: string;
|
|
580
|
-
translations: TrendChartWidgetPropsTranslations;
|
|
581
|
-
dropShadow?: boolean;
|
|
582
|
-
}
|
|
583
|
-
declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
|
|
584
|
-
|
|
585
|
-
type SuccessRatePieChartProps = PieChartValues & {
|
|
586
|
-
className?: string;
|
|
587
|
-
};
|
|
588
|
-
declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
|
|
589
|
-
|
|
590
561
|
type Datum = Omit<Datum$1, "x" | "y"> & {
|
|
591
562
|
x: string | number | Date;
|
|
592
563
|
y: number;
|
|
593
564
|
};
|
|
594
|
-
type Serie = Omit<Serie$
|
|
565
|
+
type Serie = Omit<Serie$1, "id" | "data"> & {
|
|
595
566
|
id: string | number;
|
|
596
567
|
data: readonly Datum[];
|
|
597
568
|
};
|
|
@@ -648,6 +619,33 @@ declare const defaultTrendChartConfig: Partial<LineSvgProps>;
|
|
|
648
619
|
declare const makeSymlogScale: (min: number, max: number, options?: SymlogScaleOptions) => ScaleSymlogSpec;
|
|
649
620
|
declare const makeSymlogScaleBySeries: (series: Serie[], options?: SymlogScaleOptions) => ScaleSymlogSpec;
|
|
650
621
|
|
|
622
|
+
interface TrendChartWidgetPropsTranslations {
|
|
623
|
+
"no-results": string;
|
|
624
|
+
}
|
|
625
|
+
interface TrendChartWidgetProps<TSlice = {
|
|
626
|
+
metadata: {
|
|
627
|
+
executionId: string;
|
|
628
|
+
};
|
|
629
|
+
}> {
|
|
630
|
+
title: string;
|
|
631
|
+
mode: ChartMode;
|
|
632
|
+
items: readonly Serie[];
|
|
633
|
+
slices: readonly TSlice[];
|
|
634
|
+
min: number;
|
|
635
|
+
max: number;
|
|
636
|
+
height?: CSSProperties["height"];
|
|
637
|
+
width?: CSSProperties["width"];
|
|
638
|
+
rootAriaLabel?: string;
|
|
639
|
+
translations: TrendChartWidgetPropsTranslations;
|
|
640
|
+
dropShadow?: boolean;
|
|
641
|
+
}
|
|
642
|
+
declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
|
|
643
|
+
|
|
644
|
+
type SuccessRatePieChartProps = PieChartValues & {
|
|
645
|
+
className?: string;
|
|
646
|
+
};
|
|
647
|
+
declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
|
|
648
|
+
|
|
651
649
|
type ResponsiveTreeChartProps<Datum extends DefaultTreeMapDatum = TreeMapNode> = Omit<TreeMapSvgProps<Datum>, "width" | "height">;
|
|
652
650
|
interface ParentLabelControlOptions {
|
|
653
651
|
parentSkipSize?: number;
|