(index: number)
| 590 | } |
| 591 | |
| 592 | private _anyControlsInvalidOrPending(index: number): boolean { |
| 593 | if (this.linear && index >= 0) { |
| 594 | return this.steps |
| 595 | .toArray() |
| 596 | .slice(0, index) |
| 597 | .some(step => { |
| 598 | const control = step.stepControl; |
| 599 | const isIncomplete = control |
| 600 | ? isInvalid(control) || isPending(control) || !step.interacted |
| 601 | : !step.completed; |
| 602 | return isIncomplete && !step.optional && !step._completedOverride(); |
| 603 | }); |
| 604 | } |
| 605 | |
| 606 | return false; |
| 607 | } |
| 608 | |
| 609 | private _layoutDirection(): Direction { |
| 610 | return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr'; |
no test coverage detected