@design.estate/dees-catalog 21.37.0 → 21.37.1

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.
@@ -24,7 +24,7 @@ import {
24
24
  terminalFontFamily,
25
25
  terminalTheme,
26
26
  themeDefaultStyles
27
- } from "./chunk-NJSNFLQO.js";
27
+ } from "./chunk-B32Q6N2A.js";
28
28
  import {
29
29
  dcMessages,
30
30
  dist_ts_exports2 as dist_ts_exports
@@ -5998,4 +5998,4 @@ export {
5998
5998
  WebContainerEnvironment,
5999
5999
  DeesWorkspaceTerminal
6000
6000
  };
6001
- //# sourceMappingURL=chunk-LSCUUCAI.js.map
6001
+ //# sourceMappingURL=chunk-2F6USZXH.js.map
@@ -63871,16 +63871,18 @@ var _DeesModal = class _DeesModal extends (_a19 = DeesElement, _subheading_dec =
63871
63871
  this.destroyPromise = this.closeAndRemove();
63872
63872
  }
63873
63873
  /**
63874
- * Enter in the last field of a form in this dialog runs the dialog's primary
63875
- * action (drawn as the primary button), as a click on it would.
63874
+ * Enter in the last field of a form the dialog holds runs the dialog's
63875
+ * primary action (drawn as the primary button), as a click on it would.
63876
63876
  * While an action runs, or a prompt confirms, the request is answered and
63877
- * nothing else starts.
63877
+ * nothing else starts. The request never leaves the dialog; a form without a
63878
+ * primary to run (a dialog without actions, a form a host inside the dialog
63879
+ * holds, such as a stepper's step) submits itself.
63878
63880
  */
63879
63881
  handleFormSubmitRequest(eventArg) {
63882
+ eventArg.stopPropagation();
63880
63883
  const footer2 = this.actionFooter;
63881
- if (!footer2?.primaryAction) return;
63884
+ if (!footer2?.primaryAction || !this.formGate.holds(eventArg.composedPath()[0])) return;
63882
63885
  eventArg.preventDefault();
63883
- eventArg.stopPropagation();
63884
63886
  void footer2.runPrimary();
63885
63887
  }
63886
63888
  async handleOutsideClick(eventArg) {
@@ -66014,4 +66016,4 @@ lucide/dist/esm/lucide.js:
66014
66016
  * See the LICENSE file in the root directory of this source tree.
66015
66017
  *)
66016
66018
  */
66017
- //# sourceMappingURL=chunk-NJSNFLQO.js.map
66019
+ //# sourceMappingURL=chunk-B32Q6N2A.js.map