@design.estate/dees-catalog 21.33.1 → 21.33.2

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.
@@ -85872,6 +85872,7 @@ var _DeesStepper = class _DeesStepper extends (_a119 = DeesElement, _steps_dec =
85872
85872
  const dialog = this.shadowRoot?.querySelector("dialog");
85873
85873
  if (dialog && !dialog.open && this.isConnected && !this.destroyPromise) dialog.showModal();
85874
85874
  if (changedProperties.has("overlay") || changedProperties.has("steps")) this.observeSurface();
85875
+ if (changedProperties.has("stepError") && this.stepError) this.revealStepError();
85875
85876
  if (!changedProperties.has("selectedStep") && !changedProperties.has("steps") && !changedProperties.has("overlay")) return;
85876
85877
  this.revealCurrentMarker();
85877
85878
  await this.activateSelectedStep();
@@ -85906,6 +85907,14 @@ var _DeesStepper = class _DeesStepper extends (_a119 = DeesElement, _steps_dec =
85906
85907
  const left = strip ? offset(markerBox.left, markerBox.right, portLeft, portLeft + track.clientWidth) : 0;
85907
85908
  if (top || left) track.scrollBy({ top, left, behavior: prefersReducedMotion() ? "instant" : "smooth" });
85908
85909
  }
85910
+ /**
85911
+ * Scroll a step's error into view as it appears: it stands below the step's
85912
+ * content, which in a long step reaches below the fold of the step's body.
85913
+ * Only as far as it takes, so an error already in view moves nothing.
85914
+ */
85915
+ revealStepError() {
85916
+ this.shadowRoot?.querySelector(".step.selected .step-error")?.scrollIntoView({ block: "nearest", inline: "nearest", behavior: prefersReducedMotion() ? "instant" : "smooth" });
85917
+ }
85909
85918
  /**
85910
85919
  * Make the selected step the working one: read its form's required fields
85911
85920
  * for the primary and start its validation or background work, once per
@@ -122528,7 +122537,7 @@ var bright = {
122528
122537
  // ts_web/00_commitinfo_data.ts
122529
122538
  var commitinfo = {
122530
122539
  name: "@design.estate/dees-catalog",
122531
- version: "21.33.1",
122540
+ version: "21.33.2",
122532
122541
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
122533
122542
  };
122534
122543
  export {