matcha-components 19.129.0 → 19.131.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.
@@ -2527,7 +2527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
2527
2527
 
2528
2528
  class StepComponent {
2529
2529
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2530
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StepComponent, isStandalone: false, selector: "step", inputs: { step: "step" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true }); }
2530
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StepComponent, isStandalone: false, selector: "step", inputs: { step: ["stepTitle", "step"] }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true }); }
2531
2531
  }
2532
2532
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StepComponent, decorators: [{
2533
2533
  type: Component,
@@ -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: ['stepTitle']
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
  }