accessibility-insights-report 4.6.3 → 4.6.5
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.js +1100 -1239
- package/package.json +2 -2
package/drop/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -321,8 +325,8 @@ var AllRuleResultStatuses = [
|
|
|
321
325
|
];
|
|
322
326
|
|
|
323
327
|
// src/common/rule-based-view-model-provider.ts
|
|
324
|
-
var getCardViewData = (
|
|
325
|
-
if (results == null ||
|
|
328
|
+
var getCardViewData = (results, cardSelectionViewData, rules) => {
|
|
329
|
+
if (results == null || cardSelectionViewData == null) {
|
|
326
330
|
return null;
|
|
327
331
|
}
|
|
328
332
|
const statusResults = getEmptyStatusResults();
|
|
@@ -332,12 +336,8 @@ var getCardViewData = (rules, results, cardSelectionViewData) => {
|
|
|
332
336
|
const isInstanceDisplayed = result.status === "fail" || result.status === "unknown";
|
|
333
337
|
let ruleResult = getExistingRuleFromResults(result.ruleId, ruleResults);
|
|
334
338
|
if (ruleResult == null) {
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
continue;
|
|
338
|
-
}
|
|
339
|
-
const isExpanded = isInstanceDisplayed ? (0, import_lodash.includes)(cardSelectionViewData.expandedRuleIds, rule.id) : false;
|
|
340
|
-
ruleResult = createCardRuleResult(result.status, rule, isExpanded);
|
|
339
|
+
const isExpanded = isInstanceDisplayed ? (0, import_lodash.includes)(cardSelectionViewData.expandedRuleIds, result.ruleId) : false;
|
|
340
|
+
ruleResult = createCardRuleResult(result.status, result.rule, isExpanded);
|
|
341
341
|
ruleResults.push(ruleResult);
|
|
342
342
|
}
|
|
343
343
|
const isSelected = isInstanceDisplayed ? (0, import_lodash.includes)(cardSelectionViewData.selectedResultUids, result.uid) : false;
|
|
@@ -345,9 +345,11 @@ var getCardViewData = (rules, results, cardSelectionViewData) => {
|
|
|
345
345
|
ruleResult.nodes.push(createCardResult(result, isSelected, highlightStatus));
|
|
346
346
|
ruleIdsWithResultNodes.add(result.ruleId);
|
|
347
347
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
if (rules) {
|
|
349
|
+
for (const rule of rules) {
|
|
350
|
+
if (!ruleIdsWithResultNodes.has(rule.id)) {
|
|
351
|
+
statusResults.inapplicable.push(createRuleResultWithoutNodes("inapplicable", rule));
|
|
352
|
+
}
|
|
351
353
|
}
|
|
352
354
|
}
|
|
353
355
|
return {
|
|
@@ -385,14 +387,13 @@ var createRuleResultWithoutNodes = (status, rule) => ({
|
|
|
385
387
|
guidance: rule.guidance,
|
|
386
388
|
isExpanded: false
|
|
387
389
|
});
|
|
388
|
-
var createCardResult = (
|
|
390
|
+
var createCardResult = (result, isSelected, highlightStatus) => {
|
|
389
391
|
return {
|
|
390
|
-
...
|
|
392
|
+
...result,
|
|
391
393
|
isSelected,
|
|
392
394
|
highlightStatus
|
|
393
395
|
};
|
|
394
396
|
};
|
|
395
|
-
var getUnifiedRule = (id2, rules) => rules.find((rule) => rule.id === id2);
|
|
396
397
|
var getRuleResultIndex = (ruleId, ruleResults) => ruleResults.findIndex((result) => result.id === ruleId);
|
|
397
398
|
|
|
398
399
|
// src/common/uid-generator.ts
|
|
@@ -435,6 +436,9 @@ TargetHelper.getTargetElement = (target, dom, targetIndex) => {
|
|
|
435
436
|
return shadowHost.shadowRoot.querySelector(selectors[selectors.length - 1]);
|
|
436
437
|
}
|
|
437
438
|
};
|
|
439
|
+
// This returns undefined for undefined input for compatibility with non-strict-null-compatible
|
|
440
|
+
// usages that we haven't investigated yet. The "!selector" clause can/should be removed once
|
|
441
|
+
// #2869 is complete.
|
|
438
442
|
TargetHelper.getTargetFromSelector = (selector) => {
|
|
439
443
|
if (selector === "") {
|
|
440
444
|
return [];
|
|
@@ -453,6 +457,8 @@ TargetHelper.getTargetFromSelector = (selector) => {
|
|
|
453
457
|
});
|
|
454
458
|
return shadowDomSelectors;
|
|
455
459
|
};
|
|
460
|
+
// This returns undefined for undefined input for compatibility with non-strict-null-compatible
|
|
461
|
+
// usages that we haven't investigated yet. The ?s can/should be removed once #2869 is complete.
|
|
456
462
|
TargetHelper.getSelectorFromTarget = (target) => {
|
|
457
463
|
var _a;
|
|
458
464
|
return (_a = target == null ? void 0 : target.map(
|
|
@@ -498,11 +504,12 @@ function extractRelatedSelectors(nodeResult) {
|
|
|
498
504
|
|
|
499
505
|
// src/injected/adapters/resolution-creator.ts
|
|
500
506
|
var getFixResolution = (data) => {
|
|
507
|
+
var _a, _b, _c;
|
|
501
508
|
return {
|
|
502
509
|
"how-to-fix-web": {
|
|
503
|
-
any: data.nodeResult.any.map((checkResult) => checkResult.message),
|
|
504
|
-
none: data.nodeResult.none.map((checkResult) => checkResult.message),
|
|
505
|
-
all: data.nodeResult.all.map((checkResult) => checkResult.message)
|
|
510
|
+
any: (_a = data.nodeResult.any) == null ? void 0 : _a.map((checkResult) => checkResult.message),
|
|
511
|
+
none: (_b = data.nodeResult.none) == null ? void 0 : _b.map((checkResult) => checkResult.message),
|
|
512
|
+
all: (_c = data.nodeResult.all) == null ? void 0 : _c.map((checkResult) => checkResult.message)
|
|
506
513
|
}
|
|
507
514
|
};
|
|
508
515
|
};
|
|
@@ -713,11 +720,7 @@ var import_utilities = require("@fluentui/utilities");
|
|
|
713
720
|
var React2 = __toESM(require("react"));
|
|
714
721
|
var NewTabLink = NamedFC("NewTabLink", ({ className, ...props }) => {
|
|
715
722
|
const classNames3 = ["insights-link", className];
|
|
716
|
-
return /* @__PURE__ */ React2.createElement(import_react2.Link, {
|
|
717
|
-
className: (0, import_utilities.css)(...classNames3),
|
|
718
|
-
...props,
|
|
719
|
-
target: "_blank"
|
|
720
|
-
});
|
|
723
|
+
return /* @__PURE__ */ React2.createElement(import_react2.Link, { className: (0, import_utilities.css)(...classNames3), ...props, target: "_blank" });
|
|
721
724
|
});
|
|
722
725
|
|
|
723
726
|
// src/reports/components/new-tab-link-confirmation-dialog.tsx
|
|
@@ -726,14 +729,14 @@ var NewTabLinkWithConfirmationDialog = NamedFC(
|
|
|
726
729
|
"NewTabLinkWithConfirmationDialog",
|
|
727
730
|
(props) => {
|
|
728
731
|
const id2 = (0, import_react3.getId)("new-tab-link-with-confirmation-dialog__");
|
|
729
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(NewTabLink, {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(NewTabLink, { ...props, id: id2 }), /* @__PURE__ */ React3.createElement(
|
|
733
|
+
"script",
|
|
734
|
+
{
|
|
735
|
+
dangerouslySetInnerHTML: {
|
|
736
|
+
__html: generateScriptToAddConfirmOnClickHandler(id2)
|
|
737
|
+
}
|
|
735
738
|
}
|
|
736
|
-
|
|
739
|
+
));
|
|
737
740
|
}
|
|
738
741
|
);
|
|
739
742
|
var addConfirmOnClickHandler = function(linkId, doc, confirmCallback) {
|
|
@@ -779,23 +782,10 @@ var ReportBody = class extends React4.Component {
|
|
|
779
782
|
const getResultSections = () => {
|
|
780
783
|
return resultSectionsOrder.map((sectionKey, i) => {
|
|
781
784
|
const ResultsSection = sectionFactory[ResultSectionTypes[sectionKey]];
|
|
782
|
-
return /* @__PURE__ */ React4.createElement(ResultsSection, {
|
|
783
|
-
key: i,
|
|
784
|
-
...sectionProps
|
|
785
|
-
});
|
|
785
|
+
return /* @__PURE__ */ React4.createElement(ResultsSection, { key: i, ...sectionProps });
|
|
786
786
|
});
|
|
787
787
|
};
|
|
788
|
-
return /* @__PURE__ */ React4.createElement(BodySection2, null, /* @__PURE__ */ React4.createElement(HeaderSection2, {
|
|
789
|
-
...sectionProps
|
|
790
|
-
}), /* @__PURE__ */ React4.createElement(ContentContainer2, null, /* @__PURE__ */ React4.createElement(TitleSection, null), /* @__PURE__ */ React4.createElement(DetailsSection2, {
|
|
791
|
-
...sectionProps
|
|
792
|
-
}), /* @__PURE__ */ React4.createElement(SummarySection, {
|
|
793
|
-
...sectionProps
|
|
794
|
-
}), /* @__PURE__ */ React4.createElement(ResultsContainer2, {
|
|
795
|
-
...sectionProps
|
|
796
|
-
}, getResultSections())), /* @__PURE__ */ React4.createElement(FooterSection, null, /* @__PURE__ */ React4.createElement(FooterText, {
|
|
797
|
-
...sectionProps
|
|
798
|
-
})));
|
|
788
|
+
return /* @__PURE__ */ React4.createElement(BodySection2, null, /* @__PURE__ */ React4.createElement(HeaderSection2, { ...sectionProps }), /* @__PURE__ */ React4.createElement(ContentContainer2, null, /* @__PURE__ */ React4.createElement(TitleSection, null), /* @__PURE__ */ React4.createElement(DetailsSection2, { ...sectionProps }), /* @__PURE__ */ React4.createElement(SummarySection, { ...sectionProps }), /* @__PURE__ */ React4.createElement(ResultsContainer2, { ...sectionProps }, getResultSections())), /* @__PURE__ */ React4.createElement(FooterSection, null, /* @__PURE__ */ React4.createElement(FooterText, { ...sectionProps })));
|
|
799
789
|
}
|
|
800
790
|
};
|
|
801
791
|
|
|
@@ -808,26 +798,26 @@ var ReportCollapsibleContainer = NamedFC(
|
|
|
808
798
|
const { id: id2, header, headingLevel, content, containerClassName, buttonAriaLabel } = props;
|
|
809
799
|
const contentId = `content-container-${id2}` + (props.testKey ? `-${props.testKey}` : "");
|
|
810
800
|
const outerDivClassName = (0, import_utilities2.css)("collapsible-container", containerClassName, "collapsed");
|
|
811
|
-
return /* @__PURE__ */ React5.createElement("div", {
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
801
|
+
return /* @__PURE__ */ React5.createElement("div", { className: outerDivClassName }, /* @__PURE__ */ React5.createElement(
|
|
802
|
+
HeadingElementForLevel,
|
|
803
|
+
{
|
|
804
|
+
headingLevel,
|
|
805
|
+
className: "title-container"
|
|
806
|
+
},
|
|
807
|
+
/* @__PURE__ */ React5.createElement(
|
|
808
|
+
"button",
|
|
809
|
+
{
|
|
810
|
+
className: "collapsible-control",
|
|
811
|
+
"aria-expanded": "false",
|
|
812
|
+
"aria-controls": contentId,
|
|
813
|
+
"aria-label": buttonAriaLabel
|
|
814
|
+
},
|
|
815
|
+
header
|
|
816
|
+
)
|
|
817
|
+
), /* @__PURE__ */ React5.createElement("div", { id: contentId, className: "collapsible-content", "aria-hidden": "true" }, content));
|
|
826
818
|
}
|
|
827
819
|
);
|
|
828
|
-
var ReportCollapsibleContainerControl = (collapsibleControlProps) => /* @__PURE__ */ React5.createElement(ReportCollapsibleContainer, {
|
|
829
|
-
...collapsibleControlProps
|
|
830
|
-
});
|
|
820
|
+
var ReportCollapsibleContainerControl = (collapsibleControlProps) => /* @__PURE__ */ React5.createElement(ReportCollapsibleContainer, { ...collapsibleControlProps });
|
|
831
821
|
|
|
832
822
|
// src/reports/combined-report-html-generator.tsx
|
|
833
823
|
var CombinedReportHtmlGenerator = class {
|
|
@@ -868,9 +858,7 @@ var CombinedReportHtmlGenerator = class {
|
|
|
868
858
|
sectionFactory: this.sectionFactory,
|
|
869
859
|
...detailsProps
|
|
870
860
|
};
|
|
871
|
-
const bodyElement = /* @__PURE__ */ React6.createElement(ReportBody, {
|
|
872
|
-
...props
|
|
873
|
-
});
|
|
861
|
+
const bodyElement = /* @__PURE__ */ React6.createElement(ReportBody, { ...props });
|
|
874
862
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
875
863
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
876
864
|
}
|
|
@@ -907,138 +895,150 @@ var React34 = __toESM(require("react"));
|
|
|
907
895
|
|
|
908
896
|
// src/common/icons/check-icon.tsx
|
|
909
897
|
var React7 = __toESM(require("react"));
|
|
910
|
-
var CheckIcon = NamedFC("CheckIcon", () => /* @__PURE__ */ React7.createElement("span", {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
},
|
|
921
|
-
cx: "8",
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
898
|
+
var CheckIcon = NamedFC("CheckIcon", () => /* @__PURE__ */ React7.createElement("span", { className: "check-container" }, /* @__PURE__ */ React7.createElement(
|
|
899
|
+
"svg",
|
|
900
|
+
{
|
|
901
|
+
width: "16",
|
|
902
|
+
height: "16",
|
|
903
|
+
viewBox: "0 0 16 16",
|
|
904
|
+
fill: "none",
|
|
905
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
906
|
+
role: "img",
|
|
907
|
+
"aria-hidden": "true"
|
|
908
|
+
},
|
|
909
|
+
/* @__PURE__ */ React7.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#228722" }),
|
|
910
|
+
/* @__PURE__ */ React7.createElement(
|
|
911
|
+
"path",
|
|
912
|
+
{
|
|
913
|
+
fillRule: "evenodd",
|
|
914
|
+
clipRule: "evenodd",
|
|
915
|
+
d: "M6.05904 11.1417L6.0616 11.1442C6.10737 11.19 6.15668 11.23 6.20867 11.2643C6.57256 11.5046 7.06707 11.4646 7.38742 11.1442C7.38861 11.143 7.38982 11.1418 7.391 11.1406L11.9312 6.60041C12.2974 6.23427 12.2974 5.64071 11.9312 5.27457C11.5651 4.90848 10.9715 4.90848 10.6054 5.27457L6.72452 9.15545L5.60041 8.03134C5.2343 7.66524 4.64071 7.66524 4.27459 8.03134C3.90847 8.39747 3.90847 8.99104 4.27459 9.35718L6.05904 11.1417Z",
|
|
916
|
+
fill: "var(--neutral-0)"
|
|
917
|
+
}
|
|
918
|
+
)
|
|
919
|
+
)));
|
|
920
|
+
var CheckIconInverted = NamedFC("CheckIconInverted", () => /* @__PURE__ */ React7.createElement("span", { className: "check-container" }, /* @__PURE__ */ React7.createElement(
|
|
921
|
+
"svg",
|
|
922
|
+
{
|
|
923
|
+
width: "16",
|
|
924
|
+
height: "16",
|
|
925
|
+
viewBox: "0 0 16 16",
|
|
926
|
+
fill: "none",
|
|
927
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
928
|
+
role: "img",
|
|
929
|
+
"aria-hidden": "true"
|
|
930
|
+
},
|
|
931
|
+
/* @__PURE__ */ React7.createElement(
|
|
932
|
+
"path",
|
|
933
|
+
{
|
|
934
|
+
fillRule: "evenodd",
|
|
935
|
+
clipRule: "evenodd",
|
|
936
|
+
d: "M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM6.0616 11.1442L6.05904 11.1417L4.27459 9.35718C3.90847 8.99104 3.90847 8.39747 4.27459 8.03134C4.64071 7.66524 5.2343 7.66524 5.60041 8.03134L6.72452 9.15545L10.6054 5.27457C10.9715 4.90848 11.5651 4.90848 11.9312 5.27457C12.2974 5.64071 12.2974 6.23427 11.9312 6.60041L7.391 11.1406L7.38742 11.1442C7.06707 11.4646 6.57256 11.5046 6.20867 11.2643C6.15668 11.23 6.10737 11.19 6.0616 11.1442Z",
|
|
937
|
+
fill: "white"
|
|
938
|
+
}
|
|
939
|
+
)
|
|
940
|
+
)));
|
|
947
941
|
|
|
948
942
|
// src/common/icons/circle-icon.tsx
|
|
949
943
|
var React8 = __toESM(require("react"));
|
|
950
|
-
var CircleIcon = NamedFC("CircleIcon", () => /* @__PURE__ */ React8.createElement("span", {
|
|
951
|
-
className: "check-container"
|
|
952
|
-
}));
|
|
944
|
+
var CircleIcon = NamedFC("CircleIcon", () => /* @__PURE__ */ React8.createElement("span", { className: "check-container" }));
|
|
953
945
|
|
|
954
946
|
// src/common/icons/cross-icon.tsx
|
|
955
947
|
var React9 = __toESM(require("react"));
|
|
956
|
-
var CrossIcon = NamedFC("CrossIcon", () => /* @__PURE__ */ React9.createElement("span", {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
},
|
|
967
|
-
cx: "8",
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
948
|
+
var CrossIcon = NamedFC("CrossIcon", () => /* @__PURE__ */ React9.createElement("span", { className: "check-container" }, /* @__PURE__ */ React9.createElement(
|
|
949
|
+
"svg",
|
|
950
|
+
{
|
|
951
|
+
width: "16",
|
|
952
|
+
height: "16",
|
|
953
|
+
viewBox: "0 0 16 16",
|
|
954
|
+
fill: "none",
|
|
955
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
956
|
+
role: "img",
|
|
957
|
+
"aria-hidden": "true"
|
|
958
|
+
},
|
|
959
|
+
/* @__PURE__ */ React9.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#E81123" }),
|
|
960
|
+
/* @__PURE__ */ React9.createElement(
|
|
961
|
+
"path",
|
|
962
|
+
{
|
|
963
|
+
d: "M10.9837 6.27639C11.3352 5.92491 11.3352 5.35507 10.9837 5.00359C10.6322 4.65212 10.0624 4.65212 9.7109 5.00359L7.99722 6.71728L6.28375 5.00381C5.93227 4.65234 5.36242 4.65234 5.01095 5.00381C4.65948 5.35528 4.65948 5.92513 5.01095 6.2766L6.72443 7.99007L4.9837 9.7308C4.63222 10.0823 4.63222 10.6521 4.9837 11.0036C5.33517 11.3551 5.90502 11.3551 6.25649 11.0036L7.99722 9.26287L9.73816 11.0038C10.0896 11.3553 10.6595 11.3553 11.011 11.0038C11.3624 10.6523 11.3624 10.0825 11.011 9.73101L9.27001 7.99007L10.9837 6.27639Z",
|
|
964
|
+
fill: "var(--neutral-0)"
|
|
965
|
+
}
|
|
966
|
+
)
|
|
967
|
+
)));
|
|
968
|
+
var CrossIconInverted = NamedFC("CrossIconInverted", () => /* @__PURE__ */ React9.createElement("span", { className: "check-container" }, /* @__PURE__ */ React9.createElement(
|
|
969
|
+
"svg",
|
|
970
|
+
{
|
|
971
|
+
width: "16",
|
|
972
|
+
height: "16",
|
|
973
|
+
viewBox: "0 0 16 16",
|
|
974
|
+
fill: "none",
|
|
975
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
976
|
+
role: "img",
|
|
977
|
+
"aria-hidden": "true"
|
|
978
|
+
},
|
|
979
|
+
/* @__PURE__ */ React9.createElement(
|
|
980
|
+
"path",
|
|
981
|
+
{
|
|
982
|
+
fillRule: "evenodd",
|
|
983
|
+
clipRule: "evenodd",
|
|
984
|
+
d: "M8 16C12.4183 16 16 12.4183 16 8C16 3.58173 12.4183 0 8 0C3.58172 0 0 3.58173 0 8C0 12.4183 3.58172 16 8 16ZM10.9947 4.99466C10.7018 4.70178 10.2269 4.70178 9.93401 4.99466L8 6.92868L6.06599 4.99466C5.77309 4.70178 5.29823 4.70178 5.00533 4.99466C4.71243 5.28757 4.71243 5.76242 5.00533 6.05533L6.93933 7.98932L4.99467 9.93399C4.70177 10.2269 4.70177 10.7018 4.99467 10.9947C5.28756 11.2876 5.76243 11.2876 6.05532 10.9947L8 9.04999L9.94467 10.9947C10.2376 11.2876 10.7124 11.2876 11.0053 10.9947C11.2982 10.7018 11.2982 10.2269 11.0053 9.93399L9.06066 7.98932L10.9947 6.05533C11.2876 5.76242 11.2876 5.28757 10.9947 4.99466Z",
|
|
985
|
+
fill: "var(--neutral-0)"
|
|
986
|
+
}
|
|
987
|
+
)
|
|
988
|
+
)));
|
|
991
989
|
|
|
992
990
|
// src/common/icons/inapplicable-icon.tsx
|
|
993
991
|
var React10 = __toESM(require("react"));
|
|
994
|
-
var InapplicableIcon = NamedFC("InapplicableIcon", () => /* @__PURE__ */ React10.createElement("span", {
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
},
|
|
1005
|
-
cx: "8",
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
cy: "8",
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
992
|
+
var InapplicableIcon = NamedFC("InapplicableIcon", () => /* @__PURE__ */ React10.createElement("span", { className: "check-container" }, /* @__PURE__ */ React10.createElement(
|
|
993
|
+
"svg",
|
|
994
|
+
{
|
|
995
|
+
width: "16",
|
|
996
|
+
height: "16",
|
|
997
|
+
viewBox: "0 0 16 16",
|
|
998
|
+
fill: "none",
|
|
999
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1000
|
+
role: "img",
|
|
1001
|
+
"aria-hidden": "true"
|
|
1002
|
+
},
|
|
1003
|
+
/* @__PURE__ */ React10.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#737373" }),
|
|
1004
|
+
/* @__PURE__ */ React10.createElement(
|
|
1005
|
+
"line",
|
|
1006
|
+
{
|
|
1007
|
+
x1: "5.66064",
|
|
1008
|
+
y1: "5.625",
|
|
1009
|
+
x2: "10.2568",
|
|
1010
|
+
y2: "10.2212",
|
|
1011
|
+
stroke: "white",
|
|
1012
|
+
strokeWidth: "1.5",
|
|
1013
|
+
strokeLinecap: "round"
|
|
1014
|
+
}
|
|
1015
|
+
)
|
|
1016
|
+
)));
|
|
1017
|
+
var InapplicableIconInverted = NamedFC("InapplicableIconInverted", () => /* @__PURE__ */ React10.createElement("span", { className: "check-container" }, /* @__PURE__ */ React10.createElement(
|
|
1018
|
+
"svg",
|
|
1019
|
+
{
|
|
1020
|
+
width: "16",
|
|
1021
|
+
height: "16",
|
|
1022
|
+
viewBox: "0 0 16 16",
|
|
1023
|
+
fill: "none",
|
|
1024
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1025
|
+
role: "img",
|
|
1026
|
+
"aria-hidden": "true"
|
|
1027
|
+
},
|
|
1028
|
+
/* @__PURE__ */ React10.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "white" }),
|
|
1029
|
+
/* @__PURE__ */ React10.createElement(
|
|
1030
|
+
"line",
|
|
1031
|
+
{
|
|
1032
|
+
x1: "5.66064",
|
|
1033
|
+
y1: "5.625",
|
|
1034
|
+
x2: "10.2568",
|
|
1035
|
+
y2: "10.2212",
|
|
1036
|
+
stroke: "#737373",
|
|
1037
|
+
strokeWidth: "1.5",
|
|
1038
|
+
strokeLinecap: "round"
|
|
1039
|
+
}
|
|
1040
|
+
)
|
|
1041
|
+
)));
|
|
1042
1042
|
|
|
1043
1043
|
// src/reports/components/outcome-type.tsx
|
|
1044
1044
|
var React11 = __toESM(require("react"));
|
|
@@ -1088,20 +1088,16 @@ var OutcomeChip = NamedFC("OutcomeChip", (props) => {
|
|
|
1088
1088
|
const { outcomeType, count } = props;
|
|
1089
1089
|
const { pastTense } = outcomeTypeSemantics[outcomeType];
|
|
1090
1090
|
const text = `${count} ${pastTense}`;
|
|
1091
|
-
return /* @__PURE__ */ React12.createElement("span", {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
"aria-hidden": "true"
|
|
1102
|
-
}, " ", count), /* @__PURE__ */ React12.createElement("span", {
|
|
1103
|
-
className: "screen-reader-only"
|
|
1104
|
-
}, text));
|
|
1091
|
+
return /* @__PURE__ */ React12.createElement("span", { className: "outcome-chip outcome-chip-" + outcomeType, title: text }, /* @__PURE__ */ React12.createElement("span", { className: "icon" }, /* @__PURE__ */ React12.createElement(OutcomeIcon, { outcomeType })), /* @__PURE__ */ React12.createElement(
|
|
1092
|
+
"span",
|
|
1093
|
+
{
|
|
1094
|
+
"data-automation-id": failureCountAutomationId,
|
|
1095
|
+
className: "count",
|
|
1096
|
+
"aria-hidden": "true"
|
|
1097
|
+
},
|
|
1098
|
+
" ",
|
|
1099
|
+
count
|
|
1100
|
+
), /* @__PURE__ */ React12.createElement("span", { className: "screen-reader-only" }, text));
|
|
1105
1101
|
});
|
|
1106
1102
|
|
|
1107
1103
|
// src/reports/components/report-sections/minimal-rule-header.tsx
|
|
@@ -1114,26 +1110,11 @@ var MinimalRuleHeader = NamedFC("MinimalRuleHeader", (props) => {
|
|
|
1114
1110
|
return null;
|
|
1115
1111
|
}
|
|
1116
1112
|
const count = outcomeCounter(rule.nodes);
|
|
1117
|
-
return /* @__PURE__ */ React13.createElement("span", {
|
|
1118
|
-
"aria-hidden": "true"
|
|
1119
|
-
}, /* @__PURE__ */ React13.createElement(OutcomeChip, {
|
|
1120
|
-
count,
|
|
1121
|
-
outcomeType
|
|
1122
|
-
}));
|
|
1113
|
+
return /* @__PURE__ */ React13.createElement("span", { "aria-hidden": "true" }, /* @__PURE__ */ React13.createElement(OutcomeChip, { count, outcomeType }));
|
|
1123
1114
|
};
|
|
1124
|
-
const renderRuleName = () => /* @__PURE__ */ React13.createElement("span", {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}, /* @__PURE__ */ React13.createElement("strong", null, rule.id));
|
|
1128
|
-
const renderDescription = () => /* @__PURE__ */ React13.createElement("span", {
|
|
1129
|
-
className: "rule-details-description"
|
|
1130
|
-
}, rule.description);
|
|
1131
|
-
return /* @__PURE__ */ React13.createElement("span", {
|
|
1132
|
-
"data-automation-id": ruleDetailAutomationId,
|
|
1133
|
-
className: "rule-detail"
|
|
1134
|
-
}, /* @__PURE__ */ React13.createElement("span", {
|
|
1135
|
-
className: minimal_rule_header_default.outcomeChipContainer
|
|
1136
|
-
}, renderCountBadge()), /* @__PURE__ */ React13.createElement("span", null, renderRuleName(), ": ", renderDescription()));
|
|
1115
|
+
const renderRuleName = () => /* @__PURE__ */ React13.createElement("span", { "data-automation-id": cardsRuleIdAutomationId, className: "rule-details-id" }, /* @__PURE__ */ React13.createElement("strong", null, rule.id));
|
|
1116
|
+
const renderDescription = () => /* @__PURE__ */ React13.createElement("span", { className: "rule-details-description" }, rule.description);
|
|
1117
|
+
return /* @__PURE__ */ React13.createElement("span", { "data-automation-id": ruleDetailAutomationId, className: "rule-detail" }, /* @__PURE__ */ React13.createElement("span", { className: minimal_rule_header_default.outcomeChipContainer }, renderCountBadge()), /* @__PURE__ */ React13.createElement("span", null, renderRuleName(), ": ", renderDescription()));
|
|
1137
1118
|
});
|
|
1138
1119
|
|
|
1139
1120
|
// src/common/components/cards/rule-content.tsx
|
|
@@ -1158,14 +1139,7 @@ var SimpleCardRow = NamedFC(
|
|
|
1158
1139
|
"SimpleCardRow",
|
|
1159
1140
|
({ label: givenLabel, content, rowKey, contentClassName }) => {
|
|
1160
1141
|
const contentStyling = (0, import_utilities3.css)(instance_details_default.rowContent, contentClassName);
|
|
1161
|
-
return /* @__PURE__ */ React14.createElement("tr", {
|
|
1162
|
-
className: instance_details_default.row,
|
|
1163
|
-
key: rowKey
|
|
1164
|
-
}, /* @__PURE__ */ React14.createElement("th", {
|
|
1165
|
-
className: instance_details_default.rowLabel
|
|
1166
|
-
}, givenLabel), /* @__PURE__ */ React14.createElement("td", {
|
|
1167
|
-
className: contentStyling
|
|
1168
|
-
}, content));
|
|
1142
|
+
return /* @__PURE__ */ React14.createElement("tr", { className: instance_details_default.row, key: rowKey }, /* @__PURE__ */ React14.createElement("th", { className: instance_details_default.rowLabel }, givenLabel), /* @__PURE__ */ React14.createElement("td", { className: contentStyling }, content));
|
|
1169
1143
|
}
|
|
1170
1144
|
);
|
|
1171
1145
|
|
|
@@ -1175,12 +1149,15 @@ var GetLabelledStringPropertyCardRow = (label, contentClassName) => {
|
|
|
1175
1149
|
if ((0, import_lodash4.isEmpty)(props.propertyData)) {
|
|
1176
1150
|
return null;
|
|
1177
1151
|
}
|
|
1178
|
-
return /* @__PURE__ */ React15.createElement(
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1152
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1153
|
+
SimpleCardRow,
|
|
1154
|
+
{
|
|
1155
|
+
label,
|
|
1156
|
+
content: props.propertyData,
|
|
1157
|
+
rowKey: `${label}-${props.index}`,
|
|
1158
|
+
contentClassName
|
|
1159
|
+
}
|
|
1160
|
+
);
|
|
1184
1161
|
});
|
|
1185
1162
|
};
|
|
1186
1163
|
|
|
@@ -1204,15 +1181,14 @@ var RelatedPathsCardRow = NamedFC(
|
|
|
1204
1181
|
if ((0, import_lodash5.isEmpty)(propertyData)) {
|
|
1205
1182
|
return null;
|
|
1206
1183
|
}
|
|
1207
|
-
return /* @__PURE__ */ React16.createElement(
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
});
|
|
1184
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1185
|
+
SimpleCardRow,
|
|
1186
|
+
{
|
|
1187
|
+
label: `Related paths`,
|
|
1188
|
+
content: /* @__PURE__ */ React16.createElement("ul", { className: related_paths_card_row_default.pathList }, propertyData.map((selector) => /* @__PURE__ */ React16.createElement("li", { key: selector }, selector))),
|
|
1189
|
+
rowKey: `related-paths-row-${index}`
|
|
1190
|
+
}
|
|
1191
|
+
);
|
|
1216
1192
|
}
|
|
1217
1193
|
);
|
|
1218
1194
|
|
|
@@ -1225,9 +1201,7 @@ function Term(props) {
|
|
|
1225
1201
|
return /* @__PURE__ */ React17.createElement("strong", null, props.children);
|
|
1226
1202
|
}
|
|
1227
1203
|
function Code(props) {
|
|
1228
|
-
return /* @__PURE__ */ React17.createElement("span", {
|
|
1229
|
-
className: "insights-code"
|
|
1230
|
-
}, props.children);
|
|
1204
|
+
return /* @__PURE__ */ React17.createElement("span", { className: "insights-code" }, props.children);
|
|
1231
1205
|
}
|
|
1232
1206
|
|
|
1233
1207
|
// src/common/components/cards/rich-resolution-content.tsx
|
|
@@ -1242,15 +1216,7 @@ var RichResolutionContent = NamedFC(
|
|
|
1242
1216
|
({ deps: { LinkComponent }, contentId, contentVariables }) => {
|
|
1243
1217
|
switch (contentId) {
|
|
1244
1218
|
case "android/ColorContrast": {
|
|
1245
|
-
return /* @__PURE__ */ React18.createElement("div", {
|
|
1246
|
-
className: rich_resolution_content_default.combinationLists
|
|
1247
|
-
}, /* @__PURE__ */ React18.createElement("ul", {
|
|
1248
|
-
className: rich_resolution_content_default.multiLineTextYesBullet
|
|
1249
|
-
}, /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be invisible, it passes."), /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be visible, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1250
|
-
href: "https://go.microsoft.com/fwlink/?linkid=2075365"
|
|
1251
|
-
}, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1252
|
-
href: "https://developer.paciellogroup.com/resources/contrastanalyser/"
|
|
1253
|
-
}, "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.")));
|
|
1219
|
+
return /* @__PURE__ */ React18.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be invisible, it passes."), /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be visible, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.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.")));
|
|
1254
1220
|
}
|
|
1255
1221
|
case "android/TouchSizeWcag": {
|
|
1256
1222
|
const { logicalWidth, logicalHeight } = contentVariables;
|
|
@@ -1266,21 +1232,13 @@ var RichResolutionContent = NamedFC(
|
|
|
1266
1232
|
return /* @__PURE__ */ React18.createElement("span", null, "The element's ", /* @__PURE__ */ React18.createElement(Code, null, "contentDescription"), " overrides the text value required by assistive technologies. Remove the element's", " ", /* @__PURE__ */ React18.createElement(Code, null, "contentDescription"), " attribute.");
|
|
1267
1233
|
}
|
|
1268
1234
|
case "android/atfa/ClassNameCheck": {
|
|
1269
|
-
return /* @__PURE__ */ React18.createElement("span", null, /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1270
|
-
href: "https://developer.android.com/training/accessibility/testing.html#manual"
|
|
1271
|
-
}, "Manually test"), " ", "the control to verify that users receive sufficient information to understand the object's function.");
|
|
1235
|
+
return /* @__PURE__ */ React18.createElement("span", null, /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://developer.android.com/training/accessibility/testing.html#manual" }, "Manually test"), " ", "the control to verify that users receive sufficient information to understand the object's function.");
|
|
1272
1236
|
}
|
|
1273
1237
|
case "android/atfa/ClickableSpanCheck": {
|
|
1274
|
-
return /* @__PURE__ */ React18.createElement("span", null, /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1275
|
-
href: "https://developer.android.com/training/accessibility/testing.html#manual"
|
|
1276
|
-
}, "Manually test"), " ", "the item containing the link and verify that the hyperlinked text is announced and appears in the \u201CLinks\u201D section of Talkback\u2019s Context Menu.");
|
|
1238
|
+
return /* @__PURE__ */ React18.createElement("span", null, /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://developer.android.com/training/accessibility/testing.html#manual" }, "Manually test"), " ", "the item containing the link and verify that the hyperlinked text is announced and appears in the \u201CLinks\u201D section of Talkback\u2019s Context Menu.");
|
|
1277
1239
|
}
|
|
1278
1240
|
case "android/atfa/DuplicateClickableBoundsCheck": {
|
|
1279
|
-
return /* @__PURE__ */ React18.createElement("span", null, "Turn on", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1280
|
-
href: "https://support.google.com/accessibility/android/answer/6301490"
|
|
1281
|
-
}, "Switch Access for Android"), " ", "or use the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1282
|
-
href: "https://accessibilityinsights.io/docs/en/android/getstarted/fastpass/#complete-the-manual-test-for-tab-stops"
|
|
1283
|
-
}, "TabStops feature"), " ", "to navigate through the elements in the application. If an element appears to be focused more than once, there may be multiple interactive elements occupying the same screen location.");
|
|
1241
|
+
return /* @__PURE__ */ React18.createElement("span", null, "Turn on", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://support.google.com/accessibility/android/answer/6301490" }, "Switch Access for Android"), " ", "or use the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://accessibilityinsights.io/docs/en/android/getstarted/fastpass/#complete-the-manual-test-for-tab-stops" }, "TabStops feature"), " ", "to navigate through the elements in the application. If an element appears to be focused more than once, there may be multiple interactive elements occupying the same screen location.");
|
|
1284
1242
|
}
|
|
1285
1243
|
case "android/atfa/DuplicateSpeakableTextCheck": {
|
|
1286
1244
|
return /* @__PURE__ */ React18.createElement("span", null, "If clickable ", /* @__PURE__ */ React18.createElement(Code, null, "View"), " objects have the ", /* @__PURE__ */ React18.createElement("i", null, "same"), " ", "speakable text and perform the ", /* @__PURE__ */ React18.createElement("i", null, "same"), " function, they pass.", /* @__PURE__ */ React18.createElement("br", null), "If clickable ", /* @__PURE__ */ React18.createElement(Code, null, "View"), " objects have the ", /* @__PURE__ */ React18.createElement("i", null, "same"), " ", "speakable text but perform ", /* @__PURE__ */ React18.createElement("i", null, "different"), " functions, they fail.");
|
|
@@ -1295,40 +1253,16 @@ var RichResolutionContent = NamedFC(
|
|
|
1295
1253
|
return /* @__PURE__ */ React18.createElement("span", null, "Turn on Talkback. Swipe right to move accessibility focus forward through the elements on the screen, then swipe left to navigate backwards. Verify that focus moves through the elements in a logical, consistent order when navigating forwards or backwards.");
|
|
1296
1254
|
}
|
|
1297
1255
|
case "android/atfa/TextContrastCheck": {
|
|
1298
|
-
return /* @__PURE__ */ React18.createElement("div", {
|
|
1299
|
-
className: rich_resolution_content_default.combinationLists
|
|
1300
|
-
}, /* @__PURE__ */ React18.createElement("ul", {
|
|
1301
|
-
className: rich_resolution_content_default.multiLineTextYesBullet
|
|
1302
|
-
}, /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be invisible, it passes."), /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be visible, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1303
|
-
href: "https://go.microsoft.com/fwlink/?linkid=2075365"
|
|
1304
|
-
}, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1305
|
-
href: "https://developer.paciellogroup.com/resources/contrastanalyser/"
|
|
1306
|
-
}, "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.")));
|
|
1256
|
+
return /* @__PURE__ */ React18.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be invisible, it passes."), /* @__PURE__ */ React18.createElement("li", null, "If the text is intended to be visible, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.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.")));
|
|
1307
1257
|
}
|
|
1308
1258
|
case "android/atfa/ImageContrastCheck": {
|
|
1309
|
-
return /* @__PURE__ */ React18.createElement("span", null, "Use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1310
|
-
href: "https://go.microsoft.com/fwlink/?linkid=2075365"
|
|
1311
|
-
}, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1312
|
-
href: "https://developer.paciellogroup.com/resources/contrastanalyser/"
|
|
1313
|
-
}, "Colour Contrast Analyser"), " ", "if you're testing on a Mac) to manually verify that the", " ", /* @__PURE__ */ React18.createElement(Code, null, "ImageView"), " has sufficient contrast compared to the background. If the background is an image or gradient, test an area where the contrast appears to be the lowest.");
|
|
1259
|
+
return /* @__PURE__ */ React18.createElement("span", null, "Use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://developer.paciellogroup.com/resources/contrastanalyser/" }, "Colour Contrast Analyser"), " ", "if you're testing on a Mac) to manually verify that the", " ", /* @__PURE__ */ React18.createElement(Code, null, "ImageView"), " has sufficient contrast compared to the background. If the background is an image or gradient, test an area where the contrast appears to be the lowest.");
|
|
1314
1260
|
}
|
|
1315
1261
|
case "web/aria-input-field-name": {
|
|
1316
|
-
return /* @__PURE__ */ React18.createElement("div", null, "Inspect the element using the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1317
|
-
href: "https://developers.google.com/web/updates/2018/01/devtools"
|
|
1318
|
-
}, "Accessibility pane in the browser Developer Tools"), " ", "to verify that the field's accessible name is complete without its associated", " ", /* @__PURE__ */ React18.createElement("b", null, "<", "label", ">"), ".");
|
|
1262
|
+
return /* @__PURE__ */ React18.createElement("div", null, "Inspect the element using the", " ", /* @__PURE__ */ React18.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__ */ React18.createElement("b", null, "<", "label", ">"), ".");
|
|
1319
1263
|
}
|
|
1320
1264
|
case "web/color-contrast": {
|
|
1321
|
-
return /* @__PURE__ */ React18.createElement("div", {
|
|
1322
|
-
className: rich_resolution_content_default.combinationLists
|
|
1323
|
-
}, /* @__PURE__ */ React18.createElement("ul", {
|
|
1324
|
-
className: rich_resolution_content_default.multiLineTextYesBullet
|
|
1325
|
-
}, /* @__PURE__ */ React18.createElement("li", null, "If the instance is an icon or other non-text content, ignore it. This rule applies only to text."), /* @__PURE__ */ React18.createElement("li", null, "If the instance is text, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1326
|
-
href: "https://go.microsoft.com/fwlink/?linkid=2075365"
|
|
1327
|
-
}, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, {
|
|
1328
|
-
href: "https://developer.paciellogroup.com/resources/contrastanalyser/"
|
|
1329
|
-
}, "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__ */ React18.createElement("ul", {
|
|
1330
|
-
className: rich_resolution_content_default.multiLineTextNoBullet
|
|
1331
|
-
}, /* @__PURE__ */ React18.createElement("li", null, "For detailed test instructions, see", " ", /* @__PURE__ */ React18.createElement(Term, null, "Assessment ", ">", " Adaptable content ", ">", " Contrast"), ".")));
|
|
1265
|
+
return /* @__PURE__ */ React18.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React18.createElement("li", null, "If the instance is an icon or other non-text content, ignore it. This rule applies only to text."), /* @__PURE__ */ React18.createElement("li", null, "If the instance is text, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.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__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextNoBullet }, /* @__PURE__ */ React18.createElement("li", null, "For detailed test instructions, see", " ", /* @__PURE__ */ React18.createElement(Term, null, "Assessment ", ">", " Adaptable content ", ">", " Contrast"), ".")));
|
|
1332
1266
|
}
|
|
1333
1267
|
case "web/th-has-data-cells": {
|
|
1334
1268
|
return /* @__PURE__ */ React18.createElement("div", null, "Examine the header cell in the context of the table to verify that it has no data cells.");
|
|
@@ -1355,14 +1289,14 @@ var RichResolutionContent = NamedFC(
|
|
|
1355
1289
|
var RichResolutionCardRow = NamedFC(
|
|
1356
1290
|
"RichResolutionCardRow",
|
|
1357
1291
|
({ deps, index, propertyData }) => {
|
|
1358
|
-
return /* @__PURE__ */ React19.createElement(
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
...propertyData
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1292
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1293
|
+
SimpleCardRow,
|
|
1294
|
+
{
|
|
1295
|
+
label: `How to ${propertyData.labelType}`,
|
|
1296
|
+
content: /* @__PURE__ */ React19.createElement(RichResolutionContent, { deps, ...propertyData }),
|
|
1297
|
+
rowKey: `rich-resolution-row-${index}`
|
|
1298
|
+
}
|
|
1299
|
+
);
|
|
1366
1300
|
}
|
|
1367
1301
|
);
|
|
1368
1302
|
|
|
@@ -1379,15 +1313,16 @@ var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urls
|
|
|
1379
1313
|
var UrlsCardRow = NamedFC("UrlsCardRow", ({ deps, ...props }) => {
|
|
1380
1314
|
const urlInfos = props.propertyData.urlInfos;
|
|
1381
1315
|
const renderUrlContent = () => {
|
|
1382
|
-
return /* @__PURE__ */ React20.createElement("ul", {
|
|
1383
|
-
className: urls_card_row_default.urlsRowContent
|
|
1384
|
-
}, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
1316
|
+
return /* @__PURE__ */ React20.createElement("ul", { className: urls_card_row_default.urlsRowContent }, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
1385
1317
|
};
|
|
1386
|
-
return /* @__PURE__ */ React20.createElement(
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1318
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1319
|
+
SimpleCardRow,
|
|
1320
|
+
{
|
|
1321
|
+
label: "URL",
|
|
1322
|
+
content: renderUrlContent(),
|
|
1323
|
+
rowKey: `urls-row-${props.index}`
|
|
1324
|
+
}
|
|
1325
|
+
);
|
|
1391
1326
|
});
|
|
1392
1327
|
var isNewViolation = (urlInfo) => {
|
|
1393
1328
|
return urlInfo.baselineStatus === "new";
|
|
@@ -1395,22 +1330,9 @@ var isNewViolation = (urlInfo) => {
|
|
|
1395
1330
|
function getUrlListItem(urlInfo, index, deps) {
|
|
1396
1331
|
const key = `urls-${index}`;
|
|
1397
1332
|
if (isNewViolation(urlInfo)) {
|
|
1398
|
-
return /* @__PURE__ */ React20.createElement("li", {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
"aria-label": `NEW. ${urlInfo.url}`,
|
|
1402
|
-
href: urlInfo.url
|
|
1403
|
-
}, urlInfo.url), /* @__PURE__ */ React20.createElement("span", {
|
|
1404
|
-
key: "new",
|
|
1405
|
-
"aria-hidden": "true",
|
|
1406
|
-
className: urls_card_row_default.urlsRowContentNewFailure
|
|
1407
|
-
}, " NEW!"));
|
|
1408
|
-
}
|
|
1409
|
-
return /* @__PURE__ */ React20.createElement("li", {
|
|
1410
|
-
key
|
|
1411
|
-
}, /* @__PURE__ */ React20.createElement(deps.LinkComponent, {
|
|
1412
|
-
href: urlInfo.url
|
|
1413
|
-
}, urlInfo.url));
|
|
1333
|
+
return /* @__PURE__ */ React20.createElement("li", { key }, /* @__PURE__ */ React20.createElement(deps.LinkComponent, { "aria-label": `NEW. ${urlInfo.url}`, href: urlInfo.url }, urlInfo.url), /* @__PURE__ */ React20.createElement("span", { key: "new", "aria-hidden": "true", className: urls_card_row_default.urlsRowContentNewFailure }, " NEW!"));
|
|
1334
|
+
}
|
|
1335
|
+
return /* @__PURE__ */ React20.createElement("li", { key }, /* @__PURE__ */ React20.createElement(deps.LinkComponent, { href: urlInfo.url }, urlInfo.url));
|
|
1414
1336
|
}
|
|
1415
1337
|
|
|
1416
1338
|
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
@@ -1442,9 +1364,7 @@ var FixInstructionPanel = NamedFC(
|
|
|
1442
1364
|
};
|
|
1443
1365
|
const renderInstructions = (checkType) => {
|
|
1444
1366
|
const instructionList = props.checks.map((check, checkIndex) => {
|
|
1445
|
-
return /* @__PURE__ */ React21.createElement("li", {
|
|
1446
|
-
key: `instruction-${CheckType[checkType]}-${checkIndex + 1}`
|
|
1447
|
-
}, fixInstructionProcessor.process(check.message, props.deps.recommendColor));
|
|
1367
|
+
return /* @__PURE__ */ React21.createElement("li", { key: `instruction-${CheckType[checkType]}-${checkIndex + 1}` }, fixInstructionProcessor.process(check.message, props.deps.recommendColor));
|
|
1448
1368
|
});
|
|
1449
1369
|
return instructionList;
|
|
1450
1370
|
};
|
|
@@ -1465,19 +1385,23 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
1465
1385
|
({ deps, ...props }) => {
|
|
1466
1386
|
const { any: anyOf, all, none } = props.propertyData;
|
|
1467
1387
|
const renderFixInstructionsContent = () => {
|
|
1468
|
-
return /* @__PURE__ */ React22.createElement("div", {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1388
|
+
return /* @__PURE__ */ React22.createElement("div", { className: how_to_fix_card_row_default.howToFixContent }, /* @__PURE__ */ React22.createElement(
|
|
1389
|
+
FixInstructionPanel,
|
|
1390
|
+
{
|
|
1391
|
+
deps,
|
|
1392
|
+
checkType: 0 /* All */,
|
|
1393
|
+
checks: all.concat(none).map(turnStringToMessageObject),
|
|
1394
|
+
renderTitleElement: renderFixInstructionsTitleElement
|
|
1395
|
+
}
|
|
1396
|
+
), /* @__PURE__ */ React22.createElement(
|
|
1397
|
+
FixInstructionPanel,
|
|
1398
|
+
{
|
|
1399
|
+
deps,
|
|
1400
|
+
checkType: 1 /* Any */,
|
|
1401
|
+
checks: anyOf.map(turnStringToMessageObject),
|
|
1402
|
+
renderTitleElement: renderFixInstructionsTitleElement
|
|
1403
|
+
}
|
|
1404
|
+
));
|
|
1481
1405
|
};
|
|
1482
1406
|
const turnStringToMessageObject = (s) => {
|
|
1483
1407
|
return { message: s };
|
|
@@ -1485,11 +1409,14 @@ var HowToFixWebCardRow = NamedFC(
|
|
|
1485
1409
|
const renderFixInstructionsTitleElement = (titleText) => {
|
|
1486
1410
|
return /* @__PURE__ */ React22.createElement("div", null, titleText);
|
|
1487
1411
|
};
|
|
1488
|
-
return /* @__PURE__ */ React22.createElement(
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1412
|
+
return /* @__PURE__ */ React22.createElement(
|
|
1413
|
+
SimpleCardRow,
|
|
1414
|
+
{
|
|
1415
|
+
label: "How to fix",
|
|
1416
|
+
content: renderFixInstructionsContent(),
|
|
1417
|
+
rowKey: `how-to-fix-row-${props.index}`
|
|
1418
|
+
}
|
|
1419
|
+
);
|
|
1493
1420
|
}
|
|
1494
1421
|
);
|
|
1495
1422
|
|
|
@@ -1559,28 +1486,22 @@ var import_Styling = require("@fluentui/react/lib/Styling");
|
|
|
1559
1486
|
|
|
1560
1487
|
// src/common/icons/more-actions-menu-icon.tsx
|
|
1561
1488
|
var React23 = __toESM(require("react"));
|
|
1562
|
-
var MoreActionsMenuIcon = NamedFC("MoreActionsMenuIcon", () => /* @__PURE__ */ React23.createElement(
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
r: "1.5"
|
|
1575
|
-
|
|
1576
|
-
cx: "5",
|
|
1577
|
-
|
|
1578
|
-
r: "1.5"
|
|
1579
|
-
}), /* @__PURE__ */ React23.createElement("circle", {
|
|
1580
|
-
cx: "5",
|
|
1581
|
-
cy: "2",
|
|
1582
|
-
r: "1.5"
|
|
1583
|
-
})));
|
|
1489
|
+
var MoreActionsMenuIcon = NamedFC("MoreActionsMenuIcon", () => /* @__PURE__ */ React23.createElement(
|
|
1490
|
+
"svg",
|
|
1491
|
+
{
|
|
1492
|
+
width: "10",
|
|
1493
|
+
height: "16",
|
|
1494
|
+
viewBox: "0 0 10 16",
|
|
1495
|
+
fill: "none",
|
|
1496
|
+
stroke: "currentColor",
|
|
1497
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1498
|
+
role: "img",
|
|
1499
|
+
"aria-hidden": "true"
|
|
1500
|
+
},
|
|
1501
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "14", r: "1.5" }),
|
|
1502
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "8", r: "1.5" }),
|
|
1503
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "2", r: "1.5" })
|
|
1504
|
+
));
|
|
1584
1505
|
|
|
1585
1506
|
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1586
1507
|
var React25 = __toESM(require("react"));
|
|
@@ -1611,12 +1532,7 @@ var _Toast = class extends React24.Component {
|
|
|
1611
1532
|
}
|
|
1612
1533
|
}
|
|
1613
1534
|
render() {
|
|
1614
|
-
return /* @__PURE__ */ React24.createElement("div", {
|
|
1615
|
-
className: toast_default.toastContainer,
|
|
1616
|
-
"aria-live": "polite"
|
|
1617
|
-
}, this.state.toastVisible ? /* @__PURE__ */ React24.createElement("div", {
|
|
1618
|
-
className: (0, import_utilities4.css)("ms-fadeIn100", toast_default.toastContent)
|
|
1619
|
-
}, this.state.content) : null);
|
|
1535
|
+
return /* @__PURE__ */ React24.createElement("div", { className: toast_default.toastContainer, "aria-live": "polite" }, this.state.toastVisible ? /* @__PURE__ */ React24.createElement("div", { className: (0, import_utilities4.css)("ms-fadeIn100", toast_default.toastContent) }, this.state.content) : null);
|
|
1620
1536
|
}
|
|
1621
1537
|
};
|
|
1622
1538
|
var Toast = _Toast;
|
|
@@ -1651,9 +1567,12 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1651
1567
|
if (menuItems.length === 0) {
|
|
1652
1568
|
return null;
|
|
1653
1569
|
}
|
|
1654
|
-
return
|
|
1655
|
-
|
|
1656
|
-
|
|
1570
|
+
return (
|
|
1571
|
+
// The wrapper has to be a real element, not a <>, because we want the placeholder elements
|
|
1572
|
+
// the dialog/toast involve to be considered as part of the button for the purposes of layout
|
|
1573
|
+
// calculation in this component's parent.
|
|
1574
|
+
/* @__PURE__ */ React25.createElement("div", { onKeyDown: (event) => event.stopPropagation() }, this.renderButtons(), this.renderCopyFailureDetailsToast())
|
|
1575
|
+
);
|
|
1657
1576
|
}
|
|
1658
1577
|
renderButtons() {
|
|
1659
1578
|
var _a;
|
|
@@ -1664,41 +1583,42 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1664
1583
|
}
|
|
1665
1584
|
}
|
|
1666
1585
|
renderKebabButton() {
|
|
1667
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1586
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1587
|
+
import_react4.ActionButton,
|
|
1588
|
+
{
|
|
1589
|
+
componentRef: (ref) => this.kebabButtonRef = ref,
|
|
1590
|
+
ariaLabel: this.props.kebabMenuAriaLabel || "More actions",
|
|
1591
|
+
menuIconProps: {
|
|
1592
|
+
iconName: "MoreActionsMenuIcon",
|
|
1593
|
+
className: card_footer_instance_action_buttons_default.kebabMenuIcon
|
|
1594
|
+
},
|
|
1595
|
+
menuProps: {
|
|
1596
|
+
directionalHint: import_react4.DirectionalHint.bottomRightEdge,
|
|
1597
|
+
shouldFocusOnMount: true,
|
|
1598
|
+
items: this.getMenuItems()
|
|
1599
|
+
}
|
|
1678
1600
|
}
|
|
1679
|
-
|
|
1601
|
+
);
|
|
1680
1602
|
}
|
|
1681
1603
|
renderExpandedButtons() {
|
|
1682
1604
|
const menuItems = this.getMenuItems();
|
|
1683
|
-
return /* @__PURE__ */ React25.createElement(React25.Fragment, null, menuItems.map((props) => /* @__PURE__ */ React25.createElement("span", {
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1605
|
+
return /* @__PURE__ */ React25.createElement(React25.Fragment, null, menuItems.map((props) => /* @__PURE__ */ React25.createElement("span", { key: props.key }, /* @__PURE__ */ React25.createElement(
|
|
1606
|
+
import_react4.ActionButton,
|
|
1607
|
+
{
|
|
1608
|
+
onClick: props.onClick,
|
|
1609
|
+
text: props.text,
|
|
1610
|
+
iconProps: props.iconProps,
|
|
1611
|
+
className: props.key,
|
|
1612
|
+
componentRef: props.componentRef
|
|
1613
|
+
}
|
|
1614
|
+
))));
|
|
1692
1615
|
}
|
|
1693
1616
|
renderCopyFailureDetailsToast() {
|
|
1694
1617
|
const { cardInteractionSupport } = this.props.deps;
|
|
1695
1618
|
if (!cardInteractionSupport.supportsCopyFailureDetails) {
|
|
1696
1619
|
return null;
|
|
1697
1620
|
}
|
|
1698
|
-
return /* @__PURE__ */ React25.createElement(Toast, {
|
|
1699
|
-
ref: this.toastRef,
|
|
1700
|
-
deps: this.props.deps
|
|
1701
|
-
});
|
|
1621
|
+
return /* @__PURE__ */ React25.createElement(Toast, { ref: this.toastRef, deps: this.props.deps });
|
|
1702
1622
|
}
|
|
1703
1623
|
getMenuItems() {
|
|
1704
1624
|
return this.props.deps.cardFooterMenuItemsBuilder.getCardFooterMenuItems({
|
|
@@ -1712,42 +1632,63 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1712
1632
|
|
|
1713
1633
|
// src/common/icons/highlight-status-icons.tsx
|
|
1714
1634
|
var React26 = __toESM(require("react"));
|
|
1715
|
-
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */ React26.createElement(
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1635
|
+
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */ React26.createElement(
|
|
1636
|
+
"svg",
|
|
1637
|
+
{
|
|
1638
|
+
width: "34",
|
|
1639
|
+
height: "30",
|
|
1640
|
+
viewBox: "0 0 34 30",
|
|
1641
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1642
|
+
role: "img",
|
|
1643
|
+
"aria-hidden": "true"
|
|
1644
|
+
},
|
|
1645
|
+
/* @__PURE__ */ React26.createElement(
|
|
1646
|
+
"path",
|
|
1647
|
+
{
|
|
1648
|
+
fillRule: "evenodd",
|
|
1649
|
+
clipRule: "evenodd",
|
|
1650
|
+
d: "M24.9247 15.2364C24.9252 15.2363 24.9228 15.2421 24.9161 15.2543C24.9209 15.2427 24.9242 15.2366 24.9247 15.2364ZM24.7382 15.5C24.6733 15.4225 24.5919 15.3323 24.4921 15.2312C24.1054 14.8394 23.5169 14.3566 22.767 13.8872C22.1349 13.4914 21.4077 13.1174 20.6127 12.8166C21.1701 13.5658 21.5 14.4944 21.5 15.5C21.5 16.5056 21.1701 17.4342 20.6127 18.1834C21.4077 17.8826 22.1349 17.5086 22.767 17.1128C23.5169 16.6434 24.1054 16.1606 24.4921 15.7688C24.5919 15.6677 24.6733 15.5775 24.7382 15.5ZM17 12.125H17C15.1361 12.125 13.6251 13.636 13.6251 15.5C13.6251 17.3639 15.1361 18.8749 17 18.8749C18.864 18.8749 20.375 17.3639 20.375 15.5C20.375 13.636 18.864 12.125 17 12.125ZM26 15.5C26 14.6562 21.9706 11 17 11C12.0294 11 8 14.6562 8 15.5C8 16.3438 12.0294 20 17 20C21.9706 20 26 16.3438 26 15.5ZM11.233 13.8872C11.8651 13.4914 12.5923 13.1174 13.3873 12.8165C12.8299 13.5658 12.5001 14.4944 12.5001 15.5C12.5001 16.5056 12.8299 17.4342 13.3874 18.1835C12.5924 17.8826 11.8652 17.5086 11.233 17.1128C10.4831 16.6434 9.8946 16.1606 9.50795 15.7688C9.40811 15.6677 9.32665 15.5775 9.26185 15.5C9.32665 15.4225 9.40811 15.3323 9.50795 15.2312C9.8946 14.8394 10.4831 14.3566 11.233 13.8872ZM9.07531 15.2364C9.07579 15.2366 9.07913 15.2427 9.08386 15.2543C9.07719 15.2421 9.07483 15.2363 9.07531 15.2364ZM9.07531 15.7636C9.07483 15.7637 9.07719 15.7579 9.08386 15.7457C9.07913 15.7573 9.07579 15.7634 9.07531 15.7636ZM24.9161 15.7457C24.9228 15.7579 24.9252 15.7637 24.9247 15.7636C24.9242 15.7634 24.9209 15.7573 24.9161 15.7457ZM17 16.625C17.6213 16.625 18.125 16.1213 18.125 15.5C18.125 14.8787 17.6213 14.375 17 14.375C16.3787 14.375 15.875 14.8787 15.875 15.5C15.875 16.1213 16.3787 16.625 17 16.625Z"
|
|
1651
|
+
}
|
|
1652
|
+
)
|
|
1653
|
+
));
|
|
1654
|
+
var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__PURE__ */ React26.createElement(
|
|
1655
|
+
"svg",
|
|
1656
|
+
{
|
|
1657
|
+
width: "34",
|
|
1658
|
+
height: "30",
|
|
1659
|
+
viewBox: "0 0 34 30",
|
|
1660
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1661
|
+
role: "img",
|
|
1662
|
+
"aria-hidden": "true"
|
|
1663
|
+
},
|
|
1664
|
+
/* @__PURE__ */ React26.createElement(
|
|
1665
|
+
"path",
|
|
1666
|
+
{
|
|
1667
|
+
fillRule: "evenodd",
|
|
1668
|
+
clipRule: "evenodd",
|
|
1669
|
+
d: "M26.0875 10.3814C25.9321 10.1124 25.5881 10.0202 25.3191 10.1756L8.36661 19.9631C8.09757 20.1184 8.00539 20.4624 8.16072 20.7314C8.31605 21.0005 8.66007 21.0927 8.92911 20.9373L12.3384 18.969C13.6981 19.5691 15.2936 20 17 20C21.9706 20 26 16.3437 26 15.5C26 15.0546 24.8771 13.8254 23.0856 12.7641L25.8816 11.1498C26.1506 10.9945 26.2428 10.6505 26.0875 10.3814ZM21.9513 13.419L21.191 13.8579C21.3905 14.3666 21.5 14.9205 21.5 15.5C21.5 16.5056 21.1701 17.4342 20.6127 18.1834C21.4077 17.8826 22.1349 17.5086 22.767 17.1128C23.5169 16.6434 24.1054 16.1605 24.4921 15.7688C24.5919 15.6677 24.6733 15.5775 24.7382 15.5C24.6733 15.4225 24.5919 15.3323 24.4921 15.2312C24.1054 14.8394 23.5169 14.3566 22.767 13.8872C22.5102 13.7264 22.2376 13.5692 21.9513 13.419ZM20.2016 14.4292L18.1172 15.6326C18.0516 16.1914 17.5764 16.625 17 16.625C16.8423 16.625 16.6922 16.5925 16.556 16.534L14.4727 17.7368C15.091 18.4349 15.9941 18.8749 17 18.8749C18.864 18.8749 20.375 17.3639 20.375 15.5C20.375 15.1257 20.3141 14.7656 20.2016 14.4292ZM17 11C18.3092 11 19.5531 11.2536 20.6753 11.6427L18.866 12.6873C18.3315 12.332 17.6899 12.125 17 12.125C15.1361 12.125 13.6251 13.636 13.6251 15.5C13.6251 15.5703 13.6272 15.6402 13.6315 15.7095L12.5745 16.3197C12.5256 16.0539 12.5001 15.7799 12.5001 15.5C12.5001 14.4943 12.8299 13.5658 13.3873 12.8165C12.5923 13.1174 11.8651 13.4914 11.233 13.8872C10.4831 14.3566 9.8946 14.8394 9.50795 15.2312C9.40811 15.3323 9.32665 15.4224 9.26185 15.5C9.32665 15.5775 9.40811 15.6677 9.50795 15.7688C9.89194 16.1579 10.475 16.6368 11.2175 17.1031L10.1285 17.7319C8.80067 16.8111 8 15.8761 8 15.5C8 14.6562 12.0294 11 17 11ZM24.9247 15.2364C24.9252 15.2363 24.9228 15.2421 24.9161 15.2543C24.9209 15.2427 24.9242 15.2366 24.9247 15.2364ZM9.07531 15.2364C9.07579 15.2366 9.07913 15.2427 9.08386 15.2543C9.07719 15.2421 9.07483 15.2363 9.07531 15.2364ZM9.07531 15.7636C9.07483 15.7637 9.07719 15.7579 9.08386 15.7457C9.07913 15.7573 9.07579 15.7634 9.07531 15.7636ZM24.9161 15.7456C24.9228 15.7579 24.9252 15.7637 24.9247 15.7636C24.9242 15.7634 24.9209 15.7573 24.9161 15.7456Z"
|
|
1670
|
+
}
|
|
1671
|
+
)
|
|
1672
|
+
));
|
|
1673
|
+
var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ React26.createElement(
|
|
1674
|
+
"svg",
|
|
1675
|
+
{
|
|
1676
|
+
width: "34",
|
|
1677
|
+
height: "30",
|
|
1678
|
+
viewBox: "0 0 34 30",
|
|
1679
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1680
|
+
role: "img",
|
|
1681
|
+
"aria-hidden": "true"
|
|
1682
|
+
},
|
|
1683
|
+
/* @__PURE__ */ React26.createElement(
|
|
1684
|
+
"path",
|
|
1685
|
+
{
|
|
1686
|
+
fillRule: "evenodd",
|
|
1687
|
+
clipRule: "evenodd",
|
|
1688
|
+
d: "M9.08085 15C9.37419 15 9.61642 15.2189 9.65314 15.5022C9.66291 15.5202 9.68058 15.5492 9.70996 15.5894C9.78757 15.6956 9.91672 15.8391 10.1028 16.0101C10.4726 16.3502 11.0242 16.7595 11.7188 17.1541C13.1101 17.9445 15.0205 18.6451 17.1142 18.6451C19.2079 18.6451 21.1184 17.9445 22.5096 17.1541C23.2043 16.7595 23.7559 16.3502 24.1257 16.0101C24.3117 15.8391 24.4409 15.6956 24.5185 15.5894C24.5479 15.5492 24.5655 15.5202 24.5753 15.5022C24.612 15.2189 24.8542 15 25.1476 15C25.2415 15 25.3302 15.0224 25.4086 15.0622C25.4284 15.0708 25.4481 15.0805 25.4674 15.0913L28.8484 16.9905C29.1323 17.1499 29.2394 17.4999 29.0877 17.7723C28.9361 18.0447 28.583 18.1363 28.2992 17.9769L25.3938 16.3449C25.2642 16.5099 25.0983 16.6838 24.9069 16.8598C24.4637 17.2673 23.8388 17.7265 23.0797 18.1577C22.8753 18.2739 22.6601 18.3885 22.4351 18.5L24.1304 21.1648C24.2973 21.4271 24.2088 21.7809 23.9328 21.9549C23.6567 22.129 23.2976 22.0574 23.1307 21.7951L21.3406 18.9814C20.2653 19.3968 19.0358 19.7076 17.7186 19.7821V22.8381C17.7186 23.141 17.448 23.3865 17.1142 23.3865C16.7804 23.3865 16.5098 23.141 16.5098 22.8381L16.5098 19.7821C15.1926 19.7075 13.9631 19.3968 12.8878 18.9814L11.0976 21.7951C10.9307 22.0574 10.5717 22.129 10.2956 21.9549C10.0195 21.7809 9.93105 21.4271 10.0979 21.1648L11.7933 18.5C11.5683 18.3885 11.3531 18.2739 11.1487 18.1577C10.3896 17.7265 9.76474 17.2673 9.32154 16.8598C9.11716 16.6719 8.94198 16.4864 8.80883 16.3116L5.85741 17.9694C5.57358 18.1289 5.22055 18.0373 5.06888 17.7649C4.91722 17.4925 5.02436 17.1424 5.30818 16.983L8.68923 15.0838C8.78815 15.0283 8.89546 15.0032 8.99974 15.0057C9.02624 15.0019 9.05332 15 9.08085 15ZM9.64501 15.486C9.64391 15.4835 9.64348 15.4823 9.64355 15.4823C9.64361 15.4823 9.64416 15.4836 9.64501 15.486Z"
|
|
1689
|
+
}
|
|
1690
|
+
)
|
|
1691
|
+
));
|
|
1751
1692
|
|
|
1752
1693
|
// src/common/components/cards/instance-details-footer.tsx
|
|
1753
1694
|
var React27 = __toESM(require("react"));
|
|
@@ -1772,13 +1713,16 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1772
1713
|
}
|
|
1773
1714
|
const issueDetailsData = deps.unifiedResultToIssueFilingDataConverter.convert(result, rule, targetAppInfo);
|
|
1774
1715
|
const kebabMenuAriaLabel = `More Actions for failure instance ${result.identifiers.identifier} in rule ${rule.id}`;
|
|
1775
|
-
return /* @__PURE__ */ React27.createElement(
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1716
|
+
return /* @__PURE__ */ React27.createElement(
|
|
1717
|
+
CardFooterInstanceActionButtons,
|
|
1718
|
+
{
|
|
1719
|
+
deps,
|
|
1720
|
+
userConfigurationStoreData,
|
|
1721
|
+
issueDetailsData,
|
|
1722
|
+
kebabMenuAriaLabel,
|
|
1723
|
+
narrowModeStatus
|
|
1724
|
+
}
|
|
1725
|
+
);
|
|
1782
1726
|
};
|
|
1783
1727
|
const renderHighlightStatus = () => {
|
|
1784
1728
|
if (!supportsHighlighting) {
|
|
@@ -1791,13 +1735,9 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1791
1735
|
visible: /* @__PURE__ */ React27.createElement(HighlightVisibleIcon, null),
|
|
1792
1736
|
hidden: /* @__PURE__ */ React27.createElement(HighlightHiddenIcon, null)
|
|
1793
1737
|
}[highlightState];
|
|
1794
|
-
return /* @__PURE__ */ React27.createElement("div", {
|
|
1795
|
-
className: instance_details_footer_default.highlightStatus
|
|
1796
|
-
}, icon, /* @__PURE__ */ React27.createElement(import_react5.Label, null, label));
|
|
1738
|
+
return /* @__PURE__ */ React27.createElement("div", { className: instance_details_footer_default.highlightStatus }, icon, /* @__PURE__ */ React27.createElement(import_react5.Label, null, label));
|
|
1797
1739
|
};
|
|
1798
|
-
return /* @__PURE__ */ React27.createElement("div", {
|
|
1799
|
-
className: instance_details_footer_default.foot
|
|
1800
|
-
}, renderHighlightStatus(), renderKebabMenu());
|
|
1740
|
+
return /* @__PURE__ */ React27.createElement("div", { className: instance_details_footer_default.foot }, renderHighlightStatus(), renderKebabMenu());
|
|
1801
1741
|
}
|
|
1802
1742
|
);
|
|
1803
1743
|
|
|
@@ -1840,30 +1780,35 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1840
1780
|
},
|
|
1841
1781
|
tabIndex: -1
|
|
1842
1782
|
} : {};
|
|
1843
|
-
return /* @__PURE__ */ React28.createElement(
|
|
1844
|
-
"
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1783
|
+
return /* @__PURE__ */ React28.createElement(
|
|
1784
|
+
"div",
|
|
1785
|
+
{
|
|
1786
|
+
"data-automation-id": instanceCardAutomationId,
|
|
1787
|
+
className: instanceDetailsCardContainerStyling
|
|
1788
|
+
},
|
|
1789
|
+
/* @__PURE__ */ React28.createElement("div", { className: instanceDetailsCardStyling, ...cardHighlightingProperties }, /* @__PURE__ */ React28.createElement("div", null, /* @__PURE__ */ React28.createElement("table", { className: instance_details_default.reportInstanceTable }, /* @__PURE__ */ React28.createElement("tbody", null, renderCardRowsForPropertyBag(result.identifiers, props), renderCardRowsForPropertyBag(result.descriptors, props), renderCardRowsForPropertyBag(result.resolution, props))), isHighlightSupported && cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React28.createElement(
|
|
1790
|
+
"button",
|
|
1791
|
+
{
|
|
1792
|
+
ref: hiddenButton,
|
|
1793
|
+
onClick: toggleSelectHandler,
|
|
1794
|
+
className: instance_details_default.hiddenHighlightButton,
|
|
1795
|
+
"aria-label": `highlight ${result.identifiers && result.identifiers.identifier ? result.identifiers.identifier : ""}`,
|
|
1796
|
+
"aria-pressed": result.isSelected,
|
|
1797
|
+
onFocus: (_) => setCardFocus(true),
|
|
1798
|
+
onBlur: (_) => setCardFocus(false)
|
|
1799
|
+
}
|
|
1800
|
+
), /* @__PURE__ */ React28.createElement(
|
|
1801
|
+
InstanceDetailsFooter,
|
|
1802
|
+
{
|
|
1803
|
+
deps,
|
|
1804
|
+
result,
|
|
1805
|
+
userConfigurationStoreData,
|
|
1806
|
+
rule,
|
|
1807
|
+
targetAppInfo,
|
|
1808
|
+
narrowModeStatus
|
|
1809
|
+
}
|
|
1810
|
+
)))
|
|
1811
|
+
);
|
|
1867
1812
|
});
|
|
1868
1813
|
var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
1869
1814
|
let propertyIndex = 0;
|
|
@@ -1874,12 +1819,15 @@ var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
|
1874
1819
|
const CardRow = propertyConfig.cardRow;
|
|
1875
1820
|
++propertyIndex;
|
|
1876
1821
|
cardRows.push(
|
|
1877
|
-
/* @__PURE__ */ React28.createElement(
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1822
|
+
/* @__PURE__ */ React28.createElement(
|
|
1823
|
+
CardRow,
|
|
1824
|
+
{
|
|
1825
|
+
deps: props.deps,
|
|
1826
|
+
propertyData,
|
|
1827
|
+
index: props.index,
|
|
1828
|
+
key: `${propertyName}-${propertyIndex}`
|
|
1829
|
+
}
|
|
1830
|
+
)
|
|
1883
1831
|
);
|
|
1884
1832
|
}
|
|
1885
1833
|
});
|
|
@@ -1909,23 +1857,28 @@ var InstanceDetailsGroup = NamedFC(
|
|
|
1909
1857
|
url: rule.url,
|
|
1910
1858
|
guidance: rule.guidance
|
|
1911
1859
|
};
|
|
1912
|
-
return /* @__PURE__ */ React29.createElement(
|
|
1913
|
-
"
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1860
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1861
|
+
"ul",
|
|
1862
|
+
{
|
|
1863
|
+
"data-automation-id": ruleContentAutomationId,
|
|
1864
|
+
className: instance_details_group_default.instanceDetailsList,
|
|
1865
|
+
"aria-label": "instances with additional information like path, snippet and how to fix"
|
|
1866
|
+
},
|
|
1867
|
+
nodes.map((node, index) => /* @__PURE__ */ React29.createElement("li", { key: `instance-details-${index}` }, /* @__PURE__ */ React29.createElement(
|
|
1868
|
+
InstanceDetails,
|
|
1869
|
+
{
|
|
1870
|
+
...{ index },
|
|
1871
|
+
deps,
|
|
1872
|
+
result: node,
|
|
1873
|
+
getPropertyConfigById: getPropertyConfiguration,
|
|
1874
|
+
userConfigurationStoreData,
|
|
1875
|
+
rule: unifiedRule,
|
|
1876
|
+
targetAppInfo,
|
|
1877
|
+
cardSelectionMessageCreator,
|
|
1878
|
+
narrowModeStatus
|
|
1879
|
+
}
|
|
1880
|
+
)))
|
|
1881
|
+
);
|
|
1929
1882
|
}
|
|
1930
1883
|
);
|
|
1931
1884
|
|
|
@@ -1950,17 +1903,10 @@ var GuidanceLinks = NamedFC("GuidanceLinks", (props) => {
|
|
|
1950
1903
|
const addComma = index !== length - 1;
|
|
1951
1904
|
const comma = addComma ? /* @__PURE__ */ React30.createElement("span", null, ",\xA0") : null;
|
|
1952
1905
|
const LinkComponent = props.LinkComponent;
|
|
1953
|
-
return /* @__PURE__ */ React30.createElement(React30.Fragment, {
|
|
1954
|
-
key: `guidance-link-${index}`
|
|
1955
|
-
}, /* @__PURE__ */ React30.createElement(LinkComponent, {
|
|
1956
|
-
href: link2.href,
|
|
1957
|
-
onClick: (event) => event.stopPropagation()
|
|
1958
|
-
}, link2.text.toUpperCase()), comma);
|
|
1906
|
+
return /* @__PURE__ */ React30.createElement(React30.Fragment, { key: `guidance-link-${index}` }, /* @__PURE__ */ React30.createElement(LinkComponent, { href: link2.href, onClick: (event) => event.stopPropagation() }, link2.text.toUpperCase()), comma);
|
|
1959
1907
|
};
|
|
1960
1908
|
const spanClassName = classNameForDiv || "guidance-links";
|
|
1961
|
-
return /* @__PURE__ */ React30.createElement("span", {
|
|
1962
|
-
className: spanClassName
|
|
1963
|
-
}, renderLinks());
|
|
1909
|
+
return /* @__PURE__ */ React30.createElement("span", { className: spanClassName }, renderLinks());
|
|
1964
1910
|
});
|
|
1965
1911
|
|
|
1966
1912
|
// src/common/components/guidance-tags.tsx
|
|
@@ -1976,13 +1922,9 @@ var GuidanceTags = NamedFC("GuidanceTags", (props) => {
|
|
|
1976
1922
|
return null;
|
|
1977
1923
|
}
|
|
1978
1924
|
const tagElements = tags.map((tag, index) => {
|
|
1979
|
-
return /* @__PURE__ */ React31.createElement("span", {
|
|
1980
|
-
key: index
|
|
1981
|
-
}, tag.displayText);
|
|
1925
|
+
return /* @__PURE__ */ React31.createElement("span", { key: index }, tag.displayText);
|
|
1982
1926
|
});
|
|
1983
|
-
return /* @__PURE__ */ React31.createElement("span", {
|
|
1984
|
-
className: "guidance-tags"
|
|
1985
|
-
}, tagElements);
|
|
1927
|
+
return /* @__PURE__ */ React31.createElement("span", { className: "guidance-tags" }, tagElements);
|
|
1986
1928
|
});
|
|
1987
1929
|
|
|
1988
1930
|
// src/common/components/cards/rule-resources.tsx
|
|
@@ -1997,45 +1939,25 @@ var RuleResources = NamedFC("RuleResources", ({ deps, rule }) => {
|
|
|
1997
1939
|
if (rule.url == null && (0, import_lodash9.isEmpty)(rule.guidance)) {
|
|
1998
1940
|
return null;
|
|
1999
1941
|
}
|
|
2000
|
-
const renderTitle = () => /* @__PURE__ */ React32.createElement("div", {
|
|
2001
|
-
className: rule_resources_default.moreResourcesTitle
|
|
2002
|
-
}, "Resources for this rule");
|
|
1942
|
+
const renderTitle = () => /* @__PURE__ */ React32.createElement("div", { className: rule_resources_default.moreResourcesTitle }, "Resources for this rule");
|
|
2003
1943
|
const renderRuleLink = () => {
|
|
2004
1944
|
if (rule.url == null) {
|
|
2005
1945
|
return null;
|
|
2006
1946
|
}
|
|
2007
1947
|
const ruleId = rule.id;
|
|
2008
1948
|
const ruleUrl = rule.url;
|
|
2009
|
-
return /* @__PURE__ */ React32.createElement("span", {
|
|
2010
|
-
className: rule_resources_default.ruleDetailsId
|
|
2011
|
-
}, /* @__PURE__ */ React32.createElement(deps.LinkComponent, {
|
|
2012
|
-
href: ruleUrl
|
|
2013
|
-
}, "More information about ", ruleId));
|
|
1949
|
+
return /* @__PURE__ */ React32.createElement("span", { className: rule_resources_default.ruleDetailsId }, /* @__PURE__ */ React32.createElement(deps.LinkComponent, { href: ruleUrl }, "More information about ", ruleId));
|
|
2014
1950
|
};
|
|
2015
1951
|
const renderGuidanceLinks = () => {
|
|
2016
|
-
return /* @__PURE__ */ React32.createElement(GuidanceLinks, {
|
|
2017
|
-
links: rule.guidance,
|
|
2018
|
-
LinkComponent: deps.LinkComponent
|
|
2019
|
-
});
|
|
1952
|
+
return /* @__PURE__ */ React32.createElement(GuidanceLinks, { links: rule.guidance, LinkComponent: deps.LinkComponent });
|
|
2020
1953
|
};
|
|
2021
|
-
const renderGuidanceTags = () => /* @__PURE__ */ React32.createElement(GuidanceTags, {
|
|
2022
|
-
|
|
2023
|
-
links: rule.guidance
|
|
2024
|
-
});
|
|
2025
|
-
return /* @__PURE__ */ React32.createElement("div", {
|
|
2026
|
-
className: rule_resources_default.ruleMoreResources
|
|
2027
|
-
}, renderTitle(), renderRuleLink(), /* @__PURE__ */ React32.createElement("span", {
|
|
2028
|
-
className: rule_resources_default.ruleGuidance
|
|
2029
|
-
}, renderGuidanceLinks(), renderGuidanceTags()));
|
|
1954
|
+
const renderGuidanceTags = () => /* @__PURE__ */ React32.createElement(GuidanceTags, { deps, links: rule.guidance });
|
|
1955
|
+
return /* @__PURE__ */ React32.createElement("div", { className: rule_resources_default.ruleMoreResources }, renderTitle(), renderRuleLink(), /* @__PURE__ */ React32.createElement("span", { className: rule_resources_default.ruleGuidance }, renderGuidanceLinks(), renderGuidanceTags()));
|
|
2030
1956
|
});
|
|
2031
1957
|
|
|
2032
1958
|
// src/common/components/cards/rule-content.tsx
|
|
2033
1959
|
var RuleContent = NamedFC("RuleContent", (props) => {
|
|
2034
|
-
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(RuleResources, {
|
|
2035
|
-
...props
|
|
2036
|
-
}), /* @__PURE__ */ React33.createElement(InstanceDetailsGroup, {
|
|
2037
|
-
...props
|
|
2038
|
-
}));
|
|
1960
|
+
return /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(RuleResources, { ...props }), /* @__PURE__ */ React33.createElement(InstanceDetailsGroup, { ...props }));
|
|
2039
1961
|
});
|
|
2040
1962
|
|
|
2041
1963
|
// src/common/components/cards/rules-with-instances.scss
|
|
@@ -2061,21 +1983,27 @@ var RulesWithInstances = NamedFC(
|
|
|
2061
1983
|
return {
|
|
2062
1984
|
id: rule.id,
|
|
2063
1985
|
key: `summary-details-${idx + 1}`,
|
|
2064
|
-
header: /* @__PURE__ */ React34.createElement(
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
1986
|
+
header: /* @__PURE__ */ React34.createElement(
|
|
1987
|
+
MinimalRuleHeader,
|
|
1988
|
+
{
|
|
1989
|
+
key: rule.id,
|
|
1990
|
+
rule,
|
|
1991
|
+
outcomeType,
|
|
1992
|
+
outcomeCounter
|
|
1993
|
+
}
|
|
1994
|
+
),
|
|
1995
|
+
content: /* @__PURE__ */ React34.createElement(
|
|
1996
|
+
RuleContent,
|
|
1997
|
+
{
|
|
1998
|
+
key: `${rule.id}-rule-group`,
|
|
1999
|
+
deps,
|
|
2000
|
+
rule,
|
|
2001
|
+
userConfigurationStoreData,
|
|
2002
|
+
targetAppInfo,
|
|
2003
|
+
cardSelectionMessageCreator,
|
|
2004
|
+
narrowModeStatus
|
|
2005
|
+
}
|
|
2006
|
+
),
|
|
2079
2007
|
containerAutomationId: ruleGroupAutomationId,
|
|
2080
2008
|
containerClassName: rules_with_instances_default.collapsibleRuleDetailsGroup,
|
|
2081
2009
|
buttonAriaLabel,
|
|
@@ -2087,18 +2015,22 @@ var RulesWithInstances = NamedFC(
|
|
|
2087
2015
|
isExpanded: rule.isExpanded
|
|
2088
2016
|
};
|
|
2089
2017
|
};
|
|
2090
|
-
return /* @__PURE__ */ React34.createElement(
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2018
|
+
return /* @__PURE__ */ React34.createElement(
|
|
2019
|
+
"div",
|
|
2020
|
+
{
|
|
2021
|
+
className: rules_with_instances_default.ruleDetailsGroup,
|
|
2022
|
+
"data-automation-id": ruleDetailsGroupAutomationId
|
|
2023
|
+
},
|
|
2024
|
+
rules.map((rule, idx) => {
|
|
2025
|
+
const { pastTense } = outcomeTypeSemantics[outcomeType];
|
|
2026
|
+
const count = outcomeCounter(rule.nodes);
|
|
2027
|
+
const buttonAriaLabel = `${count} ${pastTense} ${rule.id} ${rule.description}`;
|
|
2028
|
+
const CollapsibleComponent = deps.collapsibleControl(
|
|
2029
|
+
getCollapsibleComponentProps(rule, idx, buttonAriaLabel)
|
|
2030
|
+
);
|
|
2031
|
+
return CollapsibleComponent;
|
|
2032
|
+
})
|
|
2033
|
+
);
|
|
2102
2034
|
}
|
|
2103
2035
|
);
|
|
2104
2036
|
|
|
@@ -2121,21 +2053,27 @@ var ResultSectionContent = NamedFC(
|
|
|
2121
2053
|
if (results.length === 0) {
|
|
2122
2054
|
return null;
|
|
2123
2055
|
}
|
|
2124
|
-
return /* @__PURE__ */ React35.createElement(React35.Fragment, null, cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React35.createElement(
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2056
|
+
return /* @__PURE__ */ React35.createElement(React35.Fragment, null, cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React35.createElement(
|
|
2057
|
+
deps.cardsVisualizationModifierButtons,
|
|
2058
|
+
{
|
|
2059
|
+
...props,
|
|
2060
|
+
cardSelectionMessageCreator
|
|
2061
|
+
}
|
|
2062
|
+
), /* @__PURE__ */ React35.createElement(
|
|
2063
|
+
RulesWithInstances,
|
|
2064
|
+
{
|
|
2065
|
+
deps,
|
|
2066
|
+
rules: results,
|
|
2067
|
+
outcomeType,
|
|
2068
|
+
fixInstructionProcessor,
|
|
2069
|
+
userConfigurationStoreData,
|
|
2070
|
+
targetAppInfo,
|
|
2071
|
+
outcomeCounter,
|
|
2072
|
+
headingLevel,
|
|
2073
|
+
cardSelectionMessageCreator,
|
|
2074
|
+
narrowModeStatus
|
|
2075
|
+
}
|
|
2076
|
+
));
|
|
2139
2077
|
}
|
|
2140
2078
|
);
|
|
2141
2079
|
|
|
@@ -2154,23 +2092,8 @@ var ResultSectionTitle = NamedFC("ResultSectionTitle", (props) => {
|
|
|
2154
2092
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2155
2093
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2156
2094
|
const alertTerm = props.badgeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2157
|
-
const alertingFailuresCount = /* @__PURE__ */ React36.createElement("span", {
|
|
2158
|
-
|
|
2159
|
-
}, props.badgeCount, " ", alertTerm, " detected.");
|
|
2160
|
-
return /* @__PURE__ */ React36.createElement("span", {
|
|
2161
|
-
className: result_section_title_default.resultSectionTitle
|
|
2162
|
-
}, /* @__PURE__ */ React36.createElement("span", {
|
|
2163
|
-
className: "screen-reader-only"
|
|
2164
|
-
}, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.badgeCount), /* @__PURE__ */ React36.createElement("span", {
|
|
2165
|
-
className: titleClassNames[props.titleSize],
|
|
2166
|
-
"aria-hidden": "true"
|
|
2167
|
-
}, props.title), /* @__PURE__ */ React36.createElement("span", {
|
|
2168
|
-
className: result_section_title_default.outcomeChipContainer,
|
|
2169
|
-
"aria-hidden": "true"
|
|
2170
|
-
}, /* @__PURE__ */ React36.createElement(OutcomeChip, {
|
|
2171
|
-
outcomeType: props.outcomeType,
|
|
2172
|
-
count: props.badgeCount
|
|
2173
|
-
})));
|
|
2095
|
+
const alertingFailuresCount = /* @__PURE__ */ React36.createElement("span", { role: "alert" }, props.badgeCount, " ", alertTerm, " detected.");
|
|
2096
|
+
return /* @__PURE__ */ React36.createElement("span", { className: result_section_title_default.resultSectionTitle }, /* @__PURE__ */ React36.createElement("span", { className: "screen-reader-only" }, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.badgeCount), /* @__PURE__ */ React36.createElement("span", { className: titleClassNames[props.titleSize], "aria-hidden": "true" }, props.title), /* @__PURE__ */ React36.createElement("span", { className: result_section_title_default.outcomeChipContainer, "aria-hidden": "true" }, /* @__PURE__ */ React36.createElement(OutcomeChip, { outcomeType: props.outcomeType, count: props.badgeCount })));
|
|
2174
2097
|
});
|
|
2175
2098
|
|
|
2176
2099
|
// src/common/components/cards/result-section.scss
|
|
@@ -2180,18 +2103,21 @@ var result_section_default = { "resultSection": "result-section--HfO9s", "titleC
|
|
|
2180
2103
|
var resultSectionAutomationId = "result-section";
|
|
2181
2104
|
var ResultSection = NamedFC("ResultSection", (props) => {
|
|
2182
2105
|
const { containerClassName, sectionHeadingLevel, deps } = props;
|
|
2183
|
-
return /* @__PURE__ */ React37.createElement(
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
...props,
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2106
|
+
return /* @__PURE__ */ React37.createElement(
|
|
2107
|
+
"div",
|
|
2108
|
+
{
|
|
2109
|
+
className: (0, import_utilities5.css)(containerClassName, result_section_default.resultSection),
|
|
2110
|
+
"data-automation-id": resultSectionAutomationId
|
|
2111
|
+
},
|
|
2112
|
+
/* @__PURE__ */ React37.createElement(HeadingElementForLevel, { headingLevel: sectionHeadingLevel }, /* @__PURE__ */ React37.createElement(ResultSectionTitle, { ...props, titleSize: "title" })),
|
|
2113
|
+
/* @__PURE__ */ React37.createElement(
|
|
2114
|
+
ResultSectionContent,
|
|
2115
|
+
{
|
|
2116
|
+
headingLevel: deps.getNextHeadingLevel(sectionHeadingLevel),
|
|
2117
|
+
...props
|
|
2118
|
+
}
|
|
2119
|
+
)
|
|
2120
|
+
);
|
|
2195
2121
|
});
|
|
2196
2122
|
|
|
2197
2123
|
// src/common/components/cards/failed-instances-section.tsx
|
|
@@ -2213,23 +2139,26 @@ var FailedInstancesSection = NamedFC(
|
|
|
2213
2139
|
const count = cardsViewData.cards.fail.reduce((total, rule) => {
|
|
2214
2140
|
return total + rule.nodes.length;
|
|
2215
2141
|
}, 0);
|
|
2216
|
-
return /* @__PURE__ */ React38.createElement(
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2142
|
+
return /* @__PURE__ */ React38.createElement(
|
|
2143
|
+
ResultSection,
|
|
2144
|
+
{
|
|
2145
|
+
deps,
|
|
2146
|
+
title: "Failed instances",
|
|
2147
|
+
results: cardsViewData.cards.fail,
|
|
2148
|
+
containerClassName: failed_instances_section_default.failedInstancesContainer,
|
|
2149
|
+
outcomeType: "fail",
|
|
2150
|
+
badgeCount: count,
|
|
2151
|
+
userConfigurationStoreData,
|
|
2152
|
+
targetAppInfo: scanMetadata.targetAppInfo,
|
|
2153
|
+
shouldAlertFailuresCount,
|
|
2154
|
+
visualHelperEnabled: cardsViewData.visualHelperEnabled,
|
|
2155
|
+
allCardsCollapsed: cardsViewData.allCardsCollapsed,
|
|
2156
|
+
outcomeCounter: OutcomeCounter.countByCards,
|
|
2157
|
+
sectionHeadingLevel,
|
|
2158
|
+
cardSelectionMessageCreator,
|
|
2159
|
+
narrowModeStatus
|
|
2160
|
+
}
|
|
2161
|
+
);
|
|
2233
2162
|
}
|
|
2234
2163
|
);
|
|
2235
2164
|
|
|
@@ -2248,156 +2177,186 @@ var React41 = __toESM(require("react"));
|
|
|
2248
2177
|
|
|
2249
2178
|
// src/icons/brand/white/brand-white.tsx
|
|
2250
2179
|
var React39 = __toESM(require("react"));
|
|
2251
|
-
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createElement(
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
},
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2180
|
+
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createElement(
|
|
2181
|
+
"svg",
|
|
2182
|
+
{
|
|
2183
|
+
role: "img",
|
|
2184
|
+
"aria-hidden": "true",
|
|
2185
|
+
className: "header-icon",
|
|
2186
|
+
viewBox: "0 0 48 48",
|
|
2187
|
+
fill: "none",
|
|
2188
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2189
|
+
},
|
|
2190
|
+
/* @__PURE__ */ React39.createElement(
|
|
2191
|
+
"mask",
|
|
2192
|
+
{
|
|
2193
|
+
id: "mask0",
|
|
2194
|
+
maskUnits: "userSpaceOnUse",
|
|
2195
|
+
x: "0",
|
|
2196
|
+
y: "3",
|
|
2197
|
+
width: "48",
|
|
2198
|
+
height: "43",
|
|
2199
|
+
style: { maskType: "alpha" }
|
|
2200
|
+
},
|
|
2201
|
+
/* @__PURE__ */ React39.createElement(
|
|
2202
|
+
"path",
|
|
2203
|
+
{
|
|
2204
|
+
d: "M43.8309 27.1383C49.3148 21.6544 49.3148 12.7633 43.8309 7.27934C38.347 1.79544 29.4558 1.79543 23.9719 7.27934C18.488 1.79544 9.59684 1.79544 4.11293 7.27934C-1.37098 12.7633 -1.37098 21.6544 4.11293 27.1383L21.986 45.0114C23.0828 46.1082 24.861 46.1082 25.9578 45.0114L43.8309 27.1383Z",
|
|
2205
|
+
fill: "white"
|
|
2206
|
+
}
|
|
2207
|
+
)
|
|
2208
|
+
),
|
|
2209
|
+
/* @__PURE__ */ React39.createElement("g", { mask: "url(#mask0)" }, /* @__PURE__ */ React39.createElement(
|
|
2210
|
+
"path",
|
|
2211
|
+
{
|
|
2212
|
+
d: "M43.8309 27.1383C49.3148 21.6544 49.3148 12.7633 43.8309 7.27934C38.347 1.79544 29.4558 1.79543 23.9719 7.27934C18.488 1.79544 9.59684 1.79544 4.11293 7.27934C-1.37098 12.7633 -1.37098 21.6544 4.11293 27.1383L21.986 45.0114C23.0828 46.1082 24.861 46.1082 25.9578 45.0114L43.8309 27.1383Z",
|
|
2213
|
+
fill: "white"
|
|
2214
|
+
}
|
|
2215
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2216
|
+
"rect",
|
|
2217
|
+
{
|
|
2218
|
+
x: "43.9494",
|
|
2219
|
+
y: "7.24556",
|
|
2220
|
+
width: "14.0948",
|
|
2221
|
+
height: "42.2726",
|
|
2222
|
+
transform: "rotate(45 43.9494 7.24556)",
|
|
2223
|
+
fill: "#D6E9F7"
|
|
2224
|
+
}
|
|
2225
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2226
|
+
"mask",
|
|
2227
|
+
{
|
|
2228
|
+
id: "mask1",
|
|
2229
|
+
maskUnits: "userSpaceOnUse",
|
|
2230
|
+
x: "-6",
|
|
2231
|
+
y: "-3",
|
|
2232
|
+
width: "30",
|
|
2233
|
+
height: "31",
|
|
2234
|
+
style: { maskType: "alpha" }
|
|
2235
|
+
},
|
|
2236
|
+
/* @__PURE__ */ React39.createElement(
|
|
2237
|
+
"path",
|
|
2238
|
+
{
|
|
2239
|
+
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2240
|
+
fill: "#CFEBFF"
|
|
2241
|
+
}
|
|
2242
|
+
),
|
|
2243
|
+
/* @__PURE__ */ React39.createElement(
|
|
2244
|
+
"path",
|
|
2245
|
+
{
|
|
2246
|
+
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2247
|
+
fill: "url(#paint0_linear)"
|
|
2248
|
+
}
|
|
2249
|
+
)
|
|
2250
|
+
), /* @__PURE__ */ React39.createElement("g", { mask: "url(#mask1)" }, /* @__PURE__ */ React39.createElement(
|
|
2251
|
+
"path",
|
|
2252
|
+
{
|
|
2253
|
+
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2254
|
+
fill: "white"
|
|
2255
|
+
}
|
|
2256
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2257
|
+
"path",
|
|
2258
|
+
{
|
|
2259
|
+
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2260
|
+
fill: "url(#paint1_linear)"
|
|
2261
|
+
}
|
|
2262
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2263
|
+
"rect",
|
|
2264
|
+
{
|
|
2265
|
+
x: "4.54834",
|
|
2266
|
+
y: "6.88206",
|
|
2267
|
+
width: "16.3577",
|
|
2268
|
+
height: "42.2726",
|
|
2269
|
+
transform: "rotate(-45 4.54834 6.88206)",
|
|
2270
|
+
fill: "#D6E9F7"
|
|
2271
|
+
}
|
|
2272
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2273
|
+
"rect",
|
|
2274
|
+
{
|
|
2275
|
+
x: "4.54834",
|
|
2276
|
+
y: "6.88206",
|
|
2277
|
+
width: "16.3577",
|
|
2278
|
+
height: "42.2726",
|
|
2279
|
+
transform: "rotate(-45 4.54834 6.88206)",
|
|
2280
|
+
fill: "url(#paint2_linear)"
|
|
2281
|
+
}
|
|
2282
|
+
)), /* @__PURE__ */ React39.createElement("g", { filter: "url(#filter0_d)" }, /* @__PURE__ */ React39.createElement(
|
|
2283
|
+
"path",
|
|
2284
|
+
{
|
|
2285
|
+
fillRule: "evenodd",
|
|
2286
|
+
clipRule: "evenodd",
|
|
2287
|
+
d: "M34.0764 27.3564C39.8071 27.3483 44.4461 22.6961 44.438 16.9655C44.4299 11.2349 39.7778 6.59585 34.0472 6.60393C28.3165 6.61201 23.6775 11.2642 23.6856 16.9948C23.6888 19.2829 24.4324 21.397 25.6895 23.1108L23.4287 25.3788C22.8852 25.395 22.3466 25.6109 21.9324 26.0265L17.1218 30.8526C16.4185 31.5582 16.4203 32.7005 17.126 33.4038L17.6952 33.9713C18.4009 34.6746 19.5431 34.6728 20.2465 33.9671L25.057 29.141C25.4715 28.7252 25.6857 28.1855 25.6998 27.6415L27.9603 25.3737C29.6766 26.6235 31.7907 27.3596 34.0764 27.3564ZM34.0368 23.2439C37.4964 23.2579 40.3122 20.4647 40.3262 17.0051C40.3401 13.5456 37.5469 10.7298 34.0874 10.7158C30.6279 10.7018 27.812 13.495 27.7981 16.9545C27.7841 20.4141 30.5773 23.2299 34.0368 23.2439Z",
|
|
2288
|
+
fill: "#004880"
|
|
2289
|
+
}
|
|
2290
|
+
))),
|
|
2291
|
+
/* @__PURE__ */ React39.createElement("defs", null, /* @__PURE__ */ React39.createElement(
|
|
2292
|
+
"filter",
|
|
2293
|
+
{
|
|
2294
|
+
id: "filter0_d",
|
|
2295
|
+
x: "15.748",
|
|
2296
|
+
y: "6.50654",
|
|
2297
|
+
width: "29.5246",
|
|
2298
|
+
height: "29.5269",
|
|
2299
|
+
filterUnits: "userSpaceOnUse",
|
|
2300
|
+
colorInterpolationFilters: "sRGB"
|
|
2301
|
+
},
|
|
2302
|
+
/* @__PURE__ */ React39.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2303
|
+
/* @__PURE__ */ React39.createElement(
|
|
2304
|
+
"feColorMatrix",
|
|
2305
|
+
{
|
|
2306
|
+
in: "SourceAlpha",
|
|
2307
|
+
type: "matrix",
|
|
2308
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
2309
|
+
}
|
|
2310
|
+
),
|
|
2311
|
+
/* @__PURE__ */ React39.createElement("feOffset", { dy: "0.725705" }),
|
|
2312
|
+
/* @__PURE__ */ React39.createElement("feGaussianBlur", { stdDeviation: "0.40317" }),
|
|
2313
|
+
/* @__PURE__ */ React39.createElement(
|
|
2314
|
+
"feColorMatrix",
|
|
2315
|
+
{
|
|
2316
|
+
type: "matrix",
|
|
2317
|
+
values: "0 0 0 0 0.0447352 0 0 0 0 0.305769 0 0 0 0 0.492222 0 0 0 0.51 0"
|
|
2318
|
+
}
|
|
2319
|
+
),
|
|
2320
|
+
/* @__PURE__ */ React39.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow" }),
|
|
2321
|
+
/* @__PURE__ */ React39.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow", result: "shape" })
|
|
2322
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2323
|
+
"linearGradient",
|
|
2324
|
+
{
|
|
2325
|
+
id: "paint0_linear",
|
|
2326
|
+
x1: "14.3166",
|
|
2327
|
+
y1: "16.8744",
|
|
2328
|
+
x2: "5.92409",
|
|
2329
|
+
y2: "8.23504",
|
|
2330
|
+
gradientUnits: "userSpaceOnUse"
|
|
2331
|
+
},
|
|
2332
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "0", stopColor: "#073A5F", stopOpacity: "0.3" }),
|
|
2333
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "1", stopColor: "#CFEBFF", stopOpacity: "0" })
|
|
2334
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2335
|
+
"linearGradient",
|
|
2336
|
+
{
|
|
2337
|
+
id: "paint1_linear",
|
|
2338
|
+
x1: "14.3166",
|
|
2339
|
+
y1: "16.8744",
|
|
2340
|
+
x2: "5.92409",
|
|
2341
|
+
y2: "8.23504",
|
|
2342
|
+
gradientUnits: "userSpaceOnUse"
|
|
2343
|
+
},
|
|
2344
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "0", stopColor: "#165B8E", stopOpacity: "0.29" }),
|
|
2345
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
2346
|
+
), /* @__PURE__ */ React39.createElement(
|
|
2347
|
+
"linearGradient",
|
|
2348
|
+
{
|
|
2349
|
+
id: "paint2_linear",
|
|
2350
|
+
x1: "11.3179",
|
|
2351
|
+
y1: "20.1024",
|
|
2352
|
+
x2: "11.0819",
|
|
2353
|
+
y2: "11.1606",
|
|
2354
|
+
gradientUnits: "userSpaceOnUse"
|
|
2355
|
+
},
|
|
2356
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "0", stopColor: "#165B8E", stopOpacity: "0.29" }),
|
|
2357
|
+
/* @__PURE__ */ React39.createElement("stop", { offset: "1", stopColor: "#D6E9F7", stopOpacity: "0" })
|
|
2358
|
+
))
|
|
2359
|
+
));
|
|
2401
2360
|
|
|
2402
2361
|
// src/reports/components/header-bar.tsx
|
|
2403
2362
|
var React40 = __toESM(require("react"));
|
|
@@ -2407,11 +2366,7 @@ var header_bar_default = { "reportHeaderBar": "report-header-bar--SDV11", "heade
|
|
|
2407
2366
|
|
|
2408
2367
|
// src/reports/components/header-bar.tsx
|
|
2409
2368
|
var HeaderBar = NamedFC("HeaderBar", (props) => {
|
|
2410
|
-
return /* @__PURE__ */ React40.createElement("div", {
|
|
2411
|
-
className: header_bar_default.reportHeaderBar
|
|
2412
|
-
}, /* @__PURE__ */ React40.createElement(BrandWhite, null), /* @__PURE__ */ React40.createElement("div", {
|
|
2413
|
-
className: header_bar_default.headerText
|
|
2414
|
-
}, props.headerText));
|
|
2369
|
+
return /* @__PURE__ */ React40.createElement("div", { className: header_bar_default.reportHeaderBar }, /* @__PURE__ */ React40.createElement(BrandWhite, null), /* @__PURE__ */ React40.createElement("div", { className: header_bar_default.headerText }, props.headerText));
|
|
2415
2370
|
});
|
|
2416
2371
|
|
|
2417
2372
|
// src/reports/components/report-sections/header-section.scss
|
|
@@ -2422,18 +2377,14 @@ var reportHeaderSectionDataAutomationId = "report-header-section";
|
|
|
2422
2377
|
var HeaderSection = NamedFC(
|
|
2423
2378
|
"HeaderSection",
|
|
2424
2379
|
({ targetAppInfo, headerText }) => {
|
|
2425
|
-
return /* @__PURE__ */ React41.createElement("header", {
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
}, "Target page:\xA0", /* @__PURE__ */ React41.createElement(NewTabLinkWithConfirmationDialog, {
|
|
2434
|
-
href: targetAppInfo.url,
|
|
2435
|
-
title: targetAppInfo.name
|
|
2436
|
-
}, targetAppInfo.name))));
|
|
2380
|
+
return /* @__PURE__ */ React41.createElement("header", { "data-automation-id": reportHeaderSectionDataAutomationId }, /* @__PURE__ */ React41.createElement(HeaderBar, { headerText }), /* @__PURE__ */ React41.createElement("div", { className: header_section_default.reportHeaderCommandBar }, /* @__PURE__ */ React41.createElement("div", { className: header_section_default.targetPage }, "Target page:\xA0", /* @__PURE__ */ React41.createElement(
|
|
2381
|
+
NewTabLinkWithConfirmationDialog,
|
|
2382
|
+
{
|
|
2383
|
+
href: targetAppInfo.url,
|
|
2384
|
+
title: targetAppInfo.name
|
|
2385
|
+
},
|
|
2386
|
+
targetAppInfo.name
|
|
2387
|
+
))));
|
|
2437
2388
|
}
|
|
2438
2389
|
);
|
|
2439
2390
|
|
|
@@ -2441,10 +2392,7 @@ var HeaderSection = NamedFC(
|
|
|
2441
2392
|
var ReporterHeaderSection = NamedFC(
|
|
2442
2393
|
"AutomatedChecksHeaderSection",
|
|
2443
2394
|
({ scanMetadata }) => {
|
|
2444
|
-
return /* @__PURE__ */ React42.createElement(HeaderSection, {
|
|
2445
|
-
targetAppInfo: scanMetadata.targetAppInfo,
|
|
2446
|
-
headerText: brand
|
|
2447
|
-
});
|
|
2395
|
+
return /* @__PURE__ */ React42.createElement(HeaderSection, { targetAppInfo: scanMetadata.targetAppInfo, headerText: brand });
|
|
2448
2396
|
}
|
|
2449
2397
|
);
|
|
2450
2398
|
|
|
@@ -2455,17 +2403,11 @@ var React44 = __toESM(require("react"));
|
|
|
2455
2403
|
var React43 = __toESM(require("react"));
|
|
2456
2404
|
|
|
2457
2405
|
// src/reports/automated-checks-report.styles.ts
|
|
2458
|
-
var styleSheet = `:root {\n --black: #000;\n --light-black: #161616;\n --white: #fff;\n --brand-blue: #004880;\n --grey: #333;\n --ada-brand-color: var(--brand-blue);\n --primary-text: rgb(0 0 0 / 90%);\n --secondary-text: rgb(0 0 0 / 70%);\n --disabled-text: rgb(0 0 0 / 38%);\n --communication-primary: #106ebe;\n --communication-tint-40: #eff6fc;\n --communication-tint-30: #deecf9;\n --communication-tint-20: #c7e0f4;\n --communication-tint-10: #2b88d8;\n --communication-shade-20: #004578;\n --neutral-0: var(--white);\n --neutral-2: #f8f8f8;\n --neutral-3: #f6f6f6;\n --neutral-4: #f4f4f4;\n --neutral-6: #f2f2f2;\n --neutral-6-5: #f1f1f1;\n --neutral-8: #ebebeb;\n --neutral-10: #dedede;\n --neutral-20: #c8c8c8;\n --neutral-30: #a6a6a6;\n --neutral-55: #6e6e6e;\n --neutral-60: #666;\n --neutral-70: #3c3c3c;\n --neutral-80: var(--grey);\n --neutral-100: var(--black);\n --neutral-alpha-2: rgb(0 0 0 / 2%);\n --neutral-alpha-4: rgb(0 0 0 / 4%);\n --neutral-alpha-6: rgb(0 0 0 / 6%);\n --neutral-alpha-8: rgb(0 0 0 / 8%);\n --neutral-alpha-10: rgb(0 0 0 / 10%);\n --neutral-alpha-20: rgb(0 0 0 / 20%);\n --neutral-alpha-30: rgb(0 0 0 / 30%);\n --neutral-alpha-60: rgb(0 0 0 / 60%);\n --neutral-alpha-70: rgb(0 0 0 / 70%);\n --neutral-alpha-80: rgb(0 0 0 / 80%);\n --neutral-alpha-90: rgb(0 0 0 / 90%);\n --positive-outcome: #228722;\n --negative-outcome: #e81123;\n --neutral-outcome: var(--neutral-60);\n --box-shadow-108: rgb(0 0 0 / 10.8%);\n --box-shadow-132: rgb(0 0 0 / 13.2%);\n --box-shadow-27: rgb(0 0 0 / 27%);\n --screenshot-image-outline: #8b8b8b;\n --card-border: transparent;\n --card-footer-border: var(--neutral-10);\n --header-bar-title-color: var(--neutral-0);\n --help-links-section-background: var(--neutral-4);\n --help-links-section-border: var(--neutral-4);\n --index-circle-background: var(--communication-primary);\n --link-hover: var(--communication-shade-20);\n --link: var(--communication-primary);\n --menu-border: var(--neutral-3);\n --menu-item-background-active: var(--neutral-alpha-8);\n --menu-item-background-hover: var(--neutral-alpha-4);\n --left-nav-icon: var(--neutral-55);\n --pill-background: var(--neutral-alpha-8);\n --pill: var(--primary-text);\n --spinner-text: var(--communication-primary);\n --nav-link-hover: var(--neutral-alpha-8);\n --nav-link-selected: var(--communication-tint-20);\n --nav-link-expanded: var(--communication-tint-40);\n --insights-button-hover: #0179d4;\n --report-footer-text: #222;\n --landmark-contentinfo: #00a88c;\n --landmark-main: #cb2e6d;\n --landmark-complementary: #6b9d1a;\n --landmark-banner: #d08311;\n --landmark-region: #2560e0;\n --landmark-navigation: #9b38e6;\n --landmark-search: #d363d8;\n --landmark-form: #0298c7;\n}\n:root .high-contrast-theme {\n --ada-brand-color: var(--white);\n --secondary-text: var(--white);\n --primary-text: var(--white);\n --disabled-text: #c285ff;\n --communication-tint-40: #38a9ff;\n --communication-tint-30: var(--communication-tint-10);\n --neutral-0: var(--light-black);\n --neutral-2: var(--light-black);\n --neutral-3: var(--light-black);\n --neutral-4: var(--light-black);\n --neutral-6: var(--light-black);\n --neutral-6-5: var(--light-black);\n --neutral-8: var(--white);\n --neutral-10: var(--light-black);\n --neutral-20: var(--white);\n --neutral-30: var(--white);\n --neutral-55: var(--white);\n --neutral-60: var(--white);\n --neutral-70: var(--white);\n --neutral-80: var(--white);\n --neutral-100: var(--white);\n --neutral-alpha-8: var(--white);\n --neutral-alpha-90: var(--white);\n --positive-outcome: #4ac94a;\n --negative-outcome: #fc7ab1;\n --neutral-outcome: var(--neutral-0);\n --card-border: var(--white);\n --card-footer-border: var(--white);\n --header-bar-title-color: var(--brand-blue);\n --help-links-section-background: transparent;\n --help-links-section-border: var(--white);\n --index-circle-background: var(--communication-tint-40);\n --link-hover: #ff0;\n --link: #ff0;\n --menu-border: var(--grey);\n --menu-item-background-active: var(--communication-tint-40);\n --menu-item-background-hover: var(--grey);\n --left-nav-icon: var(--black);\n --pill-background: var(--white);\n --pill: var(--black);\n --screenshot-image-outline: var(--white);\n --spinner-text: var(--communication-tint-40);\n --nav-link-hover: #2a2a2a;\n --nav-link-selected: var(--communication-tint-40);\n --nav-link-expanded: transparent;\n}\n\n.ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px solid var(--neutral-100);\n}\n@media screen and (forced-colors: active) {\n .ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px dashed windowtext !important;\n }\n}\n\nbutton::after {\n content: \"\";\n position: absolute;\n}\n\n.ms-fontColor-neutralPrimary,\n.ms-fontColor-neutralPrimary--hover:hover {\n color: var(--neutral-100) !important;\n}\n\n.ms-Fabric {\n color: var(--neutral-100);\n}\n\n.insights-link {\n color: var(--link) !important;\n text-decoration: none;\n}\n@media screen and (forced-colors: active) {\n .insights-link {\n forced-color-adjust: unset;\n }\n}\n.insights-link:hover {\n color: var(--link-hover) !important;\n text-decoration: underline;\n}\n\n.high-contrast-theme .insights-link:hover {\n text-decoration: underline;\n}\n.high-contrast-theme .is-selected .status-icon {\n color: var(--black) !important;\n}\n\n.insights-code {\n font-family: menlo, consolas, courier new, monospace;\n}\n\n.ms-Spinner .ms-Spinner-circle {\n border-top-color: var(--spinner-text);\n}\n.ms-Spinner .ms-Spinner-label {\n color: var(--spinner-text);\n}\n\n@media screen and (forced-colors: active) {\n .ms-ContextualMenu button:hover .ms-ContextualMenu-itemText,\n .ms-ContextualMenu button:hover .ms-ContextualMenu-linkText {\n color: highlight;\n }\n}\n\n.guidance-tags span {\n font-size: 12px;\n font-weight: normal;\n padding-top: 2px;\n padding-right: 12px;\n padding-bottom: 2px;\n padding-left: 12px;\n color: var(--pill);\n background-color: var(--pill-background);\n border-radius: 120px;\n}\n\n.hidden-highlight-button {\n opacity: 0;\n margin: 0;\n padding: 0;\n border: none;\n}\n\n.instance-details-card {\n border-radius: 4px;\n border: 1px solid var(--card-border);\n outline-style: \"border-style\";\n box-shadow: 0 0.6px 1.8px var(--box-shadow-108), 0 3.2px 7.2px var(--box-shadow-132);\n margin-bottom: 16px;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n}\n\n.instance-details-card-container.selected {\n outline: 5px solid var(--communication-tint-10);\n}\n\n.instance-details-card.selected {\n border: 1px solid transparent;\n}\n\n.instance-details-card.focused,\n.instance-details-card:focus {\n outline: 2px solid var(--primary-text);\n outline-offset: 2px;\n}\n\n.instance-details-card.selected.focused,\n.instance-details-card.selected:focus {\n outline-offset: 8px;\n}\n\n.instance-details-card.interactive {\n cursor: pointer;\n}\n\n.instance-details-card.interactive:hover {\n box-shadow: 0 8px 10px var(--box-shadow-108), 0 8px 10px var(--box-shadow-132);\n}\n\n.report-instance-table {\n background: var(--neutral-0);\n display: table;\n table-layout: fixed;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n border-radius: inherit;\n border-collapse: collapse;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.report-instance-table .row {\n display: flex;\n flex-wrap: wrap;\n padding-top: 2px;\n padding-bottom: 14px;\n padding-left: 0;\n padding-right: 20px;\n border-bottom: 0.5px solid var(--neutral-10);\n}\n.report-instance-table .row > * {\n margin-top: 12px;\n margin-bottom: 0;\n margin-left: 20px;\n margin-right: 0;\n padding: 0;\n}\n.report-instance-table .row:last-child {\n border-bottom: none;\n}\n.report-instance-table .row-label {\n flex-basis: 90px;\n flex-shrink: 1;\n flex-grow: 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--primary-text);\n text-align: left;\n}\n.report-instance-table .row-content {\n flex-basis: 200px;\n flex-shrink: 1;\n flex-grow: 1;\n color: var(--secondary-text);\n font-size: 14px;\n line-height: 20px;\n align-items: flex-end;\n display: flex;\n}\n\n.outcome-summary-bar {\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n margin-top: 16px;\n margin-bottom: 0;\n line-height: 24px;\n font-size: 17px;\n font-weight: 600;\n white-space: pre-wrap;\n}\n.outcome-summary-bar .block,\n.outcome-summary-bar .incomplete,\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable,\n.outcome-summary-bar .pass,\n.outcome-summary-bar .fail {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 20px;\n font-size: 16px;\n color: var(--neutral-0);\n padding-top: 8px;\n padding-right: 8px;\n padding-bottom: 10px;\n padding-left: 10px;\n height: 16px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.outcome-summary-bar .count {\n font-weight: 600;\n}\n.outcome-summary-bar .fail {\n background-color: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n bottom: -1px;\n margin-right: 8px;\n}\n.outcome-summary-bar .pass {\n background-color: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable {\n background-color: var(--neutral-outcome);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .incomplete {\n background-color: var(--neutral-outcome);\n color: var(--white);\n border: 2px var(--neutral-60) solid;\n height: 12px;\n}\n.outcome-summary-bar .incomplete .check-container {\n position: relative;\n width: 8px;\n height: 8px;\n display: inline-block;\n border-radius: 50%;\n border: 3px solid var(--neutral-0);\n}\n.outcome-summary-bar .incomplete .check-container {\n margin-right: 6px;\n border-color: var(--white);\n}\n.outcome-summary-bar .summary-bar-left-edge {\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n.outcome-summary-bar .summary-bar-right-edge {\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-right: 0;\n}\n.outcome-summary-bar .label {\n font-weight: normal;\n}\n\n.screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.check-container svg {\n width: 100%;\n height: 100%;\n}\n\n.outcome-chip {\n height: 16px;\n color: var(--primary-text);\n border-radius: 0 8px 8px 0;\n margin-right: 4px;\n margin-bottom: -3px;\n margin-left: 4px;\n display: inline-flex;\n align-items: center;\n}\n.outcome-chip .icon {\n border-radius: 50%;\n width: 16px;\n height: 16px;\n}\n.outcome-chip .count {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 13px;\n font-size: 11px;\n border-radius: 0 8px 8px 0;\n padding-right: 6px;\n padding-left: 10px;\n font-weight: 700;\n margin-left: -8px;\n height: 13px;\n}\n@media screen and (forced-colors: active) {\n .outcome-chip .count {\n forced-color-adjust: none;\n border-color: canvastext !important;\n color: canvastext;\n }\n}\n.outcome-chip.outcome-chip-pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .check-container {\n background-color: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .count {\n background-color: transparent;\n border: 1.5px solid var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n background-color: var(--neutral-60);\n}\n.outcome-chip.outcome-chip-incomplete .count, .outcome-chip.outcome-chip-review .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-60);\n}\n.outcome-chip.outcome-chip-fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .check-container {\n background-color: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .count {\n background-color: transparent;\n border: 1.5px solid var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n background-color: var(--neutral-outcome);\n}\n.outcome-chip.outcome-chip-inapplicable .count, .outcome-chip.outcome-chip-unscannable .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-outcome);\n}\n\n.outcome-icon-set .outcome-icon {\n margin-left: 4px;\n border-radius: 50%;\n}\n.outcome-icon-set .outcome-icon-pass .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n position: relative;\n width: 12px;\n height: 12px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n border-color: var(--neutral-60);\n}\n.outcome-icon-set .outcome-icon-fail .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n\nbody {\n font-size: 14px;\n margin: auto;\n background-color: var(--neutral-2);\n color: black;\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n}\n\n.outer-container {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.outer-container .content-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-top: 24px;\n}\n.outer-container .content-container h2 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n@media only screen and (max-width: 1000px) {\n .outer-container .content-container {\n margin-top: 24px;\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.scan-details-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 22px;\n}\n.scan-details-section .details-section-list {\n list-style: none;\n font-size: 14px;\n line-height: 16px;\n padding-left: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n}\n.scan-details-section h3 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n.scan-details-section li {\n display: inline-block;\n padding-top: 12px;\n}\n.scan-details-section li .icon {\n padding-right: 12px;\n position: relative;\n top: 3px;\n}\n.scan-details-section .text {\n word-break: break-all;\n}\n.scan-details-section .description-text {\n white-space: pre-wrap;\n}\n.scan-details-section .screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.report-footer-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-bottom: 68px;\n margin-top: 24px;\n}\n.report-footer-container .report-footer {\n line-height: 20px;\n color: var(--report-footer-text);\n}\n@media only screen and (max-width: 1000px) {\n .report-footer-container {\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.report-header-command-bar {\n height: 40px;\n width: 100%;\n display: flex;\n justify-content: end;\n min-height: fit-content;\n align-items: center;\n background-color: var(--neutral-0);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.report-header-command-bar .target-page {\n white-space: nowrap;\n margin-left: 16px;\n display: flex;\n color: var(--primary-text);\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n min-width: 0;\n}\n.report-header-command-bar .target-page a {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.report-congrats-message {\n word-break: break-word;\n overflow-wrap: break-word;\n}\n\n.report-congrats-head {\n font-size: 16px;\n font-weight: 600;\n color: var(--primary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.report-congrats-info {\n font-size: 14px;\n color: var(--secondary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.sleeping-ada {\n height: 100px;\n}\n\n.title-section {\n margin-top: 56px;\n}\n.title-section h1 {\n font-weight: 600;\n margin-bottom: 24px;\n font-size: 21px;\n line-height: 32px;\n letter-spacing: -0.02em;\n}\n\n.results-container {\n margin-top: 56px;\n}\n.results-container .title-container :is(h1, h2, h3, h4, h5, h6) {\n font-weight: unset;\n margin-block: 0;\n margin-inline: 0;\n}\n\n@media screen and (max-width: 640px) {\n .outcome-past-tense {\n display: none;\n }\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before, .collapsible-container .collapsible-control[aria-expanded=false]::before {\n display: inline-block;\n border-right: 1px solid var(--secondary-text);\n border-bottom: 1px solid var(--secondary-text);\n min-width: 7px;\n width: 7px;\n height: 7px;\n content: \"\";\n transform-origin: 50% 50%;\n transition: transform 0.1s linear 0s;\n}\n\n.summary-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 24px;\n}\n\n.result-section {\n padding-bottom: 24px;\n}\n.result-section .title-container .collapsible-control::before {\n position: relative;\n bottom: 2px;\n margin-right: 14px;\n}\n.result-section .collapsible-content {\n margin-left: 16px;\n}\n\n.collapsible-container .collapsible-control {\n font-family: \"Segoe UI Web (West European)\", \"Segoe UI\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", Helvetica, Ubuntu, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n background-color: transparent;\n cursor: pointer;\n border: none;\n display: flex;\n align-items: baseline;\n width: 100%;\n}\n.collapsible-container .collapsible-control:hover {\n background-color: var(--neutral-alpha-4);\n}\n.collapsible-container:not(.collapsible-rule-details-group) .collapsible-control {\n padding-left: 2px;\n padding-right: 16px;\n position: relative;\n}\n.collapsible-container .collapsible-control[aria-expanded=false]::before {\n transform: rotate(-45deg);\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before {\n transform: rotate(45deg);\n}\n.collapsible-container .collapsible-content[aria-hidden=true] {\n display: none;\n}\n\nul.instance-details-list {\n list-style-type: none;\n padding-inline-start: unset;\n margin-block-start: unset;\n margin-block-end: unset;\n}\nul.instance-details-list li {\n margin-bottom: 16px;\n}\nul.instance-details-list li:last-child {\n margin-bottom: unset;\n}`;
|
|
2406
|
+
var styleSheet = `:root {\n --black: #000;\n --light-black: #161616;\n --white: #fff;\n --brand-blue: #004880;\n --grey: #333;\n --ada-brand-color: var(--brand-blue);\n --primary-text: rgb(0 0 0 / 90%);\n --secondary-text: rgb(0 0 0 / 70%);\n --disabled-text: rgb(0 0 0 / 38%);\n --communication-primary: #106ebe;\n --communication-tint-40: #eff6fc;\n --communication-tint-30: #deecf9;\n --communication-tint-20: #c7e0f4;\n --communication-tint-10: #2b88d8;\n --communication-shade-20: #004578;\n --neutral-0: var(--white);\n --neutral-2: #f8f8f8;\n --neutral-3: #f6f6f6;\n --neutral-4: #f4f4f4;\n --neutral-6: #f2f2f2;\n --neutral-6-5: #f1f1f1;\n --neutral-8: #ebebeb;\n --neutral-10: #dedede;\n --neutral-20: #c8c8c8;\n --neutral-30: #a6a6a6;\n --neutral-55: #6e6e6e;\n --neutral-60: #666;\n --neutral-70: #3c3c3c;\n --neutral-80: var(--grey);\n --neutral-100: var(--black);\n --neutral-alpha-2: rgb(0 0 0 / 2%);\n --neutral-alpha-4: rgb(0 0 0 / 4%);\n --neutral-alpha-6: rgb(0 0 0 / 6%);\n --neutral-alpha-8: rgb(0 0 0 / 8%);\n --neutral-alpha-10: rgb(0 0 0 / 10%);\n --neutral-alpha-20: rgb(0 0 0 / 20%);\n --neutral-alpha-30: rgb(0 0 0 / 30%);\n --neutral-alpha-60: rgb(0 0 0 / 60%);\n --neutral-alpha-70: rgb(0 0 0 / 70%);\n --neutral-alpha-80: rgb(0 0 0 / 80%);\n --neutral-alpha-90: rgb(0 0 0 / 90%);\n --positive-outcome: #228722;\n --negative-outcome: #e81123;\n --neutral-outcome: var(--neutral-60);\n --box-shadow-108: rgb(0 0 0 / 10.8%);\n --box-shadow-132: rgb(0 0 0 / 13.2%);\n --box-shadow-27: rgb(0 0 0 / 27%);\n --screenshot-image-outline: #8b8b8b;\n --card-border: transparent;\n --card-footer-border: var(--neutral-10);\n --header-bar-title-color: var(--neutral-0);\n --help-links-section-background: var(--neutral-4);\n --help-links-section-border: var(--neutral-4);\n --index-circle-background: var(--communication-primary);\n --link-hover: var(--communication-shade-20);\n --link: var(--communication-primary);\n --menu-border: var(--neutral-3);\n --menu-item-background-active: var(--neutral-alpha-8);\n --menu-item-background-hover: var(--neutral-alpha-4);\n --left-nav-icon: var(--neutral-55);\n --pill-background: var(--neutral-alpha-8);\n --pill: var(--primary-text);\n --spinner-text: var(--communication-primary);\n --nav-link-hover: var(--neutral-alpha-8);\n --nav-link-selected: var(--communication-tint-20);\n --nav-link-expanded: var(--communication-tint-40);\n --insights-button-hover: #0179d4;\n --report-footer-text: #222;\n --landmark-contentinfo: #00a88c;\n --landmark-main: #cb2e6d;\n --landmark-complementary: #6b9d1a;\n --landmark-banner: #d08311;\n --landmark-region: #2560e0;\n --landmark-navigation: #9b38e6;\n --landmark-search: #d363d8;\n --landmark-form: #0298c7;\n}\n:root .high-contrast-theme {\n --ada-brand-color: var(--white);\n --secondary-text: var(--white);\n --primary-text: var(--white);\n --disabled-text: #c285ff;\n --communication-tint-40: #38a9ff;\n --communication-tint-30: var(--communication-tint-10);\n --neutral-0: var(--light-black);\n --neutral-2: var(--light-black);\n --neutral-3: var(--light-black);\n --neutral-4: var(--light-black);\n --neutral-6: var(--light-black);\n --neutral-6-5: var(--light-black);\n --neutral-8: var(--white);\n --neutral-10: var(--light-black);\n --neutral-20: var(--white);\n --neutral-30: var(--white);\n --neutral-55: var(--white);\n --neutral-60: var(--white);\n --neutral-70: var(--white);\n --neutral-80: var(--white);\n --neutral-100: var(--white);\n --neutral-alpha-8: var(--white);\n --neutral-alpha-90: var(--white);\n --positive-outcome: #4ac94a;\n --negative-outcome: #fc7ab1;\n --neutral-outcome: var(--neutral-0);\n --card-border: var(--white);\n --card-footer-border: var(--white);\n --header-bar-title-color: var(--brand-blue);\n --help-links-section-background: transparent;\n --help-links-section-border: var(--white);\n --index-circle-background: var(--communication-tint-40);\n --link-hover: #ff0;\n --link: #ff0;\n --menu-border: var(--grey);\n --menu-item-background-active: var(--communication-tint-40);\n --menu-item-background-hover: var(--grey);\n --left-nav-icon: var(--black);\n --pill-background: var(--white);\n --pill: var(--black);\n --screenshot-image-outline: var(--white);\n --spinner-text: var(--communication-tint-40);\n --nav-link-hover: #2a2a2a;\n --nav-link-selected: var(--communication-tint-40);\n --nav-link-expanded: transparent;\n}\n\n.ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px solid var(--neutral-100);\n}\n@media screen and (forced-colors: active) {\n .ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px dashed windowtext !important;\n }\n}\n\nbutton::after {\n content: \"\";\n position: absolute;\n}\n\n.ms-fontColor-neutralPrimary,\n.ms-fontColor-neutralPrimary--hover:hover {\n color: var(--neutral-100) !important;\n}\n\n.ms-Fabric {\n color: var(--neutral-100);\n}\n\n.insights-link {\n color: var(--link) !important;\n text-decoration: none;\n}\n@media screen and (forced-colors: active) {\n .insights-link {\n forced-color-adjust: unset;\n }\n}\n.insights-link:hover {\n color: var(--link-hover) !important;\n text-decoration: underline;\n}\n\n.high-contrast-theme .insights-link:hover {\n text-decoration: underline;\n}\n.high-contrast-theme .is-selected .status-icon {\n color: var(--black) !important;\n}\n\n.insights-code {\n font-family: menlo, consolas, courier new, monospace;\n}\n\n.ms-Spinner .ms-Spinner-circle {\n border-top-color: var(--spinner-text);\n}\n.ms-Spinner .ms-Spinner-label {\n color: var(--spinner-text);\n}\n\n@media screen and (forced-colors: active) {\n .ms-ContextualMenu button:hover .ms-ContextualMenu-itemText,\n .ms-ContextualMenu button:hover .ms-ContextualMenu-linkText {\n color: highlight;\n }\n}\n\n.guidance-tags span {\n font-size: 12px;\n font-weight: normal;\n padding-top: 2px;\n padding-right: 12px;\n padding-bottom: 2px;\n padding-left: 12px;\n color: var(--pill);\n background-color: var(--pill-background);\n border-radius: 120px;\n}\n\n.hidden-highlight-button {\n opacity: 0;\n margin: 0;\n padding: 0;\n border: none;\n}\n\n.instance-details-card {\n border-radius: 4px;\n border: 1px solid var(--card-border);\n outline-style: \"border-style\";\n box-shadow: 0 0.6px 1.8px var(--box-shadow-108), 0 3.2px 7.2px var(--box-shadow-132);\n margin-bottom: 16px;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n}\n\n.instance-details-card-container.selected {\n outline: 5px solid var(--communication-tint-10);\n}\n\n.instance-details-card.selected {\n border: 1px solid transparent;\n}\n\n.instance-details-card.focused,\n.instance-details-card:focus {\n outline: 2px solid var(--primary-text);\n outline-offset: 2px;\n}\n\n.instance-details-card.selected.focused,\n.instance-details-card.selected:focus {\n outline-offset: 8px;\n}\n\n.instance-details-card.interactive {\n cursor: pointer;\n}\n\n.instance-details-card.interactive:hover {\n box-shadow: 0 8px 10px var(--box-shadow-108), 0 8px 10px var(--box-shadow-132);\n}\n\n.report-instance-table {\n background: var(--neutral-0);\n display: table;\n table-layout: fixed;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n border-radius: inherit;\n border-collapse: collapse;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.report-instance-table .row {\n display: flex;\n flex-wrap: wrap;\n padding-top: 2px;\n padding-bottom: 14px;\n padding-left: 0;\n padding-right: 20px;\n border-bottom: 0.5px solid var(--neutral-10);\n}\n.report-instance-table .row > * {\n margin-top: 12px;\n margin-bottom: 0;\n margin-left: 20px;\n margin-right: 0;\n padding: 0;\n}\n.report-instance-table .row:last-child {\n border-bottom: none;\n}\n.report-instance-table .row-label {\n flex-basis: 90px;\n flex-shrink: 1;\n flex-grow: 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--primary-text);\n text-align: left;\n}\n.report-instance-table .row-content {\n flex-basis: 200px;\n flex-shrink: 1;\n flex-grow: 1;\n color: var(--secondary-text);\n font-size: 14px;\n line-height: 20px;\n align-items: flex-end;\n display: flex;\n}\n\n.outcome-summary-bar {\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n margin-top: 16px;\n margin-bottom: 0;\n line-height: 24px;\n font-size: 17px;\n font-weight: 600;\n white-space: pre-wrap;\n}\n.outcome-summary-bar .block,\n.outcome-summary-bar .incomplete,\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable,\n.outcome-summary-bar .pass,\n.outcome-summary-bar .fail {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 20px;\n font-size: 16px;\n color: var(--neutral-0);\n padding-top: 8px;\n padding-right: 8px;\n padding-bottom: 10px;\n padding-left: 10px;\n height: 16px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.outcome-summary-bar .count {\n font-weight: 600;\n}\n.outcome-summary-bar .fail {\n background-color: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n bottom: -1px;\n margin-right: 8px;\n}\n.outcome-summary-bar .pass {\n background-color: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable {\n background-color: var(--neutral-outcome);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .incomplete {\n background-color: var(--neutral-outcome);\n color: var(--white);\n border: 2px var(--neutral-60) solid;\n height: 12px;\n}\n.outcome-summary-bar .incomplete .check-container {\n position: relative;\n width: 8px;\n height: 8px;\n display: inline-block;\n border-radius: 50%;\n border: 3px solid var(--neutral-0);\n}\n.outcome-summary-bar .incomplete .check-container {\n margin-right: 6px;\n border-color: var(--white);\n}\n.outcome-summary-bar .summary-bar-left-edge {\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n.outcome-summary-bar .summary-bar-right-edge {\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-right: 0;\n}\n.outcome-summary-bar .label {\n font-weight: normal;\n}\n\n.screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.check-container svg {\n width: 100%;\n height: 100%;\n}\n\n.outcome-chip {\n height: 16px;\n color: var(--primary-text);\n border-radius: 0 8px 8px 0;\n margin-right: 4px;\n margin-bottom: -3px;\n margin-left: 4px;\n display: inline-flex;\n align-items: center;\n}\n.outcome-chip .icon {\n border-radius: 50%;\n width: 16px;\n height: 16px;\n}\n.outcome-chip .count {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 13px;\n font-size: 11px;\n border-radius: 0 8px 8px 0;\n padding-right: 6px;\n padding-left: 10px;\n font-weight: 700;\n margin-left: -8px;\n height: 13px;\n}\n@media screen and (forced-colors: active) {\n .outcome-chip .count {\n forced-color-adjust: none;\n border-color: canvastext !important;\n color: canvastext;\n }\n}\n.outcome-chip.outcome-chip-pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .check-container {\n background-color: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .count {\n background-color: transparent;\n border: 1.5px solid var(--positive-outcome);\n width: max-content;\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n background-color: var(--neutral-60);\n}\n.outcome-chip.outcome-chip-incomplete .count, .outcome-chip.outcome-chip-review .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-60);\n width: max-content;\n}\n.outcome-chip.outcome-chip-fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .check-container {\n background-color: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .count {\n background-color: transparent;\n border: 1.5px solid var(--negative-outcome);\n width: max-content;\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n background-color: var(--neutral-outcome);\n}\n.outcome-chip.outcome-chip-inapplicable .count, .outcome-chip.outcome-chip-unscannable .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-outcome);\n width: max-content;\n}\n\n.outcome-icon-set .outcome-icon {\n margin-left: 4px;\n border-radius: 50%;\n}\n.outcome-icon-set .outcome-icon-pass .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n position: relative;\n width: 12px;\n height: 12px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n border-color: var(--neutral-60);\n}\n.outcome-icon-set .outcome-icon-fail .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n\nbody {\n font-size: 14px;\n margin: auto;\n background-color: var(--neutral-2);\n color: black;\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n}\n\n.outer-container {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.outer-container .content-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-top: 24px;\n}\n.outer-container .content-container h2 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n@media only screen and (max-width: 1000px) {\n .outer-container .content-container {\n margin-top: 24px;\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.scan-details-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 22px;\n}\n.scan-details-section .details-section-list {\n list-style: none;\n font-size: 14px;\n line-height: 16px;\n padding-left: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n}\n.scan-details-section h3 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n.scan-details-section li {\n display: inline-block;\n padding-top: 12px;\n}\n.scan-details-section li .icon {\n padding-right: 12px;\n position: relative;\n top: 3px;\n}\n.scan-details-section .text {\n word-break: break-all;\n}\n.scan-details-section .description-text {\n white-space: pre-wrap;\n}\n.scan-details-section .screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.report-footer-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-bottom: 68px;\n margin-top: 24px;\n}\n.report-footer-container .report-footer {\n line-height: 20px;\n color: var(--report-footer-text);\n}\n@media only screen and (max-width: 1000px) {\n .report-footer-container {\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.report-header-command-bar {\n height: 40px;\n width: 100%;\n display: flex;\n justify-content: end;\n min-height: fit-content;\n align-items: center;\n background-color: var(--neutral-0);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.report-header-command-bar .target-page {\n white-space: nowrap;\n margin-left: 16px;\n display: flex;\n color: var(--primary-text);\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n min-width: 0;\n}\n.report-header-command-bar .target-page a {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.report-congrats-message {\n word-break: break-word;\n overflow-wrap: break-word;\n}\n\n.report-congrats-head {\n font-size: 16px;\n font-weight: 600;\n color: var(--primary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.report-congrats-info {\n font-size: 14px;\n color: var(--secondary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.sleeping-ada {\n height: 100px;\n}\n\n.title-section {\n margin-top: 56px;\n}\n.title-section h1 {\n font-weight: 600;\n margin-bottom: 24px;\n font-size: 21px;\n line-height: 32px;\n letter-spacing: -0.02em;\n}\n\n.results-container {\n margin-top: 56px;\n}\n.results-container .title-container :is(h1, h2, h3, h4, h5, h6) {\n font-weight: unset;\n margin-block: 0;\n margin-inline: 0;\n}\n\n@media screen and (max-width: 640px) {\n .outcome-past-tense {\n display: none;\n }\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before, .collapsible-container .collapsible-control[aria-expanded=false]::before {\n display: inline-block;\n border-right: 1px solid var(--secondary-text);\n border-bottom: 1px solid var(--secondary-text);\n min-width: 7px;\n width: 7px;\n height: 7px;\n content: \"\";\n transform-origin: 50% 50%;\n transition: transform 0.1s linear 0s;\n}\n\n.summary-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 24px;\n}\n\n.result-section {\n padding-bottom: 24px;\n}\n.result-section .title-container .collapsible-control::before {\n position: relative;\n bottom: 2px;\n margin-right: 14px;\n}\n.result-section .collapsible-content {\n margin-left: 16px;\n}\n\n.collapsible-container .collapsible-control {\n font-family: \"Segoe UI Web (West European)\", \"Segoe UI\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", Helvetica, Ubuntu, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n background-color: transparent;\n cursor: pointer;\n border: none;\n display: flex;\n align-items: baseline;\n width: 100%;\n}\n.collapsible-container .collapsible-control:hover {\n background-color: var(--neutral-alpha-4);\n}\n.collapsible-container:not(.collapsible-rule-details-group) .collapsible-control {\n padding-left: 2px;\n padding-right: 16px;\n position: relative;\n}\n.collapsible-container .collapsible-control[aria-expanded=false]::before {\n transform: rotate(-45deg);\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before {\n transform: rotate(45deg);\n}\n.collapsible-container .collapsible-content[aria-hidden=true] {\n display: none;\n}\n\nul.instance-details-list {\n list-style-type: none;\n padding-inline-start: unset;\n margin-block-start: unset;\n margin-block-end: unset;\n}\nul.instance-details-list li {\n margin-bottom: 16px;\n}\nul.instance-details-list li:last-child {\n margin-bottom: unset;\n}`;
|
|
2459
2407
|
|
|
2460
2408
|
// src/reports/components/head.tsx
|
|
2461
2409
|
var Head = NamedFC("Head", (props) => {
|
|
2462
|
-
return /* @__PURE__ */ React43.createElement("head", null, /* @__PURE__ */ React43.createElement("meta", {
|
|
2463
|
-
charSet: "UTF-8"
|
|
2464
|
-
}), /* @__PURE__ */ React43.createElement("title", null, props.titlePreface, " ", props.title), /* @__PURE__ */ React43.createElement("style", {
|
|
2465
|
-
dangerouslySetInnerHTML: { __html: styleSheet }
|
|
2466
|
-
}), /* @__PURE__ */ React43.createElement("style", {
|
|
2467
|
-
dangerouslySetInnerHTML: { __html: props.bundledStyles.styleSheet }
|
|
2468
|
-
}));
|
|
2410
|
+
return /* @__PURE__ */ React43.createElement("head", null, /* @__PURE__ */ React43.createElement("meta", { charSet: "UTF-8" }), /* @__PURE__ */ React43.createElement("title", null, props.titlePreface, " ", props.title), /* @__PURE__ */ React43.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet } }), /* @__PURE__ */ React43.createElement("style", { dangerouslySetInnerHTML: { __html: props.bundledStyles.styleSheet } }));
|
|
2469
2411
|
});
|
|
2470
2412
|
|
|
2471
2413
|
// src/reports/bundled-reporter-styles.ts
|
|
@@ -2477,11 +2419,14 @@ var styleSheet2 = `/* css-modules:src/common/components/heading-element-for-leve
|
|
|
2477
2419
|
|
|
2478
2420
|
// src/reports/components/reporter-automated-check-head.tsx
|
|
2479
2421
|
var ReporterHead = NamedFC("ReporterHead", () => {
|
|
2480
|
-
return /* @__PURE__ */ React44.createElement(
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2422
|
+
return /* @__PURE__ */ React44.createElement(
|
|
2423
|
+
Head,
|
|
2424
|
+
{
|
|
2425
|
+
titlePreface: brand,
|
|
2426
|
+
bundledStyles: bundled_reporter_styles_exports,
|
|
2427
|
+
title: "automated checks result"
|
|
2428
|
+
}
|
|
2429
|
+
);
|
|
2485
2430
|
});
|
|
2486
2431
|
|
|
2487
2432
|
// src/reports/package/footer-text-for-service.tsx
|
|
@@ -2489,11 +2434,15 @@ var React46 = __toESM(require("react"));
|
|
|
2489
2434
|
|
|
2490
2435
|
// src/reports/components/report-sections/tool-link.tsx
|
|
2491
2436
|
var React45 = __toESM(require("react"));
|
|
2492
|
-
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React45.createElement(
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2437
|
+
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React45.createElement(
|
|
2438
|
+
NewTabLink,
|
|
2439
|
+
{
|
|
2440
|
+
className: "tool-name-link",
|
|
2441
|
+
href: "http://aka.ms/AccessibilityInsights",
|
|
2442
|
+
title: `Get more information and download ${toolName}`
|
|
2443
|
+
},
|
|
2444
|
+
"http://aka.ms/AccessibilityInsights"
|
|
2445
|
+
));
|
|
2497
2446
|
|
|
2498
2447
|
// src/reports/package/footer-text-for-service.tsx
|
|
2499
2448
|
var FooterTextForService = NamedFC("FooterTextForService", ({ scanMetadata }) => {
|
|
@@ -2504,9 +2453,7 @@ var FooterTextForService = NamedFC("FooterTextForService", ({ scanMetadata }) =>
|
|
|
2504
2453
|
// src/reports/components/report-sections/automated-checks-title-section.tsx
|
|
2505
2454
|
var React47 = __toESM(require("react"));
|
|
2506
2455
|
var AutomatedChecksTitleSection = NamedFC("AutomatedChecksTitleSection", () => {
|
|
2507
|
-
return /* @__PURE__ */ React47.createElement("div", {
|
|
2508
|
-
className: "title-section"
|
|
2509
|
-
}, /* @__PURE__ */ React47.createElement("h1", null, "Automated checks results"));
|
|
2456
|
+
return /* @__PURE__ */ React47.createElement("div", { className: "title-section" }, /* @__PURE__ */ React47.createElement("h1", null, "Automated checks results"));
|
|
2510
2457
|
});
|
|
2511
2458
|
|
|
2512
2459
|
// src/reports/components/report-sections/body-section.tsx
|
|
@@ -2518,11 +2465,7 @@ var BodySection = NamedFC("BodySection", ({ children }) => {
|
|
|
2518
2465
|
// src/reports/components/report-sections/content-container.tsx
|
|
2519
2466
|
var React49 = __toESM(require("react"));
|
|
2520
2467
|
var ContentContainer = NamedFC("ContentSection", ({ children }) => {
|
|
2521
|
-
return /* @__PURE__ */ React49.createElement("main", {
|
|
2522
|
-
className: "outer-container"
|
|
2523
|
-
}, /* @__PURE__ */ React49.createElement("div", {
|
|
2524
|
-
className: "content-container"
|
|
2525
|
-
}, children));
|
|
2468
|
+
return /* @__PURE__ */ React49.createElement("main", { className: "outer-container" }, /* @__PURE__ */ React49.createElement("div", { className: "content-container" }, children));
|
|
2526
2469
|
});
|
|
2527
2470
|
|
|
2528
2471
|
// src/reports/components/report-sections/details-section.tsx
|
|
@@ -2534,52 +2477,53 @@ var import_utilities6 = require("@fluentui/utilities");
|
|
|
2534
2477
|
// src/common/icons/comment-icon.tsx
|
|
2535
2478
|
var React50 = __toESM(require("react"));
|
|
2536
2479
|
var d = "M16 11.2891V0.289062H-7.62939e-06V11.2891H1.99999V15L5.71093 11.2891H16ZM1 1.28906H15L15 10.2891H5.28906L3 12.5781V10.2891H1V1.28906ZM9.99999 6.28906H8.99999V4.28906H11V6.28906C11 6.42969 10.974 6.55859 10.9219 6.67969C10.8698 6.80078 10.7982 6.90625 10.707 6.99609C10.6159 7.08594 10.5104 7.16016 10.3906 7.21094C10.2708 7.26172 10.1406 7.28906 9.99999 7.28906V6.28906ZM4.99999 6.28906H5.99999V7.28906C6.14062 7.28906 6.27083 7.26172 6.39062 7.21094C6.51041 7.16016 6.61588 7.08594 6.70702 6.99609C6.79817 6.90625 6.86978 6.80078 6.92187 6.67969C6.97395 6.55859 6.99999 6.42969 6.99999 6.28906V4.28906H4.99999V6.28906Z";
|
|
2537
|
-
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React50.createElement(
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
d,
|
|
2549
|
-
|
|
2550
|
-
})));
|
|
2480
|
+
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React50.createElement(
|
|
2481
|
+
"svg",
|
|
2482
|
+
{
|
|
2483
|
+
width: "17",
|
|
2484
|
+
height: "16",
|
|
2485
|
+
viewBox: "0 0 16 15",
|
|
2486
|
+
fill: "none",
|
|
2487
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2488
|
+
role: "img",
|
|
2489
|
+
"aria-hidden": "true"
|
|
2490
|
+
},
|
|
2491
|
+
/* @__PURE__ */ React50.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d, fill: "#737373" })
|
|
2492
|
+
));
|
|
2551
2493
|
|
|
2552
2494
|
// src/common/icons/date-icon.tsx
|
|
2553
2495
|
var React51 = __toESM(require("react"));
|
|
2554
2496
|
var d2 = "M8.82353 16C8.09697 16 7.39677 15.9062 6.72294 15.7188C6.05497 15.5312 5.42802 15.2676 4.84208 14.9277C4.26201 14.582 3.73173 14.1719 3.25126 13.6973C2.77665 13.2168 2.3665 12.6865 2.02079 12.1064C1.68095 11.5205 1.41728 10.8936 1.22978 10.2256C1.04228 9.55176 0.948529 8.85156 0.948529 8.125C0.948529 7.39844 1.04228 6.70117 1.22978 6.0332C1.41728 5.35937 1.68095 4.73242 2.02079 4.15234C2.3665 3.56641 2.77665 3.03613 3.25126 2.56152C3.73173 2.08105 4.26201 1.6709 4.84208 1.33105C5.42802 0.985352 6.05497 0.71875 6.72294 0.53125C7.39677 0.34375 8.09697 0.25 8.82353 0.25C9.55009 0.25 10.2474 0.34375 10.9153 0.53125C11.5892 0.71875 12.2161 0.985352 12.7962 1.33105C13.3821 1.6709 13.9124 2.08105 14.387 2.56152C14.8675 3.03613 15.2776 3.56641 15.6175 4.15234C15.9632 4.73242 16.2298 5.35937 16.4173 6.0332C16.6048 6.70117 16.6985 7.39844 16.6985 8.125C16.6985 8.85156 16.6048 9.55176 16.4173 10.2256C16.2298 10.8936 15.9632 11.5205 15.6175 12.1064C15.2776 12.6865 14.8675 13.2168 14.387 13.6973C13.9124 14.1719 13.3821 14.582 12.7962 14.9277C12.2161 15.2676 11.5892 15.5312 10.9153 15.7188C10.2474 15.9062 9.55009 16 8.82353 16ZM8.82353 1.375C7.89189 1.375 7.01591 1.55371 6.1956 1.91113C5.38115 2.2627 4.6663 2.74609 4.05107 3.36133C3.44169 3.9707 2.95829 4.68555 2.60087 5.50586C2.24931 6.32031 2.07353 7.19336 2.07353 8.125C2.07353 9.05664 2.24931 9.93262 2.60087 10.7529C2.95829 11.5674 3.44169 12.2822 4.05107 12.8975C4.6663 13.5068 5.38115 13.9902 6.1956 14.3477C7.01591 14.6992 7.89189 14.875 8.82353 14.875C9.75517 14.875 10.6282 14.6992 11.4427 14.3477C12.263 13.9902 12.9778 13.5068 13.5872 12.8975C14.2024 12.2822 14.6858 11.5674 15.0374 10.7529C15.3948 9.93262 15.5735 9.05664 15.5735 8.125C15.5735 7.19336 15.3948 6.32031 15.0374 5.50586C14.6858 4.68555 14.2024 3.9707 13.5872 3.36133C12.9778 2.74609 12.263 2.2627 11.4427 1.91113C10.6282 1.55371 9.75517 1.375 8.82353 1.375ZM8.82353 8.125V3.625H7.69853V9.25H12.1985V8.125H8.82353Z";
|
|
2555
|
-
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React51.createElement(
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
})
|
|
2497
|
+
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React51.createElement(
|
|
2498
|
+
"svg",
|
|
2499
|
+
{
|
|
2500
|
+
width: "17",
|
|
2501
|
+
height: "16",
|
|
2502
|
+
viewBox: "0 0 17 16",
|
|
2503
|
+
fill: "none",
|
|
2504
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2505
|
+
role: "img",
|
|
2506
|
+
"aria-hidden": "true"
|
|
2507
|
+
},
|
|
2508
|
+
/* @__PURE__ */ React51.createElement("path", { d: d2, fill: "#737373" })
|
|
2509
|
+
));
|
|
2567
2510
|
|
|
2568
2511
|
// src/common/icons/url-icon.tsx
|
|
2569
2512
|
var React52 = __toESM(require("react"));
|
|
2570
2513
|
var d3 = "M8.82353 0C9.5579 0 10.2662 0.0963542 10.9485 0.289062C11.6308 0.476562 12.2688 0.744792 12.8626 1.09375C13.4563 1.4375 13.9954 1.85417 14.4798 2.34375C14.9694 2.82812 15.386 3.36719 15.7298 3.96094C16.0787 4.55469 16.347 5.19271 16.5345 5.875C16.7272 6.55729 16.8235 7.26562 16.8235 8C16.8235 8.73438 16.7272 9.44271 16.5345 10.125C16.347 10.8073 16.0787 11.4453 15.7298 12.0391C15.386 12.6328 14.9694 13.1745 14.4798 13.6641C13.9954 14.1484 13.4563 14.5651 12.8626 14.9141C12.2688 15.2578 11.6308 15.526 10.9485 15.7188C10.2662 15.9062 9.5579 16 8.82353 16C8.08915 16 7.38082 15.9062 6.69853 15.7188C6.01624 15.526 5.37822 15.2578 4.78447 14.9141C4.19072 14.5651 3.64905 14.1484 3.15947 13.6641C2.67509 13.1745 2.25843 12.6328 1.90947 12.0391C1.56572 11.4453 1.29749 10.8099 1.10478 10.1328C0.917279 9.45052 0.823529 8.73958 0.823529 8C0.823529 7.26562 0.917279 6.55729 1.10478 5.875C1.29749 5.19271 1.56572 4.55469 1.90947 3.96094C2.25843 3.36719 2.67509 2.82812 3.15947 2.34375C3.64905 1.85417 4.19072 1.4375 4.78447 1.09375C5.37822 0.744792 6.01363 0.476562 6.69072 0.289062C7.37301 0.0963542 8.08395 0 8.82353 0ZM15.1438 5C14.9459 4.57812 14.7063 4.18229 14.4251 3.8125C14.1438 3.4375 13.8313 3.09635 13.4876 2.78906C13.1438 2.48177 12.7714 2.20833 12.3704 1.96875C11.9694 1.72917 11.5501 1.53385 11.1126 1.38281C11.3001 1.64323 11.4694 1.91927 11.6204 2.21094C11.7714 2.5026 11.9043 2.80469 12.0188 3.11719C12.1386 3.42448 12.2402 3.73698 12.3235 4.05469C12.4069 4.3724 12.4798 4.6875 12.5423 5H15.1438ZM15.8235 8C15.8235 7.30729 15.7272 6.64062 15.5345 6H12.6985C12.7402 6.33333 12.7714 6.66667 12.7923 7C12.8131 7.32812 12.8235 7.66146 12.8235 8C12.8235 8.33854 12.8131 8.67448 12.7923 9.00781C12.7714 9.33594 12.7402 9.66667 12.6985 10H15.5345C15.7272 9.35938 15.8235 8.69271 15.8235 8ZM8.82353 15C9.07874 15 9.31572 14.9297 9.53447 14.7891C9.75843 14.6484 9.96415 14.4635 10.1517 14.2344C10.3392 14.0052 10.5058 13.7474 10.6517 13.4609C10.8027 13.1693 10.9355 12.875 11.0501 12.5781C11.1647 12.2812 11.261 11.9948 11.3392 11.7188C11.4173 11.4427 11.4772 11.2031 11.5188 11H6.12822C6.16988 11.2031 6.22978 11.4427 6.3079 11.7188C6.38603 11.9948 6.48238 12.2812 6.59697 12.5781C6.71155 12.875 6.84176 13.1693 6.98759 13.4609C7.13863 13.7474 7.3079 14.0052 7.4954 14.2344C7.6829 14.4635 7.88603 14.6484 8.10478 14.7891C8.32874 14.9297 8.56832 15 8.82353 15ZM11.6907 10C11.7324 9.66667 11.7636 9.33594 11.7845 9.00781C11.8105 8.67448 11.8235 8.33854 11.8235 8C11.8235 7.66146 11.8105 7.32812 11.7845 7C11.7636 6.66667 11.7324 6.33333 11.6907 6H5.95634C5.91468 6.33333 5.88082 6.66667 5.85478 7C5.83395 7.32812 5.82353 7.66146 5.82353 8C5.82353 8.33854 5.83395 8.67448 5.85478 9.00781C5.88082 9.33594 5.91468 9.66667 5.95634 10H11.6907ZM1.82353 8C1.82353 8.69271 1.91988 9.35938 2.11259 10H4.94853C4.90686 9.66667 4.87561 9.33594 4.85478 9.00781C4.83395 8.67448 4.82353 8.33854 4.82353 8C4.82353 7.66146 4.83395 7.32812 4.85478 7C4.87561 6.66667 4.90686 6.33333 4.94853 6H2.11259C1.91988 6.64062 1.82353 7.30729 1.82353 8ZM8.82353 1C8.56832 1 8.32874 1.07031 8.10478 1.21094C7.88603 1.35156 7.6829 1.53646 7.4954 1.76562C7.3079 1.99479 7.13863 2.25521 6.98759 2.54688C6.84176 2.83333 6.71155 3.125 6.59697 3.42188C6.48238 3.71875 6.38603 4.00521 6.3079 4.28125C6.22978 4.55729 6.16988 4.79688 6.12822 5H11.5188C11.4772 4.79688 11.4173 4.55729 11.3392 4.28125C11.261 4.00521 11.1647 3.71875 11.0501 3.42188C10.9355 3.125 10.8027 2.83333 10.6517 2.54688C10.5058 2.25521 10.3392 1.99479 10.1517 1.76562C9.96415 1.53646 9.75843 1.35156 9.53447 1.21094C9.31572 1.07031 9.07874 1 8.82353 1ZM6.53447 1.38281C6.09697 1.53385 5.6777 1.72917 5.27665 1.96875C4.87561 2.20833 4.50322 2.48177 4.15947 2.78906C3.81572 3.09635 3.50322 3.4375 3.22197 3.8125C2.94072 4.18229 2.70113 4.57812 2.50322 5H5.10478C5.16728 4.6875 5.2402 4.3724 5.32353 4.05469C5.40686 3.73698 5.50582 3.42448 5.6204 3.11719C5.7402 2.80469 5.87561 2.5026 6.02665 2.21094C6.1777 1.91927 6.34697 1.64323 6.53447 1.38281ZM2.50322 11C2.70113 11.4219 2.94072 11.8203 3.22197 12.1953C3.50322 12.5651 3.81572 12.9036 4.15947 13.2109C4.50322 13.5182 4.87561 13.7917 5.27665 14.0312C5.6777 14.2708 6.09697 14.4661 6.53447 14.6172C6.34697 14.3568 6.1777 14.0807 6.02665 13.7891C5.87561 13.4974 5.7402 13.1979 5.6204 12.8906C5.50582 12.5781 5.40686 12.263 5.32353 11.9453C5.2402 11.6276 5.16728 11.3125 5.10478 11H2.50322ZM11.1126 14.6172C11.5501 14.4661 11.9694 14.2708 12.3704 14.0312C12.7714 13.7917 13.1438 13.5182 13.4876 13.2109C13.8313 12.9036 14.1438 12.5651 14.4251 12.1953C14.7063 11.8203 14.9459 11.4219 15.1438 11H12.5423C12.4798 11.3125 12.4069 11.6276 12.3235 11.9453C12.2402 12.263 12.1386 12.5781 12.0188 12.8906C11.9043 13.1979 11.7714 13.4974 11.6204 13.7891C11.4694 14.0807 11.3001 14.3568 11.1126 14.6172Z";
|
|
2571
|
-
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React52.createElement(
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
})
|
|
2514
|
+
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React52.createElement(
|
|
2515
|
+
"svg",
|
|
2516
|
+
{
|
|
2517
|
+
width: "17",
|
|
2518
|
+
height: "16",
|
|
2519
|
+
viewBox: "0 0 17 16",
|
|
2520
|
+
fill: "none",
|
|
2521
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2522
|
+
role: "img",
|
|
2523
|
+
"aria-hidden": "true"
|
|
2524
|
+
},
|
|
2525
|
+
/* @__PURE__ */ React52.createElement("path", { d: d3, fill: "#737373" })
|
|
2526
|
+
));
|
|
2583
2527
|
|
|
2584
2528
|
// src/reports/components/report-sections/make-details-section-fc.tsx
|
|
2585
2529
|
var import_lodash10 = require("lodash");
|
|
@@ -2587,21 +2531,11 @@ var React53 = __toESM(require("react"));
|
|
|
2587
2531
|
function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
2588
2532
|
return NamedFC("DetailsSection", (props) => {
|
|
2589
2533
|
const { scanMetadata, description, toUtcString } = props;
|
|
2590
|
-
const createListItem = (icon, label, content, contentClassName) => /* @__PURE__ */ React53.createElement("li", null, /* @__PURE__ */ React53.createElement("span", {
|
|
2591
|
-
className: "icon"
|
|
2592
|
-
}, icon), /* @__PURE__ */ React53.createElement("span", {
|
|
2593
|
-
className: "screen-reader-only"
|
|
2594
|
-
}, label), /* @__PURE__ */ React53.createElement("span", {
|
|
2595
|
-
className: (0, import_utilities6.css)("text", contentClassName)
|
|
2596
|
-
}, content));
|
|
2534
|
+
const createListItem = (icon, label, content, contentClassName) => /* @__PURE__ */ React53.createElement("li", null, /* @__PURE__ */ React53.createElement("span", { className: "icon" }, icon), /* @__PURE__ */ React53.createElement("span", { className: "screen-reader-only" }, label), /* @__PURE__ */ React53.createElement("span", { className: (0, import_utilities6.css)("text", contentClassName) }, content));
|
|
2597
2535
|
const scanDateUTC = toUtcString(scanMetadata.timespan.scanComplete);
|
|
2598
2536
|
const showCommentRow = !(0, import_lodash10.isEmpty)(description);
|
|
2599
2537
|
const displayedScanTargetInfo = getDisplayedScanTargetInfo(scanMetadata);
|
|
2600
|
-
return /* @__PURE__ */ React53.createElement("div", {
|
|
2601
|
-
className: "scan-details-section"
|
|
2602
|
-
}, /* @__PURE__ */ React53.createElement("h2", null, "Scan details"), /* @__PURE__ */ React53.createElement("ul", {
|
|
2603
|
-
className: "details-section-list"
|
|
2604
|
-
}, createListItem(
|
|
2538
|
+
return /* @__PURE__ */ React53.createElement("div", { className: "scan-details-section" }, /* @__PURE__ */ React53.createElement("h2", null, "Scan details"), /* @__PURE__ */ React53.createElement("ul", { className: "details-section-list" }, createListItem(
|
|
2605
2539
|
/* @__PURE__ */ React53.createElement(UrlIcon, null),
|
|
2606
2540
|
displayedScanTargetInfo.label,
|
|
2607
2541
|
displayedScanTargetInfo.content
|
|
@@ -2618,10 +2552,14 @@ function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
|
2618
2552
|
function getUrlItemInfo(scanMetadata) {
|
|
2619
2553
|
return {
|
|
2620
2554
|
label: "target page url:",
|
|
2621
|
-
content: /* @__PURE__ */ React54.createElement(
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2555
|
+
content: /* @__PURE__ */ React54.createElement(
|
|
2556
|
+
NewTabLinkWithConfirmationDialog,
|
|
2557
|
+
{
|
|
2558
|
+
href: scanMetadata.targetAppInfo.url,
|
|
2559
|
+
title: scanMetadata.targetAppInfo.name
|
|
2560
|
+
},
|
|
2561
|
+
scanMetadata.targetAppInfo.url
|
|
2562
|
+
)
|
|
2625
2563
|
};
|
|
2626
2564
|
}
|
|
2627
2565
|
var DetailsSection = makeDetailsSectionFC(getUrlItemInfo);
|
|
@@ -2646,24 +2584,21 @@ var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
|
2646
2584
|
if (outcomeType !== "fail") {
|
|
2647
2585
|
return null;
|
|
2648
2586
|
}
|
|
2649
|
-
return /* @__PURE__ */ React55.createElement("span", {
|
|
2650
|
-
"aria-hidden": "true"
|
|
2651
|
-
}, /* @__PURE__ */ React55.createElement(OutcomeChip, {
|
|
2652
|
-
count: cardResult.nodes.length,
|
|
2653
|
-
outcomeType
|
|
2654
|
-
}));
|
|
2587
|
+
return /* @__PURE__ */ React55.createElement("span", { "aria-hidden": "true" }, /* @__PURE__ */ React55.createElement(OutcomeChip, { count: cardResult.nodes.length, outcomeType }));
|
|
2655
2588
|
};
|
|
2656
2589
|
const renderRuleLink = () => {
|
|
2657
2590
|
const ruleId = cardResult.id;
|
|
2658
2591
|
const ruleUrl = cardResult.url;
|
|
2659
|
-
const displayedRule = ruleUrl ? /* @__PURE__ */ React55.createElement(
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2592
|
+
const displayedRule = ruleUrl ? /* @__PURE__ */ React55.createElement(
|
|
2593
|
+
NewTabLink,
|
|
2594
|
+
{
|
|
2595
|
+
href: ruleUrl,
|
|
2596
|
+
"aria-label": `rule ${ruleId}`,
|
|
2597
|
+
"aria-describedby": ariaDescribedBy
|
|
2598
|
+
},
|
|
2599
|
+
ruleId
|
|
2600
|
+
) : /* @__PURE__ */ React55.createElement(React55.Fragment, null, ruleId);
|
|
2601
|
+
return /* @__PURE__ */ React55.createElement("span", { className: "rule-details-id" }, displayedRule);
|
|
2667
2602
|
};
|
|
2668
2603
|
const renderGuidanceLinks = () => {
|
|
2669
2604
|
var _a;
|
|
@@ -2671,40 +2606,30 @@ var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
|
2671
2606
|
if ((0, import_lodash11.isEmpty)(links)) {
|
|
2672
2607
|
return null;
|
|
2673
2608
|
}
|
|
2674
|
-
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, "(", /* @__PURE__ */ React55.createElement(GuidanceLinks, {
|
|
2675
|
-
links,
|
|
2676
|
-
LinkComponent: deps.LinkComponent
|
|
2677
|
-
}), ")");
|
|
2609
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, "(", /* @__PURE__ */ React55.createElement(GuidanceLinks, { links, LinkComponent: deps.LinkComponent }), ")");
|
|
2678
2610
|
};
|
|
2679
2611
|
const renderDescription = () => {
|
|
2680
|
-
return /* @__PURE__ */ React55.createElement("span", {
|
|
2681
|
-
className: "rule-details-description",
|
|
2682
|
-
id: ariaDescribedBy
|
|
2683
|
-
}, cardResult.description);
|
|
2612
|
+
return /* @__PURE__ */ React55.createElement("span", { className: "rule-details-description", id: ariaDescribedBy }, cardResult.description);
|
|
2684
2613
|
};
|
|
2685
2614
|
const renderGuidanceTags = () => {
|
|
2686
|
-
return /* @__PURE__ */ React55.createElement(GuidanceTags, {
|
|
2687
|
-
deps,
|
|
2688
|
-
links: cardResult.guidance
|
|
2689
|
-
});
|
|
2615
|
+
return /* @__PURE__ */ React55.createElement(GuidanceTags, { deps, links: cardResult.guidance });
|
|
2690
2616
|
};
|
|
2691
|
-
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement("div", {
|
|
2692
|
-
className: "rule-detail"
|
|
2693
|
-
}, /* @__PURE__ */ React55.createElement("div", null, renderCountBadge(), " ", renderRuleLink(), ": ", renderDescription(), renderGuidanceLinks(), renderGuidanceTags())));
|
|
2617
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement("div", { className: "rule-detail" }, /* @__PURE__ */ React55.createElement("div", null, renderCountBadge(), " ", renderRuleLink(), ": ", renderDescription(), renderGuidanceLinks(), renderGuidanceTags())));
|
|
2694
2618
|
});
|
|
2695
2619
|
|
|
2696
2620
|
// src/reports/components/report-sections/rules-only.tsx
|
|
2697
2621
|
var RulesOnly = NamedFC(
|
|
2698
2622
|
"RulesOnly",
|
|
2699
2623
|
({ outcomeType, deps, cardRuleResults: cardResults }) => {
|
|
2700
|
-
return /* @__PURE__ */ React56.createElement("div", {
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2624
|
+
return /* @__PURE__ */ React56.createElement("div", { className: rules_with_instances_default.ruleDetailsGroup }, cardResults.map((cardRuleResult) => /* @__PURE__ */ React56.createElement(
|
|
2625
|
+
FullRuleHeader,
|
|
2626
|
+
{
|
|
2627
|
+
deps,
|
|
2628
|
+
key: cardRuleResult.id,
|
|
2629
|
+
cardRuleResult,
|
|
2630
|
+
outcomeType
|
|
2631
|
+
}
|
|
2632
|
+
)));
|
|
2708
2633
|
}
|
|
2709
2634
|
);
|
|
2710
2635
|
|
|
@@ -2715,13 +2640,8 @@ var CollapsibleResultSection = NamedFC(
|
|
|
2715
2640
|
const { containerClassName, containerId, deps, cardSelectionMessageCreator, testKey } = props;
|
|
2716
2641
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2717
2642
|
id: containerId,
|
|
2718
|
-
header: /* @__PURE__ */ React57.createElement(ResultSectionTitle, {
|
|
2719
|
-
|
|
2720
|
-
titleSize: "title"
|
|
2721
|
-
}),
|
|
2722
|
-
content: /* @__PURE__ */ React57.createElement(RulesOnly, {
|
|
2723
|
-
...props
|
|
2724
|
-
}),
|
|
2643
|
+
header: /* @__PURE__ */ React57.createElement(ResultSectionTitle, { ...props, titleSize: "title" }),
|
|
2644
|
+
content: /* @__PURE__ */ React57.createElement(RulesOnly, { ...props }),
|
|
2725
2645
|
headingLevel: props.headingLevel,
|
|
2726
2646
|
deps: null,
|
|
2727
2647
|
testKey,
|
|
@@ -2729,9 +2649,7 @@ var CollapsibleResultSection = NamedFC(
|
|
|
2729
2649
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleRuleExpandCollapse(containerId, event);
|
|
2730
2650
|
}
|
|
2731
2651
|
});
|
|
2732
|
-
return /* @__PURE__ */ React57.createElement("div", {
|
|
2733
|
-
className: containerClassName
|
|
2734
|
-
}, CollapsibleContent);
|
|
2652
|
+
return /* @__PURE__ */ React57.createElement("div", { className: containerClassName }, CollapsibleContent);
|
|
2735
2653
|
}
|
|
2736
2654
|
);
|
|
2737
2655
|
|
|
@@ -2740,17 +2658,20 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2740
2658
|
"NotApplicableChecksSection",
|
|
2741
2659
|
({ deps, cardsViewData, cardSelectionMessageCreator, sectionHeadingLevel }) => {
|
|
2742
2660
|
const cardRuleResults = cardsViewData.cards.inapplicable;
|
|
2743
|
-
return /* @__PURE__ */ React58.createElement(
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2661
|
+
return /* @__PURE__ */ React58.createElement(
|
|
2662
|
+
CollapsibleResultSection,
|
|
2663
|
+
{
|
|
2664
|
+
deps,
|
|
2665
|
+
title: "Not applicable checks",
|
|
2666
|
+
cardRuleResults,
|
|
2667
|
+
containerClassName: "result-section",
|
|
2668
|
+
outcomeType: "inapplicable",
|
|
2669
|
+
badgeCount: cardRuleResults.length,
|
|
2670
|
+
containerId: "not-applicable-checks-section",
|
|
2671
|
+
cardSelectionMessageCreator,
|
|
2672
|
+
headingLevel: sectionHeadingLevel
|
|
2673
|
+
}
|
|
2674
|
+
);
|
|
2754
2675
|
}
|
|
2755
2676
|
);
|
|
2756
2677
|
|
|
@@ -2761,30 +2682,28 @@ var PassedChecksSection = NamedFC(
|
|
|
2761
2682
|
({ deps, cardsViewData, cardSelectionMessageCreator, testKey, sectionHeadingLevel }) => {
|
|
2762
2683
|
var _a;
|
|
2763
2684
|
const cardRuleResults = ((_a = cardsViewData == null ? void 0 : cardsViewData.cards) == null ? void 0 : _a.pass) ?? [];
|
|
2764
|
-
return /* @__PURE__ */ React59.createElement(
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2685
|
+
return /* @__PURE__ */ React59.createElement(
|
|
2686
|
+
CollapsibleResultSection,
|
|
2687
|
+
{
|
|
2688
|
+
deps,
|
|
2689
|
+
title: "Passed checks",
|
|
2690
|
+
cardRuleResults,
|
|
2691
|
+
containerClassName: "result-section",
|
|
2692
|
+
outcomeType: "pass",
|
|
2693
|
+
badgeCount: cardRuleResults.length,
|
|
2694
|
+
containerId: "passed-checks-section",
|
|
2695
|
+
cardSelectionMessageCreator,
|
|
2696
|
+
testKey,
|
|
2697
|
+
headingLevel: sectionHeadingLevel
|
|
2698
|
+
}
|
|
2699
|
+
);
|
|
2776
2700
|
}
|
|
2777
2701
|
);
|
|
2778
2702
|
|
|
2779
2703
|
// src/reports/components/report-sections/report-footer.tsx
|
|
2780
2704
|
var React60 = __toESM(require("react"));
|
|
2781
2705
|
var ReportFooter = NamedFC("ReportFooter", ({ children }) => {
|
|
2782
|
-
return /* @__PURE__ */ React60.createElement("div", {
|
|
2783
|
-
className: "report-footer-container"
|
|
2784
|
-
}, /* @__PURE__ */ React60.createElement("div", {
|
|
2785
|
-
className: "report-footer",
|
|
2786
|
-
role: "contentinfo"
|
|
2787
|
-
}, children));
|
|
2706
|
+
return /* @__PURE__ */ React60.createElement("div", { className: "report-footer-container" }, /* @__PURE__ */ React60.createElement("div", { className: "report-footer", role: "contentinfo" }, children));
|
|
2788
2707
|
});
|
|
2789
2708
|
|
|
2790
2709
|
// src/reports/components/report-sections/results-container.tsx
|
|
@@ -2792,11 +2711,7 @@ var React61 = __toESM(require("react"));
|
|
|
2792
2711
|
var ResultsContainer = NamedFC(
|
|
2793
2712
|
"ResultsContainer",
|
|
2794
2713
|
({ children, getCollapsibleScript }) => {
|
|
2795
|
-
return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement("div", {
|
|
2796
|
-
className: "results-container"
|
|
2797
|
-
}, children), /* @__PURE__ */ React61.createElement("script", {
|
|
2798
|
-
dangerouslySetInnerHTML: { __html: getCollapsibleScript() }
|
|
2799
|
-
}));
|
|
2714
|
+
return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement("div", { className: "results-container" }, children), /* @__PURE__ */ React61.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
2800
2715
|
}
|
|
2801
2716
|
);
|
|
2802
2717
|
|
|
@@ -2831,27 +2746,24 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2831
2746
|
return null;
|
|
2832
2747
|
}
|
|
2833
2748
|
const outcomePastTense = outcomeTypeSemantics[outcomeType].pastTense;
|
|
2834
|
-
return /* @__PURE__ */ React62.createElement("span", {
|
|
2835
|
-
className: "label"
|
|
2836
|
-
}, ` ${outcomePastTense}`);
|
|
2749
|
+
return /* @__PURE__ */ React62.createElement("span", { className: "label" }, ` ${outcomePastTense}`);
|
|
2837
2750
|
};
|
|
2838
|
-
return /* @__PURE__ */ React62.createElement(
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
}));
|
|
2751
|
+
return /* @__PURE__ */ React62.createElement(
|
|
2752
|
+
"div",
|
|
2753
|
+
{
|
|
2754
|
+
className: "outcome-summary-bar",
|
|
2755
|
+
"aria-label": getLabel(),
|
|
2756
|
+
role: "img",
|
|
2757
|
+
"data-automation-id": outcomeSummaryBarAutomationId
|
|
2758
|
+
},
|
|
2759
|
+
props.allOutcomeTypes.map((outcomeType, index) => {
|
|
2760
|
+
const { iconStyleInverted, countSuffix } = props;
|
|
2761
|
+
const iconMap = iconStyleInverted === true ? outcomeIconMapInverted : outcomeIconMap;
|
|
2762
|
+
const outcomeIcon = iconMap[outcomeType];
|
|
2763
|
+
const count = props.outcomeStats[outcomeType];
|
|
2764
|
+
return /* @__PURE__ */ React62.createElement("div", { key: outcomeType, style: { flexGrow: count } }, /* @__PURE__ */ React62.createElement("span", { className: getClassNames(outcomeType, index) }, outcomeIcon, count, countSuffix, getTextLabel(outcomeType)));
|
|
2765
|
+
})
|
|
2766
|
+
);
|
|
2855
2767
|
});
|
|
2856
2768
|
|
|
2857
2769
|
// src/reports/components/report-sections/summary-section.tsx
|
|
@@ -2864,32 +2776,29 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2864
2776
|
pass: cards.pass.length,
|
|
2865
2777
|
inapplicable: cards.inapplicable.length,
|
|
2866
2778
|
incomplete: 0,
|
|
2779
|
+
// never used
|
|
2867
2780
|
review: 0
|
|
2781
|
+
// never used
|
|
2868
2782
|
};
|
|
2869
|
-
return /* @__PURE__ */ React63.createElement("div", {
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2783
|
+
return /* @__PURE__ */ React63.createElement("div", { className: "summary-section" }, /* @__PURE__ */ React63.createElement("h2", null, "Summary"), /* @__PURE__ */ React63.createElement(
|
|
2784
|
+
OutcomeSummaryBar,
|
|
2785
|
+
{
|
|
2786
|
+
outcomeStats: countSummary,
|
|
2787
|
+
iconStyleInverted: true,
|
|
2788
|
+
allOutcomeTypes: props.outcomeTypesShown
|
|
2789
|
+
}
|
|
2790
|
+
));
|
|
2876
2791
|
});
|
|
2877
2792
|
var AllOutcomesSummarySection = NamedFC(
|
|
2878
2793
|
"AllOutcomesSummarySection",
|
|
2879
2794
|
(props) => {
|
|
2880
|
-
return /* @__PURE__ */ React63.createElement(BaseSummarySection, {
|
|
2881
|
-
...props,
|
|
2882
|
-
outcomeTypesShown: ["fail", "pass", "inapplicable"]
|
|
2883
|
-
});
|
|
2795
|
+
return /* @__PURE__ */ React63.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass", "inapplicable"] });
|
|
2884
2796
|
}
|
|
2885
2797
|
);
|
|
2886
2798
|
var PassFailSummarySection = NamedFC(
|
|
2887
2799
|
"PassFailSummarySection",
|
|
2888
2800
|
(props) => {
|
|
2889
|
-
return /* @__PURE__ */ React63.createElement(BaseSummarySection, {
|
|
2890
|
-
...props,
|
|
2891
|
-
outcomeTypesShown: ["fail", "pass"]
|
|
2892
|
-
});
|
|
2801
|
+
return /* @__PURE__ */ React63.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass"] });
|
|
2893
2802
|
}
|
|
2894
2803
|
);
|
|
2895
2804
|
|
|
@@ -2954,18 +2863,9 @@ var CombinedReportResultSectionTitle = NamedFC(
|
|
|
2954
2863
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2955
2864
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2956
2865
|
const alertTerm = props.outcomeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2957
|
-
const alertingFailuresCount = /* @__PURE__ */ React64.createElement("span", {
|
|
2958
|
-
|
|
2959
|
-
},
|
|
2960
|
-
const titleWithInstance = /* @__PURE__ */ React64.createElement("span", {
|
|
2961
|
-
className: combined_report_result_section_title_default.heading,
|
|
2962
|
-
"aria-hidden": "true"
|
|
2963
|
-
}, props.title, " (", props.outcomeCount, ")");
|
|
2964
|
-
return /* @__PURE__ */ React64.createElement("span", {
|
|
2965
|
-
className: combined_report_result_section_title_default.combinedReportResultSectionTitle
|
|
2966
|
-
}, /* @__PURE__ */ React64.createElement("span", {
|
|
2967
|
-
className: "screen-reader-only"
|
|
2968
|
-
}, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.outcomeCount), titleWithInstance);
|
|
2866
|
+
const alertingFailuresCount = /* @__PURE__ */ React64.createElement("span", { role: "alert" }, props.outcomeCount, " ", alertTerm, " detected.");
|
|
2867
|
+
const titleWithInstance = /* @__PURE__ */ React64.createElement("span", { className: combined_report_result_section_title_default.heading, "aria-hidden": "true" }, props.title, " (", props.outcomeCount, ")");
|
|
2868
|
+
return /* @__PURE__ */ React64.createElement("span", { className: combined_report_result_section_title_default.combinedReportResultSectionTitle }, /* @__PURE__ */ React64.createElement("span", { className: "screen-reader-only" }, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.outcomeCount), titleWithInstance);
|
|
2969
2869
|
}
|
|
2970
2870
|
);
|
|
2971
2871
|
|
|
@@ -2979,30 +2879,34 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2979
2879
|
const sectionId = "combined-report-failed-section";
|
|
2980
2880
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2981
2881
|
id: sectionId,
|
|
2982
|
-
header: /* @__PURE__ */ React65.createElement(
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2882
|
+
header: /* @__PURE__ */ React65.createElement(
|
|
2883
|
+
CombinedReportResultSectionTitle,
|
|
2884
|
+
{
|
|
2885
|
+
outcomeCount: ruleCount,
|
|
2886
|
+
outcomeType: "fail",
|
|
2887
|
+
title: "Failed rules"
|
|
2888
|
+
}
|
|
2889
|
+
),
|
|
2890
|
+
content: /* @__PURE__ */ React65.createElement(
|
|
2891
|
+
ResultSectionContent,
|
|
2892
|
+
{
|
|
2893
|
+
deps,
|
|
2894
|
+
outcomeType: "fail",
|
|
2895
|
+
targetAppInfo: scanMetadata.targetAppInfo,
|
|
2896
|
+
results: cardsViewData.cards.fail,
|
|
2897
|
+
visualHelperEnabled: cardsViewData.visualHelperEnabled,
|
|
2898
|
+
allCardsCollapsed: cardsViewData.allCardsCollapsed,
|
|
2899
|
+
userConfigurationStoreData: null,
|
|
2900
|
+
outcomeCounter: OutcomeCounter.countByIdentifierUrls,
|
|
2901
|
+
headingLevel: 4
|
|
2902
|
+
}
|
|
2903
|
+
),
|
|
2998
2904
|
onExpandToggle: () => {
|
|
2999
2905
|
},
|
|
3000
2906
|
headingLevel: 3,
|
|
3001
2907
|
deps: {}
|
|
3002
2908
|
});
|
|
3003
|
-
return /* @__PURE__ */ React65.createElement("div", {
|
|
3004
|
-
className: "result-section"
|
|
3005
|
-
}, CollapsibleContent);
|
|
2909
|
+
return /* @__PURE__ */ React65.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
3006
2910
|
}
|
|
3007
2911
|
);
|
|
3008
2912
|
|
|
@@ -3016,26 +2920,30 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
3016
2920
|
const sectionId = `${outcomeType}-checks-section`;
|
|
3017
2921
|
const CollapsibleContent = deps.collapsibleControl({
|
|
3018
2922
|
id: sectionId,
|
|
3019
|
-
header: /* @__PURE__ */ React66.createElement(
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
2923
|
+
header: /* @__PURE__ */ React66.createElement(
|
|
2924
|
+
CombinedReportResultSectionTitle,
|
|
2925
|
+
{
|
|
2926
|
+
outcomeCount: cardRuleResults.length,
|
|
2927
|
+
outcomeType,
|
|
2928
|
+
title: title2,
|
|
2929
|
+
titleSize: "title"
|
|
2930
|
+
}
|
|
2931
|
+
),
|
|
2932
|
+
content: /* @__PURE__ */ React66.createElement(
|
|
2933
|
+
RulesOnly,
|
|
2934
|
+
{
|
|
2935
|
+
deps,
|
|
2936
|
+
cardRuleResults,
|
|
2937
|
+
outcomeType
|
|
2938
|
+
}
|
|
2939
|
+
),
|
|
3030
2940
|
onExpandToggle: (event) => {
|
|
3031
2941
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleRuleExpandCollapse(sectionId, event);
|
|
3032
2942
|
},
|
|
3033
2943
|
headingLevel: 3,
|
|
3034
2944
|
deps: null
|
|
3035
2945
|
});
|
|
3036
|
-
return /* @__PURE__ */ React66.createElement("div", {
|
|
3037
|
-
className: "result-section"
|
|
3038
|
-
}, CollapsibleContent);
|
|
2946
|
+
return /* @__PURE__ */ React66.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
3039
2947
|
}
|
|
3040
2948
|
);
|
|
3041
2949
|
var CombinedReportPassedSection = makeCombinedReportRulesOnlySection({
|
|
@@ -3069,9 +2977,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
3069
2977
|
} = props;
|
|
3070
2978
|
const getTotalUrls = () => {
|
|
3071
2979
|
const totalUrls = urlsPassedCount + urlsFailedCount + urlsNotScannedCount;
|
|
3072
|
-
return /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement("h2", null, "URLs"), /* @__PURE__ */ React67.createElement("span", {
|
|
3073
|
-
className: urls_summary_section_default.totalUrls
|
|
3074
|
-
}, totalUrls), " total URLs scanned");
|
|
2980
|
+
return /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement("h2", null, "URLs"), /* @__PURE__ */ React67.createElement("span", { className: urls_summary_section_default.totalUrls }, totalUrls), " total URLs scanned");
|
|
3075
2981
|
};
|
|
3076
2982
|
const getSummaryBar = () => {
|
|
3077
2983
|
const countSummary = {
|
|
@@ -3079,26 +2985,20 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
3079
2985
|
unscannable: urlsNotScannedCount,
|
|
3080
2986
|
pass: urlsPassedCount
|
|
3081
2987
|
};
|
|
3082
|
-
return /* @__PURE__ */ React67.createElement(
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
2988
|
+
return /* @__PURE__ */ React67.createElement(
|
|
2989
|
+
OutcomeSummaryBar,
|
|
2990
|
+
{
|
|
2991
|
+
outcomeStats: countSummary,
|
|
2992
|
+
iconStyleInverted: true,
|
|
2993
|
+
allOutcomeTypes: allUrlOutcomeTypes,
|
|
2994
|
+
textLabel: true
|
|
2995
|
+
}
|
|
2996
|
+
);
|
|
3088
2997
|
};
|
|
3089
2998
|
const getFailedInstances = () => {
|
|
3090
|
-
return /* @__PURE__ */ React67.createElement("div", {
|
|
3091
|
-
className: urls_summary_section_default.failureInstances
|
|
3092
|
-
}, /* @__PURE__ */ React67.createElement("h2", null, "Failure Instances"), /* @__PURE__ */ React67.createElement("span", {
|
|
3093
|
-
className: urls_summary_section_default.failureOutcomeChip
|
|
3094
|
-
}, /* @__PURE__ */ React67.createElement(OutcomeChip, {
|
|
3095
|
-
count: failureInstancesCount,
|
|
3096
|
-
outcomeType: "fail"
|
|
3097
|
-
}), /* @__PURE__ */ React67.createElement("span", null, "Failure instances were detected")));
|
|
2999
|
+
return /* @__PURE__ */ React67.createElement("div", { className: urls_summary_section_default.failureInstances }, /* @__PURE__ */ React67.createElement("h2", null, "Failure Instances"), /* @__PURE__ */ React67.createElement("span", { className: urls_summary_section_default.failureOutcomeChip }, /* @__PURE__ */ React67.createElement(OutcomeChip, { count: failureInstancesCount, outcomeType: "fail" }), /* @__PURE__ */ React67.createElement("span", null, "Failure instances were detected")));
|
|
3098
3000
|
};
|
|
3099
|
-
return /* @__PURE__ */ React67.createElement("div", {
|
|
3100
|
-
className: urls_summary_section_default.urlsSummarySection
|
|
3101
|
-
}, getTotalUrls(), getSummaryBar(), getFailedInstances());
|
|
3001
|
+
return /* @__PURE__ */ React67.createElement("div", { className: urls_summary_section_default.urlsSummarySection }, getTotalUrls(), getSummaryBar(), getFailedInstances());
|
|
3102
3002
|
});
|
|
3103
3003
|
|
|
3104
3004
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
@@ -3119,9 +3019,7 @@ var CombinedReportSummarySection = NamedFC(
|
|
|
3119
3019
|
notScannedUrlsCount: urlResultCounts.unscannableUrls,
|
|
3120
3020
|
failureInstancesCount: failedInstances
|
|
3121
3021
|
};
|
|
3122
|
-
return /* @__PURE__ */ React68.createElement(UrlsSummarySection, {
|
|
3123
|
-
...urlsSummarySectionProps
|
|
3124
|
-
});
|
|
3022
|
+
return /* @__PURE__ */ React68.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
3125
3023
|
}
|
|
3126
3024
|
);
|
|
3127
3025
|
|
|
@@ -3135,13 +3033,7 @@ var rules_results_container_default = { "rulesResultsContainer": "rules-results-
|
|
|
3135
3033
|
var RulesResultsContainer = NamedFC(
|
|
3136
3034
|
"RulesResultsContainer",
|
|
3137
3035
|
({ children, getCollapsibleScript }) => {
|
|
3138
|
-
return /* @__PURE__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement("div", {
|
|
3139
|
-
className: rules_results_container_default.rulesResultsContainer
|
|
3140
|
-
}, /* @__PURE__ */ React69.createElement("div", {
|
|
3141
|
-
className: rules_results_container_default.resultsHeading
|
|
3142
|
-
}, /* @__PURE__ */ React69.createElement("h2", null, "Rules")), children), /* @__PURE__ */ React69.createElement("script", {
|
|
3143
|
-
dangerouslySetInnerHTML: { __html: getCollapsibleScript() }
|
|
3144
|
-
}));
|
|
3036
|
+
return /* @__PURE__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement("div", { className: rules_results_container_default.rulesResultsContainer }, /* @__PURE__ */ React69.createElement("div", { className: rules_results_container_default.resultsHeading }, /* @__PURE__ */ React69.createElement("h2", null, "Rules")), children), /* @__PURE__ */ React69.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
3145
3037
|
}
|
|
3146
3038
|
);
|
|
3147
3039
|
|
|
@@ -3158,31 +3050,19 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3158
3050
|
(props) => {
|
|
3159
3051
|
const { scanMetadata, toUtcString, secondsToTimeString } = props;
|
|
3160
3052
|
const scanTimespan = scanMetadata.timespan;
|
|
3161
|
-
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */ React70.createElement("li", {
|
|
3162
|
-
key: label,
|
|
3163
|
-
className
|
|
3164
|
-
}, /* @__PURE__ */ React70.createElement("span", {
|
|
3165
|
-
className: summary_report_details_section_default.icon
|
|
3166
|
-
}, icon), /* @__PURE__ */ React70.createElement("span", {
|
|
3167
|
-
className: summary_report_details_section_default.label
|
|
3168
|
-
}, `${label} `), /* @__PURE__ */ React70.createElement("span", {
|
|
3169
|
-
className: summary_report_details_section_default.text
|
|
3170
|
-
}, content)) : /* @__PURE__ */ React70.createElement("li", {
|
|
3171
|
-
key: label,
|
|
3172
|
-
className
|
|
3173
|
-
}, /* @__PURE__ */ React70.createElement("span", {
|
|
3174
|
-
className: (0, import_react6.css)(summary_report_details_section_default.noIcon, summary_report_details_section_default.label)
|
|
3175
|
-
}, `${label} `), /* @__PURE__ */ React70.createElement("span", {
|
|
3176
|
-
className: summary_report_details_section_default.text
|
|
3177
|
-
}, content));
|
|
3053
|
+
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */ React70.createElement("li", { key: label, className }, /* @__PURE__ */ React70.createElement("span", { className: summary_report_details_section_default.icon }, icon), /* @__PURE__ */ React70.createElement("span", { className: summary_report_details_section_default.label }, `${label} `), /* @__PURE__ */ React70.createElement("span", { className: summary_report_details_section_default.text }, content)) : /* @__PURE__ */ React70.createElement("li", { key: label, className }, /* @__PURE__ */ React70.createElement("span", { className: (0, import_react6.css)(summary_report_details_section_default.noIcon, summary_report_details_section_default.label) }, `${label} `), /* @__PURE__ */ React70.createElement("span", { className: summary_report_details_section_default.text }, content));
|
|
3178
3054
|
const listItems = [];
|
|
3179
3055
|
listItems.push(
|
|
3180
3056
|
createListItem(
|
|
3181
3057
|
"Target site",
|
|
3182
|
-
/* @__PURE__ */ React70.createElement(
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3058
|
+
/* @__PURE__ */ React70.createElement(
|
|
3059
|
+
NewTabLinkWithConfirmationDialog,
|
|
3060
|
+
{
|
|
3061
|
+
href: scanMetadata.targetAppInfo.url,
|
|
3062
|
+
title: scanMetadata.targetAppInfo.name
|
|
3063
|
+
},
|
|
3064
|
+
scanMetadata.targetAppInfo.url
|
|
3065
|
+
),
|
|
3186
3066
|
/* @__PURE__ */ React70.createElement(UrlIcon, null),
|
|
3187
3067
|
summary_report_details_section_default.targetSite
|
|
3188
3068
|
)
|
|
@@ -3197,32 +3077,20 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3197
3077
|
const duration = secondsToTimeString(scanTimespan.durationSeconds);
|
|
3198
3078
|
listItems.push(createListItem("Duration", duration));
|
|
3199
3079
|
}
|
|
3200
|
-
return /* @__PURE__ */ React70.createElement("div", {
|
|
3201
|
-
className: summary_report_details_section_default.crawlDetailsSection
|
|
3202
|
-
}, /* @__PURE__ */ React70.createElement("h2", null, "Scan details"), /* @__PURE__ */ React70.createElement("ul", {
|
|
3203
|
-
className: summary_report_details_section_default.crawlDetailsSectionList
|
|
3204
|
-
}, listItems));
|
|
3080
|
+
return /* @__PURE__ */ React70.createElement("div", { className: summary_report_details_section_default.crawlDetailsSection }, /* @__PURE__ */ React70.createElement("h2", null, "Scan details"), /* @__PURE__ */ React70.createElement("ul", { className: summary_report_details_section_default.crawlDetailsSectionList }, listItems));
|
|
3205
3081
|
}
|
|
3206
3082
|
);
|
|
3207
3083
|
|
|
3208
3084
|
// src/reports/components/report-sections/summary-report-header-section.tsx
|
|
3209
3085
|
var React71 = __toESM(require("react"));
|
|
3210
3086
|
var SummaryReportHeaderSection = NamedFC("SummaryReportHeaderSection", () => {
|
|
3211
|
-
return /* @__PURE__ */ React71.createElement("header", null, /* @__PURE__ */ React71.createElement(HeaderBar, {
|
|
3212
|
-
headerText: brand
|
|
3213
|
-
}));
|
|
3087
|
+
return /* @__PURE__ */ React71.createElement("header", null, /* @__PURE__ */ React71.createElement(HeaderBar, { headerText: brand }));
|
|
3214
3088
|
});
|
|
3215
3089
|
|
|
3216
3090
|
// src/reports/components/summary-report-head.tsx
|
|
3217
3091
|
var React72 = __toESM(require("react"));
|
|
3218
3092
|
var SummaryReportHead = NamedFC("SummaryReportHead", () => {
|
|
3219
|
-
return /* @__PURE__ */ React72.createElement("head", null, /* @__PURE__ */ React72.createElement("meta", {
|
|
3220
|
-
charSet: "UTF-8"
|
|
3221
|
-
}), /* @__PURE__ */ React72.createElement("title", null, brand, " automated checks result"), /* @__PURE__ */ React72.createElement("style", {
|
|
3222
|
-
dangerouslySetInnerHTML: { __html: styleSheet }
|
|
3223
|
-
}), /* @__PURE__ */ React72.createElement("style", {
|
|
3224
|
-
dangerouslySetInnerHTML: { __html: styleSheet2 }
|
|
3225
|
-
}));
|
|
3093
|
+
return /* @__PURE__ */ React72.createElement("head", null, /* @__PURE__ */ React72.createElement("meta", { charSet: "UTF-8" }), /* @__PURE__ */ React72.createElement("title", null, brand, " automated checks result"), /* @__PURE__ */ React72.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet } }), /* @__PURE__ */ React72.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet2 } }));
|
|
3226
3094
|
});
|
|
3227
3095
|
|
|
3228
3096
|
// src/reports/components/report-sections/combined-report-section-factory.ts
|
|
@@ -3259,17 +3127,12 @@ var CollapsibleUrlResultSection = NamedFC(
|
|
|
3259
3127
|
const { containerId, deps, content } = props;
|
|
3260
3128
|
const CollapsibleContent = deps.collapsibleControl({
|
|
3261
3129
|
id: containerId,
|
|
3262
|
-
header: /* @__PURE__ */ React73.createElement(ResultSectionTitle, {
|
|
3263
|
-
...props,
|
|
3264
|
-
titleSize: "heading"
|
|
3265
|
-
}),
|
|
3130
|
+
header: /* @__PURE__ */ React73.createElement(ResultSectionTitle, { ...props, titleSize: "heading" }),
|
|
3266
3131
|
content,
|
|
3267
3132
|
headingLevel: 3,
|
|
3268
3133
|
deps: null
|
|
3269
3134
|
});
|
|
3270
|
-
return /* @__PURE__ */ React73.createElement("div", {
|
|
3271
|
-
className: collapsible_url_result_section_default.urlResultSection
|
|
3272
|
-
}, CollapsibleContent);
|
|
3135
|
+
return /* @__PURE__ */ React73.createElement("div", { className: collapsible_url_result_section_default.urlResultSection }, CollapsibleContent);
|
|
3273
3136
|
}
|
|
3274
3137
|
);
|
|
3275
3138
|
|
|
@@ -3296,10 +3159,7 @@ var SummaryResultsTable = NamedFC(
|
|
|
3296
3159
|
};
|
|
3297
3160
|
const getTableHeaders = () => {
|
|
3298
3161
|
return /* @__PURE__ */ React74.createElement("tr", null, columns.map((column, index) => {
|
|
3299
|
-
return /* @__PURE__ */ React74.createElement("th", {
|
|
3300
|
-
key: index,
|
|
3301
|
-
id: getHeaderId(index)
|
|
3302
|
-
}, column.header);
|
|
3162
|
+
return /* @__PURE__ */ React74.createElement("th", { key: index, id: getHeaderId(index) }, column.header);
|
|
3303
3163
|
}));
|
|
3304
3164
|
};
|
|
3305
3165
|
const getCellClassName = (colIndex) => {
|
|
@@ -3307,23 +3167,22 @@ var SummaryResultsTable = NamedFC(
|
|
|
3307
3167
|
return cellClassNames[contentType];
|
|
3308
3168
|
};
|
|
3309
3169
|
const getRow = (row, rowIndex) => {
|
|
3310
|
-
return /* @__PURE__ */ React74.createElement("tr", {
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3170
|
+
return /* @__PURE__ */ React74.createElement("tr", { key: rowIndex }, row.map((item, colIndex) => {
|
|
3171
|
+
return /* @__PURE__ */ React74.createElement(
|
|
3172
|
+
"td",
|
|
3173
|
+
{
|
|
3174
|
+
key: colIndex,
|
|
3175
|
+
headers: getHeaderId(colIndex),
|
|
3176
|
+
className: getCellClassName(colIndex)
|
|
3177
|
+
},
|
|
3178
|
+
item
|
|
3179
|
+
);
|
|
3318
3180
|
}));
|
|
3319
3181
|
};
|
|
3320
3182
|
const getTableRows = () => {
|
|
3321
3183
|
return rows.map(getRow);
|
|
3322
3184
|
};
|
|
3323
|
-
return /* @__PURE__ */ React74.createElement("table", {
|
|
3324
|
-
className: summary_results_table_default.summaryResultsTable,
|
|
3325
|
-
id: id2
|
|
3326
|
-
}, /* @__PURE__ */ React74.createElement("thead", null, getTableHeaders()), /* @__PURE__ */ React74.createElement("tbody", null, getTableRows()));
|
|
3185
|
+
return /* @__PURE__ */ React74.createElement("table", { className: summary_results_table_default.summaryResultsTable, id: id2 }, /* @__PURE__ */ React74.createElement("thead", null, getTableHeaders()), /* @__PURE__ */ React74.createElement("tbody", null, getTableRows()));
|
|
3327
3186
|
}
|
|
3328
3187
|
);
|
|
3329
3188
|
|
|
@@ -3341,20 +3200,11 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3341
3200
|
];
|
|
3342
3201
|
const rows = results.map((result) => {
|
|
3343
3202
|
const { url, reportLocation } = result;
|
|
3344
|
-
const urlLink = /* @__PURE__ */ React75.createElement(NewTabLink, {
|
|
3345
|
-
|
|
3346
|
-
}, url);
|
|
3347
|
-
const reportLink = /* @__PURE__ */ React75.createElement(NewTabLink, {
|
|
3348
|
-
href: reportLocation,
|
|
3349
|
-
"aria-label": `Report for ${url}`
|
|
3350
|
-
}, "Report");
|
|
3203
|
+
const urlLink = /* @__PURE__ */ React75.createElement(NewTabLink, { href: url }, url);
|
|
3204
|
+
const reportLink = /* @__PURE__ */ React75.createElement(NewTabLink, { href: reportLocation, "aria-label": `Report for ${url}` }, "Report");
|
|
3351
3205
|
return [`${result.numFailures}`, urlLink, reportLink];
|
|
3352
3206
|
});
|
|
3353
|
-
return /* @__PURE__ */ React75.createElement(SummaryResultsTable, {
|
|
3354
|
-
columns,
|
|
3355
|
-
rows,
|
|
3356
|
-
id: props.id
|
|
3357
|
-
});
|
|
3207
|
+
return /* @__PURE__ */ React75.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3358
3208
|
}
|
|
3359
3209
|
);
|
|
3360
3210
|
|
|
@@ -3362,18 +3212,18 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3362
3212
|
var FailedUrlsSection = NamedFC(
|
|
3363
3213
|
"FailedUrlsSection",
|
|
3364
3214
|
({ results, deps }) => {
|
|
3365
|
-
const table = /* @__PURE__ */ React76.createElement(UrlScanResultsTable, {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3215
|
+
const table = /* @__PURE__ */ React76.createElement(UrlScanResultsTable, { results: results.failed, id: "failed-urls-table" });
|
|
3216
|
+
return /* @__PURE__ */ React76.createElement(
|
|
3217
|
+
CollapsibleUrlResultSection,
|
|
3218
|
+
{
|
|
3219
|
+
deps,
|
|
3220
|
+
title: "Failed URLs",
|
|
3221
|
+
outcomeType: "fail",
|
|
3222
|
+
badgeCount: results.failed.length,
|
|
3223
|
+
containerId: "failed-urls-section",
|
|
3224
|
+
content: table
|
|
3225
|
+
}
|
|
3226
|
+
);
|
|
3377
3227
|
}
|
|
3378
3228
|
);
|
|
3379
3229
|
|
|
@@ -3391,37 +3241,29 @@ var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
|
3391
3241
|
];
|
|
3392
3242
|
const rows = errors.map((scanError) => {
|
|
3393
3243
|
const { errorDescription, errorType, url, errorLogLocation } = scanError;
|
|
3394
|
-
const urlLink = /* @__PURE__ */ React77.createElement(NewTabLink, {
|
|
3395
|
-
|
|
3396
|
-
}, url);
|
|
3397
|
-
const errorLogLink = /* @__PURE__ */ React77.createElement(NewTabLink, {
|
|
3398
|
-
href: errorLogLocation
|
|
3399
|
-
}, errorDescription);
|
|
3244
|
+
const urlLink = /* @__PURE__ */ React77.createElement(NewTabLink, { href: url }, url);
|
|
3245
|
+
const errorLogLink = /* @__PURE__ */ React77.createElement(NewTabLink, { href: errorLogLocation }, errorDescription);
|
|
3400
3246
|
return [errorType, urlLink, errorLogLink];
|
|
3401
3247
|
});
|
|
3402
|
-
return /* @__PURE__ */ React77.createElement(SummaryResultsTable, {
|
|
3403
|
-
columns,
|
|
3404
|
-
rows,
|
|
3405
|
-
id: props.id
|
|
3406
|
-
});
|
|
3248
|
+
return /* @__PURE__ */ React77.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3407
3249
|
});
|
|
3408
3250
|
|
|
3409
3251
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3410
3252
|
var NotScannedUrlsSection = NamedFC(
|
|
3411
3253
|
"NotScannedUrlsSection",
|
|
3412
3254
|
({ results, deps }) => {
|
|
3413
|
-
const table = /* @__PURE__ */ React78.createElement(UrlErrorsTable, {
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3255
|
+
const table = /* @__PURE__ */ React78.createElement(UrlErrorsTable, { errors: results.unscannable, id: "not-scanned-urls-table" });
|
|
3256
|
+
return /* @__PURE__ */ React78.createElement(
|
|
3257
|
+
CollapsibleUrlResultSection,
|
|
3258
|
+
{
|
|
3259
|
+
deps,
|
|
3260
|
+
title: "Not scanned URLs",
|
|
3261
|
+
outcomeType: "unscannable",
|
|
3262
|
+
badgeCount: results.unscannable.length,
|
|
3263
|
+
containerId: "not-scanned-urls-section",
|
|
3264
|
+
content: table
|
|
3265
|
+
}
|
|
3266
|
+
);
|
|
3425
3267
|
}
|
|
3426
3268
|
);
|
|
3427
3269
|
|
|
@@ -3430,18 +3272,18 @@ var React79 = __toESM(require("react"));
|
|
|
3430
3272
|
var PassedUrlsSection = NamedFC(
|
|
3431
3273
|
"PassedUrlsSection",
|
|
3432
3274
|
({ results, deps }) => {
|
|
3433
|
-
const table = /* @__PURE__ */ React79.createElement(UrlScanResultsTable, {
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3275
|
+
const table = /* @__PURE__ */ React79.createElement(UrlScanResultsTable, { results: results.passed, id: "passed-urls-table" });
|
|
3276
|
+
return /* @__PURE__ */ React79.createElement(
|
|
3277
|
+
CollapsibleUrlResultSection,
|
|
3278
|
+
{
|
|
3279
|
+
deps,
|
|
3280
|
+
title: "Passed URLs",
|
|
3281
|
+
outcomeType: "pass",
|
|
3282
|
+
badgeCount: results.passed.length,
|
|
3283
|
+
containerId: "passed-urls-section",
|
|
3284
|
+
content: table
|
|
3285
|
+
}
|
|
3286
|
+
);
|
|
3445
3287
|
}
|
|
3446
3288
|
);
|
|
3447
3289
|
|
|
@@ -3455,13 +3297,7 @@ var results_by_url_container_default = { "urlResultsContainer": "url-results-con
|
|
|
3455
3297
|
var ResultsByUrlContainer = NamedFC(
|
|
3456
3298
|
"ResultsContainer",
|
|
3457
3299
|
({ children, getCollapsibleScript }) => {
|
|
3458
|
-
return /* @__PURE__ */ React80.createElement(React80.Fragment, null, /* @__PURE__ */ React80.createElement("div", {
|
|
3459
|
-
className: results_by_url_container_default.urlResultsContainer
|
|
3460
|
-
}, /* @__PURE__ */ React80.createElement("div", {
|
|
3461
|
-
className: results_by_url_container_default.resultsHeading
|
|
3462
|
-
}, /* @__PURE__ */ React80.createElement("h2", null, "Results by URL")), children), /* @__PURE__ */ React80.createElement("script", {
|
|
3463
|
-
dangerouslySetInnerHTML: { __html: getCollapsibleScript() }
|
|
3464
|
-
}));
|
|
3300
|
+
return /* @__PURE__ */ React80.createElement(React80.Fragment, null, /* @__PURE__ */ React80.createElement("div", { className: results_by_url_container_default.urlResultsContainer }, /* @__PURE__ */ React80.createElement("div", { className: results_by_url_container_default.resultsHeading }, /* @__PURE__ */ React80.createElement("h2", null, "Results by URL")), children), /* @__PURE__ */ React80.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
3465
3301
|
}
|
|
3466
3302
|
);
|
|
3467
3303
|
|
|
@@ -3481,9 +3317,7 @@ var SummaryReportSummarySection = NamedFC(
|
|
|
3481
3317
|
notScannedUrlsCount: results.unscannable.length,
|
|
3482
3318
|
failureInstancesCount: failedInstances
|
|
3483
3319
|
};
|
|
3484
|
-
return /* @__PURE__ */ React81.createElement(UrlsSummarySection, {
|
|
3485
|
-
...urlsSummarySectionProps
|
|
3486
|
-
});
|
|
3320
|
+
return /* @__PURE__ */ React81.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
3487
3321
|
}
|
|
3488
3322
|
);
|
|
3489
3323
|
|
|
@@ -3505,6 +3339,28 @@ var SummaryReportSectionFactory = {
|
|
|
3505
3339
|
resultSectionsOrder: ["failed", "notApplicable", "passed"]
|
|
3506
3340
|
};
|
|
3507
3341
|
|
|
3342
|
+
// src/common/store-data-to-scan-node-result-converter.ts
|
|
3343
|
+
var import_applicationinsights_core_js = require("@microsoft/applicationinsights-core-js");
|
|
3344
|
+
var import_lodash13 = require("lodash");
|
|
3345
|
+
function convertUnifiedStoreDataToScanNodeResults(unifiedScanResultStoreData) {
|
|
3346
|
+
const { rules, results } = unifiedScanResultStoreData;
|
|
3347
|
+
if ((0, import_applicationinsights_core_js.isNullOrUndefined)(unifiedScanResultStoreData) || (0, import_applicationinsights_core_js.isNullOrUndefined)(results)) {
|
|
3348
|
+
return null;
|
|
3349
|
+
}
|
|
3350
|
+
const transformedResults = results.map((unifiedResult) => {
|
|
3351
|
+
const rule = rules ? (0, import_lodash13.find)(rules, (unifiedRule) => unifiedRule.id === unifiedResult.ruleId) : { id: unifiedResult.ruleId };
|
|
3352
|
+
if (rule == null) {
|
|
3353
|
+
throw new Error(`Got result with unknown ruleId ${unifiedResult.ruleId}`);
|
|
3354
|
+
}
|
|
3355
|
+
const result = {
|
|
3356
|
+
...unifiedResult,
|
|
3357
|
+
rule
|
|
3358
|
+
};
|
|
3359
|
+
return result;
|
|
3360
|
+
});
|
|
3361
|
+
return transformedResults;
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3508
3364
|
// src/reports/package/axe-results-report.ts
|
|
3509
3365
|
var AxeResultsReport = class {
|
|
3510
3366
|
constructor(deps, parameters, toolInfo) {
|
|
@@ -3532,7 +3388,8 @@ var AxeResultsReport = class {
|
|
|
3532
3388
|
visualHelperEnabled: false,
|
|
3533
3389
|
resultsHighlightStatus: {}
|
|
3534
3390
|
};
|
|
3535
|
-
const
|
|
3391
|
+
const scanNodeResults = convertUnifiedStoreDataToScanNodeResults({ rules: unifiedRules, results: unifiedResults });
|
|
3392
|
+
const cardsViewModel = getCards(scanNodeResults, cardSelectionViewData, unifiedRules);
|
|
3536
3393
|
const targetAppInfo = {
|
|
3537
3394
|
name: pageTitle,
|
|
3538
3395
|
url: results.url
|
|
@@ -3589,7 +3446,7 @@ var CombinedResultsReport = class {
|
|
|
3589
3446
|
};
|
|
3590
3447
|
|
|
3591
3448
|
// src/reports/package/combined-results-to-cards-model-converter.ts
|
|
3592
|
-
var
|
|
3449
|
+
var import_lodash14 = require("lodash");
|
|
3593
3450
|
var CombinedResultsToCardsModelConverter = class {
|
|
3594
3451
|
constructor(mapAxeTagsToGuidanceLinks2, cardSelectionViewData, uuidGenerator, helpUrlGetter, getFixResolution2, extractRelatedSelectors2) {
|
|
3595
3452
|
this.mapAxeTagsToGuidanceLinks = mapAxeTagsToGuidanceLinks2;
|
|
@@ -3615,7 +3472,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3615
3472
|
};
|
|
3616
3473
|
};
|
|
3617
3474
|
this.getCardRuleResults = (rules) => {
|
|
3618
|
-
if ((0,
|
|
3475
|
+
if ((0, import_lodash14.isNil)(rules)) {
|
|
3619
3476
|
return [];
|
|
3620
3477
|
}
|
|
3621
3478
|
return rules.map((rule) => this.getCardRuleResult(rule));
|
|
@@ -3627,7 +3484,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3627
3484
|
url: this.helpUrlGetter.getHelpUrl(rule.ruleId, rule.ruleUrl),
|
|
3628
3485
|
isExpanded: false,
|
|
3629
3486
|
guidance: this.mapAxeTagsToGuidanceLinks(rule.ruleId, rule.tags),
|
|
3630
|
-
nodes: (0,
|
|
3487
|
+
nodes: (0, import_lodash14.isNil)(nodes) ? [] : nodes
|
|
3631
3488
|
};
|
|
3632
3489
|
};
|
|
3633
3490
|
this.getFailuresGroupedByRule = (groupedFailures) => {
|
|
@@ -3766,9 +3623,7 @@ var ReportHtmlGenerator = class {
|
|
|
3766
3623
|
sectionFactory: this.sectionFactory,
|
|
3767
3624
|
...detailsProps
|
|
3768
3625
|
};
|
|
3769
|
-
const bodyElement = /* @__PURE__ */ React82.createElement(ReportBody, {
|
|
3770
|
-
...props
|
|
3771
|
-
});
|
|
3626
|
+
const bodyElement = /* @__PURE__ */ React82.createElement(ReportBody, { ...props });
|
|
3772
3627
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3773
3628
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3774
3629
|
}
|
|
@@ -3801,9 +3656,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3801
3656
|
sectionFactory: this.sectionFactory,
|
|
3802
3657
|
...detailsProps
|
|
3803
3658
|
};
|
|
3804
|
-
const bodyElement = /* @__PURE__ */ React83.createElement(ReportBody, {
|
|
3805
|
-
...props
|
|
3806
|
-
});
|
|
3659
|
+
const bodyElement = /* @__PURE__ */ React83.createElement(ReportBody, { ...props });
|
|
3807
3660
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3808
3661
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3809
3662
|
}
|
|
@@ -3920,6 +3773,7 @@ var accessibleNamesConfiguration = {
|
|
|
3920
3773
|
],
|
|
3921
3774
|
rule: {
|
|
3922
3775
|
id: accessibleNamesCheckId,
|
|
3776
|
+
//this list of roles and elements was derived from the ARIA 1.2 documentation (Section 5.2.8.4: Roles supporting name from author or content): https://www.w3.org/TR/wai-aria-1.2/#namefromauthor
|
|
3923
3777
|
selector: "[role=alert], [role=alertdialog], [role=application], [role=article], article, [role=banner], [role=blockquote], blockquote, [role=button], button, [role=cell], [role=checkbox], [role=columnheader], [role=combobox], [role=command], [role=complementary], [role=composite], [role=contentinfo], [role=definition], [role=dialog], [role=directory],[role=document], [role=feed], [role=figure], figure, [role=form], form,[role=grid], table, [role=gridcell], td, [role=group], fieldset, [role=heading], h1,h2, h3, h4, h5, h6, [role=img],img,[role=input], [role=landmark], [role=link], a, link, [role=list], [role=listbox], [role=listitem],li, ol, ul, [role=log], [role=main], [role=marquee],[role=math], [role=meter], meter,[role=menu], [role=menubar], [role=menuitem], [role=menuitemcheckbox], [role=menuitemradio], [role=navigation], nav, [role=note], [role=option], option, [role=progressbar], [role=radio], [role=radiogroup], [role=range], [role=region], [role=row], tr, [role=rowgroup], [role=rowheader], th, [role=scrollbar], [role=searchbox], [role=search], [role=select], select, [role=sectionhead],section, [role=separator], hr, [role=slider], [role=status], [role=spinbutton, [role=switch], [role=tab], [role=table], [role=tablelist], [role=tabpanel], [role=term], td, [role=textbox], textarea, th, [role=time], time, [role=timer], [role=toolbar], [role=tooltip], [role=tree], [role=treegrid], [role=treeitem], input,[role=input],[role=window]",
|
|
3924
3778
|
enabled: false,
|
|
3925
3779
|
any: [accessibleNamesCheckId],
|
|
@@ -4605,6 +4459,7 @@ var textContrastConfiguration = {
|
|
|
4605
4459
|
};
|
|
4606
4460
|
function evaluateTextContrast(node, options, virtualNode, context) {
|
|
4607
4461
|
const checkResult = getEvaluateFromCheck("color-contrast").call(
|
|
4462
|
+
// tslint:disable-next-line:no-invalid-this
|
|
4608
4463
|
this,
|
|
4609
4464
|
node,
|
|
4610
4465
|
options,
|
|
@@ -5051,6 +4906,7 @@ var guidelineMetadata = {
|
|
|
5051
4906
|
link: "https://www.w3.org/WAI/WCAG21/Understanding/images-of-text.html",
|
|
5052
4907
|
guidanceTags: []
|
|
5053
4908
|
},
|
|
4909
|
+
// wcag146: intentionally omitted, AAA
|
|
5054
4910
|
"WCAG 1.4.10": {
|
|
5055
4911
|
number: "1.4.10",
|
|
5056
4912
|
axeTag: "wcag1410",
|
|
@@ -5132,6 +4988,8 @@ var guidelineMetadata = {
|
|
|
5132
4988
|
link: "https://www.w3.org/WAI/WCAG21/Understanding/pause-stop-hide",
|
|
5133
4989
|
guidanceTags: []
|
|
5134
4990
|
},
|
|
4991
|
+
// wcag223: intentionally omitted, AAA
|
|
4992
|
+
// wcag224: intentionally omitted, AAA
|
|
5135
4993
|
"WCAG 2.3.1": {
|
|
5136
4994
|
number: "2.3.1",
|
|
5137
4995
|
axeTag: "wcag231",
|
|
@@ -5204,6 +5062,8 @@ var guidelineMetadata = {
|
|
|
5204
5062
|
link: "https://www.w3.org/WAI/WCAG21/Understanding/focus-visible.html",
|
|
5205
5063
|
guidanceTags: []
|
|
5206
5064
|
},
|
|
5065
|
+
// wcag248: intentionally omitted, AAA
|
|
5066
|
+
// wcag249: intentionally omitted, AAA
|
|
5207
5067
|
"WCAG 2.5.1": {
|
|
5208
5068
|
number: "2.5.1",
|
|
5209
5069
|
axeTag: "wcag251",
|
|
@@ -5303,6 +5163,7 @@ var guidelineMetadata = {
|
|
|
5303
5163
|
link: "https://www.w3.org/WAI/WCAG21/Understanding/consistent-identification",
|
|
5304
5164
|
guidanceTags: []
|
|
5305
5165
|
},
|
|
5166
|
+
// wcag325: intentionally omitted, AAA
|
|
5306
5167
|
"WCAG 3.3.1": {
|
|
5307
5168
|
number: "3.3.1",
|
|
5308
5169
|
axeTag: "wcag331",
|
|
@@ -5490,7 +5351,7 @@ var link = {
|
|
|
5490
5351
|
};
|
|
5491
5352
|
|
|
5492
5353
|
// src/scanner/map-axe-tags-to-guidance-links.ts
|
|
5493
|
-
var
|
|
5354
|
+
var import_lodash15 = require("lodash");
|
|
5494
5355
|
var BestPractice = {
|
|
5495
5356
|
text: "",
|
|
5496
5357
|
href: "",
|
|
@@ -5501,7 +5362,7 @@ var bestPracticeToGuidanceTagOverrideMapping = {
|
|
|
5501
5362
|
"presentation-role-conflict": ["wcag131"]
|
|
5502
5363
|
};
|
|
5503
5364
|
function addGuidanceTagOverrides(resultId, currentTags) {
|
|
5504
|
-
return (0,
|
|
5365
|
+
return (0, import_lodash15.concat)(currentTags ?? [], bestPracticeToGuidanceTagOverrideMapping[resultId] ?? []);
|
|
5505
5366
|
}
|
|
5506
5367
|
function mapAxeTagToGuidanceLink(axeTag) {
|
|
5507
5368
|
if (axeTag === "best-practice") {
|
|
@@ -5517,7 +5378,7 @@ function mapAxeTagsToGuidanceLinks(resultId, axeTags) {
|
|
|
5517
5378
|
const normalizedTags = addGuidanceTagOverrides(resultId, axeTags);
|
|
5518
5379
|
const unsortedMaybeLinks = normalizedTags.map(mapAxeTagToGuidanceLink);
|
|
5519
5380
|
const unsortedLinks = unsortedMaybeLinks.filter(isNotNull);
|
|
5520
|
-
const sortedLinks = (0,
|
|
5381
|
+
const sortedLinks = (0, import_lodash15.sortBy)(unsortedLinks, (link2) => link2.text);
|
|
5521
5382
|
return sortedLinks;
|
|
5522
5383
|
}
|
|
5523
5384
|
function isNotNull(maybeInstance) {
|
|
@@ -5630,26 +5491,32 @@ var FixInstructionProcessor = class {
|
|
|
5630
5491
|
constructor() {
|
|
5631
5492
|
this.colorValueMatcher = `(#[0-9a-f]{6})`;
|
|
5632
5493
|
this.foregroundColorText = "foreground color: ";
|
|
5494
|
+
// the following warnings can be disabled because the values are actually constant strings and the string template is used merely for ease of reading
|
|
5495
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
5633
5496
|
this.foregroundRegExp = new RegExp(
|
|
5634
5497
|
`${this.foregroundColorText}${this.colorValueMatcher}`,
|
|
5635
5498
|
"i"
|
|
5636
5499
|
);
|
|
5637
5500
|
this.backgroundColorText = "background color: ";
|
|
5501
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
5638
5502
|
this.backgroundRegExp = new RegExp(
|
|
5639
5503
|
`${this.backgroundColorText}${this.colorValueMatcher}`,
|
|
5640
5504
|
"i"
|
|
5641
5505
|
);
|
|
5642
5506
|
this.foregroundRecommendedColorText = "Use foreground color: ";
|
|
5507
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
5643
5508
|
this.foregroundRecommendedRegExp = new RegExp(
|
|
5644
5509
|
`${this.foregroundRecommendedColorText}${this.colorValueMatcher}`,
|
|
5645
5510
|
"i"
|
|
5646
5511
|
);
|
|
5647
5512
|
this.backgroundRecommendedColorText = "Use background color: ";
|
|
5513
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
5648
5514
|
this.backgroundRecommendedRegExp = new RegExp(
|
|
5649
5515
|
`${this.backgroundRecommendedColorText}${this.colorValueMatcher}`,
|
|
5650
5516
|
"i"
|
|
5651
5517
|
);
|
|
5652
5518
|
this.contrastRatioText = "Expected contrast ratio of ";
|
|
5519
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
5653
5520
|
this.contrastRatioRegExp = new RegExp(`${this.contrastRatioText}`, "i");
|
|
5654
5521
|
this.originalMiddleSentence = " and the original foreground color: ";
|
|
5655
5522
|
}
|
|
@@ -5659,6 +5526,10 @@ var FixInstructionProcessor = class {
|
|
|
5659
5526
|
processAsNoop(fixInstruction) {
|
|
5660
5527
|
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, fixInstruction);
|
|
5661
5528
|
}
|
|
5529
|
+
// We perform this replacement because what axe-core exposes as a "relatedNodes" property
|
|
5530
|
+
// is presented in our cards views as a "Related paths" row. This only comes up in practice
|
|
5531
|
+
// with the aria-required-children rule and is likely to be obsoleted with the resolution of
|
|
5532
|
+
// https://github.com/dequelabs/axe-core/issues/3842
|
|
5662
5533
|
tryProcessAsRelatedNodesReference(input) {
|
|
5663
5534
|
if (!input.endsWith(" (see related nodes)")) {
|
|
5664
5535
|
return null;
|
|
@@ -5781,12 +5652,7 @@ var FixInstructionProcessor = class {
|
|
|
5781
5652
|
return this.addRecommendationsToResults(results, recommendations);
|
|
5782
5653
|
}
|
|
5783
5654
|
addRecommendationsToResults(results, recommendations) {
|
|
5784
|
-
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, results, /* @__PURE__ */ React84.createElement("ul", {
|
|
5785
|
-
key: "recommendations-list",
|
|
5786
|
-
"data-automation-id": recommendationsAutomationId
|
|
5787
|
-
}, recommendations.map((rec, idx) => /* @__PURE__ */ React84.createElement("li", {
|
|
5788
|
-
key: `recommendation-${idx}`
|
|
5789
|
-
}, rec))));
|
|
5655
|
+
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, results, /* @__PURE__ */ React84.createElement("ul", { key: "recommendations-list", "data-automation-id": recommendationsAutomationId }, recommendations.map((rec, idx) => /* @__PURE__ */ React84.createElement("li", { key: `recommendation-${idx}` }, rec))));
|
|
5790
5656
|
}
|
|
5791
5657
|
getInstructionWithBoxes(matches6, fixInstruction) {
|
|
5792
5658
|
let insertionIndex = 0;
|
|
@@ -5795,32 +5661,27 @@ var FixInstructionProcessor = class {
|
|
|
5795
5661
|
matches6.forEach((match) => {
|
|
5796
5662
|
const endIndex = match.splitIndex - match.colorHexValue.length;
|
|
5797
5663
|
const substring = fixInstruction.substring(insertionIndex, endIndex);
|
|
5798
|
-
result.push(/* @__PURE__ */ React84.createElement("span", {
|
|
5799
|
-
key: `instruction-split-${keyIndex++}`
|
|
5800
|
-
}, substring));
|
|
5664
|
+
result.push(/* @__PURE__ */ React84.createElement("span", { key: `instruction-split-${keyIndex++}` }, substring));
|
|
5801
5665
|
result.push(this.createColorBox(match.colorHexValue, keyIndex++));
|
|
5802
5666
|
insertionIndex = endIndex;
|
|
5803
5667
|
});
|
|
5804
5668
|
const coda = fixInstruction.substr(insertionIndex);
|
|
5805
|
-
result.push(/* @__PURE__ */ React84.createElement("span", {
|
|
5806
|
-
key: `instruction-split-${keyIndex++}`
|
|
5807
|
-
}, coda));
|
|
5669
|
+
result.push(/* @__PURE__ */ React84.createElement("span", { key: `instruction-split-${keyIndex++}` }, coda));
|
|
5808
5670
|
return result;
|
|
5809
5671
|
}
|
|
5810
5672
|
getInstructionWithAndWithoutBoxes(matches6, fixInstruction) {
|
|
5811
|
-
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement("span", {
|
|
5812
|
-
"aria-hidden": "true"
|
|
5813
|
-
}, this.getInstructionWithBoxes(matches6, fixInstruction)), /* @__PURE__ */ React84.createElement("span", {
|
|
5814
|
-
className: fix_instruction_color_box_default.screenReaderOnly
|
|
5815
|
-
}, fixInstruction));
|
|
5673
|
+
return /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement("span", { "aria-hidden": "true" }, this.getInstructionWithBoxes(matches6, fixInstruction)), /* @__PURE__ */ React84.createElement("span", { className: fix_instruction_color_box_default.screenReaderOnly }, fixInstruction));
|
|
5816
5674
|
}
|
|
5817
5675
|
createColorBox(colorHexValue, keyIndex) {
|
|
5818
|
-
return /* @__PURE__ */ React84.createElement(
|
|
5819
|
-
"
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5676
|
+
return /* @__PURE__ */ React84.createElement(
|
|
5677
|
+
"span",
|
|
5678
|
+
{
|
|
5679
|
+
"aria-hidden": true,
|
|
5680
|
+
key: `instruction-split-${keyIndex}`,
|
|
5681
|
+
className: fix_instruction_color_box_default.fixInstructionColorBox,
|
|
5682
|
+
style: { backgroundColor: colorHexValue }
|
|
5683
|
+
}
|
|
5684
|
+
);
|
|
5824
5685
|
}
|
|
5825
5686
|
};
|
|
5826
5687
|
|
|
@@ -5835,7 +5696,7 @@ var DateProvider = class {
|
|
|
5835
5696
|
}
|
|
5836
5697
|
}
|
|
5837
5698
|
static getCurrentDate() {
|
|
5838
|
-
return new Date();
|
|
5699
|
+
return /* @__PURE__ */ new Date();
|
|
5839
5700
|
}
|
|
5840
5701
|
static getUTCStringFromDate(date) {
|
|
5841
5702
|
const utcDateTime = import_luxon.DateTime.fromJSDate(date, { zone: "utc" });
|
|
@@ -5942,14 +5803,14 @@ function initializeFabricIcons() {
|
|
|
5942
5803
|
}
|
|
5943
5804
|
|
|
5944
5805
|
// src/common/get-guidance-tags-from-guidance-links.ts
|
|
5945
|
-
var
|
|
5806
|
+
var import_lodash16 = require("lodash");
|
|
5946
5807
|
var GetGuidanceTagsFromGuidanceLinks = (links) => {
|
|
5947
|
-
if ((0,
|
|
5808
|
+
if (!links || (0, import_lodash16.isArray)(links) === false) {
|
|
5948
5809
|
return [];
|
|
5949
5810
|
}
|
|
5950
5811
|
const tags = [];
|
|
5951
5812
|
links.forEach((link2) => {
|
|
5952
|
-
if ((0,
|
|
5813
|
+
if ((0, import_lodash16.isObject)(link2) === false || (0, import_lodash16.isArray)(link2.tags) === false) {
|
|
5953
5814
|
return;
|
|
5954
5815
|
}
|
|
5955
5816
|
link2.tags.forEach((tag) => {
|