/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/stepper/stepper-intl.ts
29 строк
920 B
Kristiyan Kostadinov
refactor(material/stepper): switch to service decorator
25 апр 2026, 23:10
25 апр 2026, 23:10
c54130b
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Service} from '@angular/core'; import {Subject} from 'rxjs'; /** Stepper data that is required for internationalization. */ @Service() export class MatStepperIntl { /** * Stream that emits whenever the labels here are changed. Use this to notify * components if the labels have changed after initialization. */ readonly changes: Subject<void> = new Subject<void>(); /** Label that is rendered below optional steps. */ optionalLabel: string = 'Optional'; /** Label that is used to indicate step as completed to screen readers. */ completedLabel: string = 'Completed'; /** Label that is used to indicate step as editable to screen readers. */ editableLabel: string = 'Editable'; }