@pocketprep/ui-kit 3.4.61 → 3.4.63

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.
@@ -14588,7 +14588,10 @@ let _e = class extends be {
14588
14588
  }
14589
14589
  }
14590
14590
  defaultSortChanged() {
14591
- this.defaultSort && (this.currentSort = JSON.parse(JSON.stringify(this.defaultSort)), this.emitSort());
14591
+ if (!this.defaultSort)
14592
+ return;
14593
+ const s = JSON.stringify(this.defaultSort), o = JSON.stringify(this.currentSort);
14594
+ s !== o && (this.currentSort = JSON.parse(s), this.emitSort());
14592
14595
  }
14593
14596
  emitSort() {
14594
14597
  return this.currentSort;
@@ -17905,7 +17908,8 @@ const gp = /* @__PURE__ */ me(It, [["render", pp]]), _r = {
17905
17908
  const t = new RegExp(`(\\W)(${o})(\\W)`, "i");
17906
17909
  return s.replace(
17907
17910
  t,
17908
- `$1<span class="keyword-highlight${e.isDarkMode ? " keyword-highlight--dark" : ""}" data-location="${e.location}""><span style="pointer-events: none;">$2</span></span>$3`
17911
+ `$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">
17912
+ <span style="pointer-events: none;">$2</span></span>$3`
17909
17913
  );
17910
17914
  }, e.text) : e.text, Bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17911
17915
  __proto__: null,
@@ -20450,12 +20454,14 @@ let ze = class extends be {
20450
20454
  }
20451
20455
  mounted() {
20452
20456
  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 s = this.$refs["uikit-question__context"], o = s == null ? void 0 : s.$refs["uikit-question-context"];
20454
- o == null || o.focus();
20457
+ const t = this.$refs["uikit-question__context"], n = t == null ? void 0 : t.$refs["uikit-question-context"];
20458
+ n == null || n.focus();
20455
20459
  }, 0), this.sortSettings = {
20456
20460
  column: this.showNamesColumns[0] || null,
20457
20461
  direction: 1
20458
20462
  };
20463
+ const s = this.$refs.prompt, o = s == null ? void 0 : s.querySelectorAll("p");
20464
+ o.length && o.forEach((t) => t.setAttribute("tabindex", "0"));
20459
20465
  }
20460
20466
  beforeUnmount() {
20461
20467
  window.removeEventListener("keydown", this.keydownListener);
@@ -21008,6 +21014,7 @@ function Ef(e, i, s, o, t, n) {
21008
21014
  ne(oe("div", {
21009
21015
  ref: "prompt",
21010
21016
  tabindex: "-1",
21017
+ role: "group",
21011
21018
  class: ve(["uikit-question__prompt", {
21012
21019
  "uikit-question__prompt--passage-and-image": e.question.passage || e.passageImageUrl
21013
21020
  }]),