@trdrs/quickcharts 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6049,7 +6049,11 @@ var SWATCH_BLOCKS = [[GREY_RAMP, HUE_BASES], HUE_RAMPS];
6049
6049
  // src/ui/controls/dom.ts
6050
6050
  function focusables(root) {
6051
6051
  const nodes = root.querySelectorAll("button, [href], input, select, textarea, [tabindex]");
6052
- return [...nodes].filter((n) => !n.hasAttribute("disabled") && n.tabIndex >= 0 && !n.hidden && n.getAttribute("aria-hidden") !== "true");
6052
+ return [...nodes].filter((n) => !n.hasAttribute("disabled") && n.tabIndex >= 0 && !hiddenWithin(n, root) && n.getAttribute("aria-hidden") !== "true");
6053
+ }
6054
+ function hiddenWithin(node, root) {
6055
+ for (let el2 = node; el2 && el2 !== root; el2 = el2.parentElement) if (el2.hidden) return true;
6056
+ return false;
6053
6057
  }
6054
6058
  function isRtl(node) {
6055
6059
  const dir = node.closest("[dir]")?.getAttribute("dir") ?? (typeof getComputedStyle === "function" ? getComputedStyle(node).direction : "ltr");
@@ -6862,9 +6866,6 @@ export {
6862
6866
  serializeDrawingsStore,
6863
6867
  restoreDrawings,
6864
6868
  drawingTools,
6865
- editRefused,
6866
- removableDrawings,
6867
- removeRows,
6868
6869
  CURSOR_MODES,
6869
6870
  CURSOR_LABELS,
6870
6871
  TRANSIENT_TOOLS,
@@ -6873,6 +6874,9 @@ export {
6873
6874
  transientSurvives,
6874
6875
  toolAfterPlacement,
6875
6876
  cursorButtonArmed,
6877
+ editRefused,
6878
+ removableDrawings,
6879
+ removeRows,
6876
6880
  CLONE_OFFSET_PX,
6877
6881
  commitText,
6878
6882
  cancelText,
@@ -6956,4 +6960,4 @@ export {
6956
6960
  NO_DASH,
6957
6961
  INPUT_PROPS
6958
6962
  };
6959
- //# sourceMappingURL=chunk-RDAK5MUM.js.map
6963
+ //# sourceMappingURL=chunk-AA7XKXH4.js.map