@ngstarter-ui/components 21.0.60 → 21.0.62

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, contentChild, forwardRef, Inject, Component, input, booleanAttribute, contentChildren } from '@angular/core';
2
+ import { Directive, contentChild, forwardRef, Inject, Component, input, booleanAttribute, contentChildren, computed } from '@angular/core';
3
3
  import { CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';
4
4
  import * as i1 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
@@ -63,6 +63,8 @@ class Stepper extends CdkStepper {
63
63
  // Use a separate signal for template iteration to avoid overriding CdkStepper's QueryList `_steps`.
64
64
  stepItems = contentChildren(Step, { ...(ngDevMode ? { debugName: "stepItems" } : /* istanbul ignore next */ {}), descendants: true });
65
65
  _stepLabels = contentChildren(StepLabel, { ...(ngDevMode ? { debugName: "_stepLabels" } : /* istanbul ignore next */ {}), descendants: true });
66
+ isFirstStep = computed(() => this.selectedIndex === 0, ...(ngDevMode ? [{ debugName: "isFirstStep" }] : /* istanbul ignore next */ []));
67
+ isLastStep = computed(() => this.selectedIndex >= this.stepItems().length - 1, ...(ngDevMode ? [{ debugName: "isLastStep" }] : /* istanbul ignore next */ []));
66
68
  ngAfterContentInit() {
67
69
  super.ngAfterContentInit();
68
70
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-stepper.mjs","sources":["../../../projects/components/stepper/src/step-label.ts","../../../projects/components/stepper/src/step/step.ts","../../../projects/components/stepper/src/step/step.html","../../../projects/components/stepper/src/stepper/stepper.ts","../../../projects/components/stepper/src/stepper/stepper.html","../../../projects/components/stepper/src/stepper-next.ts","../../../projects/components/stepper/src/stepper-previous.ts","../../../projects/components/stepper/ngstarter-ui-components-stepper.ts"],"sourcesContent":["import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[ngsStepLabel]',\n standalone: true\n})\nexport class StepLabel {\n constructor(public template: TemplateRef<any>) { }\n}\n","import { Component, contentChild, forwardRef, Inject } from '@angular/core';\nimport { CdkStep } from '@angular/cdk/stepper';\nimport { StepLabel } from '../step-label';\nimport { Stepper } from '../stepper/stepper';\n\n@Component({\n selector: 'ngs-step',\n exportAs: 'ngsStep',\n templateUrl: './step.html',\n styleUrl: './step.scss',\n providers: [\n {\n provide: CdkStep,\n useExisting: Step\n }\n ],\n host: {\n 'class': 'ngs-step'\n }\n})\nexport class Step extends CdkStep {\n readonly ngsStepLabel = contentChild(StepLabel);\n\n constructor(@Inject(forwardRef(() => Stepper)) stepper: Stepper) {\n super(stepper);\n }\n}\n","<ng-template>\n <ng-content />\n</ng-template>\n","import { booleanAttribute, Component, input, contentChildren } from '@angular/core';\nimport { CdkStepper, StepperOrientation } from '@angular/cdk/stepper';\nimport { Step } from '../step/step';\nimport { StepLabel } from '../step-label';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngs-stepper',\n exportAs: 'ngsStepper',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './stepper.html',\n styleUrl: './stepper.scss',\n providers: [\n {\n provide: CdkStepper,\n useExisting: Stepper,\n },\n ],\n host: {\n class: 'ngs-stepper',\n },\n})\nexport class Stepper extends CdkStepper {\n headerPosition = input<'top' | 'bottom'>('top');\n labelPosition = input<'top' | 'bottom'>('top');\n stickyHeader = input(false, { transform: booleanAttribute });\n hideHeaderBorder = input(false, { transform: booleanAttribute });\n\n private _stepperOrientation: StepperOrientation = 'horizontal';\n\n override get orientation(): StepperOrientation {\n return this._stepperOrientation;\n }\n override set orientation(value: StepperOrientation) {\n this._stepperOrientation = value;\n }\n\n // Use a separate signal for template iteration to avoid overriding CdkStepper's QueryList `_steps`.\n readonly stepItems = contentChildren(Step, { descendants: true });\n readonly _stepLabels = contentChildren(StepLabel, { descendants: true });\n\n override ngAfterContentInit() {\n super.ngAfterContentInit();\n }\n}\n","<div\n class=\"ngs-stepper\"\n [class.ngs-stepper-vertical]=\"orientation === 'vertical'\"\n [class.ngs-stepper-horizontal]=\"orientation === 'horizontal'\"\n [class.ngs-stepper-header-bottom]=\"headerPosition() === 'bottom'\"\n>\n @if (orientation === 'horizontal') {\n <div\n class=\"ngs-stepper-header-container\"\n [class.ngs-stepper-label-bottom-container]=\"labelPosition() === 'bottom'\"\n [class.ngs-stepper-header-sticky]=\"stickyHeader()\"\n [class.ngs-stepper-header-border-hidden]=\"hideHeaderBorder()\"\n >\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-header\"\n [class.ngs-stepper-header-active]=\"selectedIndex === i\"\n [class.ngs-stepper-header-completed]=\"step.completed\"\n [class.ngs-stepper-label-bottom]=\"labelPosition() === 'bottom'\"\n (click)=\"step.select()\"\n role=\"tab\"\n [attr.aria-selected]=\"selectedIndex === i\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n >\n <div class=\"ngs-stepper-icon\">\n @if (step.completed) {\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\">\n <path fill=\"currentColor\" d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n } @else {\n {{ i + 1 }}\n }\n </div>\n <div class=\"ngs-stepper-label\">\n @if (step.ngsStepLabel(); as stepLabel) {\n <ng-container [ngTemplateOutlet]=\"stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n </div>\n </div>\n @if (i < stepItems().length - 1 && labelPosition() !== 'bottom') {\n <div class=\"ngs-stepper-line\"></div>\n }\n }\n </div>\n\n <div class=\"ngs-stepper-content-container\">\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-content\"\n [id]=\"_getStepContentId(i)\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"selectedIndex !== i\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n }\n </div>\n } @else {\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-header\"\n [class.ngs-stepper-header-active]=\"selectedIndex === i\"\n [class.ngs-stepper-header-completed]=\"step.completed\"\n (click)=\"step.select()\"\n role=\"tab\"\n [attr.aria-selected]=\"selectedIndex === i\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n >\n <div class=\"ngs-stepper-icon\">\n @if (step.completed) {\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\">\n <path fill=\"currentColor\" d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n } @else {\n {{ i + 1 }}\n }\n </div>\n <div class=\"ngs-stepper-label\">\n @if (step.ngsStepLabel(); as stepLabel) {\n <ng-container [ngTemplateOutlet]=\"stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n </div>\n </div>\n <div\n class=\"ngs-stepper-content-wrapper\"\n [class.ngs-stepper-last-step]=\"i === stepItems().length - 1\"\n >\n <div class=\"ngs-stepper-vertical-line\"></div>\n <div\n class=\"ngs-stepper-content\"\n [id]=\"_getStepContentId(i)\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"selectedIndex !== i\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n </div>\n }\n }\n</div>\n","import { Directive, input } from '@angular/core';\nimport { CdkStepperNext } from '@angular/cdk/stepper';\n\n@Directive({\n selector: 'button[ngsStepperNext]',\n host: {\n '[type]': 'type',\n },\n standalone: true\n})\nexport class StepperNext extends CdkStepperNext {\n override type: string = 'submit';\n}\n","import { Directive, input } from '@angular/core';\nimport { CdkStepperPrevious } from '@angular/cdk/stepper';\n\n@Directive({\n selector: 'button[ngsStepperPrevious]',\n host: {\n '[type]': 'type',\n },\n standalone: true\n})\nexport class StepperPrevious extends CdkStepperPrevious {\n override type: string = 'button';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;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A,EAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAPvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,QAAQ,EAAE,MAAM;AACjB,qBAAA;AACD,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACCK,MAAO,eAAgB,SAAQ,kBAAkB,CAAA;IAC5C,IAAI,GAAW,QAAQ;uGADrB,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,MAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,IAAI,EAAE;AACJ,wBAAA,QAAQ,EAAE,MAAM;AACjB,qBAAA;AACD,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-stepper.mjs","sources":["../../../projects/components/stepper/src/step-label.ts","../../../projects/components/stepper/src/step/step.ts","../../../projects/components/stepper/src/step/step.html","../../../projects/components/stepper/src/stepper/stepper.ts","../../../projects/components/stepper/src/stepper/stepper.html","../../../projects/components/stepper/src/stepper-next.ts","../../../projects/components/stepper/src/stepper-previous.ts","../../../projects/components/stepper/ngstarter-ui-components-stepper.ts"],"sourcesContent":["import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[ngsStepLabel]',\n standalone: true\n})\nexport class StepLabel {\n constructor(public template: TemplateRef<any>) { }\n}\n","import { Component, contentChild, forwardRef, Inject } from '@angular/core';\nimport { CdkStep } from '@angular/cdk/stepper';\nimport { StepLabel } from '../step-label';\nimport { Stepper } from '../stepper/stepper';\n\n@Component({\n selector: 'ngs-step',\n exportAs: 'ngsStep',\n templateUrl: './step.html',\n styleUrl: './step.scss',\n providers: [\n {\n provide: CdkStep,\n useExisting: Step\n }\n ],\n host: {\n 'class': 'ngs-step'\n }\n})\nexport class Step extends CdkStep {\n readonly ngsStepLabel = contentChild(StepLabel);\n\n constructor(@Inject(forwardRef(() => Stepper)) stepper: Stepper) {\n super(stepper);\n }\n}\n","<ng-template>\n <ng-content />\n</ng-template>\n","import { booleanAttribute, Component, computed, contentChildren, input } from '@angular/core';\nimport { CdkStepper, StepperOrientation } from '@angular/cdk/stepper';\nimport { Step } from '../step/step';\nimport { StepLabel } from '../step-label';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ngs-stepper',\n exportAs: 'ngsStepper',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './stepper.html',\n styleUrl: './stepper.scss',\n providers: [\n {\n provide: CdkStepper,\n useExisting: Stepper,\n },\n ],\n host: {\n class: 'ngs-stepper',\n },\n})\nexport class Stepper extends CdkStepper {\n headerPosition = input<'top' | 'bottom'>('top');\n labelPosition = input<'top' | 'bottom'>('top');\n stickyHeader = input(false, { transform: booleanAttribute });\n hideHeaderBorder = input(false, { transform: booleanAttribute });\n\n private _stepperOrientation: StepperOrientation = 'horizontal';\n\n override get orientation(): StepperOrientation {\n return this._stepperOrientation;\n }\n override set orientation(value: StepperOrientation) {\n this._stepperOrientation = value;\n }\n\n // Use a separate signal for template iteration to avoid overriding CdkStepper's QueryList `_steps`.\n readonly stepItems = contentChildren(Step, { descendants: true });\n readonly _stepLabels = contentChildren(StepLabel, { descendants: true });\n readonly isFirstStep = computed(() => this.selectedIndex === 0);\n readonly isLastStep = computed(() => this.selectedIndex >= this.stepItems().length - 1);\n\n override ngAfterContentInit() {\n super.ngAfterContentInit();\n }\n}\n","<div\n class=\"ngs-stepper\"\n [class.ngs-stepper-vertical]=\"orientation === 'vertical'\"\n [class.ngs-stepper-horizontal]=\"orientation === 'horizontal'\"\n [class.ngs-stepper-header-bottom]=\"headerPosition() === 'bottom'\"\n>\n @if (orientation === 'horizontal') {\n <div\n class=\"ngs-stepper-header-container\"\n [class.ngs-stepper-label-bottom-container]=\"labelPosition() === 'bottom'\"\n [class.ngs-stepper-header-sticky]=\"stickyHeader()\"\n [class.ngs-stepper-header-border-hidden]=\"hideHeaderBorder()\"\n >\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-header\"\n [class.ngs-stepper-header-active]=\"selectedIndex === i\"\n [class.ngs-stepper-header-completed]=\"step.completed\"\n [class.ngs-stepper-label-bottom]=\"labelPosition() === 'bottom'\"\n (click)=\"step.select()\"\n role=\"tab\"\n [attr.aria-selected]=\"selectedIndex === i\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n >\n <div class=\"ngs-stepper-icon\">\n @if (step.completed) {\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\">\n <path fill=\"currentColor\" d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n } @else {\n {{ i + 1 }}\n }\n </div>\n <div class=\"ngs-stepper-label\">\n @if (step.ngsStepLabel(); as stepLabel) {\n <ng-container [ngTemplateOutlet]=\"stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n </div>\n </div>\n @if (i < stepItems().length - 1 && labelPosition() !== 'bottom') {\n <div class=\"ngs-stepper-line\"></div>\n }\n }\n </div>\n\n <div class=\"ngs-stepper-content-container\">\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-content\"\n [id]=\"_getStepContentId(i)\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"selectedIndex !== i\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n }\n </div>\n } @else {\n @for (step of stepItems(); track step; let i = $index) {\n <div\n class=\"ngs-stepper-header\"\n [class.ngs-stepper-header-active]=\"selectedIndex === i\"\n [class.ngs-stepper-header-completed]=\"step.completed\"\n (click)=\"step.select()\"\n role=\"tab\"\n [attr.aria-selected]=\"selectedIndex === i\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n >\n <div class=\"ngs-stepper-icon\">\n @if (step.completed) {\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\">\n <path fill=\"currentColor\" d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n } @else {\n {{ i + 1 }}\n }\n </div>\n <div class=\"ngs-stepper-label\">\n @if (step.ngsStepLabel(); as stepLabel) {\n <ng-container [ngTemplateOutlet]=\"stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n </div>\n </div>\n <div\n class=\"ngs-stepper-content-wrapper\"\n [class.ngs-stepper-last-step]=\"i === stepItems().length - 1\"\n >\n <div class=\"ngs-stepper-vertical-line\"></div>\n <div\n class=\"ngs-stepper-content\"\n [id]=\"_getStepContentId(i)\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"selectedIndex !== i\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n </div>\n }\n }\n</div>\n","import { Directive, input } from '@angular/core';\nimport { CdkStepperNext } from '@angular/cdk/stepper';\n\n@Directive({\n selector: 'button[ngsStepperNext]',\n host: {\n '[type]': 'type',\n },\n standalone: true\n})\nexport class StepperNext extends CdkStepperNext {\n override type: string = 'submit';\n}\n","import { Directive, input } from '@angular/core';\nimport { CdkStepperPrevious } from '@angular/cdk/stepper';\n\n@Directive({\n selector: 'button[ngsStepperPrevious]',\n host: {\n '[type]': 'type',\n },\n standalone: true\n})\nexport class StepperPrevious extends CdkStepperPrevious {\n override type: string = 'button';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index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
  "description": "NgStarter - AI-friendly Enterprise Angular UI Components and Admin Panel",
4
- "version": "21.0.60",
4
+ "version": "21.0.62",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/elementarlabsdev/ngstarter.git"
@@ -88,10 +88,22 @@ interface FormBuilderLayoutItem {
88
88
  kind: 'field' | 'section';
89
89
  id: string;
90
90
  }
91
+ interface FormBuilderStep {
92
+ id: string;
93
+ title: string;
94
+ description?: string;
95
+ optional?: boolean;
96
+ items: FormBuilderLayoutItem[];
97
+ }
98
+ interface FormBuilderFlow {
99
+ mode: 'single' | 'steps';
100
+ steps?: FormBuilderStep[];
101
+ }
91
102
  interface FormBuilderSchema {
92
103
  title?: string;
93
104
  fields?: FormBuilderField[];
94
105
  layout?: FormBuilderLayoutItem[];
106
+ flow?: FormBuilderFlow;
95
107
  sections: FormBuilderSection[];
96
108
  }
97
109
  interface FormBuilderFieldRenderContext {
@@ -227,15 +239,19 @@ interface FormBuilderFieldTreeNode {
227
239
  name?: string;
228
240
  type: string;
229
241
  icon: string;
230
- kind: 'section' | 'field';
242
+ kind: 'step' | 'section' | 'field';
231
243
  field?: FormBuilderField;
232
244
  section?: FormBuilderSection;
245
+ step?: FormBuilderStep;
233
246
  children?: FormBuilderFieldTreeNode[];
234
247
  }
235
248
  interface FormBuilderCanvasItem extends FormBuilderLayoutItem {
236
249
  field?: FormBuilderField;
237
250
  section?: FormBuilderSection;
238
251
  }
252
+ interface FormBuilderCanvasStep extends FormBuilderStep {
253
+ items: FormBuilderCanvasItem[];
254
+ }
239
255
  type FormBuilderNativeDragItem = {
240
256
  kind: 'field';
241
257
  definition: FormBuilderFieldDefinition;
@@ -294,10 +310,13 @@ declare class FormBuilder implements OnDestroy {
294
310
  protected readonly filteredMimeTypes: _angular_core.Signal<string[]>;
295
311
  protected readonly validationSettingsField: FormBuilderField;
296
312
  protected readonly canvasItems: _angular_core.Signal<FormBuilderCanvasItem[]>;
313
+ protected readonly stepsMode: _angular_core.Signal<boolean>;
314
+ protected readonly canvasSteps: _angular_core.Signal<FormBuilderCanvasStep[]>;
297
315
  protected readonly layoutDefinitions: _angular_core.Signal<FormBuilderFieldDefinition[]>;
298
316
  protected readonly paletteGroups: _angular_core.Signal<FormBuilderPaletteGroup[]>;
299
317
  protected readonly selectedField: _angular_core.Signal<FormBuilderField | null>;
300
318
  protected readonly selectedSection: _angular_core.Signal<FormBuilderSection | null>;
319
+ protected readonly selectedStep: _angular_core.Signal<FormBuilderStep | null>;
301
320
  protected readonly fieldTree: _angular_core.Signal<FormBuilderFieldTreeNode[]>;
302
321
  protected readonly fieldTreeChildrenAccessor: (node: FormBuilderFieldTreeNode) => FormBuilderFieldTreeNode[];
303
322
  protected readonly hasFieldTreeChildren: (_: number, node: FormBuilderFieldTreeNode) => boolean;
@@ -306,12 +325,15 @@ declare class FormBuilder implements OnDestroy {
306
325
  protected readonly fieldTreeDropPredicate: (source: FormBuilderFieldTreeNode, target: FormBuilderFieldTreeNode, position: TreeNodeDropPosition) => boolean;
307
326
  protected readonly updateSelectedField: (changes: Partial<FormBuilderField>) => void;
308
327
  protected readonly updateSelectedSection: (changes: Partial<FormBuilderSection>) => void;
328
+ protected readonly updateSelectedStep: (changes: Partial<FormBuilderStep>) => void;
309
329
  ngOnDestroy(): void;
310
330
  protected paletteDragStarted(event: DragEvent, definition: FormBuilderFieldDefinition): void;
311
331
  protected sectionPaletteDragStarted(event: DragEvent): void;
312
332
  protected paletteDragEnded(): void;
313
333
  protected paletteClicked(definition: FormBuilderFieldDefinition): void;
314
334
  protected nativeCanvasDragOver(event: DragEvent): void;
335
+ protected nativeStepDragOver(event: DragEvent, step: FormBuilderStep): void;
336
+ protected nativeStepDrop(event: DragEvent, step: FormBuilderStep): void;
315
337
  protected nativeFieldDragOver(event: DragEvent, containerId: string): void;
316
338
  protected nativeSectionDragOver(event: DragEvent, section: FormBuilderSection): void;
317
339
  protected nativeSectionDrop(event: DragEvent, section: FormBuilderSection): void;
@@ -323,6 +345,7 @@ declare class FormBuilder implements OnDestroy {
323
345
  protected isNativeDropTarget(containerId: string, index: number): boolean;
324
346
  protected addField(definition: FormBuilderFieldDefinition, sectionId?: string): void;
325
347
  protected addSection(): void;
348
+ protected addStep(): void;
326
349
  protected openPreview(template: TemplateRef<unknown>): void;
327
350
  protected openAddValidatorDialog(template: TemplateRef<unknown>): void;
328
351
  protected openEditValidatorDialog(template: TemplateRef<unknown>, rule: FormBuilderValidationRule, index: number): void;
@@ -349,9 +372,12 @@ declare class FormBuilder implements OnDestroy {
349
372
  private normalizeValidationRule;
350
373
  protected removeSection(section: FormBuilderSection): void;
351
374
  protected updateSection(section: FormBuilderSection, changes: Partial<FormBuilderSection>): void;
375
+ protected updateStep(step: FormBuilderStep, changes: Partial<FormBuilderStep>): void;
376
+ protected removeStep(step: FormBuilderStep): void;
352
377
  protected isSectionCollapsed(section: FormBuilderSection): boolean;
353
378
  protected selectField(field: FormBuilderField, section?: FormBuilderSection): void;
354
379
  protected selectSection(section: FormBuilderSection): void;
380
+ protected selectStep(step: FormBuilderStep): void;
355
381
  protected selectCanvasField(field: FormBuilderField, section?: FormBuilderSection): void;
356
382
  protected selectFieldTreeNode(node: FormBuilderFieldTreeNode): void;
357
383
  protected toggleFieldTreeNode(tree: Tree<FormBuilderFieldTreeNode>, node: FormBuilderFieldTreeNode, event: MouseEvent): void;
@@ -361,6 +387,7 @@ declare class FormBuilder implements OnDestroy {
361
387
  protected confirmRemoveField(field: FormBuilderField): void;
362
388
  private removeField;
363
389
  protected sectionDropListId(section: FormBuilderSection): string;
390
+ protected stepDropListId(step: FormBuilderStep): string;
364
391
  protected fieldDropListId(field: FormBuilderField): string;
365
392
  protected rootDropListId(): string;
366
393
  protected previewControl(field: FormBuilderField): FormControl;
@@ -385,21 +412,35 @@ declare class FormBuilder implements OnDestroy {
385
412
  private getCanvasAnimatedItemKey;
386
413
  private insertNativeField;
387
414
  private insertNativeSection;
415
+ private insertNativeSectionIntoStep;
388
416
  private resolveNativeDragItem;
389
417
  private resolveNativeDropIndex;
390
418
  private setPaletteDragImage;
391
419
  private createField;
392
420
  private defaultWidth;
393
421
  private resolveCanvasItems;
422
+ private resolveCanvasSteps;
423
+ private resolveLayoutItems;
394
424
  private normalizedLayout;
425
+ private isStepsMode;
426
+ private normalizedSteps;
427
+ private ensureStepsFlow;
428
+ private validLayoutItemSet;
429
+ private insertStepItem;
430
+ private removeStepItemReferences;
431
+ private findStepContainingItem;
432
+ private isStepDropListId;
433
+ private findStepByDropListId;
395
434
  private detachFieldFromLocation;
396
435
  private insertFieldIntoTreeSection;
397
436
  private insertFieldAroundTreeSection;
437
+ private insertFieldAroundStepTreeItem;
398
438
  private resolveTreeFieldInsertTarget;
399
439
  private insertRootFieldIntoLayout;
400
440
  private resetFieldTreeAfterRejectedDrop;
401
441
  private canDropFieldTreeNode;
402
442
  private dropFieldTreeSection;
443
+ private dropFieldTreeStep;
403
444
  private isRootFieldTreeNode;
404
445
  private restoreFieldTreeExpansion;
405
446
  private expandFieldTreeOwner;
@@ -410,13 +451,16 @@ declare class FormBuilder implements OnDestroy {
410
451
  private findFieldTreeNodeElement;
411
452
  private scrollCanvasFieldIntoView;
412
453
  private scrollCanvasSectionIntoView;
454
+ private scrollCanvasStepIntoView;
413
455
  private scrollCanvasItemIntoView;
414
456
  private findCanvasFieldElement;
415
457
  private findCanvasSectionElement;
458
+ private findCanvasStepElement;
416
459
  private syncPreviewControl;
417
460
  private fieldInitialValue;
418
461
  private scrollElementFullyIntoView;
419
462
  private afterNextPaint;
463
+ private upsertStepTreeNode;
420
464
  private upsertSectionTreeNode;
421
465
  private upsertFieldTreeNode;
422
466
  private getCachedFieldTreeNode;
@@ -442,6 +486,9 @@ interface FormRendererCanvasItem extends FormBuilderLayoutItem {
442
486
  field?: FormBuilderField;
443
487
  section?: FormBuilderSection;
444
488
  }
489
+ interface FormRendererStep extends FormBuilderStep {
490
+ items: FormRendererCanvasItem[];
491
+ }
445
492
  declare class FormRenderer {
446
493
  private readonly providedItems;
447
494
  private readonly providedFields;
@@ -449,6 +496,8 @@ declare class FormRenderer {
449
496
  private readonly calculationEngine;
450
497
  private readonly orphanControls;
451
498
  readonly schema: _angular_core.InputSignal<FormBuilderSchema>;
499
+ readonly flow: _angular_core.InputSignal<FormBuilderFlow | null | undefined>;
500
+ readonly items: _angular_core.InputSignal<FormBuilderLayoutItem[] | null | undefined>;
452
501
  readonly readonly: _angular_core.InputSignal<boolean>;
453
502
  readonly showSubmit: _angular_core.InputSignal<boolean>;
454
503
  readonly submitLabel: _angular_core.InputSignal<string>;
@@ -458,6 +507,9 @@ declare class FormRenderer {
458
507
  readonly formReady: _angular_core.OutputEmitterRef<FormGroup<any>>;
459
508
  protected readonly definitions: _angular_core.Signal<FormBuilderFieldDefinition[]>;
460
509
  protected readonly visibleCanvasItems: _angular_core.Signal<FormRendererCanvasItem[]>;
510
+ protected readonly activeFlow: _angular_core.Signal<FormBuilderFlow | undefined>;
511
+ protected readonly stepsMode: _angular_core.Signal<boolean>;
512
+ protected readonly visibleSteps: _angular_core.Signal<FormRendererStep[]>;
461
513
  protected readonly validatorDefinitions: _angular_core.Signal<_ngstarter_ui_components_form_builder.FormBuilderValidatorDefinition[]>;
462
514
  protected readonly formGroup: _angular_core.Signal<FormGroup<any>>;
463
515
  constructor();
@@ -471,7 +523,7 @@ declare class FormRenderer {
471
523
  protected addRepeaterItem(field: FormBuilderField, formGroup?: FormGroup<any>): void;
472
524
  protected removeRepeaterItem(field: FormBuilderField, index: number, formGroup?: FormGroup<any>): void;
473
525
  protected canRemoveRepeaterItem(field: FormBuilderField, formGroup?: FormGroup<any>): boolean;
474
- protected submit(): void;
526
+ submit(): void;
475
527
  private createFormGroup;
476
528
  private addFieldsToControls;
477
529
  private createRepeaterArray;
@@ -479,9 +531,13 @@ declare class FormRenderer {
479
531
  private applyCalculations;
480
532
  private applyRepeaterCalculations;
481
533
  private applyCalculatedFields;
534
+ private applyPlainTextFields;
535
+ private renderPlainTextTemplate;
482
536
  private orderCalculatedFields;
483
537
  private scopeFields;
484
538
  private writeCalculatedValue;
539
+ private writeDisplayValue;
540
+ private getOrCreateOrphanControl;
485
541
  private coerceCalculatedValue;
486
542
  private emptyCalculatedValue;
487
543
  private setCalculationError;
@@ -491,8 +547,12 @@ declare class FormRenderer {
491
547
  private fieldInitialValue;
492
548
  private allowsNullValue;
493
549
  private resolveCanvasItems;
550
+ private resolveSteps;
551
+ private resolveLayoutItems;
552
+ private isStepsMode;
553
+ private normalizedSteps;
494
554
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormRenderer, never>;
495
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormRenderer, "ngs-form-renderer", ["ngsFormRenderer"], { "schema": { "alias": "schema"; "required": true; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "showSubmit": { "alias": "showSubmit"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "uploadCallback": { "alias": "uploadCallback"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "formSubmit": "formSubmit"; "formReady": "formReady"; }, never, never, true, never>;
555
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormRenderer, "ngs-form-renderer", ["ngsFormRenderer"], { "schema": { "alias": "schema"; "required": true; "isSignal": true; }; "flow": { "alias": "flow"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "showSubmit": { "alias": "showSubmit"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "uploadCallback": { "alias": "uploadCallback"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "formSubmit": "formSubmit"; "formReady": "formReady"; }, never, never, true, never>;
496
556
  }
497
557
 
498
558
  declare class FormBuilderFieldHost {
@@ -510,6 +570,9 @@ declare class FormBuilderFieldHost {
510
570
  protected readonly controlStateVersion: _angular_core.WritableSignal<number>;
511
571
  protected readonly textInputType: _angular_core.Signal<"email" | "text" | "number">;
512
572
  protected readonly calculatedInputType: _angular_core.Signal<"text" | "number">;
573
+ protected readonly plainTextValue: _angular_core.Signal<string>;
574
+ protected readonly alertVariant: _angular_core.Signal<string>;
575
+ protected readonly alertFieldPath: _angular_core.Signal<string>;
513
576
  protected readonly radioOrientation: _angular_core.Signal<RadioGroupOrientation>;
514
577
  protected readonly uploadAccept: _angular_core.Signal<any>;
515
578
  protected readonly uploadDisabled: _angular_core.Signal<boolean>;
@@ -593,6 +656,7 @@ declare class FormBuilderSettingsHost {
593
656
  private resolveOwnSettingsSchema;
594
657
  private inferSettingsInheritance;
595
658
  private baseSettingsSchema;
659
+ private withFieldPathInfo;
596
660
  private withRegisteredSelectDataSources;
597
661
  private withSelectDataSourceOptions;
598
662
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormBuilderSettingsHost, never>;
@@ -655,4 +719,4 @@ declare class BasicFormBuilderSectionSettings {
655
719
  }
656
720
 
657
721
  export { BasicFormBuilderFieldSettings, BasicFormBuilderLayoutSettings, BasicFormBuilderSectionSettings, DEFAULT_FORM_BUILDER_CALCULATION_ENGINE, DEFAULT_FORM_BUILDER_FIELDS, DEFAULT_FORM_BUILDER_ITEMS, DEFAULT_FORM_BUILDER_VALIDATORS, FORM_BUILDER_CALCULATION_ENGINE, FORM_BUILDER_FIELDS, FORM_BUILDER_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_INPUT_FIELD_BASE_SETTINGS_SCHEMA, FORM_BUILDER_ITEMS, FORM_BUILDER_LAYOUT_BASE_SETTINGS_SCHEMA, FORM_BUILDER_LAYOUT_CONTAINER_BASE_SETTINGS_SCHEMA, FORM_BUILDER_SECTION_BASE_SETTINGS_SCHEMA, FORM_BUILDER_SELECT_DATA_SOURCES, FORM_BUILDER_SETTINGS, FORM_BUILDER_STATIC_BASE_SETTINGS_SCHEMA, FORM_BUILDER_UPLOAD_CALLBACK, FORM_BUILDER_VALIDATORS, FormBuilder, FormBuilderFieldHost, FormBuilderSettingsHost, FormLogic, FormRenderer, asyncValidatorsFromRules, createDefaultFormBuilderSchema, formBuilderField, formBuilderItem, formBuilderSettings, formBuilderValidator, mergeFormBuilderValidatorDefinitions, provideFormBuilder, provideFormBuilderField, provideFormBuilderFields, provideFormBuilderSelectDataSource, provideFormBuilderSelectDataSources, provideFormBuilderValidator, provideFormBuilderValidators, validatorsFromRules };
658
- export type { FormBuilderCalculationContext, FormBuilderCalculationEngine, FormBuilderCalculationResult, FormBuilderComponentImporter, FormBuilderField, FormBuilderFieldChange, FormBuilderFieldDefinition, FormBuilderFieldRenderContext, FormBuilderFieldSettingsContext, FormBuilderFieldWidth, FormBuilderItemDefinition, FormBuilderItemKind, FormBuilderLayoutItem, FormBuilderOption, FormBuilderSchema, FormBuilderSection, FormBuilderSectionSettingsContext, FormBuilderSelectDataSourceDefinition, FormBuilderSelectDataSourceOptions, FormBuilderSelectOptionsSource, FormBuilderSettingsConfig, FormBuilderSettingsContext, FormBuilderSettingsDefinition, FormBuilderSettingsInheritance, FormBuilderSettingsSchemaFactory, FormBuilderUploadCallback, FormBuilderUploadContext, FormBuilderValidationRule, FormBuilderValidatorDefinition, FormBuilderValidatorFactory, FormBuilderValidatorValueType };
722
+ export type { FormBuilderCalculationContext, FormBuilderCalculationEngine, FormBuilderCalculationResult, FormBuilderComponentImporter, FormBuilderField, FormBuilderFieldChange, FormBuilderFieldDefinition, FormBuilderFieldRenderContext, FormBuilderFieldSettingsContext, FormBuilderFieldWidth, FormBuilderFlow, FormBuilderItemDefinition, FormBuilderItemKind, FormBuilderLayoutItem, FormBuilderOption, FormBuilderSchema, FormBuilderSection, FormBuilderSectionSettingsContext, FormBuilderSelectDataSourceDefinition, FormBuilderSelectDataSourceOptions, FormBuilderSelectOptionsSource, FormBuilderSettingsConfig, FormBuilderSettingsContext, FormBuilderSettingsDefinition, FormBuilderSettingsInheritance, FormBuilderSettingsSchemaFactory, FormBuilderStep, FormBuilderUploadCallback, FormBuilderUploadContext, FormBuilderValidationRule, FormBuilderValidatorDefinition, FormBuilderValidatorFactory, FormBuilderValidatorValueType };
@@ -26,6 +26,8 @@ declare class Stepper extends CdkStepper {
26
26
  set orientation(value: StepperOrientation);
27
27
  readonly stepItems: i0.Signal<readonly Step[]>;
28
28
  readonly _stepLabels: i0.Signal<readonly StepLabel[]>;
29
+ readonly isFirstStep: i0.Signal<boolean>;
30
+ readonly isLastStep: i0.Signal<boolean>;
29
31
  ngAfterContentInit(): void;
30
32
  static ɵfac: i0.ɵɵFactoryDeclaration<Stepper, never>;
31
33
  static ɵcmp: i0.ɵɵComponentDeclaration<Stepper, "ngs-stepper", ["ngsStepper"], { "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "hideHeaderBorder": { "alias": "hideHeaderBorder"; "required": false; "isSignal": true; }; }, {}, ["stepItems", "_stepLabels"], never, true, never>;