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/fesm2022/mn-angular-lib-calendar.mjs +2 -6
- package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-ui.mjs +15 -3
- package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mn-angular-lib-calendar.d.ts +1 -1
- package/types/mn-angular-lib-modal-core.d.ts +9 -1
package/package.json
CHANGED
|
@@ -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
|
|
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;
|