mn-angular-lib 2.0.53 → 2.0.55

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "2.0.53",
3
+ "version": "2.0.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -76,7 +76,7 @@ export declare class CalendarViewComponent implements OnInit, OnDestroy {
76
76
  onResize(): void;
77
77
  ngOnInit(): void;
78
78
  ngOnDestroy(): void;
79
- /** Switches the active view. On mobile, forces day view. */
79
+ /** Switches the active view (gM2XdeMo: allowed on mobile too). */
80
80
  switchView(view: CalendarView): void;
81
81
  /**
82
82
  * Names the stretch of time on screen — the day, the week, or the month. It is
@@ -177,8 +177,16 @@ export type ModalRef<TResult = unknown> = {
177
177
  dismiss(reason: ModalCloseReason): void;
178
178
  update(config: Partial<BaseModalConfig<TResult>>): void;
179
179
  };
180
+ /**
181
+ * Completes a form or wizard modal.
182
+ *
183
+ * Return `false` (sync or async) to keep the modal open after a rejected submit —
184
+ * for example when a server 400 was already toasted and the user's input must not
185
+ * be discarded. Throwing also keeps it open (existing behaviour). Any other return
186
+ * value, including `void` / `undefined` / `true`, closes the modal as before.
187
+ */
180
188
  export type ModalResultHandler<TResult = unknown> = {
181
- handle(result: TResult): Promise<void> | void;
189
+ handle(result: TResult): Promise<boolean | void> | boolean | void;
182
190
  };
183
191
  export type WizardStepChangeEvent = {
184
192
  previousStepId?: ModalStepId;