@pocketprep/ui-kit 3.4.61 → 3.4.62
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.
|
@@ -17905,7 +17905,8 @@ const gp = /* @__PURE__ */ me(It, [["render", pp]]), _r = {
|
|
|
17905
17905
|
const t = new RegExp(`(\\W)(${o})(\\W)`, "i");
|
|
17906
17906
|
return s.replace(
|
|
17907
17907
|
t,
|
|
17908
|
-
`$1<span class="keyword-highlight${e.isDarkMode ? " keyword-highlight--dark" : ""}" data-location="${e.location}""
|
|
17908
|
+
`$1<span class="keyword-highlight${e.isDarkMode ? " keyword-highlight--dark" : ""}" data-location="${e.location}" role="button" tabindex="0" aria-label="${o}, Instruction. Click for definition" aria-haspopup="dialog" aria-expanded="false">
|
|
17909
|
+
<span style="pointer-events: none;">$2</span></span>$3`
|
|
17909
17910
|
);
|
|
17910
17911
|
}, e.text) : e.text, Bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17911
17912
|
__proto__: null,
|
|
@@ -20450,12 +20451,14 @@ let ze = class extends be {
|
|
|
20450
20451
|
}
|
|
20451
20452
|
mounted() {
|
|
20452
20453
|
this.reviewMode && this.startReviewMode(), !this.isMatrixQuestion && this.previousChoices && this.updateSelectedChoices(this.previousChoices), this.isMatrixQuestion && this.previousMatrixChoices && this.updateSelectedMatrixChoices(this.previousMatrixChoices), this.initialShowAnswers && (this.showAnswers = this.initialShowAnswers, this.showMatrixAnswers = this.initialShowAnswers), this.allowKeyboardShortcuts && window.addEventListener("keydown", this.keydownListener), this.autoFocusPrompt ? this.moveFocusToPrompt() : this.autoFocusPrompt === !1 && setTimeout(() => {
|
|
20453
|
-
const
|
|
20454
|
-
|
|
20454
|
+
const t = this.$refs["uikit-question__context"], n = t == null ? void 0 : t.$refs["uikit-question-context"];
|
|
20455
|
+
n == null || n.focus();
|
|
20455
20456
|
}, 0), this.sortSettings = {
|
|
20456
20457
|
column: this.showNamesColumns[0] || null,
|
|
20457
20458
|
direction: 1
|
|
20458
20459
|
};
|
|
20460
|
+
const s = this.$refs.prompt, o = s == null ? void 0 : s.querySelectorAll("p");
|
|
20461
|
+
o.length && o.forEach((t) => t.setAttribute("tabindex", "0"));
|
|
20459
20462
|
}
|
|
20460
20463
|
beforeUnmount() {
|
|
20461
20464
|
window.removeEventListener("keydown", this.keydownListener);
|
|
@@ -21008,6 +21011,7 @@ function Ef(e, i, s, o, t, n) {
|
|
|
21008
21011
|
ne(oe("div", {
|
|
21009
21012
|
ref: "prompt",
|
|
21010
21013
|
tabindex: "-1",
|
|
21014
|
+
role: "group",
|
|
21011
21015
|
class: ve(["uikit-question__prompt", {
|
|
21012
21016
|
"uikit-question__prompt--passage-and-image": e.question.passage || e.passageImageUrl
|
|
21013
21017
|
}]),
|