accessibility-insights-report 7.2.0 → 7.3.0
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/drop/index.d.ts +1 -0
- package/drop/index.js +202 -139
- package/package.json +1 -1
package/drop/index.d.ts
CHANGED
package/drop/index.js
CHANGED
|
@@ -601,6 +601,31 @@ var ConvertScanResultsToUnifiedResults = class {
|
|
|
601
601
|
)
|
|
602
602
|
];
|
|
603
603
|
};
|
|
604
|
+
this.automatedChecksConversionForReportPackage = (scanResults) => {
|
|
605
|
+
if (!scanResults) {
|
|
606
|
+
return [];
|
|
607
|
+
}
|
|
608
|
+
return this.automatedChecksCreateUnifiedResultsFromScanResultsForReportPackage(scanResults);
|
|
609
|
+
};
|
|
610
|
+
this.automatedChecksCreateUnifiedResultsFromScanResultsForReportPackage = (scanResults) => {
|
|
611
|
+
return [
|
|
612
|
+
...this.createUnifiedResultsFromRuleResults(
|
|
613
|
+
scanResults.violations,
|
|
614
|
+
"fail",
|
|
615
|
+
this.getFixResolution
|
|
616
|
+
),
|
|
617
|
+
...this.createUnifiedResultsFromRuleResults(
|
|
618
|
+
scanResults.passes,
|
|
619
|
+
"pass",
|
|
620
|
+
this.getPassResolution
|
|
621
|
+
),
|
|
622
|
+
...this.createUnifiedResultsFromRuleResults(
|
|
623
|
+
scanResults.incomplete,
|
|
624
|
+
"unknown",
|
|
625
|
+
this.getFixResolution
|
|
626
|
+
)
|
|
627
|
+
];
|
|
628
|
+
};
|
|
604
629
|
this.needsReviewConversion = (scanResults) => {
|
|
605
630
|
if (!scanResults) {
|
|
606
631
|
return [];
|
|
@@ -761,6 +786,7 @@ var React4 = __toESM(require("react"));
|
|
|
761
786
|
var ResultSectionTypes = {
|
|
762
787
|
failed: "FailedInstancesSection",
|
|
763
788
|
passed: "PassedChecksSection",
|
|
789
|
+
incomplete: "IncompleteChecksSection",
|
|
764
790
|
notApplicable: "NotApplicableChecksSection"
|
|
765
791
|
};
|
|
766
792
|
|
|
@@ -2558,7 +2584,7 @@ function getUrlItemInfo(scanMetadata) {
|
|
|
2558
2584
|
}
|
|
2559
2585
|
var DetailsSection = makeDetailsSectionFC(getUrlItemInfo);
|
|
2560
2586
|
|
|
2561
|
-
// src/reports/components/report-sections/
|
|
2587
|
+
// src/reports/components/report-sections/incomplete-checks-section.tsx
|
|
2562
2588
|
var React55 = __toESM(require("react"));
|
|
2563
2589
|
|
|
2564
2590
|
// src/reports/components/report-sections/collapsible-result-section.tsx
|
|
@@ -2600,12 +2626,37 @@ var CollapsibleResultSection = NamedFC(
|
|
|
2600
2626
|
}
|
|
2601
2627
|
);
|
|
2602
2628
|
|
|
2629
|
+
// src/reports/components/report-sections/incomplete-checks-section.tsx
|
|
2630
|
+
var IncompleteChecksSection = NamedFC(
|
|
2631
|
+
"IncompleteChecksSection",
|
|
2632
|
+
({ deps, cardsViewData, cardSelectionMessageCreator, testKey, sectionHeadingLevel }) => {
|
|
2633
|
+
var _a;
|
|
2634
|
+
const cardRuleResults = ((_a = cardsViewData == null ? void 0 : cardsViewData.cards) == null ? void 0 : _a.unknown) ?? [];
|
|
2635
|
+
return /* @__PURE__ */ React55.createElement(
|
|
2636
|
+
CollapsibleResultSection,
|
|
2637
|
+
{
|
|
2638
|
+
deps,
|
|
2639
|
+
title: "Incomplete checks",
|
|
2640
|
+
cardRuleResults,
|
|
2641
|
+
containerClassName: "result-section",
|
|
2642
|
+
outcomeType: "incomplete",
|
|
2643
|
+
badgeCount: cardRuleResults.length,
|
|
2644
|
+
containerId: "incomplete-checks-section",
|
|
2645
|
+
cardSelectionMessageCreator,
|
|
2646
|
+
testKey,
|
|
2647
|
+
headingLevel: sectionHeadingLevel
|
|
2648
|
+
}
|
|
2649
|
+
);
|
|
2650
|
+
}
|
|
2651
|
+
);
|
|
2652
|
+
|
|
2603
2653
|
// src/reports/components/report-sections/not-applicable-checks-section.tsx
|
|
2654
|
+
var React56 = __toESM(require("react"));
|
|
2604
2655
|
var NotApplicableChecksSection = NamedFC(
|
|
2605
2656
|
"NotApplicableChecksSection",
|
|
2606
2657
|
({ deps, cardsViewData, cardSelectionMessageCreator, sectionHeadingLevel }) => {
|
|
2607
2658
|
const cardRuleResults = cardsViewData.cards.inapplicable;
|
|
2608
|
-
return /* @__PURE__ */
|
|
2659
|
+
return /* @__PURE__ */ React56.createElement(
|
|
2609
2660
|
CollapsibleResultSection,
|
|
2610
2661
|
{
|
|
2611
2662
|
deps,
|
|
@@ -2623,7 +2674,7 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2623
2674
|
);
|
|
2624
2675
|
|
|
2625
2676
|
// src/reports/components/report-sections/passed-checks-section.tsx
|
|
2626
|
-
var
|
|
2677
|
+
var React57 = __toESM(require("react"));
|
|
2627
2678
|
var PassedChecksSection = NamedFC(
|
|
2628
2679
|
"PassedChecksSection",
|
|
2629
2680
|
(props) => {
|
|
@@ -2632,11 +2683,11 @@ var PassedChecksSection = NamedFC(
|
|
|
2632
2683
|
if (props.cardsViewData == null || props.cardsViewData.cards == null) {
|
|
2633
2684
|
return null;
|
|
2634
2685
|
}
|
|
2635
|
-
return /* @__PURE__ */
|
|
2686
|
+
return /* @__PURE__ */ React57.createElement(
|
|
2636
2687
|
ResultSection,
|
|
2637
2688
|
{
|
|
2638
2689
|
deps: props.deps,
|
|
2639
|
-
title: "Passed
|
|
2690
|
+
title: "Passed checks",
|
|
2640
2691
|
results: (_c = (_b = props.cardsViewData) == null ? void 0 : _b.cards) == null ? void 0 : _c.pass,
|
|
2641
2692
|
outcomeType: "pass",
|
|
2642
2693
|
badgeCount: (_f = (_e = (_d = props.cardsViewData) == null ? void 0 : _d.cards) == null ? void 0 : _e.pass) == null ? void 0 : _f.length,
|
|
@@ -2652,7 +2703,7 @@ var PassedChecksSection = NamedFC(
|
|
|
2652
2703
|
);
|
|
2653
2704
|
} else {
|
|
2654
2705
|
const cardRuleResults = ((_k = (_j = props.cardsViewData) == null ? void 0 : _j.cards) == null ? void 0 : _k.pass) ?? [];
|
|
2655
|
-
return /* @__PURE__ */
|
|
2706
|
+
return /* @__PURE__ */ React57.createElement(
|
|
2656
2707
|
CollapsibleResultSection,
|
|
2657
2708
|
{
|
|
2658
2709
|
deps: props.deps,
|
|
@@ -2672,27 +2723,27 @@ var PassedChecksSection = NamedFC(
|
|
|
2672
2723
|
);
|
|
2673
2724
|
|
|
2674
2725
|
// src/reports/components/report-sections/report-footer.tsx
|
|
2675
|
-
var
|
|
2726
|
+
var React58 = __toESM(require("react"));
|
|
2676
2727
|
var ReportFooter = NamedFC("ReportFooter", ({ children }) => {
|
|
2677
|
-
return /* @__PURE__ */
|
|
2728
|
+
return /* @__PURE__ */ React58.createElement("div", { className: "report-footer-container" }, /* @__PURE__ */ React58.createElement("div", { className: "report-footer", role: "contentinfo" }, children));
|
|
2678
2729
|
});
|
|
2679
2730
|
|
|
2680
2731
|
// src/reports/components/report-sections/results-container.tsx
|
|
2681
|
-
var
|
|
2732
|
+
var React59 = __toESM(require("react"));
|
|
2682
2733
|
var ResultsContainer = NamedFC(
|
|
2683
2734
|
"ResultsContainer",
|
|
2684
2735
|
({ children, getCollapsibleScript, getCopyToClipboardScript: getCopyToClipboardScript2 }) => {
|
|
2685
|
-
return /* @__PURE__ */
|
|
2736
|
+
return /* @__PURE__ */ React59.createElement(React59.Fragment, null, /* @__PURE__ */ React59.createElement("div", { className: "results-container" }, children), /* @__PURE__ */ React59.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }), /* @__PURE__ */ React59.createElement("script", { dangerouslySetInnerHTML: { __html: getCopyToClipboardScript2() } }));
|
|
2686
2737
|
}
|
|
2687
2738
|
);
|
|
2688
2739
|
|
|
2689
2740
|
// src/reports/components/report-sections/summary-section.tsx
|
|
2690
|
-
var
|
|
2741
|
+
var React61 = __toESM(require("react"));
|
|
2691
2742
|
|
|
2692
2743
|
// src/reports/components/outcome-summary-bar.tsx
|
|
2693
2744
|
var import_classnames2 = __toESM(require("classnames"));
|
|
2694
2745
|
var import_lodash10 = require("lodash");
|
|
2695
|
-
var
|
|
2746
|
+
var React60 = __toESM(require("react"));
|
|
2696
2747
|
var outcomeSummaryBarAutomationId = "outcome-summary-bar";
|
|
2697
2748
|
var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
2698
2749
|
const outcomeTypesCount = props.allOutcomeTypes.length;
|
|
@@ -2717,9 +2768,9 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2717
2768
|
return null;
|
|
2718
2769
|
}
|
|
2719
2770
|
const outcomePastTense = outcomeTypeSemantics[outcomeType].pastTense;
|
|
2720
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ React60.createElement("span", { className: "label" }, ` ${outcomePastTense}`);
|
|
2721
2772
|
};
|
|
2722
|
-
return /* @__PURE__ */
|
|
2773
|
+
return /* @__PURE__ */ React60.createElement(
|
|
2723
2774
|
"div",
|
|
2724
2775
|
{
|
|
2725
2776
|
className: "outcome-summary-bar",
|
|
@@ -2732,7 +2783,7 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2732
2783
|
const iconMap = iconStyleInverted === true ? outcomeIconMapInverted : outcomeIconMap;
|
|
2733
2784
|
const outcomeIcon = iconMap[outcomeType];
|
|
2734
2785
|
const count = props.outcomeStats[outcomeType];
|
|
2735
|
-
return /* @__PURE__ */
|
|
2786
|
+
return /* @__PURE__ */ React60.createElement("div", { key: outcomeType, style: { flexGrow: count } }, /* @__PURE__ */ React60.createElement("span", { className: getClassNames(outcomeType, index) }, outcomeIcon, count, countSuffix, getTextLabel(outcomeType)));
|
|
2736
2787
|
})
|
|
2737
2788
|
);
|
|
2738
2789
|
});
|
|
@@ -2746,12 +2797,11 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2746
2797
|
}, 0),
|
|
2747
2798
|
pass: cards.pass.length,
|
|
2748
2799
|
inapplicable: cards.inapplicable.length,
|
|
2749
|
-
incomplete: 0,
|
|
2750
|
-
// never used
|
|
2800
|
+
incomplete: cards.unknown ? cards.unknown.length : 0,
|
|
2751
2801
|
review: 0
|
|
2752
2802
|
// never used
|
|
2753
2803
|
};
|
|
2754
|
-
return /* @__PURE__ */
|
|
2804
|
+
return /* @__PURE__ */ React61.createElement("div", { className: "summary-section" }, /* @__PURE__ */ React61.createElement("h2", null, "Summary"), /* @__PURE__ */ React61.createElement(
|
|
2755
2805
|
OutcomeSummaryBar,
|
|
2756
2806
|
{
|
|
2757
2807
|
outcomeStats: countSummary,
|
|
@@ -2763,13 +2813,19 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2763
2813
|
var AllOutcomesSummarySection = NamedFC(
|
|
2764
2814
|
"AllOutcomesSummarySection",
|
|
2765
2815
|
(props) => {
|
|
2766
|
-
return /* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ React61.createElement(
|
|
2817
|
+
BaseSummarySection,
|
|
2818
|
+
{
|
|
2819
|
+
...props,
|
|
2820
|
+
outcomeTypesShown: ["fail", "pass", "incomplete", "inapplicable"]
|
|
2821
|
+
}
|
|
2822
|
+
);
|
|
2767
2823
|
}
|
|
2768
2824
|
);
|
|
2769
2825
|
var PassFailSummarySection = NamedFC(
|
|
2770
2826
|
"PassFailSummarySection",
|
|
2771
2827
|
(props) => {
|
|
2772
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ React61.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass"] });
|
|
2773
2829
|
}
|
|
2774
2830
|
);
|
|
2775
2831
|
|
|
@@ -2783,9 +2839,10 @@ var AxeResultsReportSectionFactory = {
|
|
|
2783
2839
|
ResultsContainer,
|
|
2784
2840
|
FailedInstancesSection,
|
|
2785
2841
|
PassedChecksSection,
|
|
2842
|
+
IncompleteChecksSection,
|
|
2786
2843
|
NotApplicableChecksSection,
|
|
2787
2844
|
FooterSection: ReportFooter,
|
|
2788
|
-
resultSectionsOrder: ["failed", "passed", "notApplicable"],
|
|
2845
|
+
resultSectionsOrder: ["failed", "passed", "incomplete", "notApplicable"],
|
|
2789
2846
|
FooterText: FooterTextForService,
|
|
2790
2847
|
HeaderSection: ReporterHeaderSection,
|
|
2791
2848
|
HeadSection: ReporterHead
|
|
@@ -2822,7 +2879,7 @@ var getAddListenerForCollapsibleSection = (code) => `(${String(code)})(document)
|
|
|
2822
2879
|
var getDefaultAddListenerForCollapsibleSection = () => getAddListenerForCollapsibleSection(addEventListenerForCollapsibleSection);
|
|
2823
2880
|
|
|
2824
2881
|
// src/common/components/cards/combined-report-result-section-title.tsx
|
|
2825
|
-
var
|
|
2882
|
+
var React62 = __toESM(require("react"));
|
|
2826
2883
|
|
|
2827
2884
|
// src/common/components/cards/combined-report-result-section-title.scss
|
|
2828
2885
|
var combined_report_result_section_title_default = { "combinedReportResultSectionTitle": "combined-report-result-section-title--TqIZO", "title": "title--6WIyt", "heading": "heading--UpAHf" };
|
|
@@ -2834,14 +2891,14 @@ var CombinedReportResultSectionTitle = NamedFC(
|
|
|
2834
2891
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2835
2892
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2836
2893
|
const alertTerm = props.outcomeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2837
|
-
const alertingFailuresCount = /* @__PURE__ */
|
|
2838
|
-
const titleWithInstance = /* @__PURE__ */
|
|
2839
|
-
return /* @__PURE__ */
|
|
2894
|
+
const alertingFailuresCount = /* @__PURE__ */ React62.createElement("span", { role: "alert" }, props.outcomeCount, " ", alertTerm, " detected.");
|
|
2895
|
+
const titleWithInstance = /* @__PURE__ */ React62.createElement("span", { className: combined_report_result_section_title_default.heading, "aria-hidden": "true" }, props.title, " (", props.outcomeCount, ")");
|
|
2896
|
+
return /* @__PURE__ */ React62.createElement("span", { className: combined_report_result_section_title_default.combinedReportResultSectionTitle }, /* @__PURE__ */ React62.createElement("span", { className: "screen-reader-only" }, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.outcomeCount), titleWithInstance);
|
|
2840
2897
|
}
|
|
2841
2898
|
);
|
|
2842
2899
|
|
|
2843
2900
|
// src/reports/components/report-sections/combined-report-failed-section.tsx
|
|
2844
|
-
var
|
|
2901
|
+
var React63 = __toESM(require("react"));
|
|
2845
2902
|
var CombinedReportFailedSection = NamedFC(
|
|
2846
2903
|
"CombinedReportFailedSection",
|
|
2847
2904
|
(props) => {
|
|
@@ -2850,7 +2907,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2850
2907
|
const sectionId = "combined-report-failed-section";
|
|
2851
2908
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2852
2909
|
id: sectionId,
|
|
2853
|
-
header: /* @__PURE__ */
|
|
2910
|
+
header: /* @__PURE__ */ React63.createElement(
|
|
2854
2911
|
CombinedReportResultSectionTitle,
|
|
2855
2912
|
{
|
|
2856
2913
|
outcomeCount: ruleCount,
|
|
@@ -2858,7 +2915,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2858
2915
|
title: "Failed rules"
|
|
2859
2916
|
}
|
|
2860
2917
|
),
|
|
2861
|
-
content: /* @__PURE__ */
|
|
2918
|
+
content: /* @__PURE__ */ React63.createElement(
|
|
2862
2919
|
ResultSectionContent,
|
|
2863
2920
|
{
|
|
2864
2921
|
deps,
|
|
@@ -2877,21 +2934,21 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2877
2934
|
headingLevel: 3,
|
|
2878
2935
|
deps: {}
|
|
2879
2936
|
});
|
|
2880
|
-
return /* @__PURE__ */
|
|
2937
|
+
return /* @__PURE__ */ React63.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2881
2938
|
}
|
|
2882
2939
|
);
|
|
2883
2940
|
|
|
2884
2941
|
// src/reports/components/report-sections/combined-report-rules-only-sections.tsx
|
|
2885
|
-
var
|
|
2942
|
+
var React64 = __toESM(require("react"));
|
|
2886
2943
|
var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
2887
2944
|
"CombinedReportRulesOnlySection",
|
|
2888
2945
|
({ deps, cardsViewData, cardSelectionMessageCreator }) => {
|
|
2889
2946
|
const { outcomeType, title: title2 } = options;
|
|
2890
|
-
const cardRuleResults = cardsViewData.cards[outcomeType];
|
|
2947
|
+
const cardRuleResults = outcomeType === "incomplete" ? cardsViewData.cards["unknown"] : cardsViewData.cards[outcomeType];
|
|
2891
2948
|
const sectionId = `${outcomeType}-checks-section`;
|
|
2892
2949
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2893
2950
|
id: sectionId,
|
|
2894
|
-
header: /* @__PURE__ */
|
|
2951
|
+
header: /* @__PURE__ */ React64.createElement(
|
|
2895
2952
|
CombinedReportResultSectionTitle,
|
|
2896
2953
|
{
|
|
2897
2954
|
outcomeCount: cardRuleResults.length,
|
|
@@ -2899,7 +2956,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2899
2956
|
title: title2
|
|
2900
2957
|
}
|
|
2901
2958
|
),
|
|
2902
|
-
content: /* @__PURE__ */
|
|
2959
|
+
content: /* @__PURE__ */ React64.createElement(
|
|
2903
2960
|
RulesOnly,
|
|
2904
2961
|
{
|
|
2905
2962
|
deps,
|
|
@@ -2913,7 +2970,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2913
2970
|
headingLevel: 3,
|
|
2914
2971
|
deps: null
|
|
2915
2972
|
});
|
|
2916
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ React64.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2917
2974
|
}
|
|
2918
2975
|
);
|
|
2919
2976
|
var CombinedReportPassedSection = makeCombinedReportRulesOnlySection({
|
|
@@ -2924,12 +2981,16 @@ var CombinedReportNotApplicableSection = makeCombinedReportRulesOnlySection({
|
|
|
2924
2981
|
outcomeType: "inapplicable",
|
|
2925
2982
|
title: "Not applicable rules"
|
|
2926
2983
|
});
|
|
2984
|
+
var CombinedReportIncompleteSection = makeCombinedReportRulesOnlySection({
|
|
2985
|
+
outcomeType: "incomplete",
|
|
2986
|
+
title: "Incomplete rules"
|
|
2987
|
+
});
|
|
2927
2988
|
|
|
2928
2989
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
2929
|
-
var
|
|
2990
|
+
var React66 = __toESM(require("react"));
|
|
2930
2991
|
|
|
2931
2992
|
// src/reports/components/report-sections/urls-summary-section.tsx
|
|
2932
|
-
var
|
|
2993
|
+
var React65 = __toESM(require("react"));
|
|
2933
2994
|
|
|
2934
2995
|
// src/reports/components/url-outcome-type.ts
|
|
2935
2996
|
var allUrlOutcomeTypes = ["fail", "unscannable", "pass"];
|
|
@@ -2947,7 +3008,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2947
3008
|
} = props;
|
|
2948
3009
|
const getTotalUrls = () => {
|
|
2949
3010
|
const totalUrls = urlsPassedCount + urlsFailedCount + urlsNotScannedCount;
|
|
2950
|
-
return /* @__PURE__ */
|
|
3011
|
+
return /* @__PURE__ */ React65.createElement(React65.Fragment, null, /* @__PURE__ */ React65.createElement("h2", null, "URLs"), /* @__PURE__ */ React65.createElement("span", { className: urls_summary_section_default.totalUrls }, totalUrls), " total URLs scanned");
|
|
2951
3012
|
};
|
|
2952
3013
|
const getSummaryBar = () => {
|
|
2953
3014
|
const countSummary = {
|
|
@@ -2955,7 +3016,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2955
3016
|
unscannable: urlsNotScannedCount,
|
|
2956
3017
|
pass: urlsPassedCount
|
|
2957
3018
|
};
|
|
2958
|
-
return /* @__PURE__ */
|
|
3019
|
+
return /* @__PURE__ */ React65.createElement(
|
|
2959
3020
|
OutcomeSummaryBar,
|
|
2960
3021
|
{
|
|
2961
3022
|
outcomeStats: countSummary,
|
|
@@ -2966,9 +3027,9 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2966
3027
|
);
|
|
2967
3028
|
};
|
|
2968
3029
|
const getFailedInstances = () => {
|
|
2969
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ React65.createElement("div", { className: urls_summary_section_default.failureInstances }, /* @__PURE__ */ React65.createElement("h2", null, "Failure Instances"), /* @__PURE__ */ React65.createElement("span", { className: urls_summary_section_default.failureOutcomeChip }, /* @__PURE__ */ React65.createElement(OutcomeChip, { count: failureInstancesCount, outcomeType: "fail" }), /* @__PURE__ */ React65.createElement("span", null, "Failure instances were detected")));
|
|
2970
3031
|
};
|
|
2971
|
-
return /* @__PURE__ */
|
|
3032
|
+
return /* @__PURE__ */ React65.createElement("div", { className: urls_summary_section_default.urlsSummarySection }, getTotalUrls(), getSummaryBar(), getFailedInstances());
|
|
2972
3033
|
});
|
|
2973
3034
|
|
|
2974
3035
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
@@ -2989,12 +3050,12 @@ var CombinedReportSummarySection = NamedFC(
|
|
|
2989
3050
|
notScannedUrlsCount: urlResultCounts.unscannableUrls,
|
|
2990
3051
|
failureInstancesCount: failedInstances
|
|
2991
3052
|
};
|
|
2992
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ React66.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
2993
3054
|
}
|
|
2994
3055
|
);
|
|
2995
3056
|
|
|
2996
3057
|
// src/reports/components/report-sections/rules-results-container.tsx
|
|
2997
|
-
var
|
|
3058
|
+
var React67 = __toESM(require("react"));
|
|
2998
3059
|
|
|
2999
3060
|
// src/reports/components/report-sections/rules-results-container.scss
|
|
3000
3061
|
var rules_results_container_default = { "rulesResultsContainer": "rules-results-container--HaLDw", "resultsHeading": "results-heading--H9Puz" };
|
|
@@ -3003,13 +3064,13 @@ var rules_results_container_default = { "rulesResultsContainer": "rules-results-
|
|
|
3003
3064
|
var RulesResultsContainer = NamedFC(
|
|
3004
3065
|
"RulesResultsContainer",
|
|
3005
3066
|
({ children, getCollapsibleScript, getCopyToClipboardScript: getCopyToClipboardScript2 }) => {
|
|
3006
|
-
return /* @__PURE__ */
|
|
3067
|
+
return /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement("div", { className: rules_results_container_default.rulesResultsContainer }, /* @__PURE__ */ React67.createElement("div", { className: rules_results_container_default.resultsHeading }, /* @__PURE__ */ React67.createElement("h2", null, "Rules")), children), /* @__PURE__ */ React67.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }), /* @__PURE__ */ React67.createElement("script", { dangerouslySetInnerHTML: { __html: getCopyToClipboardScript2() } }));
|
|
3007
3068
|
}
|
|
3008
3069
|
);
|
|
3009
3070
|
|
|
3010
3071
|
// src/reports/components/report-sections/summary-report-details-section.tsx
|
|
3011
3072
|
var import_react6 = require("@fluentui/react");
|
|
3012
|
-
var
|
|
3073
|
+
var React68 = __toESM(require("react"));
|
|
3013
3074
|
|
|
3014
3075
|
// src/reports/components/report-sections/summary-report-details-section.scss
|
|
3015
3076
|
var summary_report_details_section_default = { "crawlDetailsSection": "crawl-details-section--a6evz", "crawlDetailsSectionList": "crawl-details-section-list--WV1Di", "icon": "icon--APJEn", "targetSite": "targetSite--wBJT-", "text": "text--rViTo", "label": "label--DUNYf", "noIcon": "no-icon--VrSr5" };
|
|
@@ -3020,12 +3081,12 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3020
3081
|
(props) => {
|
|
3021
3082
|
const { scanMetadata, toUtcString, secondsToTimeString } = props;
|
|
3022
3083
|
const scanTimespan = scanMetadata.timespan;
|
|
3023
|
-
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */
|
|
3084
|
+
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */ React68.createElement("li", { key: label, className }, /* @__PURE__ */ React68.createElement("span", { className: summary_report_details_section_default.icon }, icon), /* @__PURE__ */ React68.createElement("span", { className: summary_report_details_section_default.label }, `${label} `), /* @__PURE__ */ React68.createElement("span", { className: summary_report_details_section_default.text }, content)) : /* @__PURE__ */ React68.createElement("li", { key: label, className }, /* @__PURE__ */ React68.createElement("span", { className: (0, import_react6.css)(summary_report_details_section_default.noIcon, summary_report_details_section_default.label) }, `${label} `), /* @__PURE__ */ React68.createElement("span", { className: summary_report_details_section_default.text }, content));
|
|
3024
3085
|
const listItems = [];
|
|
3025
3086
|
listItems.push(
|
|
3026
3087
|
createListItem(
|
|
3027
3088
|
"Target site",
|
|
3028
|
-
/* @__PURE__ */
|
|
3089
|
+
/* @__PURE__ */ React68.createElement(
|
|
3029
3090
|
NewTabLinkWithConfirmationDialog,
|
|
3030
3091
|
{
|
|
3031
3092
|
href: scanMetadata.targetAppInfo.url,
|
|
@@ -3033,13 +3094,13 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3033
3094
|
},
|
|
3034
3095
|
scanMetadata.targetAppInfo.url
|
|
3035
3096
|
),
|
|
3036
|
-
/* @__PURE__ */
|
|
3097
|
+
/* @__PURE__ */ React68.createElement(UrlIcon, null),
|
|
3037
3098
|
summary_report_details_section_default.targetSite
|
|
3038
3099
|
)
|
|
3039
3100
|
);
|
|
3040
3101
|
if (scanTimespan.scanStart != null) {
|
|
3041
3102
|
const scanStartUTC = toUtcString(scanTimespan.scanStart);
|
|
3042
|
-
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */
|
|
3103
|
+
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */ React68.createElement(DateIcon, null)));
|
|
3043
3104
|
}
|
|
3044
3105
|
const scanCompleteUTC = toUtcString(scanTimespan.scanComplete);
|
|
3045
3106
|
listItems.push(createListItem("Scans completed", scanCompleteUTC));
|
|
@@ -3047,21 +3108,21 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3047
3108
|
const duration = secondsToTimeString(scanTimespan.durationSeconds);
|
|
3048
3109
|
listItems.push(createListItem("Duration", duration));
|
|
3049
3110
|
}
|
|
3050
|
-
return /* @__PURE__ */
|
|
3111
|
+
return /* @__PURE__ */ React68.createElement("div", { className: summary_report_details_section_default.crawlDetailsSection }, /* @__PURE__ */ React68.createElement("h2", null, "Scan details"), /* @__PURE__ */ React68.createElement("ul", { className: summary_report_details_section_default.crawlDetailsSectionList }, listItems));
|
|
3051
3112
|
}
|
|
3052
3113
|
);
|
|
3053
3114
|
|
|
3054
3115
|
// src/reports/components/report-sections/summary-report-header-section.tsx
|
|
3055
|
-
var
|
|
3116
|
+
var React69 = __toESM(require("react"));
|
|
3056
3117
|
var SummaryReportHeaderSection = NamedFC("SummaryReportHeaderSection", () => {
|
|
3057
|
-
return /* @__PURE__ */
|
|
3118
|
+
return /* @__PURE__ */ React69.createElement("header", null, /* @__PURE__ */ React69.createElement(HeaderBar, { headerText: brand }));
|
|
3058
3119
|
});
|
|
3059
3120
|
|
|
3060
3121
|
// src/reports/components/summary-report-head.tsx
|
|
3061
|
-
var
|
|
3122
|
+
var React70 = __toESM(require("react"));
|
|
3062
3123
|
var SummaryReportHead = NamedFC("SummaryReportHead", () => {
|
|
3063
3124
|
const titleValue = `${brand} automated checks result`;
|
|
3064
|
-
return /* @__PURE__ */
|
|
3125
|
+
return /* @__PURE__ */ React70.createElement("head", null, /* @__PURE__ */ React70.createElement("meta", { charSet: "UTF-8" }), /* @__PURE__ */ React70.createElement("title", null, titleValue), /* @__PURE__ */ React70.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet } }), /* @__PURE__ */ React70.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet2 } }));
|
|
3065
3126
|
});
|
|
3066
3127
|
|
|
3067
3128
|
// src/reports/components/report-sections/combined-report-section-factory.ts
|
|
@@ -3076,10 +3137,11 @@ var CombinedReportSectionFactory = {
|
|
|
3076
3137
|
ResultsContainer: RulesResultsContainer,
|
|
3077
3138
|
FailedInstancesSection: CombinedReportFailedSection,
|
|
3078
3139
|
PassedChecksSection: CombinedReportPassedSection,
|
|
3140
|
+
IncompleteChecksSection: CombinedReportIncompleteSection,
|
|
3079
3141
|
NotApplicableChecksSection: CombinedReportNotApplicableSection,
|
|
3080
3142
|
FooterSection: ReportFooter,
|
|
3081
3143
|
FooterText: FooterTextForService,
|
|
3082
|
-
resultSectionsOrder: ["failed", "passed", "notApplicable"]
|
|
3144
|
+
resultSectionsOrder: ["failed", "passed", "incomplete", "notApplicable"]
|
|
3083
3145
|
};
|
|
3084
3146
|
|
|
3085
3147
|
// src/reports/components/report-sections/copy-to-clipboard-script-provider.tsx
|
|
@@ -3117,10 +3179,10 @@ var getCopyToClipboardScript = (code) => `(${String(code)})(document)`;
|
|
|
3117
3179
|
var getDefaultCopyToClipboardScript = () => getCopyToClipboardScript(addCopyToClipboardListener);
|
|
3118
3180
|
|
|
3119
3181
|
// src/reports/components/report-sections/failed-urls-section.tsx
|
|
3120
|
-
var
|
|
3182
|
+
var React74 = __toESM(require("react"));
|
|
3121
3183
|
|
|
3122
3184
|
// src/reports/components/report-sections/collapsible-url-result-section.tsx
|
|
3123
|
-
var
|
|
3185
|
+
var React71 = __toESM(require("react"));
|
|
3124
3186
|
|
|
3125
3187
|
// src/reports/components/report-sections/collapsible-url-result-section.scss
|
|
3126
3188
|
var collapsible_url_result_section_default = { "urlResultSection": "url-result-section--SkOlZ" };
|
|
@@ -3132,19 +3194,19 @@ var CollapsibleUrlResultSection = NamedFC(
|
|
|
3132
3194
|
const { containerId, deps, content } = props;
|
|
3133
3195
|
const CollapsibleContent = deps.collapsibleControl({
|
|
3134
3196
|
id: containerId,
|
|
3135
|
-
header: /* @__PURE__ */
|
|
3197
|
+
header: /* @__PURE__ */ React71.createElement(ResultSectionTitle, { ...props, titleSize: "heading" }),
|
|
3136
3198
|
content,
|
|
3137
3199
|
headingLevel: 3
|
|
3138
3200
|
});
|
|
3139
|
-
return /* @__PURE__ */
|
|
3201
|
+
return /* @__PURE__ */ React71.createElement("div", { className: collapsible_url_result_section_default.urlResultSection }, CollapsibleContent);
|
|
3140
3202
|
}
|
|
3141
3203
|
);
|
|
3142
3204
|
|
|
3143
3205
|
// src/reports/components/report-sections/url-scan-results-table.tsx
|
|
3144
|
-
var
|
|
3206
|
+
var React73 = __toESM(require("react"));
|
|
3145
3207
|
|
|
3146
3208
|
// src/reports/components/report-sections/summary-results-table.tsx
|
|
3147
|
-
var
|
|
3209
|
+
var React72 = __toESM(require("react"));
|
|
3148
3210
|
|
|
3149
3211
|
// src/reports/components/report-sections/summary-results-table.scss
|
|
3150
3212
|
var summary_results_table_default = { "summaryResultsTable": "summary-results-table--Iezr-", "textCell": "text-cell--EaUrM", "urlCell": "url-cell--mg-3l" };
|
|
@@ -3162,8 +3224,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3162
3224
|
return `${id2}-header${colIndex}`;
|
|
3163
3225
|
};
|
|
3164
3226
|
const getTableHeaders = () => {
|
|
3165
|
-
return /* @__PURE__ */
|
|
3166
|
-
return /* @__PURE__ */
|
|
3227
|
+
return /* @__PURE__ */ React72.createElement("tr", null, columns.map((column, index) => {
|
|
3228
|
+
return /* @__PURE__ */ React72.createElement("th", { key: index, id: getHeaderId(index) }, column.header);
|
|
3167
3229
|
}));
|
|
3168
3230
|
};
|
|
3169
3231
|
const getCellClassName = (colIndex) => {
|
|
@@ -3171,8 +3233,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3171
3233
|
return cellClassNames[contentType];
|
|
3172
3234
|
};
|
|
3173
3235
|
const getRow = (row, rowIndex) => {
|
|
3174
|
-
return /* @__PURE__ */
|
|
3175
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ React72.createElement("tr", { key: rowIndex }, row.map((item, colIndex) => {
|
|
3237
|
+
return /* @__PURE__ */ React72.createElement(
|
|
3176
3238
|
"td",
|
|
3177
3239
|
{
|
|
3178
3240
|
key: colIndex,
|
|
@@ -3186,7 +3248,7 @@ var SummaryResultsTable = NamedFC(
|
|
|
3186
3248
|
const getTableRows = () => {
|
|
3187
3249
|
return rows.map(getRow);
|
|
3188
3250
|
};
|
|
3189
|
-
return /* @__PURE__ */
|
|
3251
|
+
return /* @__PURE__ */ React72.createElement("table", { className: summary_results_table_default.summaryResultsTable, id: id2 }, /* @__PURE__ */ React72.createElement("thead", null, getTableHeaders()), /* @__PURE__ */ React72.createElement("tbody", null, getTableRows()));
|
|
3190
3252
|
}
|
|
3191
3253
|
);
|
|
3192
3254
|
|
|
@@ -3204,11 +3266,11 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3204
3266
|
];
|
|
3205
3267
|
const rows = results.map((result) => {
|
|
3206
3268
|
const { url, reportLocation } = result;
|
|
3207
|
-
const urlLink = /* @__PURE__ */
|
|
3208
|
-
const reportLink = /* @__PURE__ */
|
|
3269
|
+
const urlLink = /* @__PURE__ */ React73.createElement(NewTabLink, { href: url }, url);
|
|
3270
|
+
const reportLink = /* @__PURE__ */ React73.createElement(NewTabLink, { href: reportLocation, "aria-label": `Report for ${url}` }, "Report");
|
|
3209
3271
|
return [`${result.numFailures}`, urlLink, reportLink];
|
|
3210
3272
|
});
|
|
3211
|
-
return /* @__PURE__ */
|
|
3273
|
+
return /* @__PURE__ */ React73.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3212
3274
|
}
|
|
3213
3275
|
);
|
|
3214
3276
|
|
|
@@ -3216,8 +3278,8 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3216
3278
|
var FailedUrlsSection = NamedFC(
|
|
3217
3279
|
"FailedUrlsSection",
|
|
3218
3280
|
({ results, deps }) => {
|
|
3219
|
-
const table = /* @__PURE__ */
|
|
3220
|
-
return /* @__PURE__ */
|
|
3281
|
+
const table = /* @__PURE__ */ React74.createElement(UrlScanResultsTable, { results: results.failed, id: "failed-urls-table" });
|
|
3282
|
+
return /* @__PURE__ */ React74.createElement(
|
|
3221
3283
|
CollapsibleUrlResultSection,
|
|
3222
3284
|
{
|
|
3223
3285
|
deps,
|
|
@@ -3232,10 +3294,10 @@ var FailedUrlsSection = NamedFC(
|
|
|
3232
3294
|
);
|
|
3233
3295
|
|
|
3234
3296
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3235
|
-
var
|
|
3297
|
+
var React76 = __toESM(require("react"));
|
|
3236
3298
|
|
|
3237
3299
|
// src/reports/components/report-sections/url-errors-table.tsx
|
|
3238
|
-
var
|
|
3300
|
+
var React75 = __toESM(require("react"));
|
|
3239
3301
|
var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
3240
3302
|
const errors = props.errors;
|
|
3241
3303
|
const columns = [
|
|
@@ -3245,19 +3307,19 @@ var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
|
3245
3307
|
];
|
|
3246
3308
|
const rows = errors.map((scanError) => {
|
|
3247
3309
|
const { errorDescription, errorType, url, errorLogLocation } = scanError;
|
|
3248
|
-
const urlLink = /* @__PURE__ */
|
|
3249
|
-
const errorLogLink = /* @__PURE__ */
|
|
3310
|
+
const urlLink = /* @__PURE__ */ React75.createElement(NewTabLink, { href: url }, url);
|
|
3311
|
+
const errorLogLink = /* @__PURE__ */ React75.createElement(NewTabLink, { href: errorLogLocation }, errorDescription);
|
|
3250
3312
|
return [errorType, urlLink, errorLogLink];
|
|
3251
3313
|
});
|
|
3252
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ React75.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3253
3315
|
});
|
|
3254
3316
|
|
|
3255
3317
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3256
3318
|
var NotScannedUrlsSection = NamedFC(
|
|
3257
3319
|
"NotScannedUrlsSection",
|
|
3258
3320
|
({ results, deps }) => {
|
|
3259
|
-
const table = /* @__PURE__ */
|
|
3260
|
-
return /* @__PURE__ */
|
|
3321
|
+
const table = /* @__PURE__ */ React76.createElement(UrlErrorsTable, { errors: results.unscannable, id: "not-scanned-urls-table" });
|
|
3322
|
+
return /* @__PURE__ */ React76.createElement(
|
|
3261
3323
|
CollapsibleUrlResultSection,
|
|
3262
3324
|
{
|
|
3263
3325
|
deps,
|
|
@@ -3272,12 +3334,12 @@ var NotScannedUrlsSection = NamedFC(
|
|
|
3272
3334
|
);
|
|
3273
3335
|
|
|
3274
3336
|
// src/reports/components/report-sections/passed-urls-section.tsx
|
|
3275
|
-
var
|
|
3337
|
+
var React77 = __toESM(require("react"));
|
|
3276
3338
|
var PassedUrlsSection = NamedFC(
|
|
3277
3339
|
"PassedUrlsSection",
|
|
3278
3340
|
({ results, deps }) => {
|
|
3279
|
-
const table = /* @__PURE__ */
|
|
3280
|
-
return /* @__PURE__ */
|
|
3341
|
+
const table = /* @__PURE__ */ React77.createElement(UrlScanResultsTable, { results: results.passed, id: "passed-urls-table" });
|
|
3342
|
+
return /* @__PURE__ */ React77.createElement(
|
|
3281
3343
|
CollapsibleUrlResultSection,
|
|
3282
3344
|
{
|
|
3283
3345
|
deps,
|
|
@@ -3292,7 +3354,7 @@ var PassedUrlsSection = NamedFC(
|
|
|
3292
3354
|
);
|
|
3293
3355
|
|
|
3294
3356
|
// src/reports/components/report-sections/results-by-url-container.tsx
|
|
3295
|
-
var
|
|
3357
|
+
var React78 = __toESM(require("react"));
|
|
3296
3358
|
|
|
3297
3359
|
// src/reports/components/report-sections/results-by-url-container.scss
|
|
3298
3360
|
var results_by_url_container_default = { "urlResultsContainer": "url-results-container---dq9B", "resultsHeading": "results-heading--2dWBX" };
|
|
@@ -3301,12 +3363,12 @@ var results_by_url_container_default = { "urlResultsContainer": "url-results-con
|
|
|
3301
3363
|
var ResultsByUrlContainer = NamedFC(
|
|
3302
3364
|
"ResultsContainer",
|
|
3303
3365
|
({ children, getCollapsibleScript }) => {
|
|
3304
|
-
return /* @__PURE__ */
|
|
3366
|
+
return /* @__PURE__ */ React78.createElement(React78.Fragment, null, /* @__PURE__ */ React78.createElement("div", { className: results_by_url_container_default.urlResultsContainer }, /* @__PURE__ */ React78.createElement("div", { className: results_by_url_container_default.resultsHeading }, /* @__PURE__ */ React78.createElement("h2", null, "Results by URL")), children), /* @__PURE__ */ React78.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
3305
3367
|
}
|
|
3306
3368
|
);
|
|
3307
3369
|
|
|
3308
3370
|
// src/reports/components/report-sections/summary-report-summary-section.tsx
|
|
3309
|
-
var
|
|
3371
|
+
var React79 = __toESM(require("react"));
|
|
3310
3372
|
var SummaryReportSummarySection = NamedFC(
|
|
3311
3373
|
"SummaryReportSummarySection",
|
|
3312
3374
|
(props) => {
|
|
@@ -3321,7 +3383,7 @@ var SummaryReportSummarySection = NamedFC(
|
|
|
3321
3383
|
notScannedUrlsCount: results.unscannable.length,
|
|
3322
3384
|
failureInstancesCount: failedInstances
|
|
3323
3385
|
};
|
|
3324
|
-
return /* @__PURE__ */
|
|
3386
|
+
return /* @__PURE__ */ React79.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
3325
3387
|
}
|
|
3326
3388
|
);
|
|
3327
3389
|
|
|
@@ -3465,11 +3527,12 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3465
3527
|
const passedCards = this.getCardRuleResults(results.passed);
|
|
3466
3528
|
const inapplicableCards = this.getCardRuleResults(results.notApplicable);
|
|
3467
3529
|
const failedCards = results.failed.map(this.getFailuresGroupedByRule);
|
|
3530
|
+
const incompleteCards = this.getCardRuleResults(results.incomplete);
|
|
3468
3531
|
const statusResults = {
|
|
3469
3532
|
fail: failedCards,
|
|
3470
3533
|
pass: passedCards,
|
|
3471
3534
|
inapplicable: inapplicableCards,
|
|
3472
|
-
unknown:
|
|
3535
|
+
unknown: incompleteCards
|
|
3473
3536
|
};
|
|
3474
3537
|
return {
|
|
3475
3538
|
cards: statusResults,
|
|
@@ -3587,7 +3650,7 @@ var ReactStaticRenderer = class {
|
|
|
3587
3650
|
};
|
|
3588
3651
|
|
|
3589
3652
|
// src/reports/report-html-generator.tsx
|
|
3590
|
-
var
|
|
3653
|
+
var React80 = __toESM(require("react"));
|
|
3591
3654
|
var ReportHtmlGenerator = class {
|
|
3592
3655
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, getGuidanceTagsFromGuidanceLinks, fixInstructionProcessor, recommendColor, getPropertyConfiguration2, getNextHeadingLevel, getCopyToClipboardScript2) {
|
|
3593
3656
|
this.sectionFactory = sectionFactory;
|
|
@@ -3603,7 +3666,7 @@ var ReportHtmlGenerator = class {
|
|
|
3603
3666
|
}
|
|
3604
3667
|
generateHtml(description, cardsViewData, scanMetadata, feedbackURL, expandPassSectionDetails) {
|
|
3605
3668
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3606
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3669
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React80.createElement(HeadSection, null));
|
|
3607
3670
|
const detailsProps = {
|
|
3608
3671
|
description,
|
|
3609
3672
|
deps: {
|
|
@@ -3633,14 +3696,14 @@ var ReportHtmlGenerator = class {
|
|
|
3633
3696
|
sectionFactory: this.sectionFactory,
|
|
3634
3697
|
...detailsProps
|
|
3635
3698
|
};
|
|
3636
|
-
const bodyElement = /* @__PURE__ */
|
|
3699
|
+
const bodyElement = /* @__PURE__ */ React80.createElement(ReportBody, { ...props });
|
|
3637
3700
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3638
3701
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3639
3702
|
}
|
|
3640
3703
|
};
|
|
3641
3704
|
|
|
3642
3705
|
// src/reports/summary-report-html-generator.tsx
|
|
3643
|
-
var
|
|
3706
|
+
var React81 = __toESM(require("react"));
|
|
3644
3707
|
var SummaryReportHtmlGenerator = class {
|
|
3645
3708
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, secondsToTimeStringConverter) {
|
|
3646
3709
|
this.sectionFactory = sectionFactory;
|
|
@@ -3651,7 +3714,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3651
3714
|
}
|
|
3652
3715
|
generateHtml(scanMetadata, results) {
|
|
3653
3716
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3654
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3717
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React81.createElement(HeadSection, null));
|
|
3655
3718
|
const detailsProps = {
|
|
3656
3719
|
deps: {
|
|
3657
3720
|
collapsibleControl: ReportCollapsibleContainerControl
|
|
@@ -3666,7 +3729,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3666
3729
|
sectionFactory: this.sectionFactory,
|
|
3667
3730
|
...detailsProps
|
|
3668
3731
|
};
|
|
3669
|
-
const bodyElement = /* @__PURE__ */
|
|
3732
|
+
const bodyElement = /* @__PURE__ */ React81.createElement(ReportBody, { ...props });
|
|
3670
3733
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3671
3734
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3672
3735
|
}
|
|
@@ -5673,7 +5736,7 @@ var RuleProcessor = class {
|
|
|
5673
5736
|
};
|
|
5674
5737
|
|
|
5675
5738
|
// src/common/components/fix-instruction-processor.tsx
|
|
5676
|
-
var
|
|
5739
|
+
var React82 = __toESM(require("react"));
|
|
5677
5740
|
|
|
5678
5741
|
// src/common/components/cards/fix-instruction-color-box.scss
|
|
5679
5742
|
var fix_instruction_color_box_default = { "fixInstructionColorBox": "fix-instruction-color-box--DQpQE", "screenReaderOnly": "screen-reader-only--6LUiO" };
|
|
@@ -5716,7 +5779,7 @@ var FixInstructionProcessor = class {
|
|
|
5716
5779
|
return this.tryProcessAsColorContrastRecommendation(instruction, recommendColor) ?? this.tryProcessAsRelatedNodesReference(instruction) ?? this.processAsNoop(instruction);
|
|
5717
5780
|
}
|
|
5718
5781
|
processAsNoop(fixInstruction) {
|
|
5719
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, fixInstruction);
|
|
5720
5783
|
}
|
|
5721
5784
|
// We perform this replacement because what axe-core exposes as a "relatedNodes" property
|
|
5722
5785
|
// is presented in our cards views as a "Related paths" row. This only comes up in practice
|
|
@@ -5727,7 +5790,7 @@ var FixInstructionProcessor = class {
|
|
|
5727
5790
|
return null;
|
|
5728
5791
|
}
|
|
5729
5792
|
const inputBody = input.slice(0, input.length - " (see related nodes)".length);
|
|
5730
|
-
return /* @__PURE__ */
|
|
5793
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, inputBody, " (see ", /* @__PURE__ */ React82.createElement("em", null, "Related paths"), ")");
|
|
5731
5794
|
}
|
|
5732
5795
|
tryProcessAsColorContrastRecommendation(fixInstruction, recommendColor) {
|
|
5733
5796
|
const matches6 = this.getColorMatches(fixInstruction);
|
|
@@ -5820,14 +5883,14 @@ var FixInstructionProcessor = class {
|
|
|
5820
5883
|
}
|
|
5821
5884
|
splitFixInstruction(fixInstruction, recommendationStrings, matches6) {
|
|
5822
5885
|
if (matches6.length === 0) {
|
|
5823
|
-
return /* @__PURE__ */
|
|
5886
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, fixInstruction);
|
|
5824
5887
|
}
|
|
5825
5888
|
const recommendations = [];
|
|
5826
5889
|
const howToFixMatches = matches6.slice(0, 2);
|
|
5827
5890
|
const recommendationMatches = matches6.slice(2);
|
|
5828
5891
|
const results = this.getInstructionWithAndWithoutBoxes(howToFixMatches, fixInstruction);
|
|
5829
5892
|
if (recommendationStrings.length === 0) {
|
|
5830
|
-
return /* @__PURE__ */
|
|
5893
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, results);
|
|
5831
5894
|
}
|
|
5832
5895
|
const recommendationOne = this.getInstructionWithAndWithoutBoxes(
|
|
5833
5896
|
recommendationMatches.slice(0, 2),
|
|
@@ -5844,7 +5907,7 @@ var FixInstructionProcessor = class {
|
|
|
5844
5907
|
return this.addRecommendationsToResults(results, recommendations);
|
|
5845
5908
|
}
|
|
5846
5909
|
addRecommendationsToResults(results, recommendations) {
|
|
5847
|
-
return /* @__PURE__ */
|
|
5910
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, results, /* @__PURE__ */ React82.createElement("ul", { key: "recommendations-list", "data-automation-id": recommendationsAutomationId }, recommendations.map((rec, idx) => /* @__PURE__ */ React82.createElement("li", { key: `recommendation-${idx}` }, rec))));
|
|
5848
5911
|
}
|
|
5849
5912
|
getInstructionWithBoxes(matches6, fixInstruction) {
|
|
5850
5913
|
let insertionIndex = 0;
|
|
@@ -5853,19 +5916,19 @@ var FixInstructionProcessor = class {
|
|
|
5853
5916
|
matches6.forEach((match) => {
|
|
5854
5917
|
const endIndex = match.splitIndex - match.colorHexValue.length;
|
|
5855
5918
|
const substring = fixInstruction.substring(insertionIndex, endIndex);
|
|
5856
|
-
result.push(/* @__PURE__ */
|
|
5919
|
+
result.push(/* @__PURE__ */ React82.createElement("span", { key: `instruction-split-${keyIndex++}` }, substring));
|
|
5857
5920
|
result.push(this.createColorBox(match.colorHexValue, keyIndex++));
|
|
5858
5921
|
insertionIndex = endIndex;
|
|
5859
5922
|
});
|
|
5860
5923
|
const coda = fixInstruction.substr(insertionIndex);
|
|
5861
|
-
result.push(/* @__PURE__ */
|
|
5924
|
+
result.push(/* @__PURE__ */ React82.createElement("span", { key: `instruction-split-${keyIndex++}` }, coda));
|
|
5862
5925
|
return result;
|
|
5863
5926
|
}
|
|
5864
5927
|
getInstructionWithAndWithoutBoxes(matches6, fixInstruction) {
|
|
5865
|
-
return /* @__PURE__ */
|
|
5928
|
+
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement("span", { "aria-hidden": "true" }, this.getInstructionWithBoxes(matches6, fixInstruction)), /* @__PURE__ */ React82.createElement("span", { className: fix_instruction_color_box_default.screenReaderOnly }, fixInstruction));
|
|
5866
5929
|
}
|
|
5867
5930
|
createColorBox(colorHexValue, keyIndex) {
|
|
5868
|
-
return /* @__PURE__ */
|
|
5931
|
+
return /* @__PURE__ */ React82.createElement(
|
|
5869
5932
|
"span",
|
|
5870
5933
|
{
|
|
5871
5934
|
"aria-hidden": true,
|
|
@@ -5879,16 +5942,16 @@ var FixInstructionProcessor = class {
|
|
|
5879
5942
|
|
|
5880
5943
|
// src/common/components/cards/get-labelled-string-property-card-row.tsx
|
|
5881
5944
|
var import_lodash14 = require("lodash");
|
|
5882
|
-
var
|
|
5945
|
+
var React84 = __toESM(require("react"));
|
|
5883
5946
|
|
|
5884
5947
|
// src/common/components/cards/simple-card-row.tsx
|
|
5885
5948
|
var import_utilities6 = require("@fluentui/utilities");
|
|
5886
|
-
var
|
|
5949
|
+
var React83 = __toESM(require("react"));
|
|
5887
5950
|
var SimpleCardRow = NamedFC(
|
|
5888
5951
|
"SimpleCardRow",
|
|
5889
5952
|
({ label: givenLabel, content, rowKey, contentClassName }) => {
|
|
5890
5953
|
const contentStyling = (0, import_utilities6.css)(instance_details_default.rowContent, contentClassName);
|
|
5891
|
-
return /* @__PURE__ */
|
|
5954
|
+
return /* @__PURE__ */ React83.createElement("tr", { className: instance_details_default.row, key: rowKey }, /* @__PURE__ */ React83.createElement("th", { className: instance_details_default.rowLabel }, givenLabel), /* @__PURE__ */ React83.createElement("td", { className: contentStyling }, content));
|
|
5892
5955
|
}
|
|
5893
5956
|
);
|
|
5894
5957
|
|
|
@@ -5898,7 +5961,7 @@ var GetLabelledStringPropertyCardRow = (label, contentClassName) => {
|
|
|
5898
5961
|
if ((0, import_lodash14.isEmpty)(props.propertyData)) {
|
|
5899
5962
|
return null;
|
|
5900
5963
|
}
|
|
5901
|
-
return /* @__PURE__ */
|
|
5964
|
+
return /* @__PURE__ */ React84.createElement(
|
|
5902
5965
|
SimpleCardRow,
|
|
5903
5966
|
{
|
|
5904
5967
|
label,
|
|
@@ -5918,7 +5981,7 @@ var ContentDescriptionCardRow = GetLabelledStringPropertyCardRow("Content descri
|
|
|
5918
5981
|
|
|
5919
5982
|
// src/common/components/cards/related-paths-card-row.tsx
|
|
5920
5983
|
var import_lodash15 = require("lodash");
|
|
5921
|
-
var
|
|
5984
|
+
var React85 = __toESM(require("react"));
|
|
5922
5985
|
|
|
5923
5986
|
// src/common/components/cards/related-paths-card-row.scss
|
|
5924
5987
|
var related_paths_card_row_default = { "pathList": "path-list--MxxKM" };
|
|
@@ -5930,11 +5993,11 @@ var RelatedPathsCardRow = NamedFC(
|
|
|
5930
5993
|
if ((0, import_lodash15.isEmpty)(propertyData)) {
|
|
5931
5994
|
return null;
|
|
5932
5995
|
}
|
|
5933
|
-
return /* @__PURE__ */
|
|
5996
|
+
return /* @__PURE__ */ React85.createElement(
|
|
5934
5997
|
SimpleCardRow,
|
|
5935
5998
|
{
|
|
5936
5999
|
label: `Related paths`,
|
|
5937
|
-
content: /* @__PURE__ */
|
|
6000
|
+
content: /* @__PURE__ */ React85.createElement("ul", { className: related_paths_card_row_default.pathList }, propertyData.map((selector) => /* @__PURE__ */ React85.createElement("li", { key: selector }, selector))),
|
|
5938
6001
|
rowKey: `related-paths-row-${index}`
|
|
5939
6002
|
}
|
|
5940
6003
|
);
|
|
@@ -5942,16 +6005,16 @@ var RelatedPathsCardRow = NamedFC(
|
|
|
5942
6005
|
);
|
|
5943
6006
|
|
|
5944
6007
|
// src/common/components/cards/rich-resolution-card-row.tsx
|
|
5945
|
-
var
|
|
6008
|
+
var React88 = __toESM(require("react"));
|
|
5946
6009
|
|
|
5947
6010
|
// src/assessments/markup.tsx
|
|
5948
|
-
var
|
|
6011
|
+
var React86 = __toESM(require("react"));
|
|
5949
6012
|
function Term(props) {
|
|
5950
|
-
return /* @__PURE__ */
|
|
6013
|
+
return /* @__PURE__ */ React86.createElement("strong", null, props.children);
|
|
5951
6014
|
}
|
|
5952
6015
|
|
|
5953
6016
|
// src/common/components/cards/rich-resolution-content.tsx
|
|
5954
|
-
var
|
|
6017
|
+
var React87 = __toESM(require("react"));
|
|
5955
6018
|
|
|
5956
6019
|
// src/common/components/cards/rich-resolution-content.scss
|
|
5957
6020
|
var rich_resolution_content_default = { "multiLineTextYesBullet": "multi-line-text-yes-bullet--TXyX-", "multiLineTextNoBullet": "multi-line-text-no-bullet--AUXXt", "combinationLists": "combination-lists--boK5y" };
|
|
@@ -5962,22 +6025,22 @@ var RichResolutionContent = NamedFC(
|
|
|
5962
6025
|
({ deps: { LinkComponent }, contentId, contentVariables }) => {
|
|
5963
6026
|
switch (contentId) {
|
|
5964
6027
|
case "web/aria-input-field-name": {
|
|
5965
|
-
return /* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ React87.createElement("div", null, "Inspect the element using the", " ", /* @__PURE__ */ React87.createElement(LinkComponent, { href: "https://developers.google.com/web/updates/2018/01/devtools" }, "Accessibility pane in the browser Developer Tools"), " ", "to verify that the field's accessible name is complete without its associated", " ", /* @__PURE__ */ React87.createElement("b", null, "<", "label", ">"), ".");
|
|
5966
6029
|
}
|
|
5967
6030
|
case "web/color-contrast": {
|
|
5968
|
-
return /* @__PURE__ */
|
|
6031
|
+
return /* @__PURE__ */ React87.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React87.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React87.createElement("li", null, "If the instance is an icon or other non-text content, ignore it. This rule applies only to text."), /* @__PURE__ */ React87.createElement("li", null, "If the instance is text, use", " ", /* @__PURE__ */ React87.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React87.createElement(LinkComponent, { href: "https://developer.paciellogroup.com/resources/contrastanalyser/" }, "Colour Contrast Analyser"), " ", "if you're testing on a Mac) to manually verify that it has sufficient contrast compared to the background. If the background is an image or gradient, test an area where contrast appears to be lowest.")), /* @__PURE__ */ React87.createElement("ul", { className: rich_resolution_content_default.multiLineTextNoBullet }, /* @__PURE__ */ React87.createElement("li", null, "For detailed test instructions, see", " ", /* @__PURE__ */ React87.createElement(Term, null, "Assessment ", ">", " Adaptable content ", ">", " Contrast"), ".")));
|
|
5969
6032
|
}
|
|
5970
6033
|
case "web/duplicate-id-aria": {
|
|
5971
|
-
return /* @__PURE__ */
|
|
6034
|
+
return /* @__PURE__ */ React87.createElement("div", null, "Document has multiple elements referenced with ARIA with the same id attribute. Examine any duplicate ID values and rename them. Duplicate IDs are common validation errors that may break the accessibility of labels, e.g., form fields, table header cells.");
|
|
5972
6035
|
}
|
|
5973
6036
|
case "web/th-has-data-cells": {
|
|
5974
|
-
return /* @__PURE__ */
|
|
6037
|
+
return /* @__PURE__ */ React87.createElement("div", null, "Examine the header cell in the context of the table to verify that it has no data cells.");
|
|
5975
6038
|
}
|
|
5976
6039
|
case "web/label-content-name-mismatch": {
|
|
5977
|
-
return /* @__PURE__ */
|
|
6040
|
+
return /* @__PURE__ */ React87.createElement("span", null, "Inspect the element using the Accessibility pane in the browser Developer tools and verify that the element\u2019s accessible name contains its visible text.");
|
|
5978
6041
|
}
|
|
5979
6042
|
case "web/p-as-heading": {
|
|
5980
|
-
return /* @__PURE__ */
|
|
6043
|
+
return /* @__PURE__ */ React87.createElement("span", null, "Inspect the ", `<p>`, " element and verify that the element is not used as a heading through visual styling with bold, italic text or font-size. If headings are needed, use the appropriate heading tags.");
|
|
5981
6044
|
}
|
|
5982
6045
|
default: {
|
|
5983
6046
|
throw new Error(
|
|
@@ -5992,11 +6055,11 @@ var RichResolutionContent = NamedFC(
|
|
|
5992
6055
|
var RichResolutionCardRow = NamedFC(
|
|
5993
6056
|
"RichResolutionCardRow",
|
|
5994
6057
|
({ deps, index, propertyData }) => {
|
|
5995
|
-
return /* @__PURE__ */
|
|
6058
|
+
return /* @__PURE__ */ React88.createElement(
|
|
5996
6059
|
SimpleCardRow,
|
|
5997
6060
|
{
|
|
5998
6061
|
label: `How to ${propertyData.labelType}`,
|
|
5999
|
-
content: /* @__PURE__ */
|
|
6062
|
+
content: /* @__PURE__ */ React88.createElement(RichResolutionContent, { deps, ...propertyData }),
|
|
6000
6063
|
rowKey: `rich-resolution-row-${index}`
|
|
6001
6064
|
}
|
|
6002
6065
|
);
|
|
@@ -6007,7 +6070,7 @@ var RichResolutionCardRow = NamedFC(
|
|
|
6007
6070
|
var TextCardRow = GetLabelledStringPropertyCardRow("Text");
|
|
6008
6071
|
|
|
6009
6072
|
// src/common/components/cards/urls-card-row.tsx
|
|
6010
|
-
var
|
|
6073
|
+
var React89 = __toESM(require("react"));
|
|
6011
6074
|
|
|
6012
6075
|
// src/common/components/cards/urls-card-row.scss
|
|
6013
6076
|
var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urlsRowContentNewFailure": "urls-row-content-new-Failure--oL5lS" };
|
|
@@ -6016,9 +6079,9 @@ var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urls
|
|
|
6016
6079
|
var UrlsCardRow = NamedFC("UrlsCardRow", ({ deps, ...props }) => {
|
|
6017
6080
|
const urlInfos = props.propertyData.urlInfos;
|
|
6018
6081
|
const renderUrlContent = () => {
|
|
6019
|
-
return /* @__PURE__ */
|
|
6082
|
+
return /* @__PURE__ */ React89.createElement("ul", { className: urls_card_row_default.urlsRowContent }, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
6020
6083
|
};
|
|
6021
|
-
return /* @__PURE__ */
|
|
6084
|
+
return /* @__PURE__ */ React89.createElement(
|
|
6022
6085
|
SimpleCardRow,
|
|
6023
6086
|
{
|
|
6024
6087
|
label: "URL",
|
|
@@ -6033,13 +6096,13 @@ var isNewViolation = (urlInfo) => {
|
|
|
6033
6096
|
function getUrlListItem(urlInfo, index, deps) {
|
|
6034
6097
|
const key = `urls-${index}`;
|
|
6035
6098
|
if (isNewViolation(urlInfo)) {
|
|
6036
|
-
return /* @__PURE__ */
|
|
6099
|
+
return /* @__PURE__ */ React89.createElement("li", { key }, /* @__PURE__ */ React89.createElement(deps.LinkComponent, { "aria-label": `NEW. ${urlInfo.url}`, href: urlInfo.url }, urlInfo.url), /* @__PURE__ */ React89.createElement("span", { key: "new", "aria-hidden": "true", className: urls_card_row_default.urlsRowContentNewFailure }, " NEW!"));
|
|
6037
6100
|
}
|
|
6038
|
-
return /* @__PURE__ */
|
|
6101
|
+
return /* @__PURE__ */ React89.createElement("li", { key }, /* @__PURE__ */ React89.createElement(deps.LinkComponent, { href: urlInfo.url }, urlInfo.url));
|
|
6039
6102
|
}
|
|
6040
6103
|
|
|
6041
6104
|
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
6042
|
-
var
|
|
6105
|
+
var React91 = __toESM(require("react"));
|
|
6043
6106
|
|
|
6044
6107
|
// src/common/types/check-type.ts
|
|
6045
6108
|
var CheckType = /* @__PURE__ */ ((CheckType2) => {
|
|
@@ -6050,7 +6113,7 @@ var CheckType = /* @__PURE__ */ ((CheckType2) => {
|
|
|
6050
6113
|
})(CheckType || {});
|
|
6051
6114
|
|
|
6052
6115
|
// src/common/components/fix-instruction-panel.tsx
|
|
6053
|
-
var
|
|
6116
|
+
var React90 = __toESM(require("react"));
|
|
6054
6117
|
var FixInstructionPanel = NamedFC(
|
|
6055
6118
|
"FixInstructionPanel",
|
|
6056
6119
|
(props) => {
|
|
@@ -6071,7 +6134,7 @@ var FixInstructionPanel = NamedFC(
|
|
|
6071
6134
|
const renderInstructions = (checkType) => {
|
|
6072
6135
|
const instructionList = props.checks.map((check, checkIndex) => {
|
|
6073
6136
|
const message = check.message || "";
|
|
6074
|
-
return /* @__PURE__ */
|
|
6137
|
+
return /* @__PURE__ */ React90.createElement("li", { key: `instruction-${CheckType[checkType]}-${checkIndex + 1}` }, fixInstructionProcessor.process(message, props.deps.recommendColor));
|
|
6075
6138
|
});
|
|
6076
6139
|
return instructionList;
|
|
6077
6140
|
};
|
|
@@ -6079,7 +6142,7 @@ var FixInstructionPanel = NamedFC(
|
|
|
6079
6142
|
return null;
|
|
6080
6143
|
}
|
|
6081
6144
|
const title2 = getPanelTitle(props.checkType, props.checks.length);
|
|
6082
|
-
return /* @__PURE__ */
|
|
6145
|
+
return /* @__PURE__ */ React90.createElement("div", null, props.renderTitleElement(title2), /* @__PURE__ */ React90.createElement("ul", null, renderInstructions(props.checkType)));
|
|
6083
6146
|
}
|
|
6084
6147
|
);
|
|
6085
6148
|
|
|
@@ -6092,7 +6155,7 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
6092
6155
|
({ deps, ...props }) => {
|
|
6093
6156
|
const { any: anyOf, all, none } = props.propertyData;
|
|
6094
6157
|
const renderFixInstructionsContent = () => {
|
|
6095
|
-
return /* @__PURE__ */
|
|
6158
|
+
return /* @__PURE__ */ React91.createElement("div", { className: how_to_fix_card_row_default.howToFixContent }, /* @__PURE__ */ React91.createElement(
|
|
6096
6159
|
FixInstructionPanel,
|
|
6097
6160
|
{
|
|
6098
6161
|
deps,
|
|
@@ -6100,7 +6163,7 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
6100
6163
|
checks: all.concat(none).map(turnStringToMessageObject),
|
|
6101
6164
|
renderTitleElement: renderFixInstructionsTitleElement
|
|
6102
6165
|
}
|
|
6103
|
-
), /* @__PURE__ */
|
|
6166
|
+
), /* @__PURE__ */ React91.createElement(
|
|
6104
6167
|
FixInstructionPanel,
|
|
6105
6168
|
{
|
|
6106
6169
|
deps,
|
|
@@ -6114,9 +6177,9 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
6114
6177
|
return { message: s };
|
|
6115
6178
|
};
|
|
6116
6179
|
const renderFixInstructionsTitleElement = (titleText) => {
|
|
6117
|
-
return /* @__PURE__ */
|
|
6180
|
+
return /* @__PURE__ */ React91.createElement("div", null, titleText);
|
|
6118
6181
|
};
|
|
6119
|
-
return /* @__PURE__ */
|
|
6182
|
+
return /* @__PURE__ */ React91.createElement(
|
|
6120
6183
|
SimpleCardRow,
|
|
6121
6184
|
{
|
|
6122
6185
|
label: "How to fix",
|
|
@@ -6128,7 +6191,7 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
6128
6191
|
);
|
|
6129
6192
|
|
|
6130
6193
|
// src/common/components/cards/pass-resolution-card-row.tsx
|
|
6131
|
-
var
|
|
6194
|
+
var React92 = __toESM(require("react"));
|
|
6132
6195
|
|
|
6133
6196
|
// src/common/components/cards/pass-resolution-card-row.scss
|
|
6134
6197
|
var pass_resolution_card_row_default = { "passResolutionContent": "pass-resolution-content---Ox0i" };
|
|
@@ -6139,7 +6202,7 @@ var PassResolutionCardRow = NamedFC(
|
|
|
6139
6202
|
({ deps, ...props }) => {
|
|
6140
6203
|
const { any: anyOf, all, none } = props.propertyData;
|
|
6141
6204
|
const renderFixInstructionsContent = () => {
|
|
6142
|
-
return /* @__PURE__ */
|
|
6205
|
+
return /* @__PURE__ */ React92.createElement("div", { className: pass_resolution_card_row_default.passResolutionContent }, /* @__PURE__ */ React92.createElement(
|
|
6143
6206
|
FixInstructionPanel,
|
|
6144
6207
|
{
|
|
6145
6208
|
deps,
|
|
@@ -6148,7 +6211,7 @@ var PassResolutionCardRow = NamedFC(
|
|
|
6148
6211
|
renderTitleElement: renderFixInstructionsTitleElement,
|
|
6149
6212
|
isPass: true
|
|
6150
6213
|
}
|
|
6151
|
-
), /* @__PURE__ */
|
|
6214
|
+
), /* @__PURE__ */ React92.createElement(
|
|
6152
6215
|
FixInstructionPanel,
|
|
6153
6216
|
{
|
|
6154
6217
|
deps,
|
|
@@ -6163,9 +6226,9 @@ var PassResolutionCardRow = NamedFC(
|
|
|
6163
6226
|
return { message: s };
|
|
6164
6227
|
};
|
|
6165
6228
|
const renderFixInstructionsTitleElement = (titleText) => {
|
|
6166
|
-
return /* @__PURE__ */
|
|
6229
|
+
return /* @__PURE__ */ React92.createElement("div", null, titleText);
|
|
6167
6230
|
};
|
|
6168
|
-
return /* @__PURE__ */
|
|
6231
|
+
return /* @__PURE__ */ React92.createElement(
|
|
6169
6232
|
SimpleCardRow,
|
|
6170
6233
|
{
|
|
6171
6234
|
label: "Summary",
|
|
@@ -6445,7 +6508,7 @@ var axeResultsReportGenerator = (parameters) => {
|
|
|
6445
6508
|
getPassResolution,
|
|
6446
6509
|
getCheckResolution,
|
|
6447
6510
|
extractRelatedSelectors
|
|
6448
|
-
).
|
|
6511
|
+
).automatedChecksConversionForReportPackage;
|
|
6449
6512
|
const deps = {
|
|
6450
6513
|
reportHtmlGenerator,
|
|
6451
6514
|
resultDecorator,
|