mn-angular-lib 1.0.109 → 1.0.110

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": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -3639,6 +3639,14 @@ type WizardStepConfig<TModel = unknown> = {
3639
3639
  title: string;
3640
3640
  state?: StepState;
3641
3641
  body?: StepBodyConfig;
3642
+ /**
3643
+ * Inputs passed to the step {@link body} when it is a component or template
3644
+ * (ignored for a plain-string body). Each key is assigned to the matching
3645
+ * `@Input()` on the rendered component; a `modalRef` property, if present, is
3646
+ * populated automatically. Mirrors {@link CustomModalConfig.inputs} but scoped
3647
+ * to a single wizard step.
3648
+ */
3649
+ bodyInputs?: ModalInputMap;
3642
3650
  fields?: FormFieldConfig<TModel>[];
3643
3651
  rows?: FormRow<TModel>[];
3644
3652
  fieldGroups?: FormFieldGroup<TModel>[];
@@ -4361,7 +4369,12 @@ declare class StepBuilder<TModel = unknown> {
4361
4369
  private config;
4362
4370
  private layoutBuilder;
4363
4371
  constructor(id: string, title: string);
4364
- body(body: StepBodyConfig): this;
4372
+ /**
4373
+ * Set the step body. Accepts plain text, a component, or a template.
4374
+ * @param body The step body content (string, component `Type`, or `TemplateRef`).
4375
+ * @param inputs Optional inputs for a component/template body (ignored for text).
4376
+ */
4377
+ body(body: StepBodyConfig, inputs?: ModalInputMap): this;
4365
4378
  state(state: StepState): this;
4366
4379
  guard(guard: StepGuard): this;
4367
4380
  validators(validators: StepValidator[]): this;
@@ -4857,11 +4870,24 @@ declare class MnWizardBodyComponent implements OnInit, AfterViewInit, OnDestroy
4857
4870
  };
4858
4871
  /** Pre-built form configs keyed by step id — only for steps that have fields */
4859
4872
  stepFormConfigs: Record<ModalStepId, FormModalConfig<unknown, unknown>>;
4873
+ /**
4874
+ * Pre-built host configs keyed by step id — only for steps whose body is a
4875
+ * component or template (not a plain string) and that have no form fields.
4876
+ * Drives the `mn-custom-body-host` rendered for those steps.
4877
+ */
4878
+ stepBodyConfigs: Record<ModalStepId, CustomModalConfig>;
4860
4879
  private statusSubscription?;
4861
4880
  private formBodiesSubscription?;
4862
4881
  ngOnInit(): void;
4863
4882
  ngAfterViewInit(): void;
4864
4883
  isTextBody(step: WizardStepConfig): boolean;
4884
+ /**
4885
+ * Builds the {@link CustomModalConfig} used to render a step whose body is a
4886
+ * component or template. Returns `undefined` for steps with no body or a
4887
+ * plain-string body (those render through their own template branches).
4888
+ * @param step The wizard step to inspect.
4889
+ */
4890
+ private buildStepBodyConfig;
4865
4891
  goToStep(step: WizardStepConfig): Promise<void>;
4866
4892
  ngOnDestroy(): void;
4867
4893
  /**