matcha-components 19.129.0 → 19.130.0

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.
@@ -2537,7 +2537,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
2537
2537
  standalone: false
2538
2538
  }]
2539
2539
  }], propDecorators: { step: [{
2540
- type: Input
2540
+ type: Input,
2541
+ args: ['step']
2541
2542
  }], template: [{
2542
2543
  type: ViewChild,
2543
2544
  args: [TemplateRef, { static: true }]
@@ -2595,7 +2596,11 @@ class MatchaStepperContentComponent {
2595
2596
  this.activeStep = 0;
2596
2597
  }
2597
2598
  ngAfterContentInit() {
2598
- this.stepsArray = this.steps.toArray().sort((a, b) => Number(a.step) - Number(b.step));
2599
+ this.stepsArray = this.steps.toArray().sort((a, b) => {
2600
+ const stepA = a.step !== undefined && a.step !== null && a.step !== '' ? Number(a.step) : a.step;
2601
+ const stepB = b.step !== undefined && b.step !== null && b.step !== '' ? Number(b.step) : b.step;
2602
+ return stepA - stepB;
2603
+ });
2599
2604
  this.stepperState.setSteps(this.stepsArray.map(s => s.step));
2600
2605
  this.stepperState.activeStep$.subscribe(step => this.activeStep = step);
2601
2606
  }